f2d6c5e.js 31 KB

12
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[40,41,48,52],{560:function(t,o,e){t.exports={}},561:function(t,o,e){t.exports={}},562:function(t,o,e){t.exports={}},563:function(t,o,e){t.exports=e.p+"img/tick.539ed66.png"},564:function(t,o,e){t.exports={}},603:function(t,o,e){"use strict";e(560)},604:function(t,o,e){"use strict";e(561)},605:function(t,o,e){t.exports={}},606:function(t,o,e){t.exports=e.p+"img/bg_city.b1ebcc7.png"},607:function(t,o,e){t.exports=e.p+"img/tree.50fd6f9.png"},608:function(t,o){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABACAYAAABFqxrgAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKMSURBVHgB7ZsxaBNRGMf/r62DQuXUMQ5ZhGZQ0qWOWlzUxaijYC242UgyiV0SF4tTq61QcEgjOGrSqZNYN81iwcGAyy0Z1aBDh7Y873upgldPG3j53qP3/YaQPC6B++V9/+R9707hF6WxLLZRg1J5QAc46GjdxLYqY7kdKjNAAnbUh1Sc/B/oLrbU+Ih5vqMXoseUCSBUgEOoDe2+uILUovNDSD0qEAkRIgEiwSASIBIMIgEiwSASIBIMI2CkdO4mKpdmEBwZ/edx4ZcOqmtPUW81wEFvFVkc02Dg26MWgsOj+zq2u/kdx+6dBQes5bBfAb1jj4IL6+Vwa6IAWyR9VnfzB5ofX8MWVsuhcXsJhTMXwMH65xYmF6dgA6vlwCWAOH9qAraQn0iIBINIgEcSHq8/hyu8kLDR+YTSqzm4wrmE8GsHV58V4RLnEkgAiXCJUwkPokUSlYJrnEmgIKyuLcEHnEig6e+LAIJdAgmYfDJlFkG+wC5h+sWs8yCMw9pZoiCk1V8S6m5uzxh1o+av38cgYZsJK+8bfedAPpMbuACCRQJN/3Kf/wizxzNRf2IRHLCUQ/1dA4XTe3sNK61m4ntIQPZEBhywSKhcnvnreJKEysU7yJ/MgQvvltIU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93rxbT9TWV9WfG4Mt6HGn3X9wYLcdRrf2kJZFaCRu0TI5XVNVMfIGzAIWrwUoGt6N+3A0bsGZWIfkda++k5gtnA/suPZaRp8NESN/1h76eIyxTWuXlKTgw22P46vqlfk0i5C74KHO68tVFe1mcYrGKZrMpt1vcHBVRdP/2+xxJ0oxY8yZljKM1VW1fowRoFNxIxLuRG7VdMv8N81pbMYYWX6X91Q/bxtkMFkK2cLLqyo7boNnXrBJW7s1k+j0etZQVX25Mcjs+1/MoQbO2FAmGQAAAABJRU5ErkJggg=="},612:function(t,o,e){t.exports=e.p+"img/xunjia.189a53f.png"},613:function(t,o,e){t.exports=e.p+"img/co2.ba23569.png"},614:function(t,o,e){"use strict";e(564)},617:function(t,o,e){"use strict";e.r(o);e(44),e(11);var n={props:{data:[]},computed:{comData:function(){return this.data.filter((function(t){return t.is_show}))}}},r=(e(603),e(21)),component=Object(r.a)(n,(function(){var t=this,o=t._self._c;return o("table",[o("tbody",[t._m(0),t._v(" "),t._m(1),t._v(" "),t.comData.length?t._l(t.comData,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(e.sku_model||e.point))]),t._v(" "),o("td",[t._v(t._s(e.available_stock))]),t._v(" "),o("td",[t._v(t._s(t.$utils.formatTime(e.next_times,"DD-MM-YYYY",!0)))]),t._v(" "),o("td",[t._v(t._s(e.arrival_stock))])])})):o("tr",[o("td",{attrs:{rowspan:"3",colspan:"4"}},[t._v("No Data")])])],2)])}),[function(){var t=this,o=t._self._c;return o("tr",{staticClass:"title"},[o("th",{attrs:{rowspan:"2"}},[t._v("Model")]),t._v(" "),o("th",{attrs:{rowspan:"2"}},[t._v("Available stock")]),t._v(" "),o("th",{attrs:{colspan:"2"}},[t._v("Next shipment")])])},function(){var t=this,o=t._self._c;return o("tr",[o("th",[t._v("Date")]),t._v(" "),o("th",[t._v("QTY")])])}],!1,null,"13093327",null);o.default=component.exports},618:function(t,o,e){"use strict";e.r(o);var n={props:{data:{type:Array,default:function(){return[]}}}},r=(e(604),e(21)),component=Object(r.a)(n,(function(){var t=this,o=t._self._c;return o("div",[t.data.length?o("table",[o("tbody",[t._m(0),t._v(" "),t._l(t.data,(function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(t.$utils.formatTime(e.update_time)))]),t._v(" "),o("td",[t._v(t._s(e.type_name))]),t._v(" "),o("td",[t._v(t._s(e.detail))])])}))],2)]):o("div",[o("el-empty",{attrs:{description:"No Data"}})],1)])}),[function(){var t=this,o=t._self._c;return o("tr",{staticClass:"title"},[o("th",{attrs:{width:"25%"}},[t._v("Date")]),t._v(" "),o("th",{attrs:{width:"25%"}},[t._v("Change Type")]),t._v(" "),o("th",{attrs:{width:"50%"}},[t._v("Details")])])}],!1,null,"4c957f55",null);o.default=component.exports},619:function(t,o,e){"use strict";e.r(o);e(22),e(49),e(539),e(534),e(536),e(11),e(323);var n=e(537),r={props:{visible:{type:Boolean,default:!1},carbon:{type:Array,default:function(){return[]}}},data:function(){return{form:{model:"",quantity:1,transport:""}}},computed:{comEquallist:function(){var t,o=this;return(null===(t=this.carbon[this.form.model])||void 0===t||null===(t=t.accountlist)||void 0===t?void 0:t.find((function(t){return t.code===o.form.transport})))||{equallist:[],emissionTotal:0}},comEmissionTotal:function(){return this.multiply(this.comEquallist.emissionTotal,this.form.quantity).toFixed(2)||0}},methods:{handleClose:function(){this.$emit("update:visible",!1)},multiply:function(a,b){return Object(n.d)(Number(a),b)},download:function(t){if(t){var o=t.match("[^/]+(?!.*/)")[0];this.$utils.downloadBlob(t,o)}else this.$message.error("No report available for download")}}},c=(e(610),e(21)),component=Object(c.a)(r,(function(){var t,o,n,r,c=this,l=c._self._c;return l("el-dialog",{attrs:{visible:c.visible,width:"550px",title:"Carbon Footprint Report","before-close":c.handleClose,"lock-scroll":!1},on:{"update:visible":function(t){c.visible=t}}},[l("div",[l("el-form",{attrs:{"label-width":"70px"}},[l("el-form-item",{attrs:{label:"Model"}},[l("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Please select",clearable:"",filterable:""},model:{value:c.form.model,callback:function(t){c.$set(c.form,"model",t)},expression:"form.model"}},c._l(c.carbon,(function(t,o){return l("el-option",{key:o,attrs:{label:t.accountName.replace(/\s*[\((][^))]*[\))]$/,""),value:o}})})),1)],1),c._v(" "),l("div",{staticClass:"form-row"},[l("el-form-item",{staticStyle:{flex:"1"},attrs:{label:"Quantity"}},[l("el-input",{staticClass:"left-input-number",attrs:{type:"number",min:1,step:1,controls:!1,placeholder:"Please input"},model:{value:c.form.quantity,callback:function(t){c.$set(c.form,"quantity",t)},expression:"form.quantity"}})],1),c._v(" "),l("el-form-item",{staticStyle:{flex:"1","margin-left":"10px"},attrs:{label:"Transport"}},[l("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Please select",clearable:""},model:{value:c.form.transport,callback:function(t){c.$set(c.form,"transport",t)},expression:"form.transport"}},[l("el-option",{attrs:{label:"UK-Sea",value:"UK-Sea"}}),c._v(" "),l("el-option",{attrs:{label:"UK-Air",value:"UK-Air"}})],1)],1)],1)],1),c._v(" "),l("div",{staticClass:"carbon-report-card"},[l("div",{staticClass:"carbon-report-main"},[l("div",{staticClass:"carbon-report-header"},[l("span",[c._v("Product Carbon Footprint")])]),c._v(" "),l("div",{staticClass:"carbon-report-value"},[c._v(c._s(c.comEmissionTotal))]),c._v(" "),l("div",{staticClass:"carbon-report-date"},[c._v("kgCO₂e per product unit")]),c._v(" "),l("div",{staticClass:"carbon-report-date"},[c._v("Accounting Period:"+c._s(null===(t=this.carbon[this.form.model])||void 0===t?void 0:t.accountTime))]),c._v(" "),l("img",{staticClass:"carbon-bg",attrs:{src:e(606),alt:"bg"}}),c._v(" "),l("div",{staticClass:"carbon-report-equal"},[l("div",{staticClass:"equal-title"},[c._v("Equivalent to")]),c._v(" "),l("div",{staticClass:"equal-list"},[l("div",{staticClass:"equal-item"},[l("img",{attrs:{src:e(607),alt:"tree"}}),c._v(" "),l("div",[c._v(c._s(c.multiply(null===(o=c.comEquallist.equallist[0])||void 0===o?void 0:o.amount,c.form.quantity)||0)+" "),l("span",[c._v("tree")])]),c._v(" "),l("div",{staticClass:"equal-desc"},[c._v("CO₂ uptake by 1 ammodendron tree")])]),c._v(" "),l("div",{staticClass:"equal-item"},[l("img",{attrs:{src:e(608),alt:"electricity"}}),c._v(" "),l("div",[c._v(c._s(c.multiply(null===(n=c.comEquallist.equallist[1])||void 0===n?void 0:n.amount,c.form.quantity)||0)+" "),l("span",[c._v("kWh")])]),c._v(" "),l("div",{staticClass:"equal-desc"},[c._v("Household electricity consumption")])]),c._v(" "),l("div",{staticClass:"equal-item"},[l("img",{attrs:{src:e(609),alt:"iphone"}}),c._v(" "),l("div",[c._v(c._s(c.multiply(null===(r=c.comEquallist.equallist[2])||void 0===r?void 0:r.amount,c.form.quantity)||0)+" "),l("span",[c._v("day")])]),c._v(" "),l("div",{staticClass:"equal-desc"},[c._v("The number of days an iPhone is used")])])])])])]),c._v(" "),l("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[l("el-button",{staticClass:"report-btn",attrs:{type:"primary"},on:{click:function(t){var o;return c.download(null===(o=c.comEquallist)||void 0===o?void 0:o.url)}}},[c._v("Download")])],1)],1)])}),[],!1,null,"d80d814e",null);o.default=component.exports},620:function(t,o,e){"use strict";e.r(o);e(97),e(11),e(22);var n=[function(){var t=this._self._c;return t("div",{staticClass:"flex btn-nav"},[t("img",{attrs:{src:e(563)}}),t("span",[this._v("Ticket")])])}],r=(e(63),e(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 e=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&&(e.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)},e="";for(var n in o)o[n]&&(e+="&".concat(n,"=").concat(encodeURIComponent(o[n])));e=e.slice(1),t.href=this.defaultURL+"?"+e},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=(e(614),e(21)),component=Object(c.a)(r,(function(){var t,o,n,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:e(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:e(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:e(563)}}),c("span",[r._v("Item Record")])])]),r._v(" "),null!==(n=r.productInfo.carbon)&&void 0!==n&&n.length?c("div",{staticClass:"flex btn-nav",on:{click:r.openFootprint}},[c("img",{attrs:{src:e(613)}}),r._v(" "),c("span",[r._v("Carbon Footprint")])]):r._e()])])}),n,!1,null,"694555a8",null);o.default=component.exports},642:function(t,o,e){t.exports=e.p+"img/lineart.e4e693b.png"},643:function(t,o,e){t.exports=e.p+"img/email.0ff3d63.png"},644:function(t,o,e){t.exports=e.p+"img/product.718b8f1.png"},645:function(t,o,e){t.exports=e.p+"img/cataloque.c0a544f.png"},646:function(t,o,e){t.exports=e.p+"img/instruction.bbe58af.png"},652:function(t,o,e){"use strict";e(605)},716:function(t,o,e){"use strict";e.r(o);e(43),e(79),e(44),e(42),e(11),e(22),e(153),e(65),e(66),e(48);var n=e(24),r=(e(219),e(60),e(534),e(326),e(323),e(36),e(701)),c=e(617),l=e(618),d=e(571),v=e(45);function m(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,n)}return e}function _(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?m(Object(e),!0).forEach((function(o){Object(n.a)(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}var f={components:{StockTable:c.default,ChangeTable:l.default,Quote:r.default,ElImageViewer:d.a},props:{pageData:{},id:Number},data:function(){return{tabList:[{name:"Details",isClick:!1,isShow:!0},{name:"Quick Quote",isClick:!1,isShow:!1},{name:"Stock",isClick:!1,isShow:!1},{name:"Resources",isClick:!1,isShow:!0},{name:"Changes",isClick:!1,isShow:!1}],typeTab:0,stockData:[],showViewer:!1,projectdDialogVisible:!1,projectObj:{decoration_id:""},ticketForm:{"英文品名":this.pageData.alias_name||this.pageData.product_name,SKU:this.pageData.product_code,"问题类型":[],"反馈详情":""},ticketConfig:[{prop:"英文品名",type:"text"},{prop:"SKU",type:"text"},{prop:"问题类型",type:"checkbox",selectlist:["网页信息","供应商质量","样品管理","产品部管理"]},{prop:"反馈详情",type:"textarea"}],rules:{"问题类型":[{required:!0,message:"Please select",trigger:"change"}],"反馈详情":[{required:!0,message:"Please enter",trigger:"blur"}]},footprintVisible:!1}},computed:{currentPre:function(){return this.$store.state.product.smImgUlIdx},isLogin:function(){var t;return!(null===(t=this.$store.state.userInfo)||void 0===t||!t.email)},comInfo:function(){var t;return null===(t=this.pageData)||void 0===t?void 0:t.main},productImgArr:function(){return this.comInfo.mergeImages},userInfo:function(){return this.$store.state.userInfo},comIncluded_packaging:function(){return this.comInfo.included_packaging.split(",")},comOptional_packaging:function(){return this.comInfo.optional_packaging.split(",")},comOptional_attachments:function(){return this.comInfo.optional_attachments.split(",")}},watch:{isLogin:{handler:function(t){t&&(this.tabList[1].isShow=!0)},immediate:!0}},mounted:function(){},methods:_(_(_({},Object(v.b)(["getUserInfo"])),Object(v.c)({openDialog:"openDialog",setSmImgUlIdx:"product/setSmImgUlIdx",setLoading:"product/setLoading"})),{},{isProduct:function(t){return/^[A-z]{1,4}\d{1,4}[A-z]?$/.test(t)},computedIndex:function(i){var t;return null!==(t=this.pageData.main)&&void 0!==t&&t.image?1+i:i},saveUserSelected:function(){var t={addon:[],packaging:[],printService:{}};for(var o in this.allSelData)"addon"===o&&(t.addon=this.allSelData[o].map((function(t){return t.id}))),"packaging"===o&&(t.packaging=this.allSelData[o].map((function(t){return t.id})));this.priceList[this.currTab].cycle_id&&(t.cycle=this.priceList[this.currTab].cycle_id),this.priceList[this.currTab].undecoratedSelectId&&(t.model=this.priceList[this.currTab].undecoratedSelectId);var e=this.priceList[this.currTab][2];console.log(e,"printService"),Array.isArray(e)&&e.length&&e.forEach((function(o){if(o.decorationSelectId){var e=o.decorationList.filter((function(i){return i.id===o.decorationSelectId}));t.printService["".concat(o.id)]={id:o.decorationSelectId,num:e[0].num}}})),localStorage.setItem("product-user-select-".concat(this.$route.params.code),JSON.stringify(t))},openProjectdDialog:function(){isLogin?(this.projectdDialogVisible=!0,this.projectObj.cycle_id=this.comCurrPriceList.cycle_id,this.projectObj.price_unit_id=this.comCurrPriceList.undecoratedSelectId,this.projectObj.decoration_methods=this.comDecoration.map((function(t){var o={};return o.decoration_id=t.id,o.price_unit_id=t.parentId,o.colours_number=t.num,o})),this.projectObj.addition_ids=this.allSelData.addon.map((function(t){return t.id})).join(),this.projectObj.packaging_addition_ids=this.allSelData.packaging.map((function(t){return t.id})).join()):this.openDialog()},download:function(t){var o=t.match("[^/]+(?!.*/)")[0],e=this.$utils.repaceDomain(t);t.endsWith(".pdf")?this.$utils.handleFileDownload(e,o,!1):this.$utils.downloadBlob(t,o)},onPreview:function(){this.showViewer=!0},closeViewer:function(){this.showViewer=!1},clickNav:function(i){1!=this.typeTab||this.tabList[1].isClick?2!=this.typeTab||this.tabList[2].isClick||this.checkNav(2):this.checkNav(1)},checkNav:function(i){this.isLogin?(this.getUserInfo(),1==this.userInfo.audit_status?1==i&&(this.$refs.quote.getQuote(),this.tabList[1].isClick=!0):(this.typeTab=0,this.$message({message:"Your account has not been audited",type:"warning"}))):(this.openDialog(),this.typeTab=0)},openLink:function(t){var a=t.indexOf("http")>-1?t:"http://"+t;window.open(a,"_blank")}})},h=(e(652),e(21)),component=Object(h.a)(f,(function(){var t,o,n,r,c,l,d=this,v=d._self._c;return v("div",{staticClass:"product-right"},[v("div",{staticClass:"product-right-top"},[v("div",{staticClass:"title"},[v("span",{ref:"title",staticClass:"title-1"},[d._v(d._s(d.pageData.alias_name||d.pageData.product_name))]),d._v(" "),v("span",{staticClass:"title-2"},[d._v(d._s(d.pageData.product_code))]),d._v(" "),d._l(d.pageData.cycle,(function(t){return v("img",{key:t.images,staticClass:"title-3",attrs:{src:t.images}})})),d._v(" "),d._l(d.pageData.icon,(function(t){return v("img",{key:t.url,staticClass:"title-4",attrs:{src:t.url}})}))],2),d._v(" "),null!==(t=d.pageData.main.image_color)&&void 0!==t&&t.length?v("ul",{staticClass:"color"},d._l(d.pageData.main.image_color,(function(t,i){var o,e,n,r,c,l;return v("li",{key:t.id},[null!==(o=t.color)&&void 0!==o&&o.img?v("div",{staticClass:"color-item"},[v("div",{class:d.currentPre==d.computedIndex(i)?"slip":"",on:{click:function(t){d.setSmImgUlIdx(d.computedIndex(i))}}},[v("el-tooltip",{attrs:{content:null===(e=t.color)||void 0===e?void 0:e.name,placement:"top",effect:"dark"}},[v("img",{attrs:{src:null!==(n=t.color)&&void 0!==n&&n.img&&!d.$mediaRegExp.test(null===(r=t.color)||void 0===r?void 0:r.img)?d.$OSS_PREFIX+(null===(c=t.color)||void 0===c?void 0:c.img):null===(l=t.color)||void 0===l?void 0:l.img}})])],1)]):d._e()])})),0):d._e(),d._v(" "),v("tab-nav",{attrs:{tabList:d.tabList,currTab:d.typeTab,marginTop:15,fontSize:16,liWidth:130,liHeight:40,marginRight:5,marginBottom:25},on:{"update:currTab":function(t){d.typeTab=t},"update:curr-tab":function(t){d.typeTab=t},handle:d.clickNav}})],1),d._v(" "),v("div",{staticClass:"product-right-bottom"},[v("div",{directives:[{name:"show",rawName:"v-show",value:0==d.typeTab,expression:"typeTab == 0"}],staticClass:"details"},[d.pageData.feature_data?v("div",{staticClass:"details-1"},[v("h3",[d._v("Features")]),d._v(" "),v("ul",d._l(d.pageData.feature_data,(function(i,t){return v("li",{key:t},[d._v("\n "+d._s(i)+"\n ")])})),0)]):d._e(),d._v(" "),d.comInfo.description?v("div",{staticClass:"details-1"},[v("h3",[d._v("Description")]),d._v(" "),v("p",{domProps:{innerHTML:d._s(d.comInfo.description)}})]):d._e(),d._v(" "),null!==(o=d.pageData.carbon)&&void 0!==o&&o.length?v("div",{staticClass:"details-1"},[v("h3",[d._v("Carbon Footprint Transparency")]),d._v(" "),d._m(0),d._v(" "),d._m(1)]):d._e(),d._v(" "),d.pageData.pbo?v("div",{staticClass:"details-2"},[v("h3",[d._v("Product Branding Information")]),d._v(" "),v("p",{domProps:{innerHTML:d._s(d.pageData.pbo)}})]):d._e(),d._v(" "),v("div",{staticClass:"details-3"},[d.comInfo.product_size||d.comInfo.product_material||d.comInfo.moq||d.comInfo.included_packaging||d.comInfo.optional_packaging||d.comInfo.print_size_area||d.comInfo.product_dimensions||d.comInfo.additional_info?v("ul",[d._m(2),d._v(" "),d.comInfo.product_size?v("li",[v("div",{staticClass:"point"},[d._v("Product Size")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.product_size)}})]):d._e(),d._v(" "),null!==(n=d.pageData.main)&&void 0!==n&&n.colors_text?v("li",[v("div",{staticClass:"point"},[d._v("Colour")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(null===(r=d.pageData.main)||void 0===r?void 0:r.colors_text)}})]):d._e(),d._v(" "),d.comInfo.product_material?v("li",[v("div",{staticClass:"point"},[d._v("Material")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.product_material)}})]):d._e(),d._v(" "),d.pageData.moq?v("li",[v("div",{staticClass:"point"},[d._v("MOQ")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.pageData.moq)}})]):d._e(),d._v(" "),d.comInfo.included_packaging?v("li",[v("div",{staticClass:"point"},[d._v("Included Packaging")]),d._v(" "),d._l(d.comIncluded_packaging,(function(t,i){return v("div",{key:t,staticClass:"info blue"},[d.isProduct(t.trim())?v("nuxt-link",{attrs:{to:{name:"product-code",params:{code:t.trim()}}}},[v("span",[d._v(d._s(t)),i<d.comIncluded_packaging.length-1?v("em",[d._v(",")]):d._e()])]):v("span",[d._v(d._s(t)),i<d.comIncluded_packaging.length-1?v("em",[d._v(",")]):d._e()])],1)}))],2):d._e(),d._v(" "),d.comInfo.optional_packaging?v("li",[v("div",{staticClass:"point"},[d._v("Optional Packaging")]),d._v(" "),d._l(d.comOptional_packaging,(function(t,i){return v("div",{key:t,staticClass:"info blue"},[d.isProduct(t.trim())?v("nuxt-link",{attrs:{to:{name:"product-code",params:{code:t.trim()}}}},[v("span",[d._v(d._s(t)),i<d.comOptional_packaging.length-1?v("em",[d._v(",")]):d._e()])]):v("span",[d._v(d._s(t)),i<d.comOptional_packaging.length-1?v("em",[d._v(",")]):d._e()])],1)}))],2):d._e(),d._v(" "),d.comInfo.optional_attachments?v("li",[v("div",{staticClass:"point"},[d._v("Optional Attachments")]),d._v(" "),v("div",{staticClass:"info"},d._l(d.comOptional_attachments,(function(t,i){return v("nuxt-link",{key:t,attrs:{to:{name:"product-code",params:{code:t}}}},[v("span",[d._v(d._s(t)),i<d.comOptional_attachments.length-1?v("em",[d._v(",")]):d._e()])])})),1)]):d._e(),d._v(" "),d.comInfo.product_dimensions?v("li",[v("div",{staticClass:"point"},[d._v("Carton Dimensions")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.product_dimensions)}})]):d._e(),d._v(" "),d.comInfo.additional_info?v("li",[v("div",{staticClass:"point"},[d._v("Additional Info")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.additional_info)}})]):d._e()]):d._e(),d._v(" "),d.comInfo.print_position||d.comInfo.print_size_area||d.comInfo.print_marketing?v("ul",[d._m(3),d._v(" "),d.comInfo.print_position?v("li",[v("div",{staticClass:"point"},[d._v("Print Position")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.print_position)}})]):d._e(),d._v(" "),d.comInfo.print_size_area?v("li",[v("div",{staticClass:"point"},[d._v("Print Size Area")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.print_size_area)}})]):d._e(),d._v(" "),d.comInfo.print_marketing?v("li",[v("div",{staticClass:"point"},[d._v("Print Marketing")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.print_marketing)}})]):d._e()]):d._e(),d._v(" "),d.comInfo.data_services||d.comInfo.chip_grade||d.comInfo.certifications||d.comInfo.capacity||d.comInfo.warranty||d.comInfo.battery_type||d.comInfo.additional_description?v("ul",[d._m(4),d._v(" "),d.comInfo.data_services?v("li",[v("div",{staticClass:"point"},[d._v("Data Services")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.data_services)}})]):d._e(),d._v(" "),d.comInfo.chip_grade?v("li",[v("div",{staticClass:"point"},[d._v("Chip Grade")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.chip_grade)}})]):d._e(),d._v(" "),d.comInfo.certifications?v("li",[v("div",{staticClass:"point"},[d._v("Certifications")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.certifications)}})]):d._e(),d._v(" "),d.comInfo.capacity?v("li",[v("div",{staticClass:"point"},[d._v("Capacity")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.capacity)}})]):d._e(),d._v(" "),d.comInfo.warranty?v("li",[v("div",{staticClass:"point"},[d._v("Warranty")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.warranty)}})]):d._e(),d._v(" "),d.comInfo.battery_type?v("li",[v("div",{staticClass:"point"},[d._v("Battery Type")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.battery_type)}})]):d._e(),d._v(" "),d.comInfo.additional_description?v("li",[v("div",{staticClass:"point"},[d._v("Additional Info")]),d._v(" "),v("div",{staticClass:"info",domProps:{innerHTML:d._s(d.comInfo.additional_description)}})]):d._e()]):d._e()]),d._v(" "),v("p",{staticClass:"details-1"},[d._v("\n Due to differences between production batches, product sizes may vary slightly. The above Colours and\n measurements are approximate, and for guidance only.\n ")])]),d._v(" "),v("div",{directives:[{name:"show",rawName:"v-show",value:1==d.typeTab,expression:"typeTab == 1"}],staticClass:"quote"},[v("quote",{ref:"quote",attrs:{pageData:d.pageData,id:d.id}})],1),d._v(" "),v("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"stock"},[d.stockData.length>0?v("div",[v("stock-table",{attrs:{data:d.stockData}}),d._v(" "),v("p",{staticClass:"quote-tips"},[d._v("For quantities over available stock levels, please contact us for pricing and timing")])],1):v("div",{staticClass:"quote-tips"},[d._v("\n This product is made offshore, and is available for any quantity equal to, or above the listed MOQ\n ")])]),d._v(" "),v("div",{directives:[{name:"show",rawName:"v-show",value:3==d.typeTab,expression:"typeTab == 3"}]},[v("h5",[d._v("Maketing Resource")]),d._v(" "),v("div",{staticClass:"resources maketing"},[d.comInfo.line_artwork?v("p",{on:{click:function(t){return d.download(d.comInfo.line_artwork)}}},[v("img",{attrs:{src:e(642)}}),d._v("Lineart Download\n ")]):d._e(),d._v(" "),d.pageData.edm_url?v("p",{on:{click:function(t){return d.openLink(d.pageData.edm_url)}}},[v("img",{attrs:{src:e(643)}}),d._v("Email Digital Marketing\n ")]):d._e(),d._v(" "),null!==(c=d.productImgArr)&&void 0!==c&&c.length?v("p",{on:{click:d.onPreview}},[v("img",{attrs:{src:e(644)}}),d._v("Product Image\n ")]):d._e(),d._v(" "),d.pageData.cataloque_url?v("p",{on:{click:function(t){return d.openLink(d.pageData.cataloque_url)}}},[v("img",{attrs:{src:e(645)}}),d._v("Catalogue\n ")]):d._e(),d._v(" "),d.comInfo.product_instruction?v("p",{on:{click:function(t){return d.download(d.comInfo.product_instruction)}}},[v("img",{attrs:{src:e(646)}}),d._v("Product Instruction\n ")]):d._e()]),d._v(" "),null!==(l=d.pageData.goodsCompliance)&&void 0!==l&&l.length?v("h5",[d._v("Compliance Resource")]):d._e(),d._v(" "),v("div",{staticClass:"resources compliance"},d._l(d.pageData.goodsCompliance,(function(t,i){var o;return v("img",{key:i,attrs:{src:null===(o=t.filter)||void 0===o?void 0:o.img},on:{click:function(o){return d.download(t.pic)}}})})),0)])]),d._v(" "),v("no-ssr",[v("footprint-report-dialog",{attrs:{visible:d.footprintVisible,carbon:d.pageData.carbon},on:{"update:visible":function(t){d.footprintVisible=t}}}),d._v(" "),v("project",{attrs:{productInfo:d.pageData},on:{handleOpenFootprint:function(t){d.footprintVisible=!0}}}),d._v(" "),d.showViewer?v("ElImageViewer",{attrs:{"on-close":d.closeViewer,"url-list":d.productImgArr}}):d._e()],1)],1)}),[function(){var t=this,o=t._self._c;return o("p",[t._v("\n This product has undergone mid-lifecycle carbon footprint assessment. Click the\n "),o("span",[t._v("Carbon Footprint")]),t._v(" project to view detailed calculations by transport mode;\n ")])},function(){var t=this,o=t._self._c;return o("p",[t._v("\n We offer "),o("span",[t._v("Gold Standard-ceriied carbon offset proiects")]),t._v(" for neutralization, ensuring full\n transparency and compliance with global sustainability standards. Contact us for detailed reports.\n ")])},function(){var t=this._self._c;return t("li",[t("div",{staticClass:"title"},[this._v("Product Info")])])},function(){var t=this._self._c;return t("li",[t("div",{staticClass:"title"},[this._v("Print Info")])])},function(){var t=this._self._c;return t("li",[t("div",{staticClass:"title"},[this._v("Functional Info")])])}],!1,null,"444dddb4",null);o.default=component.exports;installComponents(component,{TabNav:e(616).default,FootprintReportDialog:e(619).default,Project:e(620).default})}}]);
  2. //# sourceMappingURL=f2d6c5e.js.map