"use strict";(globalThis.webpackChunk_shopby_react_skin=globalThis.webpackChunk_shopby_react_skin||[]).push([[9343],{61467(e,t,n){n.d(t,{A:()=>d,d:()=>c});var r=n(54983);const a=864e5;let o=0;function l(e){if("string"!=typeof e)return null;const t=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/.exec(e);if(!t||+t[2]<1||+t[2]>12||+t[3]<1||+t[3]>new Date(Date.UTC(+t[1],+t[2],0)).getUTCDate()||+t[4]>23||+t[5]>59||+(t[6]??0)>59)return null;const n=Date.parse(e.replace(" ","T")+(t[7]?"":"+09:00"));return Number.isFinite(n)?n:null}var i=n(54983);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{const t=(i=(0,r.useState)(0),c=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(i,c)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(i,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],n=function({useEnd:e,issueEnd:t,useDays:n,phase:r="issuable",fallback:o},i){if(!Number.isFinite(i))return{kind:"fallback",text:o};const s=l(e),c="issuable"===r?l(t):null,d=s??c,u=null!=s?"use":"issue",p="issue"===u&&Number.isSafeInteger(n)&&n>0?`발급 후 ${n}일 사용`:null;if(null==d||d-i>a)return{kind:"fallback",text:o,wakeIn:null==d?null:d-i-a};const m=Math.floor(Math.max(0,d-i)/1e3);if(d<=i)return{kind:"expired",text:"issue"===u?"발급 마감":"사용 기한 만료",useNote:p};const h=String(Math.floor(m/3600)).padStart(2,"0"),v=String(Math.floor(m/60)%60).padStart(2,"0"),f=String(m%60).padStart(2,"0");return{kind:"countdown",mode:u,time:`${h}:${v}:${f}`,text:"issue"===u?`발급 마감까지 ${h}:${v}:${f}`:`${h}:${v}:${f} 남음`,useNote:p}}(e,function(e=globalThis.__hvCT,t=performance.now(),n=Date.now()){const r=e?.[0]?.get?.("Date");if(!r||!/GMT$/.test(r))return null;const a=Date.parse(r),l=t-e[1];if(!Number.isFinite(a)||!Number.isFinite(l)||l<0||Number(e[0].get("Age")??0)>0||Math.abs(a+l-n)>1500)return null;const i=a+l+1e3;return o=Math.max(o,i),o}());var i,c;return(0,r.useEffect)(()=>{const e=()=>t(e=>e+1),r="countdown"===n.kind?setInterval(e,1e3):n.wakeIn>0&&n.wakeIn<2147483647?setTimeout(e,n.wakeIn):null;return document.addEventListener("visibilitychange",e),window.addEventListener("pageshow",e),()=>{clearInterval(r),clearTimeout(r),document.removeEventListener("visibilitychange",e),window.removeEventListener("pageshow",e)}},[n.kind,n.wakeIn,e.useEnd,e.issueEnd]),n},d=e=>{const t=c(e);return"countdown"!==t.kind?i.createElement(i.Fragment,null,t.text):i.createElement("span",{"data-coupon-countdown":t.mode,"aria-live":"off","aria-label":t.text,style:{whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"}},"issue"===t.mode?"발급 마감까지 ":null,i.createElement("span",{style:{display:"inline-block",width:"8ch"}},t.time),"use"===t.mode?" 남음":null)}},89933(e,t,n){n.d(t,{A:()=>a});var r=n(54983);function a(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const a=(0,r.useRef)({on:!1});(0,r.useEffect)(()=>(a.current.on=!1,()=>{a.current.on=!1}),[n]);const o=()=>{const t=e.current;t&&(t.style.transition=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"none":"transform var(--h-dur-1) var(--h-ease)",t.style.transform="")};return{onSheetDown:t=>{var n,r;const o=e.current,l=null===(n=(r=t.target).closest)||void 0===n?void 0:n.call(r,".hv-sheet__grip, .hv-pdp-drawer__grip");!l||null==o||!o.contains(l)||!1===t.isPrimary||t.button>0||(a.current={on:!0,y0:t.clientY,dy:0,captured:!1,pointerId:t.pointerId})},onHandleMove:t=>{const n=a.current;if(!n.on||t.pointerId!==n.pointerId)return;n.dy=Math.max(0,t.clientY-n.y0);const r=e.current;if(!n.captured){if(n.dy<=12)return;n.captured=!0;try{t.currentTarget.setPointerCapture(t.pointerId)}catch{}r&&(r.style.animation="none",r.style.transition="none")}r&&(r.style.transform=`translateY(${n.dy}px)`)},onHandleUp:e=>{const n=a.current;n.on&&e.pointerId===n.pointerId&&(n.on=!1,n.dy>90?t():o())},onHandleCancel:()=>{a.current.on&&(a.current.on=!1,o())}}}},30453(e,t,n){var r=n(11089),a=n(82311),o=n(61467),l=n(54983);const i=a.C.couponTicket,s=e=>{let t=e.c,n=e.mode,r=void 0===n?"select":n,a=e.active,s=void 0!==a&&a,c=e.done,d=void 0!==c&&c,u=e.onAction,p=e.bg,m=e.useEnd;const h=!!t.disabled,v="select"===r&&s;let f=null;return h||(f="select"===r?s?l.createElement("span",{className:"hv-ticket__chip hv-ticket__chip--outline"},i.selected):l.createElement("button",{type:"button",onClick:u,className:"hv-ticket__chip hv-ticket__chip--ink"},i.select):d?l.createElement("span",{className:"hv-ticket__chip hv-ticket__chip--muted"},i.done):s?t.unlimited?l.createElement("button",{type:"button",onClick:u,className:"hv-ticket__chip hv-ticket__chip--outline"},i.more):l.createElement("span",{className:"hv-ticket__chip hv-ticket__chip--muted"},i.done):l.createElement("button",{type:"button",onClick:u,className:"hv-ticket__chip hv-ticket__chip--ink"},i.download)),l.createElement("article",{className:`hv-ticket${h?" is-disabled":""}${v?" is-selected":""}`},l.createElement("div",{className:"hv-ticket__body"},l.createElement("p",{className:"hv-ticket__display"},t.display),l.createElement("p",{className:"hv-ticket__title"},t.title),t.badge?l.createElement("span",{className:"hv-ticket__badge"+("brand"===t.badgeType?" hv-ticket__badge--brand":"")},t.badge):null,t.conditions.length>0?l.createElement("ul",{className:"hv-ticket__conds"},t.conditions.map((e,t)=>l.createElement("li",{key:t},l.createElement("span",{"aria-hidden":!0},"·"),l.createElement("span",null,e)))):null),l.createElement("div",{className:"hv-ticket__perf"},l.createElement("span",{"aria-hidden":!0,className:"hv-ticket__notch hv-ticket__notch--l",style:{background:p}}),l.createElement("span",{"aria-hidden":!0,className:"hv-ticket__notch hv-ticket__notch--r",style:{background:p}}),l.createElement("div",{className:"hv-ticket__dash"})),l.createElement("div",{className:"hv-ticket__foot"},l.createElement("span",{className:"hv-ticket__expires"},l.createElement(o.A,{useEnd:m,fallback:t.expires})),f))};s.propTypes={c:(0,r.shape)({display:r.string.isRequired,title:r.string.isRequired,badge:r.string,badgeType:r.string,conditions:(0,r.arrayOf)(r.string).isRequired,expires:r.string.isRequired,disabled:r.bool,unlimited:r.bool}).isRequired,useEnd:r.string,mode:(0,r.oneOf)(["select","download"]),active:r.bool,done:r.bool,onAction:r.func,bg:r.string.isRequired};const c=s;n.d(t,["A",0,c])},32680(e,t,n){var r=n(91598),a=n(54983),o=n(11089),l=n(73994),i=n(63845),s=n(18267),c=n(14303),d=n(54983);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{let t=e.data,n=e.onAdd,o=e.counts,i=void 0===o?{}:o,h=e.disabled,v=void 0!==h&&h;const f=(_=(0,a.useState)(!1),E=2,function(e){if(Array.isArray(e))return e}(_)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(_,E)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(_,E)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=f[0],y=f[1],g=(0,a.useRef)(null);var _,E;if((0,a.useEffect)(()=>{if(!b)return;const e=e=>{g.current&&!g.current.contains(e.target)&&y(!1)},t=e=>{"Escape"===e.key&&y(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[b]),0===t.items.length)return null;const w=(0,s.kCq)(t,i);return d.createElement("section",{"aria-label":t.title||m.eyebrow,className:"hv-pdp-extra"},d.createElement("p",{className:"t-eyebrow hv-pdp-extra__eyebrow"},t.title||m.eyebrow),d.createElement("div",{ref:g,className:"hv-pdp-extra__root"},d.createElement("button",{type:"button","aria-haspopup":"listbox","aria-expanded":b,"aria-disabled":v||void 0,onClick:()=>{v?(0,l.P)(m.needRequired):y(e=>!e)},className:"hv-pdp-extra__field"},d.createElement("span",null,m.pickPh),d.createElement(c.$F,{open:b,size:16})),b?d.createElement("div",{role:"listbox","aria-label":t.title||m.eyebrow,className:"hv-pdp-extra__list"},w.map(e=>d.createElement("button",{key:e.key,type:"button",role:"option","aria-selected":!1,disabled:e.option.soldOut,onClick:()=>{e.option.soldOut||(n(e.item,e.option),y(!1))},className:"hv-pdp-extra__row"+(e.option.soldOut?" is-soldout":"")},d.createElement("span",{className:"hv-pdp-extra__thumb"},e.item.image?d.createElement("img",u({},(0,r.Pp)(e.item.image,64,!1),{alt:"",role:"presentation"})):null),d.createElement("span",{className:"hv-pdp-extra__text"},d.createElement("span",{className:"hv-pdp-extra__title"},e.title),e.caption?d.createElement("span",{className:"hv-pdp-extra__cap"},e.caption):null,d.createElement("span",{className:"hv-pdp-extra__price"},m.won(e.price))),e.option.soldOut?d.createElement("span",{className:"hv-pdp-extra__state"},m.soldOut):e.added>0?d.createElement("span",{className:"hv-pdp-extra__state is-added"},m.added(e.added)):null))):null))};h.propTypes={data:(0,o.shape)({title:o.string,items:(0,o.arrayOf)(o.object).isRequired}).isRequired,onAdd:o.func.isRequired,counts:o.object,disabled:o.bool};const v=h;n.d(t,["A",0,v,"K",0,()=>{"undefined"!=typeof window&&requestAnimationFrame(()=>{const e=document.querySelectorAll("[data-pdp-extra-line]"),t=e[e.length-1];if(!t)return;const n=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollIntoView({block:"nearest",behavior:n?"auto":"smooth"})})}])},6571(e,t,n){n.r(t),n.d(t,{AddedToCartPanel:()=>re,BuyNowScopeSheet:()=>G,ConsentSheet:()=>B,CouponSheet:()=>N,InquiryForm:()=>be,MobileOptionSheet:()=>Re,RestockSheet:()=>I,SimilarEntry:()=>Je,StockNoticeSheet:()=>z,TrustSheet:()=>rt,noteOrderChannel:()=>lt});var r=n(54983),a=n(52386),o=n(79239),l=n(11089),i=n(73994),s=n(63089),c=n(79788),d=n(35303),u=n(66776),p=n(18267),m=n(30453),h=n(55952),v=n(54510),f=n(54983);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t;let n=e.mobile,l=e.coupons,s=e.onClose,c=e.onDownload;const y=(0,r.useContext)(h.q),w=c??(null==y||null===(t=y.actions)||void 0===t?void 0:t.downloadCoupon),N=b((0,r.useState)(!1),2),k=N[0],x=N[1];(0,r.useEffect)(()=>{const e=requestAnimationFrame(()=>x(!0));return()=>cancelAnimationFrame(e)},[]);const C=(0,r.useRef)({}),S=b((0,r.useState)({}),2),A=S[0],R=S[1],T=(0,r.useRef)(null);if(null===T.current){const e={};l.forEach(t=>{e[t.couponNo]=t.issuedCount}),T.current=e}const L=async e=>{if(!1===(null==y?void 0:y.loggedIn))return(0,u.X)("coupon"),"skip";const t=C.current[e.couponNo]??0;if(!e.downloadable)return"skip";if(!e.unlimited&&t>0)return"skip";const n=t+1;C.current[e.couponNo]=n,R({...C.current});try{return await w(e.couponNo),"ok"}catch{return C.current[e.couponNo]=n-1,R({...C.current}),"fail"}};return(0,r.useEffect)(()=>{const e=e=>{"Escape"===e.key&&s()};window.addEventListener("keydown",e);const t=(0,v.z)();return()=>{window.removeEventListener("keydown",e),t()}},[s]),"undefined"==typeof document?null:(0,a.createPortal)(f.createElement("div",{role:"dialog","aria-modal":"true","aria-label":_.couponSheetTitle,onClick:s,className:"hv-pdp-cmodal","data-mobile":n?"":void 0},f.createElement("div",{onClick:e=>e.stopPropagation(),className:"hv-pdp-cmodal__panel"+(k?" is-entered":""),style:{background:E}},f.createElement("div",{className:"hv-pdp-cmodal__head"},f.createElement("h2",null,_.couponSheetTitle),f.createElement("button",{onClick:s,"aria-label":g.a11y.close,className:"hv-pdp-cmodal__x"},f.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},f.createElement("path",{d:"M6 6l12 12M18 6 6 18"})))),f.createElement("div",{className:"hv-pdp-cmodal__body"},!1===(null==y?void 0:y.loggedIn)?f.createElement("p",{className:"hv-pdp-ledger__hint"},d.L.login):null,l.map(e=>{var t,n;const r=null==y||null===(t=y.couponsRaw)||void 0===t?void 0:t.find(t=>t.couponNo===e.couponNo),a=A[e.couponNo]??0,o=!e.downloadable||!e.unlimited&&a>0;return f.createElement(m.A,{key:e.couponNo,c:(0,p.Ee3)(e),useEnd:(null==r||null===(n=r.useConstraint)||void 0===n?void 0:n.useEndYmdt)??(null==r?void 0:r.useEndYmdt),mode:"download",bg:E,active:a>0,done:o,onAction:()=>(async e=>{var t;const n=await L(e);"ok"===n?(0,i.P)(_.couponDownloadedToast(((null===(t=T.current)||void 0===t?void 0:t[e.couponNo])??0)+(C.current[e.couponNo]??0))):"fail"===n&&(0,i.P)(_.couponDownloadFailedToast)})(e)})})),f.createElement(o.N_,{to:"/coupons",onClick:s,className:"hv-pdp-cmodal__all"},_.couponSheetViewAll," ",f.createElement("span",{"aria-hidden":!0},"→")),f.createElement("div",{className:"hv-pdp-cmodal__foot"},f.createElement("button",{onClick:s,className:"hv-pdp-cmodal__close"},_.couponSheetClose),f.createElement("button",{onClick:async()=>{if(!1===(null==y?void 0:y.loggedIn))return void(0,u.X)("coupon");const e=l.filter(e=>e.downloadable&&0===(C.current[e.couponNo]??0));if(0===e.length)return;const t=await Promise.all(e.map(e=>L(e))),n=t.filter(e=>"ok"===e).length,r=t.filter(e=>"fail"===e).length,a=e[0];var o;0===r?(0,i.P)(n>=2||!a?_.couponDownloadedAllToast(n):_.couponDownloadedToast(((null===(o=T.current)||void 0===o?void 0:o[a.couponNo])??0)+1)):0===n?(0,i.P)(_.couponDownloadFailedToast):(0,i.P)(_.couponDownloadedPartialToast(n,r))},className:"hv-pdp-cmodal__all-btn"},_.couponDownloadAll)))),document.body)};w.propTypes={mobile:l.bool.isRequired,coupons:(0,l.arrayOf)((0,l.shape)({couponNo:l.number.isRequired,downloadable:l.bool,unlimited:l.bool,issuedCount:l.number,title:l.string})).isRequired,onClose:l.func.isRequired,onDownload:l.func};const N=w;var k=n(89933),x=n(42998),C=n(19591);var S=n(14303),A=n(14684),R=n(54983);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{let t=e.open,n=e.onClose;const o=(0,h.y)(),l=o.productNo,i=o.options,s=o.actions,c=(0,p.ck8)(i),d=T((0,r.useState)(""),2),u=d[0],m=d[1],f=T((0,r.useState)(""),2),b=f[0],y=f[1],g=T((0,r.useState)(""),2),_=g[0],E=g[1],w=T((0,r.useState)(!1),2),N=w[0],x=w[1],C=T((0,r.useState)(!1),2),L=C[0],O=C[1],I=T((0,r.useState)({ok:!1,error:null}),2),q=I[0],M=I[1],D=(0,r.useRef)(null),F=(0,r.useRef)(null),j=c.length>1?u:1===c.length?String(c[0].optionNo):"",B=(0,k.A)(F,n,t);return(0,r.useEffect)(()=>{var e,r;if(!t)return;D.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const a=(0,v.z)();null===(e=F.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e,{preventScroll:!0});const o=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",o),()=>{var e,t;a(),document.removeEventListener("keydown",o),null===(e=D.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)}},[t,n]),function(e,t){(0,r.useEffect)(()=>{if(!t||"undefined"==typeof window)return;const n=window.visualViewport;if(!n)return;const r=()=>{const t=e.current;t&&(t.style.marginBottom="",t.style.maxHeight="")},a=()=>{const t=e.current;if(!t)return;const a=window.innerWidth<=767?(e=>{const t=null==e?void 0:e.visualViewport;return t?Math.max(0,Math.round(e.innerHeight-t.height-t.offsetTop)):0})(window):0;if(a<80)return r();t.style.marginBottom=`${a}px`,t.style.maxHeight=`${Math.max(0,Math.round(n.height)-16)}px`;const o=document.activeElement,l=t.querySelector(".hv-sheet__scroll");if(!l||!o||o===l||!l.contains(o))return;const i=o.getBoundingClientRect(),s=l.getBoundingClientRect();i.bottom>s.bottom-8?l.scrollTop+=i.bottom-(s.bottom-8):i.top{n.removeEventListener("resize",a),n.removeEventListener("scroll",a),null==o||o.removeEventListener("focusin",a),r()}},[t,e])}(F,t),t?"undefined"==typeof document?null:(0,a.createPortal)(R.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"restock-sheet-title","data-restock-sheet":!0,className:"hv-sheet",onClick:n},R.createElement("div",{onPointerDown:B.onSheetDown,onPointerMove:B.onHandleMove,onPointerUp:B.onHandleUp,onPointerCancel:B.onHandleCancel,ref:F,tabIndex:-1,"data-restock-sheet":!0,className:"hv-sheet__panel hv-sheet__panel--card",onClick:e=>e.stopPropagation()},R.createElement("div",{className:"hv-sheet__grip"},R.createElement(S.Mg,null)),R.createElement("div",{className:"hv-sheet__scroll"},q.ok?R.createElement("div",{role:"status",className:"hv-restock__done"},R.createElement("p",{className:"hv-restock__done-title"},P.success),R.createElement("p",{className:"hv-restock__done-sub"},P.successDetail),R.createElement("button",{type:"button",onClick:n,className:"h-btn h-btn--secondary h-btn--block hv-restock__close-btn"},P.closeBtn)):R.createElement(R.Fragment,null,R.createElement("div",{className:"hv-sheet__titlebar"},R.createElement("h2",{id:"restock-sheet-title",className:"hv-sheet__title"},P.title),R.createElement("button",{type:"button",onClick:n,"aria-label":P.closeBtn,className:"hv-sheet__x"},"×")),R.createElement("form",{onSubmit:async e=>{if(e.preventDefault(),!b.trim())return M({ok:!1,error:P.errors.nameRequired});const t=_.replace(/\D/g,"");if(!/^01\d{8,9}$/.test(t))return M({ok:!1,error:P.errors.invalidMobile});if(!N)return M({ok:!1,error:P.errors.agreementRequired});O(!0);try{await s.restock({productNo:l,optionNos:j?[Number(j)]:[],name:b.trim(),phone:t,privacyInfoAgreement:!0}),M({ok:!0,error:null})}catch(e){var n;M({ok:!1,error:(null==e||null===(n=e.error)||void 0===n?void 0:n.description)??P.errors.generic})}finally{O(!1)}},className:"hv-restock__form"},c.length>1?R.createElement("div",null,R.createElement("label",{htmlFor:"restock-option",className:"hv-restock__label"},$.cart.optionLabel),R.createElement("select",{id:"restock-option",required:!0,value:u,onChange:e=>m(e.target.value),className:"h-input"},R.createElement("option",{value:"",disabled:!0},$.cart.selectOption),c.map(e=>R.createElement("option",{key:e.optionNo,value:String(e.optionNo)},e.label)))):null,R.createElement("div",null,R.createElement("label",{htmlFor:"restock-name",className:"hv-restock__label"},P.nameLabel),R.createElement("input",{id:"restock-name",name:"name",type:"text",required:!0,autoComplete:"name",maxLength:30,value:b,onChange:e=>y(e.target.value),className:"h-input"})),R.createElement("div",null,R.createElement("label",{htmlFor:"restock-phone",className:"hv-restock__label"},P.mobileLabel),R.createElement("input",{id:"restock-phone",name:"phone",type:"tel",inputMode:"numeric",autoComplete:"tel",required:!0,placeholder:P.mobilePlaceholder,value:_,onChange:e=>E(e.target.value),className:"h-input"})),R.createElement("label",{className:"hv-restock__agree"},R.createElement("input",{type:"checkbox",name:"privacyInfoAgreement",required:!0,checked:N,onChange:e=>x(e.target.checked)}),R.createElement("span",null,P.agreement)),q.error?R.createElement("p",{role:"status",className:"hv-restock__error"},q.error):null,R.createElement("button",{type:"submit",disabled:L,className:"h-btn h-btn--point h-btn--block"},R.createElement(R.Fragment,null,L&&R.createElement(A.N2,{label:P.submitting}),P.submit))))))),document.body):null};O.propTypes={open:l.bool.isRequired,onClose:l.func.isRequired};const I=O;var q=n(89111),M=n(46700),D=n(54983);const F={shippingInfo:q.r,checkout:M.P},j=e=>{let t=e.open,n=e.kind,o=void 0===n?"made-to-order":n,l=e.optionLabel,i=e.caption,s=e.onAgree,c=e.onCancel;const d=F.shippingInfo.consentSheet,u="overseas"===o,p=u?[F.checkout.consent.overseasBody]:F.checkout.consent.madeToOrderBody,m=(0,r.useRef)(null),h=(0,r.useRef)(null),f=(0,k.A)(m,c,t);return(0,r.useEffect)(()=>{if(!t)return;h.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const e=(0,v.z)(),n=e=>{"Escape"===e.key&&c()};return document.addEventListener("keydown",n),()=>{var t,r;e(),document.removeEventListener("keydown",n),null===(t=h.current)||void 0===t||null===(r=t.focus)||void 0===r||r.call(t,{preventScroll:!0})}},[t,c]),t?"undefined"==typeof document?null:(0,a.createPortal)(D.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"mto-consent-title","data-mto-sheet":!0,className:"hv-sheet",onClick:c},D.createElement("div",{ref:m,onPointerDown:f.onSheetDown,onPointerMove:f.onHandleMove,onPointerUp:f.onHandleUp,onPointerCancel:f.onHandleCancel,"data-mto-sheet":!0,className:"hv-sheet__panel hv-sheet__panel--card",onClick:e=>e.stopPropagation()},D.createElement("div",{className:"hv-sheet__grip"},D.createElement(S.Mg,null)),D.createElement("div",{className:"hv-sheet__scroll hv-consent__scroll"},D.createElement("div",{className:"hv-sheet__titlebar"},D.createElement("h2",{id:"mto-consent-title",className:"hv-sheet__title"},u?d.overseasTitle:d.title),D.createElement("button",{type:"button",onClick:c,"aria-label":d.otherOption,className:"hv-sheet__x"},"×")),D.createElement("p",{className:"hv-consent__target"},l,i?D.createElement("span",{className:"hv-consent__caption"},i):null),D.createElement("p",{className:"hv-consent__lead"},u?d.overseasLead:d.lead),D.createElement("ul",{className:"hv-consent__list"},p.map(e=>D.createElement("li",{key:e},e)))),D.createElement("div",{className:"hv-consent__ctas"},D.createElement("button",{type:"button",onClick:s,className:"h-btn h-btn--primary h-btn--block"},d.agreeAndSelect),D.createElement("button",{type:"button",onClick:c,className:"h-btn h-btn--secondary h-btn--block"},d.otherOption)))),document.body):null};j.propTypes={open:l.bool.isRequired,kind:(0,l.oneOf)(["made-to-order","overseas"]),optionLabel:l.string.isRequired,caption:l.string,onAgree:l.func.isRequired,onCancel:l.func.isRequired};const B=j;var U=n(54983);const H=e=>{let t=e.notice,n=e.onClose,o=e.onViewCart;const l=(0,r.useRef)(null),i=(0,r.useRef)(null),s=(0,k.A)(l,n,Boolean(t));if((0,r.useEffect)(()=>{if(!t)return;i.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const e=(0,v.z)(),r=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",r),()=>{var t,n;e(),document.removeEventListener("keydown",r),null===(t=i.current)||void 0===t||null===(n=t.focus)||void 0===n||n.call(t,{preventScroll:!0})}},[t,n]),!t||"undefined"==typeof document)return null;const c=x.C.cart.stockLimit,d=t.kind,u=t.stock,p=t.existing,m="list"===d,h=m?t.mixed||t.blocked.some(e=>"full"===e.kind):"full"===d,f=m?t.mixed?c.mixedTitle:c.blockedTitle:"full"===d?c.fullTitle:"partial"===d?c.partialTitle(p):c.reachedTitle(u),b="full"===d?c.fullBody(u):"partial"===d?c.partialBody(u,p):c.reachedBody(u);return(0,a.createPortal)(U.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"pdp-stock-notice-title","data-stock-notice":!0,className:"hv-sheet",onClick:n},U.createElement("div",{ref:l,onPointerDown:s.onSheetDown,onPointerMove:s.onHandleMove,onPointerUp:s.onHandleUp,onPointerCancel:s.onHandleCancel,className:"hv-sheet__panel hv-sheet__panel--card",onClick:e=>e.stopPropagation()},U.createElement("div",{className:"hv-sheet__grip"},U.createElement(S.Mg,null)),U.createElement("div",{className:"hv-sheet__scroll hv-consent__scroll"},U.createElement("div",{className:"hv-sheet__titlebar"},U.createElement("h2",{id:"pdp-stock-notice-title",className:"hv-sheet__title"},f),U.createElement("button",{type:"button",onClick:n,"aria-label":c.close,className:"hv-sheet__x"},"×")),m?U.createElement(U.Fragment,null,U.createElement("ul",{className:"hv-consent__list"},t.blocked.map(e=>U.createElement("li",{key:e.optionNo},e.label," ·"," ","full"===e.kind?c.optionFull(e.stock):c.optionPartial(e.stock,e.existing)))),t.mixed?U.createElement("p",{className:"hv-consent__lead"},c.mixedEnd):null):U.createElement("p",{className:"hv-consent__lead"},b)),U.createElement("div",{className:"hv-consent__ctas"},U.createElement("button",{type:"button",onClick:h?o:n,className:"h-btn h-btn--primary h-btn--block"},h?c.viewCart:c.confirm),h?U.createElement("button",{type:"button",onClick:n,className:"h-btn h-btn--secondary h-btn--block"},c.close):null))),document.body)};H.propTypes={notice:l.object,onClose:l.func.isRequired,onViewCart:l.func.isRequired};const z=H;var W=n(54983);const K=e=>{let t=e.scope,n=e.onClose,o=e.onTogether,l=e.onOnly;const i=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,k.A)(i,n,Boolean(t));if((0,r.useEffect)(()=>{if(!t)return;c.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const e=(0,v.z)(),r=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",r),()=>{var t,n;e(),document.removeEventListener("keydown",r),null===(t=c.current)||void 0===t||null===(n=t.focus)||void 0===n||n.call(t,{preventScroll:!0})}},[t,n]),!t||"undefined"==typeof document)return null;const u=s.C.productDetail.buyScope;return(0,a.createPortal)(W.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"pdp-buy-scope-title","data-buy-scope":!0,className:"hv-sheet",onClick:n},W.createElement("div",{ref:i,onPointerDown:d.onSheetDown,onPointerMove:d.onHandleMove,onPointerUp:d.onHandleUp,onPointerCancel:d.onHandleCancel,className:"hv-sheet__panel hv-sheet__panel--card",onClick:e=>e.stopPropagation()},W.createElement("div",{className:"hv-sheet__grip"},W.createElement(S.Mg,null)),W.createElement("div",{className:"hv-sheet__scroll hv-consent__scroll"},W.createElement("div",{className:"hv-sheet__titlebar"},W.createElement("h2",{id:"pdp-buy-scope-title",className:"hv-sheet__title"},u.title),W.createElement("button",{type:"button",onClick:n,"aria-label":u.close,className:"hv-sheet__x"},"×")),W.createElement("p",{className:"hv-consent__lead"},u.body(t.others.length))),W.createElement("div",{className:"hv-consent__ctas"},W.createElement("button",{type:"button",onClick:o,className:"h-btn h-btn--primary h-btn--block"},u.together),W.createElement("button",{type:"button",onClick:l,className:"h-btn h-btn--secondary h-btn--block"},u.only)))),document.body)};K.propTypes={scope:l.object,onClose:l.func.isRequired,onTogether:l.func.isRequired,onOnly:l.func.isRequired};const G=K;var Y=n(92213),V=n(75439),Q=n(54983);function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{let t=e.title,n=e.items,r=e.mobile;return Q.createElement("section",{className:"hv-pdp-am__rail"},Q.createElement("h3",{className:"hv-pdp-am__rail-title"},t),Q.createElement("div",{className:r?"hv-pdp-am__scroller hv-no-scrollbar":"hv-pdp-am__grid"},n.map(e=>Q.createElement("div",{key:e.productNo,className:"hv-pdp-am__cell"},Q.createElement(Y.A,{product:e,wishlistNext:`/products/${e.productNo}`})))))};te.propTypes={title:l.string.isRequired,items:(0,l.arrayOf)(l.object).isRequired,mobile:l.bool.isRequired};const ne=e=>{let t=e.open,n=e.setOpen;const a=(0,h.y)(),l=a.productNo,i=a.brand,s=a.baseInfo,c=(0,S.al)(),d=J((0,r.useState)([]),2),u=d[0],m=d[1],f=J((0,r.useState)([]),2),b=f[0],y=f[1],g=(0,r.useRef)(null),_=(0,r.useRef)(!1),E=(0,r.useRef)(null),w=J((0,r.useState)(0),2),N=w[0],k=w[1];if((0,r.useEffect)(()=>{if(!t)return;let e=!0;if(0===u.length&&(0,V.oc)({productNo:l,brandNo:i.brandNo,displayCategoryNos:s.displayCategoryNos??null}).then(t=>{e&&Array.isArray(null==t?void 0:t.items)&&m(t.items)}).catch(()=>{}),0===b.length){const t=(0,p.mBT)(window.localStorage).filter(e=>e!==l);t.length>0&&(0,V.fetchByProductNos)(t.slice(0,8)).then(t=>{e&&Array.isArray(t)&&y(t)}).catch(()=>{})}return()=>{e=!1}},[t,l,i.brandNo,s.displayCategoryNos,u.length,b.length]),(0,r.useEffect)(()=>{if(!t)return;const e=e=>{"Escape"===e.key&&n(!1)};window.addEventListener("keydown",e);const r=(0,v.z)();return()=>{window.removeEventListener("keydown",e),r()}},[t]),!t)return null;const x=()=>n(!1),C=u.slice(0,6),A=b.filter(e=>!C.some(t=>t.productNo===e.productNo)).slice(0,6),R=null!=g.current;return Q.createElement("div",{role:"dialog","aria-modal":"true","aria-label":ee.aria,onClick:x,className:"hv-pdp-am","data-mobile":c?"":void 0},Q.createElement("div",X({onClick:e=>e.stopPropagation(),className:"hv-pdp-am__panel",style:{transform:c&&N>0?`translateY(${N}px)`:void 0,transition:R?"none":void 0}},c?{onPointerDown:e=>{const t=E.current;t&&t.contains(e.target)&&t.scrollTop>0||(e=>{g.current=e.clientY,_.current=!1})(e)},onPointerMove:e=>{if(null==g.current)return;const t=Math.max(0,e.clientY-g.current);var n,r;!_.current&&t>12&&(_.current=!0,null===(n=(r=e.currentTarget).setPointerCapture)||void 0===n||n.call(r,e.pointerId)),k(t)},onPointerUp:()=>{if(null==g.current)return;const e=N>80;g.current=null,k(0),e&&x()},onPointerCancel:()=>{g.current=null,k(0)}}:{}),Q.createElement("div",{className:"hv-pdp-am__head"},c?Q.createElement(Q.Fragment,null,Q.createElement("span",{className:"hv-sheet-handle hv-pdp-am__handle","aria-hidden":!0}),Q.createElement("div",{className:"hv-pdp-am__titlerow"},Q.createElement("p",{className:"hv-pdp-am__title-m"},ee.added),Q.createElement(S.s_,{onClick:x}))):Q.createElement("h2",{className:"hv-pdp-am__title"},ee.titlePc),c?null:Q.createElement(S.s_,{onClick:x,className:"hv-pdp-am__x"})),Q.createElement("div",{ref:E,className:"hv-pdp-am__body"},c?null:Q.createElement(Q.Fragment,null,Q.createElement("p",{className:"hv-pdp-am__added"},ee.added),Q.createElement("div",{className:"hv-pdp-am__ctas"},Q.createElement("button",{onClick:x,className:"h-btn h-btn--secondary hv-pdp-am__cta"},ee.continueShopping),Q.createElement(o.N_,{to:"/cart",onClick:x,className:"h-btn h-btn--primary hv-pdp-am__cta"},ee.goCart))),C.length>0?Q.createElement(te,{title:ee.related,items:C,mobile:c}):null,A.length>0?Q.createElement("div",{style:{marginTop:C.length>0?28:0}},Q.createElement(te,{title:ee.recent,items:A,mobile:c})):null),c?Q.createElement("div",{className:"hv-pdp-am__foot"},Q.createElement(o.N_,{to:"/cart",onClick:x,className:"h-btn h-btn--primary h-btn--block"},ee.goCartMobile)):null))},re=ne;ne.propTypes={open:l.bool.isRequired,setOpen:l.func.isRequired};var ae=n(91598),oe=n(74148);var le=n(76328),ie=n(10340);var se=n(78428),ce=n(54983);function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n`안녕하세요, ${e}님`,inquiryUntitled:"(제목 없음)",greetingWeekly:(e,t)=>`${e}님, 이번 주 ${t.toLocaleString("ko-KR")}개를 발견하셨네요`,greetingDiscovery:(e,t)=>`${e}님, 지금까지 ${t.toLocaleString("ko-KR")}개를 발견하셨어요`,report:{metaTitle:"취향 리포트",entranceTitle:(e,t)=>`${e}월 ${t}주 취향 리포트가 나왔어요`,entranceSubProfile:(e,t,n,r)=>`${e} · 상품 ${t.toLocaleString("ko-KR")} · 브랜드 ${n.toLocaleString("ko-KR")} · 스토리 ${r.toLocaleString("ko-KR")}`,entranceLockedTitle:"취향 리포트를 만드는 중이에요",entranceLockedSub:(e,t,n,r)=>`상품 ${e}/${r.product} · 브랜드 ${t}/${r.brand} · 스토리 ${n}/${r.story}`,entranceAria:"주간 취향 리포트 열기",eyebrow:(e,t)=>`MY ISSUE · ${e}월 ${t}주`,issueNoPrefix:"No.",headlineProfile:(e,t)=>`${e} 님의 취향 유형은\n‘${t}’`,rowSavedWeekly:"이번 주 상품 저장",rowProductSaved:"저장 상품",rowBrandSaved:"저장 브랜드",rowStorySaved:"저장 스토리",rowTopBrand:"가장 많이 담은 브랜드",streakWeekAria:(e,t)=>`${0===e?"이번 주":`${e}주 전`} · ${t?"저장 있음":"저장 없음"}`,fallbackBrand:"저장한 브랜드",fallbackStoryCategory:"저장한 이야기",recentPicksLabel:"최근 담은 것들",thumbAlt:e=>`최근 저장 상품 · ${e}`,gbTease:e=>`이 취향이면, ${e}요일 리밋오더가 마음에 들 거예요`,gbMatch:(e,t)=>`저장하신 브랜드가 다음 ${e}요일 리밋오더와 ${t}건 겹쳐요`,shareCta:"이미지로 공유하기",sharePreparing:"이미지 만드는 중…",shareFail:"이미지 저장에 실패했어요. 잠시 후 다시 시도해주세요.",shareText:"이번 주 나의 취향 리포트 · have a",emptyTitle:"아직 리포트에 담을 발견이 없어요",emptyBody:"마음에 드는 상품과 브랜드, 스토리를 저장하면 취향 리포트가 만들어져요.",emptyCta:"오늘의 발견 보러 가기",gateTitle:e=>`${e}님의 취향을 더 정확히 읽고 있어요`,gateBody:e=>`상품 ${e.product}개·브랜드 ${e.brand}개·스토리 ${e.story}개를 저장하면 취향 유형과 맞춤 아이템이 열려요.`,gateDone:"기준 충족",gateRemaining:e=>`${e}개 더 저장`,gateFoot:"세 가지 저장을 모두 채우면 성향 해설과 구매 추천을 한 번에 보여드려요.",gateChannels:{product:{label:"상품",cta:"상품 발견하기"},brand:{label:"브랜드",cta:"브랜드 둘러보기"},story:{label:"스토리",cta:"스토리 고르기"}},backAria:"마이페이지로"},fallbackName:"회원",gradeFallback:"회원 등급",summaryAccumulation:"사용 가능 적립금",summaryCoupons:"사용 가능 쿠폰",summaryWishlist:"저장",couponUnit:"장",benefits:{saveRate:"적립률",discountRate:"추가 할인",nextGradeRequired:"다음 등급까지"},menu:{orders:"주문 내역",claims:"취소·반품·교환",inquiries:"1:1 문의",coupons:"쿠폰함",points:"적립금",wishlist:"저장",addresses:"주소록",profile:"회원 정보",grade:"회원 등급",reviews:"내 리뷰",marketingConsent:"마케팅 수신 동의",issuableCoupons:"쿠폰 받기"},reviews:{title:"내 리뷰",eyebrow:"My Reviews",empty:"작성한 리뷰가 없어요.",emptyCta:"주문 내역에서 구매한 상품에 리뷰를 남겨보세요.",countSuffix:"개",error:"리뷰를 불러오지 못했어요. 잠시 후 다시 시도해주세요.",ratingAria:e=>`평점 ${e}점`,productFallback:e=>`상품 ${e}`},asideNavAriaLabel:"마이페이지 메뉴",defaultGradeName:"회원",pointBalanceLabel:e=>` · 적립 ${e.toLocaleString("ko-KR")}P`,recentOrdersHeading:"최근 주문",recentOrdersEmpty:"최근 주문이 없어요.",recentOrdersViewAll:"전체 보기 →",quickLinksHeading:"바로가기",more:"더보기",ordersTable:{date:"주문일",items:"주문 내역",orderNo:"주문번호",amount:"결제금액",status:"상태"},extraCount:e=>`외 ${e}건`,expiry:{badge:"만료 임박",couponLabel:"7일 이내 만료",pointLabel:"이번달 소멸예정",countUnit:"건"},stats:{tier:"멤버십 등급",coupon:"쿠폰",review:"작성 가능한 리뷰",point:"적립금"},saved:{heading:"나의 저장 리스트",emptyProduct:"저장한 상품이 없어요.",emptyBrand:"저장한 브랜드가 없어요.",emptyContent:"저장한 콘텐츠가 없어요.",removeAria:"저장 해제"},support:{heading:"고객센터",qaGuide:"상품 문의는 각 상품 Q&A를 이용해주세요.",email:"hello@havea.co.kr",hoursLabel:"운영시간",hoursValue:": 평일 10:00~17:00",inquiryCta:"1:1 문의",chatCta:"1:1 상담",replyEta:"영업일 기준 1~2일 내 답변",chatPreparing:"상담 준비 중"},loginNext:"/mypage"}},he=me.pdpInquiries.write,ve=e=>{const t=me.review.photo;return"maxReached"===e?t.maxReached(5):t[e]??t.uploadFail},fe=e=>{let t=e.productNo,n=e.onSubmitted,a=e.open,o=e.setOpen;(0,h.y)().loggedIn;const l=(0,oe.Zp)(),i=ue((0,r.useState)("GENERAL"),2),s=i[0],c=i[1],d=ue((0,r.useState)(""),2),u=d[0],m=d[1],f=ue((0,r.useState)(""),2),b=f[0],y=f[1],g=ue((0,r.useState)([]),2),_=g[0],E=g[1],w=ue((0,r.useState)(null),2),N=w[0],k=w[1],x=ue((0,r.useState)(!1),2),C=x[0],R=x[1],T=ue((0,r.useState)(!1),2),L=T[0],$=T[1],P=ue((0,r.useState)(null),2),O=P[0],I=P[1],q=ue((0,r.useState)({}),2),M=q[0],D=q[1],F=(0,r.useRef)(null),j=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!a)return;const e=(0,v.z)(),t=setTimeout(()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.focus()},50),n=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("keydown",n),()=>{e(),document.removeEventListener("keydown",n),clearTimeout(t)}},[a]);const B=me.mypage.support;return ce.createElement(ce.Fragment,null,a?ce.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"inquiry-modal-title",className:"hv-pdp-imodal",onClick:e=>{e.target===e.currentTarget&&o(!1)}},ce.createElement("div",{className:"hv-pdp-imodal__panel"},ce.createElement("header",{className:"hv-pdp-imodal__head"},ce.createElement("h2",{id:"inquiry-modal-title",className:"hv-pdp-imodal__title"},he.modalTitle),ce.createElement(S.s_,{onClick:()=>o(!1)})),ce.createElement("form",{onSubmit:async e=>{var r;e.preventDefault(),I(null);const a=(0,p.OGr)({title:u,content:b});if(Object.keys(a).length>0)return void D({title:a.title?he.errors.title:void 0,content:a.content?he.errors.content:void 0});D({});const i=(0,p.iZH)(s)?s:"GENERAL",d=null===(r=he.types.find(e=>e.value===i))||void 0===r?void 0:r.label;$(!0);try{await(0,V.e)({productNo:t,title:(0,p.sX7)(u,d),content:b.trim()}),o(!1),m(""),y(""),E([]),c("GENERAL"),null==n||n()}catch(e){var h;const n=(null==e?void 0:e.status)??(null==e||null===(h=e.response)||void 0===h?void 0:h.status);if(401===n||403===n)return void l(`/login?next=${encodeURIComponent(`/products/${t}`)}`);if(n){var v;const t="string"==typeof(null==e?void 0:e.body)?e.body:(null==e||null===(v=e.response)||void 0===v||null===(v=v.data)||void 0===v?void 0:v.message)??"";I(he.errors.http(n,t?String(t).slice(0,200):""))}else I(he.errors.unexpected)}finally{$(!1)}},className:"hv-pdp-imodal__form"},O?ce.createElement("p",{role:"alert",className:"hv-pdp-imodal__alert"},O):null,ce.createElement("div",null,ce.createElement("label",{htmlFor:"inquiry-type",className:"hv-pdp-imodal__label"},he.typeLabel),ce.createElement("select",{ref:F,id:"inquiry-type",name:"inquiryType",value:s,onChange:e=>c(e.target.value),className:"h-input hv-pdp-imodal__field"},he.types.map(e=>ce.createElement("option",{key:e.value,value:e.value},e.label)))),ce.createElement("div",null,ce.createElement("label",{htmlFor:"inquiry-title",className:"hv-pdp-imodal__label"},he.titleLabel," ",ce.createElement("span",{className:"hv-pdp-imodal__req"},"*")),ce.createElement("input",{id:"inquiry-title",name:"title",type:"text",maxLength:100,required:!0,"aria-invalid":Boolean(M.title),value:u,onChange:e=>m(e.target.value),className:"h-input hv-pdp-imodal__field"}),M.title?ce.createElement("p",{className:"hv-pdp-imodal__err"},M.title):null),ce.createElement("div",null,ce.createElement("label",{htmlFor:"inquiry-content",className:"hv-pdp-imodal__label"},he.contentLabel," ",ce.createElement("span",{className:"hv-pdp-imodal__req"},"*")),ce.createElement("textarea",{id:"inquiry-content",name:"content",maxLength:2e3,required:!0,rows:6,"aria-invalid":Boolean(M.content),value:b,onChange:e=>y(e.target.value),className:"hv-pdp-imodal__textarea"}),M.content?ce.createElement("p",{className:"hv-pdp-imodal__err"},M.content):null),ce.createElement("div",null,ce.createElement("p",{className:"hv-pdp-imodal__photos-title"},me.review.photo.addCta),ce.createElement("div",{className:"hv-pdp-imodal__photos"},_.map((e,t)=>ce.createElement("div",{key:e,className:"hv-pdp-imodal__photo"},ce.createElement("img",de({},(0,ae.Pp)(e.startsWith("//")?`https:${e}`:e,88,!1),{alt:me.review.photo.previewAlt(t+1)})),ce.createElement("button",{type:"button",onClick:()=>{return e=t,E(t=>t.filter((t,n)=>n!==e));var e},"aria-label":me.review.photo.removeAria(t+1),className:"hv-pdp-imodal__photo-x"},"✕"))),_.length<5?ce.createElement("label",{className:"hv-pdp-imodal__photo-add"},ce.createElement(ce.Fragment,null,C&&ce.createElement(A.N2,{label:me.review.photo.uploading}),`+ ${_.length}/5`),ce.createElement("input",{ref:j,type:"file",accept:p.AG1.join(","),disabled:C,onChange:async e=>{var t;k(null);const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;const r=(0,p.b5P)(n,_.length,!1);if(r)return k(ve(r)),void(e.target.value="");R(!0);try{const e=await(0,se.me)(n),t=(0,p.b5P)(e,_.length);if(t)return void k(ve(t));const r=await(0,V.qy)(e);E(e=>[...e,r.imageUrl])}catch(e){k(e instanceof RangeError?me.imageUploadSourceTooLarge:null!=e&&e.status?`${me.review.photo.uploadFail} (HTTP ${e.status})`:me.review.photo.uploadFail)}finally{R(!1),j.current&&(j.current.value="")}},className:"hv-sr-only"})):null),N?ce.createElement("p",{role:"alert",className:"hv-pdp-imodal__err"},N):null),ce.createElement("p",{className:"t-small hv-pdp-imodal__secret"},he.secretLabel),ce.createElement("p",{className:"t-small hv-pdp-imodal__hours"},"* ",B.hoursLabel,B.hoursValue," · ",B.replyEta,"."),ce.createElement("div",{className:"hv-pdp-imodal__foot"},ce.createElement("button",{type:"button",onClick:()=>o(!1),className:"hv-pdp-imodal__cancel"},he.cancelCta),ce.createElement("button",{type:"submit",disabled:L,className:"h-btn h-btn--primary hv-pdp-imodal__submit"},ce.createElement(ce.Fragment,null,L&&ce.createElement(A.N2,{label:he.submittingCta}),he.submitCta)))))):null)};fe.propTypes={productNo:l.number.isRequired,onSubmitted:l.func,open:l.bool.isRequired,setOpen:l.func.isRequired};const be=fe;var ye=n(32680),ge=n(14137),_e=n(54983);function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n`${e.toLocaleString("ko-KR")}${Ne.summary.currencySuffix}`,Se=e=>{let t=e.label,n=e.open,a=e.onToggle,o=e.items,l=e.onPick,i=e.leads,s=void 0===i?null:i;const c=o.length>=12,d=(h=(0,r.useState)(""),v=2,function(e){if(Array.isArray(e))return e}(h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(h,v)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(h,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],m=d[1];var h,v;(0,r.useEffect)(()=>{n||m("")},[n]);const f=(0,p.uZ$)(o,u);return _e.createElement("div",{className:"hv-pdp-mdd"},_e.createElement("button",{type:"button",onClick:a,className:"hv-pdp-mdd__trigger"},_e.createElement("span",null,t),_e.createElement(S.$F,{open:n,size:14})),n?_e.createElement("ul",{className:"hv-pdp-mdd__list"},c?_e.createElement("li",{className:"hv-pdp-mdd__search"},_e.createElement("input",{type:"search",value:u,onChange:e=>m(e.target.value),placeholder:Ne.optionSearchPh,"aria-label":Ne.optionSearchPh,autoComplete:"off",className:"hv-pdp-mdd__search-input"})):null,c&&0===f.length?_e.createElement("li",{className:"hv-pdp-mdd__empty"},Ne.optionSearchEmpty):null,f.map(e=>{var t,n;const r=(0,p.B0e)(e),a=(0,p.SXn)(e.value);return _e.createElement("li",{key:e.optionNo},_e.createElement("button",{type:"button",disabled:r,onClick:()=>l(e),className:"hv-pdp-mdd__item"+(r?" is-disabled":"")},_e.createElement("span",{className:"hv-pdp-mdd__text"},_e.createElement("span",{className:"hv-pdp-mdd__main"},a[0]??e.value),a.length>1?_e.createElement("span",{className:"hv-pdp-mdd__sub"},a.slice(1).join(" · ")):null),r||null!==(t=e.children)&&void 0!==t&&t.length||null==s||null===(n=s[e.optionNo])||void 0===n||!n.trailing?null:_e.createElement("span",{className:"hv-pdp-mdd__trail"+(s[e.optionNo].trailing.includes(we.shippingInfo.lowStockOption)?" is-warn":"")},s[e.optionNo].trailing),e.addPrice?_e.createElement("span",{className:"hv-pdp-mdd__add"},e.addPrice>0?"+":"−",Math.abs(e.addPrice).toLocaleString("ko-KR"),Ne.summary.currencySuffix):null))})):null)};Se.propTypes={label:l.string.isRequired,open:l.bool.isRequired,onToggle:l.func.isRequired,items:(0,l.arrayOf)(l.object).isRequired,onPick:l.func.isRequired,leads:l.object};const Ae=e=>{let t=e.view;const n=t.actions,r=t.addExtra,a=t.addOption,o=t.basePrice,l=t.closeSheet,i=t.ctaDisabled,s=t.extraProducts,c=t.flatOptions,d=t.handleSheetSubmit,u=t.hasOptions,p=t.isSheetOptionDisabled,m=t.items,h=t.leafDropdownOpen,v=t.ledger,f=t.mainMaxQty,b=t.maxQty,y=t.maxQtyWithStock,g=t.minQty,_=t.noOptionQty,E=t.onHandleCancel,w=t.onHandleMove,N=t.onHandleUp,k=t.onSheetDown,x=t.optionLeads,C=t.optionParts,A=t.options,R=t.productName,T=t.removeItem,L=t.reqGroups,$=t.reqProgress,P=t.requiredComplete,O=t.rootDropdownOpen,I=t.rootLabelExtra,q=t.rootLabelFromOptions,M=t.selectedRoot,D=t.setItems,F=t.setLeafDropdownOpen,j=t.setNoOptionQty,B=t.setRootDropdownOpen,U=t.setSelectedRoot,H=t.setStepOpen,z=t.sheetPanelRef,W=t.sheetScrollRef,K=t.shipHint,G=t.shipLedger,Y=t.singleOptionNo,V=t.stepOpen,Q=t.stockFor,X=t.updateQtyInItems;return _e.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confidence-drawer-title",className:"hv-pdp-drawer",onClick:l},_e.createElement("div",{ref:z,className:"hv-pdp-drawer__panel",onClick:e=>e.stopPropagation(),onPointerDown:k,onPointerMove:w,onPointerUp:N,onPointerCancel:E},_e.createElement("div",{className:"hv-pdp-drawer__grip"},_e.createElement(S.Mg,null)),_e.createElement("div",{ref:W,className:"hv-pdp-drawer__scroll"},_e.createElement("div",{className:"hv-pdp-drawer__titlewrap"},_e.createElement("span",{id:"confidence-drawer-title",className:"hv-pdp-drawer__title"},ke.expectedTotal)),c?_e.createElement("div",{className:"hv-pdp-drawer__flat"},_e.createElement("p",{className:"hv-pdp-drawer__prompt"},ke.optionPrompt(q(c)??Ne.optionLabel)),_e.createElement("div",{className:"hv-pdp-drawer__btns"},c.map(e=>{const t=p(e),n=m.some(t=>t.optionNo===e.optionNo);return _e.createElement("button",{key:e.optionNo,type:"button",disabled:t,onClick:()=>a(e),className:`hv-pdp-drawer__btn${n?" is-picked":""}${t?" is-disabled":""}`},e.value,e.addPrice?_e.createElement("span",{className:"hv-pdp-drawer__btn-add"},e.addPrice>0?"+":"−",Math.abs(e.addPrice).toLocaleString("ko-KR")):null)}))):u&&L.length>1?_e.createElement("div",{className:"hv-pdp-drawer__steps"},L.slice(0,$.openUpTo+1).map((e,t)=>_e.createElement(Se,{key:e.label||t,label:Ne.optionStep(t+1,C(e.label)[0]??Ne.optionLabel),open:V===t,onToggle:()=>H(e=>e===t?null:t),items:e.options,leads:x,onPick:e=>{const n=$.chosen[t];null!=n&&n!==e.optionNo&&T(n),n!==e.optionNo&&a(e),H(null)}}))):u?_e.createElement(_e.Fragment,null,_e.createElement(Se,{label:C(q(A))[0]??Ne.optionLabel,open:O,onToggle:()=>B(e=>!e),items:A,leads:x,onPick:e=>{e.children&&e.children.length>0?(U(e.optionNo),B(!1),F(!0)):a(e)}}),I.length>0?_e.createElement("p",{className:"hv-pdp-drawer__labelextra"},I.join(" · ")):null,null!=M?(e=>{const t=A.find(e=>e.optionNo===M),n=(null==t?void 0:t.children)??[];return t&&0!==n.length?_e.createElement("div",{className:"hv-pdp-drawer__leaf"},_e.createElement(Se,{label:`${C(null===(e=n.find(e=>e.label))||void 0===e?void 0:e.label)[0]??Ne.optionLabel} (${C(t.value)[0]??""})`,open:h,onToggle:()=>F(e=>!e),items:n,leads:x,onPick:e=>a(e,t)})):null})():null):null,s&&s.items.length>0?_e.createElement(ye.A,{data:s,onAdd:r,counts:Object.fromEntries(m.filter(e=>e.extra).map(e=>[e.optionNo,e.qty])),disabled:!P}):null,_e.createElement(ge.A,{lines:m,productName:R,hideTotal:!0,fixedMain:u?null:{label:R,unitPrice:o,qty:_,min:g,max:b<999?b:void 0,onChange:e=>{const t=Q(Y);e>0&&t>0&&t=f?n.showStockLimit(t):j(t=>Math.min(f,Math.max(Math.min(g,f),t+e)))}},onChangeQty:(e,t)=>{const r=m.find(t=>t.optionNo===e),a=null!=r&&r.extra?null:Q(e),o=y(b,a);t>0&&a>0&&a=o?n.showStockLimit(a):D(n=>X(n,e,t,o))},onRemove:T}),_e.createElement("div",{className:"hv-pdp-drawer__ledger"},_e.createElement("div",{className:"hv-pdp-drawer__lrow"},_e.createElement("span",{className:"hv-pdp-drawer__lkey"},Ne.summary.subtotal),_e.createElement("span",{className:"hv-pdp-drawer__lval"},Ce(v.gross))),v.instantOff>0?_e.createElement("div",{className:"hv-pdp-drawer__lrow"},_e.createElement("span",{className:"hv-pdp-drawer__lkey"},ke.immediateDiscount),_e.createElement("span",{className:"hv-pdp-drawer__lval hv-pdp-drawer__lsale"},"-",Ce(v.instantOff))):null,v.coupon>0?_e.createElement("div",{className:"hv-pdp-drawer__lrow"},_e.createElement("span",{className:"hv-pdp-drawer__lkey"},ke.couponDiscount),_e.createElement("span",{className:"hv-pdp-drawer__lval hv-pdp-drawer__lsale"},"-",Ce(v.coupon))):null,_e.createElement("div",{className:"hv-pdp-drawer__lrow",style:{marginBottom:K.length>0?6:16}},_e.createElement("span",{className:"hv-pdp-drawer__lkey"},ke.shippingRow),_e.createElement("span",{className:"hv-pdp-drawer__lval hv-pdp-drawer__lship"},null!=(null==G?void 0:G.struckAmt)?_e.createElement("s",{className:"hv-pdp-drawer__lstruck"},xe.deliveryAmt(G.struckAmt.toLocaleString("ko-KR"))):null,G?"free"===(J=G.value).kind?xe.deliveryFree:"amt"===J.kind?xe.deliveryAmt(J.amt.toLocaleString("ko-KR")):xe.deliveryUnknown:ke.shippingTbd)),K.length>0?_e.createElement("p",{className:"hv-pdp-drawer__lhint"},K.join(" · ")):null,_e.createElement("div",{className:"hv-pdp-drawer__ltotal"},_e.createElement("span",{className:"hv-pdp-drawer__ltotal-label"},ke.ledgerTotalLabel),_e.createElement("span",{className:"hv-pdp-drawer__ltotal-amt"},Ce(v.total))),v.saved>0?_e.createElement("p",{className:"hv-pdp-drawer__lsaved"},ke.savedLine(v.saved.toLocaleString("ko-KR"))):null)),_e.createElement("div",{className:"hv-pdp-drawer__cta"},_e.createElement("button",{type:"button",onClick:()=>d("cart"),disabled:i,className:"h-btn h-btn--secondary h-btn--lg"},Ne.addToCart),_e.createElement("button",{type:"button",onClick:()=>d("buy"),disabled:i,className:"h-btn h-btn--primary h-btn--lg"},Ne.buyNow))));var J};Ae.propTypes={view:l.object.isRequired};const Re=Ae;var Te=n(74145);const Le={pill:"유사 상품",pillAria:"유사 상품 보기",title:"유사 상품",close:"닫기",chipsAria:"유사 상품 거르기",chips:{"other-brand":"다른 브랜드","on-sale":"할인 중"},count:e=>`유사 상품 ${Number(e).toLocaleString("ko-KR")}개`,loading:"유사 상품을 불러오고 있어요",emptyTitle:"아직 유사 상품을 찾지 못했어요",emptyBody:"유사 상품이 들어오면 여기에 보여 드릴게요",filterEmpty:"조건에 맞는 상품이 없어요",filterOff:"필터 끄기",listName:"PDP similar"};var $e=n(19379),Pe=n(58481),Oe=n(68801),Ie=n(36515),qe=n(54425),Me=n(36328);const De=["other-brand","on-sale"],Fe=e=>`${$e.S_}${e}`;function je(e,t,n,r){if("string"==typeof r&&r.trim())return`code:${r.trim()}`;if("string"!=typeof t||!t.trim()||"function"!=typeof e)return null;const a=Number.isInteger(n)&&n>0?n:null,o=e(t,a);return o?`${a||"-"}:${o.stemKey}`:null}const Be=e=>({...e.baseInfo,...e.price,isSoldOut:!0===e.status.soldout||0===e.baseInfo.stockCnt,deliveryConditionType:(e.deliveryFee||{}).deliveryConditionType,customProperties:e.customProperties}),Ue={"other-brand":(e,t)=>e.brandNo!==t,"on-sale":e=>(e=>{const t=(0,Me.bS)(e);return Boolean(t&&t.hasDiscount&&t.discountPct>0)})(e)};var He=n(54983);const ze=function({now:e=()=>Date.now(),cacheMs:t=3e5}={}){const n=new Map,r=new Set;let a={productNo:null,holders:0};const o=(e,t)=>a.productNo===e&&(a={...a,...t},r.forEach(e=>e()),!0),l=(r,l)=>{const i={};o(r,{phase:"loading",token:i}),Promise.resolve().then(()=>l(a.nos)).then(l=>{if(a.token!==i)return;const s=e();n.delete(a.key),n.set(a.key,{at:s,raw:l});for(const[e,r]of n)(n.size>20||s-r.at>t)&&n.delete(e);o(r,{phase:"ready",raw:l,at:s})},()=>a.token===i&&o(r,{phase:"error"}))};return{subscribe:e=>(r.add(e),()=>r.delete(e)),get:()=>a,attach:e=>(a.productNo===e&&a.holders||(a={productNo:e,holders:0,phase:"idle"}),a={...a,holders:a.holders+1},()=>{a.productNo===e&&(a=a.holders>1?{...a,holders:a.holders-1}:{productNo:null,holders:0})}),load(r,i,s){if(a.productNo!==r||"idle"!==a.phase)return;const c=`${r}:${i}`,d=n.get(c);a={...a,key:c,nos:i},d&&e()-d.at<=t?o(r,{phase:"ready",raw:d.raw,at:d.at}):l(r,s)},decide:(e,t)=>a.decision||o(e,{decision:t}),markShown:e=>a.productNo===e&&!a.shown&&o(e,{shown:!0}),open(n,r,i){o(n,{open:r,openedAt:e()})&&"ready"===a.phase&&e()-a.at>t&&l(n,i)},retry(e,t){a.productNo===e&&"error"===a.phase&&a.nos&&l(e,t)},close:e=>o(e,{open:null})}}(),We="hv-pdp-sim-style",Ke="hv-pdp-sim-sheet",Ge="hv-pdp-sim-title",Ye=new WeakSet,Ve=["hv-pc__brand","hv-pc__name","hv-pc__price"],Qe=e=>{let t=e.count;return He.createElement("div",{className:"hv-list-grid","aria-hidden":"true"},Array.from({length:t},(e,t)=>He.createElement("article",{key:t,className:"hv-pc hv-pc--grid hv-pdp-sim__skel"},He.createElement("div",{className:"hv-pc__img"},He.createElement("div",{className:"hv-pdp-skel__img"})),He.createElement("div",{className:"hv-pc__meta"},He.createElement("div",{className:"hv-pc__meta-link"},Ve.map(e=>He.createElement("p",{key:e,className:e}," ",He.createElement("span",{className:"hv-pdp-skel__line"}))))))))},Xe=e=>{let t=e.view,n=e.cards,a=e.error,o=e.min,l=e.brandNo,i=e.caption,s=e.thumb,c=e.listId,d=e.onClose,u=e.onRetry,p=e.onResult,m=e.onFilter,h=e.onReturnFocus,f=e.claimScroll;const b=(0,S.al)(),y=(0,r.useRef)(null),g=(0,r.useRef)(null),_=(0,r.useRef)(!1),E=(0,r.useState)([]),w=E[0],N=E[1],x=(0,r.useState)(!1),C=x[0],A=x[1],R=e=>{g.current=e,d(e)},T=(0,r.useRef)(R);T.current=R,(0,r.useEffect)(()=>{const e=(window.history.state||{}).key,t=(0,v.z)({fixed:window.matchMedia("(max-width: 767px)").matches});y.current.focus({preventScroll:!0});const n=e=>{"Escape"===e.key?T.current("esc"):(0,Oe.L)(e,y.current)};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n);const r=(window.history.state||{}).key!==e;g.current&&"navigate"!==g.current&&!r&&f&&f(),t(r),h()}},[]);const L="loading"===t.phase;(0,r.useEffect)(()=>{if(!L)return;const e=setTimeout(()=>A(!0),300);return()=>{clearTimeout(e),A(!1)}},[L]);const $=(0,r.useMemo)(()=>n?function(e,t){return De.filter(n=>{const r=e.filter(e=>Ue[n](e,t)).length;return r>=2&&rn?function(e,t,n){return e.filter(e=>t.every(t=>Ue[t](e,n)))}(n,w.filter(e=>$.includes(e)),l):[],[n,w,$,l]),O=(0,r.useMemo)(()=>new Map((n||[]).map((e,t)=>[e.productNo,t])),[n]),I=L?null:a?"error":n?((e,t)=>e>=t?"results":e>0?"few":"empty")(n.length,o):null;(0,r.useEffect)(()=>{I&&!_.current&&(_.current=!0,p(I,"error"!==I&&n?n.length:0))},[I]);const q=(0,k.A)(y,()=>R("drag")),M=q.onSheetDown,D=q.onHandleMove,F=q.onHandleUp,j=q.onHandleCancel;let B=null;L?B=C?He.createElement(Qe,{count:b?4:8}):null:"error"===I?B=He.createElement("div",{className:"hv-pdp-sim__state",role:"alert"},He.createElement("p",{className:"hv-pdp-sim__state-title"},Te.C.shopIndex.state.error),He.createElement("button",{type:"button",className:"h-btn h-btn--secondary",onClick:u},Te.C.shopIndex.state.retry)):"empty"===I?B=He.createElement("div",{className:"hv-pdp-sim__state"},He.createElement("p",{className:"hv-pdp-sim__state-title"},Le.emptyTitle),He.createElement("p",{className:"hv-pdp-sim__state-body"},Le.emptyBody),He.createElement("button",{type:"button",className:"h-btn h-btn--secondary",onClick:()=>R("button")},Le.close)):I&&(B=He.createElement(He.Fragment,null,"results"===I&&$.length>0?He.createElement("div",{className:"hv-chip-strip__row hv-pdp-sim__chips",role:"group","aria-label":Le.chipsAria},$.map(e=>He.createElement("button",{key:e,type:"button",className:"hv-chip","aria-pressed":w.includes(e),onClick:()=>(e=>{const t=!w.includes(e);N(n=>t?[...n,e]:n.filter(t=>t!==e)),m(e,t)})(e)},Le.chips[e]))):null,P.length>0?He.createElement("div",{className:"hv-list-grid"},P.map(e=>He.createElement(Y.A,{key:e.productNo,product:e,listId:c,listName:Le.listName,index:O.get(e.productNo),wishlistNext:`/products/${e.productNo}`,onProductClick:()=>R("navigate")}))):He.createElement("div",{className:"hv-pdp-sim__state"},He.createElement("p",{className:"hv-pdp-sim__state-title"},Le.filterEmpty),He.createElement("button",{type:"button",className:"h-btn h-btn--secondary",onClick:()=>N([])},Le.filterOff))));const U=L?Le.loading:"results"===I||"few"===I?Le.count(P.length):"";return He.createElement("div",{id:Ke,role:"dialog","aria-modal":"true","aria-labelledby":Ge,className:"hv-sheet hv-pdp-sim",onClick:()=>R("backdrop")},He.createElement("div",{ref:y,tabIndex:-1,className:"hv-sheet__panel hv-sheet__panel--wide hv-pdp-sim__panel",onClick:e=>e.stopPropagation(),onPointerDown:b?M:void 0,onPointerMove:b?D:void 0,onPointerUp:b?F:void 0,onPointerCancel:b?j:void 0},He.createElement("div",{className:"hv-pdp-drawer__grip hv-pdp-sim__grip"},He.createElement(S.Mg,null)),He.createElement("div",{className:"hv-pdp-sim__head"},He.createElement("span",{className:"hv-pdp-sim__thumb"},s?He.createElement("img",{alt:"",decoding:"async",src:s}):null),He.createElement("div",{className:"hv-pdp-sim__titles"},He.createElement("h2",{id:Ge,className:"hv-pdp-sim__title"},Le.title),He.createElement("p",{className:"hv-pdp-sim__caption"},i)),He.createElement("button",{type:"button",className:"hv-sheet__x","aria-label":Le.close,onClick:()=>R("button")},"×")),He.createElement("div",{className:"hv-pdp-sim__scroll","aria-busy":L||void 0},B),He.createElement("p",{className:"hv-sr-only","aria-live":"polite"},U)))},Je=e=>{let t=e.similar,n=e.siblings,o=void 0===n?null:n,l=e.stemOf,i=void 0===l?null:l,s=e.claimScroll,c=void 0===s?null:s;const d=(0,h.y)(),u=d.productNo,p=d.detail,m=d.baseInfo,v=d.brand,f=d.brandRaw,b=d.images.length>1,y=(0,r.useSyncExternalStore)(ze.subscribe,ze.get),g=(0,r.useId)(),_=(0,r.useRef)(null),E=(0,r.useRef)(null),w=(0,r.useMemo)(()=>(0,Pe.v)(),[]),N=y.productNo===u,k=t.cfg,x=v&&v.brandNo>0?v.brandNo:null;(0,r.useEffect)(()=>ze.attach(u),[u]);const C=(0,r.useMemo)(()=>function(e,t,n){const r=new Set([t,...Array.isArray(n)?n:[]]);return e.filter(e=>!r.has(e))}(t.items,u,o),[t,u,o]),A=w?"bot":t.reason?`reason:${t.reason}`:C.length{A?ze.decide(u,{show:!1,why:A,count:C.length}):ze.load(u,C.slice(0,30),Ie.j)},[u,A,C]);const R=(0,r.useMemo)(()=>({productNo:u,productName:m.productName,brandNo:x,groupManagementCode:p.groupManagementCode||m.groupManagementCode||null}),[u,m,x,p]),T=(0,r.useMemo)(()=>{if(!N||!y.raw)return null;try{return function(e,t,n,r,a){if(!e||"object"!=typeof e||!Array.isArray(e.products))throw new Error("similar shape");const o=new Map;for(const t of e.products){const e=t?.baseInfo?.productNo;Number.isInteger(e)&&!o.has(e)&&o.set(e,t)}const l=new Set([n.productNo,...Array.isArray(r)?r:[]]),i=je(a,n.productName,n.brandNo,n.groupManagementCode),s=new Set(i?[i]:[]),c={missing:0,sibling:0,unlisted:0,variant:0,over:0},d=[];for(const e of t){const t=o.get(e);if(t)if(l.has(e))c.sibling+=1;else if((0,qe.$)(t)){const e=je(a,t.baseInfo.productName,t.baseInfo.brandNo,t.baseInfo.groupManagementCode);e&&s.has(e)?c.variant+=1:d.length>=24?c.over+=1:(e&&s.add(e),d.push(t))}else c.unlisted+=1;else c.missing+=1}const u=new Map(d.map(e=>[e.baseInfo.productNo,e.baseInfo.brandNo||null]));return{cards:(0,Me.Qx)(d.map(Be)).map(e=>({...e,brandNo:u.get(e.productNo)||null})),counts:c}}(y.raw,y.nos,R,o,i)}catch{return{error:!0,cards:null,counts:null}}},[N,y.raw,y.nos,R,o,i]);(0,r.useEffect)(()=>{if(N&&!y.decision)if("error"===y.phase)ze.decide(u,{show:!1,why:"fetch-error",count:0});else if("ready"===y.phase&&T){const e=T.error?0:T.cards.length;ze.decide(u,{show:!T.error&&e>=t.min,why:T.error?"shape":e>=t.min?"show":"below-min",count:e})}},[N,y.phase,y.decision,T]);const L=N?y.decision:null,$=!(!L||!L.show);(0,r.useLayoutEffect)(()=>{$&&(e=>{if(!e||e.getElementById(We))return;const t=e.createElement("style");t.id=We,t.textContent="\n.hv-pdp-sim-pill{position:absolute;right:16px;bottom:64px;display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 12px;border-radius:var(--h-radius-chip);background:var(--h-surface);box-shadow:inset 0 0 0 1px var(--h-line);color:var(--h-ink);font-size:var(--h-fs-body-sm);font-weight:var(--h-fw-sb);line-height:1;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;animation:hvPdpPillFadeIn var(--h-dur-1) var(--h-ease) both}\n.hv-pdp-sim-pill::after{content:'';position:absolute;inset:-16px 0 0}\n.hv-pdp-stage .hv-pdp-sim-pill{right:24px;bottom:56px}\n.hv-pdp-sim-pill.hv-pdp-sim-pill--solo{right:12px;bottom:24px}\n@media (max-width: 359px){.hv-pdp-gallery-m .hv-pdp-sim-pill{bottom:82px}}\n@media (hover: hover){\n.hv-pdp-sim-pill:hover{box-shadow:inset 0 0 0 1px var(--h-ink)}\n}\n.hv-pdp-sim-pill:active{transform:translateY(1px)}\n.hv-pdp-sim-pill:focus-visible{outline:2px solid var(--h-ink);outline-offset:-2px}\n.hv-sheet__panel.hv-pdp-sim__panel{height:88vh;height:88dvh;max-height:none;padding:0 16px}\n.hv-pdp-sim__head{display:flex;flex-shrink:0;align-items:center;gap:12px;min-height:64px;padding-bottom:8px;touch-action:none}\n.hv-pdp-sim__thumb{flex:none;width:56px;height:56px;overflow:hidden;border-radius:var(--h-radius-card);background:var(--h-bg-product)}\n.hv-pdp-sim__thumb img{display:block;width:100%;height:100%;object-fit:contain}\n.hv-pdp-sim__titles{flex:1;min-width:0}\n.hv-pdp-sim__title{margin:0;color:var(--h-ink);font-size:17px;font-weight:var(--h-fw-b);line-height:1.3}\n.hv-pdp-sim__caption{margin:2px 0 0;overflow:hidden;color:var(--h-ink-3);font-size:12px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis}\n.hv-pdp-sim__scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:8px 0 calc(16px + env(safe-area-inset-bottom));touch-action:pan-y;overscroll-behavior:contain}\n.hv-pdp-sim__chips{margin-bottom:16px}\n.hv-pdp-sim__state{display:flex;flex-direction:column;align-items:center;padding:48px 0;text-align:center}\n.hv-pdp-sim__state-title{margin:0;color:var(--h-ink);font-size:var(--h-fs-body);font-weight:var(--h-fw-sb)}\n.hv-pdp-sim__state-body{margin:8px 0 0;color:var(--h-ink-3);font-size:var(--h-fs-body-sm)}\n.hv-pdp-sim__state .h-btn{margin-top:24px;min-width:160px}\n.hv-pdp-sim__skel .hv-pc__meta-link > *{position:relative}\n.hv-pdp-sim__skel .hv-pdp-skel__line{position:absolute;top:50%;left:0;transform:translateY(-50%)}\n.hv-pdp-sim__skel .hv-pc__name .hv-pdp-skel__line{width:85%}\n.hv-pdp-sim__skel .hv-pc__brand{display:flex;width:50%}\n@media (min-width: 768px){\n.hv-sheet__panel--wide{width:min(960px, calc(100vw - 48px));max-width:none}\n.hv-sheet__panel.hv-pdp-sim__panel{padding:0 24px}\n.hv-pdp-sim__grip{display:none}\n.hv-pdp-sim__head{min-height:96px;padding:24px 0 16px}\n.hv-pdp-sim__thumb{width:64px;height:64px}\n.hv-pdp-sim__title{font-size:20px}\n.hv-pdp-sim__caption{font-size:13px}\n.hv-pdp-sim__scroll{padding-bottom:24px}\n}\n@media (prefers-reduced-motion: reduce){\n.hv-pdp-sim-pill{animation:none}\n}\n",e.head.append(t)})(document)},[$]);const P=(e,t)=>(0,$e.zS)({event:e,item_id:String(u),cfg:k,...t});if((0,r.useEffect)(()=>{if(!L)return;L.show&&ze.markShown(u)&&P("similar_pill",{sim_action:"show",sim_count:L.count});const e=t.items.length;((e,t)=>{Ye.has(e)||(Ye.add(e),"similar"===new URLSearchParams(location.search).get("havea_debug")&&console.table([t]))})(L,{productNo:u,cfg:k,v:t.v,min:t.min,server:e,siblings:e-C.length,...T&&T.counts,kept:L.count,pill:L.show?"show":"hide",why:L.why})},[L]),!$)return null;const O=null!==y.open&&void 0!==y.open,I=function(e,t){const n=String(e||"").trim().toLowerCase();return n&&`${String(t||"").trim().toLowerCase()} `.startsWith(`${n} `)?String(t).trim():[e,t].filter(Boolean).join(" ")}(v&&v.eyebrow||f,m.productName);return He.createElement(He.Fragment,null,He.createElement("button",{ref:_,type:"button",className:"hv-pdp-sim-pill"+(b?"":" hv-pdp-sim-pill--solo"),"aria-haspopup":"dialog","aria-expanded":O,"aria-controls":O?Ke:void 0,"aria-label":Le.pillAria,onClick:()=>{E.current=(e=>{const t=e.closest(".hv-pdp-stage, .hv-pdp-gallery-m"),n=t.querySelector(".hv-pdp-strip img")||t.querySelector("img");return n?n.currentSrc||n.src:null})(_.current),P("similar_pill",{sim_action:"open",sim_count:L.count}),ze.open(u,g,Ie.j)}},He.createElement("span",null,Le.pill),He.createElement(S.bL,null)),y.open===g&&"undefined"!=typeof document?(0,a.createPortal)(He.createElement(Xe,{view:y,cards:T?T.cards:null,error:"error"===y.phase||!(!T||!T.error),min:t.min,brandNo:x,caption:I,thumb:E.current,listId:Fe(k),onClose:e=>{P("similar_close",{sim_close:e,sim_dwell_ms:Math.max(0,Date.now()-(y.openedAt||Date.now()))}),ze.close(u)},onRetry:()=>ze.retry(u,Ie.j),onResult:(e,t)=>P("similar_result",{sim_state:e,sim_count:t,sim_ttr_ms:Math.max(0,Date.now()-(y.openedAt||Date.now()))}),onFilter:(e,t)=>P("similar_filter",{sim_chip:e,sim_on:t}),onReturnFocus:()=>_.current&&_.current.focus({preventScroll:!0}),claimScroll:c}),document.body):null)};var Ze=n(54983);const et="hv-pdp-tsheet-style",tt=e=>`hv-pdp-trust-t${e+1}`,nt=e=>{let t=e.rows,n=e.closeLabel,a=e.onClose,o=e.onReturnFocus,l=e.claimScroll;const i=(0,S.al)(),s=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useRef)({y0:0,dy:0,on:!1,captured:!1}),u=e=>{c.current=e,a()},m=(0,r.useRef)(u);m.current=u,(0,r.useLayoutEffect)(()=>{if(document.getElementById(et))return;const e=document.createElement("style");e.id=et,e.textContent="\n.hv-sheet__panel.hv-pdp-tsheet__panel{position:relative;padding-top:0;border-radius:20px 20px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 55%),var(--h-glass-bg)}\n.hv-pdp-tsheet__bar{justify-content:flex-end}\n.hv-pdp-tsheet__list{list-style:none;margin:0;padding:0 0 8px;display:grid;gap:8px}\n.hv-pdp-tsheet__card{display:flex;align-items:center;gap:20px;padding:16px 8px}\n.hv-pdp-tsheet__no{flex:none;min-width:32px;font-family:var(--font-en);font-size:var(--h-fs-display-m);font-weight:300;line-height:1;text-align:center;font-variant-numeric:tabular-nums;color:var(--h-ink)}\n.hv-pdp-tsheet__text{min-width:0;word-break:keep-all;overflow-wrap:anywhere}\n.hv-pdp-tsheet__title{margin:0;font-size:var(--h-fs-body);font-weight:var(--h-fw-sb);line-height:1.4;color:var(--h-ink)}\n.hv-pdp-tsheet__body{margin:4px 0 0;font-size:var(--h-fs-body-sm);line-height:1.5;color:var(--h-ink-2)}\n@media (max-width: 767px){.hv-pdp-tsheet__bar{position:absolute;top:0;right:16px}}\n@media (min-width: 768px){.hv-pdp-tsheet__grip{display:none}.hv-sheet__panel.hv-pdp-tsheet__panel{padding:8px 24px 24px;border-radius:20px}}\n@media (prefers-reduced-motion: reduce),(prefers-reduced-transparency: reduce),(prefers-contrast: more),(forced-colors: active){.hv-sheet__panel.hv-pdp-tsheet__panel{background:var(--h-surface)}}\n",document.head.append(e)},[]),(0,r.useEffect)(()=>{const e=(window.history.state||{}).key,t=(0,v.z)({fixed:window.matchMedia("(max-width: 767px)").matches});s.current.focus({preventScroll:!0});const n=e=>{"Escape"===e.key?m.current("esc"):(0,Oe.L)(e,s.current)};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n);const r=(window.history.state||{}).key!==e;c.current&&!r&&l&&l(),t(r),o()}},[]);const h=()=>{const e=s.current;e.style.transition=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"none":"transform var(--h-dur-1) var(--h-ease)",e.style.transform=""};return Ze.createElement("div",{id:"hv-pdp-trust-sheet",role:"dialog","aria-modal":"true","aria-labelledby":t.map((e,t)=>tt(t)).join(" "),className:"hv-sheet hv-pdp-tsheet",onClick:()=>u("backdrop")},Ze.createElement("div",{ref:s,tabIndex:-1,className:"hv-sheet__panel hv-sheet__panel--card hv-pdp-tsheet__panel hv-pdp-glass",onClick:e=>e.stopPropagation()},Ze.createElement("div",{className:"hv-pdp-drawer__grip hv-pdp-tsheet__grip",onPointerDown:i?e=>{d.current={y0:e.clientY,dy:0,on:!0,captured:!1}}:void 0,onPointerMove:i?e=>{const t=d.current;if(!t.on)return;t.dy=Math.max(0,e.clientY-t.y0);const n=s.current;if(!t.captured){if(t.dy<=p.ToV)return;t.captured=!0;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}n.style.animation="none",n.style.transition="none"}n.style.transform=`translateY(${t.dy}px)`}:void 0,onPointerUp:i?()=>{const e=d.current;e.on&&(e.on=!1,e.dy>p.heo?u("drag"):h())}:void 0,onPointerCancel:i?()=>{const e=d.current;e.on&&(e.on=!1,h())}:void 0},Ze.createElement(S.Mg,null)),Ze.createElement("div",{className:"hv-sheet__titlebar hv-pdp-tsheet__bar"},Ze.createElement("button",{type:"button",className:"hv-sheet__x","aria-label":n,onClick:()=>u("button")},"×")),Ze.createElement("ol",{className:"hv-pdp-tsheet__list"},t.map((e,t)=>Ze.createElement("li",{key:e.title,className:"hv-pdp-tsheet__card"},Ze.createElement("span",{className:"hv-pdp-tsheet__no","aria-hidden":"true"},t+1),Ze.createElement("div",{className:"hv-pdp-tsheet__text"},Ze.createElement("p",{id:tt(t),className:"hv-pdp-tsheet__title"},e.title),Ze.createElement("p",{className:"hv-pdp-tsheet__body"},e.body)))))))},rt=e=>e.open&&"undefined"!=typeof document?(0,a.createPortal)(Ze.createElement(nt,e),document.body):null;var at=n(80280),ot=n(89689);(0,ot.o9)(globalThis.window,at.TV);const lt=e=>(0,ot.a3)(e,globalThis.window,at.TV)},14137(e,t,n){var r=n(11089),a=n(42998),o=n(14303),l=n(54983);const i=e=>{let t=e.lines,n=e.onChangeQty,r=e.onRemove,i=e.fixedMain,s=void 0===i?null:i,c=e.productName,d=void 0===c?null:c,u=e.hideTotal,p=void 0!==u&&u;if(0===t.length&&!s)return null;const m=t.reduce((e,t)=>e+t.unitPrice*t.qty,0)+(s?s.unitPrice*s.qty:0),h=(e,t,n,r,o,i,s)=>l.createElement("li",{key:e,"data-pdp-extra-line":s?"":void 0,className:"hv-pdp-line"+(i?" has-remove":"")},l.createElement("p",{className:"hv-pdp-line__label"},t),n?l.createElement("p",{className:"hv-pdp-line__cap"},n):null,l.createElement("div",{className:"hv-pdp-line__foot"},l.createElement("span",{className:"hv-pdp-line__amt"},r.toLocaleString("ko-KR"),l.createElement("span",{className:"hv-pdp-line__won"},a.C.cart.summary.currencySuffix)),o),i?l.createElement("button",{type:"button",onClick:i,"aria-label":a.C.cart.removeLabel,className:"hv-pdp-line__x"},l.createElement("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":!0},l.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null);return l.createElement("div",{className:"hv-pdp-lines"},l.createElement("ul",{className:"hv-pdp-lines__list"},s?h("fixed-main",s.label,null,s.unitPrice*s.qty,s.onChange?l.createElement(o.kX,{value:s.qty,min:s.min??1,onDec:()=>s.onChange(-1),onInc:()=>s.onChange(1),incDisabled:null!=s.max&&s.qty>=s.max}):l.createElement("span",{className:"hv-pdp-line__fixedqty"},"×",s.qty),null,!1):null,t.map(e=>h(e.optionNo,!e.extra&&d?d:e.label,!e.extra&&d?[e.label,e.caption].filter(Boolean).join(" · "):e.caption,e.unitPrice*e.qty,l.createElement(o.kX,{value:e.qty,onDec:()=>n(e.optionNo,-1),onInc:()=>n(e.optionNo,1)}),()=>r(e.optionNo),!!e.extra))),p?null:l.createElement("div",{className:"hv-pdp-lines__total"},l.createElement("span",{className:"hv-pdp-lines__total-label"},a.C.cart.summary.totalProductPrice),l.createElement("span",{className:"hv-pdp-lines__total-amt"},m.toLocaleString("ko-KR"),l.createElement("span",{className:"hv-pdp-lines__total-won"},a.C.cart.summary.currencySuffix))))};i.propTypes={lines:(0,r.arrayOf)((0,r.shape)({optionNo:r.number.isRequired,label:r.string.isRequired,unitPrice:r.number.isRequired,qty:r.number.isRequired,caption:r.string,extra:r.bool})).isRequired,onChangeQty:r.func.isRequired,onRemove:r.func.isRequired,fixedMain:(0,r.shape)({label:r.string.isRequired,unitPrice:r.number.isRequired,qty:r.number.isRequired,min:r.number,max:r.number,onChange:r.func}),productName:r.string,hideTotal:r.bool};const s=i;n.d(t,["A",0,s])},55952(e,t,n){var r=n(54983);const a=(0,r.createContext)(null);n.d(t,["q",0,a,"y",0,()=>{const e=(0,r.useContext)(a);if(!e)throw new Error("INVALID_PdpContext");return e}])},14303(e,t,n){n.d(t,{al:()=>c.A});var r=n(54983),a=n(11089),o=n(42998),l=n(79788),i=n(91598),s=n(49373),c=n(878),d=n(54983);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{let t=e.value,n=e.onDec,r=e.onInc,a=e.min,o=void 0===a?1:a,l=e.decDisabled,i=e.incDisabled,s=void 0!==i&&i;const c=l??t<=o;return d.createElement("div",{className:"hv-qty"},d.createElement("button",{type:"button",onClick:c?void 0:n,disabled:c,"aria-label":m.cart.stepperDec,className:"hv-qty__btn hv-qty__btn--dec"},d.createElement("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},d.createElement("path",{d:"M5 12h14"}))),d.createElement("span",{"aria-live":"polite",className:"hv-qty__value"},t),d.createElement("button",{type:"button",onClick:s?void 0:r,disabled:s,"aria-label":m.cart.stepperInc,className:"hv-qty__btn hv-qty__btn--inc"},d.createElement("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},d.createElement("path",{d:"M12 5v14M5 12h14"}))))};v.propTypes={value:a.number.isRequired,onDec:a.func.isRequired,onInc:a.func.isRequired,min:a.number,decDisabled:a.bool,incDisabled:a.bool};const f=e=>{let t=e.onClick,n=e.label,r=e.className,a=void 0===r?"":r;return d.createElement("button",{type:"button",onClick:t,"aria-label":n??m.a11y.close,className:`hv-modal-close ${a}`.trim()},d.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},d.createElement("path",{d:"M6 6l12 12M18 6 6 18"})))};f.propTypes={onClick:a.func.isRequired,label:a.string,className:a.string};const b=e=>{let t=e.src,n=e.alt,a=e.priority,o=void 0!==a&&a,l=e.eager,s=void 0!==l&&l,c=e.fit,m=void 0===c?"cover":c,h=e.cssWidth,v=void 0===h?["undefined"==typeof window?400:window.innerWidth,600]:h;const f=(g=(0,r.useState)(!1),_=2,function(e){if(Array.isArray(e))return e}(g)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(g,_)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(g,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=f[0],y=f[1];var g,_;if(!t||b)return null;let E=!1;try{E=/로고|워드마크|wordmark|logo/i.test(decodeURIComponent(t))}catch{E=/logo/i.test(t)}const w=(0,i.Pp)(t,v,o);return s&&!o&&(w.loading="eager"),d.createElement("img",u({},w,{alt:n,onError:()=>y(!0),className:`hv-pimg${E||"contain"===m?" hv-pimg--contain":""}${E?" hv-pimg--logo":""}`}))};b.propTypes={src:a.string,alt:a.string.isRequired,priority:a.bool,eager:a.bool,fit:(0,a.oneOf)(["cover","contain"]),cssWidth:(0,a.oneOfType)([a.number,(0,a.arrayOf)(a.number)])};const y=e=>{let t=e.className,n=void 0===t?"":t;return d.createElement("span",{"aria-hidden":!0,className:`hv-sheet-handle ${n}`.trim()})};y.propTypes={className:a.string};const g=e=>{let t=e.open,n=void 0!==t&&t,r=e.size,a=void 0===r?14:r,o=e.className,l=void 0===o?"":o;return d.createElement("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:`hv-chev${n?" is-open":""} ${l}`.trim()},d.createElement("polyline",{points:"6 9 12 15 18 9"}))};g.propTypes={open:a.bool,size:a.number,className:a.string},a.number.isRequired,a.node;const _=e=>{let t=e.html,n=e.className,r=void 0===n?"":n;const a=r.split(/\s+/).includes("hv-pdp-detail-html"),o=(0,s.a)(h,t,{USE_PROFILES:{html:!0},ADD_ATTR:["target","rel","style","width","height","colspan","rowspan","loading","decoding"],FORBID_TAGS:["script","iframe","object","embed","form","input","style"]},a);return d.createElement("div",{className:r,"data-havea-product-description":a?"":void 0,dangerouslySetInnerHTML:{__html:o}})};_.propTypes={html:a.string,className:a.string},n.d(t,["$F",0,g,"Mg",0,y,"P_",0,_,"X$",0,b,"Xk",0,e=>`${Math.round(e).toLocaleString("ko-KR")}${m.cart.summary.currencySuffix}`,"bL",0,()=>d.createElement("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},d.createElement("path",{d:"M1 1l5 4.5L1 10"})),"kX",0,v,"s_",0,f])},35303(e,t,n){n.d(t,["L",0,{detailsShort:"사용 조건 보기",collapseShort:"접기",validityUnknownBrief:"기한 미확인",afterIssueBrief:e=>`발급 후 ${e}일 사용`,minimumBrief:e=>`최소 ${e.toLocaleString("ko-KR")}원`,scopeUnknownBrief:"적용 대상 미확인 · 상품 상세에서 확인해 주세요",scopeCheckBrief:"상품 상세에서 적용 가능한 쿠폰을 확인해 주세요",excludesBrief:"일부 상품 제외",partialBrief:"일부 조건 미확인",oneTargetBrief:e=>`${e} 상품`,targetType:{ALL_PRODUCT:"전체 상품",PRODUCT:"지정 상품",BRAND:"지정 브랜드",CATEGORY:"지정 카테고리",PARTNER:"지정 입점사"},issuePeriod:"발급 기한",kst:e=>`${e.replace(/-/g,".")} (한국 시간)`,login:"쿠폰 받기·사용에는 로그인이 필요해요"}])},79788(e,t,n){var r=n(74145);const a={kakaoChat:r.C.a11y.kakaoChat,kakaoChatProduct:r.C.a11y.kakaoChatProduct,back:"뒤로",home:"홈",search:"검색",cart:"장바구니",close:"닫기",newArrivals:"신상품",prev:"이전",next:"다음"},o={a11y:a};n.d(t,["C",0,o,"z",0,a])},42998(e,t,n){var r=n(74145);const a={title:r.C.cart.title,guestMergeToast:r.C.cart.guestMergeToast,empty:"장바구니가 비어 있어요.",emptyAction:"상품 둘러보기",selectionBlocked:{notice:"단독으로 주문할 수 없는 추가상품이 선택돼 있어요. 본 상품을 함께 선택해주세요.",cta:"선택 확인 필요",backToCart:"장바구니에서 선택 변경"},emptyHero:{eyebrow:"Your bag · 0 items",title:"장바구니가\n아직 비어 있어요.",body:"마음에 드는 상품을 담아 두고 천천히 골라보세요.",ctaBrowse:"둘러보기",ctaWishlist:"저장 보기",scrapShelf:{eyebrow:"Saved picks",title:e=>`골라둔 게 ${e}개 있어요`,body:"저장해둔 것부터 다시 볼까요?",cta:"저장 보기"},picksEyebrow:"Editor's picks",picksTitle:"이번 주의 셀렉션"},iconLabel:"장바구니",lineRow:{product:"상품금액",shipping:"배송비",free:"무료",amount:e=>`${e.toLocaleString("ko-KR")}원`,cod:e=>`착불 ${e.toLocaleString("ko-KR")}원`,invalid:"지금은 구매할 수 없는 상품이에요"},stockLimit:{reachedTitle:e=>`남은 재고가 ${e}개예요`,reachedBody:e=>`지금은 ${e}개까지만 구매할 수 있어요.`,fullTitle:"이미 장바구니에 담겨 있어요",fullBody:e=>`남은 재고가 ${e}개라 더 담을 수 없어요. 장바구니에서 바로 주문할 수 있어요.`,partialTitle:e=>`장바구니에 이미 ${e}개 담겨 있어요`,partialBody:(e,t)=>`남은 재고가 ${e}개라 ${e-t}개만 더 담을 수 있어요. 수량을 ${e-t}개로 맞춰 둘게요.`,mixedTitle:"일부 옵션만 장바구니에 담았어요",mixedEnd:"나머지 옵션은 장바구니에 담았어요.",blockedTitle:"담을 수 없는 옵션이 있어요",optionFull:e=>`이미 장바구니에 있어요. 남은 재고가 ${e}개라 더 담을 수 없어요.`,optionPartial:(e,t)=>`장바구니에 ${t}개가 있어 ${e-t}개만 더 담을 수 있어요. 수량을 ${e-t}개로 맞춰 뒀어요.`,cartMessage:e=>`남은 재고가 ${e}개예요. 수량을 ${e}개로 바꾸면 주문할 수 있어요.`,cartAdjust:e=>`${e}개로 바꾸기`,confirm:"확인",viewCart:"장바구니 보기",close:"닫기"},lineCoupon:{label:"할인쿠폰",none:"사용 가능한 쿠폰 없음",pick:"쿠폰을 선택해 주세요",cancel:"사용 취소"},lineActions:{changeOption:"옵션/배송 변경",buyNow:"바로 주문",estimate:"예상 결제금액",product:"상품금액",shipping:"배송비"},couponModal:{title:"쿠폰 변경",productPick:"상품 쿠폰 선택",cartTitle:"장바구니 쿠폰",cartPick:"장바구니 쿠폰 선택",pickHeader:"쿠폰 선택",none:"선택 안 함",useWithTotal:e=>`총 ${e} 할인 쿠폰 사용하기`,use:"쿠폰 사용하기",badge:"쿠폰",freeDelivery:"무료배송",coupon:"쿠폰",minOrder:e=>`최소 주문 ${e.toLocaleString("ko-KR")}원`,maxDiscount:e=>`최대 할인 ${e.toLocaleString("ko-KR")}원`,expires:(e,t,n)=>`${e}년 ${t}월 ${n}일까지`,loginRequired:"로그인이 필요합니다.",invalidSheet:"주문서 정보가 올바르지 않습니다.",sessionExpired:"세션이 만료되었습니다. 다시 로그인해주세요.",failed:"쿠폰 적용 중 문제가 발생했습니다."},checkoutCta:"주문하기",checkoutCtaWithCount:e=>`주문하기 ( ${e} )`,moveToWishlist:"저장으로 이동",moveToWishlistShort:"저장으로",guestSignupCard:{headline:"비회원이신가요?",bullets:"가입 후 결제 시 첫 만남 5% 쿠폰을 받을 수 있어요."},bulkActions:{selectAll:"전체 선택",selectAllWithCount:(e,t)=>`전체 선택 (${e}/${t})`,deleteSelectedShort:"선택 삭제",moveSelectedToWishlist:"저장으로 이동",deleting:"삭제 중…",rowCheckboxLabel:"라인 선택",requiredOptionBlocked:"선택옵션은 단독 주문이 불가합니다. 필수옵션 취소 필요 시 선택옵션을 먼저 취소해주시거나, 함께 취소해주세요."},maxDiscount:{on:"최대 할인이 적용되었어요",off:"스위치를 켜면 최대 할인이 적용돼요",switchAria:"최대 할인 적용",pending:"쿠폰 할인을 계산하고 있어요",failed:"쿠폰을 계산하지 못했어요. 다시 시도해 주세요.",retry:"다시 계산"},mobileCta:{detailAria:"결제 상세",orderRowShipping:"배송비",savedTotalPre:"총 할인",savedPost:"절약했어요",detailToggle:"결제 상세 보기",payLabel:"결제금액",rowProduct:"상품금액",rowDiscount:"할인 합계",rowCoupon:"쿠폰 할인",rowPoint:"보유 적립금",ctaPay:"결제하기",ctaPaySelected:e=>`${e}개 결제하기`,ctaSelectNone:"결제할 상품을 선택해주세요",detailLabel:"상세",checkout:e=>`결제하기 (${e})`,orderCardTitle:"총 주문 금액",orderRowProduct:"상품 금액",discountCardTitle:"총 할인 금액",discountCardPill:"최대 할인 적용",discountRowItem:"상품 할인",discountRowProductCoupon:"상품 쿠폰",discountRowCartCoupon:"장바구니 쿠폰",discountRowPointUse:"보유 적립금 사용",discountRowPointPre:"적립금 선할인",discountRowInstant:"결제 즉시 할인",discountRowOrderSheetHint:"주문서 확인",totalPayLabel:"총 결제 금액",savedCheckoutPre:"쿠폰·적립금"},orderFailed:"주문서를 만들지 못했어요. 잠시 후 다시 시도해 주세요.",addToCart:"장바구니 담기",adding:"담는 중...",added:"장바구니에 담았어요",soldOut:"SOLD OUT",selectOption:"옵션을 선택해주세요",selectOptionModalTitle:"상품 옵션을 선택해주세요.",selectOptionModalConfirm:"확인",restockNotify:"재입고 알림 신청",optionUnavailable:"품절",optionSearchPh:"검색 (예: 서울)",optionSearchEmpty:"검색 결과가 없어요",quantityLabel:"수량",optionLabel:"옵션 선택",optionStep:(e,t)=>`${e}. ${t}`,stepperInc:"수량 늘리기",stepperDec:"수량 줄이기",qtyLimit:(e,t)=>t?`(${e}~${t}개)`:`(최소 ${e}개)`,memberOnlyHint:"회원 전용 상품이에요. 로그인하면 구매할 수 있어요.",memberOnlyCta:"회원 전용",cartDisabledHint:"운영자 설정으로 장바구니 담기가 제한된 상품입니다.",cartDisabledCta:"장바구니 불가",buyNow:"구매하기",removeLabel:"삭제",summary:{subtotal:"상품 합계",discount:"할인 합계",shipping:"배송비",shippingFree:"무료",shippingCod:"착불",shippingCodNote:e=>`배송비 ${e}원은 상품 수령 시 배송기사에게 결제해요`,shippingTbd:"결제 단계에서 계산",total:"결제 예정",orderSummary:"ORDER SUMMARY",currencySuffix:"원",totalProductPrice:"총 상품 금액",maxDiscount:"최대 할인 혜택 금액",couponAutoApplied:"쿠폰 자동 적용",couponNotApplicable:"쿠폰 적용 불가",couponDiscount:"쿠폰 할인",totalCheckout:"총 결제 금액"},crossSell:{eyebrow:"TOGETHER THEY GO WELL",heading:"함께 보면 좋은",addCta:"담기",addAria:e=>`${e} 장바구니에 담기`,optionCta:"옵션 선택",optionAria:e=>`${e} 옵션 선택하러 가기`,addFailed:"담기에 실패했어요. 잠시 후 다시 시도해 주세요."},stickyBar:{couponPriceLabel:"쿠폰 적용가"},confidenceDrawer:{expectedTotal:"예상 주문금액",ledgerTotalLabel:"합계",openAria:"예상 주문금액 자세히 보기",immediateDiscount:"판매자 즉시할인",couponDiscount:"쿠폰 할인",shippingRow:"배송비",shippingTbd:"주문서에서 확정",couponGet:"쿠폰 받기",savedLine:e=>`총 ${e}원 절약했어요`,viewShipping:"배송비 기준 보기",viewClaim:"교환·반품 보기",optionPrompt:e=>{const t=e.charCodeAt(e.length-1);return`${e}${t>=44032&&t<=55203&&(t-44032)%28>0?"을":"를"} 골라주세요`}}},o={cart:a};n.d(t,["C",0,o,"N",0,a])},82311(e,t,n){n.d(t,["C",0,{couponTicket:{select:"쿠폰 선택",selected:"쿠폰 선택됨",done:"받기 완료",more:"쿠폰 추가 받기",download:"쿠폰 받기"}}])},63845(e,t,n){const r={eyebrow:"추가상품",soldOut:"품절",linePrefix:"추가상품 · ",won:e=>`${e.toLocaleString("ko-KR")}원`,added:e=>`담김 ${e}`,pickPh:"추가상품 선택",addedToast:"추가상품을 담았어요 · 수량은 아래 목록에서",needRequired:"필수 옵션을 먼저 선택해 주세요"},a={pdpExtra:r};n.d(t,["C",0,a,"L",0,r])},10340(e,t,n){const r={heading:"상품 문의",eyebrow:"Q&A",viewAll:e=>`${e.toLocaleString("ko-KR")}개의 상품 문의 전체보기`,secretBody:"비밀글입니다.",status:{answered:"답변완료",pending:"답변대기"},typeLabel:"[상품문의]",filterAll:"전체",answerLabel:"답변",writeLink:"문의 작성",toggleAnswer:"답변 보기",anonymousWriter:"익명",error:{title:"문의를 불러오지 못했어요.",sub:"잠시 후 다시 확인해 주세요. 새 문의는 지금도 남길 수 있어요."},empty:{title:"궁금한 점이 있다면\n판매자에게 직접 물어보세요.",sub:"첫 문의가 등록되면 영업일 기준 1~2일 이내 답변드려요. 개인정보가 포함된 문의는 비공개로 등록해주세요.",hoursLine:"평일 10~17시 · 영업일 1~2일 안에 답변드려요",faq:{restock:"재입고 일정이 어떻게 되나요?",size:"실측 사이즈가 정확한가요?",shipping:"배송은 며칠 정도 걸리나요?",exchange:"단독 교환/반품 가능한가요?"}},write:{modalTitle:"1:1 문의 작성",typeLabel:"문의 유형",types:[{value:"GENERAL",label:"일반 문의"},{value:"DELIVERY",label:"배송 문의"},{value:"EXCHANGE_RETURN",label:"교환·반품"},{value:"OUT_OF_STOCK",label:"재입고 문의"},{value:"OTHER",label:"기타"}],titleLabel:"제목",contentLabel:"본문",secretLabel:"모든 문의는 비밀글로 등록돼요 · 본인과 운영자만 볼 수 있어요",cancelCta:"취소",submitCta:"등록",submittingCta:"등록 중…",errors:{productNo:"상품 번호가 잘못되었습니다.",title:"제목은 1~100자 입력.",content:"본문은 1~2000자 입력.",http:(e,t)=>`등록 실패 (HTTP ${e})${t?`: ${t}`:""}`,unexpected:"문의 등록 중 오류가 발생했습니다."}}},a={pdpInquiries:r};n.d(t,["C",0,a,"w",0,r])},63089(e,t,n){const r={metaFallback:n(74145).C.productDetail.metaFallback,maxDiscountLabel:"최대 할인 혜택 금액",discountSumLabel:"총 할인 금액",immediateDiscountLabel:"즉시 할인",couponRowPrefix:"ㄴ",couponDiscountLabel:"쿠폰 할인",couponPendingNote:"쿠폰 받은 후 확인 가능",signalOptout:{1:"이 기기는 집계에서 빠졌어요",0:"이 기기를 다시 집계해요"},pillMessage:(e,t)=>{const n=Number(t).toLocaleString("ko-KR");return"low-stock"===e?{key:e,parts:[{text:1===t?"마지막 1개":`${n}개만`,emphasis:!0},{text:" 남았어요",emphasis:!1}],liveDot:!1}:"cart-week"===e?{key:e,parts:[{text:`최근 1주간 ${n}명이 `,emphasis:!1},{text:"장바구니에 담았어요",emphasis:!0}],liveDot:!1}:"viewers"===e?{key:e,parts:[{text:`지금 ${n}명이 `,emphasis:!1},{text:"함께 보고 있어요",emphasis:!0}],liveDot:!0}:null},galleryStepperAria:"이미지 단계",galleryTabListAria:"이미지 선택",gallerySlideAria:(e,t)=>`${t}장 중 ${e}번째 이미지`,galleryCarouselAria:"이미지 carousel",couponSheetViewAll:"전체 쿠폰 보기",couponSheetTitle:"사용 가능 쿠폰",couponSheetClose:"닫기",couponDownloadAll:"쿠폰 모두 받기",couponDownloadedToast:e=>`총 ${e}장 받았어요.`,couponDownloadedAllToast:e=>`총 ${e}장 쿠폰 받았어요.`,couponDownloadFailedToast:"쿠폰을 받지 못했어요. 잠시 후 다시 시도해 주세요.",couponDownloadedPartialToast:(e,t)=>`${e}장은 받았고 ${t}장은 실패했어요. 다시 시도해 주세요.`,benefitsPanel:{aria:"Benefits",rowLabel:{duties:"관부가세",delivery:"배송",benefit:"혜택"},dutiesInPrice:"상품가격에 포함",deliveryUnknown:"배송비 정보 없음",deliveryFree:"무료배송",deliveryAmt:e=>`${e}원`,deliveryFreeAbove:e=>`${e}원 이상 구매시 무료배송`,deliveryRemote:e=>`제주/도서산간 ${e}원 추가`,sameDayCutoffShort:e=>`${e} 이전 주문 시`},soldOutBadge:"SOLD OUT",addedModal:{aria:"장바구니에 담기",titlePc:"장바구니에 담기",added:"장바구니에 담았어요",continueShopping:"쇼핑 계속하기",goCart:"장바구니로 이동",goCartMobile:"장바구니 바로가기",related:"연관 상품",recent:"최근 본 상품"},buyScope:{title:"장바구니에 있는 상품과 같이 구매할까요?",body:e=>`장바구니에 다른 상품이 ${e}개 있어요.`,together:"같이 구매하기",only:"이 상품만 구매하기",close:"닫기"},descriptionEyebrow:"Details",descriptionHeader:"상세 설명",descriptionExpand:"상품설명 더보기",descriptionCollapse:"상품설명 접기"},a={productDetail:r};n.d(t,["C",0,a,"x",0,r])},19591(e,t,n){n.d(t,["m",0,{title:"재입고 알림",nameLabel:"이름",mobileLabel:"휴대폰",mobilePlaceholder:"010-0000-0000",agreement:"재입고 알림 발송 목적 개인정보(이름·휴대폰) 수집·이용에 동의합니다. (보관: 알림 발송 후 30일)",submit:"알림 신청",submitting:"신청 중…",success:"✓ 재입고 알림을 신청했어요.",successDetail:"재입고되면 등록하신 연락처로 안내해 드릴게요.",closeBtn:"닫기",errors:{nameRequired:"이름을 입력해주세요.",invalidMobile:"휴대폰 번호 형식이 올바르지 않아요.",agreementRequired:"개인정보 수집·이용에 동의해주세요.",generic:"잠시 후 다시 시도해주세요."}}])},76328(e,t,n){const r={rewardMaximum:e=>`리뷰 작성 시 최대 ${e.toLocaleString("ko-KR")}원 적립돼요.`,heading:n(42552).v.heading,eyebrow:"REVIEWS",listError:"리뷰를 불러오지 못했어요. 잠시 후 다시 확인해 주세요.",pageEmpty:"해당 페이지에 리뷰가 없습니다.",viewAll:e=>`${e.toLocaleString("ko-KR")}개의 리뷰 전체보기`,pagination:{aria:"리뷰 페이지",prev:"이전",next:"다음"},ratingAria:e=>`${e}점`,bestBadge:"BEST",empty:{title:"첫 번째 이야기를\n기다리고 있어요.",stamp:"FIRST"},overall:{eyebrow:"OVERALL",outOf:" / 5",countSuffix:e=>`${e}개의 리뷰 · 첫 리뷰의 주인공이 되어보세요`,reviewCount:e=>`${e}개의 리뷰`},sort:{ariaLabel:"리뷰 정렬",bestFirst:"베스트",latest:"최신순",highestRating:"별점 높은순",lowestRating:"별점 낮은순"},policy:{link:"운영 정책",title:"리뷰 운영정책 안내",close:"확인",sections:[{heading:"리뷰는 누가 작성할 수 있나요?",paragraphs:["해브어에서 해당 상품을 구매하고 구매확정한 회원이 작성할 수 있습니다.","구매확정 후 90일 이내에 작성할 수 있으며, 리뷰는 10자 이상 작성해야 합니다."]},{heading:"리뷰는 얼마 동안 게시되나요?",paragraphs:["작성한 리뷰는 별도의 게시 기간 제한 없이 게시됩니다.","다만 회원이 직접 삭제하거나 운영정책 위반으로 미노출 처리되는 경우 노출이 중단됩니다.","삭제한 리뷰는 다시 작성할 수 없습니다."]},{heading:"별점은 어떻게 산정되고 어디에 사용되나요?",paragraphs:["별점은 1점부터 5점까지 부여할 수 있으며, 상품의 종합 평점은 해당 상품에 등록된 전체 리뷰의 별점 평균으로 산정됩니다.","종합 평점은 상품 상세 화면·검색 결과 등에 노출될 수 있으며, 정렬 순서에 영향을 줄 수 있습니다.","리뷰 적립금은 상품 가격 및 작성 방식(글자 수, 사진 첨부 등)에 따라 지급 여부 및 금액이 달라질 수 있으며, 별점 및 평가 내용과는 무관합니다."]},{heading:"리뷰 삭제(미노출) 기준과 이의제기 절차는 어떻게 되나요?",paragraphs:["다음에 해당하는 리뷰는 사전 고지 없이 미노출 처리될 수 있습니다."],bullets:["구매한 상품과 관련 없는 내용을 게시한 경우","욕설·비방·차별적 표현 등 타인에게 불쾌감을 주는 내용을 게시한 경우","광고·홍보 목적이거나 외부 링크·연락처가 포함된 내용을 게시한 경우","타인의 개인정보 또는 저작권 등 권리를 침해하는 내용을 게시한 경우","상품 정보와 명백히 다른 허위 내용을 게시한 경우","동일하거나 유사한 내용을 반복적으로 게시한 경우","그 밖에 관련 법령 또는 해브어 이용약관을 위반한 경우"],after:["위반이 누적되면 리뷰 작성이 일정 기간 또는 영구적으로 제한될 수 있습니다.","미노출 또는 작성 제한에 이의가 있으신 경우, 리뷰를 수정한 뒤 재검토를 요청하시거나 고객센터(1:1 문의·카카오 채널)로 이의를 접수해 주시면 확인 후 결과를 안내드립니다."]}]},photo:{addCta:"사진 추가",uploading:"업로드 중...",uploadFail:"사진 업로드 실패",invalidFile:"파일을 선택해주세요.",invalidMime:"JPG / PNG / WEBP / GIF 만 업로드할 수 있어요.",tooLarge:"5MB 이하 이미지만 업로드할 수 있어요.",maxReached:e=>`사진은 최대 ${e}장까지 첨부할 수 있어요.`,removeAria:e=>`${e}번째 사진 삭제`,previewAlt:e=>`리뷰 사진 ${e}`},confirm:{cta:"구매확정하고 리뷰 쓰기",dialogTitle:"구매확정할까요?",effect1:"구매확정하면 취소·반품 신청이 닫혀요.",effect2:"문제가 있다면 확정 전에 먼저 문의해 주세요.",effect3:"확정하면 바로 리뷰를 쓸 수 있어요.",inquiryCta:"1:1 문의하기",submit:"구매확정하고 리뷰 쓰기",later:"나중에",pending:"구매확정하고 리뷰 쓰기",done:"구매확정했어요",invalid:"주문 정보가 올바르지 않아요.",loadFail:"주문을 확인하지 못했어요. 잠시 후 다시 시도해 주세요.",notFound:"이 주문에서 상품을 찾지 못했어요.",notEligible:"지금은 구매확정할 수 없는 상품이에요.",fail:"구매확정에 실패했어요.",failUnexpected:"일시적인 오류가 발생했어요. 다시 시도해 주세요."},deepLink:{title:"구매하신 상품, 어떠셨나요?",lead:"별점을 누르면 문구가 자동으로 채워져요. 소중한 후기를 남겨주세요.",notFoundTitle:"주문을 찾을 수 없어요",notFoundBody:"링크가 만료됐거나 로그인한 계정의 주문이 아니에요. 마이페이지에서 주문을 확인해주세요.",toMypage:"마이페이지로 가기"},write:{title:"리뷰 작성",rateLabel:"별점",rateRequired:"별점을 선택해주세요 (1~5).",contentLabel:"리뷰 내용",contentPlaceholder:"상품 사용 경험을 10자 이상 자세히 작성해주세요.",quickHint:"별점을 고르면 문구가 자동 완성돼요. 자유롭게 수정할 수 있어요.",contentMin:"리뷰는 10자 이상 작성해주세요.",contentMax:"리뷰는 5000자 이내로 작성해주세요.",submit:"리뷰 등록",submitting:"등록 중...",success:"리뷰가 등록되었습니다. 운영자 검수 후 노출됩니다.",loginRequired:"리뷰 작성은 로그인이 필요해요.",loginCta:"로그인하기",purchaseRequired:"구매하신 회원만 리뷰를 작성할 수 있어요.",pickOption:"어떤 상품에 대해 쓰시나요?",confirmRequired:"구매확정을 하면 바로 리뷰를 쓸 수 있어요.",notOwned:"이 주문에서 확인되지 않는 상품이에요. 마이페이지에서 다시 시작해 주세요.",verifyFailed:"주문을 확인하지 못했어요. 잠시 후 다시 시도해 주세요.",orderKeyRequired:"어떤 주문의 상품인지 확인되지 않았어요. 마이페이지 리뷰 탭에서 작성해 주세요.",invalidInput:"별점과 10자 이상의 내용을 확인해 주세요.",submitFail:"리뷰를 등록하지 못했어요.",unexpected:"일시적인 오류가 발생했어요. 다시 시도해 주세요.",doneTitle:"리뷰를 남겼어요",doneToast:"리뷰를 남겼어요 · 검수 후 노출돼요",stampLabel:"THANKS"},entry:{badge:{"not-yet":"배송 중","confirm-needed":"배송완료",writable:"리뷰 쓸 수 있어요",written:"작성 완료",closed:"작성 불가"},group:{"confirm-needed":e=>`구매확정이 필요해요 (${e})`,writable:e=>`리뷰를 쓸 수 있어요 (${e})`,"not-yet":e=>`도착하면 쓸 수 있어요 (${e})`,done:(e,t)=>`작성 완료 ${e} · 닫힘 ${t}`},cta:{writable:"리뷰 쓰기","not-yet":"배송 조회",written:"작성 완료"},closedReason:{claim:"취소·반품이 진행 중이에요.",expired:"리뷰 작성 기간이 지났어요.",notTarget:"리뷰를 받지 않는 상품이에요."},productFallback:e=>`상품 ${e}`,accrual:"리뷰 1,000P · 사진을 더하면 2,000P 적립돼요.",toMypage:"마이페이지 리뷰 관리",allDoneTitle:"이 주문에 쓸 리뷰가 없어요",allDoneBody:"작성했거나, 기간이 지났거나, 취소된 상품이에요.",loadErrorTitle:"불러오지 못했어요",loadErrorBody:"잠시 후 다시 시도해 주세요.",retry:"다시 시도",inAppFallback:"로그인이 계속 막히면 오른쪽 위 ⋯ 를 눌러 다른 브라우저로 열어 주세요.",copyLink:"링크 복사",copied:"링크를 복사했어요",copyFailed:"복사가 안 돼요. 주소창의 링크를 직접 복사해 주세요."}};n.d(t,["N",0,r])},46700(e,t,n){const r={overseasBody:"해외 배송 상품은 주문이 해외 브랜드사에 접수되면 취소·환불·교환이 어렵습니다. 참고하여 주문해 주세요.",madeToOrderBody:["브랜드사 사정에 따라 기간이 달라질 수 있어요. 주문 단계가 [해외 발주 완료]가 되면 취소할 수 없어요. 결제 완료·발주 진행 중이면 상담 채팅으로 문의해 주세요.","발주 완료 후에도 브랜드사가 제작 기간 변동을 통보하는 경우가 있어요.","해상 운송 중 기후·국제 정세 등으로 운송 일정이 바뀔 수 있어요.","주문제작 상품은 기성 재고가 아니라 고객 요청으로 1:1 개별 제작돼요. 단순 변심·배송 지연을 이유로 취소할 수 없으니 신중히 구매해 주세요.","대량 생산이 아니라 제작 과정의 변수로 일정이 바뀌기도 해요. 배송 기간은 여유롭게 보고 주문해 주세요."]},a={consent:r};n.d(t,["D",0,r,"P",0,a])},42552(e,t,n){const r={heading:"리뷰"},a=r;n.d(t,["N",0,a,"v",0,r])},68801(e,t,n){function r(e,t){if("Tab"!==e.key||!t)return!1;const n=(e=>{const t=e.ownerDocument?.defaultView??null;return Array.from(e.querySelectorAll('a[href],area[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]')).filter(e=>{if("number"!=typeof e.tabIndex||e.tabIndex<0)return!1;if("function"==typeof e.matches&&e.matches(":disabled"))return!1;if("function"==typeof e.closest&&e.closest("[inert],[hidden]"))return!1;const n=t&&"function"==typeof t.getComputedStyle?t.getComputedStyle(e):null;return(!n||"hidden"!==n.visibility&&"none"!==n.display)&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)})})(t);if(0===n.length)return e.preventDefault(),t.focus({preventScroll:!0}),!0;const r=n[0],a=n[n.length-1],o=t.ownerDocument.activeElement;return!e.shiftKey||o!==r&&o!==t&&t.contains(o)?e.shiftKey||o!==a&&t.contains(o)||(e.preventDefault(),r.focus()):(e.preventDefault(),a.focus()),!0}n.d(t,{L:()=>r})},49373(e,t,n){var r=n(91598);const a=(e,t=!1,n=(0,r.hV)([720,1080]))=>{for(const a of e.querySelectorAll("img")){if(!t){const e=a.getAttribute("src"),t=(0,r.zp)(e,n);t!==e&&(a.setAttribute("src",t),a.removeAttribute("srcset"),a.removeAttribute("sizes"))}a.setAttribute("loading","lazy"),a.setAttribute("decoding","async")}return e};n.d(t,["a",0,(e,t,n,r=!1)=>{const o=e(t??"",{...n,RETURN_DOM_FRAGMENT:!0});return a(o,r),e(o,{...n,ADD_ATTR:[...n.ADD_ATTR??[],"loading","decoding"]})},"b",0,a])},78428(e,t,n){n.d(t,{QF:()=>a,me:()=>o});const r=31457280;function a(e){if(!(e instanceof Uint8Array))return null;const t=(t,n)=>String.fromCharCode(...e.subarray(t,n));if(255===e[0]&&216===e[1]&&255===e[2])return"image/jpeg";if(137===e[0]&&"PNG"===t(1,4))return"image/png";if("GIF8"===t(0,4))return"image/gif";if("RIFF"===t(0,4)&&"WEBP"===t(8,12))return"image/webp";if("ftyp"===t(4,8)){const e=t(8,12);if("avif"===e)return"image/avif";if(["heic","heix","heim","heis","hevc","hevx","hevm","hevs","mif1","mif2","msf1"].includes(e))return"image/heic"}return"II"===t(0,2)&&42===e[2]&&0===e[3]||"MM"===t(0,2)&&0===e[2]&&42===e[3]?"image/tiff":"BM"===t(0,2)?"image/bmp":null}async function o(e,{maxEdge:t=2048,square:n=!1}={}){if(e.size>r)throw new RangeError("Photo too large");const o=a(new Uint8Array(await e.slice(0,16).arrayBuffer()))||e.type,l=`photo-${Array.from(crypto.getRandomValues(new Uint8Array(4)),e=>e.toString(16).padStart(2,"0")).join("")}`;if(!(t>0))throw new Error("Invalid image size");let i,s;try{const r="image/gif"===o?function(e){const t=()=>{throw new Error("Invalid GIF")};e instanceof Uint8Array&&!(e.length<14)||t();const n=String.fromCharCode(...e.subarray(0,6));"GIF87a"!==n&&"GIF89a"!==n&&t(),e[6]|e[7]&&e[8]|e[9]||t();let r=13+(128&e[10]?3*(1<<1+(7&e[10])):0);r>=e.length&&t();const a=[e.subarray(0,r)],o=n=>{let r=n;for(;re.length&&t(),r+=n,!n)return r}return t()};let l=0;for(;re+t.length,0));let i=0;for(const e of a)o.set(e,i),i+=e.length;return o}if(44===i){!(r+9>e.length)&&e[r+4]|e[r+5]&&e[r+6]|e[r+7]||t();const i=e[r+8];r+=9+(128&i?3*(1<<1+(7&i)):0),(r>=e.length||e[r]<2||e[r]>8)&&t(),r=o(r+1),l+=1,a.push(e.subarray(n,r));continue}(33!==i||r>=e.length)&&t();const s=e[r++];if(249===s)(r+6>e.length||4!==e[r]||0!==e[r+5])&&t(),r+=6,a.push(e.subarray(n,r));else if(254===s)r=o(r);else if(1===s||255===s){const l=e[r++];1===s&&12!==l&&t(),r+l>e.length&&t();const i=255===s&&11===l?String.fromCharCode(...e.subarray(r,r+l)):"",c=r+l;r=o(c),"NETSCAPE2.0"!==i&&"ANIMEXTS1.0"!==i||(r===c+5&&3===e[c]&&1===e[c+1]||t(),a.push(e.subarray(n,r)))}else t()}return t()}(new Uint8Array(await e.arrayBuffer())):null;s=URL.createObjectURL(e),i=new Image,await new Promise((e,t)=>{i.onload=e,i.onerror=t,i.src=s});const a=i.naturalWidth,c=i.naturalHeight;if(!(a>0&&c>0))throw new Error("Invalid image");if(a*c>5e7)throw new RangeError("Photo too large");if(r)return new File([r],`${l}.gif`,{type:"image/gif"});const d=Math.min(a,c),u=n?d:a,p=n?d:c,m=n?Math.round((a-d)/2):0,h=Math.min(1,t/Math.max(u,p)),v=document.createElement("canvas");v.width=Math.max(1,Math.round(u*h)),v.height=Math.max(1,Math.round(p*h));const f=v.getContext("2d");if(!f)throw new Error("Canvas unavailable");const b="image/png"===o;b||(f.fillStyle="#fff",f.fillRect(0,0,v.width,v.height)),f.drawImage(i,m,0,u,p,0,0,v.width,v.height);const y=b?"image/png":"image/jpeg",g=await new Promise(e=>v.toBlob(e,y,.9));if(!g||g.type!==y)throw new Error("Image encoding failed");return new File([g],`${l}.${b?"png":"jpg"}`,{type:y})}finally{s&&URL.revokeObjectURL(s)}}n.d(t,["b1",0,r])},54425(e,t,n){function r(e){const t=e?.status;return Boolean(t)&&"ONSALE"===t.saleStatusType&&!0!==t.soldout&&!1!==t.display&&0!==e.baseInfo?.stockCnt}n.d(t,{$:()=>r})},89689(e,t,n){n.d(t,{CV:()=>h,a3:()=>m,o9:()=>c});const r="SHOPBY_CHANNEL_TYPE",a="hv_order_channel",o=["NAVER_EP","PAYCO_MALL"],l=/(?:^|;\s*)SHOPBY_CHANNEL_TYPE=([^;]*)/,i=e=>"string"==typeof e&&o.includes(e)?e:null,s=e=>{try{return i(new URL(e).searchParams.get("channelType"))}catch{return null}};function c(e,t){if(!e||"function"!=typeof t)return null;const n=function(e){let t=null;try{t=e.performance.getEntriesByType("navigation")[0]?.name??null}catch{t=null}let n=null;try{n=e.location.href}catch{n=null}return s(t)??s(n)}(e);if(!n)return null;try{t(r,n)}catch{return null}return n}const d=e=>{try{return e?.sessionStorage??null}catch{return null}},u=e=>{try{const t=JSON.parse(e.getItem(a));return t&&"object"==typeof t&&!Array.isArray(t)?t:{}}catch{return{}}},p=e=>Number.isSafeInteger(e)&&e>0;function m(e,t,n){const o=d(t);if(o)try{const s=u(o),c=function(e){try{return i(l.exec(e.cookie)?.[1])}catch{return null}}(t.document);let d=!1;for(const t of Array.isArray(e)?e:[]){const e=Number(t?.productNo),a=i(t?.channelType),o=a??c;o&&p(e)&&(a&&"function"==typeof n&&n(r,a),s[e]=o,d=!0)}d&&o.setItem(a,JSON.stringify(s))}catch{}}function h(e,t){const n=Array.isArray(e?.products)?e.products:null,r=d(t);if(!n||!r)return e;const a=u(r);let o=0;const l=n.map(e=>{const t=p(e?.productNo)?i(a[e.productNo]):null;return t?(o+=1,{...e,channelType:t}):e});if(0===o)return e;const s=l[0].channelType,c=o===l.length&&l.every(e=>e.channelType===s)?s:null;return c?{...e,channelType:c,products:l}:{...e,products:l}}},55167(e,t,n){function r(e){return[e?.contentHeader,e?.content,e?.contentFooter].filter(e=>"string"==typeof e&&e.trim().length>0).join("\n")}n.d(t,{P:()=>r})},43145(e,t,n){n.d(t,{S:()=>a});const r=e=>"string"==typeof e&&e.startsWith("//")?`https:${e}`:e;function a(e){const t=e?.baseInfo?.imageUrlInfo,n=Array.isArray(t)?t.filter(e=>e&&"IMAGE_URL"===e.type).map(e=>e.url):null;return((n&&n.length>0?n:e?.baseInfo?.imageUrls)??[]).filter(e=>"string"==typeof e&&e.length>0).map(r)}},50613(e,t,n){function r(e){return 0===e?.stock?.stockCnt||function(e){const t=e?.status;return!!t&&(!0===t.soldout||!!t.saleStatusType&&"ONSALE"!==t.saleStatusType)}(e)}n.d(t,{g:()=>r})},52472(e,t,n){n.d(t,{Bi:()=>u,bM:()=>d,lE:()=>s,mB:()=>i});var r=n(59438);const a=e=>Number.isInteger(e)&&e>0,o="recent_viewed_v1",l="havea_recent_thumbs_v1";function i(e){try{const t=JSON.parse(e?.getItem?.(o)??"[]");return Array.isArray(t)?t.filter(e=>Number.isInteger(e)):[]}catch{return[]}}function s(e,t){if(!a(e))return i(t);const n=[e,...i(t).filter(t=>t!==e)].slice(0,8);try{t?.setItem?.(o,JSON.stringify(n))}catch{}return n}const c=e=>"string"==typeof e&&/^(https?:\/\/|\/\/)/i.test(e)?(0,r.e)(e):null;function d(e){try{const t=JSON.parse(e?.getItem?.(l)??"{}");return!t||"object"!=typeof t||Array.isArray(t)?{}:Object.fromEntries(Object.entries(t).filter(([e,t])=>a(Number(e))&&c(t)).slice(0,12).map(([e,t])=>[e,c(t)]))}catch{return{}}}function u(e,t,n){const r=c(t);if(!a(e)||!r)return!1;const o=d(n),s=i(n),u=[e,...s.filter(t=>t!==e)].slice(0,12),p=Object.fromEntries(u.map(t=>[t,t===e?r:o[t]]).filter(([,e])=>e));try{return!!n?.setItem&&(n.setItem(l,JSON.stringify(p)),!0)}catch{return!1}}},82840(e,t,n){function r(e,t){return e||t||null}function a(e){if("string"!=typeof e)return null;const t=e.trim();return/^[A-Za-z0-9-]{1,11}$/.test(t)?t:null}function o({partner:e,partners:t,serviceBasicInfo:n}={}){const r=a(n?.ecommerceBusinessCode);if(!e)return r;if(!Array.isArray(t))return null;const o=e.partnerNo,l=null!=o&&""!==String(o).trim()?t.find(e=>null!=e?.partnerNo&&String(e.partnerNo)===String(o)):null;return l?a(l.ecommerceBusinessCode):r}function l(e,t){const n=function(e){if("string"!=typeof e)return null;if(/[\u0000-\u001f\u007f]/.test(e)||-1!==e.indexOf("\\"))return null;const t=e.trim();if(""===t)return null;let n;try{n=new URL(t)}catch(e){return null}return"https:"!==n.protocol&&"http:"!==n.protocol||""!==n.username||""!==n.password?null:n.href}(t);if(n)return n;const r="string"==typeof e||"number"==typeof e?String(e).replace(/\D/g,""):"";return r?`https://www.ftc.go.kr/bizCommPop.do?wrkr_no=${r}&apv_perm_no=`:null}function i(e){return!!e&&"object"==typeof e&&!1!==e.used&&"string"==typeof e.contents&&""!==e.contents.trim()}function s(e,t){if(!i(e))return null;let n=e.contents;const r=Array.isArray(t)?t:[];for(let e=0;e${t}${a.contents}`)}return n}n.d(t,{Ew:()=>p,P$:()=>w,Tr:()=>o,XE:()=>u,YV:()=>l,b1:()=>a,dZ:()=>_,l$:()=>h,pL:()=>b,pb:()=>s,pv:()=>r});const c=e=>{const t=e?.name??e?.boardName;return"string"==typeof t?t:""};function d(e,t,n){const r=(Array.isArray(e)?e:[]).filter(e=>e&&!1!==e.used&&Number.isInteger(e.boardNo)&&e.boardNo>0),a=e=>"string"==typeof e.boardId?e.boardId.trim().toLowerCase():"",o=(Array.isArray(t)?t:[]).map(e=>String(e).toLowerCase()),l=r.find(e=>o.includes(a(e)))??r.find(e=>""!==a(e)&&o.some(t=>a(e).includes(t)));if(l)return l;const i=r.filter(e=>""===a(e)&&n instanceof RegExp&&n.test(c(e)));return 1===i.length?i[0]:null}function u(e,t,n){return d(e,t,n)?.boardNo??null}function p(e){return c(e)||null}const m={usage:"boardReadConfig",read:"postReadConfig"};function h(e,t="usage"){const n=m[t],r=e?.authorityConfig?.[n]?.type;return"string"==typeof r&&""!==r.trim()}const v=["faq"],f=/faq|자주\s*묻는/i;function b(e){return u(e,v,f)}const y=["notice"],g=/공지\s*사항|notice/i;function _(e){return d(e,y,g)}function E(e){return String(e??"").replace(/<[^>]+>/g," ").replace(/ /g," ").replace(/\s+/g," ").trim().slice(0,1200)}function w(e,t=E){const n=Array.isArray(e)?e:[];return 0===n.length?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:n.slice(0,30).map(e=>({"@type":"Question",name:e?.title??"",acceptedAnswer:{"@type":"Answer",text:t(e?.content??"")}}))}}n.d(t,["Ox",0,f,"Uz",0,g,"hd",0,y,"tI",0,v])}}]);