{"version":3,"sources":["webpack:///./node_modules/bootstrap-vue/esm/components/spinner/spinner.js","webpack:///./src/views/pages/embed-emplacamento/EmbedEmplacamento.vue?0f50","webpack:///./node_modules/bootstrap-vue/esm/components/overlay/overlay.js","webpack:///./src/views/pages/embed-emplacamento/EmbedEmplacamento.vue","webpack:///./src/views/pages/embed-emplacamento/EmbedEmplacamento.vue?e07f","webpack:///./src/views/pages/embed-emplacamento/EmbedEmplacamento.vue?edff","webpack:///./src/views/pages/embed-emplacamento/EmbedEmplacamento.vue?5ce1"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","props","label","role","small","tag","type","variant","BSpinner","extend","name","functional","render","h","_ref","_class","data","slots","scopedSlots","$slots","$scopedSlots","$label","staticClass","attrs","class","concat","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","apply","_objectSpread","target","i","arguments","length","source","forEach","getOwnPropertyDescriptors","defineProperties","POSITION_COVER","top","left","bottom","right","bgColor","blur","fixed","noCenter","noFade","noWrap","opacity","number","overlayTag","rounded","show","spinnerSmall","spinnerType","spinnerVariant","wrapTag","zIndex","BOverlay","mixins","computed","computedRounded","this","computedVariant","slotScope","methods","defaultOverlayFn","$createElement","_this","$overlay","$background","style","backgroundColor","backdropFilter","$content","transform","normalizeSlot","on","click","event","$emit","appear","_vm","_c","_self","_setupProxy","overlayShow","url","disabledLoading","staticRenderFns","EmbedEmplacamento","_Vue","_classCallCheck","useAppConfig","_inherits","_createClass","get","params","$route","path","query","token","useAuth","createCookie","process","meta","embedUrl","skin","toggleDarkMode","iframe","document","querySelector","contentWindow","postMessage","isDark","Vue","__decorate","Watch","Component","components","component"],"mappings":"kHAAA,mIAASA,EAAgBC,EAAKC,EAAKC,GAAiK,OAApJD,KAAOD,EAAOG,OAAOC,eAAeJ,EAAKC,EAAK,CAAEC,MAAOA,EAAOG,YAAY,EAAMC,cAAc,EAAMC,UAAU,IAAkBP,EAAIC,GAAOC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lB,EAAApB,QAAU,EACVoB,EAAAzB,KAAO,MAEPyB,EAAAyB,aAAeA,iBAAezB,EAG9B,OAAA0B,eAAAJ,EAAAC,GAAAI,eAAAL,EAAA,EAAAzG,IAAA,MAAA+G,IACA,WACE,IAAIC,EAAS,GAQb,MANwB,yBAApBnC,KAAKoC,OAAOC,OACdF,EAAS,UAAHjF,OAAa8C,KAAKoC,OAAOE,MAAMC,OACE,kBAA5BvC,KAAKoC,OAAOE,MAAMC,OAC3BC,OAAQC,aAAa,eAAgBzC,KAAKoC,OAAOE,MAAMC,MAAO,IAIhEG,yCAAmC1C,KAAKoC,OAAOO,KAAKC,SAAWT,IAElE,CAAAhH,IAAA,UAAA+G,IAED,WACE,OAAOH,iBAAec,KAAKzH,QAC5B,CAAAD,IAAA,SAAA+G,IAED,WACE,MAAwB,SAAjBlC,KAAKhE,UACb,CAAAb,IAAA,iBAAAC,MAGD,WACE4E,KAAKwB,aAAc,IAGrB,CAAArG,IAAA,kBAAAC,MACA,WACE4E,KAAKwB,aAAc,EACnBxB,KAAK8C,mBACN,CAAA3H,IAAA,iBAAAC,MAED,WACE,IAAM2H,EAAmCC,SAASC,cAChD,8BAGEF,GAEFA,EAAOG,cAAcC,YAAY,CAAEC,OAAQpD,KAAKoD,QAAU,SAlD1B,CAASC,QAiC7CC,eAAA,CADCC,eAAM,Q,mCAhCY3B,EAAiB0B,eAAA,CANrCE,eAAU,CACTrH,KAAM,oBACNsH,WAAY,CACV7D,oBAGiBgC,WCZ0Z,I,wBCQ3a8B,EAAY,eACd,EACArH,EACAsF,GACA,EACA,KACA,WACA,MAIa,aAAA+B,E","file":"js/chunk-52966912.b95962c1.js","sourcesContent":["function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { Vue, mergeData } from '../../vue';\nimport { NAME_SPINNER } from '../../constants/components';\nimport { PROP_TYPE_BOOLEAN, PROP_TYPE_STRING } from '../../constants/props';\nimport { SLOT_NAME_LABEL } from '../../constants/slots';\nimport { normalizeSlot } from '../../utils/normalize-slot';\nimport { makeProp, makePropsConfigurable } from '../../utils/props'; // --- Props ---\n\nexport var props = makePropsConfigurable({\n label: makeProp(PROP_TYPE_STRING),\n role: makeProp(PROP_TYPE_STRING, 'status'),\n small: makeProp(PROP_TYPE_BOOLEAN, false),\n tag: makeProp(PROP_TYPE_STRING, 'span'),\n type: makeProp(PROP_TYPE_STRING, 'border'),\n variant: makeProp(PROP_TYPE_STRING)\n}, NAME_SPINNER); // --- Main component ---\n// @vue/component\n\nexport var BSpinner = /*#__PURE__*/Vue.extend({\n name: NAME_SPINNER,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var _class;\n\n var props = _ref.props,\n data = _ref.data,\n slots = _ref.slots,\n scopedSlots = _ref.scopedSlots;\n var $slots = slots();\n var $scopedSlots = scopedSlots || {};\n var $label = normalizeSlot(SLOT_NAME_LABEL, {}, $scopedSlots, $slots) || props.label;\n\n if ($label) {\n $label = h('span', {\n staticClass: 'sr-only'\n }, $label);\n }\n\n return h(props.tag, mergeData(data, {\n attrs: {\n role: $label ? props.role || 'status' : null,\n 'aria-hidden': $label ? null : 'true'\n },\n class: (_class = {}, _defineProperty(_class, \"spinner-\".concat(props.type), props.type), _defineProperty(_class, \"spinner-\".concat(props.type, \"-sm\"), props.small), _defineProperty(_class, \"text-\".concat(props.variant), props.variant), _class)\n }), [$label || h()]);\n }\n});","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmbedEmplacamento.vue?vue&type=style&index=0&id=119c8a10&prod&lang=scss&scoped=true\"","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { Vue } from '../../vue';\nimport { NAME_OVERLAY } from '../../constants/components';\nimport { EVENT_NAME_CLICK, EVENT_NAME_HIDDEN, EVENT_NAME_SHOWN } from '../../constants/events';\nimport { PROP_TYPE_BOOLEAN, PROP_TYPE_BOOLEAN_STRING, PROP_TYPE_NUMBER_STRING, PROP_TYPE_STRING } from '../../constants/props';\nimport { SLOT_NAME_OVERLAY } from '../../constants/slots';\nimport { toFloat } from '../../utils/number';\nimport { normalizeSlotMixin } from '../../mixins/normalize-slot';\nimport { makeProp, makePropsConfigurable } from '../../utils/props';\nimport { BSpinner } from '../spinner/spinner';\nimport { BVTransition } from '../transition/bv-transition'; // --- Constants ---\n\nvar POSITION_COVER = {\n top: 0,\n left: 0,\n bottom: 0,\n right: 0\n}; // --- Props ---\n\nexport var props = makePropsConfigurable({\n // Alternative to variant, allowing a specific\n // CSS color to be applied to the overlay\n bgColor: makeProp(PROP_TYPE_STRING),\n blur: makeProp(PROP_TYPE_STRING, '2px'),\n fixed: makeProp(PROP_TYPE_BOOLEAN, false),\n noCenter: makeProp(PROP_TYPE_BOOLEAN, false),\n noFade: makeProp(PROP_TYPE_BOOLEAN, false),\n // If `true, does not render the default slot\n // and switches to absolute positioning\n noWrap: makeProp(PROP_TYPE_BOOLEAN, false),\n opacity: makeProp(PROP_TYPE_NUMBER_STRING, 0.85, function (value) {\n var number = toFloat(value, 0);\n return number >= 0 && number <= 1;\n }),\n overlayTag: makeProp(PROP_TYPE_STRING, 'div'),\n rounded: makeProp(PROP_TYPE_BOOLEAN_STRING, false),\n show: makeProp(PROP_TYPE_BOOLEAN, false),\n spinnerSmall: makeProp(PROP_TYPE_BOOLEAN, false),\n spinnerType: makeProp(PROP_TYPE_STRING, 'border'),\n spinnerVariant: makeProp(PROP_TYPE_STRING),\n variant: makeProp(PROP_TYPE_STRING, 'light'),\n wrapTag: makeProp(PROP_TYPE_STRING, 'div'),\n zIndex: makeProp(PROP_TYPE_NUMBER_STRING, 10)\n}, NAME_OVERLAY); // --- Main component ---\n// @vue/component\n\nexport var BOverlay = /*#__PURE__*/Vue.extend({\n name: NAME_OVERLAY,\n mixins: [normalizeSlotMixin],\n props: props,\n computed: {\n computedRounded: function computedRounded() {\n var rounded = this.rounded;\n return rounded === true || rounded === '' ? 'rounded' : !rounded ? '' : \"rounded-\".concat(rounded);\n },\n computedVariant: function computedVariant() {\n var variant = this.variant;\n return variant && !this.bgColor ? \"bg-\".concat(variant) : '';\n },\n slotScope: function slotScope() {\n return {\n spinnerType: this.spinnerType || null,\n spinnerVariant: this.spinnerVariant || null,\n spinnerSmall: this.spinnerSmall\n };\n }\n },\n methods: {\n defaultOverlayFn: function defaultOverlayFn(_ref) {\n var spinnerType = _ref.spinnerType,\n spinnerVariant = _ref.spinnerVariant,\n spinnerSmall = _ref.spinnerSmall;\n return this.$createElement(BSpinner, {\n props: {\n type: spinnerType,\n variant: spinnerVariant,\n small: spinnerSmall\n }\n });\n }\n },\n render: function render(h) {\n var _this = this;\n\n var show = this.show,\n fixed = this.fixed,\n noFade = this.noFade,\n noWrap = this.noWrap,\n slotScope = this.slotScope;\n var $overlay = h();\n\n if (show) {\n var $background = h('div', {\n staticClass: 'position-absolute',\n class: [this.computedVariant, this.computedRounded],\n style: _objectSpread(_objectSpread({}, POSITION_COVER), {}, {\n opacity: this.opacity,\n backgroundColor: this.bgColor || null,\n backdropFilter: this.blur ? \"blur(\".concat(this.blur, \")\") : null\n })\n });\n var $content = h('div', {\n staticClass: 'position-absolute',\n style: this.noCenter ?\n /* istanbul ignore next */\n _objectSpread({}, POSITION_COVER) : {\n top: '50%',\n left: '50%',\n transform: 'translateX(-50%) translateY(-50%)'\n }\n }, [this.normalizeSlot(SLOT_NAME_OVERLAY, slotScope) || this.defaultOverlayFn(slotScope)]);\n $overlay = h(this.overlayTag, {\n staticClass: 'b-overlay',\n class: {\n 'position-absolute': !noWrap || noWrap && !fixed,\n 'position-fixed': noWrap && fixed\n },\n style: _objectSpread(_objectSpread({}, POSITION_COVER), {}, {\n zIndex: this.zIndex || 10\n }),\n on: {\n click: function click(event) {\n return _this.$emit(EVENT_NAME_CLICK, event);\n }\n },\n key: 'overlay'\n }, [$background, $content]);\n } // Wrap in a fade transition\n\n\n $overlay = h(BVTransition, {\n props: {\n noFade: noFade,\n appear: true\n },\n on: {\n 'after-enter': function afterEnter() {\n return _this.$emit(EVENT_NAME_SHOWN);\n },\n 'after-leave': function afterLeave() {\n return _this.$emit(EVENT_NAME_HIDDEN);\n }\n }\n }, [$overlay]);\n\n if (noWrap) {\n return $overlay;\n }\n\n return h(this.wrapTag, {\n staticClass: 'b-overlay-wrap position-relative',\n attrs: {\n 'aria-busy': show ? 'true' : null\n }\n }, noWrap ? [$overlay] : [this.normalizeSlot(), $overlay]);\n }\n});","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{attrs:{\"id\":\"embed-emplacamento\"}},[_c('b-overlay',{attrs:{\"id\":\"overlay-background\",\"show\":_vm.overlayShow,\"variant\":_vm.variant,\"opacity\":_vm.opacity,\"blur\":_vm.blur}},[_c('iframe',{attrs:{\"src\":_vm.url,\"width\":\"100%\",\"height\":\"100vh\",\"frameborder\":\"0\"},on:{\"load\":_vm.disabledLoading}})])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport useAuth from \"@/services/auth/useAuth\";\nimport useAppConfig from \"@core/app-config/useAppConfig\";\nimport { BOverlay } from \"bootstrap-vue\";\nimport { Component, Vue, Watch } from \"vue-property-decorator\";\n\n@Component({\n name: \"EmbedEmplacamento\",\n components: {\n BOverlay,\n },\n})\nexport default class EmbedEmplacamento extends Vue {\n // Data\n overlayShow = true;\n opacity = 1;\n blur = \"2px\";\n\n useAppConfig = useAppConfig();\n $route: any;\n\n // Computeds\n get url(): string {\n let params = \"\";\n\n if (this.$route.path == \"/reports/daily-report\") {\n params = `?token=${this.$route.query.token}`;\n if (typeof this.$route.query.token === \"string\")\n useAuth.createCookie(\"BoletimToken\", this.$route.query.token, 1);\n }\n\n return (\n process.env.VUE_APP_BASE_URL_EMP + this.$route.meta.embedUrl + params\n );\n }\n\n get variant(): \"light\" | \"dark\" {\n return useAppConfig().skin.value;\n }\n\n get isDark() {\n return this.variant === \"dark\";\n }\n\n @Watch(\"url\")\n enabledLoading() {\n this.overlayShow = true;\n }\n\n // Methods\n disabledLoading() {\n this.overlayShow = false;\n this.toggleDarkMode();\n }\n\n toggleDarkMode() {\n const iframe: HTMLIFrameElement | null = document.querySelector(\n \"#embed-emplacamento iframe\"\n );\n\n if (iframe) {\n // @ts-ignore\n iframe.contentWindow.postMessage({ isDark: this.isDark }, \"*\");\n }\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmbedEmplacamento.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmbedEmplacamento.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EmbedEmplacamento.vue?vue&type=template&id=119c8a10&scoped=true\"\nimport script from \"./EmbedEmplacamento.vue?vue&type=script&lang=ts\"\nexport * from \"./EmbedEmplacamento.vue?vue&type=script&lang=ts\"\nimport style0 from \"./EmbedEmplacamento.vue?vue&type=style&index=0&id=119c8a10&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"119c8a10\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}