{"version":3,"sources":["webpack:///./src/components/snackbars/i4pro-snackbar.vue?14f5","webpack:///src/components/snackbars/i4pro-snackbar.vue","webpack:///./src/components/snackbars/i4pro-snackbar.vue?ccfb","webpack:///./src/components/snackbars/i4pro-snackbar.vue","webpack:///../../../src/components/VSnackbar/VSnackbar.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","class","getNotification","page","mode","attrs","$store","getters","active","absolute","bottom","color","left","multiLine","right","timeout","top","vertical","on","close","executeNotification","scopedSlots","_u","key","fn","ref","_b","buttonText","buttonFlat","_v","_s","_e","iconColor","iconType","text","staticRenderFns","props","id","entry","autoHeight","button","buttonColor","icon","value","showIconNotification","computed","store","methods","handleLoadRoute","component","VBtn","VIcon","VSnackbar","name","app","centered","contentClass","type","default","Number","transition","Boolean","validator","v","data","activeTimeout","classes","hasBackground","isDark","styles","$vuetify","paddingBottom","paddingLeft","paddingRight","paddingTop","bar","watch","isActive","mounted","setTimeout","created","$attrs","hasOwnProperty","genActions","staticClass","genContent","role","genWrapper","setColor","directives","genTransition","window","h","style"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,aAAa,CAACE,MAAM,CAACN,EAAIO,gBAAgBC,MAAQR,EAAIO,gBAAgBE,MAAQ,kBAAkBC,MAAM,CAAC,MAAQT,KAAKU,OAAOC,QAAQ,qCAAqCC,OAAO,SAAWb,EAAIc,SAAS,OAASd,EAAIe,OAAO,MAAQf,EAAIO,gBAAgBS,OAAShB,EAAIgB,MAAM,KAAOhB,EAAIiB,KAAK,aAAajB,EAAIkB,UAAU,MAAQlB,EAAImB,MAAM,QAAUnB,EAAIoB,QAAQ,IAAMpB,EAAIqB,IAAI,SAAWrB,EAAIsB,UAAUC,GAAG,CAAC,MAAQvB,EAAIwB,MAAM,MAAQxB,EAAIyB,qBAAqBC,YAAY1B,EAAI2B,GAAG,CAAC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F,KAQAA,KAAA,cAAqB+F,OAAA,YAAkB,WACrC,gBADF,MAMJjG,OA5KO,SA4KD,GACJ,OAAOkG,EAAE,MAAO,CACdR,YADc,UAEdnF,MAAOL,KAFO,QAGdiG,MAAOjG,KAAKyE,QACX,EACmB,IAApBzE,KAAKgE,WACDhE,KADJ,gBAEIA,KAPN,mB","file":"js/chunk-5c8c9077.932f13a9.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-snackbar',{class:[_vm.getNotification.page && _vm.getNotification.mode && 'cursor-pointer'],attrs:{\"value\":this.$store.getters['notification/getNotificationState'].active,\"absolute\":_vm.absolute,\"bottom\":_vm.bottom,\"color\":_vm.getNotification.color || _vm.color,\"left\":_vm.left,\"multi-line\":_vm.multiLine,\"right\":_vm.right,\"timeout\":_vm.timeout,\"top\":_vm.top,\"vertical\":_vm.vertical},on:{\"input\":_vm.close,\"click\":_vm.executeNotification},scopedSlots:_vm._u([{key:\"action\",fn:function(ref){\nvar attrs = ref.attrs;\nreturn [(_vm.button)?_c('v-btn',_vm._b({attrs:{\"color\":_vm.buttonText,\"text\":_vm.buttonFlat},on:{\"click\":_vm.close}},'v-btn',attrs,false),[_vm._v(_vm._s(_vm.buttonText))]):_vm._e(),(_vm.icon)?_c('v-icon',_vm._b({attrs:{\"color\":_vm.iconColor,\"small\":\"\"},on:{\"click\":_vm.close}},'v-icon',attrs,false),[_vm._v(_vm._s(_vm.iconType))]):_vm._e()]}}])},[_vm._v(\" \"+_vm._s(_vm.getNotification.text || _vm.text)+\" \")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n {{ getNotification.text || text }}\r\n \r\n {{ buttonText }}\r\n\r\n {{ iconType }}\r\n \r\n \r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./i4pro-snackbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./i4pro-snackbar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./i4pro-snackbar.vue?vue&type=template&id=33ba7f99&\"\nimport script from \"./i4pro-snackbar.vue?vue&type=script&lang=js&\"\nexport * from \"./i4pro-snackbar.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSnackbar } from 'vuetify/lib/components/VSnackbar';\ninstallComponents(component, {VBtn,VIcon,VSnackbar})\n","// Styles\nimport './VSnackbar.sass'\n\n// Components\nimport VSheet from '../VSheet/VSheet'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\nimport Toggleable from '../../mixins/toggleable'\nimport { factory as PositionableFactory } from '../../mixins/positionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\nimport { deprecate, removed } from '../../util/console'\n\n// Types\nimport { PropType, VNode } from 'vue'\n\nexport default mixins(\n VSheet,\n Colorable,\n Toggleable,\n PositionableFactory([\n 'absolute',\n 'bottom',\n 'left',\n 'right',\n 'top',\n ])\n/* @vue/component */\n).extend({\n name: 'v-snackbar',\n\n props: {\n app: Boolean,\n centered: Boolean,\n contentClass: {\n type: String,\n default: '',\n },\n multiLine: Boolean,\n text: Boolean,\n timeout: {\n type: [Number, String],\n default: 5000,\n },\n transition: {\n type: [Boolean, String] as PropType,\n default: 'v-snack-transition',\n validator: v => typeof v === 'string' || v === false,\n },\n vertical: Boolean,\n },\n\n data: () => ({\n activeTimeout: -1,\n }),\n\n computed: {\n classes (): object {\n return {\n 'v-snack--absolute': this.absolute,\n 'v-snack--active': this.isActive,\n 'v-snack--bottom': this.bottom || !this.top,\n 'v-snack--centered': this.centered,\n 'v-snack--has-background': this.hasBackground,\n 'v-snack--left': this.left,\n 'v-snack--multi-line': this.multiLine && !this.vertical,\n 'v-snack--right': this.right,\n 'v-snack--text': this.text,\n 'v-snack--top': this.top,\n 'v-snack--vertical': this.vertical,\n }\n },\n // Text and outlined styles both\n // use transparent backgrounds\n hasBackground (): boolean {\n return (\n !this.text &&\n !this.outlined\n )\n },\n // Snackbar is dark by default\n // override themeable logic.\n isDark (): boolean {\n return this.hasBackground\n ? !this.light\n : Themeable.options.computed.isDark.call(this)\n },\n styles (): object {\n // Styles are not needed when\n // using the absolute prop.\n if (this.absolute) return {}\n\n const {\n bar,\n bottom,\n footer,\n insetFooter,\n left,\n right,\n top,\n } = this.$vuetify.application\n\n // Should always move for y-axis\n // applicationable components.\n return {\n paddingBottom: convertToUnit(bottom + footer + insetFooter),\n paddingLeft: !this.app ? undefined : convertToUnit(left),\n paddingRight: !this.app ? undefined : convertToUnit(right),\n paddingTop: convertToUnit(bar + top),\n }\n },\n },\n\n watch: {\n isActive: 'setTimeout',\n timeout: 'setTimeout',\n },\n\n mounted () {\n if (this.isActive) this.setTimeout()\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('auto-height')) {\n removed('auto-height', this)\n }\n\n /* istanbul ignore next */\n // eslint-disable-next-line eqeqeq\n if (this.timeout == 0) {\n deprecate('timeout=\"0\"', '-1', this)\n }\n },\n\n methods: {\n genActions () {\n return this.$createElement('div', {\n staticClass: 'v-snack__action ',\n }, [\n getSlot(this, 'action', {\n attrs: { class: 'v-snack__btn' },\n }),\n ])\n },\n genContent () {\n return this.$createElement('div', {\n staticClass: 'v-snack__content',\n class: {\n [this.contentClass]: true,\n },\n attrs: {\n role: 'status',\n 'aria-live': 'polite',\n },\n }, [getSlot(this)])\n },\n genWrapper () {\n const setColor = this.hasBackground\n ? this.setBackgroundColor\n : this.setTextColor\n\n const data = setColor(this.color, {\n staticClass: 'v-snack__wrapper',\n class: VSheet.options.computed.classes.call(this),\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n })\n\n return this.$createElement('div', data, [\n this.genContent(),\n this.genActions(),\n ])\n },\n genTransition () {\n return this.$createElement('transition', {\n props: { name: this.transition },\n }, [this.genWrapper()])\n },\n setTimeout () {\n window.clearTimeout(this.activeTimeout)\n\n const timeout = Number(this.timeout)\n\n if (\n !this.isActive ||\n // TODO: remove 0 in v3\n [0, -1].includes(timeout)\n ) {\n return\n }\n\n this.activeTimeout = window.setTimeout(() => {\n this.isActive = false\n }, timeout)\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-snack',\n class: this.classes,\n style: this.styles,\n }, [\n this.transition !== false\n ? this.genTransition()\n : this.genWrapper(),\n ])\n },\n})\n"],"sourceRoot":""}