(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3256],{95929:function(e,l,t){Promise.resolve().then(t.bind(t,98347)),Promise.resolve().then(t.bind(t,16333)),Promise.resolve().then(t.t.bind(t,17540,23)),Promise.resolve().then(t.bind(t,5318)),Promise.resolve().then(t.bind(t,31752))},98347:function(e,l,t){"use strict";t.d(l,{default:function(){return d}});var a=t(57437),n=t(2265),s=t(17540),r=t.n(s);t(37270);let c=[{slug:"gaenari",label:"개나리벽지",test:e=>e.includes("개나리"),from:["gaenari"]},{slug:"shinhan",label:"신한벽지",test:e=>e.includes("신한벽지"),from:["shinhan"]},{slug:"dongwha",label:"동화자연마루",test:e=>e.includes("동화자연마루"),from:["dongwha"]},{slug:"lx-zin",label:"LX Z:IN(LX지인)",test:e=>/^LX/.test(e.trim()),from:["lx-zin"]},{slug:"hansol",label:"한솔홈데코",test:e=>e.includes("한솔홈데코"),from:["hansol"]},{slug:"legrand",label:"르그랑 스위치\xb7콘센트",test:e=>e.includes("르그랑"),from:[],perPiece:!0},{slug:"ds-elc",label:"디에스 스위치\xb7콘센트",test:e=>/^디에스\(DS\)/.test(e.trim()),from:[],perPiece:!0},{slug:"goneo",label:"고네오 스위치\xb7콘센트",test:e=>e.includes("고네오"),from:[],perPiece:!0},{slug:"daelim-bath",label:"대림바스 수전\xb7욕실용품",test:e=>/^대림\(DAELIM\)/.test(e.trim()),from:[],perPiece:!0},{slug:"american-standard",label:"아메리칸스탠다드 수전\xb7비데",test:e=>e.includes("아메리칸스탠다드"),from:[],perPiece:!0},{slug:"eterno",label:"에떼르노 수전",test:e=>e.includes("에떼르노"),from:[],perPiece:!0},{slug:"kocom",label:"코콤 비디오폰\xb7도어락",test:e=>e.includes("코콤"),from:[],perPiece:!0},{slug:"himpel",label:"힘펠 환풍기",test:e=>e.includes("힘펠"),from:[],perPiece:!0}],o=e=>{var l;return null!==(l=c.find(l=>l.test(e)))&&void 0!==l?l:null};[..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")];let i=e=>{let l=o(e);return l?"/shop/brand/".concat(l.slug,"/"):"/shop/brand/?b=".concat(encodeURIComponent(e))};function d(e){let{brands:l,groups:t}=e,[s,c]=(0,n.useState)(""),[o,d]=(0,n.useState)(""),u=(0,n.useMemo)(()=>{let e=s.trim().toLowerCase();return l.filter(l=>(!o||l.groups.includes(o))&&(!e||"".concat(l.brand," ").concat(l.slogan," ").concat(l.desc).toLowerCase().includes(e)))},[l,s,o]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:r().brandFind,children:[(0,a.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":!0,children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"M20 20l-3.5-3.5"})]}),(0,a.jsx)("input",{value:s,onChange:e=>c(e.target.value.slice(0,40)),placeholder:"브랜드 이름 검색",autoComplete:"off","aria-label":"브랜드 검색"}),s?(0,a.jsx)("button",{type:"button",onClick:()=>c(""),"aria-label":"입력 지우기",children:"✕"}):null]}),(0,a.jsxs)("nav",{className:r().tabs,"aria-label":"자재별 브랜드",children:[(0,a.jsx)("button",{type:"button",className:"".concat(r().tab," ").concat(o?"":r().tabOn),onClick:()=>d(""),children:"전체"}),t.map(e=>(0,a.jsx)("button",{type:"button",className:"".concat(r().tab," ").concat(o===e.slug?r().tabOn:""),onClick:()=>d(o===e.slug?"":e.slug),children:e.label},e.slug))]}),(0,a.jsx)("div",{className:r().hallsGap}),u.length?(0,a.jsx)("ul",{className:r().halls,children:u.map((e,l)=>{let t=e.count-3;return(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:i(e.brand),children:[(0,a.jsxs)("span",{className:r().hallCover,children:[e.cover?(0,a.jsx)("img",{src:e.cover,alt:"".concat(e.brand.trim()," 적용 사례"),width:800,height:450,loading:l<2?"eager":"lazy"}):null,e.slogan?(0,a.jsxs)("span",{className:r().hallSlogan,children:[(0,a.jsx)("small",{children:e.brand.trim()}),(0,a.jsx)("b",{children:e.slogan})]}):null]}),(0,a.jsx)("span",{className:r().hallThumbs,children:[0,1,2,3].map(l=>(0,a.jsxs)("span",{children:[e.thumbs[l]?(0,a.jsx)("img",{src:e.thumbs[l],alt:"",width:200,height:200,loading:"lazy"}):null,3===l&&t>1?(0,a.jsxs)("em",{children:["+",t.toLocaleString("ko-KR")]}):null]},l))}),(0,a.jsx)("span",{className:r().hallSub,children:e.desc||"제품 ".concat(e.count.toLocaleString("ko-KR"),"개")}),(0,a.jsx)("b",{className:r().hallName,children:e.brand.trim()})]})},e.brand)})}):(0,a.jsx)("p",{className:r().empty,children:"찾는 브랜드가 없습니다."})]})}},16333:function(e,l,t){"use strict";t.r(l),t.d(l,{BackButton:function(){return i},default:function(){return o}});var a=t(57437),n=t(2265),s=t(50151),r=t.n(s),c=t(75470);function o(e){let{images:l,productId:t}=e,s=(0,n.useRef)(null),[o,i]=(0,n.useState)(0),d=(0,n.useCallback)(()=>{let e=s.current;if(!e||!e.clientWidth)return;let l=Math.round(e.scrollLeft/e.clientWidth);i(e=>e===l?e:l)},[]),u=e=>{let l=s.current;l&&l.scrollTo({left:e*l.clientWidth,behavior:"smooth"})},[h,_]=(0,n.useState)(null);(0,n.useEffect)(()=>{if(!t)return;let e=!0;return(0,c.Nh)([t]).then(l=>{var a;let n=null===(a=l[t])||void 0===a?void 0:a.status;e&&_("available"===n||"discontinued"===n?n:null)}),()=>{e=!1}},[t]);let g=e=>{let l=s.current;l&&l.scrollBy({left:e*l.clientWidth,behavior:"smooth"})};return l.length?(0,a.jsxs)("div",{className:r().gal,children:[(0,a.jsx)("div",{className:r().galTrack,ref:s,onScroll:d,children:l.map((e,l)=>(0,a.jsx)("div",{className:r().galSlide,children:(0,a.jsx)("img",{src:e.src,alt:e.alt,width:800,height:800,loading:0===l?"eager":"lazy",...0===l?{fetchPriority:"high"}:{},draggable:!1})},e.src+l))}),"discontinued"===h?(0,a.jsx)("span",{className:"".concat(r().galStock," ").concat(r().galGone),children:"단종\xb7재고확인"}):"available"===h?(0,a.jsx)("span",{className:r().galStock,children:"즉시 출고 가능"}):null,l.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:r().galDots,children:l.map((e,l)=>(0,a.jsx)("button",{type:"button",className:l===o?r().galDotOn:void 0,"aria-label":"".concat(l+1,"번째 사진"),"aria-current":l===o,onClick:()=>u(l)},e.src+l))}),(0,a.jsxs)("span",{className:r().galCount,"aria-live":"polite",children:[(0,a.jsx)("b",{children:o+1})," / ",l.length]}),o>0&&(0,a.jsx)("button",{type:"button",className:"".concat(r().galNav," ").concat(r().galPrev),"aria-label":"이전 사진",onClick:()=>g(-1),children:"‹"}),og(1),children:"›"})]})]}):(0,a.jsx)("div",{className:r().galEmpty,"aria-hidden":!0})}function i(){return(0,a.jsx)("button",{type:"button",className:r().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,a.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,a.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})})})}},50151:function(e){e.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(e){e.O(0,[996,691,156,9759,6484,7648,6816,3823,2739,8839,4159,4838,1752,2971,2117,1744],function(){return e(e.s=95929)}),_N_E=e.O()}]);