{"version":3,"sources":["webpack:///./node_modules/vue-xlsx/dist/polyfills.js","webpack:///./node_modules/vue-xlsx/dist/components/XlsxSheets.js","webpack:///./node_modules/vue-xlsx/dist/components/XlsxJson.js","webpack:///./src/views/Admin/General/Booths/Import.vue","webpack:///src/views/Admin/General/Booths/Import.vue","webpack:///./src/views/Admin/General/Booths/Import.vue?7953","webpack:///./src/views/Admin/General/Booths/Import.vue?fe4f","webpack:///./src/views/Admin/General/Booths/Import.vue?7c69","webpack:///./node_modules/vue-xlsx/dist/components/XlsxTable.js","webpack:///./node_modules/vue-xlsx/dist/components/XlsxRead.js"],"names":["globalPolyfill","global","window","script","inject","innerValue","this","getWorkbook","parseSheets","methods","wb","SheetNames","$emit","h","$scopedSlots","default","sheets","normalizeComponent","template","style","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","options","render","staticRenderFns","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","originalRender","existing","beforeCreate","concat","normalizeComponent_1","__vue_script__","__vue_inject_styles__","undefined","__vue_scope_id__","__vue_module_identifier__","__vue_is_functional_template__","XlsxSheets","SheetTo","props","sheet","type","String","Number","Object","loaded","computed","watch","loadedAndSheet","immediate","_callBack","console","warning","workbook","isInteger","mixins","collection","updateJson","load","utils","sheet_to_json","_sheet_to_json","ws","Sheets","sheetNameFinder","XlsxJson","_vm","_c","_self","is_loading","staticClass","_v","attrs","on","onChange","_m","file","scopedSlots","_u","key","fn","loading","directives","name","rawName","value","selectedSheet","expression","$event","$$selectedVal","Array","prototype","filter","target","o","selected","map","val","_value","multiple","_l","domProps","_s","staticStyle","getCollection","ImportToDatabase","x","components","XlsxRead","XlsxTable","data","sheetName","location","json_fields","created","event","files","addSheet","push","my_promise","i","length","DataForm","k","entries","formData","FormData","append","get","log","t","axios","post","my_api","headers","my_header","then","res","status","alert","Promise","all","GetLocation","result","n","toUpperCase","search","id","component","table","updateTable","sheet_to_html","_sheet_to_html","__vue_render__","_h","$createElement","_e","__vue_staticRenderFns__","WorkbookHandler","libLoaded","_callbackQueue","isArray","forEach","cb","_workbook","e","loadedAndFile","parseFile","read","_read","startLoading","reader","FileReader","onload","binary","bytes","Uint8Array","byteLength","fromCharCode","fireCallBacks","endLoading","onerror","readAsArrayBuffer"],"mappings":"kHAAA,sDAAO,MAAMA,EAAiB,KAC5B,IAAIC,EAASA,GAAUC,OACnBA,SACFA,OAAOD,OAASA,K,kCCHpB,IAAIE,EAAS,CACXC,OAAQ,CAAC,eACT,OACE,MAAO,CACLC,WAAY,KAGhB,UACEC,KAAKC,YAAYD,KAAKE,cAExBC,QAAS,CACP,YAAYC,GACVJ,KAAKD,WAAa,IAAIK,EAAGC,YACzBL,KAAKM,MAAM,SAAU,IAAIF,EAAGC,eAGhC,OAAOE,GACL,OAAIP,KAAKQ,aAAaC,QACbF,EAAE,MAAO,CACdP,KAAKQ,aAAaC,QAAQ,CACxBC,OAAQV,KAAKD,eAIZ,OAIX,SAASY,EAAmBC,EAAUC,EAAOhB,EAAQiB,EAASC,EAAsBC,EAElFC,EAAYC,EAAgBC,EAAmBC,GACrB,mBAAfH,IACTE,EAAoBD,EACpBA,EAAiBD,EACjBA,GAAa,GAIf,IAiBII,EAjBAC,EAA4B,oBAAXzB,EAAwBA,EAAOyB,QAAUzB,EAsD9D,GApDIe,GAAYA,EAASW,SACvBD,EAAQC,OAASX,EAASW,OAC1BD,EAAQE,gBAAkBZ,EAASY,gBACnCF,EAAQG,WAAY,EAEhBV,IACFO,EAAQI,YAAa,IAKrBZ,IACFQ,EAAQK,SAAWb,GAKjBE,GAEFK,EAAO,SAAcO,GAEnBA,EAAUA,GACV5B,KAAK6B,QAAU7B,KAAK6B,OAAOC,YAC3B9B,KAAK+B,QAAU/B,KAAK+B,OAAOF,QAAU7B,KAAK+B,OAAOF,OAAOC,WAGnDF,GAA0C,qBAAxBI,sBACrBJ,E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","sourcesContent":["export const globalPolyfill = () => {\n var global = global || window;\n if (window) {\n window.global = global;\n }\n};\n","var script = {\n inject: [\"getWorkbook\"],\n data() {\n return {\n innerValue: []\n };\n },\n mounted() {\n this.getWorkbook(this.parseSheets);\n },\n methods: {\n parseSheets(wb) {\n this.innerValue = [...wb.SheetNames];\n this.$emit(\"parsed\", [...wb.SheetNames]);\n }\n },\n render(h) {\n if (this.$scopedSlots.default) {\n return h(\"div\", [\n this.$scopedSlots.default({\n sheets: this.innerValue\n })\n ]);\n }\n return null;\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var XlsxSheets = normalizeComponent_1(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport default XlsxSheets;\n","var SheetTo = {\n inject: [\"getWorkbook\"],\n props: {\n sheet: {\n type: [String, Number],\n default: 0\n },\n options: {\n type: Object,\n default: () => ({})\n }\n },\n data() {\n return {\n loaded: false\n };\n },\n computed: {\n loadedAndSheet() {\n return this.loaded ? this.sheet : null;\n }\n },\n watch: {\n loadedAndSheet: {\n immediate: true,\n handler(sheet) {\n if (sheet !== null) {\n this.getWorkbook(this._callBack);\n }\n }\n }\n },\n mounted() {\n this._callBack = () => {\n console.warning(\"Missing data parsing callback\");\n };\n },\n methods: {\n sheetNameFinder(workbook) {\n return Number.isInteger(this.sheet)\n ? workbook.SheetNames[this.sheet]\n : this.sheet;\n }\n }\n};\n\nvar script = {\n mixins: [SheetTo],\n data() {\n return {\n collection: null\n };\n },\n mounted() {\n this._callBack = this.updateJson;\n this.load();\n },\n methods: {\n async load() {\n const {\n utils: { sheet_to_json }\n } = await import('xlsx');\n this._sheet_to_json = sheet_to_json;\n this.loaded = true;\n },\n updateJson(workbook) {\n const ws = workbook.Sheets[this.sheetNameFinder(workbook)];\n this.collection = this._sheet_to_json(ws, this.options);\n this.$emit(\"parsed\", this.collection);\n }\n },\n render(h) {\n if (this.$scopedSlots.default && this.loaded) {\n return h(\"div\", [\n this.$scopedSlots.default({\n collection: this.collection\n })\n ]);\n }\n return null;\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var XlsxJson = normalizeComponent_1(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport default XlsxJson;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.is_loading)?_c('div',[_c('ol',{staticClass:\"breadcrumb\"},[_c('li',{staticClass:\"breadcrumb-item\"},[_vm._v(\"Trang chủ\")]),_c('li',{staticClass:\"breadcrumb-item\"},[_c('router-link',{attrs:{\"to\":\"/admin/booth/lists\"}},[_vm._v(\" Quản lý Mặt bằng \")])],1),_c('li',{staticClass:\"breadcrumb-item\"},[_vm._v(\"Import Mặt bằng \")])]),_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"}),_c('div',{staticClass:\"card-block\"},[_c('div',[_c('section',[_c('h3',[_vm._v(\" Import Excel \")]),_c('input',{staticClass:\"form-control\",attrs:{\"type\":\"file\",\"accept\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel\"},on:{\"change\":_vm.onChange}}),_c('br'),_vm._m(0),_c('p',[_vm._v(\" Xem Trước dữ liệu \")]),_c('xlsx-read',{attrs:{\"file\":_vm.file},scopedSlots:_vm._u([{key:\"default\",fn:function({loading}){return [(loading)?_c('span',[_vm._v(\"Loading...\")]):_c('div',[_c('xlsx-sheets',{scopedSlots:_vm._u([{key:\"default\",fn:function({sheets}){return [_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedSheet),expression:\"selectedSheet\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedSheet=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((sheets),function(sheet){return _c('option',{key:sheet,domProps:{\"value\":sheet}},[_vm._v(\" \"+_vm._s(sheet)+\" \")])}),0)]}}],null,true)}),_c('xlsx-table',{attrs:{\"sheet\":_vm.selectedSheet}}),_c('xlsx-json',{staticStyle:{\"display\":\"none\"},attrs:{\"sheet\":_vm.selectedSheet},scopedSlots:_vm._u([{key:\"default\",fn:function({collection}){return [_vm._v(\" \"+_vm._s(collection)+\" \"),_c('div',[_vm._v(\" \"+_vm._s(_vm.getCollection(collection))+\" \")])]}}],null,true)})],1)]}}],null,false,1486765843)})],1)]),_c('br'),_c('button',{staticClass:\"btn btn-sm btn-primary\",attrs:{\"type\":\"submit\"},on:{\"click\":_vm.ImportToDatabase}},[_c('i',{staticClass:\"fa fa-save\"}),_vm._v(\" Lưu dữ liệu \")])])])])])])]):_c('div',[_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-12\"},_vm._l((10),function(x){return _c('MyLoading',{key:x,attrs:{\"height\":\"40px\",\"width\":\"100%\"}})}),1)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',[_c('a',{attrs:{\"href\":\"/layout/Quan_Ly_Mat_Bang.xlsx\",\"target\":\"_black\"}},[_vm._v(\"Mẫu CSV\")])])\n}]\n\nexport { render, staticRenderFns }","\n\n \n \n Trang chủ\n \n \n Quản lý Mặt bằng \n \n\n Import Mặt bằng \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n Import Excel \n\n \n \n\n \n Mẫu CSV \n Xem Trước dữ liệu \n\n \n\n \n \n Loading...\n \n\n \n\n\n \n \n \n {{ sheet }}\n \n \n \n \n \n\n \n \n {{collection}}\n \n {{ getCollection(collection) }}\n \n \n \n \n \n \n \n\n \n \n \n \n \n Lưu dữ liệu \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Import.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Import.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Import.vue?vue&type=template&id=da3fafb6&\"\nimport script from \"./Import.vue?vue&type=script&lang=js&\"\nexport * from \"./Import.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Import.vue?vue&type=style&index=0&id=da3fafb6&prod&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 null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/@vue/cli-service/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!./Import.vue?vue&type=style&index=0&id=da3fafb6&prod&lang=css&\"","var SheetTo = {\n inject: [\"getWorkbook\"],\n props: {\n sheet: {\n type: [String, Number],\n default: 0\n },\n options: {\n type: Object,\n default: () => ({})\n }\n },\n data() {\n return {\n loaded: false\n };\n },\n computed: {\n loadedAndSheet() {\n return this.loaded ? this.sheet : null;\n }\n },\n watch: {\n loadedAndSheet: {\n immediate: true,\n handler(sheet) {\n if (sheet !== null) {\n this.getWorkbook(this._callBack);\n }\n }\n }\n },\n mounted() {\n this._callBack = () => {\n console.warning(\"Missing data parsing callback\");\n };\n },\n methods: {\n sheetNameFinder(workbook) {\n return Number.isInteger(this.sheet)\n ? workbook.SheetNames[this.sheet]\n : this.sheet;\n }\n }\n};\n\n//\n\nvar script = {\n mixins: [SheetTo],\n data() {\n return {\n table: null\n };\n },\n mounted() {\n this._callBack = this.updateTable;\n this.load();\n },\n methods: {\n async load() {\n const {\n utils: { sheet_to_html }\n } = await import('xlsx');\n this._sheet_to_html = sheet_to_html;\n this.loaded = true;\n },\n updateTable(workbook) {\n const ws = workbook.Sheets[this.sheetNameFinder(workbook)];\n this.table = this._sheet_to_html(ws, this.options);\n }\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.table)?_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.table)}}):_vm._e()};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var XlsxTable = normalizeComponent_1(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport default XlsxTable;\n","var WorkbookHandler = {\n data() {\n return {\n libLoaded: false,\n loading: false\n };\n },\n provide() {\n return {\n getWorkbook: this.getWorkbook\n };\n },\n methods: {\n startLoading() {\n this.loading = true;\n this.$emit(\"loading\", this.loading);\n },\n endLoading() {\n this.loading = false;\n this.$emit(\"loading\", this.loading);\n },\n fireCallBacks() {\n if (this._callbackQueue && Array.isArray(this._callbackQueue)) {\n this._callbackQueue.forEach(cb => {\n try {\n cb(this._workbook);\n } catch (e) {\n console.warning(\"error in firing callbacks\", e);\n }\n });\n }\n },\n getWorkbook(cb) {\n if (this._callbackQueue) {\n this._callbackQueue.push(cb);\n }\n if (this._workbook) {\n cb(this._workbook);\n }\n }\n }\n};\n\nvar script = {\n mixins: [WorkbookHandler],\n props: {\n file: {\n type: null,\n default: null\n },\n options: {\n type: Object,\n default: () => ({})\n }\n },\n computed: {\n loadedAndFile() {\n return this.libLoaded ? this.file : null;\n }\n },\n watch: {\n loadedAndFile: {\n immediate: true,\n handler(file) {\n if (file) {\n this.parseFile(file);\n }\n }\n }\n },\n mounted() {\n this.load();\n },\n methods: {\n async load() {\n const { globalPolyfill } = require(\"../polyfills\");\n globalPolyfill();\n const { read } = await import('xlsx');\n this._read = read;\n this.libLoaded = true;\n this._callbackQueue = [];\n },\n parseFile(file) {\n this.startLoading();\n const reader = new FileReader();\n reader.onload = e => {\n let binary = \"\";\n const bytes = new Uint8Array(e.target.result);\n const length = bytes.byteLength;\n for (var i = 0; i < length; i++) {\n binary += String.fromCharCode(bytes[i]);\n }\n this._workbook = this._read(binary, {\n type: \"binary\",\n ...this.options\n });\n this.fireCallBacks();\n this.$emit(\"parsed\", this._workbook);\n this.endLoading();\n };\n reader.onerror = e => {\n console.log(e);\n };\n reader.readAsArrayBuffer(file);\n }\n },\n render(h) {\n if (this.$scopedSlots.default && this.libLoaded) {\n return h(\"div\", [\n this.$scopedSlots.default({\n loading: this.loading\n })\n ]);\n }\n return null;\n }\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var XlsxRead = normalizeComponent_1(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport default XlsxRead;\n"],"sourceRoot":""}
Mẫu CSV \n
Xem Trước dữ liệu