(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{563:function(t,o,n){t.exports=n.p+"img/tick.539ed66.png"},564:function(t,o,n){t.exports={}},611: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=="},612:function(t,o,n){t.exports=n.p+"img/xunjia.189a53f.png"},613:function(t,o,n){t.exports=n.p+"img/co2.ba23569.png"},614:function(t,o,n){"use strict";n(564)},620:function(t,o,n){"use strict";n.r(o);n(97),n(11),n(22);var e=[function(){var t=this._self._c;return t("div",{staticClass:"flex btn-nav"},[t("img",{attrs:{src:n(563)}}),t("span",[this._v("Ticket")])])}],r=(n(63),n(64),{props:{productInfo:{type:Object,default:function(){return{}}}},data:function(){return{domainList:[/\@promocollection/,/\@primepac/,/\@pangea/,/\@phonelocker/,/\@phoenixexhibit/],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))},openTicket:function(){this.$emit("handleOpenTicket")},openFootprint:function(){this.$emit("handleOpenFootprint")}}}),c=(n(614),n(21)),component=Object(c.a)(r,(function(){var t,o,e,r=this,c=r._self._c;return c("section",{staticClass:"project-wrap"},[c("div",{staticClass:"project"},[c("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"flex btn-nav",on:{click:r.toProductBuilder}},[c("img",{attrs:{src:n(611)}}),c("span",[r._v("Product builder")])]),r._v(" "),r.isLogin&&r.domainList.some((function(i){return i.test(r.userInfo.email)}))?c("a",{attrs:{href:"https://forms.zohopublic.com/promocollection/form/ClientDetails/formperma/1Xq9qhTYZd3EuGJarUVql1FUXi096vI60BnG-lQ0Gh4?email="+encodeURIComponent(r.userInfo.email)+"&product_code="+encodeURIComponent(r.productInfo.product_code),target:"_target"}},[r._m(0)]):r._e(),r._v(" "),c("a",{attrs:{id:"quickEnqriryLink",target:"_blank"}},[r.isLogin?c("div",{staticClass:"flex btn-nav"},[c("img",{staticStyle:{opacity:"0.8"},attrs:{src:n(612),alt:""}}),c("span",[r._v("Quick Enquiry")])]):r._e()]),r._v(" "),c("a",{directives:[{name:"show",rawName:"v-show",value:r.btnShow,expression:"btnShow"}],attrs:{target:"_blank",href:r.shouldButtonRecordDisabled?"javascript:void(0)":"/product-record/".concat(r.productInfo.product_code,"?version=").concat((null===(t=r.productInfo.record)||void 0===t?void 0:t.version)||(null===(o=r.recordData)||void 0===o?void 0:o.version))},on:{click:function(t){r.shouldButtonRecordDisabled&&t.preventDefault()}}},[c("div",{staticClass:"flex btn-nav",class:{disabled:r.shouldButtonRecordDisabled}},[c("img",{attrs:{src:n(563)}}),c("span",[r._v("Item Record")])])]),r._v(" "),null!==(e=r.productInfo.carbon)&&void 0!==e&&e.length?c("div",{staticClass:"flex btn-nav",on:{click:r.openFootprint}},[c("img",{attrs:{src:n(613)}}),r._v(" "),c("span",[r._v("Carbon Footprint")])]):r._e()])])}),e,!1,null,"694555a8",null);o.default=component.exports}}]); //# sourceMappingURL=6b2da35.js.map