import{u as be,R as j,k as I,Z as ae,N as u,o as c,A,a as t,w as l,F as P,B as J,c as N,b as o,U as B,aX as De,s as $,I as L,X as R,l as Ue,t as w,f as U,ab as Je,aD as ve,e as T,d as q,V as Q,ai as ce,ak as F,v as ee,z as te,G as de,aJ as le,az as Be,y as Ce,aM as He,am as Qe,aI as qe,af as me,ae as H,W as Ne,J as oe,aE as se,aB as ne,aF as ie,aC as Pe,aY as Me,aZ as W,a_ as Le,a$ as X,ag as pe,ah as fe,ap as Ee,b0 as Ye,b1 as Ke,aV as We,aP as Xe,aW as Ze,M as Ge,aA as je,b2 as Se,b3 as et,b4 as tt,b5 as lt,b6 as re,n as at,a1 as ot,a0 as st,K as nt,aL as it}from"./index-BgKoOiXL.js";import{N as xe,S as Ie,C as ye}from"./carousel-DC3tZ2iJ.js";import{u as ut}from"./customizer-CD6Yultk.js";import{I as rt}from"./images-CPorGVJ6.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{p as Ve}from"./productApi-B72qUL1o.js";import{m as Te}from"./index-BfgpT_AC.js";import{T as ct,z as dt}from"./TagsItem-BwVqmkRx.js";import{e as mt}from"./blankProductTypeEnum-7RSz3x1u.js";/* empty css */import{_ as Fe}from"./close-ju3PyIXP.js";import{c as ze}from"./comment-BCzbFbfb.js";import{o as pt,a as Oe}from"./fileApi-CDbG3kVk.js";import{o as ft,a as vt}from"./eventBus-D2aAxCUG.js";const gt={key:0},ht={class:"carousel__item"},kt=["onClick"],xo={__name:"ProductCarousel",props:{showImageList:Object},setup(a){be(),j(()=>"@/assets/images/e-commerce/prod-1.jpg");const d=a,e=ut();let v=I(!0);console.log("useCustomizer...",e.mini_sidebar),ae(()=>e.mini_sidebar,V=>{v.value=!1,setTimeout(()=>{v.value=!0},0)});const S=I({375:{itemsToShow:3,snapAlign:"center"},700:{itemsToShow:3,snapAlign:"center"},1024:{itemsToShow:6,snapAlign:"center"},1450:{itemsToShow:4,snapAlign:"start"},1919:{itemsToShow:5.5,snapAlign:"start"}}),g=I({itemsToShow:1,snapAlign:"center"}),m=I(0);function p(V){console.log("val....",V),m.value=V}return(V,_)=>u(v)?(c(),A("div",gt,[t(u(ye),{id:"gallery","items-to-show":1,"wrap-around":!1,modelValue:m.value,"onUpdate:modelValue":_[0]||(_[0]=b=>m.value=b)},{addons:l(()=>[t(u(xe))]),default:l(()=>[(c(!0),A(P,null,J(d.showImageList,(b,h)=>(c(),N(u(Ie),{key:h},{default:l(()=>[o("div",ht,[(c(),N(B,{alt:"product","lazy-src":u(De),src:b,key:b,class:"w-100 rounded-md"},null,8,["lazy-src","src"]))])]),_:2},1024))),128))]),_:1},8,["modelValue"]),t(u(ye),{id:"gallery2",class:"relatedCar",breakpoints:S.value,settings:g.value,modelValue:m.value,"onUpdate:modelValue":_[1]||(_[1]=b=>m.value=b)},{addons:l(()=>[t(u(xe))]),default:l(()=>[(c(!0),A(P,null,J(d.showImageList,(b,h)=>(c(),N(u(Ie),{key:h},{default:l(()=>[o("div",{class:"carousel__item text-left",onClick:C=>p(h)},[t(rt,{url:b,classes:"slide-img",rounded:"",isChangeSize:!1,width:100,height:100},null,8,["url"])],8,kt)]),_:2},1024))),128))]),_:1},8,["breakpoints","settings","modelValue"])])):$("",!0)}},_t="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23228;&%23184;&%23141;&%23229;&%23143;&%23175;&%23233;&%23128;&%23137;'%3e%3crect%20id='Rectangle%2013121'%20x='4'%20y='2.64645'%20width='14.5'%20height='2'%20rx='1'%20transform='rotate(45%204%202.64645)'%20fill='white'%20stroke='black'%20stroke-width='0.5'/%3e%3c/g%3e%3c/svg%3e",z={GENERAL:{text:"一般",value:1},COLOR:{text:"颜色",value:2},IMAGE:{text:"图片",value:3}},St={class:"sku"},xt={class:"d-flex align-center ga-2 flex-wrap px-0"},It={key:1,src:_t,class:"dis"},yt=["src"],Vt=["src"],bt=L({__name:"SkuSelector",props:{skuInfos:Array,optionName:String,optionType:Number,optionValues:Array,selectValue:String,selectSkuIds:Array,validSkuIds:Array},emits:["onSelectValue","onSelectSkuIds"],setup(a,{emit:d}){const e=a,v=d;ae(()=>e.validSkuIds,h=>{if(e.selectValue&&(console.log("validSkuIds change",e.validSkuIds),e.validSkuIds&&e.validSkuIds.length>0)){let C=!1;for(const i of e.validSkuIds)if(e.selectSkuIds.indexOf(i)>=0){C=!0;break}C||e.handleSelectChange(null)}}),ae(()=>e.skuInfos,(h,C)=>{},{deep:!0}),console.log("pro...",e.skuInfos);let S=I(""),g=I(-1),m=R({img:"",text:""}),p=I("");function V(h,C,i,x){console.log("selectColor...",h),console.log("selectColor...",C),console.log("selectColor...",C),x=="color"&&(g.value=h),x=="image"&&(m.img=C.fileUrl,m.text=C.text,p.value=C.text),x=="general"&&(S.value=C.text),_.value=C.skuIds;let s=C.text;if(!s)i==1&&(v("onSelectValue",{optionType:i,data:""}),v("onSelectSkuIds",{optionType:i,data:[]})),i==2&&(v("onSelectValue",{optionType:i,data:""}),v("onSelectSkuIds",{optionType:i,data:[]})),i==3&&(v("onSelectValue",{optionType:i,data:""}),v("onSelectSkuIds",{optionType:i,data:[]}));else{i==1&&v("onSelectValue",{optionType:i,data:s}),i==2&&v("onSelectValue",{optionType:i,data:s}),i==3&&v("onSelectValue",{optionType:i,data:s});for(const y of e.optionValues)if(y.text===s){console.log("onSelectSkuIds....",y.skuIds),y.skuIds,i==1&&v("onSelectSkuIds",{optionType:i,data:y.skuIds}),i==2&&v("onSelectSkuIds",{optionType:i,data:y.skuIds}),i==3&&v("onSelectSkuIds",{optionType:i,data:y.skuIds});break}}}let _=R([]);function b(h,C){if(!C||C.length===0)return!1;for(const i of C)if(h.indexOf(i)>=0)return!1;return!0}return Ue(()=>{if(e.optionType==z.COLOR.value){for(let h=0;h<e.optionValues.length;h++)if(!b(e.optionValues[h].skuIds,e.validSkuIds)){V(h,e.optionValues[h],e.optionType,"color");break}}if(e.optionType==z.GENERAL.value){for(let h=0;h<e.optionValues.length;h++)if(!b(e.optionValues[h].skuIds,e.validSkuIds)){V(h,e.optionValues[h],e.optionType,"general"),S.value=e.optionValues[h].text;break}}if(e.optionType==z.IMAGE.value){for(let h=0;h<e.optionValues.length;h++)if(!b(e.optionValues[h].skuIds,e.validSkuIds)){V(h,e.optionValues[h],e.optionType,"image"),m.img=e.optionValues[h].fileUrl,m.text=e.optionValues[h].text,p.value=e.optionValues[h].text;break}}}),(h,C)=>{const i=de("CheckIcon");return c(),A("div",St,[a.optionType==u(z).COLOR.value?(c(),N(Q,{key:0,class:"mt-4 sku-color"},{default:l(()=>[t(U,{lg:"2",md:"4",sm:"2"},{default:l(()=>[o("span",null,w(a.optionName),1)]),_:1}),t(U,{lg:"10",md:"8",sm:"22"},{default:l(()=>[o("div",xt,[(c(!0),A(P,null,J(a.optionValues,(x,s)=>(c(),A("div",{key:s,class:Je(["color-box",b(x.skuIds,a.validSkuIds)?"disabled":""]),style:{}},[t(ve,{activator:"parent",location:"top"},{default:l(()=>[T(w(x.text)+" "+w(x.color),1)]),_:2},1024),t(q,{onClick:y=>V(s,x,a.optionType,"color"),disabled:b(x.skuIds,a.validSkuIds),rounded:"",width:"30px",height:"30px","min-width":"32px","min-height":"32px",color:x.color,variant:"flat"},{default:l(()=>[u(g)==s?(c(),N(i,{key:0,size:"13"})):$("",!0),b(x.skuIds,a.validSkuIds)?(c(),A("img",It)):$("",!0)]),_:2},1032,["onClick","disabled","color"])],2))),128))])]),_:1})]),_:1})):$("",!0),a.optionType==u(z).GENERAL.value?(c(),N(Q,{key:1,class:"mt-4 align-center"},{default:l(()=>[t(U,{lg:"2",sm:"2"},{default:l(()=>[o("span",null,w(a.optionName),1)]),_:1}),t(U,{lg:"10",sm:"6"},{default:l(()=>[t(ce,{style:{width:"fit-content"},modelValue:u(S),"onUpdate:modelValue":C[0]||(C[0]=x=>F(S)?S.value=x:S=x),items:a.optionValues,"item-title":"text","item-value":"text",color:"primary",variant:"outlined","hide-details":""},{item:l(({props:x,item:s})=>[t(ee,te(x,{disabled:b(s.raw.skuIds,a.validSkuIds),onClick:y=>V(0,s.raw,a.optionType,"general")}),null,16,["disabled","onClick"])]),_:1},8,["modelValue","items"])]),_:1})]),_:1})):$("",!0),a.optionType==u(z).IMAGE.value?(c(),N(Q,{key:2,class:"mt-4 align-center"},{default:l(()=>[t(U,{lg:"2",sm:"2"},{default:l(()=>[o("span",null,w(a.optionName),1)]),_:1}),t(U,{lg:"10",sm:"6"},{default:l(()=>[t(ce,{style:{width:"fit-content"},items:a.optionValues,modelValue:u(p),"onUpdate:modelValue":C[1]||(C[1]=x=>F(p)?p.value=x:p=x),"item-title":"text","item-value":"text",color:"primary",variant:"outlined","hide-details":""},{"prepend-inner":l(()=>[o("img",{src:u(m).img,width:"30px",height:"30px"},null,8,yt)]),item:l(({props:x,item:s})=>[t(ee,te(x,{link:"",color:"secondary",class:"d-flex align-center",disabled:b(s.raw.skuIds,a.validSkuIds),onClick:y=>V(h.index,s.raw,a.optionType,"image")}),{prepend:l(()=>[o("img",{src:s.raw.fileUrl,width:"30px",height:"30px",style:{"margin-right":"10px"}},null,8,Vt)]),_:2},1040,["disabled","onClick"])]),_:1},8,["items","modelValue"])]),_:1})]),_:1})):$("",!0)])}}}),he=Y(bt,[["__scopeId","data-v-46ac3dc2"]]),wt=L({__name:"GoodsSku",props:{skuInfos:Array,option1Name:String,option1Type:Number,option2Name:String,option2Type:Number,option3Name:String,option3Type:Number},emits:["getChildren","skuChange"],setup(a,{emit:d}){const e=d;let v=I(""),S=I(""),g=I(""),m=I([]),p=I([]),V=I([]);const _=a;function b(n,k){for(const f of n)if(f.text===k)return f;return null}const h=j(()=>{if(!_.skuInfos)return[];var n=[];for(const r of _.skuInfos)if(r.option1){var k=JSON.parse(r.option1);if(!k.text)continue;var f=b(n,k.text);f?f.skuIds.push(r.id):(f=Object.assign({},k),f.skuIds=[],f.skuIds.push(r.id),n.push(f))}return n}),C=j(()=>{if(!_.skuInfos)return[];var n=[];for(const r of _.skuInfos)if(r.option2){var k=JSON.parse(r.option2);if(!k.text)continue;var f=b(n,k.text);f?f.skuIds.push(r.id):(f=Object.assign({},k),f.skuIds=[],f.skuIds.push(r.id),n.push(f))}return n}),i=j(()=>{if(!_.skuInfos)return[];var n=[];for(const r of _.skuInfos)if(r.option3){var k=JSON.parse(r.option3);if(!k.text)continue;var f=b(n,k.text);f?f.skuIds.push(r.id):(f=Object.assign({},k),f.skuIds=[],f.skuIds.push(r.id),n.push(f))}return n});function x(n){console.log("监听orSelect1Value...",n),v.value=n.data}function s(n){console.log("监听orSelect1SkuIds...",n),m.value=n.data}function y(n){S.value=n.data}function D(n){p.value=n.data}function M(n){g.value=n.data}function O(n){V.value=n.data}const E=j(()=>{if(console.log("selectOption1Value.value...",v.value),console.log("selectOption2Value.value...",S.value),console.log("selectOption3Value.value...",g.value),!_.skuInfos)return null;for(const r of _.skuInfos){if(r.option1){var n=JSON.parse(r.option1);if(n.text&&n.text!==v.value){console.log("监听...",n.text,"===",v.value);continue}}if(r.option2){var k=JSON.parse(r.option2);if(k.text&&k.text!==S.value){console.log("监听...",k.text,"===",S.value);continue}}if(r.option3){var f=JSON.parse(r.option3);if(f.text&&f.text!==g.value){console.log("监听...",f.text,"===",g.value);continue}}return console.log("监听aaa...",r.id),r.id}return null});return ae(E,n=>{console.log("watch...",n),e("skuChange",n)}),(n,k)=>(c(),A(P,null,[_.option1Type&&a.option1Name&&h.value?(c(),N(he,{key:0,optionValues:h.value,"option-name":a.option1Name,"option-type":_.option1Type,selectValue:u(v),selectSkuIds:u(m),"valid-sku-ids":u(p).concat(u(V)),onOnSelectValue:x,onOnSelectSkuIds:s},{optionName:l(()=>[le(n.$slots,"optionName",{optionName:a.option1Name,optionType:a.option1Type,index:1},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","selectValue","selectSkuIds","valid-sku-ids"])):$("",!0),_.option2Type&&a.option2Name&&C.value?(c(),N(he,{key:1,optionValues:C.value,"option-name":a.option2Name,"option-type":_.option2Type,onOnSelectValue:y,onOnSelectSkuIds:D,"select-value":u(S),selectSkuIds:u(p),"valid-sku-ids":u(m).concat(u(V))},{optionName:l(()=>[le(n.$slots,"optionName",{optionName:a.option2Name,optionType:a.option2Type,index:2},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])):$("",!0),_.option3Type&&a.option3Name&&i.value?(c(),N(he,{key:2,optionValues:i.value,"option-name":a.option3Name,"option-type":_.option3Type,onOnSelectValue:M,onOnSelectSkuIds:O,selectValue:u(g),selectSkuIds:u(V),"valid-sku-ids":u(m).concat(u(p))},{optionName:l(()=>[le(n.$slots,"optionName",{optionName:a.option3Name,optionType:a.option3Type,index:3},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","selectValue","selectSkuIds","valid-sku-ids"])):$("",!0)],64))}}),Io=Y(wt,[["__scopeId","data-v-c29741d8"]]),At={key:0,class:"d-flex align-center ga-2"},Ct={class:"text-secondary text-h4"},Nt={class:"text-decoration-line-through text-medium-emphasis ml-2 text-subtitle-2"},Tt={key:1,class:"d-flex align-center ga-2"},Ot={class:"text-secondary text-h4"},$t={class:"text-medium-emphasis mt-2"},Dt={class:"mt-2"},Ut={key:0},Pt={key:1},Mt={key:2},Lt=L({__name:"ProductItem",props:{item:Object},setup(a){const d=be(),e=a;I(!1),I(e.item.rating),Be("getProductDetail");function v(){e.item.type==mt.DIY.value?(Ne.push({path:"/products/diyDetail",query:Te(d.query,{id:e.item.id})}),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},1500)):(console.log("route.query...",d.query),Ne.push({path:"/products/detail",query:Te(d.query,{id:e.item.id})}),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},1500))}I(!1);let S=I(!1);function g(p){S.value=!0,Ve().blankProductFavorite(p).then(_=>{S.value=!1,e.item.isFavorite=!0})}function m(p){S.value=!0,Ve().blankProductUnFavorite(p).then(_=>{S.value=!1,e.item.isFavorite=!1})}return(p,V)=>{const _=de("HeartFilledIcon");return c(),N(H,{variant:"flat",class:"rounded white overflow-hidden product-carousel position-relative",onClick:v},{default:l(()=>[t(ct,{base:e.item},null,8,["base"]),e.item.isFavorite?(c(),A("div",{key:0,class:"collect",onClick:V[0]||(V[0]=Ce(b=>m(e.item.id),["stop"]))},[t(q,{size:"small",icon:"",class:"ml-auto"},{default:l(()=>[t(ve,{activator:"parent",location:"top"},{default:l(()=>[T("Remove from My Favourite")]),_:1}),t(_,{color:"#EC407A"})]),_:1})])):(c(),A("div",{key:1,class:"collect",onClick:V[1]||(V[1]=Ce(b=>g(e.item.id),["stop"]))},[t(q,{size:"small",icon:"",class:"ml-auto"},{default:l(()=>[t(ve,{activator:"parent",location:"top"},{default:l(()=>[T("Add to My Favourite")]),_:1}),t(u(He),{color:"#828282"})]),_:1})])),t(B,{alt:"product",src:e.item.mainShowImageUrl,"lazy-src":u(De),class:"w-100"},null,8,["src","lazy-src"]),t(qe,null,{default:l(()=>[t(Qe,{class:"text-h4"},{default:l(()=>[T(w(e.item.model),1)]),_:1})]),_:1}),t(me,null,{default:l(()=>[e.item.favorablePrice?(c(),A("p",At,[o("span",Ct,"$"+w(e.item.favorablePrice),1),o("span",Nt,"$"+w(p.$filters.MoneyFormat(e.item.price)),1)])):(c(),A("p",Tt,[o("span",Ot,"$"+w(p.$filters.MoneyFormat(e.item.price)),1)])),o("p",$t,"Avg.production time "+w(e.item.productionTimeMin)+" "+w(e.item.productionTimeUnit==1?"day":"week"),1),o("p",Dt,[e.item.skuOption1Num>0?(c(),A("span",Ut,w(e.item.skuOption1Num)+" "+w(e.item.skuOption1),1)):$("",!0),e.item.skuOption2Num>0?(c(),A("span",Pt," · "+w(e.item.skuOption2Num)+" "+w(e.item.skuOption2),1)):$("",!0),e.item.skuOption3Num>0?(c(),A("span",Mt," · "+w(e.item.skuOption3Num)+" "+w(e.item.skuOption3),1)):$("",!0)])]),_:1})]),_:1})}}}),Et=o("h2",{class:"text-h2 mt-8"},"You may also like",-1),Gt={class:"carousel__item text-left"},yo=L({__name:"AlsoLike",props:{recommendProductList:Array},setup(a){const d=a,e=I({itemsToShow:1,snapAlign:"center"}),v=I({700:{itemsToShow:3,snapAlign:"center"},1024:{itemsToShow:4,snapAlign:"center"},1450:{itemsToShow:4,snapAlign:"start"}});function S(g){store.AddToCart(g)}return(g,m)=>(c(),A(P,null,[Et,t(u(ye),{id:"gallery",class:"relatedCar",breakpoints:v.value,settings:e.value},{addons:l(()=>[t(u(xe))]),default:l(()=>[(c(!0),A(P,null,J(d.recommendProductList,(p,V)=>(c(),N(u(Ie),{key:V},{default:l(()=>[o("div",Gt,[t(Lt,{item:p,onHandlecart:_=>S(p)},null,8,["item","onHandlecart"])])]),_:2},1024))),128))]),_:1},8,["breakpoints","settings"])],64))}}),jt=["innerHTML"],Ft=L({__name:"TabDescription",props:{blankDesc:String},setup(a){const d=oe([0,1,2,3,4]);return(e,v)=>(c(),N(ie,{modelValue:d.value,"onUpdate:modelValue":v[0]||(v[0]=S=>d.value=S),multiple:""},{default:l(()=>[t(ne,{elevation:"0"},{default:l(()=>[t(se,null,{default:l(()=>[o("div",{class:"descriptionView",innerHTML:a.blankDesc},null,8,jt)]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),zt={class:"text-h4 font-weight-medium mt-5"},Rt={class:"text-subtitle-2 text-medium-emphasis mt-3"},Jt=L({__name:"TabKeyfeature",props:{keyFeatureList:Array},setup(a){const d=oe([0,1,2,3,4]),e=a;return(v,S)=>(c(),N(ie,{modelValue:d.value,"onUpdate:modelValue":S[0]||(S[0]=g=>d.value=g),multiple:""},{default:l(()=>[t(ne,{elevation:"0"},{default:l(()=>[t(Pe,{class:"font-weight-medium custom-accordion"},{default:l(()=>[T("Key Features ")]),_:1}),t(se,null,{default:l(()=>[t(Q,null,{default:l(()=>[t(U,{lg:"6",cols:"12"},{default:l(()=>[t(Q,{class:"mt-4"},{default:l(()=>[(c(!0),A(P,null,J(e.keyFeatureList,(g,m)=>(c(),N(U,{lg:"6",cols:"12",key:m},{default:l(()=>[t(B,{src:g.logoUrl,width:40,height:40},null,8,["src"]),o("p",zt,w(g.title),1),o("p",Rt,w(g.content),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Re=a=>(pe("data-v-00669f36"),a=a(),fe(),a),Bt=["src"],Ht={class:"pt-6 sizeguide"},Qt=["innerHTML"],qt=Re(()=>o("p",{class:"mt-2"},[o("span",{class:"text-secondary"},"*"),T("Might got 1-2mm Difference")],-1)),Yt=["innerHTML"],Kt=Re(()=>o("p",{class:"mt-2"},[o("span",{class:"text-secondary"},"*"),T("Might got 1-2mm Difference")],-1)),Wt=L({__name:"TabSizeGuide",props:{sizeGuideImageUrl:String,blankSpecImperial:String,blankSpecMetric:String},setup(a){const d=oe([0,1,2,3,4]),e=I("tab-profile");I(!1);const v=a;return(S,g)=>(c(),N(ie,{modelValue:d.value,"onUpdate:modelValue":g[2]||(g[2]=m=>d.value=m),multiple:""},{default:l(()=>[t(ne,{elevation:"0"},{default:l(()=>[t(se,null,{default:l(()=>[t(Q,null,{default:l(()=>[v.sizeGuideImageUrl?(c(),N(U,{key:0,lg:"4",sm:"8",cols:"12",class:"position-relative loginPageImage"},{default:l(()=>[o("img",{src:v.sizeGuideImageUrl,alt:"",class:"mt-4"},null,8,Bt)]),_:1})):$("",!0),t(U,{lg:"8",sm:"16"},{default:l(()=>[t(Me,{modelValue:e.value,"onUpdate:modelValue":g[0]||(g[0]=m=>e.value=m),color:"primary"},{default:l(()=>[t(W,{variant:"plain",value:"Imperial"},{default:l(()=>[T(" Imperial")]),_:1}),t(W,{variant:"plain",value:"Metric"},{default:l(()=>[T(" Metric")]),_:1})]),_:1},8,["modelValue"]),o("div",Ht,[t(Le,{modelValue:e.value,"onUpdate:modelValue":g[1]||(g[1]=m=>e.value=m)},{default:l(()=>[t(X,{value:"Imperial"},{default:l(()=>[o("div",{innerHTML:v.blankSpecImperial},null,8,Qt),qt]),_:1}),t(X,{value:"Metric"},{default:l(()=>[o("div",{innerHTML:v.blankSpecMetric},null,8,Yt),Kt]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Xt=Y(Wt,[["__scopeId","data-v-00669f36"]]),Zt="data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23230;&%23148;&%23190;&%23229;&%23164;&%23167;&%23229;&%23155;&%23190;&%23230;&%23160;&%23135;'%3e%3cg%20id='Group%2027174'%3e%3crect%20id='Rectangle%2013094'%20x='0.375'%20width='32'%20height='32'%20rx='4'%20fill='white'/%3e%3c/g%3e%3cg%20id='Frame'%20clip-path='url(%23clip0_2567_121959)'%3e%3cg%20id='Group%2027174_2'%3e%3cpath%20id='Vector'%20d='M8.375%2012V10C8.375%209.46957%208.58571%208.96086%208.96079%208.58579C9.33586%208.21071%209.84457%208%2010.375%208H12.375'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M8.375%2020V22C8.375%2022.5304%208.58571%2023.0391%208.96079%2023.4142C9.33586%2023.7893%209.84457%2024%2010.375%2024H12.375'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M20.375%208H22.375C22.9054%208%2023.4141%208.21071%2023.7892%208.58579C24.1643%208.96086%2024.375%209.46957%2024.375%2010V12'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_4'%20d='M20.375%2024H22.375C22.9054%2024%2023.4141%2023.7893%2023.7892%2023.4142C24.1643%2023.0391%2024.375%2022.5304%2024.375%2022V20'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_5'%20d='M12.375%2015C12.375%2015.394%2012.4526%2015.7841%2012.6034%2016.1481C12.7541%2016.512%2012.9751%2016.8427%2013.2537%2017.1213C13.5323%2017.3999%2013.863%2017.6209%2014.2269%2017.7716C14.5909%2017.9224%2014.981%2018%2015.375%2018C15.769%2018%2016.1591%2017.9224%2016.5231%2017.7716C16.887%2017.6209%2017.2177%2017.3999%2017.4963%2017.1213C17.7749%2016.8427%2017.9959%2016.512%2018.1466%2016.1481C18.2974%2015.7841%2018.375%2015.394%2018.375%2015C18.375%2014.2044%2018.0589%2013.4413%2017.4963%2012.8787C16.9337%2012.3161%2016.1706%2012%2015.375%2012C14.5794%2012%2013.8163%2012.3161%2013.2537%2012.8787C12.6911%2013.4413%2012.375%2014.2044%2012.375%2015Z'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_6'%20d='M20.375%2020L17.875%2017.5'%20stroke='%23252525'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2567_121959'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(4.375%204)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",el=a=>(pe("data-v-95c410c0"),a=a(),fe(),a),tl=el(()=>o("p",{class:"text-subtitle-4 mt-6"},"Packaging",-1)),ll=["src"],al={class:"product-fangda"},ol=["onClick"],sl={class:"d-flex align-center text-h3",style:{color:"#1F1F1F","font-weight":"500"}},nl=L({__name:"TabShippingPackaging",props:{packageImageList:Array},setup(a){const d=a;I("/src/assets/images/e-commerce/51a9973b097034079ac4ff57d57a113.jpg"),I({itemsToShow:1,snapAlign:"center"}),I({700:{itemsToShow:3,snapAlign:"center"},1024:{itemsToShow:4,snapAlign:"center"},1450:{itemsToShow:5,snapAlign:"start"}}),I({700:{itemsToShow:1,snapAlign:"center"},1024:{itemsToShow:1,snapAlign:"center"},1450:{itemsToShow:1,snapAlign:"start"}});let e=I(!1),v=I(0);function S(g){e.value=!0,v.value=g}return(g,m)=>(c(),A(P,null,[tl,t(Q,{class:"mt-4"},{default:l(()=>[(c(!0),A(P,null,J(d.packageImageList,(p,V)=>(c(),N(U,{lg:"2",sm:"12",cols:"12",class:"position-relative pack",key:V},{default:l(()=>[o("img",{alt:"product",src:p,class:"product-img",style:{border:"1px solid #e3e8ef"}},null,8,ll),o("div",al,[t(ve,{activator:"parent",location:"top"},{default:l(()=>[T("Zoom in")]),_:1}),o("img",{alt:"product",class:"packimg",src:Zt,onClick:_=>S(V)},null,8,ol)])]),_:2},1024))),128))]),_:1}),t(Ee,{modelValue:u(e),"onUpdate:modelValue":m[1]||(m[1]=p=>F(e)?e.value=p:e=p),"max-width":860},{default:l(()=>[t(H,null,{default:l(()=>[t(me,null,{default:l(()=>[o("div",sl,[T("Packaging "),o("img",{src:Fe,width:32,height:32,class:"close",onClick:m[0]||(m[0]=p=>F(e)?e.value=!1:e=!1)})]),t(B,{alt:"product",src:d.packageImageList[u(v)],"max-height":"625",class:"mt-5"},null,8,["src"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),il=Y(nl,[["__scopeId","data-v-95c410c0"]]),ul=["src"],rl=["src"],cl=L({__name:"SkuSelector",props:{skuInfos:Array,optionName:String,optionType:Number,optionValues:Array,selectValue:String,selectSkuIds:Array,validSkuIds:Array},emits:["onSelectValue","onSelectSkuIds","onSelectValue","onSelectSkuIds","onSelectValue","onSelectSkuIds"],setup(a,{emit:d}){const e=a;let v=I(""),S=I(""),g=I("");ae(()=>e.validSkuIds,i=>{if(e.selectValue&&(console.log("validSkuIds change",e.validSkuIds),e.validSkuIds&&e.validSkuIds.length>0)){let x=!1;for(const s of e.validSkuIds)if(e.selectSkuIds.indexOf(s)>=0){x=!0;break}x||e.handleSelectChange(null)}}),console.log("pro...",e.skuInfos);const m=d;let p=R({img:"",text:""}),V=R({img:"",text:""}),_=R({img:"",text:""});function b(i,x,s,y){console.log("selectColor...",i),console.log("selectColor...",x),console.log("selectColor...",x),y=="color"&&(V.img=x.fileUrl,V.text=x.text),y=="image"&&(_.img=x.fileUrl,_.text=x.text),y=="general"&&(p.img=x.fileUrl,p.text=x.text),h.value=x.skuIds;let D=x.text;if(!D)s==1&&(m("onSelectValue",{optionType:s,data:null}),m("onSelectSkuIds",{optionType:s,data:[]})),s==2&&(m("onSelectValue",{optionType:s,data:null}),m("onSelectSkuIds",{optionType:s,data:[]})),s==3&&(m("onSelectValue",{optionType:s,data:null}),m("onSelectSkuIds",{optionType:s,data:[]}));else{s==1&&m("onSelectValue",{optionType:s,data:D}),s==2&&m("onSelectValue",{optionType:s,data:D}),s==3&&m("onSelectValue",{optionType:s,data:D});for(const M of e.optionValues)if(M.text===D){console.log("onSelectSkuIds....",M.skuIds),M.skuIds,s==1&&m("onSelectSkuIds",{optionType:s,data:M.skuIds}),s==2&&m("onSelectSkuIds",{optionType:s,data:M.skuIds}),s==3&&m("onSelectSkuIds",{optionType:s,data:M.skuIds});break}}}let h=R([]);function C(i,x){if(console.log("optionSkuIds",i),console.log("validSkuIds",x),!x||x.length===0)return!1;for(const s of x)if(i.indexOf(s)>=0)return!1;return!0}return Ue(()=>{if(e.optionType==z.COLOR.value){for(let i=0;i<e.optionValues.length;i++)if(!C(e.optionValues[i].skuIds,e.validSkuIds)){b(i,e.optionValues[i],e.optionType,"color"),g.value=e.optionValues[i].text;break}}if(e.optionType==z.GENERAL.value){for(let i=0;i<e.optionValues.length;i++)if(!C(e.optionValues[i].skuIds,e.validSkuIds)){b(i,e.optionValues[i],e.optionType,"general"),S.value=e.optionValues[i].text;break}}if(e.optionType==z.IMAGE.value){for(let i=0;i<e.optionValues.length;i++)if(!C(e.optionValues[i].skuIds,e.validSkuIds)){b(i,e.optionValues[i],e.optionType,"general"),v.value=e.optionValues[i].text,_.img=e.optionValues[i].fileUrl,_.text=e.optionValues[i].text;break}}}),(i,x)=>(c(),A(P,null,[a.optionType==u(z).COLOR.value?(c(),N(ce,{key:0,modelValue:u(g),"onUpdate:modelValue":x[0]||(x[0]=s=>F(g)?g.value=s:g=s),items:a.optionValues,color:"primary",label:a.optionName,variant:"outlined","item-title":"text","item-value":"text","hide-details":""},{item:l(({props:s,item:y})=>[t(ee,te(s,{link:"",color:"primary",class:"d-flex align-center",disabled:C(y.raw.skuIds,a.validSkuIds),onClick:D=>b(i.index,y.raw,a.optionType,"color")}),null,16,["disabled","onClick"])]),_:1},8,["modelValue","items","label"])):$("",!0),a.optionType==u(z).GENERAL.value?(c(),N(ce,{key:1,style:{width:"100%"},modelValue:u(S),"onUpdate:modelValue":x[1]||(x[1]=s=>F(S)?S.value=s:S=s),items:a.optionValues,color:"primary",label:a.optionName,variant:"outlined","item-title":"text","item-value":"text","hide-details":""},{item:l(({props:s,item:y})=>[t(ee,te(s,{link:"",color:"primary",class:"d-flex align-center",disabled:C(y.raw.skuIds,a.validSkuIds),onClick:D=>b(i.index,y.raw,a.optionType,"general")}),null,16,["disabled","onClick"])]),_:1},8,["modelValue","items","label"])):$("",!0),a.optionType==u(z).IMAGE.value?(c(),N(ce,{key:2,modelValue:u(v),"onUpdate:modelValue":x[2]||(x[2]=s=>F(v)?v.value=s:v=s),items:a.optionValues,color:"primary",label:a.optionName,variant:"outlined","item-title":"text","item-value":"text","hide-details":""},{"prepend-inner":l(()=>[u(_).img?(c(),A("img",{key:0,src:u(_).img,width:"30px",height:"30px"},null,8,ul)):$("",!0)]),item:l(({props:s,item:y})=>[t(ee,te(s,{link:"",color:"primary ",class:"d-flex align-center",disabled:C(y.raw.skuIds,a.validSkuIds),onClick:D=>b(i.index,y.raw,a.optionType,"image")}),{prepend:l(()=>[o("img",{src:y.raw.fileUrl,width:"30px",height:"30px",style:{"margin-right":"10px"}},null,8,rl)]),_:2},1040,["disabled","onClick"])]),_:1},8,["modelValue","items","label"])):$("",!0)],64))}}),ke=Y(cl,[["__scopeId","data-v-940f14f2"]]),dl=L({__name:"GoodsSku",props:{skuInfos:Array,option1Name:String,option1Type:Number,option2Name:String,option2Type:Number,option3Name:String,option3Type:Number},emits:["getChildren","skuChange"],setup(a,{emit:d}){const e=d;let v=I(null),S=I(null),g=I(null),m=I([]),p=I([]),V=I([]);const _=a;function b(n,k){for(const f of n)if(f.text===k)return f;return null}const h=j(()=>{if(!_.skuInfos)return[];var n=[];for(const r of _.skuInfos)if(r.option1){var k=JSON.parse(r.option1);if(!k.text)continue;var f=b(n,k.text);f?f.skuIds.push(r.id):(f=Object.assign({},k),f.skuIds=[],f.skuIds.push(r.id),n.push(f))}return n}),C=j(()=>{if(!_.skuInfos)return[];var n=[];for(const r of _.skuInfos)if(r.option2){var k=JSON.parse(r.option2);if(!k.text)continue;var f=b(n,k.text);f?f.skuIds.push(r.id):(f=Object.assign({},k),f.skuIds=[],f.skuIds.push(r.id),n.push(f))}return n}),i=j(()=>{if(!_.skuInfos)return[];var n=[];for(const r of _.skuInfos)if(r.option3){var k=JSON.parse(r.option3);if(!k.text)continue;var f=b(n,k.text);f?f.skuIds.push(r.id):(f=Object.assign({},k),f.skuIds=[],f.skuIds.push(r.id),n.push(f))}return n});function x(n){console.log("监听orSelect1Value...",n),v.value=n.data}function s(n){console.log("监听orSelect1SkuIds...",n),m.value=n.data}function y(n){S.value=n.data}function D(n){p.value=n.data}function M(n){g.value=n.data}function O(n){V.value=n.data}const E=j(()=>{if(console.log("selectOption1Value.value...",v.value),console.log("selectOption2Value.value...",S.value),console.log("selectOption3Value.value...",g.value),!_.skuInfos)return null;for(const r of _.skuInfos){if(r.option1){var n=JSON.parse(r.option1);if(n.text&&n.text!==v.value){console.log("监听...",n.text,"===",v.value);continue}}if(r.option2){var k=JSON.parse(r.option2);if(k.text&&k.text!==S.value){console.log("监听...",k.text,"===",S.value);continue}}if(r.option3){var f=JSON.parse(r.option3);if(f.text&&f.text!==g.value){console.log("监听...",f.text,"===",g.value);continue}}return console.log("监听aaa...",r.id),r.id}return null});return ae(E,n=>{console.log("watch...",n),e("skuChange",n)}),(n,k)=>(c(),A(P,null,[_.option1Type&&a.option1Name&&h.value?(c(),N(U,{key:0,cols:"12",md:"2"},{default:l(()=>[t(ke,{optionValues:h.value,"option-name":a.option1Name,"option-type":_.option1Type,"select-value":u(v),selectSkuIds:u(m),"valid-sku-ids":u(p).concat(u(V)),onOnSelectValue:x,onOnSelectSkuIds:s},{optionName:l(()=>[le(n.$slots,"optionName",{optionName:a.option1Name,optionType:a.option1Type,index:1},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])]),_:3})):$("",!0),_.option2Type&&a.option2Name&&C.value?(c(),N(U,{key:1,cols:"12",md:"2"},{default:l(()=>[t(ke,{optionValues:C.value,"option-name":a.option2Name,"option-type":_.option2Type,onOnSelectValue:y,onOnSelectSkuIds:D,"select-value":u(S),selectSkuIds:u(p),"valid-sku-ids":u(m).concat(u(V))},{optionName:l(()=>[le(n.$slots,"optionName",{optionName:a.option2Name,optionType:a.option2Type,index:2},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])]),_:3})):$("",!0),_.option3Type&&a.option3Name&&i.value?(c(),N(U,{key:2,cols:"12",md:"2"},{default:l(()=>[t(ke,{optionValues:i.value,"option-name":a.option3Name,"option-type":_.option3Type,onOnSelectValue:M,onOnSelectSkuIds:O,"select-value":u(g),selectSkuIds:u(V),"valid-sku-ids":u(m).concat(u(p))},{optionName:l(()=>[le(n.$slots,"optionName",{optionName:a.option3Name,optionType:a.option3Type,index:3},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])]),_:3})):$("",!0)],64))}}),ml=Y(dl,[["__scopeId","data-v-d7835459"]]),_e={COMBINATION:{text:"组合",value:1},MAGNIFICATION:{text:"倍率",value:2},MAGNIFICATION2:{text:"倍率2",value:3}};function Vo(a){for(const d of a.items)for(const e of d.countryItems)if(e.countryCode.toLowerCase()==="US".toLowerCase())return d;return a.items[0]}function pl(a,d){for(const e of a.items)if(e.countryGroupId===d)return e;return null}function fl(a=0,d,e){if(e.type===_e.COMBINATION.value){const g=$e(a,d);if(!g)return null;var v=g.pricePerKilo*a,S=g.registrationFee;return v+S}else if(e.type===_e.MAGNIFICATION.value){const m=Math.ceil(a/d.minUnitWeight)*d.minUnitWeight,p=$e(m,d);return p?m*p.magnification*d.minUnitWeightPrice:null}else if(e.type===_e.MAGNIFICATION2.value){const m=Math.ceil(a/.5)-1;return d.firstHalfKgPrice+m*d.moreHalfKgPrice}else return console.error("not support logistics method type"),null}function $e(a,d){for(const e of d.priceItems)if(e.weightMin<=a&&e.weightMax>a)return e;return null}const vl=o("p",{class:"text-secondary mt-3"},"Note:A Remote Area Surcharge is applied per shipment when the international delivery destination or pick up location is remote ",-1),gl={class:"tabshipTable mt-6 w-100"},hl=o("thead",null,[o("tr",null,[o("th",{class:"text-left"},"Shipping Methods"),o("th",{class:"text-left"},"Delivery Time"),o("th",{class:"text-left"},"Shipping Fee")])],-1),kl={class:"text-subtitle-1 font-weight-regular"},_l={class:"text-subtitle-1 font-weight-regular"},Sl={class:"text-subtitle-1 font-weight-regular"},xl=L({__name:"TabShipping",props:{productData:Object,blankProductInfo:Object,shippingDatas:Object,skuList:Array},setup(a){const d=oe([0,1,2,3,4]);I(["[email protected]"]);const e=a;let v=I("United States");const S=I([]);Ve().countryGroupsApi().then(s=>{console.log("countryGroups...",s),S.value=s.data.records});function m(s,y="0.00"){return typeof s>"u"||s===null?"-":s?parseFloat(s).toFixed(2):y}const p=j(()=>{var s=[];for(const n of e.shippingDatas)s.push({title:n.name,deliveryTime:"",price:""});if(console.log("res...",s),!e.shippingDatas||e.shippingDatas.length===0)return[];var y=b.value;y&&(y=y/1e3);let D=[];console.log("countryGroups.value...",S.value),console.log("shippingToValue.value...",v.value);for(const n of S.value)if(v.value&&v.value===n.name){var M={};if(M.shippingTo=n.name,y)for(const k of e.shippingDatas){console.log("countryGroup.id...",n.id);var O=pl(k,n.id);if(console.log("logisticsMethodConfig...",O),O){var E=fl(y,O,k);E&&(console.log("price...",E),console.log("shippingData...",k,"countryGroup...",n),D.push({deliveryTime:O.deliveryTime,price:m(E)}))}}}return s.forEach((n,k)=>{D.forEach((f,r)=>{k==r&&(n.deliveryTime=f.deliveryTime,n.price=f.price)})}),s}),V=j(()=>{if(!e.shippingDatas||e.shippingDatas.length===0)return[];var s=[];for(const D of S.value){var y={};y.shippingTo=D.name,D.name=="United States"&&(v.value="United States"),s.push(y)}return s}),_=j(()=>{if(!h.value||!e.skuList||!e.skuList.length)return null;for(const s of e.skuList)if(s.id===h.value)return s;return null}),b=j(()=>{var s=_.value;return!s||!i.value?null:s.weight*i.value});let h=I("");function C(s){console.log("getSkuId....",s),h.value=s}let i=I(1);function x(s){s==="add"?i.value++:i.value>1&&i.value--}return(s,y)=>{const D=de("MinusIcon"),M=de("PlusIcon");return c(),N(ie,{modelValue:d.value,"onUpdate:modelValue":y[4]||(y[4]=O=>d.value=O),multiple:""},{default:l(()=>[t(ne,{elevation:"0"},{default:l(()=>[t(se,null,{default:l(()=>[t(Q,{class:"d-flex align-center mt-2"},{default:l(()=>[t(U,{cols:"12",md:"2"},{default:l(()=>[t(Ye,{modelValue:u(v),"onUpdate:modelValue":y[0]||(y[0]=O=>F(v)?v.value=O:v=O),items:V.value,color:"primary",label:"Shipping to",variant:"outlined","item-title":"shippingTo","item-value":"shippingTo","hide-details":""},null,8,["modelValue","items"])]),_:1}),t(ml,{skuInfos:e.productData.skuInfos,"option1-name":e.productData.blankProductInfo.skuOption1,"option1-type":e.productData.blankProductInfo.skuOption1Type,"option2-name":e.productData.blankProductInfo.skuOption2,"option2-type":e.productData.blankProductInfo.skuOption2Type,"option3-name":e.productData.blankProductInfo.skuOption3,"option3-type":e.productData.blankProductInfo.skuOption3Type,onSkuChange:C},null,8,["skuInfos","option1-name","option1-type","option2-name","option2-type","option3-name","option3-type"]),t(Ke,{class:"font-weight-medium mb-2 ml-3"},{default:l(()=>[T("Quantity")]),_:1}),t(We,{variant:"outlined",size:"small",divided:"",color:"primary",class:"ml-4"},{default:l(()=>[o("div",{class:"btn add",onClick:y[1]||(y[1]=O=>x("del"))},[t(D,{size:"18"})]),Xe(o("input",{type:"text",class:"btn-input","onUpdate:modelValue":y[2]||(y[2]=O=>F(i)?i.value=O:i=O)},null,512),[[Ze,u(i)]]),o("div",{class:"btn del",onClick:y[3]||(y[3]=O=>x("add"))},[t(M,{size:"18"})])]),_:1})]),_:1}),vl,o("table",gl,[hl,o("tbody",null,[(c(!0),A(P,null,J(p.value,O=>(c(),A("tr",{class:"text-grey-lighten-3",key:O.name},[o("td",kl,w(O.title),1),o("td",_l,w(O.deliveryTime||"/"),1),o("td",Sl,"$"+w(O.price||"/"),1)]))),128))])]),e.productData.packageImageList.length>0?(c(),N(il,{key:0,packageImageList:e.productData.packageImageList},null,8,["packageImageList"])):$("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Il="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAxxJREFUWEftmN910zAYxe+XJu9lA7FBWlKeyQQ5TIADA9BOUGeDsgB2JoAN0mfqEG+ANiDvbS2O5T+xbEmW7YTTwyGPdiT/fPV9V1cmvPAfvXA+/FuA7Mqb4hGcx+H+bynvrCCbfbwFhA8Cx6OY8zjkXSHZpXeNES0ATPOxMRKx5j/D0DSXE2AJV8zSEZJNPYYJfYMowVQey3ytgAqcwB6Eczm7I2QOt4EAk+PSOSDWGSEtQPl1IOZRcFFX0gpYg+N4FnOM4QF06wLZhBNf+Da8rkKwN94diD5n18QNj8K76n0joA6uqDs28/w2yAYcxIpHoa+rNTZb/gbkytzzKJi3AtrgisE2yCYcgBE8/iPIl1bFrKi451HwygroAmeDlPcmdKi56tMMkM6AbOa9A2iTz7nHk7hos5OGklkjZA0BsUICjhEFJacGkl0tf+Vj7EvMpt45zmh36CzyefR1lU7O3n76gOfEB1FYXNMqWZIcao5dep4JUlmxRCzrnthoElk/Z7SpQmJEHElSmGnDDuSYMe3yQpfK1RtCB4mEmDT/THXOt8FrJ5tpQlaGCfGeb8PvpXqZCVdqztKtdSWLSQSkhenKyWwzDSVTXxVL/nDYlrpYSflCdUgLXDrGbtSa5S5rsoNyijEXe3q+rCblijHtW52uJp+SteuyDoFrVVCpM6Vx0v0035MtO8RQOGdAaTO6mjwxXHdAx241Kpc9sVOebK3BUr2hcD2impOCfaxEvpSmW7tENacuPiZcl6hWLRG7UQ9fVu0O4ZInrQqeQrn6HusKqQ8LQ5UD+kU1zWlRAZRxa0K7ap4zxXSrlcibPaJaZkFpBi3P3SqgEljNqcS6Q2TekAdW8ntEtTmPwnttDaqJWih/rNeQ0UrSG+q2eBjaI6rZFLQCWk99R4xqvQBdDla6ZN4nqnUGdIEzpyDy0TGqmQETcYMRYrX2RgtAZF8GWpLwsaKaRUFdW+TXHOEskNqDle6JTR8cU/oZwvzrCKeHdLMwbZrJjpDlF6cm6BPivh8ws40AjD+EtdIx6+GUB62Knvjmf8ChAv8BObjwR5KnggkAAAAASUVORK5CYII=",we=a=>(pe("data-v-6bdf329a"),a=a(),fe(),a),yl=we(()=>o("img",{src:Il,width:"20px",height:"20px"},null,-1)),Vl=we(()=>o("span",{class:"ml-2 text-h4 font-weight-medium"},"Download Design Template",-1)),bl={class:"d-flex align-start ga-4 w-100"},wl={class:"art text-subtitle-4 font-weight-medium"},Al={class:"flex-grow-1"},Cl={class:"text-h5"},Nl={style:{"max-width":"800px"}},Tl=we(()=>o("div",{style:{"max-width":"800px"}}," 100% accurate design layout or pattern alignment cannot be guaranteed. Any designs outside the safe print area are not guaranteed to perfectly appear on the finished product. ",-1)),Ol=L({__name:"TabsPrinting",props:{printGuideList:Array,blankProductInfo:Object},setup(a){const d=oe([0,1,2,3,4]),e=oe([0,1,2,3,4]),v=a;return(S,g)=>(c(),A("div",null,[t(ie,{modelValue:d.value,"onUpdate:modelValue":g[0]||(g[0]=m=>d.value=m),multiple:""},{default:l(()=>[t(ne,{elevation:"0"},{default:l(()=>[t(se,null,{default:l(()=>[t(q,{variant:"outlined",color:"#203461",size:"large",href:v.blankProductInfo.designTemplateUrl},{default:l(()=>[yl,Vl]),_:1},8,["href"]),(c(!0),A(P,null,J(a.printGuideList,(m,p)=>(c(),N(H,{variant:"outlined",border:"none",class:"d-flex align-center my-7",key:p},{default:l(()=>[o("div",bl,[o("span",wl,w((p+1).toString().padStart(2,"0")),1),o("div",Al,[o("h4",Cl,w(m.title),1),o("p",Nl,w(m.content),1)])])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(Ge,{class:"mt-4"}),t(ie,{modelValue:e.value,"onUpdate:modelValue":g[1]||(g[1]=m=>e.value=m),multiple:""},{default:l(()=>[t(ne,{elevation:"1"},{default:l(()=>[t(Pe,{class:"font-weight-medium custom-accordion"},{default:l(()=>[T("Disclaimer")]),_:1}),t(se,null,{default:l(()=>[Tl]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),$l=Y(Ol,[["__scopeId","data-v-6bdf329a"]]),Dl={class:"d-flex align-start ga-4 w-100"},Ul=["src"],Pl={class:"flex-grow-1"},Ml={class:"text-h4 font-weight-medium"},Ll={class:"text-medium-emphasis",style:{"max-width":"800px"}},El=L({__name:"TabService",props:{serviceList:Array},setup(a){return(d,e)=>(c(),A("div",null,[(c(!0),A(P,null,J(a.serviceList,(v,S)=>(c(),N(H,{variant:"outlined",border:"none",class:"d-flex align-center my-7",key:S},{default:l(()=>[o("div",Dl,[o("img",{src:v.logoUrl,width:"40px",height:"40px"},null,8,Ul),o("div",Pl,[o("h2",Ml,w(v.title),1),o("p",Ll,w(v.content),1)])])]),_:2},1024))),128))]))}}),Gl=Y(El,[["__scopeId","data-v-ddc0da5c"]]),jl="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%20clip-path='url(%23clip0_2425_111541)'%3e%3cpath%20id='Vector'%20d='M21.5%2014L18.5%2011H11.5C11.2348%2011%2010.9804%2010.8946%2010.7929%2010.7071C10.6054%2010.5196%2010.5%2010.2652%2010.5%2010V4C10.5%203.73478%2010.6054%203.48043%2010.7929%203.29289C10.9804%203.10536%2011.2348%203%2011.5%203H20.5C20.7652%203%2021.0196%203.10536%2021.2071%203.29289C21.3946%203.48043%2021.5%203.73478%2021.5%204V14Z'%20stroke='%23203461'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M14.5%2015V17C14.5%2017.2652%2014.3946%2017.5196%2014.2071%2017.7071C14.0196%2017.8946%2013.7652%2018%2013.5%2018H6.5L3.5%2021V11C3.5%2010.7348%203.60536%2010.4804%203.79289%2010.2929C3.98043%2010.1054%204.23478%2010%204.5%2010H6.5'%20stroke='%23203461'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2425_111541'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Fl="/assets/moRenTouXiang-Cb1xjtqm.svg",zl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAAAXNSR0IArs4c6QAAAqxJREFUaEPtmNt1EzEQhv9ZzHtKEB34JIbnpIJABdl1CoipIHYFSRqwRQekgpB3G7aDqANcQNBw9hbf9qYLC+SsnqXRfPOPZiQRXsGgV8CAHuJfUbFXolfCYwT6dNoPphiGRxhgCATnAJ8CEACO8nlrADFAMVg/qpX86ksML0pkzgdXAE+2nK73kaDAJPGsv6hYKhcgZwjx4fICWt+2dn7f2wTmF8/UdyltQZwgxGh8k0ffdv+tdXSrlvPPNoasIcTJeAHi0GbTyjVMUq3mkalNKwi/Chzkl7EixhDiOAwR0MI0WkbzmT+ZVC8jCDEMBd7SAzgtnX9yrPHM71Qsk7LcOBohtsrnaeo8GQIw36WVi+ii0ZudCTxTSzlts6YSIo36IE2bpGlZjo0jYhROAbo2MNRajVII8f7yCqyTKBTd1mDvYuphJM1B+Ewt5bemzQ8gxGh8DXArGauNV6eCEQjznVrJ5BZQO3YgcgWS7uswmnPZCCS5bzHFgL6vqlgvEPkZ+OE7haqiYQiSmam4omwgnDtwswL7QFYgGc1ULeezwl4KkavwZJ9D5gDFXj5AMohROAHoxg7CHsAZJO/sOUT0YNcP3AEcQdJeUkD8dDvQuxqq5aL2JiBGEdupXrJKc1RA+DMKoFMI8P3/D0FQGcRJ9GR8savJh26VSNpHWp1sD3Y5yV+CML5h1p7LjiHiotkdYUBJhfIyuoXID7bvlOoUoiixW1cPxwugFyHbG2EotVpkze6la3bxCdDexeaZmqPk063kUeT3kDd7Yjtjc+Upf54ehxME6XvY4Xlq61yLdXsvvvqPgjeYmv9StHDCdgpjDXC0/8Jr82UjEOAjAjoHYwjqWB2GAlEMrR+hIcv+ohohbIPW5boeosto1+3VK9Er4TECfTp5DKaTqd+s9Cxt7lMPyAAAAABJRU5ErkJggg==",Rl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAaZJREFUOE+1lL1OwlAUx/+ncTLR8AjlDYjFyRgfQCOYuLm0mLgCg660qw7AaiJ0cTNBjD6AMW6gvAH3EYgmTtpjbmsr3H4gJnTr+fjde+45509I+PSCmYMGE5q2A+YCCPpP2AggAc/rixfXTcol1agbZhlEXQC5pITIRhD4YkcFzwD1YqUJcC0TFHOSLQYdJzRHQL1YaQBsLwaLMC0x6NTlnw/UN0wTml/m/z/mAzF0bwPgpjUGRw8/F7q+toq39w81boJPzlPS7WTCw7WN9mUfN/fPM4mHe1uonpSwvX+WcDDXSTcqPRCXVa9MvGgc49S5iqBJttk87pNetF4BFJLqnAZIv3pAvOEQEshZjxZCZcz0bdNylgA0rPHUasUaEJb5p5KB0TKaYtYAaqpv8nR3njk2u0d2fBY9tshXlhUaq2KQMrzp/WMIMezmg00JFKY3d0WyAjy2pPL8ioNhtkBU/R+UHTFwfWFR5Mu0AWosBGVui6EbSV5cYKXyEDXSRik6jDEB2JIKM32BGDB0BqKhlQCW8h+sJkOAaATPe4QHV4zciVrNNwLaxFRch5/tAAAAAElFTkSuQmCC",Jl={class:"d-flex align-center"},Bl=o("div",{class:"text-h4 mt-6"},"Rating",-1),Hl=o("div",{class:"text-h4 mt-4"},"Leave your order experience?",-1),Ql={class:"text-h4 mt-6"},ql=o("span",{class:"ml-3",style:{color:"#121926","font-size":"14px"}},"Add Images",-1),Yl={class:"d-flex flex-wrap"},Kl=["onClick"],Wl={class:"btns"},Xl={__name:"AddCommentDialog",props:{blankId:String,commentItem:Object,isAdd:Boolean},emits:["refresh"],setup(a,{expose:d,emit:e}){const v=a,S=e;let g=I(!1),m=I(""),p=I(""),V=I(0),_=I(!1),b=I(!1),h=R({color:"success",msg:"Success"});const C=I(null);let i=I([]),x=I(!1);const s=()=>{g.value=!1,p.value="",V.value=0,i.value=[],b.value=!1},y=()=>{g.value=!0};function D(k){g.value=!0,m.value=k.id,p.value=k.comment,V.value=k.star,i.value=tt(k.photos)}function M(){if(V.value===0){h.color="error",h.msg="Please select a rating",_.value=!0;return}b.value=!0;const k=ze();if(v.isAdd)k.addComment(v.blankId,p.value,V.value,i.value).then(f=>{h.color="success",h.msg="Success",_.value=!0,p.value="",V.value=0,i.value=[],b.value=!1,s(),S("refresh")}).catch(f=>{b.value=!1});else{const f={comment:p.value,commentId:m.value,photos:i.value,star:V.value,contentType:"application/json;charset=UTF-8"};k.commentModify(f).then(r=>{h.color="success",h.msg="Success",_.value=!0,p.value="",V.value=0,b.value=!1,s(),S("refresh")}).catch(r=>{h.color="error",h.msg=r.msg,_.value=!0,b.value=!1})}}function O(){C.value.click()}async function E(k){x.value=!0,Object.keys(k.target.files).forEach(async f=>{let r=k.target.files[f];console.log("file...",r);const Z=pt();var G=await Oe.oss(Z.fileSts),ue=Oe.getRandomObjectName(G.ossObjectNamePrefix,G.domain,r.name);try{console.log("ossObject...",ue),console.log("oss...",G),await G.client.multipartUpload(ue.objectName,r,{headers:{"Cache-Control":"max-age=360000"}}),console.log("upload image success",ue.objectUrl);var ge=[];for(const Ae of i.value)ge.push(Ae);ge.push(ue.objectUrl),i.value=ge,x.value=!1}catch{x.value=!1}})}function n(k){console.log("imageUrls.value...",i.value),console.log("index...",k),i.value.splice(k,1)}return d({handleClose:s,handleOpen:y,editOpen:D}),(k,f)=>(c(),A(P,null,[o("input",{type:"file",multiple:"",ref_key:"fileInput",ref:C,style:{display:"none"},onChange:E},null,544),t(je,{modelValue:u(_),"onUpdate:modelValue":f[0]||(f[0]=r=>F(_)?_.value=r:_=r),color:u(h).color,timeout:3e3,variant:"flat",rounded:"md",location:"top"},{default:l(()=>[T(w(u(h).msg),1)]),_:1},8,["modelValue","color"]),t(Ee,{modelValue:u(g),"onUpdate:modelValue":f[3]||(f[3]=r=>F(g)?g.value=r:g=r),"max-width":530},{default:l(()=>[t(H,{loading:u(x)},{default:l(()=>[t(me,null,{default:l(()=>[o("h3",Jl,[T("Write a review "),t(B,{src:u(Fe),width:32,height:32,class:"close",onClick:s},null,8,["src"])]),Bl,t(Se,{modelValue:u(V),"onUpdate:modelValue":f[1]||(f[1]=r=>F(V)?V.value=r:V=r),color:"warning",hover:""},null,8,["modelValue"]),Hl,t(et,{class:"mt-4",filled:"","auto-grow":"",label:"Write a review",variant:"outlined",rows:"4",color:"primary",modelValue:u(p),"onUpdate:modelValue":f[2]||(f[2]=r=>F(p)?p.value=r:p=r)},null,8,["modelValue"]),o("div",Ql,"Add Images ("+w(u(i).length)+"/6)",1),o("p",{class:"d-flex align-center mt-5 cursor-pointer",onClick:O},[t(B,{src:u(zl),width:"24px",height:"24px",inline:""},null,8,["src"]),ql]),o("div",Yl,[(c(!0),A(P,null,J(u(i),(r,Z)=>(c(),A("div",{class:"lis position-relative mr-5 mt-4",key:Z},[o("div",{class:"closeicon cursor-pointer",onClick:G=>n(Z)},[t(B,{src:u(Rl),width:"10px",height:"10px"},null,8,["src"])],8,Kl),t(B,{src:r,width:"56px",height:"56px"},null,8,["src"])]))),128))]),o("div",Wl,[t(q,{class:"mt-4",color:"lightprimary",onClick:s},{default:l(()=>[T("Cancel")]),_:1}),t(q,{class:"mt-4 ml-4",color:"btnBlue",loading:u(b),onClick:M},{default:l(()=>[T("Submit")]),_:1},8,["loading"])])]),_:1})]),_:1},8,["loading"])]),_:1},8,["modelValue"])],64))}},Zl="/assets/noprise-xF5YQMUc.png",K=a=>(pe("data-v-aeca37dd"),a=a(),fe(),a),ea={key:0,class:"none-prise"},ta={class:"none-prise-con m-auto"},la=K(()=>o("p",{style:{"font-size":"12px",color:"#565656"}},"There are currently no reviews for this product. Do you want to be the first to review this product?",-1)),aa=K(()=>o("img",{src:jl},null,-1)),oa=K(()=>o("span",{class:"ml-3"},"Write a review",-1)),sa={key:1},na={class:"pa-4"},ia=K(()=>o("h4",{class:"text-h4"},"Average Rating",-1)),ua={class:"text-primary text-h1 my-4"},ra={class:"text-medium-emphasis align-center justify-center d-flex mb-3 ga-2"},ca={class:"pa-7"},da={class:"d-flex align-center ga-4 my-2"},ma=K(()=>o("div",{class:"text-no-wrap"},"1 Stars",-1)),pa={class:"d-flex align-center ga-4 my-2"},fa=K(()=>o("div",{class:"text-no-wrap"},"2 Stars",-1)),va={class:"d-flex align-center ga-4 my-2"},ga=K(()=>o("div",{class:"text-no-wrap"},"3 Stars",-1)),ha={class:"d-flex align-center ga-4 my-2"},ka=K(()=>o("div",{class:"text-no-wrap"},"4 Stars",-1)),_a={class:"d-flex align-center ga-4 my-2"},Sa=K(()=>o("div",{class:"text-no-wrap"},"5 Stars",-1)),xa={class:"pa-4"},Ia={class:"d-flex align-center ga-4 pa-4 w-100"},ya=K(()=>o("img",{src:Fl,alt:"users",width:"60"},null,-1)),Va={class:"flex-grow-1"},ba={class:"text-h5"},wa={class:"text-medium-emphasis",style:{"font-size":"10px"}},Aa={class:"v-col-lg-2 px-0 py-0"},Ca={class:"d-flex flex-wrap"},Na={key:0,class:"posi"},Ta={key:0,class:"text-center"},Oa={__name:"TabReview",props:{blankId:String},setup(a){const d=be();let e=I(!1);const v=I(4),S=a;let g=R({size:10,current:1}),m=R([]),p=R({}),V=R({}),_=I(!0),b=I(!1),h=R({color:"success",msg:"Success",isShow:!1});I("");const C=ze();function i(){e.value=!0,C.commentPage(g.current,g.size,d.query.id).then(n=>{e.value=!1,m.push(...n.data.records),p.value=n.data,console.log("commentPage...",m),n.data.total>g.size*g.current?b.value=!0:b.value=!1})}const x=j(()=>{var n=p.value.star1Num+p.value.star2Num*2+p.value.star3Num*3+p.value.star4Num*4+p.value.star5Num*5;return n?(n/p.value.total).toFixed(1):0}),s=I(null),y=()=>{s.value&&(console.log(s.value),s.value.handleOpen())};function D(){g.current+=1,i()}function M(n){_.value=!1,V.value=n,s.value&&(console.log(s.value),s.value.editOpen(n))}function O(n,k){C.blankProductCommentRemove({commentId:n,contentType:"application/json;charset=UTF-8"}).then(f=>{h.msg="Successfully deleted",h.color="success",h.isShow=!0,m.splice(k,1)})}function E(){setTimeout(()=>{m.splice(0,m.length),console.log("comlist...",m),i()},100)}return E(),ft("refreshProductDetail",E),lt(()=>{vt("refreshProductDetail",E)}),(n,k)=>{const f=de("DotsIcon");return c(),A(P,null,[t(je,{modelValue:u(h).isShow,"onUpdate:modelValue":k[0]||(k[0]=r=>u(h).isShow=r),color:u(h).color,timeout:3e3,variant:"flat",rounded:"md",location:"top"},{default:l(()=>[T(w(u(h).msg),1)]),_:1},8,["modelValue","color"]),u(m).length==0?(c(),A("div",ea,[o("div",ta,[t(B,{src:u(Zl),width:120,height:120,inline:""},null,8,["src"]),la,t(q,{variant:"outlined",color:"#203461",size:"large",class:"mt-6",onClick:y},{default:l(()=>[aa,oa]),_:1})])])):(c(),A("div",sa,[t(Q,{class:"mt-4"},{default:l(()=>[t(U,{lg:"4",md:"12",cols:"12",class:"align-streach"},{default:l(()=>[t(H,{variant:"outlined",elevation:"0",class:"text-center h-100 d-flex align-center justify-center"},{default:l(()=>[o("div",na,[ia,o("h1",ua,w(x.value)+"/"+w(u(p).value.total),1),o("div",ra,[t(Se,{color:"warning","half-increments":"",modelValue:v.value,"onUpdate:modelValue":k[1]||(k[1]=r=>v.value=r),readonly:"",density:"compact"},null,8,["modelValue"]),o("small",null,"("+w(u(p).value.total)+"+)",1)])])]),_:1})]),_:1}),t(U,{lg:"4",md:"12",class:"align-streach justify-center"},{default:l(()=>[t(H,{variant:"outlined",elevation:"0",class:"text-center justify-center h-100"},{default:l(()=>[o("div",ca,[o("div",da,[ma,t(re,{"model-value":u(p).value.star1Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,w(u(p).value.star1Num),1)]),o("div",pa,[fa,t(re,{"model-value":u(p).value.star2Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,w(u(p).value.star2Num),1)]),o("div",va,[ga,t(re,{"model-value":u(p).value.star3Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,w(u(p).value.star3Num),1)]),o("div",ha,[ka,t(re,{"model-value":u(p).value.star4Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,w(u(p).value.star4Num),1)]),o("div",_a,[Sa,t(re,{"model-value":u(p).value.star5Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,w(u(p).value.star5Num),1)])])]),_:1})]),_:1}),t(U,{lg:"4",md:"12",class:"align-streach"},{default:l(()=>[t(H,{variant:"outlined",elevation:"0",class:"d-flex align-center justify-center h-100"},{default:l(()=>[o("div",xa,[t(q,{variant:"outlined",color:"primary",size:"large","prepend-icon":"mdi-message-outline",onClick:y},{default:l(()=>[T(" Write a review")]),_:1})])]),_:1})]),_:1}),t(U,{lg:"12"},{default:l(()=>[(c(!0),A(P,null,J(u(m),(r,Z)=>(c(),N(H,{variant:"text",class:"py-6",style:{"border-bottom":"1px solid #E3E8EF"},key:Z},{default:l(()=>[t(Q,{class:"d-flex align-center"},{default:l(()=>[t(U,{lg:"3",md:"3"},{default:l(()=>[o("div",Ia,[ya,o("div",Va,[o("h4",ba,[T(w(r.nickname),1),t(at,{color:"success",class:"ml-3",size:"small"},{default:l(()=>[T(" Verified purchase ")]),_:1})]),o("p",wa,w(r.time),1)])])]),_:2},1024),t(U,{lg:"8",md:"8",class:"v-col-lg-2 px-0 py-0"},{default:l(()=>[o("div",Aa,[t(Se,{size:"x-small",modelValue:r.star,"onUpdate:modelValue":G=>r.star=G,readonly:"",density:"compact",color:"warning"},null,8,["modelValue","onUpdate:modelValue"])]),o("p",null,w(r.comment),1),o("div",Ca,[(c(!0),A(P,null,J(r.photos,(G,ue)=>(c(),N(B,{src:G,width:"56px",height:"56px",inline:"",rounded:"md",class:"mt-3",key:G},null,8,["src"]))),128))])]),_:2},1024),r.self?(c(),A("div",Na,[t(ot,{"close-on-content-click":!1,location:"bottom"},{activator:l(({props:G})=>[t(q,te({icon:"",size:"small",variant:"text",ref_for:!0},G),{default:l(()=>[t(f,{size:"15"})]),_:2},1040)]),default:l(()=>[t(st,{rounded:"md",width:"100",elevation:"12"},{default:l(()=>[t(nt,null,{default:l(()=>[t(ee,{link:"",class:"text-medium-emphasis",onClick:G=>M(r)},{default:l(()=>[T(" Edit ")]),_:2},1032,["onClick"]),t(ee,{link:"",class:"text-medium-emphasis",onClick:G=>O(r.id,Z)},{default:l(()=>[T(" Del ")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)])):$("",!0)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),u(b)?(c(),A("div",Ta,[t(q,{variant:"text",color:"primary",onClick:D},{default:l(()=>[T("Load More Comments")]),_:1})])):$("",!0)])),t(it,{isShow:u(e)},null,8,["isShow"]),t(Xl,{ref_key:"refComment",ref:s,blankId:S.blankId,isAdd:u(_),onRefresh:E},null,8,["blankId","isAdd"])],64)}}},$a=Y(Oa,[["__scopeId","data-v-aeca37dd"]]),Da={class:"pa-5"},bo=L({__name:"Tabs",props:{productData:Object,blankId:[Number,String]},setup(a){const d=a,e=I("tab-profile");return(v,S)=>(c(),N(Q,null,{default:l(()=>[t(U,{cols:"12"},{default:l(()=>[t(Me,{modelValue:e.value,"onUpdate:modelValue":S[0]||(S[0]=g=>e.value=g),color:"primary","selected-class":"integrationsactivedTab activedTab"},{default:l(()=>[t(W,{value:"tab-profile"},{default:l(()=>[T(" Description")]),_:1}),t(W,{value:"tab-personal"},{default:l(()=>[T(" Size Guide")]),_:1}),t(W,{value:"tab-shopping"},{default:l(()=>[T(" Shipping")]),_:1}),t(W,{value:"tab-printing"},{default:l(()=>[T("Printing/Design Guides")]),_:1}),t(W,{value:"tab-service"},{default:l(()=>[T("Service")]),_:1}),t(W,{value:"tab-review"},{default:l(()=>[T("Review")]),_:1})]),_:1},8,["modelValue"]),o("div",Da,[t(Le,{modelValue:e.value,"onUpdate:modelValue":S[1]||(S[1]=g=>e.value=g)},{default:l(()=>[t(X,{value:"tab-profile"},{default:l(()=>[t(Ft,{blankDesc:d.productData.blankDescToC},null,8,["blankDesc"]),t(Ge),t(Jt,{keyFeatureList:d.productData.keyFeatureList},null,8,["keyFeatureList"])]),_:1}),t(X,{value:"tab-personal"},{default:l(()=>[t(Xt,{sizeGuideImageUrl:d.productData.blankProductInfo.sizeGuideImageUrl,blankSpecImperial:d.productData.blankSpecImperial,blankSpecMetric:d.productData.blankSpecMetric},null,8,["sizeGuideImageUrl","blankSpecImperial","blankSpecMetric"])]),_:1}),t(X,{value:"tab-shopping"},{default:l(()=>[t(xl,{productData:a.productData,"blank-product-info":d.productData.blankProductInfo,"shipping-datas":d.productData.logisticsMethodInfos,"sku-list":d.productData.skuInfos},null,8,["productData","blank-product-info","shipping-datas","sku-list"])]),_:1}),t(X,{value:"tab-printing"},{default:l(()=>[t($l,{printGuideList:d.productData.printGuideList,"blank-product-info":d.productData.blankProductInfo},null,8,["printGuideList","blank-product-info"])]),_:1}),t(X,{value:"tab-service"},{default:l(()=>[t(Gl,{serviceList:d.productData.serviceList},null,8,["serviceList"])]),_:1}),t(X,{value:"tab-review"},{default:l(()=>[t($a,{blankId:d.blankId},null,8,["blankId"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1}))}}),Ua={class:"d-flex"},Pa={class:"d-flex align-center font-weight-medium"},Ma=["src"],La={class:"text-subtitle-2 text-medium-emphasis font-weight-medium mt-2"},Ea={class:"text-subtitle-6 text-success mt-2 font-weight-medium"},Ga={class:"d-flex align-center"},ja=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Shipping Cost: ",-1),Fa={class:"text-secondary ml-1 font-weight-medium"},wo=L({__name:"DeliveryMethod",props:{minLogisticsPrice:Number,deliveryMethod:String,deliveryTime:String,countryGroupLogoUrl:String},setup(a){return(d,e)=>(c(),N(H,{variant:"outlined",elevation:"0",style:{height:"130px"}},{default:l(()=>[t(me,null,{default:l(()=>[o("div",Ua,[o("p",Pa,[T("Delivery to US "),o("img",{src:a.countryGroupLogoUrl,style:{width:"24px",height:"14px"},class:"ml-2",alt:""},null,8,Ma)])]),o("p",La,w(a.deliveryMethod),1),o("p",Ea,w(a.deliveryTime),1),o("div",Ga,[ja,o("span",Fa,"$"+w(d.$filters.MoneyFormat(a.minLogisticsPrice)),1)])]),_:1})]),_:1}))}}),za=o("div",{class:"d-flex"},[o("p",{class:"font-weight-medium"},"Specification")],-1),Ra={class:"d-flex align-center mt-2"},Ja=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Material:",-1),Ba={class:"text-subtitle-2 ml-1 font-weight-medium"},Ha={class:"d-flex align-center mt-2"},Qa=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Production Process:",-1),qa={class:"text-subtitle-2 ml-1 font-weight-medium"},Ya={class:"d-flex align-center mt-2"},Ka=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Production Time:",-1),Wa={class:"text-subtitle-2 ml-1 font-weight-medium"},Ao=L({__name:"Specification",props:{material:String,weight:String,productionTime:String,productionProcess:String},setup(a){return(d,e)=>(c(),N(H,{variant:"outlined",elevation:"0",style:{height:"130px"}},{default:l(()=>[t(me,null,{default:l(()=>[za,o("div",Ra,[Ja,o("span",Ba,w(a.material),1)]),o("div",Ha,[Qa,o("span",qa,w(a.productionProcess),1)]),o("div",Ya,[Ka,o("span",Wa,w(a.productionTime),1)])]),_:1})]),_:1}))}}),Xa=a=>(pe("data-v-e2576364"),a=a(),fe(),a),Za={class:"d-flex tagdetail"},eo={key:0,class:"tag-box new"},to={key:1,class:"tag-box hot"},lo={key:2,class:"tag-box favorableDiscount"},ao={key:3,class:"tag-box JetPrint"},oo=Xa(()=>o("span",{class:"ml-2"},"Picks from JetPrint",-1)),so=L({__name:"TagsDetail",props:{base:Object},setup(a){const d=a;return(e,v)=>(c(),A("div",Za,[d.base.isNew?(c(),A("div",eo,"New")):$("",!0),d.base.isHot?(c(),A("div",to,"Hot")):$("",!0),d.base.favorableDiscount?(c(),A("div",lo,"-"+w(e.$filters.percentFilter(d.base.favorableDiscount)),1)):$("",!0),d.base.isPickFromJet?(c(),A("div",ao,[t(B,{src:u(dt),width:18,height:18},null,8,["src"]),oo])):$("",!0)]))}}),Co=Y(so,[["__scopeId","data-v-e2576364"]]);export{Io as G,Co as T,xo as _,wo as a,Ao as b,fl as c,bo as d,yo as e,Vo as g};