import{bT as be,z as H,aW as y,bG as _e,H as S,G as $,bm as r,o as m,a as t,w as l,F as U,aZ as E,c as T,b as o,bX as B,c7 as je,U as M,ak as Fe,a$ as re,bW as G,bP as Se,e as q,c6 as ge,d as C,dm as Ge,dl as ze,d7 as Ee,bd as I,bY as ne,cC as we,b9 as Z,dj as ee,dg as te,di as le,dh as Te,f as W,V as L,co as De,cp as Y,cq as Ne,cr as Q,b_ as $e,ap as z,aU as R,aH as Re,bZ as ce,c9 as ae,aw as ie,a_ as me,dq as He,dr as Be,c5 as Je,bM as qe,bC as Ye,c2 as Pe,bV as Ue,ds as ve,dt as Qe,cn as We,aD as Xe,cw as se,cb as Ke,ci as Ze,ch as et,cu as tt,cx as lt}from"./index-CRH9PE5K.js";import{S as he,N as ke,C as xe}from"./carousel-D0IcqnQP.js";import{u as ot}from"./customizer--5xKvQYr.js";import{I as ue}from"./images-C1lCyvEZ.js";import{p as ye}from"./productApi-B4YUv7zo.js";import{m as Ve}from"./index-C4_tEKUl.js";import{T as st,z as at}from"./TagsItem-DwJTlScr.js";import{e as Oe}from"./blankProductTypeEnum-7RSz3x1u.js";import{_ as J}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as Le}from"./close-BcCOVtMl.js";import{e as K}from"./skuOptionTypeEnum-Cvb5ldOX.js";import{_ as nt}from"./temp-BaydrPou.js";import{c as Me}from"./comment-BXMXyQOf.js";import{o as it,a as Ae}from"./fileApi-1bvoXODp.js";import{o as ut,a as rt}from"./eventBus-CBDf2N_n.js";const dt={key:0},ct={class:"carousel__item"},mt=["onClick"],Oo={__name:"ProductCarousel",props:{showImageList:Object},setup(n){be(),H(()=>"@/assets/images/e-commerce/prod-1.jpg");const d=n,e=ot();let k=y(!0);console.log("useCustomizer...",e.mini_sidebar),_e(()=>e.mini_sidebar,_=>{k.value=!1,setTimeout(()=>{k.value=!0},0)});const g=y({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"}}),i=y({itemsToShow:1,snapAlign:"center"}),u=y(0);function f(_){console.log("val....",_),u.value=_}return(_,b)=>r(k)?(m(),S("div",dt,[t(r(xe),{id:"gallery","items-to-show":1,"wrap-around":!1,modelValue:u.value,"onUpdate:modelValue":b[0]||(b[0]=V=>u.value=V)},{addons:l(()=>[t(r(ke))]),default:l(()=>[(m(!0),S(U,null,E(d.showImageList,(V,A)=>(m(),T(r(he),{key:A},{default:l(()=>[o("div",ct,[(m(),T(B,{alt:"product","lazy-src":r(je),src:V,key:V,class:"w-100 rounded-md"},null,8,["lazy-src","src"]))])]),_:2},1024))),128))]),_:1},8,["modelValue"]),t(r(xe),{id:"gallery2",class:"relatedCar",breakpoints:g.value,settings:i.value,modelValue:u.value,"onUpdate:modelValue":b[1]||(b[1]=V=>u.value=V)},{addons:l(()=>[t(r(ke))]),default:l(()=>[(m(!0),S(U,null,E(d.showImageList,(V,A)=>(m(),T(r(he),{key:A},{default:l(()=>[o("div",{class:"carousel__item text-left",onClick:P=>f(A)},[t(ue,{url:V,classes:"slide-img",rounded:"",isChangeSize:!1,width:100,height:100},null,8,["url"])],8,mt)]),_:2},1024))),128))]),_:1},8,["breakpoints","settings","modelValue"])])):$("",!0)}},pt={key:2,class:"image-container"},ft={key:3,class:"product"},gt={key:0,class:"d-flex align-center ga-2"},vt={class:"text-secondary text-h4"},ht={class:"text-decoration-line-through text-medium-emphasis ml-2 text-subtitle-2"},kt={key:1,class:"d-flex align-center ga-2"},xt={class:"text-secondary text-h4"},yt={class:"text-medium-emphasis mt-2"},bt={class:"mt-2"},_t={key:0},It={key:1},St={key:2},wt=M({__name:"ProductItem",props:{item:Object},setup(n){const d=be(),e=n;y(!1),y(e.item.rating),Fe("getProductDetail");function k(){e.item.type==Oe.DIY.value?(we.push({path:"/products/diyDetail",query:Ve(d.query,{id:e.item.id})}),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},1500)):(console.log("route.query...",d.query),we.push({path:"/products/detail",query:Ve(d.query,{id:e.item.id})}),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},1500))}y(!1);let g=y(!1);function i(f){g.value=!0,ye().blankProductFavorite(f).then(b=>{g.value=!1,e.item.isFavorite=!0})}function u(f){g.value=!0,ye().blankProductUnFavorite(f).then(b=>{g.value=!1,e.item.isFavorite=!1})}return(f,_)=>{const b=re("HeartFilledIcon");return m(),T(G,{variant:"flat",class:"rounded white overflow-hidden product-carousel position-relative product-card",onClick:k},{default:l(()=>[t(st,{base:e.item},null,8,["base"]),e.item.isFavorite?(m(),S("div",{key:0,class:"collect",onClick:_[0]||(_[0]=Se(V=>u(e.item.id),["stop"]))},[t(q,{size:"small",icon:"",class:"ml-auto"},{default:l(()=>[t(ge,{activator:"parent",location:"top"},{default:l(()=>_[2]||(_[2]=[C("Remove from My Favourite")])),_:1}),t(b,{color:"#EC407A"})]),_:1})])):(m(),S("div",{key:1,class:"collect",onClick:_[1]||(_[1]=Se(V=>i(e.item.id),["stop"]))},[t(q,{size:"small",icon:"",class:"ml-auto"},{default:l(()=>[t(ge,{activator:"parent",location:"top"},{default:l(()=>_[3]||(_[3]=[C("Add to My Favourite")])),_:1}),t(r(Ge),{color:"#828282"})]),_:1})])),e.item.suspendImageUrl?(m(),S("div",pt,[t(ue,{url:e.item.mainShowImageUrl,class:"w-100 product-img position-relative d-block",style:{"z-index":"1"}},null,8,["url"]),e.item.suspendImageUrl?(m(),T(ue,{key:0,url:e.item.suspendImageUrl,class:"w-100 product-img d-block"},null,8,["url"])):$("",!0)])):(m(),S("div",ft,[t(ue,{alt:"product",url:e.item.mainShowImageUrl,style:{"border-top-left-radius":"12px","border-top-right-radius":"12px"},classes:"w-100 d-block"},null,8,["url"])])),t(ze,null,{default:l(()=>[t(Ee,{class:"text-h4"},{default:l(()=>[C(I(e.item.model),1)]),_:1})]),_:1}),t(ne,null,{default:l(()=>[e.item.favorablePrice?(m(),S("p",gt,[o("span",vt,"$"+I(e.item.favorablePrice),1),o("span",ht,"$"+I(f.$filters.MoneyFormat(e.item.price)),1)])):(m(),S("p",kt,[o("span",xt,"$"+I(f.$filters.MoneyFormat(e.item.price)),1)])),o("p",yt,"Avg.production time "+I(e.item.productionTimeMin)+" "+I(e.item.productionTimeUnit==1?"day":"week"),1),o("p",bt,[e.item.skuOption1Num>0?(m(),S("span",_t,I(e.item.skuOption1Num)+" "+I(e.item.skuOption1),1)):$("",!0),e.item.skuOption2Num>0?(m(),S("span",It," · "+I(e.item.skuOption2Num)+" "+I(e.item.skuOption2),1)):$("",!0),e.item.skuOption3Num>0?(m(),S("span",St," · "+I(e.item.skuOption3Num)+" "+I(e.item.skuOption3),1)):$("",!0)])]),_:1})]),_:1})}}}),Vt=J(wt,[["__scopeId","data-v-1c4ca75e"]]),At={class:"carousel__item text-left"},Lo=M({__name:"AlsoLike",props:{recommendProductList:Array},setup(n){const d=n,e=y({itemsToShow:1,snapAlign:"center"}),k=y({700:{itemsToShow:3,snapAlign:"center"},1024:{itemsToShow:4,snapAlign:"center"},1450:{itemsToShow:4,snapAlign:"start"}});function g(i){store.AddToCart(i)}return(i,u)=>(m(),S(U,null,[u[0]||(u[0]=o("h2",{class:"text-h2 mt-8"},"You may also like",-1)),t(r(xe),{id:"gallery",class:"relatedCar",breakpoints:k.value,settings:e.value},{addons:l(()=>[t(r(ke))]),default:l(()=>[(m(!0),S(U,null,E(d.recommendProductList,(f,_)=>(m(),T(r(he),{key:_},{default:l(()=>[o("div",At,[t(Vt,{item:f,onHandlecart:b=>g(f)},null,8,["item","onHandlecart"])])]),_:2},1024))),128))]),_:1},8,["breakpoints","settings"])],64))}}),Ct=["innerHTML"],Tt=M({__name:"TabDescription",props:{blankDesc:String},setup(n){const d=Z([0,1,2,3,4]);return(e,k)=>(m(),T(ee,{modelValue:d.value,"onUpdate:modelValue":k[0]||(k[0]=g=>d.value=g),multiple:""},{default:l(()=>[t(te,{elevation:"0"},{default:l(()=>[t(le,null,{default:l(()=>[o("div",{class:"descriptionView",innerHTML:n.blankDesc},null,8,Ct)]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Dt={class:"text-h4 font-weight-medium mt-5"},Nt={class:"text-subtitle-2 text-medium-emphasis mt-3"},$t=M({__name:"TabKeyfeature",props:{keyFeatureList:Array},setup(n){const d=Z([0,1,2,3,4]),e=n;return(k,g)=>(m(),T(ee,{modelValue:d.value,"onUpdate:modelValue":g[0]||(g[0]=i=>d.value=i),multiple:""},{default:l(()=>[t(te,{elevation:"0"},{default:l(()=>[t(Te,{class:"font-weight-medium custom-accordion"},{default:l(()=>g[1]||(g[1]=[C("Key Features ")])),_:1}),t(le,null,{default:l(()=>[t(W,null,{default:l(()=>[t(L,{lg:"6",cols:"12"},{default:l(()=>[t(W,{class:"mt-4"},{default:l(()=>[(m(!0),S(U,null,E(e.keyFeatureList,(i,u)=>(m(),T(L,{lg:"6",cols:"12",key:u},{default:l(()=>[t(B,{src:i.logoUrl,width:40,height:40},null,8,["src"]),o("p",Dt,I(i.title),1),o("p",Nt,I(i.content),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Pt=["src"],Ut={class:"pt-6 sizeguide"},Ot=["innerHTML"],Lt=["innerHTML"],Mt=M({__name:"TabSizeGuide",props:{sizeGuideImageUrl:String,blankSpecImperial:String,blankSpecMetric:String},setup(n){const d=Z([0,1,2,3,4]),e=y("tab-profile");y(!1);const k=n;return(g,i)=>(m(),T(ee,{modelValue:d.value,"onUpdate:modelValue":i[2]||(i[2]=u=>d.value=u),multiple:""},{default:l(()=>[t(te,{elevation:"0"},{default:l(()=>[t(le,null,{default:l(()=>[t(W,null,{default:l(()=>[k.sizeGuideImageUrl?(m(),T(L,{key:0,lg:"4",sm:"8",cols:"12",class:"position-relative loginPageImage"},{default:l(()=>[o("img",{src:k.sizeGuideImageUrl,alt:"",class:"mt-4"},null,8,Pt)]),_:1})):$("",!0),t(L,{lg:"8",sm:"16"},{default:l(()=>[t(De,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=u=>e.value=u),color:"primary"},{default:l(()=>[t(Y,{variant:"plain",value:"Imperial"},{default:l(()=>i[3]||(i[3]=[C(" Imperial")])),_:1}),t(Y,{variant:"plain",value:"Metric"},{default:l(()=>i[4]||(i[4]=[C(" Metric")])),_:1})]),_:1},8,["modelValue"]),o("div",Ut,[t(Ne,{modelValue:e.value,"onUpdate:modelValue":i[1]||(i[1]=u=>e.value=u)},{default:l(()=>[t(Q,{value:"Imperial"},{default:l(()=>[o("div",{style:{"max-width":"1200px","overflow-x":"scroll"},innerHTML:k.blankSpecImperial},null,8,Ot),i[5]||(i[5]=o("p",{class:"mt-2"},[o("span",{class:"text-secondary"},"*"),C("Might got 1-2mm Difference")],-1))]),_:1}),t(Q,{value:"Metric"},{default:l(()=>[o("div",{innerHTML:k.blankSpecMetric},null,8,Lt),i[6]||(i[6]=o("p",{class:"mt-2"},[o("span",{class:"text-secondary"},"*"),C("Might got 1-2mm Difference")],-1))]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),jt=J(Mt,[["__scopeId","data-v-7c5a64af"]]),Ft="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",Gt=["src"],zt={class:"product-fangda"},Et=["onClick"],Rt={class:"d-flex align-center text-h3",style:{color:"#1F1F1F","font-weight":"500"}},Ht=M({__name:"TabShippingPackaging",props:{packageImageList:Array},setup(n){const d=n;y("/src/assets/images/e-commerce/51a9973b097034079ac4ff57d57a113.jpg"),y({itemsToShow:1,snapAlign:"center"}),y({700:{itemsToShow:3,snapAlign:"center"},1024:{itemsToShow:4,snapAlign:"center"},1450:{itemsToShow:5,snapAlign:"start"}}),y({700:{itemsToShow:1,snapAlign:"center"},1024:{itemsToShow:1,snapAlign:"center"},1450:{itemsToShow:1,snapAlign:"start"}});let e=y(!1),k=y(0);function g(i){e.value=!0,k.value=i}return(i,u)=>(m(),S(U,null,[u[4]||(u[4]=o("p",{class:"text-subtitle-4 mt-6"},"Packaging",-1)),t(W,{class:"mt-4"},{default:l(()=>[(m(!0),S(U,null,E(d.packageImageList,(f,_)=>(m(),T(L,{lg:"2",sm:"12",cols:"12",class:"position-relative pack",key:_},{default:l(()=>[o("img",{alt:"product",src:f,class:"product-img",style:{border:"1px solid #e3e8ef"}},null,8,Gt),o("div",zt,[t(ge,{activator:"parent",location:"top"},{default:l(()=>u[2]||(u[2]=[C("Zoom in")])),_:1}),o("img",{alt:"product",class:"packimg",src:Ft,onClick:b=>g(_)},null,8,Et)])]),_:2},1024))),128))]),_:1}),t($e,{modelValue:r(e),"onUpdate:modelValue":u[1]||(u[1]=f=>z(e)?e.value=f:e=f),"max-width":860},{default:l(()=>[t(G,null,{default:l(()=>[t(ne,null,{default:l(()=>[o("div",Rt,[u[3]||(u[3]=C("Packaging ")),o("img",{src:Le,width:32,height:32,class:"close",onClick:u[0]||(u[0]=f=>z(e)?e.value=!1:e=!1)})]),t(B,{alt:"product",src:d.packageImageList[r(k)],"max-height":"625",class:"mt-5"},null,8,["src"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),Bt=J(Ht,[["__scopeId","data-v-95c410c0"]]),Jt=["src"],qt=["src"],Yt=M({__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(n,{emit:d}){const e=n;let k=y(""),g=y(""),i=y("");_e(()=>e.validSkuIds,h=>{if(e.selectValue&&(console.log("validSkuIds change",e.validSkuIds),e.validSkuIds&&e.validSkuIds.length>0)){let w=!1;for(const s of e.validSkuIds)if(e.selectSkuIds.indexOf(s)>=0){w=!0;break}w||e.handleSelectChange(null)}}),console.log("pro...",e.skuInfos);const u=d;let f=R({img:"",text:""}),_=R({img:"",text:""}),b=R({img:"",text:""});function V(h,w,s,x){console.log("selectColor...",h),console.log("selectColor...",w),console.log("selectColor...",w),x=="color"&&(_.img=w.fileUrl,_.text=w.text),x=="image"&&(b.img=w.fileUrl,b.text=w.text),x=="general"&&(f.img=w.fileUrl,f.text=w.text),A.value=w.skuIds;let N=w.text;if(!N)s==1&&(u("onSelectValue",{optionType:s,data:null}),u("onSelectSkuIds",{optionType:s,data:[]})),s==2&&(u("onSelectValue",{optionType:s,data:null}),u("onSelectSkuIds",{optionType:s,data:[]})),s==3&&(u("onSelectValue",{optionType:s,data:null}),u("onSelectSkuIds",{optionType:s,data:[]}));else{s==1&&u("onSelectValue",{optionType:s,data:N}),s==2&&u("onSelectValue",{optionType:s,data:N}),s==3&&u("onSelectValue",{optionType:s,data:N});for(const O of e.optionValues)if(O.text===N){console.log("onSelectSkuIds....",O.skuIds),O.skuIds,s==1&&u("onSelectSkuIds",{optionType:s,data:O.skuIds}),s==2&&u("onSelectSkuIds",{optionType:s,data:O.skuIds}),s==3&&u("onSelectSkuIds",{optionType:s,data:O.skuIds});break}}}let A=R([]);function P(h,w){if(console.log("optionSkuIds",h),console.log("validSkuIds",w),!w||w.length===0)return!1;for(const s of w)if(h.indexOf(s)>=0)return!1;return!0}return Re(()=>{if(e.optionType==K.COLOR.value){for(let h=0;h<e.optionValues.length;h++)if(!P(e.optionValues[h].skuIds,e.validSkuIds)){V(h,e.optionValues[h],e.optionType,"color"),i.value=e.optionValues[h].text;break}}if(e.optionType==K.GENERAL.value){for(let h=0;h<e.optionValues.length;h++)if(!P(e.optionValues[h].skuIds,e.validSkuIds)){V(h,e.optionValues[h],e.optionType,"general"),g.value=e.optionValues[h].text;break}}if(e.optionType==K.IMAGE.value){for(let h=0;h<e.optionValues.length;h++)if(!P(e.optionValues[h].skuIds,e.validSkuIds)){V(h,e.optionValues[h],e.optionType,"general"),k.value=e.optionValues[h].text,b.img=e.optionValues[h].fileUrl,b.text=e.optionValues[h].text;break}}}),(h,w)=>(m(),S(U,null,[n.optionType==r(K).COLOR.value?(m(),T(ce,{key:0,modelValue:r(i),"onUpdate:modelValue":w[0]||(w[0]=s=>z(i)?i.value=s:i=s),items:n.optionValues,color:"primary",label:n.optionName,variant:"outlined","item-title":"text","item-value":"text","hide-details":""},{item:l(({props:s,item:x})=>[t(ae,ie(s,{link:"",color:"primary",class:"d-flex align-center",disabled:P(x.raw.skuIds,n.validSkuIds),onClick:N=>V(h.index,x.raw,n.optionType,"color")}),null,16,["disabled","onClick"])]),_:1},8,["modelValue","items","label"])):$("",!0),n.optionType==r(K).GENERAL.value?(m(),T(ce,{key:1,style:{width:"100%"},modelValue:r(g),"onUpdate:modelValue":w[1]||(w[1]=s=>z(g)?g.value=s:g=s),items:n.optionValues,color:"primary",label:n.optionName,variant:"outlined","item-title":"text","item-value":"text","hide-details":""},{item:l(({props:s,item:x})=>[t(ae,ie(s,{link:"",color:"primary",class:"d-flex align-center",disabled:P(x.raw.skuIds,n.validSkuIds),onClick:N=>V(h.index,x.raw,n.optionType,"general")}),null,16,["disabled","onClick"])]),_:1},8,["modelValue","items","label"])):$("",!0),n.optionType==r(K).IMAGE.value?(m(),T(ce,{key:2,modelValue:r(k),"onUpdate:modelValue":w[2]||(w[2]=s=>z(k)?k.value=s:k=s),items:n.optionValues,color:"primary",label:n.optionName,variant:"outlined","item-title":"text","item-value":"text","hide-details":""},{"prepend-inner":l(()=>[r(b).img?(m(),S("img",{key:0,src:r(b).img,width:"30px",height:"30px"},null,8,Jt)):$("",!0)]),item:l(({props:s,item:x})=>[t(ae,ie(s,{link:"",color:"primary ",class:"d-flex align-center",disabled:P(x.raw.skuIds,n.validSkuIds),onClick:N=>V(h.index,x.raw,n.optionType,"image")}),{prepend:l(()=>[o("img",{src:x.raw.fileUrl,width:"30px",height:"30px",style:{"margin-right":"10px"}},null,8,qt)]),_:2},1040,["disabled","onClick"])]),_:1},8,["modelValue","items","label"])):$("",!0)],64))}}),pe=J(Yt,[["__scopeId","data-v-940f14f2"]]),Qt=M({__name:"GoodsSku",props:{skuInfos:Array,option1Name:String,option1Type:Number,option2Name:String,option2Type:Number,option3Name:String,option3Type:Number},emits:["getChildren","skuChange"],setup(n,{emit:d}){const e=d;let k=y(null),g=y(null),i=y(null),u=y([]),f=y([]),_=y([]);const b=n;function V(p,a){for(const c of p)if(c.text===a)return c;return null}const A=H(()=>{if(!b.skuInfos)return[];var p=[];for(const v of b.skuInfos)if(v.option1){var a="";if(typeof v.option1=="string"?a=JSON.parse(v.option1):a=v.option1,!a.text)continue;var c=V(p,a.text);c?c.skuIds.push(v.id):(c=Object.assign({},a),c.skuIds=[],c.skuIds.push(v.id),p.push(c))}return p}),P=H(()=>{if(!b.skuInfos)return[];var p=[];for(const c of b.skuInfos)if(c.option2){let v="";if(typeof c.option2=="string"?v=JSON.parse(c.option2):v=c.option2,!v.text)continue;var a=V(p,v.text);a?a.skuIds.push(c.id):(a=Object.assign({},v),a.skuIds=[],a.skuIds.push(c.id),p.push(a))}return p}),h=H(()=>{if(!b.skuInfos)return[];var p=[];for(const c of b.skuInfos)if(c.option3){let v="";if(typeof c.option3=="string"?v=JSON.parse(c.option3):v=c.option3,!v.text)continue;var a=V(p,v.text);a?a.skuIds.push(c.id):(a=Object.assign({},v),a.skuIds=[],a.skuIds.push(c.id),p.push(a))}return p});function w(p){console.log("监听orSelect1Value...",p),k.value=p.data}function s(p){console.log("监听orSelect1SkuIds...",p),u.value=p.data}function x(p){g.value=p.data}function N(p){f.value=p.data}function O(p){i.value=p.data}function D(p){_.value=p.data}const F=H(()=>{if(console.log("selectOption1Value.value...",k.value),console.log("selectOption2Value.value...",g.value),console.log("selectOption3Value.value...",i.value),!b.skuInfos)return null;for(const c of b.skuInfos){if(c.option1){var p="";if(typeof c.option1=="string"?p=JSON.parse(c.option1):p=c.option1,p.text&&p.text!==k.value){console.log("监听...",p.text,"===",k.value);continue}}if(c.option2){var a="";if(typeof c.option2=="string"?a=JSON.parse(c.option2):a=c.option2,a.text&&a.text!==g.value){console.log("监听...",a.text,"===",g.value);continue}}if(c.option3){let v="";if(typeof c.option3=="string"?v=JSON.parse(c.option3):v=c.option3,v.text&&v.text!==i.value){console.log("监听...",v.text,"===",i.value);continue}}return console.log("监听aaa...",c.id),c.id}return null});return _e(F,p=>{console.log("watch...",p),e("skuChange",p)}),(p,a)=>(m(),S(U,null,[b.option1Type&&n.option1Name&&A.value?(m(),T(L,{key:0,cols:"12",md:"2"},{default:l(()=>[t(pe,{optionValues:A.value,"option-name":n.option1Name,"option-type":b.option1Type,"select-value":r(k),selectSkuIds:r(u),"valid-sku-ids":r(f).concat(r(_)),onOnSelectValue:w,onOnSelectSkuIds:s},{optionName:l(()=>[me(p.$slots,"optionName",{optionName:n.option1Name,optionType:n.option1Type,index:1},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])]),_:3})):$("",!0),b.option2Type&&n.option2Name&&P.value?(m(),T(L,{key:1,cols:"12",md:"2"},{default:l(()=>[t(pe,{optionValues:P.value,"option-name":n.option2Name,"option-type":b.option2Type,onOnSelectValue:x,onOnSelectSkuIds:N,"select-value":r(g),selectSkuIds:r(f),"valid-sku-ids":r(u).concat(r(_))},{optionName:l(()=>[me(p.$slots,"optionName",{optionName:n.option2Name,optionType:n.option2Type,index:2},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])]),_:3})):$("",!0),b.option3Type&&n.option3Name&&h.value?(m(),T(L,{key:2,cols:"12",md:"2"},{default:l(()=>[t(pe,{optionValues:h.value,"option-name":n.option3Name,"option-type":b.option3Type,onOnSelectValue:O,onOnSelectSkuIds:D,"select-value":r(i),selectSkuIds:r(_),"valid-sku-ids":r(u).concat(r(f))},{optionName:l(()=>[me(p.$slots,"optionName",{optionName:n.option3Name,optionType:n.option3Type,index:3},void 0,!0)]),_:3},8,["optionValues","option-name","option-type","select-value","selectSkuIds","valid-sku-ids"])]),_:3})):$("",!0)],64))}}),Wt=J(Qt,[["__scopeId","data-v-0131a4a4"]]),fe={COMBINATION:{value:1},MAGNIFICATION:{value:2},MAGNIFICATION2:{value:3}};function Mo(n){for(const d of n.items)for(const e of d.countryItems)if(e.countryCode.toLowerCase()==="US".toLowerCase())return d;return n.items[0]}function Xt(n,d){for(const e of n.items)if(e.countryGroupId===d)return e;return null}function Kt(n=0,d,e){if(e.type===fe.COMBINATION.value){const i=Ce(n,d);if(!i)return null;var k=i.pricePerKilo*n,g=i.registrationFee;return k+g}else if(e.type===fe.MAGNIFICATION.value){const u=Math.ceil(n/d.minUnitWeight)*d.minUnitWeight,f=Ce(u,d);return f?u*f.magnification*d.minUnitWeightPrice:null}else if(e.type===fe.MAGNIFICATION2.value){const u=Math.ceil(n/.5)-1;return d.firstHalfKgPrice+u*d.moreHalfKgPrice}else return console.error("not support logistics method type"),null}function Ce(n,d){for(const e of d.priceItems)if(e.weightMin<=n&&e.weightMax>n)return e;return null}const Zt={class:"tabshipTable mt-6 w-100"},el={class:"text-subtitle-1 font-weight-regular"},tl={class:"text-subtitle-1 font-weight-regular"},ll={class:"text-subtitle-1 font-weight-regular"},ol=M({__name:"TabShipping",props:{productData:Object,blankProductInfo:Object,shippingDatas:Object,skuList:Array},setup(n){const d=Z([0,1,2,3,4]);y(["[email protected]"]);const e=n;let k=y("United States");const g=y([]);ye().countryGroupsApi().then(s=>{console.log("countryGroups...",s),g.value=s.data.records});function u(s,x="0.00"){return typeof s>"u"||s===null?"-":s?parseFloat(s).toFixed(2):x}const f=H(()=>{var s=[];for(const p of e.shippingDatas)s.push({title:p.name,deliveryTime:"",price:""});if(console.log("res...",s),!e.shippingDatas||e.shippingDatas.length===0)return[];var x=V.value;x&&(x=x/1e3);let N=[];console.log("countryGroups.value...",g.value),console.log("shippingToValue.value...",k.value);for(const p of g.value)if(k.value&&k.value===p.name){var O={};if(O.shippingTo=p.name,x)for(const a of e.shippingDatas){console.log("countryGroup.id...",p.id);var D=Xt(a,p.id);if(console.log("logisticsMethodConfig...",D),D){var F=Kt(x,D,a);F&&(console.log("price...",F),console.log("shippingData...",a,"countryGroup...",p),N.push({deliveryTime:D.deliveryTime,price:u(F)}))}}}return s.forEach((p,a)=>{N.forEach((c,v)=>{a==v&&(p.deliveryTime=c.deliveryTime,p.price=c.price)})}),s}),_=H(()=>{if(!e.shippingDatas||e.shippingDatas.length===0)return[];var s=[];for(const N of g.value){var x={};x.shippingTo=N.name,N.name=="United States"&&(k.value="United States"),s.push(x)}return s}),b=H(()=>{if(!A.value||!e.skuList||!e.skuList.length)return null;for(const s of e.skuList)if(s.id===A.value)return s;return null}),V=H(()=>{var s=b.value;return!s||!h.value?null:s.weight*h.value});let A=y("");function P(s){console.log("getSkuId....",s),A.value=s}let h=y(1);function w(s){s==="add"?h.value++:h.value>1&&h.value--}return(s,x)=>{const N=re("MinusIcon"),O=re("PlusIcon");return m(),T(ee,{modelValue:d.value,"onUpdate:modelValue":x[4]||(x[4]=D=>d.value=D),multiple:""},{default:l(()=>[t(te,{elevation:"0"},{default:l(()=>[t(le,null,{default:l(()=>[t(W,{class:"d-flex align-center mt-2"},{default:l(()=>[t(L,{cols:"12",md:"2"},{default:l(()=>[t(He,{modelValue:r(k),"onUpdate:modelValue":x[0]||(x[0]=D=>z(k)?k.value=D:k=D),items:_.value,color:"primary",label:"Shipping to",variant:"outlined","item-title":"shippingTo","item-value":"shippingTo","hide-details":""},null,8,["modelValue","items"])]),_:1}),t(Wt,{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:P},null,8,["skuInfos","option1-name","option1-type","option2-name","option2-type","option3-name","option3-type"]),t(Be,{class:"font-weight-medium mb-2 ml-3"},{default:l(()=>x[5]||(x[5]=[C("Quantity")])),_:1}),t(Je,{variant:"outlined",size:"small",divided:"",color:"primary",class:"ml-4"},{default:l(()=>[o("div",{class:"btn add",onClick:x[1]||(x[1]=D=>w("del"))},[t(N,{size:"18"})]),qe(o("input",{type:"text",class:"btn-input","onUpdate:modelValue":x[2]||(x[2]=D=>z(h)?h.value=D:h=D)},null,512),[[Ye,r(h)]]),o("div",{class:"btn del",onClick:x[3]||(x[3]=D=>w("add"))},[t(O,{size:"18"})])]),_:1})]),_:1}),x[7]||(x[7]=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)),o("table",Zt,[x[6]||(x[6]=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)),o("tbody",null,[(m(!0),S(U,null,E(f.value,D=>(m(),S("tr",{class:"text-grey-lighten-3",key:D.name},[o("td",el,I(D.title),1),o("td",tl,I(D.deliveryTime||"/"),1),o("td",ll,"$"+I(D.price||"0"),1)]))),128))])]),e.productData.packageImageList.length>0?(m(),T(Bt,{key:0,packageImageList:e.productData.packageImageList},null,8,["packageImageList"])):$("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),sl={class:"d-flex align-start ga-4 w-100"},al={class:"art text-subtitle-4 font-weight-medium"},nl={class:"flex-grow-1"},il={class:"text-h5"},ul={style:{"max-width":"800px"}},rl=M({__name:"TabsPrinting",props:{printGuideList:Array,blankProductInfo:Object},setup(n){const d=Z([0,1,2,3,4]),e=Z([0,1,2,3,4]),k=n;return(g,i)=>(m(),S("div",null,[t(ee,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=u=>d.value=u),multiple:""},{default:l(()=>[t(te,{elevation:"0"},{default:l(()=>[t(le,null,{default:l(()=>[r(Oe).DIY.value!=n.blankProductInfo.type?(m(),T(q,{key:0,variant:"outlined",color:"#203461",size:"large",href:k.blankProductInfo.designTemplateUrl},{default:l(()=>i[2]||(i[2]=[o("img",{src:nt,width:"20px",height:"20px"},null,-1),o("span",{class:"ml-2 text-h4 font-weight-medium"},"Download Design Template",-1)])),_:1},8,["href"])):$("",!0),(m(!0),S(U,null,E(n.printGuideList,(u,f)=>(m(),T(G,{variant:"outlined",border:"none",class:"d-flex align-center my-7",key:f},{default:l(()=>[o("div",sl,[o("span",al,I((f+1).toString().padStart(2,"0")),1),o("div",nl,[o("h4",il,I(u.title),1),o("p",ul,I(u.content),1)])])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(Pe,{class:"mt-4"}),t(ee,{modelValue:e.value,"onUpdate:modelValue":i[1]||(i[1]=u=>e.value=u),multiple:""},{default:l(()=>[t(te,{elevation:"1"},{default:l(()=>[t(Te,{class:"font-weight-medium custom-accordion"},{default:l(()=>i[3]||(i[3]=[C("Disclaimer")])),_:1}),t(le,null,{default:l(()=>i[4]||(i[4]=[o("div",{style:{"max-width":"800px"}}," Due to the craftmanship and material characteristics of the DIY custom products, the actual product you receive may be slightly different from the display effect, which is also the unique charm of customization. We'to present your design perfectly. ",-1)])),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),dl=J(rl,[["__scopeId","data-v-cd79097f"]]),cl={class:"d-flex align-start ga-4 w-100"},ml=["src"],pl={class:"flex-grow-1"},fl={class:"text-h4 font-weight-medium"},gl={class:"text-medium-emphasis",style:{"max-width":"800px"}},vl=M({__name:"TabService",props:{serviceList:Array},setup(n){return(d,e)=>(m(),S("div",null,[(m(!0),S(U,null,E(n.serviceList,(k,g)=>(m(),T(G,{variant:"outlined",border:"none",class:"d-flex align-center my-7",key:g},{default:l(()=>[o("div",cl,[o("img",{src:k.logoUrl,width:"40px",height:"40px"},null,8,ml),o("div",pl,[o("h2",fl,I(k.title),1),o("p",gl,I(k.content),1)])])]),_:2},1024))),128))]))}}),hl=J(vl,[["__scopeId","data-v-ddc0da5c"]]),kl="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",xl="/assets/moRenTouXiang-Cb1xjtqm.svg",yl="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==",bl="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",_l={class:"d-flex align-center"},Il={class:"text-h4 mt-6"},Sl={class:"d-flex flex-wrap"},wl=["onClick"],Vl={class:"btns"},Al={__name:"AddCommentDialog",props:{blankId:String,commentItem:Object,isAdd:Boolean},emits:["refresh"],setup(n,{expose:d,emit:e}){const k=n,g=e;let i=y(!1),u=y(""),f=y(""),_=y(0),b=y(!1),V=y(!1),A=R({color:"success",msg:"Success"});const P=y(null);let h=y([]),w=y(!1);const s=()=>{i.value=!1,f.value="",_.value=0,h.value=[],V.value=!1},x=()=>{i.value=!0};function N(a){i.value=!0,u.value=a.id,f.value=a.comment,_.value=a.star,h.value=We(a.photos)}function O(){if(_.value===0){A.color="error",A.msg="Please select a rating",b.value=!0;return}V.value=!0;const a=Me();if(k.isAdd)a.addComment(k.blankId,f.value,_.value,h.value).then(c=>{A.color="success",A.msg="Success",b.value=!0,f.value="",_.value=0,h.value=[],V.value=!1,s(),g("refresh")}).catch(c=>{V.value=!1});else{const c={comment:f.value,commentId:u.value,photos:h.value,star:_.value,contentType:"application/json;charset=UTF-8"};a.commentModify(c).then(v=>{A.color="success",A.msg="Success",b.value=!0,f.value="",_.value=0,V.value=!1,s(),g("refresh")}).catch(v=>{A.color="error",A.msg=v.msg,b.value=!0,V.value=!1})}}function D(){P.value.click()}async function F(a){w.value=!0,Object.keys(a.target.files).forEach(async c=>{let v=a.target.files[c];console.log("file...",v);const X=it();var j=await Ae.oss(X.fileSts),oe=Ae.getRandomObjectName(j.ossObjectNamePrefix,j.domain,v.name);try{console.log("ossObject...",oe),console.log("oss...",j),await j.client.multipartUpload(oe.objectName,v,{headers:{"Cache-Control":"max-age=360000"}}),console.log("upload image success",oe.objectUrl);var de=[];for(const Ie of h.value)de.push(Ie);de.push(oe.objectUrl),h.value=de,w.value=!1}catch{w.value=!1}})}function p(a){console.log("imageUrls.value...",h.value),console.log("index...",a),h.value.splice(a,1)}return d({handleClose:s,handleOpen:x,editOpen:N}),(a,c)=>(m(),S(U,null,[o("input",{type:"file",multiple:"",ref_key:"fileInput",ref:P,style:{display:"none"},onChange:F},null,544),t(Ue,{modelValue:r(b),"onUpdate:modelValue":c[0]||(c[0]=v=>z(b)?b.value=v:b=v),color:r(A).color,timeout:3e3,variant:"flat",rounded:"md",location:"top"},{default:l(()=>[C(I(r(A).msg),1)]),_:1},8,["modelValue","color"]),t($e,{modelValue:r(i),"onUpdate:modelValue":c[3]||(c[3]=v=>z(i)?i.value=v:i=v),"max-width":530},{default:l(()=>[t(G,{loading:r(w)},{default:l(()=>[t(ne,null,{default:l(()=>[o("h3",_l,[c[4]||(c[4]=C("Write a review ")),t(B,{src:r(Le),width:32,height:32,class:"close",onClick:s},null,8,["src"])]),c[8]||(c[8]=o("div",{class:"text-h4 mt-6"},"Rating",-1)),t(ve,{modelValue:r(_),"onUpdate:modelValue":c[1]||(c[1]=v=>z(_)?_.value=v:_=v),color:"warning",hover:""},null,8,["modelValue"]),c[9]||(c[9]=o("div",{class:"text-h4 mt-4"},"Leave your order experience?",-1)),t(Qe,{class:"mt-4",filled:"","auto-grow":"",label:"Write a review",variant:"outlined",rows:"4",color:"primary",modelValue:r(f),"onUpdate:modelValue":c[2]||(c[2]=v=>z(f)?f.value=v:f=v)},null,8,["modelValue"]),o("div",Il,"Add Images ("+I(r(h).length)+"/6)",1),o("p",{class:"d-flex align-center mt-5 cursor-pointer",onClick:D},[t(B,{src:r(yl),width:"24px",height:"24px",inline:""},null,8,["src"]),c[5]||(c[5]=o("span",{class:"ml-3",style:{color:"#121926","font-size":"14px"}},"Add Images",-1))]),o("div",Sl,[(m(!0),S(U,null,E(r(h),(v,X)=>(m(),S("div",{class:"lis position-relative mr-5 mt-4",key:X},[o("div",{class:"closeicon cursor-pointer",onClick:j=>p(X)},[t(B,{src:r(bl),width:"10px",height:"10px"},null,8,["src"])],8,wl),t(B,{src:v,width:"56px",height:"56px"},null,8,["src"])]))),128))]),o("div",Vl,[t(q,{class:"mt-4",color:"lightprimary",onClick:s},{default:l(()=>c[6]||(c[6]=[C("Cancel")])),_:1}),t(q,{class:"mt-4 ml-4",color:"btnBlue",loading:r(V),onClick:O},{default:l(()=>c[7]||(c[7]=[C("Submit")])),_:1},8,["loading"])])]),_:1})]),_:1},8,["loading"])]),_:1},8,["modelValue"])],64))}},Cl=J(Al,[["__scopeId","data-v-3a5cd4ed"]]),Tl="/assets/noprise-xF5YQMUc.png",Dl={key:0,class:"none-prise"},Nl={class:"none-prise-con m-auto"},$l={key:1},Pl={class:"pa-4"},Ul={class:"text-primary text-h1 my-4"},Ol={class:"text-medium-emphasis align-center justify-center d-flex mb-3 ga-2"},Ll={class:"pa-7"},Ml={class:"d-flex align-center ga-4 my-2"},jl={class:"d-flex align-center ga-4 my-2"},Fl={class:"d-flex align-center ga-4 my-2"},Gl={class:"d-flex align-center ga-4 my-2"},zl={class:"d-flex align-center ga-4 my-2"},El={class:"pa-4"},Rl={class:"d-flex align-center ga-4 pa-4 w-100"},Hl={class:"flex-grow-1"},Bl={class:"text-h5"},Jl={class:"text-medium-emphasis",style:{"font-size":"10px"}},ql={class:"v-col-lg-2 px-0 py-0"},Yl={class:"d-flex flex-wrap"},Ql={key:0,class:"posi"},Wl={key:0,class:"text-center"},Xl={__name:"TabReview",props:{blankId:String},setup(n){const d=be();let e=y(!1);const k=y(4),g=n;let i=R({size:10,current:1}),u=R([]),f=R({}),_=R({}),b=y(!0),V=y(!1),A=R({color:"success",msg:"Success",isShow:!1});y("");const P=Me();function h(){e.value=!0,P.commentPage(i.current,i.size,d.query.id).then(p=>{e.value=!1,u.push(...p.data.records),f.value=p.data,console.log("commentPage...",u),p.data.total>i.size*i.current?V.value=!0:V.value=!1})}const w=H(()=>{var p=f.value.star1Num+f.value.star2Num*2+f.value.star3Num*3+f.value.star4Num*4+f.value.star5Num*5;return p?(p/f.value.total).toFixed(1):0}),s=y(null),x=()=>{s.value&&(console.log(s.value),s.value.handleOpen())};function N(){i.current+=1,h()}function O(p){b.value=!1,_.value=p,s.value&&(console.log(s.value),s.value.editOpen(p))}function D(p,a){P.blankProductCommentRemove({commentId:p,contentType:"application/json;charset=UTF-8"}).then(c=>{A.msg="Successfully deleted",A.color="success",A.isShow=!0,u.splice(a,1)})}function F(){setTimeout(()=>{u.splice(0,u.length),console.log("comlist...",u),h()},100)}return F(),ut("refreshProductDetail",F),Xe(()=>{rt("refreshProductDetail",F)}),(p,a)=>{const c=re("DotsIcon");return m(),S(U,null,[t(Ue,{modelValue:r(A).isShow,"onUpdate:modelValue":a[0]||(a[0]=v=>r(A).isShow=v),color:r(A).color,timeout:3e3,variant:"flat",rounded:"md",location:"top"},{default:l(()=>[C(I(r(A).msg),1)]),_:1},8,["modelValue","color"]),r(u).length==0?(m(),S("div",Dl,[o("div",Nl,[t(B,{src:r(Tl),width:120,height:120,inline:""},null,8,["src"]),a[3]||(a[3]=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)),t(q,{variant:"outlined",color:"#203461",size:"large",class:"mt-6",onClick:x},{default:l(()=>a[2]||(a[2]=[o("img",{src:kl},null,-1),o("span",{class:"ml-3"},"Write a review",-1)])),_:1})])])):(m(),S("div",$l,[t(W,{class:"mt-4"},{default:l(()=>[t(L,{lg:"4",md:"12",cols:"12",class:"align-streach"},{default:l(()=>[t(G,{variant:"outlined",elevation:"0",class:"text-center h-100 d-flex align-center justify-center"},{default:l(()=>[o("div",Pl,[a[4]||(a[4]=o("h4",{class:"text-h4"},"Average Rating",-1)),o("h1",Ul,I(w.value)+"/"+I(r(f).value.total),1),o("div",Ol,[t(ve,{color:"warning","half-increments":"",modelValue:k.value,"onUpdate:modelValue":a[1]||(a[1]=v=>k.value=v),readonly:"",density:"compact"},null,8,["modelValue"]),o("small",null,"("+I(r(f).value.total)+"+)",1)])])]),_:1})]),_:1}),t(L,{lg:"4",md:"12",class:"align-streach justify-center"},{default:l(()=>[t(G,{variant:"outlined",elevation:"0",class:"text-center justify-center h-100"},{default:l(()=>[o("div",Ll,[o("div",Ml,[a[5]||(a[5]=o("div",{class:"text-no-wrap"},"1 Stars",-1)),t(se,{"model-value":r(f).value.star1Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,I(r(f).value.star1Num),1)]),o("div",jl,[a[6]||(a[6]=o("div",{class:"text-no-wrap"},"2 Stars",-1)),t(se,{"model-value":r(f).value.star2Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,I(r(f).value.star2Num),1)]),o("div",Fl,[a[7]||(a[7]=o("div",{class:"text-no-wrap"},"3 Stars",-1)),t(se,{"model-value":r(f).value.star3Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,I(r(f).value.star3Num),1)]),o("div",Gl,[a[8]||(a[8]=o("div",{class:"text-no-wrap"},"4 Stars",-1)),t(se,{"model-value":r(f).value.star4Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,I(r(f).value.star4Num),1)]),o("div",zl,[a[9]||(a[9]=o("div",{class:"text-no-wrap"},"5 Stars",-1)),t(se,{"model-value":r(f).value.star5Num,style:{left:"0",transform:"unset"},color:"secondary",rounded:"sm"},null,8,["model-value"]),o("h5",null,I(r(f).value.star5Num),1)])])]),_:1})]),_:1}),t(L,{lg:"4",md:"12",class:"align-streach"},{default:l(()=>[t(G,{variant:"outlined",elevation:"0",class:"d-flex align-center justify-center h-100"},{default:l(()=>[o("div",El,[t(q,{variant:"outlined",color:"primary",size:"large","prepend-icon":"mdi-message-outline",onClick:x},{default:l(()=>a[10]||(a[10]=[C(" Write a review")])),_:1})])]),_:1})]),_:1}),t(L,{lg:"12"},{default:l(()=>[(m(!0),S(U,null,E(r(u),(v,X)=>(m(),T(G,{variant:"text",class:"py-6",style:{"border-bottom":"1px solid #E3E8EF"},key:X},{default:l(()=>[t(W,{class:"d-flex align-center"},{default:l(()=>[t(L,{lg:"3",md:"3"},{default:l(()=>[o("div",Rl,[a[12]||(a[12]=o("img",{src:xl,alt:"users",width:"60"},null,-1)),o("div",Hl,[o("h4",Bl,[C(I(v.nickname),1),t(Ke,{color:"success",class:"ml-3",size:"small"},{default:l(()=>a[11]||(a[11]=[C(" Verified purchase ")])),_:1})]),o("p",Jl,I(v.time),1)])])]),_:2},1024),t(L,{lg:"8",md:"8",class:"v-col-lg-2 px-0 py-0"},{default:l(()=>[o("div",ql,[t(ve,{size:"x-small",modelValue:v.star,"onUpdate:modelValue":j=>v.star=j,readonly:"",density:"compact",color:"warning"},null,8,["modelValue","onUpdate:modelValue"])]),o("p",null,I(v.comment),1),o("div",Yl,[(m(!0),S(U,null,E(v.photos,(j,oe)=>(m(),T(B,{src:j,width:"56px",height:"56px",inline:"",rounded:"md",class:"mt-3",key:j},null,8,["src"]))),128))])]),_:2},1024),v.self?(m(),S("div",Ql,[t(Ze,{"close-on-content-click":!1,location:"bottom"},{activator:l(({props:j})=>[t(q,ie({icon:"",size:"small",variant:"text",ref_for:!0},j),{default:l(()=>[t(c,{size:"15"})]),_:2},1040)]),default:l(()=>[t(et,{rounded:"md",width:"100",elevation:"12"},{default:l(()=>[t(tt,null,{default:l(()=>[t(ae,{link:"",class:"text-medium-emphasis",onClick:j=>O(v)},{default:l(()=>a[13]||(a[13]=[C(" Edit ")])),_:2},1032,["onClick"]),t(ae,{link:"",class:"text-medium-emphasis",onClick:j=>D(v.id,X)},{default:l(()=>a[14]||(a[14]=[C(" Del ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)])):$("",!0)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),r(V)?(m(),S("div",Wl,[t(q,{variant:"text",color:"primary",onClick:N},{default:l(()=>a[15]||(a[15]=[C("Load More Comments")])),_:1})])):$("",!0)])),t(lt,{isShow:r(e)},null,8,["isShow"]),t(Cl,{ref_key:"refComment",ref:s,blankId:g.blankId,isAdd:r(b),onRefresh:F},null,8,["blankId","isAdd"])],64)}}},Kl=J(Xl,[["__scopeId","data-v-aeca37dd"]]),Zl={class:"pa-5"},jo=M({__name:"Tabs",props:{productData:Object,blankId:[Number,String]},setup(n){const d=n,e=y("tab-profile");return(k,g)=>(m(),T(W,null,{default:l(()=>[t(L,{cols:"12"},{default:l(()=>[t(De,{modelValue:e.value,"onUpdate:modelValue":g[0]||(g[0]=i=>e.value=i),color:"primary","selected-class":"integrationsactivedTab activedTab"},{default:l(()=>[t(Y,{value:"tab-profile"},{default:l(()=>g[2]||(g[2]=[C(" Description")])),_:1}),t(Y,{value:"tab-personal"},{default:l(()=>g[3]||(g[3]=[C(" Size Guide")])),_:1}),t(Y,{value:"tab-shopping"},{default:l(()=>g[4]||(g[4]=[C(" Shipping")])),_:1}),t(Y,{value:"tab-printing"},{default:l(()=>g[5]||(g[5]=[C("Printing/Design Guides")])),_:1}),t(Y,{value:"tab-service"},{default:l(()=>g[6]||(g[6]=[C("Service")])),_:1}),t(Y,{value:"tab-review"},{default:l(()=>g[7]||(g[7]=[C("Review")])),_:1})]),_:1},8,["modelValue"]),o("div",Zl,[t(Ne,{modelValue:e.value,"onUpdate:modelValue":g[1]||(g[1]=i=>e.value=i)},{default:l(()=>[t(Q,{value:"tab-profile"},{default:l(()=>[t(Tt,{blankDesc:d.productData.blankDescToC},null,8,["blankDesc"]),t(Pe),t($t,{keyFeatureList:d.productData.keyFeatureList},null,8,["keyFeatureList"])]),_:1}),t(Q,{value:"tab-personal"},{default:l(()=>[t(jt,{sizeGuideImageUrl:d.productData.blankProductInfo.sizeGuideImageUrl,blankSpecImperial:d.productData.blankSpecImperial,blankSpecMetric:d.productData.blankSpecMetric},null,8,["sizeGuideImageUrl","blankSpecImperial","blankSpecMetric"])]),_:1}),t(Q,{value:"tab-shopping"},{default:l(()=>[t(ol,{productData:n.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(Q,{value:"tab-printing"},{default:l(()=>[t(dl,{printGuideList:d.productData.printGuideList,"blank-product-info":d.productData.blankProductInfo},null,8,["printGuideList","blank-product-info"])]),_:1}),t(Q,{value:"tab-service"},{default:l(()=>[t(hl,{serviceList:d.productData.serviceList},null,8,["serviceList"])]),_:1}),t(Q,{value:"tab-review"},{default:l(()=>[t(Kl,{blankId:d.blankId},null,8,["blankId"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1}))}}),eo={class:"d-flex"},to={class:"d-flex align-center font-weight-medium"},lo=["src"],oo={class:"text-subtitle-2 text-medium-emphasis font-weight-medium mt-2"},so={class:"text-subtitle-6 text-success mt-2 font-weight-medium"},ao={class:"d-flex align-center"},no={class:"text-secondary ml-1 font-weight-medium"},Fo=M({__name:"DeliveryMethod",props:{minLogisticsPrice:Number,deliveryMethod:String,deliveryTime:String,countryGroupLogoUrl:String},setup(n){return(d,e)=>(m(),T(G,{variant:"outlined",elevation:"0",style:{height:"130px"}},{default:l(()=>[t(ne,null,{default:l(()=>[o("div",eo,[o("p",to,[e[0]||(e[0]=C("Delivery to US ")),o("img",{src:n.countryGroupLogoUrl,style:{width:"24px",height:"14px"},class:"ml-2",alt:""},null,8,lo)])]),o("p",oo,I(n.deliveryMethod),1),o("p",so,I(n.deliveryTime),1),o("div",ao,[e[1]||(e[1]=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Shipping Cost: ",-1)),o("span",no,"$"+I(d.$filters.MoneyFormat(n.minLogisticsPrice)),1)])]),_:1})]),_:1}))}}),io={class:"d-flex align-center mt-2"},uo={class:"text-subtitle-2 ml-1 font-weight-medium"},ro={class:"d-flex align-center mt-2"},co={class:"text-subtitle-2 ml-1 font-weight-medium"},mo={class:"d-flex align-center mt-2"},po={class:"text-subtitle-2 ml-1 font-weight-medium"},Go=M({__name:"Specification",props:{material:String,weight:String,productionTime:String,productionProcess:String},setup(n){return(d,e)=>(m(),T(G,{variant:"outlined",elevation:"0",style:{height:"130px"}},{default:l(()=>[t(ne,null,{default:l(()=>[e[3]||(e[3]=o("div",{class:"d-flex"},[o("p",{class:"font-weight-medium"},"Specification")],-1)),o("div",io,[e[0]||(e[0]=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Material:",-1)),o("span",uo,I(n.material),1)]),o("div",ro,[e[1]||(e[1]=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Production Process:",-1)),o("span",co,I(n.productionProcess),1)]),o("div",mo,[e[2]||(e[2]=o("span",{class:"text-subtitle-2 text-medium-emphasis"},"Production Time:",-1)),o("span",po,I(n.productionTime),1)])]),_:1})]),_:1}))}}),fo={class:"d-flex tagdetail"},go={key:0,class:"tag-box new"},vo={key:1,class:"tag-box hot"},ho={key:2,class:"tag-box favorableDiscount"},ko={key:3,class:"tag-box JetPrint"},xo=M({__name:"TagsDetail",props:{base:Object},setup(n){const d=n;return(e,k)=>(m(),S("div",fo,[d.base.isNew?(m(),S("div",go,"New")):$("",!0),d.base.isHot?(m(),S("div",vo,"Hot")):$("",!0),d.base.favorableDiscount?(m(),S("div",ho,"-"+I(e.$filters.percentFilter(d.base.favorableDiscount)),1)):$("",!0),d.base.isPickFromJet?(m(),S("div",ko,[t(B,{src:r(at),width:18,height:18},null,8,["src"]),k[0]||(k[0]=o("span",{class:"ml-2"},"Picks from JetPrint",-1))])):$("",!0)]))}}),zo=J(xo,[["__scopeId","data-v-e2576364"]]);export{zo as T,Oo as _,Fo as a,Go as b,Kt as c,jo as d,Lo as e,Mo as g};