"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6948],{64779:function(e,t,i){i.d(t,{OE:function(){return l},Ey:function(){return g},Vd:function(){return p},BD:function(){return h},vW:function(){return x}});var n=i(57437);i(2265);var o=i(33145),r=i(88862),a={src:"/_next/static/media/seamless-pbr.de6c0cc8.svg",height:30,width:31,blurWidth:0,blurHeight:0},d={src:"/_next/static/media/seamless.5772afca.svg",height:30,width:31,blurWidth:0,blurHeight:0};let s=r.ZP.span.withConfig({componentId:"sc-36b08450-0"})(["position:absolute;top:-3px;right:-3px;font-size:12px;line-height:1;z-index:2;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.25));pointer-events:none;html.su-plugin &{font-size:13.5px;top:-2px;right:-2px;}"]),l=()=>(0,n.jsx)(s,{children:"\uD83D\uDC8E"}),c=r.ZP.span.withConfig({componentId:"sc-36b08450-1"})(["position:absolute;top:-3px;left:calc(100% - 3px);transform:translateX(-50%);display:inline-flex;align-items:center;padding:1px 5px;border-radius:4px;background:#4ec3e8;color:#ffffff;font-size:11px;font-weight:800;letter-spacing:-0.02em;line-height:1.3;white-space:nowrap;z-index:2;box-shadow:0 1px 2px rgba(0,0,0,0.25);pointer-events:none;html.su-plugin &{font-size:12px;padding:0 4.5px;top:-2px;left:calc(100% - 2px);}"]),p=()=>(0,n.jsx)(c,{children:"보유"}),u=r.ZP.span.withConfig({componentId:"sc-36b08450-2"})(["position:relative;display:inline-flex;width:100%;height:100%;min-width:","px;min-height:","px;line-height:0;img{width:100% !important;height:100% !important;}"],e=>{let{$size:t}=e;return t},e=>{let{$size:t}=e;return t}),x=e=>{let{size:t=38,className:i}=e;return(0,n.jsx)(u,{$size:t,className:i,children:(0,n.jsx)(o.default,{src:a,width:t,height:t,alt:"심리스 PBR"})})},h=e=>{let{size:t=38,className:i}=e;return(0,n.jsx)(u,{$size:t,className:i,children:(0,n.jsx)(o.default,{src:d,width:t,height:t,alt:"심리스"})})},f=r.ZP.span.withConfig({componentId:"sc-36b08450-3"})(["flex-shrink:0;position:relative;display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;background:#ff7777;color:#ffffff;font-size:11px;font-weight:700;line-height:1.2;letter-spacing:-0.02em;html.su-plugin &{padding:1px 5px;font-size:8px !important;}"]),g=e=>{let{className:t}=e;return(0,n.jsx)(f,{className:t,children:"고품질"})}},42742:function(e,t,i){i.d(t,{Dx:function(){return m},GF:function(){return l},HS:function(){return c},II:function(){return h},RO:function(){return u},Y6:function(){return s},b4:function(){return d},br:function(){return a},dk:function(){return b},eQ:function(){return x},iz:function(){return p},nK:function(){return f},qM:function(){return r},xr:function(){return o},zx:function(){return g}});var n=i(88862);let o=n.ZP.div.withConfig({componentId:"sc-8dac3417-0"})(["overflow-y:auto;overflow-x:hidden;width:100%;max-width:100%;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-x:contain;@media (max-width:768px){overflow-x:hidden;@supports (overflow-x:clip){overflow-x:clip;}}"]);n.ZP.h2.withConfig({componentId:"sc-8dac3417-1"})(["padding:16px;font-size:24px;@media (max-width:768px){display:none;}"]);let r=n.ZP.div.withConfig({componentId:"sc-8dac3417-2"})(["position:relative;display:flex;align-items:center;padding:0 16px 8px;background:#fff;width:100%;white-space:nowrap;margin-top:10px;"]),a=n.ZP.div.withConfig({componentId:"sc-8dac3417-3"})(["flex:1;overflow-x:auto;display:flex;align-items:center;justify-content:flex-start;& > *{flex-shrink:0;}margin:0;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),d=n.ZP.button.withConfig({componentId:"sc-8dac3417-4"})(["position:relative;transform:translateY(-50%);"," background:none;border:none;cursor:pointer;z-index:10;top:10px;"],e=>{let{right:t}=e;return t?"right: 8px;":"left: 8px;"}),s=n.ZP.button.withConfig({componentId:"sc-8dac3417-5"})(["margin:0 8px !important;display:inline-flex;align-items:center;justify-content:center;font-size:14px !important;line-height:1;font-weight:600;outline:none !important;-webkit-tap-highlight-color:transparent;&:focus,&:focus-visible{outline:none !important;box-shadow:none !important;}color:",";border-bottom:2px solid ",";padding:4px 1px;cursor:pointer;width:auto;background:transparent;border-left:none;border-right:none;border-top:none;"," "," "," transition:color 0.25s ease-in-out,background-color 0.2s ease-in-out,border-color 0.2s ease-in-out;&:hover{color:#333333;border-bottom-color:#333333;}html.su-plugin &{font-size:12px;margin:0 1px;}@media (min-width:769px) and (max-width:1440px){font-size:12px;margin:0 1px;}"],e=>{let{active:t}=e;return t?"#333333":"#AEA9A9"},e=>{let{active:t}=e;return t?"#333333":"transparent"},e=>{let{noTruncate:t}=e;return t&&"\n max-width: none;\n overflow: visible;\n text-overflow: unset;\n "},e=>{let{active:t,noTruncate:i}=e;return!t&&!i&&"\n max-width: 20ch;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n "},e=>{let{active:t,noTruncate:i}=e;return t&&!i&&"\n /* 활성 탭도 한 줄 유지 — 2줄 wrap 방지 */\n max-width: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n "}),l=n.ZP.div.withConfig({componentId:"sc-8dac3417-6"})(["width:100%;padding:40px 0;text-align:center;color:#666;font-size:22px;html.su-plugin &{font-size:14px;padding:24px 0;}@media (min-width:769px) and (max-width:1440px){font-size:14px;padding:24px 0;}"]),c=n.ZP.button.withConfig({componentId:"sc-8dac3417-7"})(["background:none;border:none;color:#333333;cursor:pointer;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;font-size:16px;line-height:100%;html.su-plugin &{font-size:12px;gap:4px;}@media (min-width:769px) and (max-width:1440px){font-size:12px;gap:4px;}"]),p=n.ZP.span.withConfig({componentId:"sc-8dac3417-8"})(["margin:0 8px;color:#ccc;"]);n.ZP.div.withConfig({componentId:"sc-8dac3417-9"})(["padding:0 16px 8px;"]);let u=n.ZP.div.withConfig({componentId:"sc-8dac3417-10"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));justify-content:start;align-content:start;gap:16px 8px;padding:0.5rem;width:100%;min-width:0;@media (max-width:768px){grid-template-columns:1fr;padding:12px;gap:12px;}html.su-plugin &{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px;padding:0.5rem;}@media (min-width:769px) and (max-width:1440px){grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px;padding:0.5rem;}"]),x=n.ZP.div.withConfig({componentId:"sc-8dac3417-11"})(["display:grid;justify-content:start;align-content:start;grid-template-columns:repeat(7,minmax(0,1fr));gap:0rem 0.5rem;padding:0.5rem 1rem;min-width:0;@media (max-width:768px){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;}html.su-plugin &{grid-template-columns:repeat( auto-fill,minmax(min(165px,calc((100% - 3 * 8px) / 4)),1fr) );gap:5px 8px;padding:0.5rem;}@media (min-width:769px) and (max-width:1440px){grid-template-columns:repeat( auto-fill,minmax(min(165px,calc((100% - 3 * 8px) / 4)),1fr) );gap:10px 8px;padding:0.5rem 1rem;}"]);n.ZP.div.withConfig({componentId:"sc-8dac3417-12"})(["position:absolute;top:8px;right:8px;z-index:10;cursor:pointer;@media (max-width:768px){display:none;}"]),n.ZP.div.withConfig({componentId:"sc-8dac3417-13"})(["position:fixed;inset:0;background:rgba(0,0,0,0.4);display:flex;justify-content:center;align-items:center;z-index:1000 !important;"]),n.ZP.div.withConfig({componentId:"sc-8dac3417-14"})(["background:#fff;border-radius:8px;padding:24px;width:280px;"]);let h=n.ZP.input.withConfig({componentId:"sc-8dac3417-15"})(["width:100%;padding:8px;margin:12px 0;box-sizing:border-box;"]),f=n.ZP.div.withConfig({componentId:"sc-8dac3417-16"})(["display:flex;justify-content:center;gap:15px;margin-top:16px;"]),g=n.ZP.button.withConfig({componentId:"sc-8dac3417-17"})(["padding:6px 12px;width:100px;border-radius:4px;cursor:pointer;font-size:0.95rem;font-weight:600;"," &[disabled]{opacity:0.5;cursor:default;}"],e=>{let{$outline:t}=e;return t?"\n background: #ffffff;\n color: #111111;\n border: 1px solid #111111;\n ":"\n background: #333333;\n color: #ffffff;\n border: 1px solid #333333;\n "});n.ZP.div.withConfig({componentId:"sc-8dac3417-18"})(["color:red;margin-bottom:8px;"]),n.ZP.div.withConfig({componentId:"sc-8dac3417-19"})(["position:relative;margin:12px 0 16px;border-radius:12px;padding:16px;background:",";box-shadow:0 1px 3px rgba(0,0,0,0.08);"],e=>{let{$bg:t}=e;return t?"url(".concat(t,") center/cover no-repeat"):"#f7f7f7"}),n.ZP.div.withConfig({componentId:"sc-8dac3417-20"})(["position:relative;display:flex;gap:14px;align-items:flex-start;backdrop-filter:",";background:rgba(255,255,255,0.76);border-radius:10px;padding:12px;"],e=>{let{theme:t}=e;return"none"}),n.ZP.div.withConfig({componentId:"sc-8dac3417-21"})(["position:relative;width:56px;height:56px;border-radius:50%;overflow:hidden;flex:0 0 56px;background:#fff;border:1px solid rgba(0,0,0,0.06);"]),n.ZP.div.withConfig({componentId:"sc-8dac3417-22"})(["min-width:0;display:flex;flex-direction:column;gap:6px;"]),n.ZP.div.withConfig({componentId:"sc-8dac3417-23"})(["font-weight:700;font-size:16px;line-height:1.2;"]),n.ZP.div.withConfig({componentId:"sc-8dac3417-24"})(["font-size:14px;line-height:1.5;color:#444;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;"]);let m=n.ZP.h3.withConfig({componentId:"sc-8dac3417-25"})(["font-size:24px;margin:0 0 12px;font-weight:bold;text-align:center;"]),b=n.ZP.p.withConfig({componentId:"sc-8dac3417-26"})(["font-size:16px;margin:0 0 20px;text-align:center;"])},42385:function(e,t,i){i.d(t,{E:function(){return o}});let n=e=>{var t,i,n,o,r,a;if(!e)return[];let d=[];(null===(t=e.categories)||void 0===t?void 0:t.length)&&d.push("category"),e.subCategory&&d.push("subCategory"),e.store&&d.push("store"),e.brand&&d.push("brand");let s=e.price;return(null!==(r=null==s?void 0:s[0])&&void 0!==r?r:0)===0&&(null!==(a=null==s?void 0:s[1])&&void 0!==a?a:3e6)===3e6||d.push("price"),e.size&&d.push("size"),(null===(i=e.widthDims)||void 0===i?void 0:i.length)&&d.push("width"),(null===(n=e.heightDims)||void 0===n?void 0:n.length)&&d.push("height"),(null===(o=e.depthDims)||void 0===o?void 0:o.length)&&d.push("depth"),e.glossiness&&d.push("gloss"),e.country&&d.push("country"),e.location&&d.push("location"),e.purpose&&d.push("purpose"),e.sort&&d.push("sort"),e.isSeamless&&d.push("seamless"),d},o=e=>n(e).join(",")},1050:function(e,t,i){var n=i(2265),o=i(43618),r=i(29918),a=i(26163),d=i(42385);t.Z=e=>{var t,i;let{onSuccess:s,onError:l}=e,c=(0,o.sJ)(a.Tq),p=!!(null==c?void 0:null===(t=c.activeId)||void 0===t?void 0:t.color),u=!!(null==c?void 0:null===(i=c.activeId)||void 0===i?void 0:i.isSeamless),x=(0,d.E)(null==c?void 0:c.activeId),h=!!window.sketchup||document.documentElement.classList.contains("su-plugin");return{mutate:(0,n.useCallback)(e=>{var t;let i=localStorage.getItem("TOKEN"),n=i?r.et:r.Wg;i&&(n.defaults.headers.common.Authorization="Bearer ".concat(i));let o={productCode:e.productCode&&!e.productCode.startsWith("M-")?"M-".concat(e.productCode):e.productCode,productId:e.productCode&&""!==e.productCode?void 0:e.productId};n.post("/productDetail",{...o,colorFilter:p,seamlessToggle:u,source:null!==(t=e.source)&&void 0!==t?t:null,usedFilters:x,isPlugin:h}).then(e=>{s(Array.isArray(e.data)?e.data:[e.data])}).catch(e=>{var t,i;l((null===(i=e.response)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.message)||[e.message])})},[s,l,p,u,x,h])}}},5537:function(e,t,i){i.d(t,{c:function(){return E},Z:function(){return M}});var n=i(57437),o=i(2265),r=i(33145),a=i(88862),d=i(78155),s=i(22545),l=i(47466),c=i(42742),p=i(88385),u={src:"/_next/static/media/link.7415ff8e.svg",height:20,width:20,blurWidth:0,blurHeight:0},x={src:"/_next/static/media/img-down-black.4b145363.svg",height:18,width:18,blurWidth:0,blurHeight:0},h=i(64779),f=i(99376);i(2648);var g=i(89723),m=i(60162),b=i(43618),w=i(35775);let v=a.ZP.div.withConfig({componentId:"sc-f549c94d-0"})(["position:absolute;inset:0;width:100%;height:100%;background:#e0e0e0;border-radius:inherit;"]),y=a.ZP.div.withConfig({componentId:"sc-f549c94d-1"})(["z-index:9;position:absolute;top:0;left:0;padding:5px;display:flex;flex-direction:column;align-items:center;gap:6px;@media (max-width:768px){z-index:9;}"]),j=a.ZP.div.withConfig({componentId:"sc-f549c94d-2"})(["position:relative;"]);a.ZP.h3.withConfig({componentId:"sc-f549c94d-3"})(["margin:8px 0 6px;font-size:24px;font-weight:800;color:#111827;text-align:center;"]);let C=a.ZP.div.withConfig({componentId:"sc-f549c94d-4"})(["display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:12px;border:1px solid #ececec;border-radius:12px;background:#fafafa;"]),I=a.ZP.img.withConfig({componentId:"sc-f549c94d-5"})(["width:88px;height:88px;object-fit:cover;border-radius:10px;flex:0 0 auto;background:#f3f3f3;@media (max-width:768px){width:59px;height:59px;}"]),k=a.ZP.div.withConfig({componentId:"sc-f549c94d-6"})(["flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:8px;"]),P=a.ZP.div.withConfig({componentId:"sc-f549c94d-7"})(["font-size:18px;font-weight:800;color:#111827;letter-spacing:-0.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Z=a.ZP.div.withConfig({componentId:"sc-f549c94d-8"})(["display:flex;align-items:center;gap:8px;font-size:13px;color:#6b7280;"]),z=a.ZP.span.withConfig({componentId:"sc-f549c94d-9"})(["flex:1 1 auto;min-width:0;color:#374151;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);a.ZP.div.withConfig({componentId:"sc-f549c94d-10"})(["margin:0 0 14px;font-size:24px;font-weight:700;color:#111827;text-align:center;word-break:break-word;letter-spacing:-0.2px;&::before{}&::after{content:'‘';color:transparent;}span{font-size:24px;position:relative;}span::before{content:'‘';font-size:24px;position:relative;margin-right:6px;color:#111827;}span::after{content:'’';font-size:24px;position:relative;margin-left:6px;color:#111827;}"]),a.ZP.form.withConfig({componentId:"sc-f549c94d-11"})(["display:flex;flex-direction:column;gap:8px;width:100%;"]),a.ZP.div.withConfig({componentId:"sc-f549c94d-12"})(["display:flex;flex-direction:column;gap:4px;"]),a.ZP.label.withConfig({componentId:"sc-f549c94d-13"})(["font-size:12px;color:#6b7280;font-weight:600;text-align:start;"]),a.ZP.input.withConfig({componentId:"sc-f549c94d-14"})(["height:34px;border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;font-size:13px;background:#ffffff;outline:none;&::placeholder{color:#b7bcc3;}&:focus{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,0.12);}"]),a.ZP.textarea.withConfig({componentId:"sc-f549c94d-15"})(["border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;font-size:13px;min-height:56px;resize:vertical;background:#ffffff;outline:none;&::placeholder{color:#b7bcc3;}&:focus{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,0.12);}"]),a.ZP.div.withConfig({componentId:"sc-f549c94d-16"})(["margin-top:-4px;font-size:12px;color:#d64545;"]),a.ZP.div.withConfig({componentId:"sc-f549c94d-17"})(["margin-top:6px;display:flex;gap:0;justify-content:center;width:100%;"]),a.ZP.button.withConfig({componentId:"sc-f549c94d-18"})(["appearance:none;border:none;border-radius:10px;padding:12px 14px;font-size:15px;font-weight:800;background:#1b2c34;color:#fff;cursor:pointer;width:100%;letter-spacing:0.2px;&:disabled{opacity:0.6;cursor:default;}"]),a.ZP.button.withConfig({componentId:"sc-f549c94d-19"})(["display:none;"]);let S=a.ZP.div.withConfig({componentId:"sc-f549c94d-20"})(["padding:15px;text-align:center;"]),E=e=>{let{open:t,onClose:i,productId:r,productName:a,productImage:p,productCategory:u,productSubCategory:x,storeName:h,onOpen:v}=e;(0,b.sJ)(g.Z),(0,f.useRouter)();let y=(0,w.Z)(),E=(0,b.sJ)(m.Z),$=null!=r?E[r]:void 0,M=!!(null==y?void 0:y.premiumUnlimited)&&!!(null==y?void 0:y.freeSampleAllowed),[N,W]=(0,o.useState)({name:"",contact:"",projectName:"",area:"",dueDate:"",memo:""});(0,o.useEffect)(()=>{t&&y&&W(e=>({...e,name:e.name||y.managerName||y.name||"",contact:e.contact||y.contactNumber||y.phoneNumber||""}))},[t,null==y?void 0:y.id]);let[D,A]=(0,o.useState)(void 0),[B,L]=(0,o.useState)(!1),{submitInquiry:R,loading:q}=(0,s.Z)({onError:e=>{A((Array.isArray(e)?e.join(", "):e)||"문의 처리 중 문제가 발생했습니다.")},onSuccess:()=>{A(void 0),i(),W({name:"",contact:"",projectName:"",area:"",dueDate:"",memo:""}),L(!0)}});(0,o.useEffect)(()=>{t&&(null==v||v())},[t]);let H=()=>L(!1);return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)(d.Z,{onClose:()=>{q||i()},containerWidth:"560px",pluginMaxWidth:"720px",children:(0,n.jsx)(j,{children:(0,n.jsx)(l.Z,{title:M?"엔터프라이즈 특별가 견적 신청서":"견적 및 지원금 신청서",subtitle:"프로젝트 정보 입력 즉시, 3분내 금액 확정 문자 발송",submitLabel:M?"엔터프라이즈 특별가 견적 신청 →":"견적 및 지원금 확인 →",buttonFeedback:!0,hideUpload:!0,hideBudget:!0,productName:a,productCategory:u,productSubCategory:x,storeName:h,productSize:$,inquirySource:"제품지정",uploadSlot:(p||a)&&(0,n.jsxs)(C,{children:[p&&(0,n.jsx)(I,{src:p,alt:null!=a?a:""}),(0,n.jsxs)(k,{children:[a&&(0,n.jsx)(P,{children:a}),(u||x)&&(0,n.jsx)(Z,{children:(0,n.jsxs)(z,{children:[null!=u?u:"",x?" / ".concat(x):""]})})]})]})})})}),B&&(0,n.jsx)(d.Z,{containerWidth:"none",onClose:H,children:(0,n.jsxs)(S,{children:[(0,n.jsx)("p",{style:{fontWeight:600,fontSize:20,marginBottom:26},children:"지원금 신청 완료"}),(0,n.jsx)("p",{style:{fontWeight:400,fontSize:16,marginBottom:30},children:"담당 파트너가 1분 이내에 연락 드리겠습니다."}),(0,n.jsx)(c.nK,{children:(0,n.jsx)(c.zx,{onClick:H,children:"확인"})})]})})]})},$=e=>{let{label:t,onClick:i,$bottom:a,$bottomMobile:d,state:s="idle",premium:l,owned:c,sheets:u}=e,[f,g]=(0,o.useState)(!1),m=null!=u?"".concat(t," ").concat(u,"장"):t;return(0,n.jsx)(p.MT,{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:(0,n.jsxs)(p.qO,{visible:!0,expanded:f,onClick:"loading"===s?void 0:i,$bottom:a,$bottomMobile:d,"data-state":s,children:[c?(0,n.jsx)(h.Vd,{}):l&&(0,n.jsx)(h.OE,{}),(0,n.jsx)("span",{className:"overlay-text",style:{fontSize:16,fontWeight:"bold"},children:"loading"===s?"⋯":"done"===s?"✓":m}),"idle"===s&&(0,n.jsx)(r.default,{className:"overlay-icon",src:x,alt:"Download",width:20,height:20})]})})};a.ZP.span.withConfig({componentId:"sc-f549c94d-21"})(["position:absolute;top:-8px;right:-4px;font-size:12px;line-height:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,0.25));pointer-events:none;z-index:2;"]);var M=e=>{var t,i,a,s,l,c,f,g,m,b;let{productDetail:w,handleLinkClick:j,userMe:C,POINT_PRICE_LINK_COMPANY:I,POINT_PRICE_IMAGE_DOWNLOAD:k,POINT_PRICE_IMAGE_DOWNLOAD_SEAMLESS:P,handleImageButtonClick:Z,handleSeamlessImageButtonClick:z,handlePbrImageButtonClick:S,addBoardToProduct:M,addBoardLoading:_,isSeamless:Y,handleEstimateClick:J,imgDownloadState:U="idle",dlMode:X=null,mytextureImages:K=[],mytextureId:V}=e,G=w[0],ee=String(null!==(t=null==G?void 0:G.seamlessImage)&&void 0!==t?t:"").trim(),et=!!ee&&ee!==String(null!==(i=null==G?void 0:G.image)&&void 0!==i?i:""),ei=!!String(null!==(a=null==G?void 0:G.pbrImage)&&void 0!==a?a:"").trim(),en=String(null!==(s=null==G?void 0:G.detailImg)&&void 0!==s?s:"").trim()||(et?ee:null==G?void 0:G.image),[eo,er]=(0,o.useState)(!1),[ea,ed]=(0,o.useState)(!1),[es,el]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(!en)return;el(!1);let e=new window.Image;e.onload=()=>el(!0),e.onerror=()=>el(!0),e.src=en},[en]);let[ec,ep]=(0,o.useState)(!1);(0,o.useEffect)(()=>{el(!1)},[en]);let eu=0>Number(null!==(l=null==G?void 0:G.id)&&void 0!==l?l:0)||(null==G?void 0:G.isHighQuality)===!0,ex=eu||K.length>1,[eh,ef]=(0,o.useState)(0),[eg,em]=(0,o.useState)(!1),eb=(0,o.useRef)(!1);(0,o.useEffect)(()=>{K.slice(1).forEach(e=>{e&&(new window.Image().src=e)})},[K.join("|")]),(0,o.useEffect)(()=>{if(K.length<=1)return;let e=window.setInterval(()=>{eb.current||eg||ef(e=>(e+1)%K.length)},2e3);return()=>window.clearInterval(e)},[K.length,eg]),(0,o.useEffect)(()=>{eh>=K.length&&ef(0)},[K.length,eh]);let ew=null!==(m=null!==(g=null!==(f=null!==(c=null==G?void 0:G.name)&&void 0!==c?c:null==G?void 0:G.title)&&void 0!==f?f:null==G?void 0:G.productName)&&void 0!==g?g:null==G?void 0:G.modelName)&&void 0!==m?m:"",ev=(null==G?void 0:G.isContract)===!0,ey=!!String(null!==(b=null==G?void 0:G.url)&&void 0!==b?b:"").trim(),ej=ev&&ey,eC=ej?void 0:"3%",eI=ej?void 0:"3%",ek=ei?ej?"13%":"3%":ej?void 0:"13%",eP=ei?ej?"16%":"3%":ej?void 0:"13%";return ex?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Ij,{children:(0,n.jsxs)(N,{onMouseEnter:()=>eb.current=!0,onMouseLeave:()=>eb.current=!1,children:[(0,n.jsxs)(W,{children:[(0,n.jsx)(D,{style:{transform:"translateX(-".concat(100*eh,"%)")},children:K.map((e,t)=>(0,n.jsx)(A,{children:(0,n.jsx)(B,{style:{backgroundImage:'url("'.concat(e,'")')},role:"img","aria-label":ew,onContextMenu:e=>e.preventDefault()})},t))}),(0,n.jsx)(L,{children:eu||ei?(0,n.jsx)(h.vW,{size:50,noDiamond:!0}):et?(0,n.jsx)(h.BD,{size:50,noDiamond:!0}):null}),eu||ei?(0,n.jsx)($,{label:"PBR",onClick:null!=S?S:Z,state:"pbr"===X?U:"idle",$bottom:ej?"23%":"13%",$bottomMobile:ej?"29%":"16%",premium:!0,owned:!!(null==G?void 0:G.ownedPbr)}):(0,n.jsx)($,{label:"이미지",onClick:Z,state:"jpg"===X?U:"idle",$bottom:ej?"23%":"13%",$bottomMobile:ej?"29%":"16%"}),(eu||et)&&(0,n.jsx)($,{label:"심리스",onClick:z,state:"seamless"===X?U:"idle",$bottom:ej?"13%":"3%",$bottomMobile:ej?"16%":"3%",premium:!0,owned:!!(null==G?void 0:G.ownedSeamless)}),ej&&(0,n.jsx)(p.Ji,{id:"link-to-company",href:"#",onClick:j,children:(0,n.jsxs)(p._l,{visible:!0,children:[(0,n.jsx)("span",{className:"overlay-text",style:{fontSize:16,fontWeight:"bold"},children:"링크"}),(0,n.jsx)(r.default,{className:"overlay-icon",src:u,alt:"Link",width:20,height:20})]})}),(0,n.jsx)(R,{type:"button",onClick:()=>em(!0),"aria-label":"이미지 확대",children:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),(0,n.jsx)("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),(0,n.jsx)("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})})]}),K.length>1&&(0,n.jsx)(O,{children:K.map((e,t)=>(0,n.jsx)(T,{$active:t===eh,onClick:()=>ef(t),"aria-label":"slide-".concat(t+1)},t))})]})}),eg&&(0,n.jsx)(d.Z,{onClose:()=>em(!1),containerWidth:"min(75vw, 900px)",containerStyle:{borderRadius:20,padding:0},hideCloseButton:!0,pluginWide:!0,children:(0,n.jsxs)(q,{children:[(0,n.jsx)(H,{style:{backgroundImage:'url("'.concat(K[eh],'")')}}),(0,n.jsx)(Q,{type:"button","aria-label":"닫기",onClick:()=>em(!1),children:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:[(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}),K.length>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{$side:"left",type:"button","aria-label":"이전 이미지",onClick:()=>ef(e=>(e-1+K.length)%K.length),children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,n.jsx)(F,{$side:"right",type:"button","aria-label":"다음 이미지",onClick:()=>ef(e=>(e+1)%K.length),children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]})]})})]}):(0,n.jsxs)(p.Ij,{children:[en&&(0,n.jsxs)(p.fb,{onMouseEnter:()=>er(!0),onMouseLeave:()=>{er(!1),ed(!1)},style:{position:"relative"},children:[et&&(0,n.jsx)(y,{children:ei?(0,n.jsx)(h.vW,{size:50,noDiamond:!0}):(0,n.jsx)(h.BD,{size:50,noDiamond:!0})}),!es&&(0,n.jsx)(v,{}),(0,n.jsx)(p.$W,{style:{backgroundImage:'url("'.concat(en,'")')},$loaded:es,onContextMenu:e=>e.preventDefault(),role:"img","aria-label":"Product"}),ej&&(0,n.jsx)(p.Ji,{id:"link-to-company",href:"#",onClick:j,children:(0,n.jsxs)(p._l,{visible:!0,children:[(0,n.jsx)("span",{className:"overlay-text",style:{fontSize:16,fontWeight:"bold"},children:"링크"}),(0,n.jsx)(r.default,{className:"overlay-icon",src:u,alt:"Link",width:20,height:20})]})}),et&&(0,n.jsx)(p.C4,{onMouseEnter:()=>ed(!0),onMouseLeave:()=>ed(!1),children:(0,n.jsxs)(p.q6,{visible:!0,expanded:ea,onClick:z,"data-state":"seamless"===X?U:"idle",$bottom:ek,$bottomMobile:eP,children:[(null==G?void 0:G.ownedSeamless)?(0,n.jsx)(h.Vd,{}):(0,n.jsx)(h.OE,{}),(0,n.jsx)("span",{className:"overlay-text",style:{fontSize:16,fontWeight:"bold"},children:"seamless"===X&&"loading"===U?"⋯":"seamless"===X&&"done"===U?"✓":"심리스"}),(0,n.jsx)(r.default,{className:"overlay-icon",src:x,alt:"Download",width:20,height:20})]})}),ei?(0,n.jsx)($,{label:"PBR",onClick:null!=S?S:Z,state:"pbr"===X?U:"idle",$bottom:ej?"23%":"13%",$bottomMobile:ej?"29%":"16%",premium:!0,owned:!!(null==G?void 0:G.ownedPbr)}):(0,n.jsx)($,{label:"이미지",onClick:Z,$bottom:eC,$bottomMobile:eI,state:"jpg"===X?U:"idle"})]}),(0,n.jsx)(E,{open:ec,onClose:()=>ep(!1),productId:null==G?void 0:G.id,productName:ew,productImage:null==G?void 0:G.image,productCategory:null==G?void 0:G.category,productSubCategory:null==G?void 0:G.subCategory,onOpen:J})]})};let N=a.ZP.div.withConfig({componentId:"sc-f549c94d-22"})(["width:100%;display:flex;flex-direction:column;"]),W=a.ZP.div.withConfig({componentId:"sc-f549c94d-23"})(["position:relative;width:100%;aspect-ratio:1 / 1;overflow:hidden;border-radius:16px;background:#f4f4f6;"]),D=a.ZP.div.withConfig({componentId:"sc-f549c94d-24"})(["display:flex;height:100%;transition:transform 0.8s cubic-bezier(0.22,1,0.36,1);"]),A=a.ZP.div.withConfig({componentId:"sc-f549c94d-25"})(["flex:0 0 100%;height:100%;"]),B=a.ZP.div.withConfig({componentId:"sc-f549c94d-26"})(["width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;"]),L=a.ZP.div.withConfig({componentId:"sc-f549c94d-27"})(["position:absolute;top:12px;left:12px;z-index:2;line-height:0;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.15));"]),R=a.ZP.button.withConfig({componentId:"sc-f549c94d-28"})(["position:absolute;right:12px;bottom:12px;z-index:3;width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;border:0;background-color:rgba(255,255,255,0.7);color:rgba(41,43,92,1);border-radius:8px;cursor:pointer;transition:background-color 0.15s ease-in-out,transform 0.15s ease-in-out;&:hover{background-color:rgba(255,255,255,0.95);transform:translateY(-1px);}svg{width:22px;height:22px;}@media (max-width:768px){width:36px;height:36px;svg{width:20px;height:20px;}}"]),q=a.ZP.div.withConfig({componentId:"sc-f549c94d-29"})(["position:relative;width:100%;height:min(86vh,775px);border-radius:20px;overflow:hidden;@media (max-width:768px){height:86vw;}"]),H=a.ZP.div.withConfig({componentId:"sc-f549c94d-30"})(["width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat;"]),Q=a.ZP.button.withConfig({componentId:"sc-f549c94d-31"})(["position:absolute;top:8px;right:8px;z-index:4;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;box-shadow:none;color:#333;cursor:pointer;transition:transform 120ms ease;&:hover{transform:scale(0.95);}&:focus-visible{outline:2px solid #111;outline-offset:2px;}svg{width:22px;height:22px;}"]),F=a.ZP.button.withConfig({componentId:"sc-f549c94d-32"})(["position:absolute;top:50%;transform:translateY(-50%);"," z-index:2;width:42px;height:42px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background-color:rgba(255,255,255,0.85);color:rgba(41,43,92,1);box-shadow:0 2px 8px rgba(0,0,0,0.18);cursor:pointer;transition:background-color 0.15s ease-in-out;&:hover{background-color:#fff;}svg{width:24px;height:24px;}"],e=>{let{$side:t}=e;return"left"===t?"left: 10px;":"right: 10px;"}),O=a.ZP.div.withConfig({componentId:"sc-f549c94d-33"})(["display:flex;justify-content:center;gap:7px;margin-top:12px;"]),T=a.ZP.button.withConfig({componentId:"sc-f549c94d-34"})(["width:",";height:7px;border:0;border-radius:999px;cursor:pointer;background:",";transition:all 0.25s ease;"],e=>{let{$active:t}=e;return t?"20px":"7px"},e=>{let{$active:t}=e;return t?"#413d7d":"#d3d1de"})},88385:function(e,t,i){i.d(t,{$W:function(){return w},C4:function(){return u},Ij:function(){return x},Ji:function(){return c},MT:function(){return p},Mv:function(){return f},Qb:function(){return g},W2:function(){return a},_l:function(){return d},c7:function(){return m},fb:function(){return h},iz:function(){return b},q6:function(){return l},qO:function(){return s}});var n=i(88862),o=i(33145),r=i(27648);let a=n.ZP.div.withConfig({componentId:"sc-978b91d9-0"})(["display:flex;width:100%;justify-content:center;background-color:white;border-radius:20px;@media (max-width:768px){flex-direction:column;box-shadow:none;}[data-reflow] &{justify-content:flex-start;padding-left:24px;padding-right:24px;gap:12px;}"]),d=n.ZP.div.withConfig({componentId:"sc-978b91d9-1"})(["position:absolute;bottom:3%;left:3%;width:40px;height:40px;padding:0;gap:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background-color:rgba(255,255,255,0.7);color:rgba(41,43,92,1);font-size:16px;font-weight:bold;border-radius:8px;cursor:pointer;opacity:",";transition:opacity 0.15s ease-in-out,width 0.15s ease-in-out,padding 0.15s ease-in-out;.overlay-text,.overlay-price{display:flex;align-items:center;opacity:0;transition:opacity 0s;}.overlay-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);}&:hover{width:90px;padding:9px 10px;gap:5px;.overlay-text,.overlay-price{opacity:1;transition:opacity 0.15s ease-in-out 0.15s;position:relative;left:15px;}}"],e=>e.visible?1:0),s=n.ZP.div.withConfig({componentId:"sc-978b91d9-2"})(["position:absolute;bottom:",";left:3%;width:",";height:40px;padding:",";gap:",";box-sizing:border-box;display:flex;align-items:center;justify-content:center;background-color:rgba(255,255,255,0.7);color:rgba(41,43,92,1);border-radius:8px;cursor:pointer;opacity:",";transition:opacity 0.15s ease-in-out,width 0.15s ease-in-out,padding 0.15s ease-in-out;.overlay-text,.overlay-price{display:flex;align-items:center;opacity:",";transition:opacity ",";position:",";left:",";}.overlay-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);}&[data-state='done'],&[data-state='loading']{background-color:#413d7d;color:#fff;}&[data-state='done'] .overlay-text,&[data-state='loading'] .overlay-text{opacity:1;position:static;left:0;font-size:18px;color:#fff;}&[data-state='done'] .overlay-icon,&[data-state='loading'] .overlay-icon{display:none;}@media (max-width:768px){bottom:",";}"],e=>{var t;return null!==(t=e.$bottom)&&void 0!==t?t:"13%"},e=>e.expanded?"110px":"40px",e=>e.expanded?"9px 10px":"0",e=>e.expanded?"5px":"0",e=>e.visible?1:0,e=>e.expanded?1:0,e=>e.expanded?"0.15s ease-in-out 0.15s":"0s",e=>e.expanded?"relative":"static",e=>e.expanded?"15px":"0",e=>{var t;return null!==(t=e.$bottomMobile)&&void 0!==t?t:"16%"}),l=n.ZP.div.withConfig({componentId:"sc-978b91d9-3"})(["position:absolute;bottom:",";left:3%;width:",";height:40px;padding:",";gap:",";box-sizing:border-box;display:flex;align-items:center;justify-content:center;background-color:rgba(255,255,255,0.7);color:rgba(41,43,92,1);border-radius:8px;cursor:pointer;opacity:",";transition:opacity 0.15s ease-in-out,width 0.15s ease-in-out,padding 0.15s ease-in-out;.overlay-text,.overlay-price{display:flex;align-items:center;opacity:",";transition:opacity ",";position:",";left:",";}.overlay-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);}&[data-state='done'],&[data-state='loading']{background-color:#413d7d;color:#fff;}&[data-state='done'] .overlay-text,&[data-state='loading'] .overlay-text{opacity:1;position:static;left:0;font-size:18px;color:#fff;}&[data-state='done'] .overlay-icon,&[data-state='loading'] .overlay-icon{display:none;}@media (max-width:768px){bottom:",";}"],e=>{var t;return null!==(t=e.$bottom)&&void 0!==t?t:"23%"},e=>e.expanded?"110px":"40px",e=>e.expanded?"9px 10px":"0",e=>e.expanded?"5px":"0",e=>e.visible?1:0,e=>e.expanded?1:0,e=>e.expanded?"0.15s ease-in-out 0.15s":"0s",e=>e.expanded?"relative":"static",e=>e.expanded?"15px":"0",e=>{var t;return null!==(t=e.$bottomMobile)&&void 0!==t?t:"23%"}),c=(0,n.ZP)(r.default).withConfig({componentId:"sc-978b91d9-4"})([""]),p=n.ZP.div.withConfig({componentId:"sc-978b91d9-5"})([""]),u=n.ZP.div.withConfig({componentId:"sc-978b91d9-6"})([""]);n.ZP.button.withConfig({componentId:"sc-978b91d9-7"})(["position:absolute;right:3%;bottom:3%;width:140px;height:50px;border:none;border-radius:5px;background-color:#3b82f6;color:#ffffff;font-weight:800;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;box-shadow:0 6px 16px rgba(59,130,246,0.35);transition:transform 0.08s ease,box-shadow 0.2s ease,background-color 0.2s ease;&:disabled{opacity:0.6;cursor:not-allowed;filter:grayscale(0.15);}@media (max-width:768px){right:10px;bottom:10px;width:120px;height:44px;font-size:15px;}"]);let x=n.ZP.div.withConfig({componentId:"sc-978b91d9-8"})(["display:flex;width:490px;height:490px;overflow:hidden;position:relative;border-radius:20px;margin-top:10px;@media (max-width:768px){width:100%;height:auto;aspect-ratio:1 / 1;border-radius:20px;}[data-reflow] &{width:420px;height:420px;}"]),h=n.ZP.div.withConfig({componentId:"sc-978b91d9-9"})(["width:490px;height:490px;display:flex;align-items:center;position:relative;@media (max-width:768px){width:100%;height:100%;}[data-reflow] &{width:420px;height:420px;}"]),f=n.ZP.div.withConfig({componentId:"sc-978b91d9-10"})(["position:relative;display:flex;flex-direction:column;padding:10px 25px;align-items:center;justify-content:center;@media (max-width:768px){height:auto;padding:20px;}[data-reflow] &{padding:30px 0 10px;justify-content:flex-start;}"]),g=n.ZP.div.withConfig({componentId:"sc-978b91d9-11"})(["display:flex;align-items:center;justify-content:center;gap:5px;font-size:15px;font-weight:400;color:#1b2c34;@media (max-width:768px){font-size:13px;}html.su-plugin &{font-size:14px;}"]);n.ZP.div.withConfig({componentId:"sc-978b91d9-12"})(["display:flex;font-weight:800;justify-content:center;font-size:15px;color:#333333;gap:5px;"]);let m=n.ZP.div.withConfig({componentId:"sc-978b91d9-13"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:38px;@media (max-width:768px){align-items:flex-start;height:auto;}"]);n.ZP.div.withConfig({componentId:"sc-978b91d9-14"})(["display:flex;justify-content:space-between;align-items:center;gap:3px;p{font-size:14px;font-weight:600;line-height:19.09px;text-align:right;}@media (max-width:768px){p{font-size:12px;}}"]);let b=n.ZP.div.withConfig({componentId:"sc-978b91d9-15"})(["width:100%;height:1px;background-color:rgba(233,233,233,1);margin:1px 0 5px 0;[data-reflow] &{margin:1px 0 2px 0;}"]);(0,n.ZP)(o.default).withConfig({componentId:"sc-978b91d9-16"})(["position:absolute !important;inset:0;object-fit:cover !important;width:100% !important;height:100% !important;max-width:none !important;opacity:",";transition:opacity 0.3s ease-in-out;@media (max-width:768px){}"],e=>e.$loaded?1:0);let w=n.ZP.div.withConfig({componentId:"sc-978b91d9-17"})(["position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:",";transition:opacity 0.3s ease-in-out;"],e=>e.$loaded?1:0);n.ZP.div.withConfig({componentId:"sc-978b91d9-18"})(["z-index:9;position:absolute;display:flex;align-items:center;top:0;left:0;flex-direction:column;padding:5px;@media (max-width:768px){z-index:9;}"]),(0,n.ZP)(o.default).withConfig({componentId:"sc-978b91d9-19"})(["@media (max-width:768px){width:40px;height:40px;}"]),n.ZP.div.withConfig({componentId:"sc-978b91d9-20"})(["display:flex;justify-content:center;align-items:center;width:1000px;height:450px;background-color:white;border-radius:20px;box-shadow:0px 2px 5px 2px rgba(0,0,0,0.3);@media (max-width:768px){flex-direction:column;margin:10px 0;box-shadow:none;}"]),n.ZP.div.withConfig({componentId:"sc-978b91d9-21"})(["display:flex;align-items:center;justify-content:flex-end;width:auto;height:40px;opacity:1;cursor:pointer;z-index:9;"])},22545:function(e,t,i){var n=i(86484),o=i(29918),r=i(72044),a=i(13786);t.Z=e=>{let{onError:t,onSuccess:i}=e,d=(0,n.useQueryClient)(),s=(0,r.Z)(),l=async e=>{let t=localStorage.getItem("TOKEN");if(!t)throw Error("로그인이 필요합니다.");return(await o.et.post("/product-inquiry",e,{headers:{Authorization:"Bearer ".concat(t)}})).data},{mutate:c,isLoading:p,error:u}=(0,n.useMutation)(e=>l(e),{onError:e=>{var i;t(null===(i=e.response)||void 0===i?void 0:i.data.message)},onSuccess:e=>{var t;let n=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:0;d.invalidateQueries("productInquiryList"),i(n),(0,a.sendGTMEvent)({id:"product-inquiry-complete",event:"product-inquiry-complete",value:"product-inquiry-complete",gtm:{elementId:"product-inquiry-button"}})}});return{submitInquiry:e=>{s||c(e)},loading:p,error:u}}},57643:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(57437),o=i(2265),r=i(54887),a=i(88862),d=i(29918),s=(e,t)=>{let i=!!(null==t?void 0:t.isSeamless),[n,r]=(0,o.useState)([]),[a,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!0),p=(0,o.useRef)(0),u=(0,o.useRef)(!1),x=(0,o.useRef)(new Set),h=(0,o.useRef)(1),f=(0,o.useCallback)(async(t,n)=>{if(t===p.current&&null!=e)try{let o=await d.Wg.post("product/similar",{productId:e,page:n},{headers:{"Content-Type":"application/json"}});if(t!==p.current)return;let a=o.data,s=Array.isArray(a)?a:Array.isArray(null==a?void 0:a.data)?a.data:[],l=s.map(e=>({id:e.id,categoryId:e.categoryId,category:e.category,subCategory:e.subCategory,img:e.img,name:e.name,isNew:"number"==typeof e.isNew?e.isNew:Number(e.isNew||0),isContract:!0===e.isContract,isHighQuality:!0===e.isHighQuality,isSeamless:!0===e.isSeamless,hasSeamless:!0===e.hasSeamless})).filter(t=>t.id!==e).filter(e=>!x.current.has(e.id)),u=l.map(e=>e.id).filter(e=>Number.isFinite(e));if(u.length>0)try{let[e,i]=await Promise.all([d.Wg.post("product/contract-map",{ids:u}),d.Wg.post("product/seamless-map",{ids:u}).catch(()=>({data:{}}))]);if(t!==p.current)return;let n=(null==e?void 0:e.data)&&"object"==typeof e.data?e.data:{},o=(null==i?void 0:i.data)&&"object"==typeof i.data?i.data:{};l=l.map(e=>{let t=!0===n[e.id]?{...e,isContract:!0}:{...e},i=o[e.id];return i&&(t={...t,img:i.img||t.img,hasSeamless:i.hasSeamless||t.hasSeamless,hasPBR:i.hasPBR||t.hasPBR,isHighQuality:i.isHighQuality||t.isHighQuality}),t})}catch(e){}l.forEach(e=>x.current.add(e.id));let f=i?l.filter(e=>e.isHighQuality||e.hasSeamless||e.isSeamless||e.hasPBR):l;r(e=>[...e,...f]),0===l.length||s.length<30?c(!1):h.current=n+1}catch(e){c(!1)}},[e,i]);(0,o.useEffect)(()=>{p.current+=1;let t=p.current;if(x.current=new Set(null!=e?[e]:[]),h.current=1,u.current=!1,r([]),c(null!=e),null==e){s(!1);return}u.current=!0,s(!0),(async()=>{try{await f(t,1)}finally{t===p.current&&(u.current=!1,s(!1))}})()},[e,f]);let g=(0,o.useCallback)(()=>{if(!l||u.current)return;let e=p.current;u.current=!0,s(!0),(async()=>{try{await f(e,h.current)}finally{e===p.current&&(u.current=!1,s(!1))}})()},[l,f]);return{similarItems:n,isLoading:a,hasMore:l,loadMore:g}},l=i(5537),c=i(43618),p=i(99376),u=i(89723),x=i(64779);let h=e=>{let{text:t}=e,i=(0,o.useRef)(null),r=(0,o.useRef)(null),[a,d]=(0,o.useState)(!1),[s,l]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=()=>{let e=i.current,t=r.current;if(!e||!t)return;let n=t.scrollWidth-e.clientWidth;n>4?(d(!0),l(n)):(d(!1),l(0))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,n.jsx)($,{ref:i,children:(0,n.jsx)(N,{ref:r,$scroll:a,$distance:s,children:t})})},f=e=>{let{text:t}=e,i=(0,o.useRef)(null),r=(0,o.useRef)(null),[a,d]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=()=>{let e=i.current,t=r.current;if(!e||!t)return;let n=t.scrollWidth-e.clientWidth;d(n>2?n:0)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,n.jsx)(K,{ref:i,title:t,$hasOverflow:a>0,children:(0,n.jsx)(V,{ref:r,style:{"--marquee-d":"-".concat(a,"px")},children:t})})};var g=e=>{var t,i,a,g,m,b;let{detail:$,onClose:M,onSimilarClick:N,layerTop:Q=0,filterSnapshot:X,injectedItems:K,injectedHasMore:V,injectedLoadMore:et,injectedLoading:ei}=e,[en,eo]=(0,o.useState)(!1),[er,ea]=(0,o.useState)(null),[ed,es]=(0,o.useState)([]),el=(null!==(t=$.id)&&void 0!==t?t:0)<0||!0===$.isHighQuality;(0,o.useEffect)(()=>{if(ea(null),es([]),!el)return;let e=!0;return d.Wg.post("/product/mytexture/detail",{id:$.id}).then(t=>{if(!e)return;let i=t.data||{};ea({subCategory:i.subCategory,size:i.size,feature:i.feature,country:i.origin,glossiness:i.glossiness}),Array.isArray(i.cases)&&es(i.cases.filter(Boolean))}).catch(()=>{}),()=>{e=!1}},[$.id]);let ec=(0,o.useMemo)(()=>{var e,t,i,n,o;return{...$,subCategory:null!==(e=null==er?void 0:er.subCategory)&&void 0!==e?e:$.subCategory,size:null!==(t=null==er?void 0:er.size)&&void 0!==t?t:$.size,feature:null!==(i=null==er?void 0:er.feature)&&void 0!==i?i:$.feature,country:null!==(n=null==er?void 0:er.country)&&void 0!==n?n:$.country,glossiness:null!==(o=null==er?void 0:er.glossiness)&&void 0!==o?o:$.glossiness}},[$,er]),ep=String(null!==(i=null==$?void 0:$.seamlessImage)&&void 0!==i?i:"").trim(),eu=String(null!==(a=null==$?void 0:$.detailImg)&&void 0!==a?a:"").trim()||(ep&&ep!==String(null!==(g=$.image)&&void 0!==g?g:"")?ep:ec.image),ex=(0,o.useMemo)(()=>{var e;let t=Array.from(new Set((el?[$.image,$.libThumb,...ed]:[$.detailImg||$.image,$.libThumb,...null!==(e=$.cases)&&void 0!==e?e:[]]).filter(Boolean)));return t.length>1?t:[]},[el,$,ed]),eh=(0,o.useRef)(null);(0,o.useEffect)(()=>{ex.slice(1).forEach(e=>{e&&(new window.Image().src=e)})},[ex.join("|")]),(0,o.useEffect)(()=>{if(ex.length<=1)return;let e=eh.current;if(!e)return;let t=setInterval(()=>{let t=e.clientWidth||1,i=(Math.round(e.scrollLeft/t)+1)%ex.length;e.scrollTo({left:i*t,behavior:"smooth"})},2e3);return()=>clearInterval(t)},[ex.length]);let ef=(0,c.sJ)(u.Z),eg=(0,p.useRouter)(),em=!!(null!==(m=null==ef?void 0:ef.isLogin)&&void 0!==m?m:null==ef?void 0:ef.islogin),eb=void 0!==K,{similarItems:ew,isLoading:ev,hasMore:ey,loadMore:ej}=s(eb?null:null!==(b=$.id)&&void 0!==b?b:null,X),eC=(0,o.useMemo)(()=>(null!=K?K:[]).filter(e=>e.id!==$.id),[K,$.id]),eI=eb?eC:ew,ek=eb?!!ei:ev,eP=eb?!!V:ey,eZ=(0,o.useCallback)(()=>{eb?null==et||et():ej()},[eb,et,ej]);(0,o.useEffect)(()=>{let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>{"Escape"===e.key&&eW()};return document.addEventListener("keydown",t),()=>{document.body.style.overflow=e,document.removeEventListener("keydown",t)}},[]);let ez=(0,o.useRef)([]),eS=(0,o.useRef)(null);(0,o.useEffect)(()=>{eo(!1),eS.current&&(eS.current.scrollTop=0)},[$.id]);let eE=(0,o.useRef)(null);(0,o.useEffect)(()=>{var e;let t=eE.current;if(!t)return;let i=new IntersectionObserver(e=>{e[0].isIntersecting&&eZ()},{root:null!==(e=eS.current)&&void 0!==e?e:null,rootMargin:"200px",threshold:0});return i.observe(t),()=>i.disconnect()},[eZ,eP]);let[e$,eM]=(0,o.useState)(!1),eN=(0,o.useCallback)(e=>{N&&(ez.current.push($.id),N(e))},[$.id,N]),eW=(0,o.useCallback)(()=>{if(ez.current.length>0){let e=ez.current.pop();null==N||N(e)}else M()},[M,N]),eD=ek&&0===eI.length,eA=ek&&eI.length>0,eB=document.getElementById("modal-root")||document.body,eL=(0,n.jsx)(w,{$top:Q,children:(0,n.jsx)(v,{ref:eS,children:(0,n.jsxs)(y,{children:[(0,n.jsxs)(j,{children:[(0,n.jsx)(C,{children:(()=>{var e,t,i;let o=String(null!==(e=null==$?void 0:$.seamlessImage)&&void 0!==e?e:"").trim(),r=!!o&&o!==String(null!==(t=null==$?void 0:$.image)&&void 0!==t?t:"")||!!ec.hasSeamless,a=!!String(null!==(i=null==$?void 0:$.pbrImage)&&void 0!==i?i:"").trim();return ec.isHighQuality||a?(0,n.jsx)(x.vW,{size:48}):r?(0,n.jsx)(x.BD,{size:48}):null})()}),ex.length>1?(0,n.jsx)(k,{ref:eh,children:ex.map((e,t)=>(0,n.jsx)(P,{src:e,alt:"".concat(ec.name,"-").concat(t)},t))}):(0,n.jsx)(I,{src:eu,alt:ec.name})]}),(0,n.jsxs)(Z,{children:[(0,n.jsxs)(E,{children:[(0,n.jsx)(h,{text:$.name}),(0,n.jsxs)(W,{children:[ec.category,ec.subCategory?" / ".concat(ec.subCategory):""]})]}),(0,n.jsx)(S,{type:"button",onClick:()=>{eM(!0)},children:"견적 및 지원금 확인"})]}),(0,n.jsx)(z,{children:(0,n.jsx)(D,{type:"button",onClick:()=>eo(e=>!e),children:en?"접기":"더보기"})}),en&&(0,n.jsxs)(A,{children:[ec.code&&(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"코드"}),(0,n.jsx)(R,{children:ec.code})]}),ec.manufacturer&&(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"브랜드"}),(0,n.jsx)(R,{children:em?ec.manufacturer:(0,n.jsx)(q,{type:"button",onClick:()=>eg.push("/login"),children:"\uD83D\uDD12 로그인 후 확인"})})]}),ec.country&&(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"원산지"}),(0,n.jsx)(R,{children:ec.country})]}),ec.size&&(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"규격(mm)"}),(0,n.jsx)(R,{children:ec.size})]}),ec.glossiness&&(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"광택"}),(0,n.jsx)(R,{children:ec.glossiness})]}),ec.feature&&(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"특성"}),(0,n.jsx)(R,{children:ec.feature})]}),(0,n.jsxs)(B,{children:[(0,n.jsx)(L,{children:"설계단가(m\xb2)"}),(0,n.jsx)(R,{children:(()=>{let e=Number(ec.price),t=Number.isFinite(e)&&e>0;return em?t?"".concat(e.toLocaleString(),"원"):"별도문의":(0,n.jsx)(q,{type:"button",onClick:()=>eg.push("/login"),children:"\uD83D\uDD12 로그인 후 확인"})})()})]})]}),(0,n.jsxs)(H,{children:[eD?Array.from({length:6}).map((e,t)=>(0,n.jsxs)(F,{as:"div",children:[(0,n.jsx)(O,{children:(0,n.jsx)(J,{})}),(0,n.jsx)(U,{$width:"80%",$height:12}),(0,n.jsx)(U,{$width:"60%",$height:10})]},"sk-".concat(t))):eI.map(e=>(0,n.jsxs)(F,{type:"button",onClick:()=>eN(e.id),children:[(0,n.jsxs)(O,{children:[(0,n.jsx)(Y,{src:e.img,alt:e.name,loading:"lazy"}),(0,n.jsx)(T,{children:e.isHighQuality||e.hasSeamless&&e.hasPBR?(0,n.jsx)(x.vW,{size:30}):e.hasSeamless?(0,n.jsx)(x.BD,{size:30}):e.isSeamless?(0,n.jsx)(_,{children:"심리스"}):null})]}),(0,n.jsx)(f,{text:e.name}),(0,n.jsxs)(G,{children:[e.category,e.subCategory?" / ".concat(e.subCategory):""]})]},e.id)),eA&&Array.from({length:6}).map((e,t)=>(0,n.jsxs)(F,{as:"div",children:[(0,n.jsx)(O,{children:(0,n.jsx)(J,{})}),(0,n.jsx)(U,{$width:"80%",$height:12}),(0,n.jsx)(U,{$width:"60%",$height:10})]},"more-sk-".concat(t)))]}),eP&&(0,n.jsx)(ee,{ref:eE})]},$.id)})});return(0,n.jsxs)(n.Fragment,{children:[(0,r.createPortal)(eL,eB),(0,n.jsx)(l.c,{open:e$,onClose:()=>eM(!1),productId:$.id,productName:$.name,productImage:$.image,productCategory:$.category,productSubCategory:$.subCategory})]})};let m=(0,a.F4)(["from{transform:translateY(24px);opacity:0;}to{transform:translateY(0);opacity:1;}"]),b=(0,a.F4)(["from{transform:translateY(100%);}to{transform:translateY(0);}"]),w=a.ZP.div.withConfig({componentId:"sc-97e67c76-0"})(["position:fixed;top:","px;left:0;right:0;bottom:0;z-index:13000;background:#ffffff;animation:"," 0.32s cubic-bezier(0.2,0.8,0.2,1);"],e=>{let{$top:t}=e;return t},b),v=a.ZP.div.withConfig({componentId:"sc-97e67c76-1"})(["position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom);"]),y=a.ZP.section.withConfig({componentId:"sc-97e67c76-2"})(["display:flex;flex-direction:column;gap:14px;padding:12px 12px 24px;animation:"," 0.24s ease-out;"],m),j=a.ZP.div.withConfig({componentId:"sc-97e67c76-3"})(["position:relative;width:100%;aspect-ratio:1 / 1;border-radius:16px;overflow:hidden;background:#f4f2ee;"]),C=a.ZP.div.withConfig({componentId:"sc-97e67c76-4"})(["position:absolute;top:8px;left:8px;display:flex;flex-direction:column;gap:4px;z-index:2;pointer-events:none;"]),I=a.ZP.img.withConfig({componentId:"sc-97e67c76-5"})(["width:100%;height:100%;object-fit:cover;display:block;"]),k=a.ZP.div.withConfig({componentId:"sc-97e67c76-6"})(["width:100%;height:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),P=a.ZP.img.withConfig({componentId:"sc-97e67c76-7"})(["flex:0 0 100%;width:100%;height:100%;object-fit:cover;scroll-snap-align:center;display:block;"]);a.ZP.button.withConfig({componentId:"sc-97e67c76-8"})(["position:absolute;top:12px;left:12px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,0.95);color:#111;cursor:pointer;display:grid;place-items:center;z-index:2;box-shadow:0 2px 6px rgba(0,0,0,0.16);"]),a.ZP.button.withConfig({componentId:"sc-97e67c76-9"})(["position:absolute;bottom:12px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,0.5);color:#111;font-size:26px;font-weight:600;line-height:1;padding:0;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,0.12);z-index:2;"]);let Z=a.ZP.div.withConfig({componentId:"sc-97e67c76-10"})(["display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 0;"]);a.ZP.div.withConfig({componentId:"sc-97e67c76-11"})(["display:flex;gap:6px;flex-shrink:0;"]),a.ZP.button.withConfig({componentId:"sc-97e67c76-12"})(["border:1px solid #413d7d;border-radius:999px;background:#ffffff;color:#413d7d;font-weight:700;font-size:13px;padding:7px 10px;cursor:pointer;flex-shrink:0;&:active{background:#eef0fa;}"]);let z=a.ZP.div.withConfig({componentId:"sc-97e67c76-13"})(["position:relative;display:flex;justify-content:center;align-items:center;margin:4px 4px 4px;height:28px;&::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:#e5e2dc;}"]);a.ZP.div.withConfig({componentId:"sc-97e67c76-14"})(["display:flex;gap:14px;color:#5f5c57;font-size:13px;"]),a.ZP.span.withConfig({componentId:"sc-97e67c76-15"})(["display:inline-flex;align-items:center;gap:4px;"]);let S=a.ZP.button.withConfig({componentId:"sc-97e67c76-16"})(["border:0;border-radius:999px;background:#413d7d;color:#fff;font-weight:700;font-size:12px;padding:8px 12px;cursor:pointer;flex-shrink:0;white-space:nowrap;&:hover{background:#2e2b5e;}"]);a.ZP.div.withConfig({componentId:"sc-97e67c76-17"})(["display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:4px 4px 8px;border-bottom:1px solid #e5e2dc;"]);let E=a.ZP.div.withConfig({componentId:"sc-97e67c76-18"})(["flex:1;min-width:0;"]),$=a.ZP.h3.withConfig({componentId:"sc-97e67c76-19"})(["margin:0;font-size:18px;font-weight:700;color:#111;letter-spacing:-0.02em;overflow:hidden;white-space:nowrap;"]),M=(0,a.F4)(["0%,15%{transform:translateX(0);}50%,65%{transform:translateX(var(--marquee-d,0px));}100%{transform:translateX(0);}"]),N=a.ZP.span.withConfig({componentId:"sc-97e67c76-20"})(["display:inline-block;white-space:nowrap;",""],e=>{let{$scroll:t,$distance:i}=e;return t&&i>0?"\n will-change: transform;\n --marquee-d: -".concat(i,"px;\n animation: ").concat(M.getName()," ").concat(Math.max(7,i/30),"s ease-in-out infinite;\n "):""}),W=a.ZP.p.withConfig({componentId:"sc-97e67c76-21"})(["margin:4px 0 0;font-size:13px;color:#5f5c57;"]),D=a.ZP.button.withConfig({componentId:"sc-97e67c76-22"})(["position:relative;z-index:1;border:1px solid #e5e2dc;border-radius:999px;background:#ffffff;font-size:12px;font-weight:600;color:#111;cursor:pointer;padding:4px 14px;flex-shrink:0;"]),A=a.ZP.div.withConfig({componentId:"sc-97e67c76-23"})(["display:grid;gap:8px;padding:8px 4px 12px;border-bottom:1px solid #e5e2dc;"]),B=a.ZP.div.withConfig({componentId:"sc-97e67c76-24"})(["display:grid;grid-template-columns:80px 1fr;gap:12px;font-size:13px;"]),L=a.ZP.span.withConfig({componentId:"sc-97e67c76-25"})(["color:#888381;font-weight:500;"]),R=a.ZP.span.withConfig({componentId:"sc-97e67c76-26"})(["color:#111;font-weight:500;"]),q=a.ZP.button.withConfig({componentId:"sc-97e67c76-27"})(["padding:3px 10px;font-size:13px;font-weight:700;line-height:1;color:#413d7d;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:6px;cursor:pointer;"]),H=a.ZP.div.withConfig({componentId:"sc-97e67c76-28"})(["display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:8px 4px 4px;"]),Q=(0,a.F4)(["0%,100%{opacity:0.55;}50%{opacity:1;}"]),F=a.ZP.button.withConfig({componentId:"sc-97e67c76-29"})(["display:flex;flex-direction:column;background:transparent;border:0;padding:6px 0;text-align:left;cursor:pointer;min-width:0;"]),O=a.ZP.div.withConfig({componentId:"sc-97e67c76-30"})(["position:relative;width:100%;padding-bottom:75%;border-radius:12px;overflow:hidden;background:#efece6;"]),T=a.ZP.div.withConfig({componentId:"sc-97e67c76-31"})(["position:absolute;top:6px;left:6px;z-index:2;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;"]),_=a.ZP.div.withConfig({componentId:"sc-97e67c76-32"})(["padding:2px 7px;border-radius:999px;background:#413d7d;color:#fff;font-size:10px;font-weight:700;line-height:1;white-space:nowrap;"]),Y=a.ZP.img.withConfig({componentId:"sc-97e67c76-33"})(["position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;"]),J=a.ZP.div.withConfig({componentId:"sc-97e67c76-34"})(["position:absolute;inset:0;background:#e8e4dc;animation:"," 1.2s ease-in-out infinite;"],Q),U=a.ZP.div.withConfig({componentId:"sc-97e67c76-35"})(["width:",";height:","px;background:#efece6;border-radius:4px;animation:"," 1.2s ease-in-out infinite;"],e=>{let{$width:t}=e;return t},e=>{let{$height:t}=e;return t},Q),X=(0,a.F4)(["0%,12%{transform:translateX(0);}88%,100%{transform:translateX(var(--marquee-d,0px));}"]),K=a.ZP.div.withConfig({componentId:"sc-97e67c76-36"})(["width:100%;margin-top:3px;overflow:hidden;white-space:nowrap;font-size:13px;font-weight:600;color:#111;line-height:1.1;",""],e=>{let{$hasOverflow:t}=e;return t?"\n mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent 100%);\n -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent 100%);\n &:hover span {\n will-change: transform;\n animation: ".concat(X.getName()," 5s ease-in-out infinite;\n }\n "):""}),V=a.ZP.span.withConfig({componentId:"sc-97e67c76-37"})(["display:inline-block;white-space:nowrap;"]),G=a.ZP.span.withConfig({componentId:"sc-97e67c76-38"})(["font-size:13px;line-height:1.1;color:#888381;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;"]),ee=a.ZP.div.withConfig({componentId:"sc-97e67c76-39"})(["width:100%;height:1px;"])},60331:function(e,t,i){var n=i(29918),o=i(41659);t.Z=(e,t)=>{let{onSuccess:i,onError:r}=t,a={...e,txtSearch:e.txtSearch.trim()};n.es.post("productai",a).then(e=>{let t=null==e?void 0:e.data;if("string"==typeof t&&/errcode/i.test(t)||t&&"object"==typeof t&&"errcode"in t){i([]);return}let r=Array.isArray(t)?t:Array.isArray(null==t?void 0:t.data)?t.data:Array.isArray(null==t?void 0:t.products)?t.products:Array.isArray(null==t?void 0:t.results)?t.results:null;if(!r)throw Error("Unexpected response shape: ".concat(JSON.stringify(t).slice(0,200)));let a=new Set,d=r.map(e=>({...e,isNew:e.isNew,img:(0,o.U)(e.img,400),storeLogo:(0,o.U)(e.storeLogo,96)})).filter(e=>"number"!=typeof e.id||!a.has(e.id)&&(a.add(e.id),!0)),s=d.map(e=>e.id).filter(e=>"number"==typeof e&&Number.isFinite(e)),l=e=>{i(e)};if(0===s.length){l(d);return}let c=s.filter(e=>0!==e);Promise.all([n.Wg.post("product/contract-map",{ids:s}).then(e=>(null==e?void 0:e.data)&&"object"==typeof e.data?e.data:{}).catch(()=>({})),c.length?n.Wg.post("product/seamless-map",{ids:c}).then(e=>(null==e?void 0:e.data)&&"object"==typeof e.data?e.data:{}).catch(()=>({})):Promise.resolve({})]).then(e=>{let[t,i]=e;l(d.map(e=>{let n=!0===t[e.id]?{...e,isContract:!0}:{...e},o=i[e.id];return o&&(o.img&&(n.img=o.img),o.hasSeamless&&(n.hasSeamless=!0),o.hasPBR&&(n.hasPBR=!0),o.isHighQuality&&(n.isHighQuality=!0)),n}))})}).catch(e=>{var t;console.error("[useImgSearch] error",null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status,e),r([e.message||"An unexpected error occurred."])})}},15312:function(e,t,i){i.d(t,{_:function(){return n}});function n(e){return new Promise((t,i)=>{let n=new Image;n.crossOrigin="Anonymous",n.onload=()=>{try{let e=document.createElement("canvas"),o=e.width=Math.min(64,n.naturalWidth||64),r=e.height=Math.min(64,n.naturalHeight||64),a=e.getContext("2d");if(!a){i(Error("canvas 2d context unavailable"));return}a.drawImage(n,0,0,o,r);let{data:d}=a.getImageData(0,0,o,r),s=0,l=0,c=0,p=0;for(let e=0;e{i(e)},n.src=e})}},60162:function(e,t,i){let n=(0,i(43618).cn)({key:"selectedSizeByProductAtom",default:{}});t.Z=n},41659:function(e,t,i){i.d(t,{U:function(){return a}});let n=/(^|\.)backend-snl\.s3([.-][^/]*)?\.amazonaws\.com$/i,o=/(^|\.)mytexture-assets\.s3([.-][^/]*)?\.amazonaws\.com$/i;function r(e,t,i){if(!t||e.pathname.includes("+")||/%2B/i.test(e.pathname))return null;let n=new URL("https://".concat(t).concat(e.pathname));return n.searchParams.set("width",String(i)),n.searchParams.set("format","webp"),n.searchParams.set("quality","75"),n.toString()}function a(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400;if(!e)return e;try{t=new URL(e)}catch(t){return e}if(n.test(t.hostname)){let n=r(t,"d3fa4re4p86i6s.cloudfront.net".trim(),i);return null!=n?n:e}if(o.test(t.hostname)){let n=r(t,"d1r6oy2nx9zv1c.cloudfront.net".trim(),i);return null!=n?n:e}return e}}}]);