(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{555:function(t,o,n){t.exports=n.p+"img/tick.539ed66.png"},556:function(t,o,n){t.exports={}},601:function(t,o){t.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=="},602:function(t,o,n){t.exports=n.p+"img/xunjia.189a53f.png"},603:function(t,o,n){"use strict";n(556)},609:function(t,o,n){"use strict";n.r(o);n(96),n(22);var e=[function(){var t=this._self._c;return t("div",{staticClass:"flex btn-nav"},[t("img",{attrs:{src:n(555)}}),t("span",[this._v("Ticket")])])}],r=(n(64),n(62),{props:{productInfo:{type:Object,default:function(){return{}}}},data:function(){return{defaultURL:"https://zfrmz.com/2IuJGuGLCRBROyJXZetQ",recordData:null}},computed:{isLogin:function(){var t;return!(null===(t=this.$store.state.userInfo)||void 0===t||!t.email)},userInfo:function(){return this.$store.state.userInfo||{}},btnShow:function(){return this.isLogin&&/@promocollection(.com.au|.uk)/.test(this.userInfo.email)},shouldButtonRecordDisabled:function(){var t,o;return(!this.productInfo.record||null===(t=this.productInfo.record)||void 0===t||null===(t=t.record_reason)||void 0===t||!t.length)&&!(null!==(o=this.recordData)&&void 0!==o&&null!==(o=o.record_reason)&&void 0!==o&&o.length)}},watch:{isLogin:{handler:function(t,o){var n=this;t&&t!==o&&this.$axios.get("/uk-api/uk/goods/detail?product_code=".concat(this.productInfo.product_code)).then((function(t){1===t.code&&(n.recordData=t.result.record)}))}}},mounted:function(){this.generateLink()},methods:{generateLink:function(){var t=document.getElementById("quickEnqriryLink"),o={name:this.userInfo.contacts,phone:this.userInfo.phone,email:this.userInfo.email,company:this.userInfo.company,product:"".concat(this.productInfo.alias_name||this.productInfo.product_name," & ").concat(this.productInfo.product_code)},n="";for(var e in o)o[e]&&(n+="&".concat(e,"=").concat(encodeURIComponent(o[e])));n=n.slice(1),t.href=this.defaultURL+"?"+n},handleAdd:function(){this.$emit("handleAdd")},openZoho:function(){document.querySelector("#zsiq_float").click()},toProductBuilder:function(){var t=this;this.$utils.checkLogin()&&(this.$emit("save-selected-data"),setTimeout((function(){location.href=location.origin+"/product-builder/".concat(t.$route.params.code)}),0))}}}),c=(n(603),n(21)),component=Object(c.a)(r,(function(){var t,o,e=this,r=e._self._c;return r("section",{staticClass:"project-wrap"},[r("div",{staticClass:"project"},[r("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"flex btn-nav",on:{click:e.toProductBuilder}},[r("img",{attrs:{src:n(601)}}),r("span",[e._v("Product builder")])]),e._v(" "),e.isLogin&&/\@promocollection(.com.au|uk)/.test(e.userInfo.email)?r("a",{attrs:{href:"https://zfrmz.com/2IuJGuGLCRBROyJXZetQ",target:"_target"}},[e._m(0)]):e._e(),e._v(" "),r("a",{attrs:{id:"quickEnqriryLink",target:"_blank"}},[e.isLogin?r("div",{staticClass:"flex btn-nav"},[r("img",{staticStyle:{opacity:"0.8"},attrs:{src:n(602),alt:""}}),r("span",[e._v("Quick Enquiry")])]):e._e()]),e._v(" "),r("a",{directives:[{name:"show",rawName:"v-show",value:e.btnShow,expression:"btnShow"}],attrs:{target:"_blank",href:e.shouldButtonRecordDisabled?"javascript:void(0)":"/product-record/".concat(e.productInfo.product_code,"?version=").concat((null===(t=e.productInfo.record)||void 0===t?void 0:t.version)||(null===(o=e.recordData)||void 0===o?void 0:o.version))},on:{click:function(t){e.shouldButtonRecordDisabled&&t.preventDefault()}}},[r("div",{staticClass:"flex btn-nav",class:{disabled:e.shouldButtonRecordDisabled}},[r("img",{attrs:{src:n(555)}}),r("span",[e._v("Item Record")])])])])])}),e,!1,null,"227c9547",null);o.default=component.exports}}]);
//# sourceMappingURL=431bbeb.js.map