(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,4678,2741,8035,2865,3942,2491,7489,2833],{43680:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return c(99513)}])},7369:function(a,b){"use strict";function c(a,b,c,d){return!1}Object.defineProperty(b,"__esModule",{value:!0}),b.getDomainLocale=c,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&& void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},83114:function(a,b,c){"use strict";function d(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=0||(e[c]=a[c]);return e}(a,["href","as","children","prefetch","passHref","replace","soft","shallow","scroll","locale","onClick","onMouseEnter","legacyBehavior"]);c=s,D&&("string"==typeof c||"number"==typeof c)&&(c=h.default.createElement("a",null,c));var F=!1!==t,G=e(p?h.default.useTransition():[],2),H=G[1],I=h.default.useContext(k.RouterContext),J=h.default.useContext(l.AppRouterContext);J&&(I=J);var K=h.default.useMemo(function(){var a=e(i.resolveHref(I,f,!0),2),b=a[0],c=a[1];return{href:b,as:g?i.resolveHref(I,g):c||b}},[I,f,g]),L=K.href,M=K.as,N=h.default.useRef(L),O=h.default.useRef(M);D&&(d=h.default.Children.only(c));var P=D?d&&"object"==typeof d&&d.ref:b,Q=e(m.useIntersection({rootMargin:"200px"}),3),R=Q[0],S=Q[1],T=Q[2],U=h.default.useCallback(function(a){(O.current!==M||N.current!==L)&&(T(),O.current=M,N.current=L),R(a),P&&("function"==typeof P?P(a):"object"==typeof P&&(P.current=a))},[M,P,L,T,R]);h.default.useEffect(function(){var a=S&&F&&i.isLocalURL(L),b=void 0!==z?z:I&&I.locale,c=q[L+"%"+M+(b?"%"+b:"")];a&&!c&&r(I,L,M,{locale:b})},[M,L,S,z,F,I]);var V={ref:U,onClick:function(a){D||"function"!=typeof A||A(a),D&&d.props&&"function"==typeof d.props.onClick&&d.props.onClick(a),a.defaultPrevented||function(a,b,c,d,e,f,g,h,j,k){if("A"!==a.currentTarget.nodeName.toUpperCase()||(!(m=(l=a).currentTarget.target)||"_self"===m)&&!l.metaKey&&!l.ctrlKey&&!l.shiftKey&&!l.altKey&&(!l.nativeEvent||2!==l.nativeEvent.which)&&i.isLocalURL(c)){a.preventDefault();var l,m,n=function(){"softPush"in b&&"softReplace"in b?b[f?e?"softReplace":"softPush":e?"replace":"push"](c):b[e?"replace":"push"](c,d,{shallow:g,locale:j,scroll:h})};k?k(n):n()}}(a,I,L,M,v,w,x,y,z,J?H:void 0)},onMouseEnter:function(a){D||"function"!=typeof B||B(a),D&&d.props&&"function"==typeof d.props.onMouseEnter&&d.props.onMouseEnter(a),i.isLocalURL(L)&&r(I,L,M,{priority:!0})}};if(!D||u||"a"===d.type&&!("href"in d.props)){var W=void 0!==z?z:I&&I.locale,X=I&&I.isLocaleDomain&&n.getDomainLocale(M,W,I.locales,I.domainLocales);V.href=X||o.addBasePath(j.addLocale(M,W,I&&I.defaultLocale))}return D?h.default.cloneElement(d,V):h.default.createElement("a",Object.assign({},E,V),c)});b.default=s,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&& void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},39838:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.FullAppTreeContext=b.AppTreeContext=b.AppRouterContext=void 0;var d,e=(d=c(91987),d&&d.__esModule?d:{default:d}),f=e.default.createContext(null);b.AppRouterContext=f;var g=e.default.createContext(null);b.AppTreeContext=g;var h=e.default.createContext(null);b.FullAppTreeContext=h},36521:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b){var c,f,h=d.default,i={loading:function(a){return a.error,a.isLoading,a.pastDelay,null}};if((c=a,null!=(f=Promise)&&"undefined"!=typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](c):c instanceof f)?i.loader=function(){return a}:"function"==typeof a?i.loader=a:"object"==typeof a&&(i=e({},i,a)),(i=e({},i,b)).loadableGenerated&&delete(i=e({},i,i.loadableGenerated)).loadableGenerated,"boolean"==typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,g(h,i);delete i.ssr}return h(i)},b.noSSR=g,f(c(91987));var d=f(c(91655));function e(){return(e=Object.assign||function(a){for(var b=1;b0&& void 0!==arguments[0]?arguments[0]:[];return new Promise(function(b){var c=function(){return l=!0,b()};p(k,a).then(c,c)})},window.__NEXT_PRELOADREADY=o.preloadReady,b.default=o},99513:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return al},default:function(){return am}});var d=c(61261),e=c(91987),f=c(46099),g=c(80330),h=c(30257),i=c.n(h),j=c(364),k=c(33947),l=c(87121),m=function(a){var b=a.data,c=(0,e.useState)(-1),d=c[0],f=c[1],g=(0,e.useState)(0),h=g[0],i=g[1],j=(0,e.useState)(!1),m=j[0],n=j[1],o=(0,e.useState)(0),p=o[0],q=o[1],r=(0,e.useCallback)(function(){n(!0)},[]),s=(0,e.useMemo)(function(){var a,c,d;return null===(a=b[0])|| void 0===a?void 0:null===(c=a.attribute)|| void 0===c?void 0:null===(d=c.body)|| void 0===d?void 0:d.gtm},[b]),t=(0,e.useMemo)(function(){var a,c;return(null===(a=b[0])|| void 0===a?void 0:null===(c=a.data)|| void 0===c?void 0:c.content)||[]},[b]),u=(0,k.ZP)("MAIN_SECTION_CATEGORY",function(){return(0,l.QK)().getMainSectionMenus.exec({typeValue:"PC"})}),v=u.data,w=(0,e.useMemo)(function(){return(null==v?void 0:v.mallMenu)||[]},[null==v?void 0:v.mallMenu]),x=(0,e.useMemo)(function(){return(null==v?void 0:v.remodelingMenu)||[]},[null==v?void 0:v.remodelingMenu]),y=(0,e.useRef)(-1),z=(0,e.useCallback)(function(a){if(t&&(null==t?void 0:t.length)+1 .swiper-slide");setTimeout(function(){a.forEach(function(a,b){b===d?a.classList.add("visible_main_text"):a.classList.remove("visible_main_text")})},400),setTimeout(function(){a.forEach(function(a,b){b===d?a.classList.add("visible_sub_text"):a.classList.remove("visible_sub_text")})},500)},[d]),B=(0,e.useCallback)(function(a){i(a)},[]),C=(0,e.useRef)(null),D=(0,e.useCallback)(function(){C.current&&C.current.swiper&&C.current.swiper.slideTo(1)},[]);return(0,e.useEffect)(function(){t.length>0&&m&&f(1)},[t,m]),(0,e.useEffect)(function(){A()},[d]),(0,e.useEffect)(function(){var a=function(){q(function(a){return a+1}),f(0)};return window.addEventListener("resize",a),function(){window.removeEventListener("resize",a)}},[]),{swiperKey:p,isLoaded:m,handleImageLoad:r,activeIndex:d,activeCategory:h,displayGTM:s,welcomeBannerList:t,mallMenus:w,remodelingMenus:x,handleChangeSwiper:z,handleClickBigCategory:B,handleClickTopButton:D,swiperRef:C}},n=m,o=c(21929),p=c(52655),q=function(a,b){return 14*a+(a>b?26:0)},r=function(a){var b=a.swiperActiveIndex,c=a.bannerCount+1,d=b<=0?c-1:b>c?0:b-1,f=(0,e.useRef)(d),g=(0,e.useRef)(),h=(0,e.useState)(!1),i=h[0],j=h[1],k=(0,e.useState)(14*d),l=k[0],m=k[1],n=(0,e.useState)(32),o=n[0],p=n[1],r=(0,e.useState)("none"),s=r[0],t=r[1];return(0,e.useEffect)(function(){var a=f.current,b=Math.abs(d-a);f.current=d,g.current&&clearTimeout(g.current);var c=14*d,e=14*a;if(0!==b){if(b>1){j(!0),t("none"),m(c),p(32);var h=requestAnimationFrame(function(){requestAnimationFrame(function(){j(!1)})});return function(){return cancelAnimationFrame(h)}}var i=Math.min(e,c),k=Math.abs(c-e)+32;return t("top ".concat(120,"ms ease-in, height ").concat(120,"ms ease-in")),m(i),p(k),g.current=setTimeout(function(){t("top ".concat(180,"ms ease-out, height ").concat(180,"ms ease-out")),m(c),p(32)},120),function(){g.current&&clearTimeout(g.current)}}},[d]),(0,e.useEffect)(function(){return function(){g.current&&clearTimeout(g.current)}},[]),{indicatorIndex:d,totalCount:c,containerHeight:(c-1)*14+32,barTop:l,barHeight:o,barTransition:s,skipTransition:i,dotSize:6,dotTransitionDuration:300,getDotTop:q}};function s(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))}function t(){var a=s(["\n position: absolute;\n right: 40px;\n top: 50%;\n transform: translateY(-50%);\n width: ","px;\n z-index: ",";\n"]);return t=function(){return a},a}function u(){var a=s(["\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: ","px;\n height: ","px;\n border-radius: ","px;\n background-color: rgba(255, 255, 255, 0.5);\n box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);\n"]);return u=function(){return a},a}function v(){var a=s(["\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: ","px;\n border-radius: ","px;\n background-color: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);\n"]);return v=function(){return a},a}var w=function(a){var b=a.swiperActiveIndex,c=a.bannerCount,e=r({swiperActiveIndex:b,bannerCount:c}),f=e.indicatorIndex,g=e.totalCount,h=e.containerHeight,i=e.barTop,j=e.barHeight,k=e.barTransition,l=e.skipTransition,m=e.dotSize,n=e.dotTransitionDuration,o=e.getDotTop;return g<=0||f<0?null:(0,d.jsxs)(x,{$dotSize:m,style:{height:h},children:[Array.from({length:g}).map(function(a,b){return(0,d.jsx)(y,{"data-test-id":"main_indicator_banner_".concat(b),$dotSize:m,style:{top:o(b,f),transition:l?"none":"top ".concat(n,"ms ease-in-out")}},b)}),(0,d.jsx)(z,{$dotSize:m,style:{top:i,height:j,transition:k}})]})},x=(0,o.ZP)(j.xuv).withConfig({displayName:"BannerIndicator__StyledContainer",componentId:"sc-127229a2-0"})(t(),function(a){return a.$dotSize},p.BV+1),y=(0,o.ZP)(j.xuv).withConfig({displayName:"BannerIndicator__StyledBackgroundDot",componentId:"sc-127229a2-1"})(u(),function(a){return a.$dotSize},function(a){return a.$dotSize},function(a){return a.$dotSize/2}),z=(0,o.ZP)(j.xuv).withConfig({displayName:"BannerIndicator__StyledActiveBar",componentId:"sc-127229a2-2"})(v(),function(a){return a.$dotSize},function(a){return a.$dotSize/2}),A=w,B=c(68704),C=c(30271),D=c(57068),E=c(93622);c(40681);var F=c(19676),G=c(3608),H=c(71975),I=c(38363),J=c(43084),K=c(86860),L=c(77087),M="MAIN_POPUP",N=function(){var a=(0,H.useRouter)(),b=(0,e.useState)(!1),c=b[0],d=b[1],f=(0,e.useState)(!1),g=f[0],h=f[1],i=(0,G.Z)(),j=i.get,k=i.set,l=(0,e.useCallback)(function(a){h(a)},[]),m=(0,e.useCallback)(function(b){a.push(b)},[a]),n=(0,e.useCallback)(function(){(0,L.nz)(M,"done",60),d(!1)},[]),o=(0,e.useCallback)(function(){var a=new Date,b=function(a){(0,J.Z)(1,arguments);var b=(0,I.Z)(a);return b.setHours(0,0,0,0),b}((0,K.Z)(a,1));k(M,"done",{domain:"".concat(".hanssem.com"),expires:b}),d(!1)},[k]);return(0,e.useEffect)(function(){j(M)||(0,L.YX)(M)||!g||d(!0)},[j,g]),{isOpen:c,isReadyData:g,handleClickContent:m,handleClosePopup:n,handleCloseToday:o,handleSyncData:l}},O=c(39840),P=function(){var a=N(),b=a.isOpen,c=a.handleClickContent,e=a.handleClosePopup,f=a.handleCloseToday,g=a.handleSyncData;return(0,d.jsxs)(j.xuv,{display:b?"block":"none",position:"fixed",right:0,bottom:0,width:418,zIndex:p.iO,height:356,children:[(0,d.jsx)(j.xuv,{overflow:"hidden",borderRadius:"16px 16px 0 0",width:418,height:300,style:{cursor:"pointer"},children:(0,d.jsx)(O.s4,{handleClick:function(a){return c(null==a?void 0:a.linkUrl)},width:418,height:300,handleIsOnData:g,isAutoPlayed:!0})}),(0,d.jsxs)(j.Ugi,{height:56,p:"18px 16px",space:"space-between",backgroundColor:"color_chip.white",children:[(0,d.jsx)(j.rTm,{size:"md",color:"color_chip.primary",onClick:f,children:"오늘 하루 보지 않기"}),(0,d.jsx)(j.rTm,{size:"md",color:"color_chip.primary",onClick:e,children:"닫기"})]})]})},Q=e.memo(P),R=c(35735),S=c.n(R),T=c(72490);function U(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function V(a){for(var b=1;b0&&k.map(function(a,b){var c,e;return(0,d.jsx)(af,{"data-test-id":"main_banner_slide_".concat(b),children:(0,d.jsx)(C.b,{width:"100%",height:"100%",children:(0,d.jsx)(T.ee,W(V({href:(null===(c=a.appLinkInfoDto)|| void 0===c?void 0:c.linkUrl)||"",reload:!0,style:{width:"100%",height:"100%"}},F.Z.tagGTM(i.taggtm,W(V({},i),{index:b+1,"landing-url":null===(e=a.appLinkInfoDto)|| void 0===e?void 0:e.linkUrl,"plan-id":"PLAN"===a.appLinkInfoDto.appLinkTarget?a.appLinkInfoDto.appLinkVal:""}))),{children:(0,d.jsx)(j.Ugi,{width:"100%",height:"100%",backgroundImage:"image-set(\n url('".concat(a.imageUrl,"?w=1920') 1x\n )"),backgroundSize:"cover",backgroundPosition:"center",alignment:"end",space:"center",children:(0,d.jsxs)(j.xuv,{width:p.N5,mb:64,pl:100,children:[a.bannerTitle1&&(0,d.jsx)(j.xvT,{variant:"etc01",color:"color_chip.white",textAlign:"left",className:"main_title",children:a.bannerTitle1}),a.bannerTitle2&&(0,d.jsx)(j.xvT,{variant:"etc01",color:"color_chip.white",textAlign:"left",className:"main_title",children:a.bannerTitle2}),a.bannerSubTitle1&&(0,d.jsx)(j.xvT,{variant:"subTitle4",color:"color_chip.white",textAlign:"left",maxWidth:"calc(100% - 44px)",className:"main_subtitle",mt:12,children:a.bannerSubTitle1}),a.bannerSubTitle2&&(0,d.jsx)(j.xvT,{variant:"subTitle4",color:"color_chip.white",textAlign:"left",maxWidth:"calc(100% - 44px)",className:"main_subtitle",children:a.bannerSubTitle2})]})})}))})},"slide-".concat(a.sortSeq))}),(null==k?void 0:k.length)>0&&(0,d.jsx)(af,{children:(0,d.jsx)(j.Ugi,{width:"100%",height:"100%",backgroundColor:"color_chip.primary",alignment:"end",children:(0,d.jsx)(B.Z,{})})})]},c),(0,d.jsx)(A,{swiperActiveIndex:g,bannerCount:k.length}),(0,d.jsxs)(C.b,{position:"absolute",top:132,left:"calc(50% - ".concat(p.N5/2,"px)"),ml:100,zIndex:p.BV,children:[(0,d.jsx)(j.CI,V({variant:"CI_signature_white",resize:!0,width:753.88,height:72,mb:49,onClick:r},F.Z.tagGTM("main_logo_button"))),(0,d.jsxs)(j.Ugi,{children:[(0,d.jsxs)(C.b,{position:"relative",onMouseOver:function(){return q(1)},onMouseLeave:function(){return q(0)},children:[(0,d.jsx)(T.ee,{href:"/furnishing",children:(0,d.jsx)(j.xvT,{variant:"headline3",color:2!==h?"color_chip.white":"dimmed.light.dimmed_70",children:"가구/홈리빙"})}),(0,d.jsx)(ag,{position:"absolute",top:"100%",left:"50%",pt:"5px",display:1===h?"block":"none",children:(0,d.jsx)(ah,{py:16,backgroundColor:"color_chip.white",textAlign:"center",maxHeight:518,minWidth:162,maxWidth:220,overflow:"auto",children:l.length>0&&l.map(function(a,b){var c,e,f;return(0,d.jsx)(ai,{py:"8px",px:24,children:(0,d.jsx)(T.ee,W(V({href:(null===(c=a.appLinkInfoDto)|| void 0===c?void 0:c.linkUrl)||"",reload:!0},F.Z.tagGTM("main_category_button",{"category-id":null===(e=a.appLinkInfoDto)|| void 0===e?void 0:e.appLinkVal})),{children:(0,d.jsx)(j.xvT,{variant:"subTitle4",color:"color_chip.primary",children:a.menuDataNm})}))},null===(f=a.appLinkInfoDto)|| void 0===f?void 0:f.appLinkVal)})})})]}),(0,d.jsx)(j.xuv,{width:"1px",height:16,backgroundColor:"dimmed.light.dimmed_60",mx:16}),(0,d.jsxs)(C.b,{position:"relative",onMouseOver:function(){return q(2)},onMouseLeave:function(){return q(0)},children:[(0,d.jsx)(T.ee,{href:"/interior",children:(0,d.jsx)(j.xvT,{variant:"headline3",color:1!==h?"color_chip.white":"dimmed.light.dimmed_70",children:"인테리어"})}),(0,d.jsx)(ag,{position:"absolute",top:"100%",left:"50%",pt:"5px",display:2===h?"block":"none",children:(0,d.jsx)(ah,{py:16,backgroundColor:"color_chip.white",textAlign:"center",maxHeight:518,minWidth:162,maxWidth:220,overflow:"auto",children:m.length>0&&m.map(function(a,b){var c,e,f;return(0,d.jsx)(ai,{py:"8px",px:24,children:(0,d.jsx)(T.ee,W(V({href:(null===(c=a.appLinkInfoDto)|| void 0===c?void 0:c.linkUrl)||"",reload:!0},F.Z.tagGTM("main_category_button",{"category-id":null===(e=a.appLinkInfoDto)|| void 0===e?void 0:e.appLinkVal})),{children:(0,d.jsx)(j.xvT,{variant:"subTitle4",color:"color_chip.primary",children:a.menuDataNm})}))},null===(f=a.appLinkInfoDto)|| void 0===f?void 0:f.appLinkVal)})})})]})]})]}),(0,d.jsx)(Q,{})]}))]})},ad=(0,o.ZP)(i()).withConfig({displayName:"Home__SecretImage",componentId:"sc-ef81bb2-0"})(Y()),ae=(0,o.ZP)(j.xuv).withConfig({displayName:"Home__StyledWrapper",componentId:"sc-ef81bb2-1"})(Z()),af=(0,o.ZP)(E.o5).withConfig({displayName:"Home__StyledSwiperSlide",componentId:"sc-ef81bb2-2"})($()),ag=(0,o.ZP)(j.xuv).withConfig({displayName:"Home__MenuWrapper",componentId:"sc-ef81bb2-3"})(_()),ah=(0,o.ZP)(j.xuv).withConfig({displayName:"Home__MenuBox",componentId:"sc-ef81bb2-4"})(aa()),ai=(0,o.ZP)(C.b).withConfig({displayName:"Home__StyledClickableBox",componentId:"sc-ef81bb2-5"})(ab(),j.DZm.gray[100]),aj=ac,ak=c(22972),al=!0,am=function(a){var b;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,ak.A8)({baseUrl:"https://store.hanssem.com"}))}}),(0,d.jsx)(f.PB,{noindex:!1,nofollow:!1,openGraph:{description:"한샘의 올인원 인테리어 솔루션, 오직 한샘몰에서만 만날 수 있는 홈퍼니싱 가구 혜택과 인테리어 시공사례까지! 더 나은 우리집을 만나보세요"}}),(null==a?void 0:null===(b=a.data)|| void 0===b?void 0:b.data)&&(0,d.jsx)(g.Z,{hasEventExposure:!1,isFooterExist:!1,isGnbArea:!1,isGnbExist:!1,isQuickExist:!1,isHeaderExist:!0,isHeaderBackgroundColor:!1,isWelcomePage:!0,layoutType:"full",content:(0,d.jsx)(aj,{data:a.data.data})})]})}},30271:function(a,b,c){"use strict";c.d(b,{b:function(){return k}});var d=c(61261);c(91987);var e=c(364),f=c(21929);function g(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function h(){var a,b,c=(a=["\n cursor: pointer;\n"],b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}})));return h=function(){return c},c}var i=function(a){var b,c,e=a.children,f=function(a,b){if(null==a)return{};var c,d,e=function a(b,c){if(null==b)return{};var d,e,f={},g=Object.keys(b);for(e=0;e=0||(f[d]=b[d]);return f}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}(a,["children"]);return(0,d.jsx)(j,(b=function(a){for(var b=1;b