(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3110],{44146:function(t,e,a){Promise.resolve().then(a.bind(a,16333)),Promise.resolve().then(a.t.bind(a,17540,23)),Promise.resolve().then(a.bind(a,5318)),Promise.resolve().then(a.bind(a,31752))},16333:function(t,e,a){"use strict";a.r(e),a.d(e,{BackButton:function(){return s},default:function(){return i}});var l=a(57437),o=a(2265),r=a(50151),c=a.n(r),n=a(75470);function i(t){let{images:e,productId:a}=t,r=(0,o.useRef)(null),[i,s]=(0,o.useState)(0),_=(0,o.useCallback)(()=>{let t=r.current;if(!t||!t.clientWidth)return;let e=Math.round(t.scrollLeft/t.clientWidth);s(t=>t===e?t:e)},[]),d=t=>{let e=r.current;e&&e.scrollTo({left:t*e.clientWidth,behavior:"smooth"})},[u,p]=(0,o.useState)(null);(0,o.useEffect)(()=>{if(!a)return;let t=!0;return(0,n.Nh)([a]).then(e=>{var l;let o=null===(l=e[a])||void 0===l?void 0:l.status;t&&p("available"===o||"discontinued"===o?o:null)}),()=>{t=!1}},[a]);let g=t=>{let e=r.current;e&&e.scrollBy({left:t*e.clientWidth,behavior:"smooth"})};return e.length?(0,l.jsxs)("div",{className:c().gal,children:[(0,l.jsx)("div",{className:c().galTrack,ref:r,onScroll:_,children:e.map((t,e)=>(0,l.jsx)("div",{className:c().galSlide,children:(0,l.jsx)("img",{src:t.src,alt:t.alt,width:800,height:800,loading:0===e?"eager":"lazy",...0===e?{fetchPriority:"high"}:{},draggable:!1})},t.src+e))}),"discontinued"===u?(0,l.jsx)("span",{className:"".concat(c().galStock," ").concat(c().galGone),children:"단종\xb7재고확인"}):"available"===u?(0,l.jsx)("span",{className:c().galStock,children:"즉시 출고 가능"}):null,e.length>1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:c().galDots,children:e.map((t,e)=>(0,l.jsx)("button",{type:"button",className:e===i?c().galDotOn:void 0,"aria-label":"".concat(e+1,"번째 사진"),"aria-current":e===i,onClick:()=>d(e)},t.src+e))}),(0,l.jsxs)("span",{className:c().galCount,"aria-live":"polite",children:[(0,l.jsx)("b",{children:i+1})," / ",e.length]}),i>0&&(0,l.jsx)("button",{type:"button",className:"".concat(c().galNav," ").concat(c().galPrev),"aria-label":"이전 사진",onClick:()=>g(-1),children:"‹"}),ig(1),children:"›"})]})]}):(0,l.jsx)("div",{className:c().galEmpty,"aria-hidden":!0})}function s(){return(0,l.jsx)("button",{type:"button",className:c().icBtn,"aria-label":"뒤로",onClick:()=>{document.referrer&&new URL(document.referrer).host===window.location.host&&window.history.length>1?window.history.back():window.location.href="/shop/"},children:(0,l.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,l.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})})})}},50151:function(t){t.exports={page:"product_page___c3yj",top:"product_top__ybSEC",icBtn:"product_icBtn__DVdwL",brandName:"product_brandName__ubB0L",gal:"product_gal__jjCsf",galEmpty:"product_galEmpty__3fcOr",galTrack:"product_galTrack__sP1g8",galSlide:"product_galSlide__ylYk_",galCount:"product_galCount__coAQv",galDots:"product_galDots__yMXae",galDotOn:"product_galDotOn__7ec_m",galStock:"product_galStock__fwNOl",galGone:"product_galGone__gawHu",galNav:"product_galNav__GP2qi",galPrev:"product_galPrev__JxRyH",galNext:"product_galNext__Xw_wd",info:"product_info__hT6QI",bc:"product_bc__jfABU",name:"product_name__Ysc2g",price:"product_price__7643Y",priceSub:"product_priceSub__qR_0U",ship:"product_ship__plF0M",sec:"product_sec__oU3l_",sum:"product_sum__Lqihe",feature:"product_feature__w9mdW",spec:"product_spec__W7ivO",tags:"product_tags__w_ZV2",divider:"product_divider__lbtwX",more:"product_more__NBjCV",foot:"product_foot__XBzfW",cols:"product_cols__aVOFY",wide:"product_wide__QNGWG"}}},function(t){t.O(0,[996,691,156,9759,6484,7648,6816,3823,2739,8839,4159,4838,1752,2971,2117,1744],function(){return t(t.s=44146)}),_N_E=t.O()}]);