b433927.js.map 7.0 KB

1
  1. {"version":3,"sources":["webpack:///./components/Project.vue?a6f7","webpack:///./assets/img/builder.png","webpack:///./components/Project.vue?5d3d","webpack:///./components/Project.vue","webpack:///./components/Project.vue?b1ea","webpack:///./components/Project.vue?801b"],"names":["module","exports","props","productInfo","type","Object","default","data","defaultURL","computed","isLogin","_this$$store$state$us","this","$store","state","userInfo","email","shouldButtonRecordShow","_this$productInfo$rec","test","record","record_reason","length","mounted","methods","generateLink","target","document","getElementById","config","name","contacts","phone","company","product","concat","product_name","product_code","query","key","encodeURIComponent","slice","href","handleAdd","$emit","openZoho","querySelector","click","toProductBuilder","_this","$utils","checkLogin","setTimeout","location","origin","$route","params","code","component","_vm","_c","_self","staticClass","directives","rawName","value","expression","on","attrs","require","_v"],"mappings":"8EACAA,EAAOC,QAAU,CAAC,C,oBCDlBD,EAAOC,QAAU,w/B,mCCAjB,M,kECAA,ICAoP,EDCrO,CACbC,MAAO,CACLC,YAAa,CACXC,KAAMC,OACNC,QAAS,WACP,MAAO,CAAC,CACV,IAGJC,KAAI,WACF,MAAO,CACLC,WAAY,yCAEhB,EACAC,SAAU,CACRC,QAAO,WAAG,IAAAC,EACR,QAAmC,QAA3BA,EAACC,KAAKC,OAAOC,MAAMC,gBAAQ,IAAAJ,IAA1BA,EAA4BK,MACvC,EACAD,SAAQ,WACN,OAAOH,KAAKC,OAAOC,MAAMC,UAAY,CAAC,CACxC,EACAE,uBAAsB,WAAG,IAAAC,EACvB,OACEN,KAAKF,SACL,2BAA2BS,KAAKP,KAAKG,SAASC,QAC9CJ,KAAKT,YAAYiB,SACM,QADAF,EACvBN,KAAKT,YAAYiB,cAAM,IAAAF,GAAe,QAAfA,EAAvBA,EAAyBG,qBAAa,IAAAH,OAAA,EAAtCA,EAAwCI,OAE5C,GAEFC,QAAO,WACL,EAEFC,QAAS,CACPC,aAAY,WACV,IAAMC,EAASC,SAASC,eAAe,oBACjCC,EAAS,CACbC,KAAMlB,KAAKG,SAASgB,SACpBC,MAAOpB,KAAKG,SAASiB,MACrBhB,MAAOJ,KAAKG,SAASC,MACrBiB,QAASrB,KAAKG,SAASkB,QACvBC,QAAS,GAAFC,OAAKvB,KAAKT,YAAYiC,aAAY,OAAAD,OAAMvB,KAAKT,YAAYkC,eAG9DC,EAAQ,GACZ,IAAK,IAAMC,KAAOV,EACZA,EAAOU,KACTD,GAAS,IAAJH,OAAQI,EAAG,KAAAJ,OAAIK,mBAAmBX,EAAOU,MAGlDD,EAAQA,EAAMG,MAAM,GACpBf,EAAOgB,KAAO9B,KAAKJ,WAAa,IAAM8B,CACxC,EACAK,UAAS,WACP/B,KAAKgC,MAAM,YACb,EACAC,SAAQ,WACNlB,SAASmB,cAAc,eAAeC,OACxC,EACAC,iBAAgB,WAAG,IAAAC,EAAA,KACZrC,KAAKsC,OAAOC,eACjBvC,KAAKgC,MAAM,sBACXQ,YAAW,WACTC,SAASX,KACPW,SAASC,OAAS,oBAAHnB,OAAuBc,EAAKM,OAAOC,OAAOC,KAC7D,GAAG,GACL,I,iBE3DAC,UAAY,YACd,GFTW,WAAkB,IAAIC,EAAI,KAAKC,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACG,WAAW,CAAC,CAACjC,KAAK,OAAOkC,QAAQ,SAASC,OAAO,EAAOC,WAAW,UAAUJ,YAAY,eAAeK,GAAG,CAAC,MAAQR,EAAIX,mBAAmB,CAACY,EAAG,MAAM,CAACQ,MAAM,CAAC,IAAMC,EAAQ,QAA+BT,EAAG,OAAO,CAACD,EAAIW,GAAG,0BACtX,GACsB,IEUpB,EACA,KACA,WACA,MAIa,UAAAZ,U","file":"b433927.js","sourcesContent":["// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAUCAYAAABvVQZ0AAAAAXNSR0IArs4c6QAAAqBJREFUOE9t1Onr53MUBfDXLUrZskYIf4ElKdkSWRJmpmzJNjMP7JGMpWw11qzDGLuGB2PfoygST0hKKUWUkm0Q4sFY5q3z6375zPT7PPn06f3+nHvuuefcstEzxjgc92B7nFVVr82ujDGOxWNYiwur6q3p7zW5uDPuxMl4Aj/jIlyH5bgGV2MFtsbZWINLq+rb4NQYY5NUwfX4CudW1Xs5HGOcgkfwSwMsqaqn+uwgrMSeXWRlwN7BPs1gRVX9PWG7CPdjW/zUhZ6fnIfIjP1HAUv/H+LEqvq9q+6Ee7GwW78ZV+JivIjzq+q7vrsFnsW+AdsbL+FXnIBDcQe+xuKqSqG5Z4yxX7e9e7TC2/3vllgwN4Axxo54Afsj1KPfDVX11zzT3hRXtSyR5IM5oKq1M7BD8GSz2xWfNqtP5gGbscu9H7BVHJChpc2I/DRW4wLsgAdwRNjhpqpaN8bYDNfiMryKc7r4KpyGRQG7HUtwUlW9MdHndNyFeOg2XIHtcF5VPTO5d1QPYM4aES+AS/F4mzA2mGn5PvbAFzgg2vRZgDOoMxB2y6YJOAwPtgYx8Zt4FMf0ezESrTj/yI7cb+mqqt6dS8CEbrKY6SUyl+APfB//4cfO6nP93rxbT9TWV9WfG4Mt6HGn3X9wYLcdRrf2kJZFaCRu0TI5XVNVMfIGzAIWrwUoGt6N+3A0bsGZWIfkda++k5gtnA/suPZaRp8NESN/1h76eIyxTWuXlKTgw22P46vqlfk0i5C74KHO68tVFe1mcYrGKZrMpt1vcHBVRdP/2+xxJ0oxY8yZljKM1VW1fowRoFNxIxLuRG7VdMv8N81pbMYYWX6X91Q/bxtkMFkK2cLLqyo7boNnXrBJW7s1k+j0etZQVX25Mcjs+1/MoQbO2FAmGQAAAABJRU5ErkJggg==\"","export * from \"-!../node_modules/extract-css-chunks-webpack-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/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Project.vue?vue&type=style&index=0&id=d07425a4&prod&lang=scss&scoped=true\"","\nexport default {\n props: {\n productInfo: {\n type: Object,\n default: () => {\n return {}\n },\n },\n },\n data() {\n return {\n defaultURL: 'https://zfrmz.com/felY59ar2z3FaOTSRxmZ',\n }\n },\n computed: {\n isLogin() {\n return !!this.$store.state.userInfo?.email\n },\n userInfo() {\n return this.$store.state.userInfo || {}\n },\n shouldButtonRecordShow() {\n return (\n this.isLogin &&\n /\\@promocollection.com.au/.test(this.userInfo.email) &&\n this.productInfo.record &&\n this.productInfo.record?.record_reason?.length\n )\n },\n },\n mounted() {\n // this.generateLink()\n },\n methods: {\n generateLink() {\n const target = document.getElementById('quickEnqriryLink')\n const config = {\n name: this.userInfo.contacts,\n phone: this.userInfo.phone,\n email: this.userInfo.email,\n company: this.userInfo.company,\n product: `${this.productInfo.product_name} & ${this.productInfo.product_code}`,\n }\n\n let query = ''\n for (const key in config) {\n if (config[key]) {\n query += `&${key}=${encodeURIComponent(config[key])}`\n }\n }\n query = query.slice(1)\n target.href = this.defaultURL + '?' + query\n },\n handleAdd() {\n this.$emit('handleAdd')\n },\n openZoho() {\n document.querySelector('#zsiq_float').click()\n },\n toProductBuilder() {\n if (!this.$utils.checkLogin()) return\n this.$emit('save-selected-data')\n setTimeout(() => {\n location.href =\n location.origin + `/product-builder/${this.$route.params.code}`\n }, 0)\n },\n },\n}\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Project.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./Project.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Project.vue?vue&type=template&id=d07425a4&scoped=true\"\nimport script from \"./Project.vue?vue&type=script&lang=js\"\nexport * from \"./Project.vue?vue&type=script&lang=js\"\nimport style0 from \"./Project.vue?vue&type=style&index=0&id=d07425a4&prod&lang=scss&scoped=true\"\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 \"d07425a4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}