{"version":3,"sources":["webpack:///./src/components/Pages/ProductSpecsPage.vue","webpack:///./src/components/Pages/ProductSpecsPage.vue?2959","webpack:///./src/components/Pages/ProductSpecsPage.vue?43a6","webpack:///./src/components/Pages/ProductSpecsPage.vue?4e7c","webpack:///./src/components/Pages/ProductSpecsPage.vue?722c"],"names":["component","render","_vm","this","_h","$createElement","_c","_self","staticClass","scopedSlots","_u","key","fn","domProps","_s","$t","attrs","getTechSpecsUrl","_v","directives","name","rawName","modifiers","staticStyle","proxy","_m","uploading","_e","model","value","callback","$$v","file","expression","staticRenderFns","vue_property_decorator_1","require","axios_1","tslib_1","__importDefault","General_1","HelpContent_vue_1","ProductSpecs","_vue_property_decorat","_this","_classCallCheck","uploadComplete","_inherits","_createClass","fileVal","uploadFile","app","formData","FormData","append","_context","prev","next","default","method","url","General","GetApiUrl","data","withCredentials","response","sent","onUploadComplete","errors","error","i","length","showAlertDangerAsHTML","showAlertSuccess","t0","HandleError","stop","_callee","Vue","__decorate","Watch","Component","components","HelpContent"],"mappings":"gHAAA,oIAOIA,EAAY,eACd,aACA,OACA,QACA,EACA,KACA,WACA,MAIa,aAAAA,E,2CClBf,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,cAAc,CAACG,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,gBAAgBC,GAAG,WAAW,MAAO,CAACN,EAAG,OAAO,CAACO,SAAS,CAAC,UAAYX,EAAIY,GAAGZ,EAAIa,GAAG,2BAA2BT,EAAG,SAAS,CAACU,MAAM,CAAC,KAAOd,EAAIe,oBAAoB,CAACf,EAAIgB,GAAGhB,EAAIY,GAAGZ,EAAIa,GAAG,0BAA0BT,EAAG,IAAI,CAACA,EAAG,WAAW,CAACa,WAAW,CAAC,CAACC,KAAK,WAAWC,QAAQ,wBAAwBC,UAAU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AAQnD,KAAK6B,MAAMuB,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAKVpB,EAAAqB,QAAM,CACvBC,OAAQ,OACRC,IAAKpB,EAAAqB,QAAQC,UAAU,mCACvBC,KAAMX,EACNY,iBAAiB,IACnB,OAIF,GATIC,EAAQV,EAAAW,KAOZf,EAAIgB,mBAEAF,EAASF,KAAKK,OAAQ,CAEtB,IADIC,EAAQ,GACHC,EAAI,EAAGA,EAAIL,EAASF,KAAKK,OAAOG,OAAQD,IAC7CD,GAASJ,EAASF,KAAKK,OAAOE,GAAK,QAEvC9B,EAAAqB,QAAQW,sBAAsBH,EAAOlB,QAGrCX,EAAAqB,QAAQY,iBAAiBtE,KAAKY,GAAG,0BAAqCoC,GACzEI,EAAAE,KAAA,iBAAAF,EAAAC,KAAA,GAAAD,EAAAmB,GAAAnB,EAAA,YAGDf,EAAAqB,QAAQc,YAAWpB,EAAAmB,GAAQvE,MAAM,yBAAAoD,EAAAqB,UAAAC,EAAA,qBAGxC,CAAAlE,IAAA,mBAAAkB,MACD,WACI1B,KAAKuB,WAAY,EACjBvB,KAAK2C,gBAAiB,IACzB,CAAAnC,IAAA,QAAAkB,MACD,WACI1B,KAAKuB,WAAY,EACjBvB,KAAK2C,gBAAiB,IACzB,CAAAnC,IAAA,kBAAAkB,MACD,WACI,IAAI+B,EAAMpB,EAAAqB,QAAQC,UAAU,qCAC5B,OAAOF,MA1DkB,CAASzB,EAAA2C,KAQtCxC,EAAAyC,WAAA,CADC5C,EAAA6C,MAAM,S,+BAPUtC,EAAYJ,EAAAyC,WAAA,CALhC5C,EAAA8C,UAAU,CACPC,WAAY,CACRC,YAAA1C,EAAAiB,YAGahB,G,UAAAA,G,kCC5ErB,iHAA4Z,eAAG","file":"js/chunk-a6ea1de4.d98bf174.js","sourcesContent":["import { render, staticRenderFns } from \"./ProductSpecsPage.vue?vue&type=template&id=662f01ce&scoped=true\"\nimport script from \"./ProductSpecsPage.vue?vue&type=script&lang=ts\"\nexport * from \"./ProductSpecsPage.vue?vue&type=script&lang=ts\"\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 \"662f01ce\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-relative\"},[_c('HelpContent',{scopedSlots:_vm._u([{key:\"modalHelpBody\",fn:function(){return [_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.HELP_INTENT'))}}),_c('b-link',{attrs:{\"href\":_vm.getTechSpecsUrl()}},[_vm._v(_vm._s(_vm.$t('GENERIC.CLICK_HERE')))]),_c('p',[_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.collapse-1\",modifiers:{\"collapse-1\":true}}],attrs:{\"variant\":\"btn btn-light\"}},[_c('i',{staticClass:\"fa fa-info-circle\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.INSTRUCTIONS')))])],1),_c('div',{staticStyle:{\"margin-top\":\"20px\"}},[_c('b-collapse',{attrs:{\"id\":\"collapse-1\"}},[_c('b-card',[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.HELP_CONTENT'))}})])],1)],1)]},proxy:true}])}),_c('div',{staticClass:\"page pt-4\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"alert alert-light shadow-sm p-3 mb-5 bg-white rounded border\",attrs:{\"role\":\"alert\"}},[_vm._m(0),_c('div',{staticClass:\"alert-text pl-0\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.DOWNLOAD_EXEL_SPEC'))+\" \"),_c('b-link',{attrs:{\"href\":_vm.getTechSpecsUrl()}},[_vm._v(_vm._s(_vm.$t('GENERIC.CLICK_HERE')))])],1)]),_c('hr'),(!_vm.uploading)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.FILE_NEW_SPEC'))+\" \")]),_c('div',{staticClass:\"col-8\"},[_c('b-form-file',{attrs:{\"browse-text\":_vm.$t('GENERIC.SEARCH'),\"placeholder\":_vm.$t('GENERIC.FILE_UPLOAD_PLACEHOLDER')},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[(_vm.uploading)?_c('div',{staticClass:\"alert alert-info\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}),_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.UPLOAD_SPEC'))+\" \")],1):_vm._e()])])]),_c('hr',{staticClass:\"mt-2 mb-2\"})])])])])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"alert-icon showonly-desktop\",staticStyle:{\"align-items\":\"flex-start\"}},[_c('i',{staticClass:\"fa fa-3x fa-database text-primary\",attrs:{\"aria-hidden\":\"true\"}})])}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSpecsPage.vue?vue&type=template&id=662f01ce&scoped=true\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch } from 'vue-property-decorator';\nimport axios from 'axios';\nimport { General } from '@/services/General';\nimport HelpContent from '../HelpContent.vue';\n\n@Component({\n components: {\n HelpContent\n }\n})\nexport default class ProductSpecs extends Vue {\n file: any = [];\n uploading: boolean = false;\n uploadComplete: boolean = false;\n\n mounted() {\n }\n @Watch('file')\n fileChange(fileVal: any) {\n this.file = fileVal;\n this.uploadFile();\n }\n\n async uploadFile() {\n this.uploading = true;\n this.uploadComplete = false;\n let app = this;\n let formData = new FormData();\n formData.append('file', this.file);\n \n \n try {\n \n let response = await axios({\n method: 'post',\n url: General.GetApiUrl('/api/product/importproductspecs'),\n data: formData,\n withCredentials: true\n });\n\n app.onUploadComplete();\n \n if (response.data.errors) {\n let error = \"\";\n for (let i = 0; i < response.data.errors.length; i++) {\n error += response.data.errors[i] + \"
\";\n }\n General.showAlertDangerAsHTML(error, app);\n }\n else {\n General.showAlertSuccess(this.$t('PRODUCT.UPLOAD_SUCCESS') as string, app);\n }\n \n }catch(error){\n General.HandleError(error, this);\n }\n \n }\n onUploadComplete() {\n this.uploading = false;\n this.uploadComplete = true;\n }\n reset() {\n this.uploading = false;\n this.uploadComplete = false;\n }\n getTechSpecsUrl() {\n let url = General.GetApiUrl('/api/product/DownloadProductSpecs');\n return url;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSpecsPage.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSpecsPage.vue?vue&type=script&lang=ts\""],"sourceRoot":""}