project.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. exports.ids = [34];
  2. exports.modules = {
  3. /***/ 190:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 235:
  10. /***/ (function(module, exports) {
  11. 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=="
  12. /***/ }),
  13. /***/ 236:
  14. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15. "use strict";
  16. __webpack_require__.r(__webpack_exports__);
  17. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_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__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(190);
  18. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_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__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_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__WEBPACK_IMPORTED_MODULE_0__);
  19. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_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__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_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__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  20. /***/ }),
  21. /***/ 244:
  22. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23. "use strict";
  24. // ESM COMPAT FLAG
  25. __webpack_require__.r(__webpack_exports__);
  26. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Project.vue?vue&type=template&id=d07425a4&scoped=true
  27. var render = function render() {
  28. var _vm = this,
  29. _c = _vm._self._c;
  30. return _c('section', {
  31. staticClass: "project-wrap"
  32. }, [_vm._ssrNode("<div class=\"project\" data-v-d07425a4><div class=\"flex btn-nav\"" + _vm._ssrStyle(null, null, {
  33. display: false ? undefined : 'none'
  34. }) + " data-v-d07425a4><img" + _vm._ssrAttr("src", __webpack_require__(235)) + " data-v-d07425a4><span data-v-d07425a4>Product builder</span></div></div>")]);
  35. };
  36. var staticRenderFns = [];
  37. // CONCATENATED MODULE: ./components/Project.vue?vue&type=template&id=d07425a4&scoped=true
  38. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Project.vue?vue&type=script&lang=js
  39. /* harmony default export */ var Projectvue_type_script_lang_js = ({
  40. props: {
  41. productInfo: {
  42. type: Object,
  43. default: () => {
  44. return {};
  45. }
  46. }
  47. },
  48. data() {
  49. return {
  50. defaultURL: 'https://zfrmz.com/felY59ar2z3FaOTSRxmZ'
  51. };
  52. },
  53. computed: {
  54. isLogin() {
  55. var _this$$store$state$us;
  56. return !!((_this$$store$state$us = this.$store.state.userInfo) !== null && _this$$store$state$us !== void 0 && _this$$store$state$us.email);
  57. },
  58. userInfo() {
  59. return this.$store.state.userInfo || {};
  60. },
  61. shouldButtonRecordShow() {
  62. var _this$productInfo$rec, _this$productInfo$rec2;
  63. return this.isLogin && /\@promocollection.com.au/.test(this.userInfo.email) && this.productInfo.record && ((_this$productInfo$rec = this.productInfo.record) === null || _this$productInfo$rec === void 0 ? void 0 : (_this$productInfo$rec2 = _this$productInfo$rec.record_reason) === null || _this$productInfo$rec2 === void 0 ? void 0 : _this$productInfo$rec2.length);
  64. }
  65. },
  66. mounted() {
  67. // this.generateLink()
  68. },
  69. methods: {
  70. generateLink() {
  71. const target = document.getElementById('quickEnqriryLink');
  72. const config = {
  73. name: this.userInfo.contacts,
  74. phone: this.userInfo.phone,
  75. email: this.userInfo.email,
  76. company: this.userInfo.company,
  77. product: `${this.productInfo.product_name} & ${this.productInfo.product_code}`
  78. };
  79. let query = '';
  80. for (const key in config) {
  81. if (config[key]) {
  82. query += `&${key}=${encodeURIComponent(config[key])}`;
  83. }
  84. }
  85. query = query.slice(1);
  86. target.href = this.defaultURL + '?' + query;
  87. },
  88. handleAdd() {
  89. this.$emit('handleAdd');
  90. },
  91. openZoho() {
  92. document.querySelector('#zsiq_float').click();
  93. },
  94. toProductBuilder() {
  95. if (!this.$utils.checkLogin()) return;
  96. this.$emit('save-selected-data');
  97. setTimeout(() => {
  98. location.href = location.origin + `/product-builder/${this.$route.params.code}`;
  99. }, 0);
  100. }
  101. }
  102. });
  103. // CONCATENATED MODULE: ./components/Project.vue?vue&type=script&lang=js
  104. /* harmony default export */ var components_Projectvue_type_script_lang_js = (Projectvue_type_script_lang_js);
  105. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  106. var componentNormalizer = __webpack_require__(2);
  107. // CONCATENATED MODULE: ./components/Project.vue
  108. function injectStyles (context) {
  109. var style0 = __webpack_require__(236)
  110. if (style0.__inject__) style0.__inject__(context)
  111. }
  112. /* normalize component */
  113. var component = Object(componentNormalizer["a" /* default */])(
  114. components_Projectvue_type_script_lang_js,
  115. render,
  116. staticRenderFns,
  117. false,
  118. injectStyles,
  119. "d07425a4",
  120. "58b31e0a"
  121. )
  122. /* harmony default export */ var Project = __webpack_exports__["default"] = (component.exports);
  123. /***/ })
  124. };;
  125. //# sourceMappingURL=project.js.map