{"version":3,"sources":["webpack:///./src/views/Home/Components/DownloadComplete.vue","webpack:///./src/views/Home/Components/DownloadComplete.vue?07b6","webpack:///./src/views/Home/Components/DownloadComplete.vue?65e2","webpack:///./src/views/Home/Components/DownloadComplete.vue?a181","webpack:///../../../src/components/VGrid/grid.ts","webpack:///../../../src/components/VGrid/VContainer.ts","webpack:///./src/views/Home/Components/DownloadComplete.vue?8051"],"names":["staticStyle","_c","staticClass","attrs","model","callback","$$v","expression","_vm","generateXml","isInstant","domProps","$tc","value","on","render","staticRenderFns","overlayModule","getModule","OverlayModule","store","snackbarModule","SnackbarModule","DownloadComplete","Vue","showOverlay","downloadXmlService","GetDownloadXml","this","then","x","status","element","document","createElement","setAttribute","encodeURIComponent","data","fileName","hasNewXMLFormat","Date","toFormat","style","display","body","appendChild","click","removeChild","catch","e","response","showSnackbar","message","type","timer","close","$emit","__decorate","Prop","Object","default","required","Component","component","VGrid","name","extend","functional","props","id","String","tag","h","children","trim","classes","keys","filter","key","startsWith","length","join","Grid","fluid","Boolean","mergeData","class","Array","concat"],"mappings":"8NAAyF,MAAU,KAAeA,IAAW,MAAC,GAAC,EAAY,kB,OAAa,EAAC,Q,YAAA,CAAY,YAAQ,QAA3E,MAA0F,CAASA,MAAW,GAAE,iBAAwB,CAACC,EAAG,QAASC,YAAY,CAA8BF,aAAY,WAAvD,WAA4EG,YAAM,8B,YAAQ,CAAR,oBAA4FH,OAAa,YAAwB,CAACC,EAAG,OAAQ,2DAACC,YAAY,CAAeF,aAAY,WAAxC,WAA6DG,YAAM,e,YAAQ,CAAR,oBAAkGH,OAAa,YAAwB,CAACC,EAAG,OAAQ,iEAACC,YAAY,CAAYF,aAAY,WAArC,WAA0DG,YAAM,Y,YAAQ,CAAR,oBAA0BD,OAAmFD,KAAE,O,CAAqB,S,YAAiB,sE,CAAuB,S,YAAkC,CAA3E,eAAqGA,iBAAa,MAAmFC,kBAAY,gBAA2BC,cAAM,WAA9C,wFAIjiCC,YAAM,2B,MAAM,CA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B,KAAKzE,GAAO0E,OAAOC,IAGxC,GAAY,SAARA,EAAgB,OAAO,EAE3B,MAAMjE,EAAQV,EAAM2E,GAIpB,OAAIA,EAAIC,WAAW,UACjB1C,EAAKlC,MAAO2E,GAAOjE,GACZ,GAGFA,GAA0B,kBAAVA,IAGrB8D,EAAQK,SAAQ3C,EAAKnC,aAAe,IAAIyE,EAAQM,KAAK,MAQ3D,OALIb,EAAMC,KACRhC,EAAK1B,SAAW0B,EAAK1B,UAAY,GACjC0B,EAAK1B,SAAS0D,GAAKD,EAAMC,IAGpBG,EAAEJ,EAAMG,IAAKlC,EAAMoC,M,gBC1CjBS,SAAK,aAAahB,OAAO,CACtCD,KAAM,cACNE,YAAY,EACZC,MAAO,CACLC,GAAIC,OACJC,IAAK,CACHlB,KAAMiB,OACNV,QAAS,OAEXuB,MAAO,CACL9B,KAAM+B,QACNxB,SAAS,IAGb7C,OAAQyD,GAAG,MAAEJ,EAAF,KAAS/B,EAAT,SAAeoC,IACxB,IAAIE,EACJ,MAAM,MAAExE,GAAUkC,EA2BlB,OA1BIlC,IAEFkC,EAAKlC,MAAQ,GACbwE,EAAUhB,OAAOiB,KAAKzE,GAAO0E,OAAOC,IAGlC,GAAY,SAARA,EAAgB,OAAO,EAE3B,MAAMjE,EAAQV,EAAM2E,GAIpB,OAAIA,EAAIC,WAAW,UACjB1C,EAAKlC,MAAO2E,GAAOjE,GACZ,GAGFA,GAA0B,kBAAVA,KAIvBuD,EAAMC,KACRhC,EAAK1B,SAAW0B,EAAK1B,UAAY,GACjC0B,EAAK1B,SAAS0D,GAAKD,EAAMC,IAGpBG,EACLJ,EAAMG,IACNc,eAAUhD,EAAM,CACdnC,YAAa,YACboF,MAAOC,MAAW,CAChB,mBAAoBnB,EAAMe,QACzBK,OAAOb,GAAW,MAEvBF,O,kCC3DN","file":"js/chunk-20049508.c6a793ec.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-container',{staticStyle:{\"min-width\":\"100%\"},attrs:{\"fluid\":\"\",\"align\":\"center\"}},[_c('v-row',{staticStyle:{\"text-align\":\"center\"}},[_c('v-col',{staticClass:\"z-heading-h1 coloured-title\",staticStyle:{\"min-width\":\"100%\"},attrs:{\"cols\":\"10\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"downloadComplete.Title\"))+\" \")])],1),_c('v-row',{staticStyle:{\"text-align\":\"center\"}},[_c('v-col',{staticClass:\"z-heading-h5\",staticStyle:{\"min-width\":\"100%\"},attrs:{\"cols\":\"10\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"downloadComplete.Description\"))+\" \")])],1),_c('v-row',{staticStyle:{\"text-align\":\"center\"}},[_c('v-col',{staticClass:\"pt-0 pb-2\",staticStyle:{\"min-width\":\"100%\"},attrs:{\"cols\":\"10\"}},[_c('div',{staticClass:\"new-format-table new-format-table__repeat mod--banner mod--subdued\"},[_c('div',{staticStyle:{\"display\":\"flex\",\"flex-direction\":\"row\",\"justify-content\":\"space-between\",\"align-items\":\"center\"}},[_c('span',[_c('b',[_vm._v(_vm._s(_vm.$tc(\"downloadComplete.PriorityLevel\")))])]),_c('z-toggle',{staticClass:\"new-format-table--toggle\",attrs:{\"label\":_vm.$tc(\n _vm.generateXml.isInstant\n ? 'home.PriorityTypeHigh'\n : 'home.PriorityTypeNormal'\n )},model:{value:(_vm.generateXml.isInstant),callback:function ($$v) {_vm.$set(_vm.generateXml, \"isInstant\", $$v)},expression:\"generateXml.isInstant\"}})],1),(_vm.generateXml.isInstant)?_c('div',{staticClass:\"new-format-table--title\"},[_c('z-icon',{attrs:{\"fill\":\"var(--z-text-neutral-default)\",\"name\":\"warning-triangle\",\"height\":\"24px\",\"width\":\"24px\"}}),_c('span',[_vm._v(\" \"+_vm._s(_vm.$tc(\"home.PriorityBannerTitle\"))+\" \")])],1):_vm._e(),(_vm.generateXml.isInstant)?_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$tc('home.PriorityBannerContent'))}}):_vm._e()])])],1),_c('v-row',{staticStyle:{\"text-align\":\"center\"}},[_c('v-col',{staticStyle:{\"min-width\":\"100%\"},attrs:{\"cols\":\"10\"}},[_c('div',{staticClass:\"new-format-table new-format-table__repeat\"},[_c('b',{staticClass:\"new-format-table--title\"},[_c('z-icon',{attrs:{\"fill\":\"var(--z-icon-warning-default)\",\"name\":\"warning-triangle\",\"height\":\"20px\",\"width\":\"20px\"}}),_vm._v(\" \"+_vm._s(_vm.$tc(\"downloadNewXMLFormat.Notice\"))+\" \")],1),_c('div',{staticClass:\"new-format-table--description\"},[_vm._v(\" \"+_vm._s(_vm.$tc(\"downloadNewXMLFormat.Description\"))+\" \")]),_c('z-toggle',{staticClass:\"new-format-table--toggle\",attrs:{\"size\":\"extra-small\",\"label\":_vm.$tc('downloadNewXMLFormat.Toggle')},model:{value:(_vm.generateXml.hasNewXMLFormat),callback:function ($$v) {_vm.$set(_vm.generateXml, \"hasNewXMLFormat\", $$v)},expression:\"generateXml.hasNewXMLFormat\"}})],1)]),_c('v-col',{staticStyle:{\"min-width\":\"100%\"},attrs:{\"cols\":\"10\"}},[_c('z-basic-button',{staticClass:\"mr-12\",attrs:{\"type\":\"neutral\",\"icon\":\"file-download-2\"},on:{\"click\":_vm.downloadXml}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"downloadComplete.RepeteDownload\"))+\" \")]),_c('z-basic-button',{attrs:{\"type\":\"primary-color\",\"icon\":\"file-download-2\"},on:{\"click\":_vm.close}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"downloadComplete.GoHome\"))+\" \")])],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"min-width\":\"100%\"},attrs:{\"cols\":\"10\"}},[_c('z-alert',{staticClass:\"mx-auto\",attrs:{\"type\":\"error\",\"message\":this.$tc('downloadComplete.Alert'),\"hideProgressBar\":\"\"}})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { GenerateXml } from \"@/models/entities/generate-xml.interface\";\r\nimport store from \"@/store\";\r\nimport OverlayModule from \"@/store/modules/overlay.module\";\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport { getModule } from \"vuex-module-decorators\";\r\nimport { downloadXmlService } from \"@/services/api/generate-xml.service\";\r\nimport { SnackbarModule } from \"@zelando/vuelando\";\r\n\r\nconst overlayModule = getModule(OverlayModule, store);\r\nconst snackbarModule = getModule(SnackbarModule, store);\r\n\r\n@Component\r\nexport default class DownloadComplete extends Vue {\r\n @Prop({ type: Object as () => GenerateXml, default: null, required: true })\r\n public generateXml: GenerateXml;\r\n\r\n private async downloadXml(): Promise {\r\n overlayModule.showOverlay();\r\n await downloadXmlService\r\n .GetDownloadXml(this.generateXml, false)\r\n .then((x) => {\r\n if (x.status == 200) {\r\n const element = document.createElement(\"a\");\r\n element.setAttribute(\r\n \"href\",\r\n \"data:text/xml;charset=utf-8,\" + encodeURIComponent(x.data)\r\n );\r\n const fileName =\r\n (!this.generateXml?.hasNewXMLFormat\r\n ? this.$tc(\"downloadNewXMLFormat.FileNameOld\")\r\n : this.$tc(\"downloadNewXMLFormat.FileName\")) +\r\n new Date().toFormat(\"yyyy_MM_dd_HH_mm\");\r\n element.setAttribute(\"download\", fileName);\r\n element.style.display = \"none\";\r\n document.body.appendChild(element);\r\n element.click();\r\n document.body.removeChild(element);\r\n }\r\n })\r\n .catch((e) => {\r\n if (\r\n (e.response?.status == 500 || e.response?.status == 400) &&\r\n e.response.data\r\n )\r\n snackbarModule.showSnackbar({\r\n message: this.$tc(e.response.data),\r\n type: \"error\",\r\n timer: 5000,\r\n });\r\n });\r\n }\r\n private close() {\r\n this.$emit(\"close\");\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DownloadComplete.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DownloadComplete.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DownloadComplete.vue?vue&type=template&id=5a1ba290&scoped=true&\"\nimport script from \"./DownloadComplete.vue?vue&type=script&lang=ts&\"\nexport * from \"./DownloadComplete.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DownloadComplete.vue?vue&type=style&index=0&id=5a1ba290&prod&scoped=true&lang=css&\"\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 \"5a1ba290\",\n null\n \n)\n\nexport default component.exports","// Types\nimport Vue, { VNode } from 'vue'\n\nexport default function VGrid (name: string) {\n /* @vue/component */\n return Vue.extend({\n name: `v-${name}`,\n\n functional: true,\n\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n },\n\n render (h, { props, data, children }): VNode {\n data.staticClass = (`${name} ${data.staticClass || ''}`).trim()\n\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n const classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n\n if (classes.length) data.staticClass += ` ${classes.join(' ')}`\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(props.tag, data, children)\n },\n })\n}\n","import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n name: 'v-container',\n functional: true,\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n fluid: {\n type: Boolean,\n default: false,\n },\n },\n render (h, { props, data, children }) {\n let classes\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'container',\n class: Array({\n 'container--fluid': props.fluid,\n }).concat(classes || []),\n }),\n children\n )\n },\n})\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DownloadComplete.vue?vue&type=style&index=0&id=5a1ba290&prod&scoped=true&lang=css&\""],"sourceRoot":""}