(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["import"],{"1bc7":function(e,t,r){e.exports={primary:"#102537",secondary:"#d6e4eb",warning:"#e9ab05",success:"#0abb59",error:"#e7201b","light-grey":"#f7f7f7",dark:"#272727",grey:"#e3e3e3"}},"1d44":function(e,t,r){e.exports={primary:"#102537",secondary:"#d6e4eb",warning:"#e9ab05",success:"#0abb59",error:"#e7201b","light-grey":"#f7f7f7",dark:"#272727",grey:"#e3e3e3"}},3442:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"product-import"},[t("div",{staticClass:"container view"},[t("div",{staticClass:"product-import__wrapper"},[t("Card",{staticClass:"product-import__form",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}},scopedSlots:e._u([{key:"header",fn:function(){return[t("h1",[e._v(e._s(e.$t("contactImport")))])]},proxy:!0},{key:"default",fn:function(){return[t("FileComponent",{attrs:{upload:e.fileHandler,label:e.$tc("file")+" (CSV)"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}}),t("Alert",{staticClass:"mt-2",attrs:{theme:"primary"}},[[t("a",{attrs:{href:e.downloadTemplateUrl,target:"_blank"}},[e._v(e._s(e.$t("downloadTemplate")))]),e._v("\n              "+e._s(e.$t("importTemplateDescription"))+"\n            ")]],2)]},proxy:!0},{key:"footer",fn:function(){return[t("ButtonComponent",{attrs:{type:"submit",label:e.$t("import"),promise:e.promise,disabled:!e.file||e.response&&!e.response.failed,icon:["fal","arrow-to-right"],theme:"primary"}})]},proxy:!0}])}),e.response?t("Alert",{staticClass:"mt-2",attrs:{theme:e.response.failed?"error":"success"}},[e.response.failed?[t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("importFailedResolveIssues")))]),t("div",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.errors))])]:[e._v("\n          "+e._s(e.$t("importedXItem",{count:e.response.imported,item:e.$tc("contact",e.response.imported).toLowerCase()}))+"\n        ")]],2):e._e()],1)])])},s=[],o=(r("96cf"),r("3b8d")),a=r("ae8d"),i=r("27f9"),l=r("bab7"),u={nb:"https://docs.google.com/spreadsheets/d/1dbLwNtPTreU-r8RzwCLbUMJxoFJxdBcVmOHNtyoVHSw/edit?usp=sharing",en:"https://docs.google.com/spreadsheets/d/1FIVUa08LnsnkDc72IJdgIgEA3rCvmrYWsYEAdtdzL7o/edit?usp=sharing"},p={props:{language:{type:String,default:"en"}},data:function(){return{file:null,response:null,promise:null}},computed:{downloadTemplateUrl:function(){return u[this.language]||u["en"]},errors:function(){if(this.response&&this.response.failed)return JSON.stringify(this.response.details.error,null,{space:"  "})}},methods:{fileHandler:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.response=null,t){e.next=3;break}return e.abrupt("return");case 3:return e.abrupt("return",{name:t.name,size:t.size,type:t.type,value:t,url:"#"});case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),upload:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dry,n=void 0===r||r;return this.file?new Promise((function(t,r){var s="/api/import/contact";n||(s+="?run=true");var o=new FormData;o.append("file",e.file.value);var a=new XMLHttpRequest;a.responseType="json",a.onreadystatechange=function(){if(4===this.readyState)return this.status>=200&&this.status<=400?t(a.response):r(a.response)},a.open("POST",s),a.send(o)})):Promise.reject(new Error("Missing file"))},submit:function(){var e=this;this.promise=this.upload().then((function(t){return!t.failed&&t.dry?e.upload({dry:!1}):t})).then((function(t){e.response=t}))}},metaInfo:function(){return{title:this.$t("contactImport")}},components:{Card:a["a"],FileComponent:i["a"],Alert:l["a"]}},c=p,d=(r("d5954"),r("2877")),f=Object(d["a"])(c,n,s,!1,null,null,null);t["default"]=f.exports},"377b":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t(e.component,{tag:"component",attrs:{language:e.language}})},s=[],o=(r("a481"),r("aef6"),r("ac6a"),r("d20c")),a={};o.keys().forEach((function(e){if(!e.endsWith("index.js")){var t=e.replace(/(\.\/|\.vue)/g,"");a[t]=o(e).default}}));var i=a,l=r("ed08"),u={props:{type:String},computed:{language:function(){return this.$path("$store.state.enums.Language")},component:function(){return i[Object(l["c"])(this.type)]}}},p=u,c=r("2877"),d=Object(c["a"])(p,n,s,!1,null,null,null);t["default"]=d.exports},"3a75":function(e,t,r){"use strict";r("1bc7")},4375:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"product-import"},[t("div",{staticClass:"container view"},[t("div",{staticClass:"product-import__wrapper"},[t("Card",{staticClass:"product-import__form",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}},scopedSlots:e._u([{key:"header",fn:function(){return[t("h1",[e._v(e._s(e.$t("productImport")))])]},proxy:!0},{key:"default",fn:function(){return[t("FileComponent",{attrs:{upload:e.fileHandler,label:e.$tc("file")+" (CSV)"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}}),t("Alert",{staticClass:"mt-2",attrs:{theme:"primary"}},[[t("a",{attrs:{href:e.downloadTemplateUrl,target:"_blank"}},[e._v(e._s(e.$t("downloadTemplate")))]),e._v("\n              "+e._s(e.$t("importTemplateDescription"))+"\n            ")]],2)]},proxy:!0},{key:"footer",fn:function(){return[t("ButtonComponent",{attrs:{type:"submit",label:e.$t("import"),promise:e.promise,disabled:!e.file||e.response&&!e.response.failed,icon:["fal","arrow-to-right"],theme:"primary"}})]},proxy:!0}])}),e.response?t("Alert",{staticClass:"mt-2",attrs:{theme:e.response.failed?"error":"success"}},[e.response.failed?[t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("importFailedResolveIssues")))]),t("div",{staticStyle:{"word-break":"break-all"},domProps:{innerHTML:e._s(e.errors)}})]:[e._v("\n          "+e._s(e.$t("importStarted",{count:e.response.imported}))+"\n        ")]],2):e._e()],1)])])},s=[],o=(r("96cf"),r("3b8d")),a=r("ae8d"),i=r("27f9"),l=r("bab7"),u={nb:"https://docs.google.com/spreadsheets/d/1OQmtJGo36d0Zd3_9uCfHP5OppOCz37LAfXqasXEMP8Q/edit#gid=312043959",en:"https://docs.google.com/spreadsheets/d/1u4qKbHOOVmPvYTXO9oK7ML_6w6_LA_uhI6GYpPIS4Yo/edit?usp=sharing"},p={props:{language:{type:String,default:"en"}},data:function(){return{file:null,response:null,promise:null}},computed:{downloadTemplateUrl:function(){return u[this.language]||u["en"]},errors:function(){if(this.response&&this.response.failed)return JSON.stringify(this.response.details.error,null,{space:"  "})}},methods:{fileHandler:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.response=null,t){e.next=3;break}return e.abrupt("return");case 3:return e.abrupt("return",{name:t.name,size:t.size,type:t.type,value:t,url:"#"});case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),upload:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dry,n=void 0===r||r;return this.file?new Promise((function(t,r){var s="/api/import/product";n||(s+="?run=true");var o=new FormData;o.append("file",e.file.value);var a=new XMLHttpRequest;a.responseType="json",a.onreadystatechange=function(){if(4===this.readyState)return this.status>=200&&this.status<=400?t(a.response):r(a.response)},a.open("POST",s),a.send(o)})):Promise.reject(new Error("Missing file"))},submit:function(){var e=this;this.promise=this.upload().then((function(t){if(e.response=t,t.failed)throw""}))}},metaInfo:function(){return{title:this.$t("productImport")}},components:{Card:a["a"],FileComponent:i["a"],Alert:l["a"]}},c=p,d=(r("eced"),r("2877")),f=Object(d["a"])(c,n,s,!1,null,null,null);t["default"]=f.exports},"6c2a":function(e,t,r){e.exports={primary:"#102537",secondary:"#d6e4eb",warning:"#e9ab05",success:"#0abb59",error:"#e7201b","light-grey":"#f7f7f7",dark:"#272727",grey:"#e3e3e3"}},"7aa3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"product-import"},[t("div",{staticClass:"container view"},[t("div",{staticClass:"product-import__wrapper"},[t("Card",{staticClass:"product-import__form",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}},scopedSlots:e._u([{key:"header",fn:function(){return[t("h1",[e._v(e._s(e.$t("productImport"))+" Nobb")])]},proxy:!0},{key:"default",fn:function(){return[t("FileComponent",{attrs:{upload:e.fileHandler,label:e.$tc("file")+" (CSV)"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}}),t("Alert",{staticClass:"mt-2",attrs:{theme:"primary"}},[[t("a",{attrs:{href:e.downloadTemplateUrl,target:"_blank"}},[e._v(e._s(e.$t("downloadTemplate")))]),e._v("\n              "+e._s(e.$t("importTemplateDescription"))+"\n            ")]],2)]},proxy:!0},{key:"footer",fn:function(){return[t("ButtonComponent",{attrs:{type:"submit",label:e.$t("import"),promise:e.promise,disabled:!e.file||e.response&&!e.response.failed,icon:["fal","arrow-to-right"],theme:"primary"}})]},proxy:!0}])}),e.response?t("Alert",{staticClass:"mt-2",attrs:{theme:e.response.failed?"error":"success"}},[e.response.failed?[t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("importFailedResolveIssues")))]),t("div",{staticStyle:{"word-break":"break-all"},domProps:{innerHTML:e._s(e.errors)}})]:[e._v("\n          "+e._s(e.$t("importStarted",{count:e.response.imported}))+"\n        ")]],2):e._e()],1)])])},s=[],o=(r("96cf"),r("3b8d")),a=r("ae8d"),i=r("27f9"),l=r("bab7"),u={nb:"https://docs.google.com/spreadsheets/d/1ffHNyfpAoxwTz952B_2NnQRkOOM9A8IA-KKOYEf3ygU/edit#gid=312043959",en:"https://docs.google.com/spreadsheets/d/1dqrRftx_2vHx7Vb-YdBVv4VWiAz-qozOgQFCI1S3oYQ/edit?usp=sharing"},p={props:{language:{type:String,default:"en"}},data:function(){return{file:null,response:null,promise:null}},computed:{downloadTemplateUrl:function(){return u[this.language]||u["en"]},errors:function(){if(this.response&&this.response.failed)return JSON.stringify(this.response.details.error,null,{space:"  "})}},methods:{fileHandler:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.response=null,t){e.next=3;break}return e.abrupt("return");case 3:return e.abrupt("return",{name:t.name,size:t.size,type:t.type,value:t,url:"#"});case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),upload:function(){var e=this;return this.file?new Promise((function(t,r){var n="/api/import/product?source=nobb",s=new FormData;s.append("file",e.file.value);var o=new XMLHttpRequest;o.responseType="json",o.onreadystatechange=function(){if(4===this.readyState)return this.status>=200&&this.status<=400?t(o.response):r(o.response)},o.open("POST",n),o.send(s)})):Promise.reject(new Error("Missing file"))},submit:function(){var e=this;this.promise=this.upload().then((function(t){if(e.response=t,t.failed)throw""}))}},metaInfo:function(){return{title:this.$t("productImport")}},components:{Card:a["a"],FileComponent:i["a"],Alert:l["a"]}},c=p,d=(r("3a75"),r("2877")),f=Object(d["a"])(c,n,s,!1,null,null,null);t["default"]=f.exports},"97ac":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"unit-import"},[t("div",{staticClass:"container view"},[t("div",{staticClass:"unit-import__wrapper"},[t("Card",{staticClass:"unit-import__form",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}},scopedSlots:e._u([{key:"header",fn:function(){return[t("h1",[e._v(e._s(e.$t("unitImport")))])]},proxy:!0},{key:"default",fn:function(){return[t("FileComponent",{attrs:{upload:e.fileHandler,label:e.$tc("file")+" (CSV)"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}}),t("Alert",{staticClass:"mt-2",attrs:{theme:"primary"}},[[t("a",{attrs:{href:e.downloadTemplateUrl,target:"_blank"}},[e._v(e._s(e.$t("downloadTemplate")))]),e._v("\n              "+e._s(e.$t("importTemplateDescription"))+"\n            ")]],2)]},proxy:!0},{key:"footer",fn:function(){return[t("ButtonComponent",{attrs:{type:"submit",label:e.$t("import"),promise:e.promise,disabled:!e.file||e.response&&!e.response.failed,icon:["fal","arrow-to-right"],theme:"primary"}})]},proxy:!0}])}),e.response?t("Alert",{staticClass:"mt-2",attrs:{theme:e.response.failed?"error":"success"}},[e.response.dry?e._e():[e._v("\n          "+e._s(e.$t("importedXItem",{count:e.response.imported,item:e.$tc("unit",e.response.imported).toLowerCase()})))],e.response.failed?[t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("importFailedResolveIssues")))]),t("div",{staticStyle:{"word-break":"break-all"},domProps:{innerHTML:e._s(e.errors)}})]:e._e()],2):e._e()],1)])])},s=[],o=(r("96cf"),r("3b8d")),a=r("ae8d"),i=r("27f9"),l=r("bab7"),u={nb:"https://docs.google.com/spreadsheets/d/1DQUTGvfnvxTkLgwHHXYA51IjiGUkALiDiGlqFS2VAT8/edit?usp=sharing&single=true&output=csv",en:"https://docs.google.com/spreadsheets/d/1l1WBspNAGVguzGJsZ_7lglLGXZ4-gt3SOPQSSgBkIUQ/edit?usp=sharing"},p={props:{language:{type:String,default:"en"}},data:function(){return{file:null,response:null,promise:null}},computed:{downloadTemplateUrl:function(){return u[this.language]||u["en"]},errors:function(){if(this.response&&this.response.failed)return JSON.stringify(this.response.details.error,null,{space:"  "})}},methods:{fileHandler:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.response=null,t){e.next=3;break}return e.abrupt("return");case 3:return e.abrupt("return",{name:t.name,size:t.size,type:t.type,value:t,url:"#"});case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),upload:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dry,n=void 0===r||r;return this.file?new Promise((function(t,r){var s="/api/import/unit";n||(s+="?run=true");var o=new FormData;o.append("file",e.file.value);var a=new XMLHttpRequest;a.responseType="json",a.onreadystatechange=function(){if(4===this.readyState)return this.status>=200&&this.status<=400?t(a.response):r(a.response)},a.open("POST",s),a.send(o)})):Promise.reject(new Error("Missing file"))},submit:function(){var e=this;this.promise=this.upload().then((function(t){return!t.failed&&t.dry?e.upload({dry:!1}):t})).then((function(t){e.response=t}))}},metaInfo:function(){return{title:this.$t("unitImport")}},components:{Card:a["a"],FileComponent:i["a"],Alert:l["a"]}},c=p,d=(r("e8bd"),r("2877")),f=Object(d["a"])(c,n,s,!1,null,null,null);t["default"]=f.exports},"9f04":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"task-import"},[t("div",{staticClass:"container view"},[t("div",{staticClass:"task-import__wrapper"},[t("Card",{staticClass:"task-import__form",attrs:{tag:"form"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}},scopedSlots:e._u([{key:"header",fn:function(){return[t("h1",[e._v(e._s(e.$t("taskImport")))])]},proxy:!0},{key:"default",fn:function(){return[t("FileComponent",{attrs:{upload:e.fileHandler,label:e.$tc("file")+" (CSV)"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}}),t("Alert",{staticClass:"mt-2",attrs:{theme:"primary"}},[[t("a",{attrs:{href:e.downloadTemplateUrl,target:"_blank"}},[e._v(e._s(e.$t("downloadTemplate")))]),e._v("\n              "+e._s(e.$t("importTemplateDescription"))+"\n            ")]],2)]},proxy:!0},{key:"footer",fn:function(){return[t("ButtonComponent",{attrs:{type:"submit",label:e.$t("import"),promise:e.promise,disabled:!e.file||e.response&&!e.response.failed,icon:["fal","arrow-to-right"],theme:"primary"}})]},proxy:!0}])}),e.response?t("Alert",{staticClass:"mt-2",attrs:{theme:e.response.failed?"error":"success"}},[e.response.failed?[t("div",{staticClass:"mb-1"},[e._v(e._s(e.$t("importFailedResolveIssues")))]),t("div",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.errors))])]:[e._v("\n          "+e._s(e.$t("importedXItem",{count:e.response.imported,item:e.$tc("task",e.response.imported).toLowerCase()}))+"\n        ")]],2):e._e()],1)])])},s=[],o=(r("96cf"),r("3b8d")),a=r("ae8d"),i=r("27f9"),l=r("bab7"),u={nb:"https://docs.google.com/spreadsheets/d/1036rauvypNan2M_VjIgSc1MYGVE5Ec162fqUtY8rOJY/edit?usp=sharing",en:"https://docs.google.com/spreadsheets/d/1LeKvFu0-_bErpyl16A_N6PllKvdQZ1AEp5hu85G_bf8/edit?usp=sharing"},p={props:{language:{type:String,default:"en"}},data:function(){return{file:null,response:null,promise:null}},computed:{downloadTemplateUrl:function(){return u[this.language]||u["en"]},errors:function(){if(this.response&&this.response.failed)return JSON.stringify(this.response.details.error,null,{space:"  "})}},methods:{fileHandler:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.response=null,t){e.next=3;break}return e.abrupt("return");case 3:return e.abrupt("return",{name:t.name,size:t.size,type:t.type,value:t,url:"#"});case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),upload:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dry,n=void 0===r||r;return this.file?new Promise((function(t,r){var s="/api/import/task";n||(s+="?run=true");var o=new FormData;o.append("file",e.file.value);var a=new XMLHttpRequest;a.responseType="json",a.onreadystatechange=function(){if(4===this.readyState)return this.status>=200&&this.status<=400?t(a.response):r(a.response)},a.open("POST",s),a.send(o)})):Promise.reject(new Error("Missing file"))},submit:function(){var e=this;this.promise=this.upload().then((function(t){return!t.failed&&t.dry?e.upload({dry:!1}):t})).then((function(t){e.response=t}))}},metaInfo:function(){return{title:this.$t("taskImport")}},components:{Card:a["a"],FileComponent:i["a"],Alert:l["a"]}},c=p,d=(r("a9e2"),r("2877")),f=Object(d["a"])(c,n,s,!1,null,null,null);t["default"]=f.exports},a9e2:function(e,t,r){"use strict";r("dd17")},b313:function(e,t,r){e.exports={primary:"#102537",secondary:"#d6e4eb",warning:"#e9ab05",success:"#0abb59",error:"#e7201b","light-grey":"#f7f7f7",dark:"#272727",grey:"#e3e3e3"}},d20c:function(e,t,r){var n={"./Contact.vue":"3442","./Nobb.vue":"7aa3","./Product.vue":"4375","./Task.vue":"9f04","./Unit.vue":"97ac"};function s(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id="d20c"},d5954:function(e,t,r){"use strict";r("b313")},dd17:function(e,t,r){e.exports={primary:"#102537",secondary:"#d6e4eb",warning:"#e9ab05",success:"#0abb59",error:"#e7201b","light-grey":"#f7f7f7",dark:"#272727",grey:"#e3e3e3"}},e8bd:function(e,t,r){"use strict";r("1d44")},eced:function(e,t,r){"use strict";r("6c2a")}}]);
//# sourceMappingURL=import.8095af5f.js.map