50f4742.js 61 KB

12
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[7,35,56,61,64,65,66],{528:function(t,e,n){"use strict";function o(t,e){return void 0===e&&(e=15),+parseFloat(Number(t).toPrecision(e))}function r(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=r(t);return e>0?o(Number(t)*Math.pow(10,e)):Number(t)}function c(t){v&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)&&console.warn(t+" is beyond boundary when transfer to integer, the results may not be accurate")}function d(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=e[0];return e.slice(1).reduce((function(e,n){return t(e,n)}),o)}}n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return m})),n.d(e,"a",(function(){return y}));var m=d((function(t,e){var n=l(t),o=l(e),d=r(t)+r(e),m=n*o;return c(m),m/Math.pow(10,d)})),f=d((function(t,e){var n=Math.pow(10,Math.max(r(t),r(e)));return(m(t,n)+m(e,n))/n})),h=d((function(t,e){var n=Math.pow(10,Math.max(r(t),r(e)));return(m(t,n)-m(e,n))/n})),y=d((function(t,e){var n=l(t),d=l(e);return c(n),c(d),m(n/d,o(Math.pow(10,r(e)-r(t))))}));var v=!0},530:function(t,e,n){t.exports={}},533:function(t,e,n){"use strict";n.r(e);n(521),n(523),n(11),n(17),n(32);var o=n(537),r=n(538),l=n(539),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:r.default,menubar:this.menubar,plugins:o.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('<img class="wscnph" src="'.concat(t.url,'" >'))}))}}},d=(n(543),n(22)),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,"64623c0e",null);e.default=component.exports},537: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"]},538: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"]},539:function(t,e,n){"use strict";n.r(e);n(41),n(78),n(81),n(82),n(65),n(39),n(11),n(17),n(34),n(33),n(42);function o(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 r(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)?r(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,l=function(){};return{s:l,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},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 r(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e<a;e++)n[e]=t[e];return n}var l=[];e.default=function(t,e){var n=document.getElementById(t),r=e||function(){};if(!n){var script=document.createElement("script");script.src=t,script.id=t,document.body.appendChild(script),l.push(r);var c="onload"in script?function(script){script.onload=function(){this.onerror=this.onload=null;var t,e=o(l);try{for(e.s();!(t=e.n()).done;){(0,t.value)(null,script)}}catch(t){e.e(t)}finally{e.f()}l=null},script.onerror=function(){this.onerror=this.onload=null,r(new Error("Failed to load "+t),script)}}:function(script){script.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState){this.onreadystatechange=null;var t,e=o(l);try{for(e.s();!(t=e.n()).done;){(0,t.value)(null,script)}}catch(t){e.e(t)}finally{e.f()}l=null}}};c(script)}n&&r&&(window.tinymce?r(null,n):l.push(r))}},543:function(t,e,n){"use strict";n(530)},545:function(t,e,n){"use strict";var o=n(2),r=n(83).find,l=n(149),c="find",d=!0;c in[]&&Array(1)[c]((function(){d=!1})),o({target:"Array",proto:!0,forced:d},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),l(c)},550:function(t,e,n){t.exports={}},571:function(t,e,n){"use strict";n.r(e);n(39);var o=n(24),r=(n(41),n(40),n(521),n(62),n(63),n(46),n(11),n(32),n(533)),l=n(43);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m={components:{Tinymce:r.default},props:{title:{type:String,default:"Send Email"},sendbtnCext:{type:String,default:"Send Enquiry"},cancelbtnCext:{type:String,default:"Cancel"},top:{type:String,default:"5vh"},isSendPdf:{type:Boolean,default:!1},emailForm:{},enquiryConfig:[],rules:{},labelWidth:{type:Number,default:150},marginBottom:{type:Number,default:20},visible:{type:Boolean,default:!1}},data:function(){return{downloading:!1}},computed:{comEnquiryConfig:function(){return this.enquiryConfig.filter((function(t){if(!t.hasOwnProperty("isShow")||t.isShow)return t}))}},methods:d(d({},Object(l.c)("product",["setLoading"])),{},{handleClose:function(){this.$emit("update:visible",!1)},handleSend:function(){var t=this;this.$refs.ruleForm.validate((function(e){if(!e)return!1;t.setLoading(!0),t.isSendPdf,t.$emit("handleSend")}))}})},f=(n(586),n(22)),component=Object(f.a)(m,(function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{"lock-scroll":!1,title:t.title,visible:t.visible,width:"700px","before-close":t.handleClose,top:t.top,"show-close":!1},on:{"update:visible":function(e){t.visible=e}}},[e("el-form",{ref:"ruleForm",attrs:{model:t.emailForm,rules:t.rules}},t._l(t.comEnquiryConfig,(function(n){return e("el-form-item",{key:n.prop,style:{marginBottom:t.marginBottom+"px"},attrs:{label:n.prop,"label-width":t.labelWidth+"px",prop:n.prop}},["text"===n.type?e("span",[t._v(t._s(t.emailForm[n.prop]))]):t._e(),t._v(" "),"input"===n.type?e("el-input",{attrs:{type:n.type,clearable:""},model:{value:t.emailForm[n.prop],callback:function(e){t.$set(t.emailForm,n.prop,e)},expression:"emailForm[item.prop]"}}):"textarea"===n.type?e("el-input",{attrs:{type:"textarea",rows:5,clearable:""},model:{value:t.emailForm[n.prop],callback:function(e){t.$set(t.emailForm,n.prop,e)},expression:"emailForm[item.prop]"}}):"tinymce"===n.type?e("tinymce",{attrs:{height:240},model:{value:t.emailForm[n.prop],callback:function(e){t.$set(t.emailForm,n.prop,e)},expression:"emailForm[item.prop]"}}):"select"===n.type&&n.isShow?e("el-select",{attrs:{clearable:"",filterable:"",placeholder:n.placeholder?n.placeholder:"Please select"},model:{value:t.emailForm[n.prop],callback:function(e){t.$set(t.emailForm,n.prop,e)},expression:"emailForm[item.prop]"}},t._l(n.selectlist,(function(i){return e("el-option",{key:i.id,attrs:{label:i.name,value:i.name}})})),1):"checkbox"===n.type?e("el-checkbox-group",{model:{value:t.emailForm[n.prop],callback:function(e){t.$set(t.emailForm,n.prop,e)},expression:"emailForm[item.prop]"}},t._l(n.selectlist,(function(i,n){return e("el-checkbox",{key:n,attrs:{label:n+1}},[t._v(t._s(i))])})),1):t._e()],1)})),1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",loading:t.$store.state.product.loading},on:{click:t.handleSend}},[t._v(t._s(t.sendbtnCext))]),t._v(" "),e("el-button",{attrs:{type:"info",plain:""},on:{click:t.handleClose}},[t._v(t._s(t.cancelbtnCext))])],1)],1)}),[],!1,null,"b3af2fb8",null);e.default=component.exports;installComponents(component,{Tinymce:n(533).default})},586:function(t,e,n){"use strict";n(550)},601:function(t,e,n){t.exports={}},602:function(t,e,n){t.exports={}},603:function(t,e,n){t.exports={}},604:function(t,e,n){t.exports={}},605:function(t,e,n){t.exports={}},612:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(207);var r=n(229),l=n(143);function c(t){return function(t){if(Array.isArray(t))return Object(o.a)(t)}(t)||Object(r.a)(t)||Object(l.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},615:function(t,e,n){"use strict";n.r(e);n(39),n(46),n(40),n(53),n(64),n(521),n(11),n(77);var o={props:{borderType:{type:String,default:"noBorder"},fontSize:{type:Number,default:14},marginTop:{type:Number,default:0},marginBottom:{type:Number,default:10},liWidth:{type:Number,default:0},liHeight:{type:Number,default:28},marginRight:{type:Number,default:0},currTab:{type:[Number,String],default:0},tabList:{type:[Array,Object],default:function(){return[]}},allPrintTab:{type:[Array,Object],default:function(){return[]}}},data:function(){return{textColor:"red"}},computed:{comRemaining:function(){var t=this.tabList.map((function(i){return i.name}));return this.allPrintTab.filter((function(element){return!t.includes(element)}))}},methods:{selTab:function(i){this.$emit("update:currTab",i),this.$emit("handle")}}},r=(n(650),n(22)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tabs",style:{marginTop:t.marginTop+"px",marginBottom:t.marginBottom+"px",fontSize:t.fontSize+"px"}},[Array.isArray(t.tabList)?e("ul",{class:t.borderType},[t._l(t.tabList,(function(n,i){return[!n.hasOwnProperty("isShow")||n.isShow?e("li",{key:n.name,class:{active:i===t.currTab},style:{minWidth:t.liWidth+"px",height:t.liHeight+"px",lineHeight:t.liHeight+"px",marginRight:t.marginRight+"px"},on:{click:function(e){return t.selTab(i)}}},[e("div",[t._v(t._s(n.name))])]):t._e()]})),t._l(t.comRemaining,(function(n){return e("li",{key:n,staticClass:"unclickable",style:{minWidth:t.liWidth+"px",lineHeight:t.liHeight+"px",marginRight:t.marginRight+"px"}},[e("div",[t._v(t._s(n))])])}))],2):e("ul",t._l(Object.keys(t.tabList),(function(n,i){return e("li",{key:i,class:{active:i===t.currTab},style:{minWidth:t.liWidth+"px",marginRight:t.marginRight+"px"},on:{click:function(e){return t.selTab(n)}}},[e("div",[t._v(t._s(n))])])})),0)])}),[],!1,null,"8a32da06",null);e.default=component.exports},647:function(t,e,n){"use strict";n(601)},648:function(t,e,n){"use strict";n(602)},649:function(t,e,n){"use strict";n(603)},650:function(t,e,n){"use strict";n(604)},651:function(t,e,n){"use strict";n(605)},694:function(t,e,n){t.exports={}},706:function(t,e,n){"use strict";n.r(e);var o=n(612);n(98),n(39),n(41),n(78),n(81),n(82),n(62),n(63),n(33),n(42);function r(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.includes(o))continue;n[o]=t[o]}return n}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var l=n(12),c=n(24),d=(n(61),n(40),n(545),n(320),n(817),n(53),n(64),n(65),n(819),n(521),n(523),n(46),n(11),n(17),n(34),n(77),n(47),n(32),n(43)),m=n(636),f=n.n(m),h=n(528),y=n(724),v=n(725),_=n(726),C=n(727),w=n(218),O=["decoration","additionlist"];function j(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 x(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)?x(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}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 x(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e<a;e++)n[e]=t[e];return n}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){Object(c.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var P={components:{NewPriceTable:y.default,TotalTable:v.default,UnitTable:_.default,MailTable:C.default,"dialog-XX-success":w.default},props:{pageData:{type:Object,default:function(){return{}}},id:{type:Number,default:null}},data:function(){return{quoteLoadState:0,curWeek:0,allPrintTab:[],priceList:[],initZeroObj:{},initSetupObj:{},initUnitObj:{},initChangeUnitObj:{},initFrightObj:{},initTotalObj:{},xxContentVisible:!1,setup_switch:!1,freight_switch:!1,weight:{},undecorated_columns:[{label:"MODEL",prop:"model",type:"text",align:"left",width:150,extraWidth:50,isFirstColumn:!0},{label:"SETUP",prop:"website_setup"}],decoration_columns:[{label:"PRINT OPTION",prop:"dec_code",type:"radioInput",align:"left",width:150,extraWidth:50},{label:"SETUP",prop:"website_setup"}],addon_columns:[{label:"Addon",prop:"name",type:"text",width:150,extraWidth:50,isFirstColumn:!0},{label:"Setup",prop:"website_setup"}],buy_columns:[{label:"QTY",prop:"project",isFirstColumn:!0}],unit_columns:[{label:"QTY",prop:"total",align:"left",isText:!0}],buyData:[{project:"Setup"},{project:"Unit"},{project:"Freight"},{project:"Total"}],unitData:[{total:"Unit Rate %"},{total:"Setup %"},{total:"Freight %"}],sellData:[{project:"Postcode",summary:"-"},{project:"Setup",summary:0},{project:"Unit",summary:0},{project:"Freight",summary:0},{project:"Total",summary:0}],POA_Config:["111","111.00","999","999.00"],enquiryFormVisible:!1,enquiryForm:{Name:"",Email:"",Phone:"",Comments:""},enquiryConfig:[{prop:"Name",type:"input"},{prop:"Email",type:"input"},{prop:"Phone",type:"input"},{prop:"Customer manager",type:"select",selectlist:[],isShow:!1},{prop:"Comments",type:"textarea"}],rules:{Name:[{required:!0,message:"Please enter",trigger:"blur"}],Email:[{required:!0,message:"Please enter the correct format",pattern:/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,trigger:"blur"}],Phone:[{required:!0,message:"Please enter the correct format",trigger:"blur"}],"Customer manager":[{required:!0,message:"Please select",trigger:"change"}]},mailData:{Url:""},priceToImgVisible:!1,downloadDialogVisible:!1,commentObj:{"Email Address":"",Comments:""},enquiryConfig1:[{prop:"Email Address",type:"input"},{prop:"Comments",type:"input"}],rules1:{"Email Address":[{required:!0,message:"Please enter the correct format",pattern:/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,trigger:"blur"}]},specificationsObj:{time:null,model:null,decoration:null,addonArr:null},pdfLoading:!1}},computed:D(D({},Object(d.d)("config",{configInfo:function(t){return t.configInfo}})),{},{userInfo:function(){return this.$store.state.userInfo},comCurWeekPrice:function(){return this.priceList[this.curWeek]||{}},comCurPrint:function(){return this.comCurWeekPrice.curPrint},comCurBasePrice:function(){return this.comCurWeekPrice.basePrice[this.comCurPrint]},comLocationNum:function(){return+this.comCurWeekPrice.basePrice[this.comCurPrint].locationNum},comCurBaseColumns:function(){return this.comCurBasePrice.part_columns},comCurBaseTotalColumns:function(){var t=this.comCurWeekPrice.basePrice[this.comCurPrint].total_part_columns,e=this.comLocationNum;return 1===e?t:[].concat(Object(o.a)(t),Object(o.a)(this.comCurWeekPrice.basePrice[this.comCurPrint].remainingAttr)).slice(0,e)},comTotalLabel:function(){return this.comCurBaseTotalColumns.reduce((function(t,e){return t+Number(e.label)}),0)},comSummaryColumns:function(){return[{label:this.comTotalLabel.toString(),prop:"summary"}]},comAttributeList:function(){var t,e={};return null===(t=this.comCurBaseTotalColumns)||void 0===t||t.forEach((function(t){e[t.prop]=t.label})),e.summary=this.comTotalLabel,e},comBasePrice:function(){return this.comCurBasePrice.selectBaseRow},comDecoPrice:function(){var t,e=this;return null!==(t=this.comCurWeekPrice.decoration)&&void 0!==t&&t.length?this.comCurWeekPrice.decoration.map((function(t,n){var o={};if(+t.num>0)for(var i in e.initUnitObj)if(0===n){var r=i.split("_"),l=t["supplier_".concat(r[1])];e.POA_Config.includes(l)?o["".concat(i)]=l:o["".concat(i)]=Object(h.d)(+l,t.num)}else o["".concat(i)]=e.POA_Config.includes(t[i])?t[i]:Object(h.d)(+t[i],t.num);return o})).filter((function(t){return 0!==Object.keys(t).length})):[]},comBuyData:function(){return this.calculateBuyData(),this.buyData},comNoSumCol:function(){return[].concat(Object(o.a)(this.buy_columns),Object(o.a)(this.comCurBaseTotalColumns))},comHasSumCol:function(){return[].concat(Object(o.a)(this.buy_columns),Object(o.a)(this.comCurBaseTotalColumns),Object(o.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:D(D({},Object(d.b)(["getUserInfo"])),{},{multiplyWithMargin:function(t,e){return Object(h.a)(Object(h.d)(t,100+parseFloat(e)),100)},getQuote:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var n,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,l=0,e.next=4,t.$store.dispatch("getShopInfo").then((function(t){n=parseFloat(t.margin)||0,l=parseFloat(t.setup_margin)||0}));case 4:t.$axios.post("/catalog/pricequote",{id:t.id}).then((function(e){localStorage.getItem("unit")&&(t.unitData=JSON.parse(localStorage.getItem("unit")));var c=e.result,d=c.attributeList,m=c.priceList,f=c.default;if(Object.keys(d).length&&Object.keys(m).length){for(var a in d){d[a]?t.initZeroObj[a]=0:delete d[a];var h,y=j(t.unitData);try{for(y.s();!(h=y.n()).done;){var v=h.value;a in v&&""!==v[a]||t.$set(v,a,40)}}catch(t){y.e(t)}finally{y.f()}}for(var _ in m){var C={},w=m[_],x=w.decoration,S=w.additionlist,P=r(w,O);C.basePrice=[],C.selectAdditionRow=[],C.curPrint=0,C.name=t.formatDurationString(_),C.nameOrigin=_,C.decorationOrign=Object(o.a)(x),C.decorationID=x.map((function(i){return i.id})),C.decoration=Object(o.a)(x).flatMap((function(t){var e=[];return t.max_color>0&&e.push(D(D({},t),{},{max_num:t.max_color,id:"".concat(t.id,"-1"),decName:t.max_color_name})),t.max_point>0&&e.push(D(D({},t),{},{max_num:t.max_point,id:"".concat(t.id,"-2"),decName:t.max_point_name})),e})),C.additionlist=S;var T=function(){var e,o,r={};if(r.name=k,P[k]=P[k].map((function(e){for(var o=D({},e),i=1;i<=8;i++)e["website_qty".concat(i)]&&!t.POA_Config.includes(e["website_qty".concat(i)])&&(o["website_qty".concat(i)]=t.multiplyWithMargin(parseFloat(e["website_qty".concat(i)]),n).toString());return o.website_setup=t.multiplyWithMargin(parseFloat(e.website_setup),l).toString(),o})),r.data=P[k],r.attributeList=t.copyData(d),(null===(e=P[k])||void 0===e?void 0:e.length)>1){var c=function(e){P[k].every((function(n){return t.POA_Config.includes(n[e])}))&&delete r.attributeList[e]};for(var m in d)c(m)}else if(1===(null===(o=P[k])||void 0===o?void 0:o.length)){var f=P[k][0],h=Object.keys(r.attributeList);h.every((function(e){return Object.prototype.hasOwnProperty.call(f,e)&&t.POA_Config.includes(f[e])}))||h.forEach((function(e){Object.prototype.hasOwnProperty.call(f,e)&&t.POA_Config.includes(f[e])&&delete r.attributeList[e]}))}r.name=k,r.data=P[k],r.locationNum=1,r.part_columns=Object.keys(r.attributeList).map((function(t){return{label:r.attributeList[t].toString(),prop:t}}));var y={postcode:"",freight_type:1,freight:{}};r.total_part_columns=t.copyData(r.part_columns).map((function(t){return D(D({},t),y)})),r.remainingAttr=[];for(var v=D(D({},r.part_columns[0]),y),i=1;i<9;i++)if(!Object.keys(r.attributeList).includes("website_qty".concat(i))){var _=D({},v);t.$set(_,"prop","website_qty".concat(i)),r.remainingAttr.push(_)}C.basePrice.push(r),t.allPrintTab.includes(k)||t.allPrintTab.push(k)};for(var k in P)T();t.priceList.push(C)}t.priceList.forEach((function(e,n){e.nameOrigin===(null==f?void 0:f.name)&&(t.curWeek=n,e.decorationOrign.forEach((function(n,o){var r;n.id===(null==f||null===(r=f.decoration)||void 0===r?void 0:r.id)&&t.$set(e,"curPrint",o)}))),e.basePrice.forEach((function(n,r){var l;t.$set(n,"selectBaseRow",n.data[0]||{}),n.decoration_addition=[].concat(Object(o.a)((null===(l=e.decorationOrign)||void 0===l||null===(l=l[r])||void 0===l?void 0:l.decoration_addition)||[]),Object(o.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 D(D({},e),t.initSetupObj)})),t.sellData=t.sellData.map((function(e){return D(D({},e),t.initSetupObj)})),t.quoteLoadState=1}else t.quoteLoadState=2})).catch((function(e){console.log("this.quoteLoadState1: ",e),t.quoteLoadState=2}));case 5:case"end":return e.stop()}}),e)})))()},formatDurationString:function(input){return input.replace(/(\d+)([a-zA-Z]+)/g,"$1 $2")},getWeight:function(){var t=this;this.$axios.post("/catalog/weight",{id:this.id}).then((function(e){t.weight=e.result})).catch((function(){}))},getFreight:function(t){var e=this,n=this.comCurBaseTotalColumns[t].postcode,o=this.comCurBaseTotalColumns[t].freight_type,r={basic:0,pickup:0,minimum:0};n.length<3?this.comCurBaseTotalColumns[t].freight=r:this.$axios.post("/catalog/freight",{postcode:n,type:o}).then((function(n){e.comCurBaseTotalColumns[t].freight=Array.isArray(n.result)?r:n.result}))},getDebFreight:f.a.debounce((function(t){this.getFreight(t)}),200),getNumber:function(t,e,n){parseInt(t.target.value)<n?(this.xxContentVisible=!0,e.label=n):this.xxContentVisible=!1},sortBy:function(t){},customSort:function(t){return function(a,b){return t.indexOf(a.id)-t.indexOf(b.id)}},dividePrice:function(a){return Object(h.a)(+a,100)},openMailDialog:function(){this.enquiryFormVisible=!0},getMailData:function(){this.mailData.Url=window.location.href;var t=this.enquiryForm,e=t.Name,n=t.Email,o=t.Phone,r=t.Comments;this.mailData["Customer Name"]=e,this.mailData["Customer Email"]=n,this.mailData["Customer Phone"]=o,this.mailData.Comments=r,this.mailData["Quote time"]=this.$utils.formatTime(new Date)},sendPriceMail:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){var n,o,r,l,c,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getMailData();case 2:return e.next=4,t.getCustomerQuoteData();case 4:return e.next=6,t.$store.dispatch("getShopInfo").then((function(t){return t}));case 6:n=e.sent,o=t.enquiryForm,r=o.Name,l=o.Email,c=o.Phone,d=o.Comments,t.$axios.post("/c-api/quote/sendenquiry",{site_id:n.id||"",content:t.$refs.mailtable.$el.innerHTML,name:r,email:l,phone:c,product_code:t.pageData.product_code,comments:d}).then((function(e){t.setLoading(!1),t.enquiryFormVisible=!1,t.$confirm("Enquiry Sent",{confirmButtonText:"OK",showCancelButton:!1,type:"success",center:!0,showClose:!1,confirmButtonClass:"com-btnblack"}).then((function(){}))})).catch((function(){t.setLoading(!1)}));case 9:case"end":return e.stop()}}),e)})))()},getCustomerQuoteData:function(){var t=this.comCurWeekPrice,e=t.name,n=t.selectAdditionRow;this.specificationsObj.time=e,this.specificationsObj.model=this.comBasePrice.model,this.specificationsObj.decoration=this.comCurBasePrice.name,n.length?this.specificationsObj.addonArr=n.map((function(t){return t.name})):this.specificationsObj.addonArr=null},openDownloadDialog:function(t){this.getCustomerQuoteData(),t?this.downloadDialogVisible=!0:this.priceToImgVisible=!0},handleDownloadPdf:function(){var t=this;this.pdfLoading=!0,this.$nextTick((function(){t.$refs.priceToImgRef.htmlToPdf(t.pageData.product_code)}))},sendPdfMail:function(){var t=this;this.$axios.post("/quote/sendpdf",{content:this.$refs.pdf.$el.innerHTML,product_code:this.pageData.product_code,email:this.commentObj["Email Address"]}).then((function(e){t.setLoading(!1),t.downloadDialogVisible=!1,t.$confirm("Enquiry Sent",{confirmButtonText:"OK",showCancelButton:!1,type:"success",center:!0,showClose:!1,confirmButtonClass:"com-btnblack"})})).catch((function(){t.setLoading(!1)}))},copyData:function(data){return JSON.parse(JSON.stringify(data))},calculateBuyData:function(){var t=this,e=[];if("{}"!==JSON.stringify(this.comBasePrice)&&e.push(this.comBasePrice),e.push.apply(e,Object(o.a)(this.comDecoPrice).concat(Object(o.a)(this.comCurWeekPrice.selectAdditionRow))),0!==e.length){var n=function(i){var n=t.copyData(e).reduce((function(t,e){return"111"===e[i]||"111.00"===e[i]?e[i]="-":"999"===e[i]||"999.00"===e[i]?e[i]="POA":"-"===t||"POA"===t?t:Object(h.c)(+e[i],t).toFixed(2)}),0);t.$set(t.initUnitObj,i,n)};for(var i in this.initUnitObj)n(i);var r=function(a){var e=t.comCurBaseColumns.findIndex((function(e){return+t.comAttributeList[a]<+e.label}));if(e>0){var n=t.comCurBaseColumns[e-1].prop;t.$set(t.initChangeUnitObj,a,t.initUnitObj[n])}else{var o=t.comCurBaseColumns.length,r=t.comCurBaseColumns[o-1].prop;t.$set(t.initChangeUnitObj,a,t.initUnitObj[r])}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(h.d)(d,t.comAttributeList[a])),f=t.dividePrice(t.configInfo.fuel),y=t.dividePrice(t.configInfo.bag_freight),v=t.dividePrice(t.configInfo.express_freight),_=Object(h.c)(1,y,f),C=Object(h.c)(1,v,f),w=0,O={},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]||{};O=x.freight,l=x.freight_type,c=x.postcode}if(1===l&&c>=3)if(m>20){var S=Object(h.b)(m,20),D=Object(h.d)(S,+O.basic),P=Object(h.c)(+O.pickup,D);w=Object(h.d)(P,C)}else w=Object(h.d)(+O.pickup,C);else if(2===l&&c>=3){var T=Object(h.a)(m,5),k=Object(h.d)(+O.minimum,Math.ceil(T));w=Object(h.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(h.d)(t.initChangeUnitObj[a],t.comAttributeList[a]);t.$set(t.initTotalObj,a,Object(h.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 $=Math.ceil(t.initSetupObj[a]/t.comAttributeList[a]*100)/100;t.$set(t.initChangeUnitObj,a,Object(h.c)(t.initChangeUnitObj[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 B=Math.ceil(t.initFrightObj[a]/t.comAttributeList[a]*100)/100;t.$set(t.initChangeUnitObj,a,Object(h.c)(t.initChangeUnitObj[a],B).toFixed(2))}};for(var a in this.comAttributeList)r(a);this.setup_switch?this.$set(this.buyData,0,D(D(D({},this.buyData[0]),this.initZeroObj),{summary:0})):this.$set(this.buyData,0,D(D({},this.buyData[0]),this.initSetupObj)),this.$set(this.buyData,1,D(D({},this.buyData[1]),this.initChangeUnitObj)),this.freight_switch?this.$set(this.buyData,2,D(D({},this.buyData[2]),this.initZeroObj)):this.$set(this.buyData,2,D(D({},this.buyData[2]),this.initFrightObj)),this.$set(this.buyData,3,D(D({},this.buyData[3]),this.initTotalObj))}else this.buyData=this.buyData.map((function(e){return D(D({},e),t.initZeroObj)}))},calculateSellData:function(){var t=this,e=this.comBuyData[0],n=this.comBuyData[1],o=this.comBuyData[2],r=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(h.c)(t.unitData[1][d]/100,1);t.sellData[1][i]=Object(h.d)(e[i],m).toFixed(2)}else t.sellData[1][i]=e[i];if(t.unitData[0][i]){var f=Object(h.c)(t.unitData[0][i]/100,1);t.sellData[2][i]=Object(h.d)(n[i],f).toFixed(2)}else t.sellData[2][i]=n[i];if(t.unitData[2]&&t.unitData[2][d]){var y=Object(h.c)(t.unitData[2][d]/100,1);t.sellData[3][i]=Object(h.d)(o[i],y).toFixed(2);var v=Object(h.d)(t.initFrightObj[i],y);r=Object(h.c)(r,v).toFixed(2)}else t.sellData[3][i]=o[i],r=Object(h.c)(r,t.initFrightObj[i]).toFixed(2);var _=Object(h.d)(t.sellData[2][i],t.comAttributeList[i]);t.$set(t.sellData[4],i,Object(h.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(r/this.comAttributeList.summary*100)/100;this.sellData[2].summary=Object(h.c)(this.sellData[2].summary,c).toFixed(2),this.sellData[3].summary=0;var a=Object(h.d)(this.sellData[2].summary,this.comAttributeList.summary);this.sellData[4].summary=Object(h.c)(this.sellData[1].summary,a).toFixed(2)}else this.sellData[3].summary=r,this.sellData[4].summary=Object(h.c)(r,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(d.c)({openDialog:"openDialog",setLoading:"product/setLoading"}))},T=(n(820),n(22)),component=Object(T.a)(P,(function(){var t,e,n=this,r=n._self._c;return r("div",[0==n.quoteLoadState?r("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"com-loading"}):1==n.quoteLoadState?r("div",[r("tab-nav",{attrs:{borderType:"allBorder",liWidth:100,liHeight:40,marginRight:5,currTab:n.curWeek,tabList:n.priceList},on:{"update:currTab":function(t){n.curWeek=t},"update:curr-tab":function(t){n.curWeek=t}}}),n._v(" "),n._l(n.priceList,(function(t,e){var l,c,d,m;return r("div",{directives:[{name:"show",rawName:"v-show",value:n.curWeek==e,expression:"curWeek == indexs"}],key:t.name},[r("div",[r("tab-nav",{attrs:{borderType:"incompleteBorder",currTab:t.curPrint,tabList:t.basePrice,allPrintTab:n.allPrintTab,marginTop:0,marginRight:5,marginBottom:(null===(l=t.basePrice)||void 0===l?void 0:l.length)>1?7:0},on:{"update:currTab":function(e){return n.$set(t,"curPrint",e)},"update:curr-tab":function(e){return n.$set(t,"curPrint",e)},handle:function(e){return n.sortBy(t)}}})],1),n._v(" "),n._l(t.basePrice,(function(e,l){var c;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.curPrint==l,expression:"items.curPrint == index"}],key:e.name},[r("new-price-table",{attrs:{tableColumns:[].concat(Object(o.a)(n.undecorated_columns),Object(o.a)(e.part_columns)),tableData:e.data,tableType:"Undecorated",curPrint:e.name,curModel:null===(c=t.decorationOrign[l])||void 0===c?void 0:c.model,data:t,selectRow:e.selectBaseRow},on:{"update:selectRow":function(t){return n.$set(e,"selectBaseRow",t)},"update:select-row":function(t){return n.$set(e,"selectBaseRow",t)}}})],1)})),n._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?r("new-price-table",{attrs:{tableData:t.decoration,tableColumns:[].concat(Object(o.a)(n.decoration_columns),Object(o.a)(n.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}}):n._e(),n._v(" "),n._l(t.basePrice,(function(e,l){return r("div",{directives:[{name:"show",rawName:"v-show",value:t.curPrint==l&&e.decoration_addition.length,expression:"items.curPrint == index && item.decoration_addition.length"}],key:e.name+l},[r("new-price-table",{attrs:{tableData:e.decoration_addition,tableColumns:[].concat(Object(o.a)(n.addon_columns),Object(o.a)(e.part_columns)),isCheckBox:!0,tableType:"Addon",multipleSelection:t.selectAdditionRow},on:{"update:multipleSelection":function(e){return n.$set(t,"selectAdditionRow",e)},"update:multiple-selection":function(e){return n.$set(t,"selectAdditionRow",e)}}})],1)}))],2)})),n._v(" "),r("section",[n._m(0),n._v(" "),r("total-table",{attrs:{comLocationNum:n.comLocationNum,tableData:n.comBuyData,tableColumns:[].concat(Object(o.a)(n.buy_columns),Object(o.a)(n.comCurBaseTotalColumns)),curOrder:"".concat(n.curWeek,"-").concat(n.comCurPrint),min:null===(t=n.comCurBaseColumns[0])||void 0===t?void 0:t.label,title:"Buy Price"},on:{"send-idx":n.getChildIdx}}),n._v(" "),r("p",{staticClass:"text-red"},[n._v("Price is ex- gst")]),n._v(" "),r("ul",[r("li",{staticClass:"entry"},[r("div",{staticClass:"entry-l"},[n._v("Delivery Locations")]),n._v(" "),r("el-input",{staticStyle:{width:"130px"},attrs:{placeholder:"Enter Num",size:"small",max:"7",min:"1",type:"number"},on:{input:n.setMaxNum},model:{value:n.comCurBasePrice.locationNum,callback:function(t){n.$set(n.comCurBasePrice,"locationNum",t)},expression:"comCurBasePrice.locationNum"}})],1),n._v(" "),n.comLocationNum>1?r("li",{staticClass:"entry"},[r("div",{staticClass:"entry-text"},[n._v("Qty / Location")])]):n._e(),n._v(" "),n._l(n.comCurBaseTotalColumns,(function(i,t){var e;return r("li",{directives:[{name:"show",rawName:"v-show",value:n.comLocationNum>t,expression:"comLocationNum > k"}],key:i.prop,staticClass:"entry"},[r("div",{staticClass:"entry-l"},[n._v("Delivery Postcode")]),n._v(" "),r("el-input",{staticStyle:{width:"130px","margin-right":"20px"},attrs:{clearable:"",placeholder:"Enter Postcode",size:"small"},on:{input:function(e){return n.getDebFreight(t)}},model:{value:i.postcode,callback:function(t){n.$set(i,"postcode",t)},expression:"\n i.postcode"}}),n._v(" "),n.comLocationNum>1?r("el-input",{staticStyle:{width:"130px","margin-right":"20px"},attrs:{placeholder:"Enter Qty",type:"number",min:null===(e=n.comCurBaseColumns[0])||void 0===e?void 0:e.label,size:"small"},on:{blur:function(e){var o;return n.getNumber(e,n.comCurBaseTotalColumns[t],null===(o=n.comCurBaseColumns[0])||void 0===o?void 0:o.label)}},model:{value:i.label,callback:function(t){n.$set(i,"label",t)},expression:"i.label"}}):n._e(),n._v(" "),r("div",{staticClass:"entry-r"},[r("span",[n._v("Freight Method")]),n._v(" "),r("el-radio-group",{on:{change:function(e){return n.getFreight(t)}},model:{value:i.freight_type,callback:function(t){n.$set(i,"freight_type",t)},expression:"i.freight_type"}},[r("el-radio",{attrs:{label:1}},[n._v("Road Express")]),n._v(" "),r("el-radio",{attrs:{label:2}},[n._v("Air Freight")])],1)],1)],1)}))],2),n._v(" "),r("div",{staticClass:"entry"},[r("div",{staticClass:"entry-l"},[n._v("Setup")]),n._v(" "),r("div",{staticClass:"entry-l"},[n._v("include in unit price")]),n._v(" "),r("pc-switch",{model:{value:n.setup_switch,callback:function(t){n.setup_switch=t},expression:"setup_switch"}})],1),n._v(" "),r("div",{staticClass:"entry"},[r("div",{staticClass:"entry-l"},[n._v("Freight")]),n._v(" "),r("div",{staticClass:"entry-l"},[n._v("include in unit price")]),n._v(" "),r("div",[r("pc-switch",{model:{value:n.freight_switch,callback:function(t){n.freight_switch=t},expression:"freight_switch"}})],1)]),n._v(" "),r("el-button",{staticClass:"button-black",attrs:{size:"medium"},on:{click:n.openMailDialog}},[n._v("\n Enquiry\n ")])],1)],2):n._e(),n._v(" "),r("no-ssr",[1==n.quoteLoadState?r("div",[r("form-dialog",{attrs:{emailForm:n.enquiryForm,enquiryConfig:n.enquiryConfig,visible:n.enquiryFormVisible,rules:n.rules,labelWidth:null!==(e=n.enquiryConfig[3].selectlist)&&void 0!==e&&e.length?140:82},on:{"update:visible":function(t){n.enquiryFormVisible=t},handleSend:n.sendPriceMail}}),n._v(" "),r("mail-table",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"mailtable",attrs:{mailData:n.mailData}},[r("price-to-img",{attrs:{pageData:n.pageData,specificationsObj:n.specificationsObj,tableData:n.comFilterSwitchSellData,tableColumns:n.comMergeColumns,comLocationNum:n.comLocationNum,emailForm:n.commentObj}})],1),n._v(" "),r("el-dialog",{ref:"dialogRef",attrs:{"lock-scroll":!1,title:"Customer Quote",visible:n.priceToImgVisible,"custom-class":"price-to-img-dialog"},on:{"update:visible":function(t){n.priceToImgVisible=t}}},[r("price-to-img",{ref:"priceToImgRef",attrs:{isImgSrc:!1,loading:n.pdfLoading,pageData:n.pageData,specificationsObj:n.specificationsObj,tableData:n.comFilterSwitchSellData,tableColumns:n.comMergeColumns,comLocationNum:n.comLocationNum,emailForm:n.commentObj},on:{"update:loading":function(t){n.pdfLoading=t}}}),n._v(" "),r("p",{staticClass:"tips"},[n._v("Change default standard comment:")]),n._v(" "),r("el-input",{model:{value:n.commentObj.Comments,callback:function(t){n.$set(n.commentObj,"Comments",t)},expression:"commentObj.Comments"}}),n._v(" "),r("div",{staticClass:"btn-wrap"},[r("el-button",{staticClass:"button-black button-margin",attrs:{size:"medium",loading:n.pdfLoading},on:{click:n.handleDownloadPdf}},[n._v("Download")])],1)],1),n._v(" "),r("form-dialog",{attrs:{emailForm:n.commentObj,enquiryConfig:n.enquiryConfig1,visible:n.downloadDialogVisible,rules:n.rules1,labelWidth:120,isSendPdf:!0},on:{"update:visible":function(t){n.downloadDialogVisible=t},handleSend:n.sendPdfMail}}),n._v(" "),r("price-to-img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"pdf",attrs:{loading:n.pdfLoading,pageData:n.pageData,specificationsObj:n.specificationsObj,tableData:n.comFilterSwitchSellData,tableColumns:n.comMergeColumns,comLocationNum:n.comLocationNum,emailForm:n.commentObj},on:{"update:loading":function(t){n.pdfLoading=t}}}),n._v(" "),r("dialog-XX-success",{attrs:{visible:n.xxContentVisible,imgType:!1,content:"This quantity is below the MOQ for this product"},on:{"update:visible":function(t){n.xxContentVisible=t}}})],1):n._e()])],1)}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"title1"},[e("span"),t._v(" "),e("span",[t._v("Currency AUD($)")])])}],!1,null,"e87b4ce2",null);e.default=component.exports;installComponents(component,{TabNav:n(615).default,PcSwitch:n(728).default,FormDialog:n(571).default,PriceToImg:n(729).default})},724:function(t,e,n){"use strict";n.r(e);n(523),n(40),n(64),n(39),n(521),n(11),n(17);var o=n(528),r={filters:{multiplyPrice:function(t,e,n){return/^[0-9]+.?[0-9]*$/.test(t)?Object(o.d)(t,e.num):t},plusPrice:function(t,e){return e?Object(o.c)(t,e):t},differencePrice:function(t,e,n,r){if(/^[0-9]+.?[0-9]*$/.test(t)){var l=n.split("_"),c=+e["supplier_".concat(l[1])],d=Object(o.d)(e.num-1,c),m=Object(o.c)(t,d),f=+r["supplier_".concat(l[1])],h=Object(o.d)(r.num-1,f),y=Object(o.c)(+r[n],h);return m>y?"+".concat(Object(o.b)(m,y)):Object(o.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 o=e.split("_");return t["supplier_".concat(o[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(647),n(22)),component=Object(l.a)(r,(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(o){var r=o.row;return["radioInput"==n.type?[e("div",{staticClass:"flex between"},[e("span",[t._v(t._s(r.decName))]),t._v(" "),e("el-input",{staticClass:"edit-input",attrs:{min:"0",max:r.max_num,type:"number",size:"small"},on:{input:function(e){return t.getNumber(e,r,r.max_num)}},model:{value:r.num,callback:function(e){t.$set(r,"num",e)},expression:"row.num"}})],1)]:e("div",[r.filter_boolean?[e("div",{staticClass:"triangle"}),t._v(" "),e("div",{staticClass:"text"},[t._v("Eco")])]:t._e(),t._v("\n "+t._s(r[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(o){var r=o.row,l=o.$index;return["website_setup"===n.prop?e("div",[0===l&&"Decoration"==t.tableType?e("div",[r.supplier_setup_id<5||7==r.supplier_setup_id?e("span",[t._v("$ "+t._s(r.supplier_setup?parseFloat(r.supplier_setup).toFixed(2):"0.00"))]):t._e(),t._v(" "),e("span",[t._v(t._s(t.$_setupPriceFilter(r.supplier_setup_id)))])]):e("div",[r.website_setup_id<5||7==r.website_setup_id?e("span",[t._v("$ "+t._s(r.website_setup?parseFloat(r.website_setup).toFixed(2):"0.00"))]):t._e(),t._v(" "),e("span",[t._v(t._s(t.$_setupPriceFilter(r.website_setup_id)))])])]):"111"==t.judgeProp(r,n.prop,l)||"111.00"==t.judgeProp(r,n.prop,l)?e("div",[t._v("\n -\n ")]):"999"==t.judgeProp(r,n.prop,l)||"999.00"===t.judgeProp(r,n.prop,l)?e("div",[t._v("\n POA\n ")]):""===t.judgeProp(r,n.prop,l)?e("div",[t._v("0")]):e("div",[t.isNumber(t.judgeProp(r,n.prop,l))&&!n.isFirstColumn?e("span",[t._v("$")]):t._e(),t._v(" "),e("span",[t._v(t._s(t.judgeProp(r,n.prop,l)))])])]}}],null,!0)})]}))],2)],1)])}),[],!1,null,"05e92126",null);e.default=component.exports},725:function(t,e,n){"use strict";n.r(e);n(98),n(53),n(77),n(521),n(17);var o=n(528),r={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(o.b)(t,e)):+t<+e?"+$ ".concat(Object(o.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)<this.min&&this.$emit("send-idx",e)}},computed:{comWidth:function(){return 800/this.tableColumns.length-1}}},l=(n(648),n(22)),component=Object(l.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("p",{staticClass:"tb-title",class:{left:t.tableType}},[e("span",[t._v(t._s(t.title))]),t._v(" "),"Sell Price"==t.title&&1!==t.comLocationNum?e("span",{style:{width:t.comWidth+"px"}},[t._v("Total")]):t._e()]),t._v(" "),e("el-table",{ref:"elTable",attrs:{border:"",data:t.tableData,"header-cell-style":{backgroundColor:"#fff",color:"#606266",fontWeight:500,fontSize:"16px"},stripe:""}},t._l(t.tableColumns,(function(n,o){return e("el-table-column",{key:"".concat(t.curOrder,"-").concat(n.prop),attrs:{align:n.align?n.align:"center",prop:n.prop,label:n.label,formatter:n.formatter,sortable:n.sortable},scopedSlots:t._u([{key:"header",fn:function(r){return["Buy Price"==t.title&&1===t.comLocationNum?e("div",[e("el-input",{directives:[{name:"show",rawName:"v-show",value:!n.isFirstColumn,expression:"!item.isFirstColumn"}],attrs:{size:"small",type:"number",min:t.min},on:{blur:function(e){return t.getNumber(e,o)}},model:{value:n.label,callback:function(e){t.$set(n,"label",e)},expression:"item.label"}}),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:n.isFirstColumn,expression:"item.isFirstColumn"}]},[t._v(t._s(n.label))])],1):e("div",[e("span",[t._v(t._s(n.label))])])]}},{key:"default",fn:function(o){return[t.tableType&&!n.isFirstColumn?[e("span",[t._v(t._s(t._f("differencePrice")(o.row[n.prop],t.curDecoration[n.prop],t.indexDecoration[n.prop],t.poaConfig)))])]:[("string"==typeof o.row[n.prop]&&o.row[n.prop].includes(".")||"number"==typeof o.row[n.prop])&&!n.isFirstColumn?e("span",[t._v("$")]):t._e(),t._v(" "),e("span",[t._v(t._s(o.row[n.prop]?o.row[n.prop]:"0.00"))])]]}}],null,!0)})})),1)],1)}),[],!1,null,"2b5fb566",null);e.default=component.exports},726:function(t,e,n){"use strict";n.r(e);var o={props:{tableData:{type:Array,default:[]},tableColumns:{type:Array,default:[]},operateWith:{type:String,default:"100%"},selectionShow:{type:Boolean,default:!1},handleShow:{type:Boolean,default:!1}},methods:{saveUnitData:function(t,e){this.tableData[e]=t,localStorage.setItem("unit",JSON.stringify(this.tableData))}}},r=(n(649),n(22)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("p",{staticClass:"tb-title"},[t._v("Markup %")]),t._v(" "),e("el-table",{ref:"elTable",style:{width:t.operateWith},attrs:{border:"",data:t.tableData,"highlight-current-row":!1,"header-cell-style":{backgroundColor:"#fff",color:"#606266",fontWeight:500,fontSize:"16px"}}},[t._l(t.tableColumns,(function(n){return[n.isText?e("el-table-column",{key:n.prop,attrs:{align:"center",prop:n.prop,label:n.label,formatter:n.formatter,width:n.width,sortable:n.sortable}}):t._e(),t._v(" "),n.isText?t._e():e("el-table-column",{key:n.prop,attrs:{prop:n.prop,label:n.label,formatter:n.formatter,width:n.width,align:n.align?n.align:"center",sortable:n.sortable},scopedSlots:t._u([{key:"default",fn:function(o){var r=o.row,l=o.$index;return[e("el-input",{staticClass:"edit-input",attrs:{size:"small",type:"number",min:"0"},on:{input:function(e){return t.saveUnitData(r,l)}},model:{value:r[n.prop],callback:function(e){t.$set(r,n.prop,e)},expression:"row[item.prop]"}})]}}],null,!0)})]}))],2)],1)}),[],!1,null,"931e8840",null);e.default=component.exports},727:function(t,e,n){"use strict";n.r(e);var o={props:{mailData:{},buyData:{}},data:function(){return{objStyle:{fontWeight:"bold",backgroundColor:"#efefef"}}}},r=n(22),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("table",{staticStyle:{"border-collapse":"collapse","font-size":"14px","table-layout":"fixed",width:"100%","min-width":"800px"},attrs:{border:"1",bordercolor:"#000"}},[e("tbody",[t._l(t.mailData,(function(n,o,i){return e("tr",{key:o},[e("td",{staticStyle:{padding:"18px 0",width:"40%","text-align":"center",color:"#000"},style:(1==i||10==i)&&t.objStyle},[t._v("\n "+t._s(o)+"\n ")]),t._v(" "),e("td",{staticStyle:{padding:"18px 10px"}},["string"==typeof n?e("div",[-1!=n.indexOf("@")||-1!=n.indexOf("http")?e("a",{staticStyle:{color:"#6495ed","text-decoration":"none"},attrs:{href:n}},[e("span",[t._v(t._s(n))])]):e("span",[t._v(t._s(n))])]):["Object"==t.$utils.checkType(n)?e("div",{staticStyle:{width:"100%",display:"flex","justify-content":"space-between"}},t._l(n,(function(n,i){return e("div",{key:i,staticStyle:{"text-align":"left",width:"100%"}},[e("span","QTY"==o?[t._v(t._s(n))]:[t._v("$"+t._s(n))])])})),0):t._l(n,(function(n,i){return e("div",{key:i,staticStyle:{"line-height":"20px"}},[e("span",[t._v(t._s(n))])])}))]],2)])})),t._v(" "),e("tr",[e("td",{staticStyle:{padding:"20px"},attrs:{colspan:"2"}},[t._t("default")],2)])],2)])])}),[],!1,null,"13e7bb30",null);e.default=component.exports},728:function(t,e,n){"use strict";n.r(e);var o={model:{prop:"status",event:"change"},props:{status:Boolean},methods:{changeStatus:function(){this.$emit("change",!this.status)}}},r=(n(651),n(22)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{class:["switch",t.status?"green":"red"],on:{click:t.changeStatus}},[e("div",{class:["switch_inner",t.status?"":"right"]},[t._v("\n "+t._s(t.status?"Yes":"No")+"\n ")])])}),[],!1,null,"58d567c2",null);e.default=component.exports},729:function(t,e,n){"use strict";n.r(e);n(41),n(78),n(53),n(77),n(521),n(11);var o=n(695),r=n.n(o),l={props:{pageData:{type:Object,default:{}},specificationsObj:{type:Object,default:{}},tableData:{type:Array,default:[]},tableColumns:{type:Array,default:[]},comLocationNum:{type:Number,default:1},emailForm:{type:Object,default:{}},loading:{type:Boolean,default:!1},isImgSrc:{type:Boolean,default:!0},width:{type:String,default:"100%"}},data:function(){return{headerColumns:[{label:"LeadTime",prop:"time",type:"pre"},{label:"Model",prop:"model",type:"pre"},{label:"Decoration",prop:"decoration",type:"pre"},{label:"Add On",prop:"addonArr",type:"pre"}]}},computed:{comInfo:function(){var t;return null===(t=this.pageData)||void 0===t?void 0:t.main},comWidth:function(){return 100/this.tableColumns.length+"%"}},created:function(){this.isImgSrc||this.getBase64Image(this.comInfo.image,"productImg")},methods:{getColumnHeaderStyle:function(t){return"project"===t.prop?{"font-weight":"bold"}:{}},getBase64Image:function(t,e){var n=this,image=new Image;image.src=t+"?v="+Math.random(),image.crossOrigin="*",image.onload=function(){var t=n.drawBase64Image(image);n.$refs[e].src=t}},drawBase64Image:function(img){var canvas=document.createElement("canvas");return canvas.width=img.width,canvas.height=img.height,canvas.getContext("2d").drawImage(img,0,0,img.width,img.height),canvas.toDataURL("image/png")},htmlToPdf:function(title){var t=this,element=this.$refs.printArea,e=[element.offsetWidth,element.offsetHeight];r()(element,{scale:1.5,useCORS:!0,tainttest:!0,logging:!0}).then((function(canvas){var n=canvas.toDataURL("image/png");t.downloadImage(n,e,title),t.$emit("update:loading",!1)})).catch((function(){t.$emit("update:loading",!1)}))},getUrlBase64:function(t,e){return new Promise((function(n){var canvas=document.createElement("canvas"),o=canvas.getContext("2d"),img=new Image;img.crossOrigin="Anonymous",img.src=t,img.onload=function(){canvas.height=e[1],canvas.width=e[0],o.drawImage(img,0,0,e[0],e[1]);var t=canvas.toDataURL("image/png");canvas=null,n(t)}}))},downloadImage:function(t,e,title){this.getUrlBase64(t,e).then((function(t){var link=document.createElement("a");link.href=t,link.download="".concat(title,".png"),link.click()}))}}},c=n(22),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{ref:"printArea",staticStyle:{"font-family":"ProximaNova-Regular","background-color":"#fff",padding:"20px","word-break":"break-word","box-sizing":"border-box"}},[e("table",[e("tbody",[e("tr",[e("td",{staticStyle:{"margin-right":"14px"}},[t.isImgSrc?e("img",{attrs:{src:t.comInfo.image,width:"320",height:"320"}}):e("img",{ref:"productImg",attrs:{width:"250",height:"250"}})]),t._v(" "),e("td",{staticStyle:{"vertical-align":"top"}},[e("p",{staticStyle:{"font-weight":"bold","font-size":"22px","padding-bottom":"24px",color:"#00213B"}},[e("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(t.pageData.product_code))]),t._v(" "),e("span",[t._v(t._s(t.pageData.product_name))])]),t._v(" "),e("p",{staticStyle:{"line-height":"20px",color:"#00213B","font-size":"14px"},domProps:{innerHTML:t._s(t.comInfo.description)}})])])])]),t._v(" "),e("div",[e("p",{staticStyle:{"font-weight":"bold","font-size":"17px",margin:"12px 0 8px",color:"#00213B"}},[t._v("Specifications")]),t._v(" "),e("table",{staticStyle:{width:"100%","border-collapse":"collapse","font-size":"14px","table-layout":"fixed","text-align":"center"}},[e("tbody",[e("tr",{staticStyle:{"background-color":"#F7F8FC","font-weight":"bold"}},t._l(t.headerColumns,(function(n,o){return e("td",{key:o,staticStyle:{padding:"10px 0",color:"#00213B",width:"25%","font-size":"14px",border:"1px solid #EFEFEF"}},[t._v(t._s(n.label))])})),0),t._v(" "),e("tr",t._l(t.headerColumns,(function(n,o){return e("td",{key:o,staticStyle:{padding:"10px 0 6px",color:"#00213B",border:"1px solid #EFEFEF"}},[t.specificationsObj[n.prop]?e("div",["addonArr"!=n.prop?e("span",[t._v(t._s(t.specificationsObj[n.prop]))]):t._l(t.specificationsObj.addonArr,(function(n,o){return e("div",{key:o,staticStyle:{"padding-bottom":"4px"}},[t._v(t._s(n))])}))],2):e("span",[t._v("-")])])})),0)])])]),t._v(" "),e("div",[e("p",{staticStyle:{"font-weight":"bold","font-size":"17px",margin:"12px 0 8px",color:"#00213B"}},[t._v("Quote")]),t._v(" "),e("table",{staticStyle:{width:"100%","border-collapse":"collapse","font-size":"14px","table-layout":"fixed","text-align":"center"}},[e("tbody",[1!==t.comLocationNum?e("tr",{staticStyle:{"background-color":"#F7F8FC","font-weight":"bold"}},[e("td",{staticStyle:{padding:"10px 0",color:"#00213B",border:"1px solid #EFEFEF"},attrs:{colspan:t.tableColumns.length-1}},[t._v("Quote")]),t._v(" "),e("td",{staticStyle:{padding:"10px 0",color:"#00213B",border:"1px solid #EFEFEF"},style:{width:t.comWidth}},[t._v("Total")])]):t._e(),t._v(" "),e("tr",{staticStyle:{"background-color":"#F7F8FC","font-weight":"bold"}},t._l(t.tableColumns,(function(n,o){return e("td",{key:o,staticStyle:{padding:"10px 0",color:"#00213B",border:"1px solid #EFEFEF"},style:{width:t.comWidth}},[t._v(t._s(n.label))])})),0),t._v(" "),t._l(t.tableData,(function(n){return e("tr",{key:n.project,staticStyle:{padding:"10px 0"}},t._l(t.tableColumns,(function(o){return e("td",{key:o.prop,staticStyle:{padding:"10px 0",color:"#00213B",border:"1px solid #EFEFEF","white-space":"nowrap"},style:t.getColumnHeaderStyle(o)},[t._v("\n "+t._s(n[o.prop].includes(".")?"$":"")+" "+t._s(n[o.prop]?n[o.prop]:"0.00")+"\n ")])})),0)}))],2)])]),t._v(" "),t.emailForm.Comments?e("div",{staticStyle:{color:"#00213B"}},[e("p",{staticStyle:{margin:"20px 0"}},[t._v(t._s(t.emailForm.Comments))])]):t._e()])}),[],!1,null,null,null);e.default=component.exports},817:function(t,e,n){"use strict";var o=n(2),r=n(818),l=n(48),c=n(35),d=n(54),m=n(152);o({target:"Array",proto:!0},{flatMap:function(t){var e,n=c(this),o=d(n);return l(t),(e=m(n,0)).length=r(e,n,n,o,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},818:function(t,e,n){"use strict";var o=n(102),r=n(54),l=n(223),c=n(66),d=function(t,e,source,n,m,f,h,y){for(var element,v,_=m,C=0,w=!!h&&c(h,y);C<n;)C in source&&(element=w?w(source[C],C,e):source[C],f>0&&o(element)?(v=r(element),_=d(t,e,element,v,_,f-1)-1):(l(_+1),t[_]=element),_++),C++;return _};t.exports=d},819:function(t,e,n){"use strict";n(149)("flatMap")},820:function(t,e,n){"use strict";n(694)}}]);
  2. //# sourceMappingURL=50f4742.js.map