(window.webpackJsonp=window.webpackJsonp||[]).push([[7,47,52,55,56,57],{545:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=15),+parseFloat(Number(t).toPrecision(e))}function o(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function l(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));var e=o(t);return e>0?r(Number(t)*Math.pow(10,e)):Number(t)}function c(t){v&&(t>Number.MAX_SAFE_INTEGER||t1?arguments[1]:void 0)}}),l(c)},550:function(t,e,n){t.exports={}},551:function(t,e,n){"use strict";var r=n(2),o=n(99).findIndex,l=n(218),c="findIndex",d=!0;c in[]&&Array(1)[c]((function(){d=!1})),r({target:"Array",proto:!0,forced:d},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),l(c)},554:function(t,e,n){"use strict";n.r(e);n(535),n(537),n(11),n(22),n(36);var r=n(556),o=n(557),l=n(558),c={name:"Tinymce",props:{id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+(1e3*Math.random()).toFixed(0)}},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"auto"}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"}}},computed:{language:function(){return this.languageTypeList[this.$store.getters.language]},containerWidth:function(){var t=this.width;return/^[\d]+(\.[\d]+)?$/.test(t)?"".concat(t,"px"):t}},watch:{value:function(t){var e=this;!this.hasChange&&this.hasInit&&this.$nextTick((function(){return window.tinymce.get(e.tinymceId).setContent(t||"")}))},language:function(){var t=this;this.destroyTinymce(),this.$nextTick((function(){return t.initTinymce()}))}},mounted:function(){this.init()},activated:function(){window.tinymce&&this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.destroyTinymce()},methods:{init:function(){var t=this;Object(l.default)("//cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js",(function(e){e?t.$message.error(e.message):t.initTinymce()}))},initTinymce:function(){var t=this,e=this;window.tinymce.init({language:this.language,selector:"#".concat(this.tinymceId),height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:o.default,menubar:this.menubar,plugins:r.default,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(n){e.value&&n.setContent(e.value),e.hasInit=!0,n.on("NodeChange Change KeyUp SetContent",(function(){t.hasChange=!0,t.$emit("input",n.getContent())}))},setup:function(t){t.on("FullscreenStateChanged",(function(t){e.fullscreen=t.state}))},convert_urls:!1})},destroyTinymce:function(){var t=window.tinymce.get(this.tinymceId);this.fullscreen&&t.execCommand("mceFullScreen"),t&&t.destroy()},setContent:function(t){window.tinymce.get(this.tinymceId).setContent(t)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(t){var e=this;t.forEach((function(t){return window.tinymce.get(e.tinymceId).insertContent(''))}))}}},d=(n(566),n(21)),component=Object(d.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tinymce-container",class:{fullscreen:t.fullscreen},style:{width:t.containerWidth}},[e("textarea",{staticClass:"tinymce-textarea",attrs:{id:t.tinymceId}})])}),[],!1,null,"a9d38a5e",null);e.default=component.exports},556:function(t,e,n){"use strict";n.r(e);e.default=["advlist autolink autosave code colorpicker colorpicker contextmenu directionality fullscreen hr insertdatetime link lists nonbreaking noneditable paste preview print save spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"]},557:function(t,e,n){"use strict";n.r(e);e.default=["searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample","hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen"]},558:function(t,e,n){"use strict";n.r(e);n(43),n(79),n(67),n(81),n(65),n(42),n(11),n(22),n(38),n(32),n(37);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return o(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,l=function(){};return{s:l,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function o(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,l=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function j(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e0)for(var i in e.initUnitObj)if(0===n){var o=i.split("_"),l=t["supplier_".concat(o[1])];e.POA_Config.includes(l)?r["".concat(i)]=l:r["".concat(i)]=Object(f.d)(+l,t.num)}else r["".concat(i)]=e.POA_Config.includes(t[i])?t[i]:Object(f.d)(+t[i],t.num);return r})).filter((function(t){return 0!==Object.keys(t).length})):[]},comBuyData:function(){return this.calculateBuyData(),this.buyData},comNoSumCol:function(){return[].concat(Object(r.a)(this.buy_columns),Object(r.a)(this.comCurBaseTotalColumns))},comHasSumCol:function(){return[].concat(Object(r.a)(this.buy_columns),Object(r.a)(this.comCurBaseTotalColumns),Object(r.a)(this.comSummaryColumns))},comMergeColumns:function(){return 1==this.comLocationNum?this.comNoSumCol:this.comHasSumCol},comSellData:function(){return 0!==Object.keys(this.comAttributeList).length&&this.calculateSellData(),this.sellData},comFilterSwitchSellData:function(){var t,e=this;return null===(t=this.comSellData)||void 0===t?void 0:t.filter((function(t,i){return(1!==i||!e.setup_switch)&&((3!==i||!e.freight_switch)&&t)}))}}),methods:S(S({},Object(c.b)(["getUserInfo"])),{},{getQuote:function(){var t=this;this.$axios.post("/uk-api/quote/pricequote",{id:this.id}).then((function(e){localStorage.getItem("unit")&&(t.unitData=JSON.parse(localStorage.getItem("unit")));var n=e.result,l=n.attributeList,c=n.priceList,d=n.default;if(Object.keys(l).length&&Object.keys(c).length){for(var a in l){l[a]?t.initZeroObj[a]=0:delete l[a];var m,f=C(t.unitData);try{for(f.s();!(m=f.n()).done;){var h=m.value;a in h&&""!==h[a]||t.$set(h,a,40)}}catch(t){f.e(t)}finally{f.f()}}for(var y in c){var v={},_=c[y],O=_.decoration,j=_.additionlist,x=o(_,w);v.basePrice=[],v.selectAdditionRow=[],v.curPrint=0,v.name=t.formatDurationString(y),v.nameOrigin=y,v.decorationOrign=Object(r.a)(O),v.decorationID=O.map((function(i){return i.id})),v.decoration=Object(r.a)(O).flatMap((function(t){var e=[];return t.max_color>0&&e.push(S(S({},t),{},{max_num:t.max_color,id:"".concat(t.id,"-1"),decName:t.max_color_name})),t.max_point>0&&e.push(S(S({},t),{},{max_num:t.max_point,id:"".concat(t.id,"-2"),decName:t.max_point_name})),e})),v.additionlist=j;var D=function(){var e,n,r={};if(r.attributeList=t.copyData(l),(null===(e=x[P])||void 0===e?void 0:e.length)>1){var o=function(e){x[P].every((function(n){return t.POA_Config.includes(n[e])}))&&delete r.attributeList[e]};for(var c in l)o(c)}else if(1===(null===(n=x[P])||void 0===n?void 0:n.length)){var d=x[P][0],m=Object.keys(r.attributeList);m.every((function(e){return Object.prototype.hasOwnProperty.call(d,e)&&t.POA_Config.includes(d[e])}))||m.forEach((function(e){Object.prototype.hasOwnProperty.call(d,e)&&t.POA_Config.includes(d[e])&&delete r.attributeList[e]}))}r.name=P,r.data=x[P],r.locationNum=1,r.part_columns=Object.keys(r.attributeList).map((function(t){return{label:r.attributeList[t].toString(),prop:t}}));var f={postcode:"",freight_type:1,freight:{}};r.total_part_columns=t.copyData(r.part_columns).map((function(t){return S(S({},t),f)})),r.remainingAttr=[];for(var h=S(S({},r.part_columns[0]),f),i=1;i<9;i++)if(!Object.keys(r.attributeList).includes("website_qty".concat(i))){var y=S({},h);t.$set(y,"prop","website_qty".concat(i)),r.remainingAttr.push(y)}v.basePrice.push(r),t.allPrintTab.includes(P)||t.allPrintTab.push(P)};for(var P in x)D();t.priceList.push(v)}t.priceList.forEach((function(e,n){e.nameOrigin===(null==d?void 0:d.name)&&(t.curWeek=n,e.decorationOrign.forEach((function(n,r){var o;n.id===(null==d||null===(o=d.decoration)||void 0===o?void 0:o.id)&&t.$set(e,"curPrint",r)}))),e.basePrice.forEach((function(n,o){var l;t.$set(n,"selectBaseRow",n.data[0]||{}),n.decoration_addition=[].concat(Object(r.a)((null===(l=e.decorationOrign)||void 0===l||null===(l=l[o])||void 0===l?void 0:l.decoration_addition)||[]),Object(r.a)(e.additionlist||[]))})),e.decoration.forEach((function(e){t.$set(e,"num",0)}))})),t.initSetupObj=Object.assign({},t.initZeroObj),t.initUnitObj=Object.assign({},t.initZeroObj,{website_setup:0}),t.initFrightObj=Object.assign({},t.initZeroObj),t.buyData=t.buyData.map((function(e){return S(S({},e),t.initSetupObj)})),t.sellData=t.sellData.map((function(e){return S(S({},e),t.initSetupObj)})),t.quoteLoadState=1}else t.quoteLoadState=2})).catch((function(e){console.log("this.quoteLoadState1: ",e),t.quoteLoadState=2}))},formatDurationString:function(input){return input.replace(/(\d+)([a-zA-Z]+)/g,"$1 $2")},getDebFreight:m.a.debounce((function(t){this.getFreight(t)}),200),getNumber:function(t,e,n){parseInt(t.target.value)0){var n=t.comCurBaseColumns[e-1].prop;t.$set(t.initChangeUnitObj,a,t.initUnitObj[n])}else{var r=t.comCurBaseColumns.length,o=t.comCurBaseColumns[r-1].prop;t.$set(t.initChangeUnitObj,a,t.initUnitObj[o])}if("POA"===t.initChangeUnitObj[a]||"-"===t.initChangeUnitObj[a])t.$set(t.initSetupObj,a,t.initChangeUnitObj[a]),t.$set(t.initFrightObj,a,t.initChangeUnitObj[a]);else{t.$set(t.initSetupObj,a,t.initUnitObj.website_setup);var l,c,d=t.weight.unit_w_local?+t.weight.unit_w_local:0,m=Math.ceil(Object(f.d)(d,t.comAttributeList[a])),h=t.dividePrice(t.configInfo.fuel),y=t.dividePrice(t.configInfo.bag_freight),v=t.dividePrice(t.configInfo.express_freight),_=Object(f.c)(1,y,h),O=Object(f.c)(1,v,h),w=0,C={},j=t.comCurBaseTotalColumns.findIndex((function(t){return t.prop===a}));if(1==+t.comLocationNum||t.comLocationNum>=j+1){var x=t.comCurBaseTotalColumns[1==+t.comLocationNum?0:j]||{};C=x.freight,l=x.freight_type,c=x.postcode}if(1===l&&c>=3)if(m>20){var S=Object(f.b)(m,20),D=Object(f.d)(S,+C.basic),P=Object(f.c)(+C.pickup,D);w=Object(f.d)(P,O)}else w=Object(f.d)(+C.pickup,O);else if(2===l&&c>=3){var T=Object(f.a)(m,5),k=Object(f.d)(+C.minimum,Math.ceil(T));w=Object(f.d)(k,_)}else w=0;t.$set(t.initFrightObj,a,Math.ceil(w).toFixed(2))}if("-"===t.initChangeUnitObj[a]||"POA"===t.initChangeUnitObj[a])t.$set(t.initTotalObj,a,t.initChangeUnitObj[a]);else{var F=Object(f.d)(t.initChangeUnitObj[a],t.comAttributeList[a]);t.$set(t.initTotalObj,a,Object(f.c)(t.initUnitObj.website_setup,F,t.initFrightObj[a]).toFixed(2))}if(t.setup_switch)if("-"===t.initChangeUnitObj[a]||"POA"===t.initChangeUnitObj[a])t.$set(t.initChangeUnitObj,a,t.initChangeUnitObj[a]);else{var A=Math.ceil(t.initSetupObj[a]/t.comAttributeList[a]*100)/100;t.$set(t.initChangeUnitObj,a,Object(f.c)(t.initChangeUnitObj[a],A).toFixed(2))}if(t.freight_switch)if("-"===t.initChangeUnitObj[a]||"POA"===t.initChangeUnitObj[a])t.$set(t.initChangeUnitObj,a,t.initChangeUnitObj[a]);else{var N=Math.ceil(t.initFrightObj[a]/t.comAttributeList[a]*100)/100;t.$set(t.initChangeUnitObj,a,Object(f.c)(t.initChangeUnitObj[a],N).toFixed(2))}};for(var a in this.comAttributeList)o(a);this.setup_switch?this.$set(this.buyData,0,S(S(S({},this.buyData[0]),this.initZeroObj),{summary:0})):this.$set(this.buyData,0,S(S({},this.buyData[0]),this.initSetupObj)),this.$set(this.buyData,1,S(S({},this.buyData[1]),this.initChangeUnitObj)),this.freight_switch?this.$set(this.buyData,2,S(S({},this.buyData[2]),this.initZeroObj)):this.$set(this.buyData,2,S(S({},this.buyData[2]),this.initFrightObj)),this.$set(this.buyData,3,S(S({},this.buyData[3]),this.initTotalObj))}else this.buyData=this.buyData.map((function(e){return S(S({},e),t.initZeroObj)}))},calculateSellData:function(){var t=this,e=this.comBuyData[0],n=this.comBuyData[1],r=this.comBuyData[2],o=0,l=function(i){if("-"===n[i]||"POA"===n[i])t.sellData[0][i]="-",t.sellData[1][i]=n[i],t.sellData[2][i]=n[i],t.sellData[3][i]=n[i],t.sellData[4][i]=n[i];else{var l,c=1===t.comLocationNum?t.comCurBaseTotalColumns[0]:t.comCurBaseTotalColumns.find((function(element){return element.prop===i}));t.sellData[0][i]=c&&""!==c.postcode?c.postcode:"-";var d=null===(l=t.comCurBaseTotalColumns[0])||void 0===l?void 0:l.prop;if(t.unitData[1]&&t.unitData[1][d]){var m=Object(f.c)(t.unitData[1][d]/100,1);t.sellData[1][i]=Object(f.d)(e[i],m).toFixed(2)}else t.sellData[1][i]=e[i];if(t.unitData[0][i]){var h=Object(f.c)(t.unitData[0][i]/100,1);t.sellData[2][i]=Object(f.d)(n[i],h).toFixed(2)}else t.sellData[2][i]=n[i];if(t.unitData[2]&&t.unitData[2][d]){var y=Object(f.c)(t.unitData[2][d]/100,1);t.sellData[3][i]=Object(f.d)(r[i],y).toFixed(2);var v=Object(f.d)(t.initFrightObj[i],y);o=Object(f.c)(o,v).toFixed(2)}else t.sellData[3][i]=r[i],o=Object(f.c)(o,t.initFrightObj[i]).toFixed(2);var _=Object(f.d)(t.sellData[2][i],t.comAttributeList[i]);t.$set(t.sellData[4],i,Object(f.c)(t.sellData[1][i],_,t.sellData[3][i]).toFixed(2))}};for(var i in this.comAttributeList)l(i);if("-"!==this.sellData[2].summary&&"POA"!==this.sellData[2].summary)if(this.freight_switch){var c=Math.ceil(o/this.comAttributeList.summary*100)/100;this.sellData[2].summary=Object(f.c)(this.sellData[2].summary,c).toFixed(2),this.sellData[3].summary=0;var a=Object(f.d)(this.sellData[2].summary,this.comAttributeList.summary);this.sellData[4].summary=Object(f.c)(this.sellData[1].summary,a).toFixed(2)}else this.sellData[3].summary=o,this.sellData[4].summary=Object(f.c)(o,this.sellData[4].summary).toFixed(2)},getChildIdx:function(t){var e;this.xxContentVisible=!0,this.$set(this.comCurBaseTotalColumns[t-1],"label",null===(e=this.comCurBaseColumns[0])||void 0===e?void 0:e.label)},setMaxNum:function(t){t>7?this.comCurBasePrice.locationNum=7:t<1&&(this.comCurBasePrice.locationNum=1)}},Object(c.c)({openDialog:"openDialog",setLoading:"product/setLoading"}))},P=(n(778),n(21)),component=Object(P.a)(D,(function(){var t,e=this,n=e._self._c;return n("div",[0==e.quoteLoadState?n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"com-loading"}):1==e.quoteLoadState?n("div",[n("tab-nav",{attrs:{borderType:"allBorder",liWidth:100,liHeight:40,marginRight:5,currTab:e.curWeek,tabList:e.priceList},on:{"update:currTab":function(t){e.curWeek=t},"update:curr-tab":function(t){e.curWeek=t}}}),e._v(" "),e._l(e.priceList,(function(t,o){var l,c,d,m;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.curWeek==o,expression:"curWeek == indexs"}],key:t.name},[n("div",[n("tab-nav",{attrs:{borderType:"incompleteBorder",currTab:t.curPrint,tabList:t.basePrice,allPrintTab:e.allPrintTab,marginTop:0,marginRight:5,marginBottom:(null===(l=t.basePrice)||void 0===l?void 0:l.length)>1?7:0},on:{"update:currTab":function(n){return e.$set(t,"curPrint",n)},"update:curr-tab":function(n){return e.$set(t,"curPrint",n)},handle:function(n){return e.sortBy(t)}}})],1),e._v(" "),e._l(t.basePrice,(function(o,l){var c;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.curPrint==l,expression:"items.curPrint == index"}],key:o.name},[n("new-price-table",{attrs:{tableColumns:[].concat(Object(r.a)(e.undecorated_columns),Object(r.a)(o.part_columns)),tableData:o.data,tableType:"Undecorated",curPrint:o.name,curModel:null===(c=t.decorationOrign[l])||void 0===c?void 0:c.model,data:t,selectRow:o.selectBaseRow},on:{"update:selectRow":function(t){return e.$set(o,"selectBaseRow",t)},"update:select-row":function(t){return e.$set(o,"selectBaseRow",t)}}})],1)})),e._v(" "),null!==(c=t.decoration)&&void 0!==c&&c.length||null!==(d=t.basePrice)&&void 0!==d&&null!==(d=d[t.curPrint])&&void 0!==d&&null!==(d=d.decoration_addition)&&void 0!==d&&d.length?n("new-price-table",{attrs:{tableData:t.decoration,tableColumns:[].concat(Object(r.a)(e.decoration_columns),Object(r.a)(e.comCurBaseColumns)),tableType:"Decoration",marginBottom:0,hasDecAdd:null===(m=t.basePrice)||void 0===m||null===(m=m[t.curPrint])||void 0===m||null===(m=m.decoration_addition)||void 0===m?void 0:m.length}}):e._e(),e._v(" "),e._l(t.basePrice,(function(o,l){return n("div",{directives:[{name:"show",rawName:"v-show",value:t.curPrint==l&&o.decoration_addition.length,expression:"items.curPrint == index && item.decoration_addition.length"}],key:o.name+l},[n("new-price-table",{attrs:{tableData:o.decoration_addition,tableColumns:[].concat(Object(r.a)(e.addon_columns),Object(r.a)(o.part_columns)),isCheckBox:!0,tableType:"Addon",multipleSelection:t.selectAdditionRow},on:{"update:multipleSelection":function(n){return e.$set(t,"selectAdditionRow",n)},"update:multiple-selection":function(n){return e.$set(t,"selectAdditionRow",n)}}})],1)}))],2)}))],2):n("div",{staticClass:"quote-tips"},[e._v("\n Current item prices are missing, please contact"),n("a",{attrs:{href:"mailto:Info@promocollection.uk"}},[e._v("\n info@promocollection.uk")])]),e._v(" "),n("no-ssr",[1==e.quoteLoadState?n("div",[n("form-dialog",{attrs:{emailForm:e.enquiryForm,enquiryConfig:e.enquiryConfig,visible:e.enquiryFormVisible,rules:e.rules,labelWidth:null!==(t=e.enquiryConfig[3].selectlist)&&void 0!==t&&t.length?140:82},on:{"update:visible":function(t){e.enquiryFormVisible=t},handleSend:e.sendPriceMail}}),e._v(" "),n("mail-table",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"mailtable",attrs:{mailData:e.mailData}},[n("price-to-img",{attrs:{pageData:e.pageData,specificationsObj:e.specificationsObj,tableData:e.comFilterSwitchSellData,tableColumns:e.comMergeColumns,comLocationNum:e.comLocationNum,emailForm:e.commentObj}})],1),e._v(" "),n("el-dialog",{ref:"dialogRef",attrs:{"lock-scroll":!1,title:"Customer Quote",visible:e.priceToImgVisible,"custom-class":"price-to-img-dialog"},on:{"update:visible":function(t){e.priceToImgVisible=t}}},[n("price-to-img",{ref:"priceToImgRef",attrs:{isImgSrc:!1,loading:e.pdfLoading,pageData:e.pageData,specificationsObj:e.specificationsObj,tableData:e.comFilterSwitchSellData,tableColumns:e.comMergeColumns,comLocationNum:e.comLocationNum,emailForm:e.commentObj},on:{"update:loading":function(t){e.pdfLoading=t}}}),e._v(" "),n("p",{staticClass:"tips"},[e._v("Change default standard comment:")]),e._v(" "),n("el-input",{model:{value:e.commentObj.Comments,callback:function(t){e.$set(e.commentObj,"Comments",t)},expression:"commentObj.Comments"}}),e._v(" "),n("div",{staticClass:"btn-wrap"},[n("el-button",{staticClass:"button-black button-margin",attrs:{size:"medium",loading:e.pdfLoading},on:{click:e.handleDownloadPdf}},[e._v("Download")])],1)],1),e._v(" "),n("price-to-img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"pdf",attrs:{loading:e.pdfLoading,pageData:e.pageData,specificationsObj:e.specificationsObj,tableData:e.comFilterSwitchSellData,tableColumns:e.comMergeColumns,comLocationNum:e.comLocationNum,emailForm:e.commentObj},on:{"update:loading":function(t){e.pdfLoading=t}}}),e._v(" "),n("dialog-XX-success",{attrs:{visible:e.xxContentVisible,imgType:!1,content:"This quantity is below the MOQ for this product"},on:{"update:visible":function(t){e.xxContentVisible=t}}})],1):e._e()])],1)}),[],!1,null,"33f0dc7e",null);e.default=component.exports;installComponents(component,{TabNav:n(603).default,FormDialog:n(704).default,PriceToImg:n(705).default})},700:function(t,e,n){"use strict";n.r(e);n(537),n(44),n(60),n(42),n(535),n(11),n(22);var r=n(545),o={filters:{multiplyPrice:function(t,e,n){return/^[0-9]+.?[0-9]*$/.test(t)?Object(r.d)(t,e.num):t},plusPrice:function(t,e){return e?Object(r.c)(t,e):t},differencePrice:function(t,e,n,o){if(/^[0-9]+.?[0-9]*$/.test(t)){var l=n.split("_"),c=+e["supplier_".concat(l[1])],d=Object(r.d)(e.num-1,c),m=Object(r.c)(t,d),f=+o["supplier_".concat(l[1])],h=Object(r.d)(o.num-1,f),y=Object(r.c)(+o[n],h);return m>y?"+".concat(Object(r.b)(m,y)):Object(r.b)(m,y)}return t}},props:{hasDecAdd:{type:Number,default:0},tableData:{type:Array,default:function(){return[]}},tableColumns:{type:Array,default:function(){return[]}},operateWith:{type:String,default:"100%"},isCheckBox:{type:Boolean,default:!1},tableType:{type:String,default:"Undecorated"},decorationObj:{type:Object,default:function(){return{}}},selectId:{type:Number,default:null},selectRow:{type:Object,default:function(){return{}}},multipleSelection:{type:Array,default:function(){return[]}},selectDecoration:{type:Object,default:function(){return{}}},curPrint:{type:String,default:""},curModel:{type:String,default:""},marginBottom:{type:Number,default:20},decorationMultiple:{type:Number,default:1},headerShow:{type:Boolean,default:!0}},data:function(){return{setupConfigList:[{id:1,name:"/col"},{id:2,name:"/desgin"},{id:3,name:"/pos"},{id:4,name:"/pos desgin"},{id:5,name:"POA"},{id:6,name:"Waived"}],setupTitleList:["1st","2nd","3rd"]}},computed:{getTableContainerClass:function(){return{"table-container":!0,"border-Decoration":"Decoration"===this.tableType&&this.hasDecAdd}},comTitle:function(){return"Undecorated"===this.tableType?"Includes ".concat(this.curModel):"Decoration"===this.tableType?"Add-Ons":this.curPrint},comDisplayCss:function(){return"Comparison"===this.tableType?"1px solid #efefef":"none"},comMultipleSelID:function(){return this.multipleSelection.map((function(i){return i.id}))},comTableData:function(){return this.tableType,this.tableData}},mounted:function(){"{}"!==JSON.stringify(this.selectRow)&&this.$refs.elTable.toggleRowSelection(this.selectRow)},methods:{judgeProp:function(t,e,n){if(0===n&&"Decoration"===this.tableType){var r=e.split("_");return t["supplier_".concat(r[1])]}return t[e]},$_setupPriceFilter:function(t){var e=this.setupConfigList.filter((function(e){return e.id===t}));return e.length>0?e[0].name:""},isNumber:function(t){return/^[0-9]+.?[0-9]*$/.test(t)},handleSelectionChange:function(t){this.$emit("update:multipleSelection",t)},dialogCheck:function(t,e){if(!this.isCheckBox){if(this.$refs.elTable.clearSelection(),0===t.length)return this.$emit("update:selectId",null),void this.$emit("update:selectRow",{});e&&(this.$emit("update:selectId",e.id),this.$emit("update:selectRow",e),this.$refs.elTable.toggleRowSelection(e,!0))}},addCar:function(t){var e=Object.assign({},t);e.parentId=this.decorationObj.parentId,this.$emit("update:selectRow",e),this.$refs.elTable.toggleRowSelection(t)},getRowKey:function(t){return t.id},arraySpanMethod:function(t){t.row,t.column,t.rowIndex;var e=t.columnIndex;return"Decoration"===this.tableType&&0===e?[0,1]:"Decoration"===this.tableType&&1===e?[1,2]:void 0},tableRowClassName:function(t){t.row;return"Decoration"===this.tableType?this.decorationMultiple?"borderNone":"hiddenRow":"fontBold"},handleSelectable:function(t,e){return 5!==t.website_setup_id},getNumber:function(t,e,n){parseInt(t)>n&&(e.num=n)}}},l=(n(631),n(21)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap",style:{marginBottom:t.marginBottom+"px"}},["Addon"!=t.tableType?e("p",{staticClass:"tb-title",domProps:{innerHTML:t._s(t.comTitle)}}):t._e(),t._v(" "),e("div",{class:t.getTableContainerClass},[e("el-table",{ref:"elTable",staticStyle:{width:"100%"},attrs:{"show-header":"Addon"!=t.tableType,data:t.comTableData,"header-cell-style":{backgroundColor:"#fff",fontWeight:"normal",fontSize:"14px",fontFamily:"Proxima Nova",color:"#000","--comDisplayCss":t.comDisplayCss},"row-key":"id","span-method":t.arraySpanMethod,"row-class-name":t.tableRowClassName},on:{"selection-change":t.handleSelectionChange,select:t.dialogCheck}},["Comparison"!=t.tableType?e("el-table-column",{attrs:{type:"selection",width:"50",align:"center","reserve-selection":!0,selectable:t.handleSelectable}}):t._e(),t._v(" "),t._l(t.tableColumns,(function(n){return[n.type?e("el-table-column",{key:n.prop,attrs:{align:n.align?n.align:"left",prop:n.prop,label:n.label,formatter:n.formatter,width:n.width,sortable:n.sortable},scopedSlots:t._u([{key:"default",fn:function(r){var o=r.row;return["radioInput"==n.type?[e("div",{staticClass:"flex between"},[e("span",[t._v(t._s(o.decName))]),t._v(" "),e("el-input",{staticClass:"edit-input",attrs:{min:"0",max:o.max_num,type:"number",size:"small"},on:{input:function(e){return t.getNumber(e,o,o.max_num)}},model:{value:o.num,callback:function(e){t.$set(o,"num",e)},expression:"row.num"}})],1)]:e("div",[o.filter_boolean?[e("div",{staticClass:"triangle"}),t._v(" "),e("div",{staticClass:"text"},[t._v("Eco")])]:t._e(),t._v("\n "+t._s(o[n.prop])+"\n "),"Undecorated"==t.tableType?e("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[e("i",{staticClass:"el-icon-warning",attrs:{slot:"reference"},slot:"reference"}),t._v(" "),e("p",{staticClass:"popover-text"},[t._v(t._s(t.comTitle))])]):t._e()],2)]}}],null,!0)}):t._e(),t._v(" "),n.type?t._e():e("el-table-column",{key:n.prop,attrs:{align:n.align?n.align:"center",prop:n.prop,label:n.label,formatter:n.formatter,sortable:n.sortable,"show-overflow-tooltip":"",width:(798-t.tableColumns[0].width-t.tableColumns[0].extraWidth)/(t.tableColumns.length-1)},scopedSlots:t._u([{key:"default",fn:function(r){var o=r.row,l=r.$index;return["website_setup"===n.prop?e("div",[0===l&&"Decoration"==t.tableType?e("div",[o.supplier_setup_id<5||7==o.supplier_setup_id?e("span",[t._v("£ "+t._s(o.supplier_setup?parseFloat(o.supplier_setup).toFixed(2):"0.00"))]):t._e(),t._v(" "),e("span",[t._v(t._s(t.$_setupPriceFilter(o.supplier_setup_id)))])]):e("div",[o.website_setup_id<5||7==o.website_setup_id?e("span",[t._v("£ "+t._s(o.website_setup?parseFloat(o.website_setup).toFixed(2):"0.00"))]):t._e(),t._v(" "),e("span",[t._v(t._s(t.$_setupPriceFilter(o.website_setup_id)))])])]):"111"==t.judgeProp(o,n.prop,l)||"111.00"==t.judgeProp(o,n.prop,l)?e("div",[t._v("\n -\n ")]):"999"==t.judgeProp(o,n.prop,l)||"999.00"===t.judgeProp(o,n.prop,l)?e("div",[t._v("\n POA\n ")]):""===t.judgeProp(o,n.prop,l)?e("div",[t._v("0")]):e("div",[t.isNumber(t.judgeProp(o,n.prop,l))&&!n.isFirstColumn?e("span",[t._v("£")]):t._e(),t._v(" "),e("span",[t._v(t._s(t.judgeProp(o,n.prop,l)))])])]}}],null,!0)})]}))],2)],1)])}),[],!1,null,"8da20436",null);e.default=component.exports},701:function(t,e,n){"use strict";n.r(e);n(97),n(62),n(98),n(535),n(22);var r=n(545),o={filters:{differencePrice:function(a,t,e,n){return/^[0-9]+(\.[0-9]*)?$/.test(a)?n.includes(t)||n.includes(e)?"111"===t||"111.00"===t||"111"===e||"111.00"===e?"-":"999"===t||"999.00"===t||"999"===e||"999.00"===e?"POA":void 0:t===e?0:+t>+e?"-£ ".concat(Object(r.b)(t,e)):+t<+e?"+£ ".concat(Object(r.b)(e,t)):"Waived":a||"Waived"}},props:{tableData:{type:Array,default:function(){return[]}},tableColumns:{type:Array,default:function(){return[]}},tableType:{type:String,default:""},curDecoration:{type:Object,default:function(){}},indexDecoration:{type:Object,default:function(){}},comLocationNum:{type:Number,default:1},curOrder:{type:String,default:""},min:{type:String,default:""},title:{type:String,default:""}},data:function(){return{poaConfig:["111","111.00","999","999.00"]}},methods:{getNumber:function(t,e){parseInt(t.target.value)1?arguments[1]:void 0),e}})},776:function(t,e,n){"use strict";var r=n(103),o=n(55),l=n(225),c=n(68),d=function(t,e,source,n,m,f,h,y){for(var element,v,_=m,O=0,w=!!h&&c(h,y);O0&&r(element)?(v=o(element),_=d(t,e,element,v,_,f-1)-1):(l(_+1),t[_]=element),_++),O++;return _};t.exports=d},777:function(t,e,n){"use strict";n(218)("flatMap")},778:function(t,e,n){"use strict";n(670)}}]); //# sourceMappingURL=dcc85bc.js.map