1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8024],{44631:function(e,t,n){"use strict";var i=n(13179),o=n(11163),r=n(22359),a=n(35944);var s={name:"f7ay7b",styles:"justify-content:center"};t.Z=({category:e})=>{const t=(0,o.useRouter)();return(0,a.tZ)(l,{children:(0,a.tZ)(c,{children:(0,a.BX)(r.Z,{type:"header",css:s,children:[(0,a.tZ)(p,{onClick:function(){t.back()}}),(0,a.tZ)(d,{children:e})]})})})};const l=(0,i.Z)("div",{target:"ecathrr3"})({name:"sy6ktd",styles:"position:fixed;top:0;left:0;right:0;padding-top:env(safe-area-inset-top);background-color:#fff;z-index:449;max-width:950px;margin:0 auto"}),c=(0,i.Z)("div",{target:"ecathrr2"})({name:"176qbhf",styles:"position:relative;height:56px"}),d=(0,i.Z)("p",{target:"ecathrr1"})({name:"1vrf00z",styles:"font-size:16px;font-weight:500;line-height:1.3"}),p=(0,i.Z)("div",{target:"ecathrr0"})({name:"lb30rr",styles:"position:absolute;left:16px;bottom:0;width:24px;height:56px;background:url('/images/common/icon-back.svg') no-repeat center/contain;cursor:pointer"})},6342:function(e,t,n){"use strict";var i=n(13179),o=n(25675),r=n.n(o),a=n(39180),s=n(68861),l=n(35944);t.Z=({onChange:e,onKeyDown:t,value:n,onFilter:i=(()=>{}),onClear:o,isFiltered:u=!1,isSearching:h=!0})=>{const{t:g}=(0,s.$G)("common");return(0,l.BX)(c,{children:[(0,l.BX)(d,{children:[(0,l.tZ)("div",{className:"search-icon"}),(0,l.tZ)("input",{type:"text",onChange:e,onKeyDown:t,placeholder:g("\uc9c0\uc5ed, \ub300\ud559, \uc9c0\ud558\ucca0\uc5ed \uac80\uc0c9"),value:n}),0!==n.length&&(0,l.tZ)(p,{onClick:o,children:(0,l.tZ)(r(),{src:"https://other-momstay-assets.s3.ap-northeast-2.amazonaws.com/global/btn-clear.svg",alt:"cancel search",width:20,height:20})})]}),h&&(0,l.tZ)(a.Z,{onClick:i,isActive:u})]})};const c=(0,i.Z)("div",{target:"ej5mya82"})({name:"1wxwzuw",styles:"position:relative;display:flex;gap:10px"}),d=(0,i.Z)("div",{target:"ej5mya81"})({name:"g1hxf7",styles:"flex:1;display:flex;align-items:center;height:50px;padding:6px 12px 6px 16px;background-color:#f5f5f6;border-radius:36px;.search-icon{width:24px;height:24px;margin-right:10px;background-image:url(/images/common/icon-navi-02-search.svg);}input[type='text']{flex:1;width:100%;background-color:#f5f5f6;font-size:14px;&:focus{border-color:#df2645;}&::placeholder{font-size:12px;}}@media (min-width: 768px){height:56px;padding:6px 12px 6px 20px;.search-icon{width:24px;height:24px;margin-right:16px;}input[type='text']{font-size:16px;&::placeholder{font-size:14px;}}}"}),p=(0,i.Z)("button",{target:"ej5mya80"})({name:"1oeb8ki",styles:"display:flex;justify-content:center;align-items:center;width:25px;min-width:25px;flex-shrink:0"})},7024:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return z}});var i=n(13179),o=n(11163),r=n(67294),a=n(41609),s=n.n(a),l=n(68861),c=n(28428),d=n(2936),p=n(28265),u=n(18569),h=n(44631),g=n(71336),f=n(6342),m=n(51858),x=n(79913),y=n(48193),v=n(49289),w=n(85562),Z=n(47675),b=n(58817),k=n(30499),S=n(69013),C=n(35944);var _={name:"10b3bl3",styles:"display:flex;justify-content:center;padding:40px"},I={name:"1t9sqkg",styles:"display:block;@media (min-width: 768px){display:none;}"},F={name:"2ag5hb",styles:"padding-left:20px;padding-right:20px;padding-top:20px"};var z=!0;t.default=({category:e})=>{const t=(0,o.useRouter)(),{slug:n}=t.query,{t:i}=(0,l.$G)(),a=(0,x.ZP)(),{keyword:z,filters:K,stayList:R,fileInfo:X,fetchResults:D,fetchNextPage:j,resetSearch:L,isLoading:O,isSearching:B,isFiltered:$,handleSetInitialFilters:Y,handleClearInitialFilters:q,updateFilters:A,clientFilters:G,updateClientFilters:W,setActiveQuickFilters:H}=(0,w.Z)(),M=(0,r.useMemo)((()=>G?.stayStatus?(R||[]).filter(S.HY):R),[R,G?.stayStatus]),{localKeyword:Q,handleInputChange:J,handleKeyDown:U,handleClearInput:V}=(0,v.Z)({keywordFromStore:z??"",onSearch:e=>{D(e),ae()},onClear:()=>{D("",{},K)}}),ee=`category-${e?.id}`;(0,y.Z)({pageKey:ee,fromPathPrefix:"/stay",fetchOnEnter:()=>{const t={type:String(e?.type)};W({min_price:null,max_price:null,isShortTerm:null,type:t.type,product_info:null,availableFrom:null,room_type:null,stayStatus:null,metro:null,college:null}),H([]),Y(ee,t),A(t),D("",{},t)},resetOnLeave:()=>{L(),q(ee)}});const[te,ne]=(0,r.useState)(!1),[ie,oe]=(0,r.useState)(!1),re=(0,r.useRef)(null);(0,r.useEffect)((()=>
1{if(!re.current)return;const e=new IntersectionObserver((([e])=>{oe(!e.isIntersecting)}),{root:null,rootMargin:"-80px 0px 0px 0px",threshold:0});return e.observe(re.current),()=>e.disconnect()}),[]);const ae=()=>{window.scrollTo({top:0,behavior:"smooth"})};return n&&e?(0,C.BX)(C.HY,{children:[(0,C.tZ)(h.Z,{category:i(e?.title)}),(0,C.tZ)(P,{currentImage:e?.img,children:(0,C.tZ)(E,{children:(0,C.tZ)(l.cC,{i18nKey:`html_${e?.description}`,components:{br:(0,C.tZ)("br",{css:I})}})})}),(0,C.BX)(N,{children:[(0,C.tZ)("div",{ref:re,style:{height:"1px"}}),(0,C.tZ)(T,{isStuck:ie,children:(0,C.tZ)(f.Z,{onChange:J,onKeyDown:U,onFilter:e=>{e.stopPropagation(),ne(!0)},onClear:V,value:Q,isFiltered:$})}),B&&(0,C.tZ)("div",{css:F,children:(0,C.tZ)(d.Z,{dataLength:M?.length,fetchNextPage:j,isLoading:O,NoListComponent:(0,C.tZ)(p.Z,{title:i("\ud604\uc7ac \uce74\ud14c\uace0\ub9ac\uc5d0 \ud574\ub2f9\ud558\ub294 \uc219\uc18c\uac00 \uc5c6\uc2b5\ub2c8\ub2e4."),desc:i("\uc0c8\ub85c\uc6b4 \uc219\uc18c\ub97c \uace7 \uc5c5\ub370\uc774\ud2b8\ud560 \uc608\uc815\uc785\ub2c8\ub2e4!")}),listRender:()=>!s()(M)&&M?.map(((e,n)=>{let o="",r=e?.productOption;return X?.[e.idx]&&X?.[e.idx].lodgingDetailImg&&(o=(0,k.tg)(X?.[e.idx]?.lodgingDetailImg?.[0])),(0,C.BX)("div",{onClick:()=>{return n=e?.idx,void t.push(`/stay/${n}/details`);var n},children:[(0,C.tZ)(m.Z,{title:e[(0,k.Wh)("title",a)],address:(0,Z.Z)(e[(0,k.Wh)("addr1",a)],a),type:i(b.bx[e?.type]),price:(0,k.Gz)(r,{isShortTerm:G?.isShortTerm,minPrice:G?.min_price,maxPrice:G?.max_price}),isAccommodation:!0,imgurl:o,stayProductIdx:e?.idx,likeButton:!0,productType:e?.type,availableFrom:"1"!==e?.type&&e?.availableFromEarliest}),(0,C.tZ)(c.Z,{margin:"16px"})]},e?.idx||n)}))})})]}),te&&(0,C.tZ)(g.Z,{setShowFilter:ne,pageKey:ee,onAppliedScrollTop:ae})]}):(0,C.tZ)("div",{css:_,children:(0,C.tZ)(u.Z,{})})};const P=(0,i.Z)("div",{target:"e3vielf3"})("position:fixed;top:env(safe-area-inset-top);left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);width:100%;max-width:948px;min-height:400px;background-color:#d2d5d6;padding:10px 16px 0;margin:-20px auto -35px;display:flex;flex-direction:column;justify-content:center;align-items:center;&::before{content:'';position:absolute;inset:0;background-color:rgba(0, 0, 0, 0.2);z-index:2;}&::after{content:'';position:absolute;inset:0;background-size:cover;background-position:center;background-image:",(({currentImage:e})=>`url(${e})`),";z-index:1;}>*{position:relative;z-index:3;color:#fff;}@media (min-width: 768px){min-height:500px;&::after{background-position:top;}}"),E=(0,i.Z)("div",{target:"e3vielf2"})({name:"1c6qwmo",styles:"color:#fff;font-size:20px;text-align:center;font-weight:500;@media (min-width: 768px){font-size:24px;}"});var K={name:"1xl3e6m",styles:"padding:10px 20px;box-shadow:0 0 10px rgba(0, 0, 0, 0.05)"};const T=(0,i.Z)("div",{target:"e3vielf1"})("position:sticky;top:calc(env(safe-area-inset-top) + 55px);z-index:448;background-color:#fff;padding:15px 20px;transition:all 0.3s ease;animation:fadeInSticky 0.3s ease-in-out;",(({isStuck:e})=>e&&K),"@keyframes fadeInSticky{from{transform:translateY(-10px);opacity:0;}to{transform:translateY(0);opacity:1;}}"),N=(0,i.Z)("div",{target:"e3vielf0"})({name:"194h1aa",styles:"position:relative;z-index:1;width:100vw;max-width:100%;min-height:auto;background:#fff;margin-top:300px;padding-bottom:50px;@media (min-width: 768px){margin-top:400px;}"})},48193:function(e,t,n){"use strict";var i=n(67294),o=n(11163),r=n(79913);t.Z=({pageKey:e,fromPathPrefix:t,fetchOnEnter:n,resetOnLeave:r,restoreDelay:s=0})=>{const l=(0,o.useRouter)(),c=`scrollPos:${e}`;(0,i.useEffect)((()=>{if(!("scrollRestoration"in window.history))return;window.history.scrollRestoration="manual";const e=sessionStorage.getItem("previousRoute"),i=a(l.asPath.split("?")[0]),o=a(e?.split("?")[0]||""),d=t?o.startsWith(t):o!==i;d||(n(),window.scrollTo(0,0));const p=()=>{sessionStorage.setItem(c,window.scrollY.toString())},u=e=>{d?(()=>{const e=sessionStorage.getItem(c);e&&setTimeout((()=>{window.scrollTo(0,parseInt(e,10))}),s||100)})():(n(),window.scrollTo(0,0))};return l.events.on("routeChangeStart",p),l.events.on("routeChangeComplete",u),()=>{const e=a(window?.location?.pathname||"");t&&!e.startsWith(t)&&r?.(),l.events.off("routeChangeStart",p),l.events.off("routeChangeComplete",u)}}),[])};const a=(e="")=>{const t=e.split("/");return r.RF.includes(t[1])?"/"+t.slice(2).join("/"):e}},49289:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(67294);function o({keywordFromStore:e="",onSearch:t=(()=>{}),onClear:n=(()=>{})}){const[o,r]=(0,i.useState)(e);(0,i.useEffect)((()=>{console.log("\ud83d\udd04 useSearchController: keywordFromStore changed from",o,"to",e),r(e),console.log("\u2705 useSearchController: localKeyword updated to",e)}),[e]);const a=()=>{const e=o?.trim();e&&t(e)};return{localKeyword:o,setLocalKeyword:r,handleInputChange:e=>{const t=e.target.value;r(t)},handleKeyDown:e=>{e.nativeEvent.isComposing||"Enter"===e.key&&(e.preventDefault(),a(),setTimeout((()=>{e.target.blur()}),100))},handleClearInput:()=>{r(""),n()},handleSearch:a}}},25696:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/[slug]",function(){return n(7024)}])}},function(e){e.O(0,[547,6592,6954,5825,1858,7807,4561,9774,2888,179],(function(){return t=25696,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.