PageSourceSearch

https://nolbal.com/_next/static/chunks/pages/stay/detail/[accommodationId]-77a8797c65a01c53.js

js nolbal.com collected 2026-09-24 12:39:27 UTC 64,422 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[252],{16862:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/stay/detail/[accommodationId]",function(){return i(53469)}])},53469:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return tj},default:function(){return tC}});var t=i(85893),o=i(67294),l=i(52353),r=i.n(l),a=i(14176),c=i.n(a),d=i(11163),s=i(19133),p=i(2411),u=i(27555),h=i(82631),x=i(29948),g=i(42398),f=i(60417),m=i(86458),v=i(52778),w=i(86813),b=i(57331);function j(){var e;let n=(0,d.useRouter)(),i=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.name)&&void 0!==i?i:""}),o=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.images)&&void 0!==i?i:[]}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.address)&&void 0!==i?i:""});return(0,t.jsx)(w.Z,{title:"".concat(i," | 놀이의발견"),link:"".concat(b.MS).concat(n.asPath),openGraph:{description:l,image:null!==(e=null==o?void 0:o[0].image)&&void 0!==e?e:""}})}var C=i(23279),y=i.n(C),Z=i(19521),I=i(61936),P=i(10084),k=i(19395),_=i(28343),D=i(78034),T=i(83565),S=i(12258),M=i(79689),A=i(99862);function N(e){let{accommodationId:n,isLogin:i,children:l}=e,r=(0,s.T)(),{openToastMessage:a}=(0,P.Z)(),c=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.is_favorite)&&void 0!==i&&i}),d=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.name)&&void 0!==i?i:""}),p=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.type.name)&&void 0!==i?i:""}),[u,h]=(0,o.useState)(""),{isOpen:x,link:g,onShareClick:f,closeShare:m,onKakaoClick:v,onCopyLink:w}=function(e){var n;let{contentPk:i,name:t,description:l="",thumbnail:r="",accommodationTypeName:a}=e,c=(0,s.T)(),d=null!==(n=(0,s.C)(e=>{let{shortLink:n}=e;return n.link}))&&void 0!==n?n:"",[p,u]=(0,o.useState)(!1),{openToastMessage:h}=(0,P.Z)();return{isOpen:p,link:d,onShareClick:()=>{i&&(u(!0),d||c((0,I.r)({type:"stay",pk:i})))},closeShare:()=>{u(!1)},onKakaoClick:()=>{var e,n;null!==(n=null===(e=(0,_.Z)())||void 0===e?void 0:e.is_member)&&void 0!==n&&n&&(0,D.aS)({accommodationName:t,accommodationTypeName:a}),(0,k.ZR)({shareType:"kakaotalk",pk:String(i)}),window.Kakao.Share.createDefaultButton({container:document.getElementById("kakaotalk-sharing-btn"),objectType:"feed",content:{title:t,description:null!=l?l:"아이를 위한 세상의 모든 경험, #놀이의발견",imageUrl:r,link:{mobileWebUrl:"".concat(d,"?campaign=share&media=kakao"),webUrl:"".concat(d,"?campaign=share&media=kakao")}},buttons:[{title:"앱으로 보기",link:{mobileWebUrl:"".concat(d,"?campaign=share&media=kakao"),webUrl:"".concat(d,"?campaign=share&media=kakao")}}],installTalk:!0})},onCopyLink:()=>{var e,n;null!==(n=null===(e=(0,_.Z)())||void 0===e?void 0:e.is_member)&&void 0!==n&&n&&(0,D.aS)({accommodationName:t,accommodationTypeName:a}),(0,k.ZR)({shareType:"link",pk:String(i)}),h("복사되었습니다")}}}({name:d,accommodationTypeName:p,contentPk:n}),b=y()(async()=>{try{let{data:e}=await (0,M.Pw)(n);(0,D.nI)({isFavorite:c,accommodationName:d}),"S000"!==e.code&&a(e.message),"S000"!==e.code||c||a("찜한 상품에 추가됐어요.")}catch(e){a("찜한 상품 추가에 실패했어요.")}finally{r((0,A.aM)(n))}},1e3);return(0,o.useEffect)(()=>{let e=()=>{window.scrollY>360?h(d):h("")};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[d]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(S.Z,{contentName:u,isFavorite:c,onLikeClick:b,openShare:f,isLogin:i}),l]}),(0,t.jsx)(T.Z,{isVisible:x,link:g,closeShare:m,onKakaoClick:v,onCopyLink:w})]})}let R=Z.ZP.div.withConfig({componentId:"sc-ba510fc4-0"})(["padding-top:48px;"]);var O=i(30172),L=i(52997),F=i(69447),q=i(24002),E=i(90245),$=i(8289),B=i(82253),U=i(66389),z=i(96684);function W(){let[e,n]=(0,o.useState)(!1),[i,l]=(0,o.useState)(0),r=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.images)&&void 0!==i?i:[]}),a=e=>{l(e),n(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H,{children:(0,t.jsx)($.Z,{width:"100%",height:"100%",backgroundColor:"transparent",children:(0,t.jsx)(F.t,{pagination:{type:"fraction"},children:r.map((e,n)=>{let{sequence:i,image:o}=e;return(0,t.jsx)(q.o,{children:(0,t.jsx)(X,{onClick:()=>a(n),children:(0,t.jsx)(U.Z,{src:o,alt:"accommodation-image-".concat(i),fill:!0,sizes:z.eM.FULL_WIDTH_RESPONSIVE,style:{objectFit:"cover",objectPosition:"center"}})})},i)})})})}),e&&(0,t.jsx)(B.Z,{images:r,initialImageIndex:i,closeModal:()=>{l(0),n(!1)}})]})}O.Z.use([L.Z]);let H=Z.ZP.div.withConfig({componentId:"sc-dc43f8f3-0"})(["width:100%;aspect-ratio:10 / 7;& .swiper-container{.swiper-slide{width:100% !important;position:relative;}.swiper-pagination{width:100%;position:absolute;right:16px;left:auto !important;bottom:16px;}
1.swiper-pagination-fraction{display:flex;justify-content:center;align-items:center;gap:1px;width:41px !important;height:22px;padding:4px 11px;border-radius:11px;background-color:",";color:",";","}}"],E.w.dimMid,E.w.tintSecondary,E.Z.caption6),X=Z.ZP.div.withConfig({componentId:"sc-dc43f8f3-1"})(["width:100%;height:100%;aspect-ratio:10 / 7;cursor:pointer;"]);var V=i(52790);function G(e){let{children:n}=e,i=(0,d.useRouter)(),o=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.name)&&void 0!==i?i:""}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.address)&&void 0!==i?i:""}),r=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.lat)&&void 0!==i?i:0}),a=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.lng)&&void 0!==i?i:0});return(0,t.jsxs)(K,{children:[(0,t.jsxs)(Y,{children:[(0,t.jsx)(Q,{children:o}),(0,t.jsxs)(J,{children:[l,(0,t.jsx)(ee,{type:"button",onClick:()=>{i.push({pathname:V.Ap,query:{lat:r,lng:a,address:l}})},children:"지도보기"})]})]}),n]})}let K=Z.ZP.div.withConfig({componentId:"sc-1242e3ad-0"})(["display:flex;flex-direction:column;row-gap:24px;padding:24px 20px;"]),Y=Z.ZP.div.withConfig({componentId:"sc-1242e3ad-1"})(["& > *:not(:first-child){margin-top:8px;}"]),Q=Z.ZP.h1.withConfig({componentId:"sc-1242e3ad-2"})(["color:",";",""],E.w.gray01,E.Z.largeTitle4),J=Z.ZP.p.withConfig({componentId:"sc-1242e3ad-3"})(["color:",";",""],E.w.gray03,E.Z.caption5),ee=Z.ZP.button.withConfig({componentId:"sc-1242e3ad-4"})(["margin-left:4px;color:",";",""],E.w.primary,E.Z.caption5);var en=i(73549),ei=i(96147);function et(e){let{isAllCouponDownloaded:n,displayedCouponInfoText:i="",onClick:o}=e;return(0,t.jsxs)(er,{type:"button",onClick:o,$isAllCouponDownloaded:n,children:[(0,t.jsx)(eo,{children:n?"받은 쿠폰 보기":"".concat(i," 쿠폰받기")}),(0,t.jsx)(el,{children:(0,t.jsx)(ei._8,{color:E.w.black})})]})}let eo=Z.ZP.div.withConfig({componentId:"sc-a2704405-0"})(["flex-grow:1;display:flex;align-items:center;height:48px;border-radius:6px;padding:12px 20px;background-color:rgb(from "," R G B / 0.05);color:",";",""],E.w.tintPrimary,E.w.tintPrimary,E.Z.largeTitle9),el=Z.ZP.div.withConfig({componentId:"sc-a2704405-1"})(["display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:6px;background-color:",";"],E.w.primary),er=Z.ZP.button.withConfig({componentId:"sc-a2704405-2"})(["display:flex;width:100%;cursor:pointer;",""],e=>{let{$isAllCouponDownloaded:n}=e;return n&&(0,Z.iv)(["","{background-color:rgb(from "," R G B / 0.1);color:",";}","{background-color:",";}"],eo,E.w.gray04,E.w.gray03,el,E.w.gray06)});var ea=i(74762),ec=i(28230),ed=i(35945),es=i(67204);let ep=e=>{let n=new Date,i=new Date(e);return"".concat((0,ed.default)(i,n),"일 후 만료 (").concat((0,es.default)(i,"yyyy.MM.dd"),")")};function eu(e){let{couponName:n,couponDescription:i,expiredAt:o,isDownloadable:l}=e;return(0,t.jsxs)(eh,{$isDownloadable:l,children:[(0,t.jsxs)(ex,{children:[(0,t.jsx)(eg,{children:n}),l?(0,t.jsx)(ef,{children:"받기 가능"}):(0,t.jsx)(em,{children:"받기 완료"})]}),(0,t.jsx)(ev,{children:i}),(0,t.jsx)(ew,{children:ep(o)})]})}let eh=Z.ZP.div.withConfig({componentId:"sc-8b558c4c-0"})(["padding:12px 20px;border:1px solid ",";border-radius:8px;",""],E.w.gray08,e=>{let{$isDownloadable:n}=e;return!n&&(0,Z.iv)(["opacity:0.6;"])}),ex=Z.ZP.div.withConfig({componentId:"sc-8b558c4c-1"})(["display:flex;align-items:center;margin-bottom:4px;"]),eg=Z.ZP.h2.withConfig({componentId:"sc-8b558c4c-2"})(["color:",";",""],E.w.gray02,E.Z.largeTitle9),ef=Z.ZP.span.withConfig({componentId:"sc-8b558c4c-3"})(["flex-shrink:0;margin-left:8px;padding:2px 4px;border-radius:4px;background-color:",";color:",";",""],E.w.red100,E.w.primary,E.Z.caption8),em=(0,Z.ZP)(ef).withConfig({componentId:"sc-8b558c4c-4"})(["background-color:",";color:",";"],E.w.gray07,E.w.tintSecondary),ev=Z.ZP.p.withConfig({componentId:"sc-8b558c4c-5"})(["margin-bottom:8px;color:",";",""],E.w.gray02,E.Z.caption5),ew=Z.ZP.p.withConfig({componentId:"sc-8b558c4c-6"})(["color:",";",""],E.w.gray04,E.Z.caption9);function eb(e){let{closeModal:n,onClickDownloadCoupon:i,isVisible:o,accommodationName:l,couponList:r}=e,a=r.every(e=>!e.is_downloadable);return(0,t.jsx)(ea.Z,{isAnimate:!0,isVisible:o,closeModal:n,children:(0,t.jsxs)(ej,{children:[(0,t.jsx)(eC,{children:l}),(0,t.jsx)(ey,{children:(0,t.jsx)(eZ,{children:r.map(e=>(0,t.jsx)(eu,{couponName:e.coupon_name,couponDescription:e.coupon_name2,expiredAt:e.expired_at,isDownloadable:e.is_downloadable},e.coupon_pk))})}),(0,t.jsx)(eI,{children:(0,t.jsx)(ec.Z,{type:"button",onClick:i,disabled:a,children:a?"쿠폰을 모두 받았어요":"쿠폰 다운로드"})})]})})}let ej=Z.ZP.div.withConfig({componentId:"sc-d9ac2f71-0"})(["position:relative;height:auto;max-height:calc(90vh - 40px);"]),eC=Z.ZP.h2.withConfig({componentId:"sc-d9ac2f71-1"})(["padding-block:20px;color:",";"," overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;"],E.w.white,E.Z.largeTitle7),ey=Z.ZP.div.withConfig({componentId:"sc-d9ac2f71-2"})(["width:100%;height:100%;max-height:calc(90vh - 230px);overflow-y:scroll;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),eZ=Z.ZP.div.withConfig({componentId:"sc-d9ac2f71-3"})(["display:flex;flex-direction:column;row-gap:8px;"]),eI=Z.ZP.div.withConfig({componentId:"sc-d9ac2f71-4"})(["padding-block:10px;"]);var eP=i(59316);function ek(e){let{accommodationId:n}=e,i=(0,s.T)(),{openToastMessage:l}=(0,P.Z)(),{onOpen:r}=(0,eP.Z)(),a=(0,_.Z)(),[c,d]=(0,o.useState)(!1),u=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.name)&&void 0!==i?i:""}),h=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null!==(n=i.couponData)&&void 0!==n?n:[]}),{hasCoupon:x,hasAvailableCoupon:g,isDiscountTypePercent:f,showsMaximumType:m,hideDiscountPrefixText:v,discountNumber:w}=(0,en.Z)(h),b=(0,o.useMemo)(()=>
1{let e=f?w:w.toLocaleString("ko-KR"),n=f?"%":"원",i=f?"최대 ":"총 ",t=!v&&m?i:"";return"".concat(t).concat(e).concat(n)},[f,w,m,v]),j=()=>{if(!(null==a?void 0:a.is_member)){r();return}d(e=>!e)},C=y()(async()=>{try{let{data:e}=await (0,M.WE)(n);"S000"===e.code?l("모든 쿠폰을 받았어요"):l(e.message),i((0,p.gQ)(n)),d(!1)}catch(e){l("쿠폰 받기에 실패했어요")}},1e3);return x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(et,{isAllCouponDownloaded:!g,displayedCouponInfoText:b,onClick:j}),c&&(0,t.jsx)(eb,{isVisible:c,closeModal:j,onClickDownloadCoupon:C,accommodationName:u,couponList:h})]}):null}var e_=i(34718),eD=i(15743),eT=i(30224);function eS(){let e=(0,s.C)(e=>{let{stayDetail:n}=e;return n.eventBannerData});return 0!==e.length?(0,t.jsx)(eM,{children:(0,t.jsx)(eA,{$showsPagination:e.length>1,children:(0,t.jsx)(e_.Z,{isAutoPlay:e.length>1,children:null==e?void 0:e.map((e,n)=>{let{pk:i,link:o,event_name:l,event_banner_image:r,landing_type:a,inventory_type:c,inventory_id:d,analytics:s}=e;return(0,t.jsx)(q.o,{children:(0,t.jsx)("div",{children:(0,t.jsx)(eD.Z,{bannerIndex:n,eventName:l,eventBannerImage:r,landingType:a,inventoryType:c,inventoryId:d,analyticsPk:s.pk,analyticsName:s.name,pk:i,link:o,aspectRatio:360/62,minHeight:62})})},"".concat(l,"_").concat(i))})})})}):null}let eM=Z.ZP.div.withConfig({componentId:"sc-3e15afa7-0"})(["width:100%;"]),eA=(0,Z.ZP)(eT.r).withConfig({componentId:"sc-3e15afa7-1"})(["aspect-ratio:360 / 62;& .swiper-container{.swiper-pagination{right:10px;left:auto !important;bottom:10px;","}.swiper-pagination-fraction{width:41px !important;height:22px;padding:4px 10px;border-radius:11px;background-color:",";font-size:10px;line-height:14px;font-weight:700;}}"],e=>{let{$showsPagination:n}=e;return!n&&(0,Z.iv)(["display:none;"])},E.w.dimHigh);function eN(e){let{onClick:n}=e;return(0,t.jsxs)(eR,{type:"button",onClick:n,children:["더보기",(0,t.jsx)(ei.XC,{viewBox:"2 0 24 24",strokeWidth:3,width:12,height:10,color:"currentColor"})]})}let eR=Z.ZP.button.withConfig({componentId:"sc-c4b248ef-0"})(["display:flex;align-items:center;justify-content:center;width:50px;height:20px;color:",";",""],E.w.gray04,E.Z.caption9);var eO=i(25675),eL=i.n(eO);function eF(e){let{iconSrc:n,name:i}=e;return(0,t.jsxs)(eq,{children:[(0,t.jsx)(eE,{children:(0,t.jsx)(eL(),{src:n,alt:i,width:24,height:24,style:{maxWidth:"100%",height:"auto"}})}),(0,t.jsx)(e$,{children:i})]})}let eq=Z.ZP.li.withConfig({componentId:"sc-3dc78d68-0"})(["display:flex;align-items:center;column-gap:8px;width:50%;height:24px;color:",";",""],E.w.gray02,E.Z.label5),eE=Z.ZP.div.withConfig({componentId:"sc-3dc78d68-1"})(["flex-shrink:0;width:24px;height:24px;"]),e$=Z.ZP.div.withConfig({componentId:"sc-3dc78d68-2"})(["overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);function eB(e){let{facilities:n}=e;return(0,t.jsx)(eU,{children:n.map(e=>{let{name:n,icon_light:i}=e;return(0,t.jsx)(eF,{name:n,iconSrc:i},n)})})}let eU=Z.ZP.ul.withConfig({componentId:"sc-a0bfcd8c-0"})(["display:flex;flex-wrap:wrap;row-gap:8px;"]);function ez(){let e=(0,s.T)(),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.accommodation_facilities_section)&&void 0!==i?i:[]}),i=()=>{e((0,p.T2)("facilitiesTab"))};return 0!==n.length?(0,t.jsx)(eW,{children:(0,t.jsx)(eH,{children:null==n?void 0:n.slice(0,2).map((e,n)=>{let{title:o,facilities:l}=e;return(0,t.jsxs)(eX,{children:[(0,t.jsxs)(eV,{children:[(0,t.jsx)(eG,{children:o}),0===n&&(0,t.jsx)(eN,{onClick:i})]}),(0,t.jsx)(eB,{facilities:l.slice(0,4)})]},o)})})}):null}let eW=Z.ZP.div.withConfig({componentId:"sc-17af2e00-0"})(["padding:12px 20px 16px;"]),eH=Z.ZP.div.withConfig({componentId:"sc-17af2e00-1"})(["width:100%;border-radius:8px;padding:20px 16px;background-color:",";"],E.w.gray09),eX=Z.ZP.div.withConfig({componentId:"sc-17af2e00-2"})(["&:not(:last-child){&::after{content:'';display:block;width:100%;height:1px;margin-block:16px;background-color:",";opacity:0.1;}}"],E.w.gray05),eV=Z.ZP.div.withConfig({componentId:"sc-17af2e00-3"})(["display:flex;align-items:center;column-gap:8px;margin-bottom:12px;"]),eG=Z.ZP.h3.withConfig({componentId:"sc-17af2e00-4"})(["flex-grow:1;color:",";",""],E.w.gray02,E.Z.largeTitle7);var eK=i(89165),eY=i(54862);function eQ(e){let{reviewRating:n,reviewText:i,reviewImage:o,onClickCard:l}=e;return(0,t.jsxs)(eJ,{onClick:l,children:[(0,t.jsxs)(e0,{children:[(0,t.jsx)(eY.Z,{rating:n}),(0,t.jsx)("div",{children:n.toFixed(1)})]}),(0,t.jsxs)(e1,{children:[o&&(0,t.jsx)(e4,{src:o}),(0,t.jsx)(e2,{children:i})]})]})}let eJ=Z.ZP.div.withConfig({componentId:"sc-c62259cb-0"})(["width:272px;height:120px;padding:12px;border:1px solid ",";border-radius:6px;&:hover{cursor:pointer;}"],E.w.gray07),e0=Z.ZP.div.withConfig({componentId:"sc-c62259cb-1"})(["display:flex;align-items:center;column-gap:4px;width:100%;height:20px;margin-bottom:8px;color:",";",""],E.w.gray03,E.Z.body7),e1=Z.ZP.div.withConfig({componentId:"sc-c62259cb-2"})(["display:flex;align-items:center;column-gap:10px;"]),e2=Z.ZP.p.withConfig({componentId:"sc-c62259cb-3"})(["display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:",";",""],E.w.gray02,E.Z.body8),e4=Z.ZP.img.withConfig({componentId:"sc-c62259cb-4"})(["width:68px;height:68px;border-radius:4px;object-fit:cover;object-position:center;"]);function e6(e){let{accommodationId:n}=e,i=(0,d.useRouter)(),o=(0,s.C)(e=>{var n,i,t;let{stayDetail:o}=e;return null!==(t=null===(i=o.reviewData)||void 0===i?void 0:null===(n=i.summary)||void 0===n?void 0:n.average_rating)&&void 0!==t?t:0}),l=(0,s.C)(e=>{var n,i,t;let{stayDetail:o}=e;return null!==(t=null===(i=o.reviewData)||void 0===i?void 0:null===(n=i.summary)||void 0===n?void 0:n.count)&&void 0!==t?t:0}),r=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.reviewData)||void 0===n?void 0:n.reviews)&&void 0!==i?i:[]}
1),{blockRef:a,isClickEventActivated:c,onMouseEventStart:p,onMouseMove:u,onMouseEventEnd:h}=(0,eK.Z)(),x=()=>{i.push("".concat(V.MO,"/").concat(n,"/reviews"))},g=()=>{c&&x()};return 0!==l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(e5,{children:[(0,t.jsxs)(e3,{onClick:x,children:[(0,t.jsxs)(e8,{children:[(0,t.jsx)(ei.qN,{width:16,height:16,color:E.w.quaternary}),(0,t.jsx)("span",{children:"후기"}),(0,t.jsx)("span",{children:o.toFixed(1)}),(0,t.jsxs)(e9,{children:["(",l,")"]})]}),(0,t.jsx)(ei.XC,{width:16,height:16,strokeWidth:2.4,color:E.w.gray03})]}),(0,t.jsx)(e7,{ref:a,onMouseDown:p,onMouseMove:u,onMouseUp:h,onMouseLeave:h,children:(0,t.jsx)(ne,{children:r.map(e=>{var n;let{id:i,total_rating:o,text:l,images:r}=e;return(0,t.jsx)(eQ,{reviewRating:o,reviewText:l,reviewImage:null==r?void 0:null===(n=r[0])||void 0===n?void 0:n.image,onClickCard:g},i)})})})]}),(0,t.jsx)(v.Z,{})]}):null}let e5=Z.ZP.div.withConfig({componentId:"sc-66e59aa5-0"})(["width:100%;padding-block:12px 30px;"]),e3=Z.ZP.div.withConfig({componentId:"sc-66e59aa5-1"})(["display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:12px;padding-inline:20px;&:hover{cursor:pointer;}"]),e8=Z.ZP.h3.withConfig({componentId:"sc-66e59aa5-2"})(["display:flex;align-items:center;column-gap:4px;color:",";",""],E.w.gray01,E.Z.largeTitle7),e9=Z.ZP.span.withConfig({componentId:"sc-66e59aa5-3"})(["color:",";",""],E.w.gray03,E.Z.label5),e7=Z.ZP.div.withConfig({componentId:"sc-66e59aa5-4"})(["width:100%;overflow-x:scroll;scrollbar-width:none;"]),ne=Z.ZP.div.withConfig({componentId:"sc-66e59aa5-5"})(["display:flex;column-gap:10px;width:fit-content;padding-inline:20px;scrollbar-width:none;"]);var nn=i(66871);let ni=e=>null!==e&&""!==e;function nt(){let e=(0,s.T)(),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.notice_info)&&void 0!==i?i:null}),i=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.important_notice)&&void 0!==i?i:null}),o=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.check_info)&&void 0!==i?i:null}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.accommodation_policy)&&void 0!==i?i:null});return ni(n)||ni(i)||ni(o)||ni(l)?(0,t.jsxs)(no,{children:[(0,t.jsxs)(nl,{children:[(0,t.jsxs)(nr,{children:[(0,t.jsx)(ei.uI,{width:16,height:16,color:"currentColor"}),"꼭 확인해 주세요!"]}),(0,t.jsx)(eN,{onClick:()=>{e((0,nn.T2)("noticeTab"))}})]}),(0,t.jsxs)(na,{children:[n&&(0,t.jsx)("p",{children:n}),i&&(0,t.jsx)("p",{children:i}),o&&(0,t.jsx)("p",{children:o}),l&&(0,t.jsx)("p",{children:l})]})]}):null}let no=Z.ZP.div.withConfig({componentId:"sc-e4ba3b3b-0"})(["width:100%;padding:16px 32px;"]),nl=Z.ZP.div.withConfig({componentId:"sc-e4ba3b3b-1"})(["display:flex;align-items:center;margin-bottom:10px;"]),nr=Z.ZP.h3.withConfig({componentId:"sc-e4ba3b3b-2"})(["flex-grow:1;display:flex;align-items:center;column-gap:4px;color:",";",""],E.w.gray01,E.Z.largeTitle7),na=Z.ZP.div.withConfig({componentId:"sc-e4ba3b3b-3"})(["display:-webkit-box;width:100%;color:",";"," overflow:hidden;-webkit-line-clamp:5;-webkit-box-orient:vertical;& > p{word-wrap:break-word;white-space:pre-wrap;}"],E.w.gray02,E.Z.body8);function nc(){let e=(0,s.T)(),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.extra_charge_info)&&void 0!==i?i:null});return null!==n?(0,t.jsx)(nd,{children:(0,t.jsxs)(ns,{children:[(0,t.jsxs)(np,{children:[(0,t.jsxs)(nu,{children:[(0,t.jsx)(ei.cU,{width:16,height:16,color:"currentColor"}),"추가요금 정보"]}),(0,t.jsx)(eN,{onClick:()=>{e((0,p.T2)("extraChargeInfoTab"))}})]}),(0,t.jsx)(nh,{children:n})]})}):null}let nd=Z.ZP.div.withConfig({componentId:"sc-1c1612aa-0"})(["width:100%;padding:16px 20px;"]),ns=Z.ZP.div.withConfig({componentId:"sc-1c1612aa-1"})(["width:100%;padding:14px 16px;border-radius:6px;background-color:",";"],E.w.green100),np=Z.ZP.div.withConfig({componentId:"sc-1c1612aa-2"})(["display:flex;align-items:center;margin-bottom:10px;"]),nu=Z.ZP.h3.withConfig({componentId:"sc-1c1612aa-3"})(["flex-grow:1;display:flex;align-items:center;column-gap:4px;color:",";"," & > svg *{stroke-width:2.1;}"],E.w.green500,E.Z.largeTitle7),nh=Z.ZP.p.withConfig({componentId:"sc-1c1612aa-4"})(["display:-webkit-box;width:100%;color:",";"," word-wrap:break-all;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;"],E.w.gray02,E.Z.body8);var nx=i(86838),ng=i(48862),nf=i(47151),nm=i(20512),nv=i(9905),nw=i(33600);function nb(e){let{initCheckIn:n,initCheckOut:i,closeModal:l}=e,r=(0,s.T)(),a=(0,d.useRouter)(),[c,h]=(0,o.useState)(new Date(n)),[x,g]=(0,o.useState)(new Date(i)),f=null!==x;return(0,t.jsx)(nw.Z,{checkIn:c,checkOut:x,selectCompleteButtonDisabled:!f,onChangeDateRange:e=>{let[n,i]=e;h(n),i&&(0,nv.default)(n,i)||g(i)},onClickSelectCompleteButton:()=>
1{if(!x)return;let e={checkIn:(0,es.default)(c,"yyyy-MM-dd"),checkOut:(0,es.default)(x,"yyyy-MM-dd")};r((0,p.YG)(e)),(0,u.jg)(),a.push({query:{...a.query,checkIn:e.checkIn,checkOut:e.checkOut}},void 0,{shallow:!0}),l()},onClickCloseButton:l})}var nj=i(59664),nC=i(20823),ny=i(90747),nZ=i(72056),nI=i(38573),nP=i(64179);function nk(e){let{initAdultAmount:n,initChildrenAges:i,closeModal:l}=e,r=(0,s.T)(),a=(0,d.useRouter)(),{openToastMessage:c}=(0,P.Z)(),[h,x]=(0,o.useState)(!1),[g,f]=(0,o.useState)(n),[m,v]=(0,o.useState)(i),[w,b]=(0,o.useState)(null),j=m.length,C=g+j,y=C>=20,Z=!m.includes(null),I=e=>{b(e),x(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n_,{children:[(0,t.jsxs)(nD,{children:["인원 선택",(0,t.jsx)(nT,{onClick:l,children:(0,t.jsx)(ei.aM,{})})]}),(0,t.jsxs)(nS,{children:[(0,t.jsx)(nZ.Z,{step:g,disabledDecrease:g<=0,onClickIncreaseButton:()=>{if(y){c("선택 가능한 최대 인원입니다.");return}f(e=>e+1)},onClickDecreaseButton:()=>{f(e=>e-1)},children:"성인"}),(0,t.jsx)(nZ.Z,{step:j,disabledDecrease:j<=0,onClickIncreaseButton:()=>{if(y){c("선택 가능한 최대 인원입니다.");return}v(e=>[...e,null])},onClickDecreaseButton:()=>{v(e=>e.slice(0,-1))},children:"아동"}),(0,t.jsx)(nM,{}),(0,t.jsx)(nA,{children:m.map((e,n)=>(0,t.jsx)(nI.Z,{rowIndex:n,age:e,handleOpenSelectAgeModal:I},"child_".concat(n)))})]}),(0,t.jsx)(nN,{children:(0,t.jsx)(nj.Z,{disabled:g<=0||C>20||!Z,onClick:()=>{var e,n,i,t,o,c;let d={adults:g};j>0&&(d.children=j,d.childrenAges=m),r((0,p.Sd)(d)),a.push({query:{...a.query,adults:null!==(t=null===(e=d.adults)||void 0===e?void 0:e.toString())&&void 0!==t?t:"",children:null!==(o=null===(n=d.children)||void 0===n?void 0:n.toString())&&void 0!==o?o:"",childrenAges:null!==(c=null===(i=d.childrenAges)||void 0===i?void 0:i.join(","))&&void 0!==c?c:""}},void 0,{shallow:!0}),(0,u.Bq)({adults:g,children:j}),l()},children:Z&&j>0||0===j?"성인 ".concat(g,"명").concat(j>0?" ,아동 ".concat(j,"명"):""," 선택"):"아이 나이를 선택해주세요"})}),(0,t.jsx)(ny.Z,{selectChildAge:m[w],isOpenModal:h,handleCloseSelectAgeModal:e=>{if(void 0!==e&&null!==w){let n=[...m];n[w]=e,v(n)}b(null),x(!1)}})]}),(0,t.jsx)(nC.Z,{})]})}let n_=Z.ZP.section.withConfig({componentId:"sc-f2814f50-0"})(["position:fixed;top:","px;right:0;left:0;width:100%;height:100%;z-index:",";"],nx.RN,ng.Z.modal-1),nD=Z.ZP.div.withConfig({componentId:"sc-f2814f50-1"})(["display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%;height:","px;background-color:",";color:",";"," @media ","{width:500px;}"],nx.RN,E.w.black,E.w.white,E.Z.largeTitle9,nP.A.mobileL),nT=Z.ZP.button.withConfig({componentId:"sc-f2814f50-2"})(["display:flex;align-items:center;position:absolute;top:","px;right:22px;transform:translateY(-50%);& svg{width:24px;height:24px;color:",";}"],nx.RN/2,E.w.white),nS=Z.ZP.div.withConfig({componentId:"sc-f2814f50-3"})(["position:fixed;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:39px;width:100%;height:100%;background-color:#fff;padding:27px 30px ","px;@media ","{width:500px;padding:27px 30px ","px;}"],nj.f+nx.RN,nP.A.mobileL,nj.f+nx.RN),nM=Z.ZP.hr.withConfig({componentId:"sc-f2814f50-4"})(["width:100%;height:0;border:0;border-top:1px solid ",";"],E.w.gray08),nA=Z.ZP.div.withConfig({componentId:"sc-f2814f50-5"})(["display:flex;flex-direction:column;gap:20px;overflow:scroll;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}"]),nN=Z.ZP.div.withConfig({componentId:"sc-f2814f50-6"})(["position:fixed;left:50%;transform:translateX(-50%);width:100%;bottom:0;@media ","{width:500px;}"],nP.A.mobileL);function nR(){let e=(0,s.C)(e=>{var n;let{stayDetail:i}=e;
1return null===(n=i.productRequestParams)||void 0===n?void 0:n.check_in}),n=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.productRequestParams)||void 0===n?void 0:n.check_out}),i=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.productRequestParams)||void 0===n?void 0:n.adults}),l=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.productRequestParams)||void 0===n?void 0:n.children}),r=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.productRequestParams)||void 0===n?void 0:n.children_ages})||[],[a,c]=(0,o.useState)(!1),[d,p]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),x=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=x.current;if(null===e)return;let n=new IntersectionObserver(e=>{let[n]=e;void 0!==n&&h(!n.isIntersecting)},{root:null,rootMargin:"-".concat(nx.RN,"px 0px 0px 0px"),threshold:0});return n.observe(e),()=>{n.disconnect()}},[e,n,i]);let g=()=>{c(e=>!e)},f=()=>{p(e=>!e)};return(0,t.jsxs)(t.Fragment,{children:[e&&n&&void 0!==i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(nO,{ref:x,"aria-hidden":"true"}),(0,t.jsxs)(nL,{$showShadow:u,children:[(0,t.jsx)(nf.Z,{startDate:e,endDate:n,handleOpenModal:g}),(0,t.jsx)(nm.Z,{adultAmount:i,childAmount:null!=l?l:0,handleOpenModal:f})]})]}):null,a&&!!e&&!!n&&(0,t.jsx)(nb,{initCheckIn:e,initCheckOut:n,closeModal:g}),d&&void 0!==i&&(0,t.jsx)(nk,{initAdultAmount:i,initChildrenAges:r,closeModal:f})]})}let nO=Z.ZP.div.withConfig({componentId:"sc-bb024163-0"})(["height:1px;width:100%;pointer-events:none;visibility:hidden;"]),nL=Z.ZP.div.withConfig({componentId:"sc-bb024163-1"})(["position:sticky;top:","px;z-index:",";width:100%;background-color:",";display:grid;grid-template-columns:1.2fr 1fr;grid-gap:6px;padding:12px 16px;transition:box-shadow 0.2s ease;box-shadow:",";"],nx.RN,ng.Z.navigation,E.w.black,e=>{let{$showShadow:n}=e;return n?"0 4px 8px -4px rgba(0, 0, 0, 0.2)":"none"});var nF=i(41664),nq=i.n(nF);function nE(e){let{images:n,aboveLabel:i,belowLabel:l}=e,[r,a]=(0,o.useState)(!1),[c,d]=(0,o.useState)(0),s=e=>{d(e),a(!0)},p=null!=n?n:[],u=p.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n$,{children:[(i||l)&&(0,t.jsxs)(nU,{children:[i&&(0,t.jsx)(nz,{src:i,alt:"above-label"}),l&&(0,t.jsx)(nW,{src:l,alt:"below-label"})]}),u?(0,t.jsx)($.Z,{width:"100%",height:"100%",backgroundColor:"transparent",children:(0,t.jsx)(F.t,{pagination:{type:"fraction"},children:p.map(e=>{let{sequence:n,image:i}=e;return(0,t.jsx)(q.o,{children:(0,t.jsx)(nB,{onClick:()=>s(n),children:(0,t.jsx)(U.Z,{src:i,alt:"accommodation-product-card-image-".concat(n),width:z.$f.ACCOMMODATION_DETAIL_PRODUCT_CARD_WIDTH,height:z.$f.ACCOMMODATION_DETAIL_PRODUCT_CARD_HEIGHT,sizes:(0,z.xO)(z.$f.ACCOMMODATION_DETAIL_PRODUCT_CARD_WIDTH),style:{objectFit:"cover",objectPosition:"center"}})})},n)})})}):(0,t.jsx)(nH,{children:(0,t.jsx)(ei.bf,{})})]}),r&&u&&(0,t.jsx)(B.Z,{images:p,initialImageIndex:c,closeModal:()=>{d(0),a(!1)}})]})}O.Z.use([L.Z]);let n$=Z.ZP.div.withConfig({componentId:"sc-90f863a8-0"})(["position:relative;width:100%;aspect-ratio:2 / 1;border-radius:6px;overflow:hidden;background-color:",";& .swiper-container{.swiper-slide{width:100% !important;position:relative;}.swiper-pagination{width:100%;position:absolute;right:16px;left:auto !important;bottom:16px;}.swiper-pagination-fraction{display:flex;justify-content:center;align-items:center;gap:1px;width:41px !important;height:22px;padding:4px 11px;border-radius:11px;background-color:",";color:",";","}}"],E.w.gray08,E.w.dimMid,E.w.tintSecondary,E.Z.caption6),nB=Z.ZP.div.withConfig({componentId:"sc-90f863a8-1"})(["width:100%;height:100%;aspect-ratio:2 / 1;cursor:pointer;"]),nU=Z.ZP.div.withConfig({componentId:"sc-90f863a8-2"})(["z-index:8;position:absolute;top:12px;left:12px;display:flex;align-items:center;column-gap:2px;"]),nz=Z.ZP.img.withConfig({componentId:"sc-90f863a8-3"})(["width:48px;height:16px;object-fit:contain;object-position:center;"]),nW=Z.ZP.img.withConfig({componentId:"sc-90f863a8-4"})(["width:40px;height:16px;object-fit:contain;object-position:center;"]),nH=Z.ZP.div.withConfig({componentId:"sc-90f863a8-5"})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;& > svg{width:30%;height:30%;color:",";}"],E.w.gray06);function nX(e){let{theme:n,detailInfo:i,info:o}=e;return(0,t.jsxs)(nV,{children:[n&&0!==n.length&&(0,t.jsx)(nG,{children:null==n?void 0:n.map(e=>(0,t.jsx)(nK,{children:e},e))}),i&&(0,t.jsxs)(nJ,{children:[(0,t.jsx)(eL(),{src:i.icon_light,width:16,height:16,alt:"객실상품구성 아이콘",style:{width:"unset"}}),(0,t.jsx)("span",{children:i.title})]}),0!==o.length&&(0,t.jsx)(nY,{children:o.map(e=>(0,t.jsxs)(nQ,{children:[(0,t.jsx)(eL(),{src:e.icon_light,width:16,height:16,alt:"객실정보 아이콘",style:{width:"unset"}}),(0,t.jsx)("span",{children:e.title})]},e.title))})]})}let nV=Z.ZP.div.withConfig({componentId:"sc-3a2b0ddf-0"})(["display:flex;flex-direction:column;row-gap:8px;"]),nG=Z.ZP.div.withConfig({componentId:"sc-3a2b0ddf-1"})(["display:flex;flex-wrap:wrap;gap:6px;"]),nK=Z.ZP.div.withConfig({componentId:"sc-3a2b0ddf-2"})(["padding:4px 10px;border-radius:6px;background-color:rgb(from "," r g b / 0.1);color:",";",""],E.w.primary,E.w.primary,E.Z.body8),nY=Z.ZP.div.withConfig({componentId:"sc-3a2b0ddf-3"})(["display:flex;flex-direction:column;row-gap:2px;opacity:0.8;"]),nQ=Z.ZP.div.withConfig({componentId:"sc-3a2b0ddf-4"})(["display:flex;align-items:center;column-gap:8px;color:",";"," & > *:first-child{flex-shrink:0;}"],E.w.gray03,E.Z.body8),nJ=(0,Z.ZP)(nQ).withConfig({componentId:"sc-3a2b0ddf-5"})(["color:",";",""],E.w.gray02,E.Z.body9);
1function n0(e){let{originalPrice:n,salesPrice:i,oneNightSalePrice:o,percent:l,consecutiveNightsDiscount:r}=e;return(0,t.jsxs)(n1,{children:[null!==l&&0!==l&&(0,t.jsxs)(n2,{children:[(0,t.jsxs)(n4,{children:[l,"%"]}),null!==n&&(0,t.jsx)(n6,{children:"".concat(n.toLocaleString(),"원")})]}),0!==i&&(0,t.jsx)(n5,{children:"".concat(i.toLocaleString(),"원 (총 금액)")}),null!==r&&0!==r&&(0,t.jsx)(n3,{children:"".concat(r.toLocaleString()," 연박할인가")}),(0,t.jsx)(n8,{children:"".concat(o.toLocaleString(),"원")})]})}let n1=Z.ZP.div.withConfig({componentId:"sc-ba600baa-0"})([""]),n2=Z.ZP.div.withConfig({componentId:"sc-ba600baa-1"})(["display:flex;align-items:center;column-gap:2px;"]),n4=Z.ZP.span.withConfig({componentId:"sc-ba600baa-2"})(["color:",";",";"],E.w.primary,E.Z.caption4),n6=Z.ZP.span.withConfig({componentId:"sc-ba600baa-3"})(["color:",";",";text-decoration:line-through;"],E.w.gray04,E.Z.caption5),n5=Z.ZP.div.withConfig({componentId:"sc-ba600baa-4"})(["color:",";",";"],E.w.gray03,E.Z.caption5),n3=Z.ZP.div.withConfig({componentId:"sc-ba600baa-5"})(["color:",";",";"],E.w.primary,E.Z.caption4),n8=Z.ZP.div.withConfig({componentId:"sc-ba600baa-6"})(["display:flex;align-items:center;column-gap:4px;color:",";",";&::after{content:'1박';","}* + &{margin-top:4px;}"],E.w.gray01,E.Z.largeTitle3,E.Z.caption1);var n9=i(38406);function n7(e){let{isCancelAvailable:n,freeCancellableAt:i,penalRate:o}=e;return n?n&&null!==i?(0,t.jsxs)(ie,{$isFreeCancellable:!0,children:[(0,t.jsx)(ei.cU,{width:16,height:16,color:"currentColor"}),(0,t.jsx)("span",{children:"무료취소"}),(0,t.jsx)(it,{children:"".concat(i," 까지")})]}):n&&null===i&&o?(0,t.jsxs)(ie,{children:[(0,t.jsx)(ei.cU,{width:16,height:16,color:"currentColor"}),(0,t.jsx)("span",{children:(0,n9.Z)(o)})]}):null:(0,t.jsxs)(ii,{children:[(0,t.jsx)(ei.HE,{width:16,height:16,color:"currentColor"}),(0,t.jsx)("span",{children:"환불 불가"})]})}let ie=Z.ZP.div.withConfig({componentId:"sc-cc368995-0"})(["display:flex;column-gap:4px;color:",";"," ",""],E.w.primary,E.Z.caption4,e=>{let{$isFreeCancellable:n}=e;return n&&(0,Z.iv)(["color:",";"],E.w.green500)}),ii=(0,Z.ZP)(ie).withConfig({componentId:"sc-cc368995-1"})(["color:",";"],E.w.primary),it=Z.ZP.span.withConfig({componentId:"sc-cc368995-2"})(["",""],E.Z.caption5);function io(e){let{accommodationId:n,productId:i,productName:o,roomName:l,images:r,theme:a,detailInfo:c,info:s,price:p,isCancelAvailable:u,freeCancellableAt:h,penalRate:x,aboveLabel:g,belowLabel:f}=e,m=(0,d.useRouter)();return(0,t.jsxs)(il,{children:[(0,t.jsx)(nE,{images:r,aboveLabel:g,belowLabel:f}),(0,t.jsx)(nq(),{href:{pathname:"/stay/detail/".concat(n,"/").concat(i),query:{checkIn:m.query.checkIn,checkOut:m.query.checkOut,adults:m.query.adults,childrenAges:m.query.childrenAges}},passHref:!0,legacyBehavior:!0,children:(0,t.jsxs)(ir,{children:[(0,t.jsxs)(ia,{children:[(0,t.jsx)(ic,{children:o}),(0,t.jsx)(id,{children:l})]}),(0,t.jsx)(nX,{theme:a,detailInfo:c,info:s}),(0,t.jsxs)(is,{children:[(0,t.jsx)(n0,{originalPrice:p.original_price,salesPrice:p.sales_price,oneNightSalePrice:p.one_night_sale_price,percent:p.percent,consecutiveNightsDiscount:p.consecutive_nights_discount}),(0,t.jsxs)(ip,{children:["상세보기",(0,t.jsx)(ei.XC,{strokeWidth:3,width:20,height:14,color:"currentColor"})]})]}),(0,t.jsx)(n7,{isCancelAvailable:u,freeCancellableAt:h,penalRate:x})]})})]})}let il=Z.ZP.div.withConfig({componentId:"sc-d0390ffa-0"})(["position:relative;display:flex;flex-direction:column;row-gap:12px;padding:16px 20px 32px;& + &{padding-top:32px;}&:not(:last-child){&::after{content:'';position:absolute;display:block;bottom:0;left:20px;right:20px;width:calc(100% - 40px);height:1px;background-color:",";}}"],E.w.gray07),ir=Z.ZP.a.withConfig({componentId:"sc-d0390ffa-1"})(["display:flex;flex-direction:column;row-gap:20px;"]),ia=Z.ZP.div.withConfig({componentId:"sc-d0390ffa-2"})(["display:flex;flex-direction:column;row-gap:4px;"]),ic=Z.ZP.h2.withConfig({componentId:"sc-d0390ffa-3"})(["color:",";",""],E.w.gray01,E.Z.largeTitle6),id=Z.ZP.span.withConfig({componentId:"sc-d0390ffa-4"})(["color:",";",""],E.w.gray05,E.Z.body7),is=Z.ZP.div.withConfig({componentId:"sc-d0390ffa-5"})(["display:flex;justify-content:space-between;align-items:center;"]),ip=(0,Z.ZP)(ec.Z).withConfig({componentId:"sc-d0390ffa-6"})(["display:flex;align-items:center;width:92px;height:36px;padding-inline:16px 8px;",""],E.Z.label3);function iu(e){let{description:n,subDescription:i,children:o}=e;return(0,t.jsxs)(ih,{children:[o,(0,t.jsxs)(ix,{children:[(0,t.jsx)(ig,{children:n}),i&&(0,t.jsx)(im,{children:i})]})]})}let ih=Z.ZP.div.withConfig({componentId:"sc-a8adba02-0"})(["display:flex;flex-direction:column;align-items:center;gap:20px;padding:36px 20px 60px;background-color:",";"],E.w.black),ix=Z.ZP.div.withConfig({componentId:"sc-a8adba02-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;"]),ig=Z.ZP.p.withConfig({componentId:"sc-a8adba02-2"})(["color:",";",""],E.w.gray02,E.Z.largeTitle7),im=Z.ZP.p.withConfig({componentId:"sc-a8adba02-3"})(["color:",";",""],E.w.gray04,E.Z.label5);var iv=i(83009);function iw(){return(0,t.jsx)(iu,{description:"객실을 불러오는 중이에요.",subDescription:"잠시만 기다려주ì
1„¸ìš”",children:(0,t.jsx)(iv.Z,{type:"type2"})})}function ib(){return(0,t.jsx)(iu,{description:"해당 날짜에 예약 가능한 객실이 없어요.",subDescription:"다른 날짜나 인원으로 검색해보세요.",children:(0,t.jsx)(ei.eI,{width:40,height:40,color:E.w.white,opacity:.1})})}function ij(e){let{onClick:n,restProductsCount:i,isOpen:o=!1}=e;return(0,t.jsx)(iC,{children:(0,t.jsxs)(iy,{type:"button",onClick:n,children:[(0,t.jsx)(iZ,{$isOpen:o,children:(0,t.jsx)(ei.v4,{width:12,height:12,color:E.w.gray03,strokeWidth:2.5})}),o?"객실 접기":"나머지 ".concat(i,"개 객실 더보기")]})})}let iC=Z.ZP.div.withConfig({componentId:"sc-51b906b5-0"})(["display:flex;justify-content:center;padding-bottom:24px;"]),iy=Z.ZP.button.withConfig({componentId:"sc-51b906b5-1"})(["display:flex;align-items:center;column-gap:8px;height:40px;padding-inline:16px;border:1px solid ",";border-radius:99px;",""],E.w.gray06,E.Z.label3),iZ=Z.ZP.div.withConfig({componentId:"sc-51b906b5-2"})(["display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid ",";border-radius:50%;transform:",";"],E.w.gray08,e=>{let{$isOpen:n}=e;return n?"rotate(180deg)":"rotate(0deg)"});function iI(e){let{accommodationId:n}=e,i=(0,s.T)(),l=(0,s.C)(e=>{let{stayDetail:n}=e;
1return n.productRequestParams}),r=(0,s.C)(e=>{let{stayDetail:n}=e;return n.isProductDataLoading}),a=(0,s.C)(e=>{let{stayDetail:n}=e;return n.isProductDataFetched}),c=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null!==(n=null==i?void 0:i.productData)&&void 0!==n?n:[]}),[d,p]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{i((0,A.Cu)({accommodationId:n,...l}))},[i,n,l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[r&&(0,t.jsx)(iw,{}),a&&0===c.length&&(0,t.jsx)(ib,{}),0!==c.length&&c.slice(0,d?void 0:5).map(e=>(0,t.jsx)(io,{accommodationId:n,productId:e.id,productName:e.name,roomName:e.room_name,images:e.images,theme:e.theme,detailInfo:e.detail_info,info:e.info,price:e.price,isCancelAvailable:e.is_cancel_available,freeCancellableAt:e.free_cancellable_at,penalRate:e.penal_rate,aboveLabel:e.above_label,belowLabel:e.below_label},e.id))]}),c.length>5&&(0,t.jsx)(ij,{onClick:()=>{p(e=>!e)},isOpen:d,restProductsCount:c.length-5})]})}var iP=i(70944),ik=i(80052);function i_(e){let{count:n,keyPrefix:i="skeleton"}=e;return(0,t.jsx)(t.Fragment,{children:Array.from({length:n},(e,n)=>(0,t.jsx)(iD,{children:(0,t.jsx)(ik.Z,{})},"".concat(i,"-").concat(n)))})}let iD=Z.ZP.div.withConfig({componentId:"sc-f5b6f60d-0"})(["flex:0 0 150px;width:150px;min-width:150px;"]);var iT=i(21924),iS=i(67959);function iM(){let{push:e}=(0,d.useRouter)(),n=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.detailData)||void 0===n?void 0:n.district_id}),i=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.detailData)||void 0===n?void 0:n.loc_code}),{blockRef:o,onMouseDown:l,onTouchStart:r}=(0,iT.Z)(),{data:a,isLoading:c}=(0,iS.Z)({size:10,district_id:Number(n),loc_code:Number(i),is_coupon_price:!0},{enabled:!!n&&!!i}),p=null==a?void 0:a.data.contents;return c||(null==p?void 0:p.length)!==0?(0,t.jsxs)(iA,{children:[(0,t.jsx)(iN,{children:"근처에 더 많은 놀거리가 있어요"}),(0,t.jsx)(iR,{ref:o,onMouseDown:l,onTouchStart:r,children:c?(0,t.jsx)(i_,{count:3,keyPrefix:"leisure-skeleton"}):null==p?void 0:p.map(n=>{let{pk:i,name:o,short_address:l,price:r,images:a,labels:c}=n;return(0,t.jsx)(iO,{children:(0,t.jsx)(iP.Z,{title:o,region:l,price:r||{percent:0,discount:0,original:0},labels:c,image:a.thumb_main,onClickCard:()=>{e("".concat(V.OW,"/").concat(i))}})},i)})})]}):null}let iA=Z.ZP.section.withConfig({componentId:"sc-c1fc11e2-0"})(["margin-top:8px;padding:16px 0 0;background-color:",";"],E.w.black),iN=Z.ZP.h2.withConfig({componentId:"sc-c1fc11e2-1"})(["margin:0 12px 16px;color:",";",""],E.w.gray01,E.Z.label1),iR=Z.ZP.div.withConfig({componentId:"sc-c1fc11e2-2"})(["display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 12px 16px;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x;&::-webkit-scrollbar{display:none;}"]),iO=Z.ZP.div.withConfig({componentId:"sc-c1fc11e2-3"})(["flex:0 0 150px;width:150px;min-width:150px;"]);var iL=i(74855),iF=i.n(iL),iq=i(15162);function iE(){let e=(0,d.useRouter)(),{openToastMessage:n}=(0,P.Z)(),i=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.address)&&void 0!==i?i:""}),o=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.lat)&&void 0!==i?i:0}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.lng)&&void 0!==i?i:0});return(0,t.jsxs)(i$,{children:[(0,t.jsx)(iB,{children:(0,t.jsx)(iU,{children:"숙소 위치"})}),(0,t.jsx)(iz,{src:(0,iq.Z)({width:"600",height:"400",lng:String(l),lat:String(o)}),alt:"숙소 위치 지도"}),(0,t.jsxs)(iW,{children:[(0,t.jsx)(iF(),{text:i,onCopy:()=>n("복사되었습니다"),children:(0,t.jsxs)(iH,{children:[(0,t.jsx)(ei.iA,{width:18,height:18,color:E.w.gray04}),(0,t.jsx)("span",{children:"주소 복사하기"})]})}),(0,t.jsxs)(iX,{children:[(0,t.jsx)(iV,{children:i}),(0,t.jsx)(iG,{type:"button",onClick:()=>{e.push({pathname:V.Ap,query:{lat:o,lng:l,address:i}})},children:"지도보기"})]})]})]})}let i$=Z.ZP.div.withConfig({componentId:"sc-1e4c7e91-0"})([""]),iB=Z.ZP.div.withConfig({componentId:"sc-1e4c7e91-1"})(["padding:16px 20px;border-top:1px solid ",";"],E.w.gray08),iU=Z.ZP.h2.withConfig({componentId:"sc-1e4c7e91-2"})(["color:",";",""],E.w.gray01,E.Z.largeTitle7),iz=Z.ZP.img.withConfig({componentId:"sc-1e4c7e91-3"})(["width:100%;aspect-ratio:3 / 2;object-fit:cover;"]),iW=Z.ZP.div.withConfig({componentId:"sc-1e4c7e91-4"})(["display:flex;flex-direction:column;gap:7px;padding:20px;"]),iH=Z.ZP.div.withConfig({componentId:"sc-1e4c7e91-5"})(["display:flex;align-items:center;gap:2px;color:",";"," cursor:pointer;"],E.w.gray03,E.Z.caption5),iX=Z.ZP.div.withConfig({componentId:"sc-1e4c7e91-6"})(["display:flex;justify-content:space-between;gap:6px;"]),iV=Z.ZP.span.withConfig({componentId:"sc-1e4c7e91-7"})(["display:-webkit-box;overflow:hidden;color:",";"," -webkit-line-clamp:1;-webkit-box-orient:vertical;"],E.w.gray01,E.Z.label4),iG=Z.ZP.button.withConfig({componentId:"sc-1e4c7e91-8"})(["flex-shrink:0;color:",";",""],E.w.primary,E.Z.caption5);var iK=i(15611);function iY(){let e=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null===(n=i.detailData)||void 0===n?void 0:n.contact});return e?(0,t.jsx)(iK.Z,{title:"숙소 전화",phoneNumber:e}):null}
1let iQ=["facilitiesTab","noticeTab","extraChargeInfoTab"],iJ={facilitiesTab:"숙소 시설",noticeTab:"안내 사항",extraChargeInfoTab:"추가요금 정보"};function i0(){let e=(0,s.T)(),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.accommodation_facilities_section)&&void 0!==i?i:[]}),i=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.notice_info)&&void 0!==i?i:null}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.important_notice)&&void 0!==i?i:null}),r=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.check_info)&&void 0!==i?i:null}),a=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.accommodation_policy)&&void 0!==i?i:null}),c=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.extra_charge_info)&&void 0!==i?i:null}),d=(0,o.useMemo)(()=>iQ.filter(e=>{switch(e){case"facilitiesTab":return 0!==n.length;case"noticeTab":return null!==i&&""!==i||null!==l&&""!==l||null!==r&&""!==r||null!==a&&""!==a;case"extraChargeInfoTab":return null!==c}}),[n,i,l,r,a,c]),u=(0,s.C)(e=>{var n;let{stayDetail:i}=e;return null!==(n=i.detailModalDefaultSelectedTab)&&void 0!==n?n:d[0]}),h=n=>{e((0,p.WB)(n.target.id))};return(0,t.jsxs)(i1,{children:[d.map(e=>(0,t.jsx)(i4,{id:e,defaultChecked:u===e,onChange:h,children:iJ[e]},e)),(0,t.jsx)(i2,{})]})}let i1=Z.ZP.div.withConfig({componentId:"sc-d2727a67-0"})(["position:relative;display:flex;column-gap:8px;width:100%;"]),i2=Z.ZP.div.withConfig({componentId:"sc-d2727a67-1"})(["position:absolute;left:-20px;right:-20px;bottom:0;width:calc(100% + 40px);height:1px;background-color:",";"],E.w.gray08);function i4(e){let{onChange:n,id:i,children:o,checked:l,defaultChecked:r}=e;return(0,t.jsxs)(i6,{children:[(0,t.jsx)(i5,{onChange:n,id:i,checked:l,defaultChecked:r}),o]})}let i6=Z.ZP.label.withConfig({componentId:"sc-d2727a67-2"})(["position:relative;padding:8px 10px;color:",";"," &:hover{cursor:pointer;}&:has(:checked){color:",";"," &::after{content:'';z-index:10;position:absolute;left:0;right:0;bottom:0;width:100%;height:2px;background-color:",";}}"],E.w.gray04,E.Z.label5,E.w.primary,E.Z.label3,E.w.primary),i5=Z.ZP.input.attrs({type:"radio",name:"modalTab"}).withConfig({componentId:"sc-d2727a67-3"})(["appearance:none;"]);function i3(){let e=(0,s.C)(e=>{let{stayDetail:n}=e;return n.detailModalDefaultSelectedTab}),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.accommodation_facilities_section)&&void 0!==i?i:[]});return"facilitiesTab"===e?(0,t.jsx)(t.Fragment,{children:n.map(e=>{let{title:n,facilities:i}=e;return(0,t.jsxs)(i8,{children:[(0,t.jsx)(i9,{children:n}),(0,t.jsx)(eB,{facilities:i})]},n)})}):null}let i8=Z.ZP.div.withConfig({componentId:"sc-35c1926e-0"})(["&:not(:last-child){&::after{content:'';display:block;width:100%;height:1px;margin-block:20px;background-color:",";}}"],E.w.gray08),i9=Z.ZP.h3.withConfig({componentId:"sc-35c1926e-1"})(["margin-bottom:14px;color:",";",""],E.w.gray01,E.Z.largeTitle7);function i7(e){let{title:n,description:i}=e;return(0,t.jsxs)(te,{children:[(0,t.jsx)(tn,{children:n}),(0,t.jsx)(ti,{children:i})]})}let te=Z.ZP.div.withConfig({componentId:"sc-1eb6fa4d-0"})(["&:not(:last-child){&::after{content:'';display:block;width:100%;height:1px;margin-block:20px;background-color:",";}}"],E.w.gray08),tn=Z.ZP.h3.withConfig({componentId:"sc-1eb6fa4d-1"})(["margin-bottom:14px;color:",";",""],E.w.gray02,E.Z.largeTitle7),ti=Z.ZP.p.withConfig({componentId:"sc-1eb6fa4d-2"})(["width:100%;color:",";"," word-wrap:break-word;white-space:pre-wrap;"],E.w.gray02,E.Z.label5);function tt(){let e=(0,s.C)(e=>{let{stayDetail:n}=e;return n.detailModalDefaultSelectedTab}),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.notice_info)&&void 0!==i?i:null}),i=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.important_notice)&&void 0!==i?i:null}),o=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.check_info)&&void 0!==i?i:null}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.accommodation_policy)&&void 0!==i?i:null});return"noticeTab"===e?(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)(i7,{title:"공지사항",description:n}),i&&(0,t.jsx)(i7,{title:"유의사항",description:i}),o&&(0,t.jsx)(i7,{title:"특별 체크인 지침",description:o}),l&&(0,t.jsx)(i7,{title:"숙소 정책",description:l})]}):null}function to(){let e=(0,s.C)(e=>{let{stayDetail:n}=e;return n.detailModalDefaultSelectedTab}),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.extra_charge_info)&&void 0!==i?i:null});return"extraChargeInfoTab"===e&&n?(0,t.jsx)(i7,{title:"추가요금 정보",description:n}):null}function tl(){let e=(0,s.T)(),n=(0,s.C)(e=>{let{stayDetail:n}=e;return n.showsAccommodationInfoDetailModal}),i=()=>{e((0,nn.ug)())};return n?(0,t.jsx)(ea.Z,{isAnimate:!0,isVisible:n,closeModal:i,children:(0,t.jsxs)(tr,{children:[(0,t.jsxs)(ta,{children:[(0,t.jsxs)(tc,{children:[(0,t.jsx)(td,{}),(0,t.jsx)(ts,{children:"숙소 정보"}),(0,t.jsx)(td,{children:(0,t.jsx)("button",{type:"button",onClick:i,children:(0,t.jsx)(ei.aM,{color:E.w.white})})})]}),(0,t.jsx)(i0,{})]}),(0,t.jsxs)(tp,{children:[(0,t.jsx)(i3,{}),(0,t.jsx)(tt,{}),(0,t.jsx)(to,{})]})]})}):null}let tr=Z.ZP.div.withConfig({componentId:"sc-43001ca5-0"}
1)(["height:calc(90vh - 40px);"]),ta=Z.ZP.div.withConfig({componentId:"sc-43001ca5-1"})(["background-color:inherit;"]),tc=Z.ZP.div.withConfig({componentId:"sc-43001ca5-2"})(["display:flex;align-items:center;column-gap:12px;padding-bottom:14px;"]),td=Z.ZP.div.withConfig({componentId:"sc-43001ca5-3"})(["width:24px;height:24px;"]),ts=Z.ZP.h2.withConfig({componentId:"sc-43001ca5-4"})(["flex-grow:1;color:",";"," text-align:center;"],E.w.white,E.Z.largeTitle7),tp=Z.ZP.div.withConfig({componentId:"sc-43001ca5-5"})(["height:calc(100% - 74px);padding-block:24px 34px;overflow-y:scroll;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]);var tu=i(32179);function th(){let e=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.vendor.name)&&void 0!==i?i:""}),n=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.vendor.president_name)&&void 0!==i?i:""}),i=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.vendor.biz_number)&&void 0!==i?i:""}),o=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.vendor.address)&&void 0!==i?i:""}),l=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.vendor.email)&&void 0!==i?i:""});return(0,t.jsx)(tu.Z,{vendorName:e,vendorPresidentName:n,vendorBizNumber:i,vendorAddress:o,vendorEmail:l})}var tx=i(94203),tg=i(94994),tf=i(26669),tm=i(72304),tv=i(65547),tw=i(45343),tb=i(14174),tj=!0;function tC(e){let{accommodationId:n,isLogin:i}=e,l=(0,d.useRouter)(),a=(0,s.T)(),w=(0,s.C)(e=>{let{stayDetail:n}=e;return n.detailError}),b=(0,s.C)(e=>{let{stayDetail:n}=e;
1return n.productRequestParams}),C=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.is_display)&&void 0!==i&&i}),y=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.name)&&void 0!==i?i:""}),Z=(0,s.C)(e=>{var n,i;let{stayDetail:t}=e;return null!==(i=null===(n=t.detailData)||void 0===n?void 0:n.type.name)&&void 0!==i?i:""}),I=(0,s.C)(e=>{let{stayDetail:n}=e;return n.detailData}),P=(0,s.C)(e=>{let{stayDetail:n}=e;return n.productData}),k=(0,s.C)(e=>{let{stayDetail:n}=e;return n.isProductDataFetched}),T=(0,o.useRef)(null);return((0,x.Z)(),(0,o.useEffect)(()=>{if(!l.isReady)return;let{checkIn:e,checkOut:n,adults:i,childrenAges:t}=l.query;if(!function(e){let{checkIn:n,checkOut:i,adults:t,childrenAges:o}=e;return!(!n||!i||!(0,tm.default)(new Date(n))||!(0,tm.default)(new Date(i))||(0,tv.Z)((0,tw.default)(new Date(n)))||(0,tb.default)(new Date(n),new Date(i))||!t||!/^(20|1[0-9]|[1-9])$/.test(t)||o&&!/^(?:1[0-1]|[0-9])(,(?:1[0-1]|[0-9]))*$/.test(o)||o&&Number(t)+o.split(",").length>20)}({checkIn:e,checkOut:n,adults:i,childrenAges:t}))return;let o=Number(i);if(!Number.isFinite(o))return;let d=null!=t&&""!==t&&null!==/^(?:1[0-1]|[0-9])(,(?:1[0-1]|[0-9]))*$/.exec(t)?String(null==t?void 0:t.split(",").map(e=>Number(e)).join(",")):void 0,s=null==b?void 0:b.check_in,u=null==b?void 0:b.check_out,h=null==b?void 0:b.adults,x=(null==b?void 0:b.children_ages)?b.children_ages.join(","):void 0,g=void 0===d?x:d;(s!==e||u!==n||h!==o||x!==g)&&a((0,p.Rw)(c()({checkIn:e,checkOut:n,adults:i,childrenAges:g},r())))},[l.isReady,l.query,l.query.checkIn,l.query.checkOut,l.query.adults,l.query.childrenAges,a,b]),(0,o.useEffect)(()=>{var e,i,t,o,l;if(null==I||!k||T.current===n)return;T.current=n;let r=String(n),a=null==P?void 0:P.reduce((e,n)=>{if(null==e)return n;let i=e.price.sales_price||e.price.one_night_sale_price||e.price.original_price;return(n.price.sales_price||n.price.one_night_sale_price||n.price.original_price)<i?n:e},null),{originalPrice:c,salePrice:d}=function(e){let{originalPrice:n,salesPrice:i,oneNightSalePrice:t}=e,o=null!=t&&t>0?t:null!=i&&i>0?i:null!=n&&n>0?n:0;return{originalPrice:Math.max(null!=n&&n>0?n:null!=i&&i>0?i:o,0),salePrice:Math.max(o,0)}}({originalPrice:null==a?void 0:a.price.original_price,salesPrice:null==a?void 0:a.price.sales_price,oneNightSalePrice:null==a?void 0:a.price.one_night_sale_price}),s=null===(e=I.themes)||void 0===e?void 0:e.map(e=>e.id).join(", "),p=[null===(i=I.short_address)||void 0===i?void 0:i.sido,null===(t=I.short_address)||void 0===t?void 0:t.gugun].join(" ").trim(),x=p.length>0?p:I.address,g=b.check_in?(0,h.Z)(b.check_in):"",f=b.check_out?(0,h.Z)(b.check_out):"";(0,u.Ui)({product:{productCore:{productType:"숙박",productName:"",productPk:"",accommodationName:y,accommodationPK:r,roomName:"",roomPk:""},...s?{themePk:s}:{},...g?{checkIn:g}:{},...f?{checkOut:f}:{},...x?{location:x}:{},originalPrice:c,salePrice:d,isAd:!1}}),null!==(l=null===(o=(0,_.Z)())||void 0===o?void 0:o.is_member)&&void 0!==l&&l&&(0,D.vX)({accommodationName:y,accommodationTypeName:Z}),(0,tx.j0)({id:String(n),name:y,category:Z}),(0,tg.G)({event:"viewItem",item:String(n)}),window.kakaoPixel("7937699478974084769").viewContent({tag:"stay",id:n})},[I,n,y,Z,k,P,b.check_in,b.check_out]),w)?(0,t.jsx)(f.Z,{}):C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j,{}),(0,t.jsxs)(N,{accommodationId:n,isLogin:i,children:[(0,t.jsx)(W,{}),(0,t.jsx)(G,{children:(0,t.jsx)(ek,{accommodationId:n})}),(0,t.jsx)(eS,{}),(0,t.jsx)(ez,{}),(0,t.jsx)(e6,{accommodationId:n}),(0,t.jsx)(nt,{}),(0,t.jsx)(nc,{}),(0,t.jsx)(v.Z,{}),(0,t.jsx)(nR,{}),(0,t.jsx)(iI,{accommodationId:n}),(0,t.jsx)(iE,{}),(0,t.jsx)(iY,{}),(0,t.jsx)(th,{}),(0,t.jsx)(iM,{}),(0,t.jsx)(g.Z,{})]}),(0,t.jsx)(tl,{})]}):(0,t.jsx)(m.ZP,{title:"상품을 점검 중입니다.",description:"관련 문의 사항은 놀이의발견 고객센터에 알려주시면 친절하게 안내해 드리겠습니다.",buttonText:"확인",buttonAction:()=>{if((0,tf.ZP)()){l.push(V.Ql);return}l.back()}})}},54862:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var t=i(85893),o=i(67294),l=i(19521),r=i(90245),a=i(96147);let c=(e,n)=>e<Math.floor(n)?"full":e<Math.ceil(n)&&n%1>=.1?"half":"empty",d=e=>Array.from({length:5},(n,i)=>c(i,e));function s(e){let{rating:n,starIconSize:i,starIconColor:l,emptyStarIconColor:r}=e,a=(0,o.useMemo)(()=>d(n),[n]);return(0,t.jsx)(p,{children:a.map((e,n)=>(0,t.jsx)(u,{starIconSize:i,starIconColor:l,emptyStarIconColor:r,starType:e},"star_".concat(n,"_").concat(e)))})}let p=l.ZP.div.withConfig({componentId:"sc-735bba8b-0"})(["display:flex;align-items:center;"]);function u(e){let{starIconSize:n=14,starIconColor:i=r.w.quaternary,emptyStarIconColor:o=r.w.gray08,starType:l="full"}=e;switch(l){case"full":return(0,t.jsx)(x,{$size:n,$color:i});case"half":return(0,t.jsx)(g,{$size:n,$color:i,$emptyColor:o});case"empty":return(0,t.jsx)(f,{$size:n,$color:o})}}let h=(0,l.iv)(["width:",";height:",";color:",";"],e=>{let{$size:n}=e;return"".concat(n,"px")},e=>{let{$size:n}=e;return"".concat(n,"px")},e=>{let{$color:n}=e;return n}),x=(0,l.ZP)(a.qN).withConfig({componentId:"sc-735bba8b-1"})(["",""],h),g=(0,l.ZP)(a.Je).withConfig({componentId:"sc-735bba8b-2"})([""," & .star-half-fill-bg{fill:",";}"],h,e=>{let{$emptyColor:n}=e;return n}),f=(0,l.ZP)(a.qN).withConfig({componentId:"sc-735bba8b-3"})(["",""],h)},82253:function(e,n,i){"use strict";i.d(n,{Z:function(){return I}});var t=i(85893),o=i(19521),l=i(90245),r=i(86838),a=i(96147),c=i(74762),d=i(67294),s=i(69447),p=i(24002),u=i(95649),h=i(64179),x=i(66389),g=i(96684);function f(e){let{images:n,currentImageIndex:i,onSlideChange:o}=e,[l,r]=(0,d.useState)();return(0,d.useEffect)(()=>{l&&l.slideTo(i)},[i,l]),(0,t.jsx)(m,{children:(0,t.jsx)(s.t,{onSwiper:r,noSwiping:!0,slidesPerView:"auto",slidesPerGroup:1,initialSlide:i,centeredSlides:!0,runCallbacksOnInit:!0,onSlideChange:e=>{o(e.realIndex)},children:null==n?void 0:n.map(e=>{let{image:n,sequence:i}=e;return(0,t.jsx)(p.o,{children:(0,t.jsx)(v,{children:(0,t.jsx)(x.Z,{src:n,alt:"상세 이미지 ".concat(i),fill:!0,sizes:g.eM.FULL_WIDTH_RESPONSIVE,style:{objectFit:"contain"}})})},"detail_image_".concat(i))})})})}let m=o.ZP.div.withConfig({componentId:"sc-84ed0638-0"})(["width:100vw;height:calc(100% - ","px);overflow-x:hidden;overflow-y:hidden;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}@media ","{width:500px;}"," .swiper-container{overflow:visible;.swiper-slide{width:auto !important;}}"],r.lF,h.A.mobileL,u.Z),v=o.ZP.div.withConfig({componentId:"sc-84ed0638-1"})(["display:flex;justify-content:center;align-items:center;width:100vw;height:calc( 100vh - (","px + ","px) );@media ","{width:500px;}"],r.lF,r.RN,h.A.mobileL);var w=i(89165);function b(e){let{images:n,currentImageIndex:i,onClickThumbnail:o}=e,{blockRef:l,onMouseEventStart:r,onMouseMove:a,onMouseEventEnd:c}=(0,w.Z)();return(0,t.jsx)(j,{ref:l,onMouseDown:e=>{r(e),e.stopPropagation(),e.preventDefault()},onMouseMove:a,onMouseUp:c,onMouseLeave:c,children:(0,t.jsx)(C,{children:null==n?void 0:n.map((e,n)=>{let{image:l,sequence:r}=e;return(0,t.jsx)(y,{$isActive:i===n,onClick:()=>o(n),children:(0,t.jsx)(x.Z,{src:l,alt:"상세 이미지 썸네일 ".concat(r),fill:!0,style:{objectFit:"cover",objectPosition:"center"}})},"thumbnail_image_".concat(r))})})})}let j=o.ZP.div.withConfig({componentId:"sc-4693e9c8-0"})(["width:100%;overflow-x:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),C=o.ZP.div.withConfig({componentId:"sc-4693e9c8-1"})(["display:flex;gap:10px;width:fit-content;padding:10px 10px 20px;"]),y=o.ZP.div.withConfig({componentId:"sc-4693e9c8-2"})(["position:relative;width:70px;height:70px;aspect-ratio:1 / 1;",""],e=>{let{$isActive:n}=e;return n&&(0,o.iv)(["border:2px solid ",";"],l.w.primary)});function Z(e){let{images:n,initialImageIndex:i}=e,[o,l]=(0,d.useState)(i);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{images:n,currentImageIndex:o,onSlideChange:l}),(0,t.jsx)(b,{images:n,currentImageIndex:o,onClickThumbnail:l})]})}function I(e){let{closeModal:n,images:i,initialImageIndex:o=0}=e;return(0,t.jsxs)(c.Z,{isFull:!0,isAnimate:!0,isVisible:!0,closeModal:n,children:[(0,t.jsxs)(P,{children:["상세 이미지",(0,t.jsx)(k,{type:"button",onClick:n,children:(0,t.jsx)(a.aM,{color:l.w.white})})]}),(0,t.jsx)(_,{children:(0,t.jsx)(Z,{images:i,initialImageIndex:o})})]})}let P=o.ZP.div.withConfig({componentId:"sc-d5fe19e8-0"})(["position:relative;display:flex;justify-content:center;align-items:center;height:","px;padding:14px 20px;",""],r.RN,l.Z.title1),k=o.ZP.button.withConfig({componentId:"sc-d5fe19e8-1"})(["position:absolute;right:20px;top:50%;transform:translateY(-50%);cursor:pointer;"]),_=o.ZP.div.withConfig({componentId:"sc-d5fe19e8-2"})(["position:relative;height:calc(100% - ","px);"],r.RN)},52778:function(e,n,i){"use strict";i.d(n,{Z:function(){return r}});var t=i(85893),o=i(19521),l=i(90245);function r(){return(0,t.jsx)(a,{})}let a=o.ZP.div.withConfig({componentId:"sc-f04e0619-0"})(["width:100%;height:8px;background-color:",";& + &{display:none;}"],l.w.gray08)},96754:function(e,n,i){"use strict";i.d(n,{u:function(){return d},Z:function(){return r}});var t=i(85893),o=i(19521),l=i(90245);function r(e){let{title:n,children:i}=e;return(0,t.jsxs)(a,{children:[(0,t.jsx)(c,{children:n}),i]})}let a=o.ZP.section.withConfig({componentId:"sc-ce73338a-0"})(["padding:16px 20px 24px;"]),c=o.ZP.h2.withConfig({componentId:"sc-ce73338a-1"})(["margin-bottom:16px;color:",";",""],l.w.gray01,l.Z.largeTitle7),d=o.ZP.p.withConfig({componentId:"sc-ce73338a-2"})(["width:100%;color:",";"," word-wrap:break-word;white-space:pre-wrap;"],l.w.gray02,l.Z.label5)},15611:function(e,n,i){"use strict";i.d(n,{Z:function(){return a}});var t=i(85893),o=i(19521),l=i(90245),r=i(96147);function a(e){let{title:n,phoneNumber:i}=e;return(0,t.jsxs)(c,{children:[(0,t.jsxs)(d,{children:[(0,t.jsx)(s,{children:n}),(0,t.jsx)(p,{children:i})]}),(0,t.jsxs)(u,{href:"tel:".concat(i),children:[(0,t.jsx)(r.y5,{width:15,height:15,color:"currentColor"}),(0,t.jsx)("span",{children:"전화하기"})]})]})}let c=o.ZP.div.withConfig({componentId:"sc-fe4f0559-0"})(["display:flex;justify-content:space-between;align-items:center;padding:24px;background-color:",";"],l.w.gray09),d=o.ZP.div.withConfig({componentId:"sc-fe4f0559-1"})(["& > *:not(:last-child){margin-bottom:2px;}"]),s=o.ZP.div.withConfig({componentId:"sc-fe4f0559-2"})(["color:",";",""],l.w.gray01,l.Z.body7),p=o.ZP.div.withConfig({componentId:"sc-fe4f0559-3"})(["color:",";",""],l.w.gray03,l.Z.body8),u=o.ZP.a.withConfig({componentId:"sc-fe4f0559-4"})(["display:flex;align-items:center;gap:6px;padding:12px 16px;border:1px solid ",";
1border-radius:31px;color:",";",";"],l.w.gray08,l.w.gray01,l.Z.label2)},32179:function(e,n,i){"use strict";i.d(n,{Z:function(){return a}});var t=i(85893),o=i(19521),l=i(90245),r=i(96754);function a(e){let{vendorName:n,vendorPresidentName:i,vendorBizNumber:o,vendorAddress:l,vendorEmail:a}=e;return(0,t.jsx)(r.Z,{title:"판매자 정보",children:(0,t.jsxs)(c,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(d,{children:"상호명"}),(0,t.jsx)(s,{children:n})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d,{children:"대표자"}),(0,t.jsx)(s,{children:i})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d,{children:"사업자등록번호"}),(0,t.jsx)(s,{children:o})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d,{children:"사업장 소재지"}),(0,t.jsx)(s,{children:l})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d,{children:"이메일"}),(0,t.jsx)(s,{children:a})]})]})})}let c=o.ZP.div.withConfig({componentId:"sc-d256bda9-0"})(["display:flex;flex-direction:column;gap:20px;"]),d=o.ZP.div.withConfig({componentId:"sc-d256bda9-1"})(["margin-bottom:2px;color:",";",";"],l.w.gray01,l.Z.body7),s=o.ZP.div.withConfig({componentId:"sc-d256bda9-2"})(["color:",";",";"],l.w.gray03,l.Z.body8)},78034:function(e,n,i){"use strict";i.d(n,{Lf:function(){return r},PL:function(){return a},UM:function(){return s},aS:function(){return d},nI:function(){return c},nw:function(){return l},vX:function(){return o}});var t=i(14757);let o=e=>{let{accommodationName:n,accommodationTypeName:i}=e;t.Z.events.send("airbridge.ecommerce.product.viewed",{action:n,label:i})},l=e=>{t.Z.events.send("airbridge.ecommerce.searchResults.viewed",{action:e})},r=e=>{let{accommodationName:n,accommodationTypeName:i}=e;t.Z.events.send("airbridge.initiateCheckout",{action:n,label:i})},a=e=>{let{accommodationName:n,accommodationTypeName:i,totalValue:o}=e;t.Z.events.send("airbridge.ecommerce.order.canceled",{action:n,label:i,value:Number(o)})},c=e=>{let{isFavorite:n,accommodationName:i}=e;t.Z.events.send("airbridge.addToWishlist",{action:n?"True":"False",label:i})},d=e=>{let{accommodationName:n,accommodationTypeName:i}=e;t.Z.events.send("airbridge.share",{action:n,label:i})},s=e=>{let{accommodationName:n,accommodationTypeName:i,rate:o}=e;t.Z.events.send("user_review",{action:n,label:i,value:o})}},82631:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var t=i(67204),o=i(22980);function l(e){return(0,t.default)((0,o.default)(e),"yyyy.MM.dd")}},38406:function(e,n,i){"use strict";function t(e){let n=e.match(/당일\s*예약\s*시\s*(\d+)\s*%/);if(n)return"당일 예약시 취소 수수료 ".concat(n[1],"% 부과");let i=e.match(/(\d+)\s*일\s*전\s*(\d+)\s*%/);return i?"".concat(i[1],"일전 취소 수수료 ").concat(i[2],"% 부과"):e}i.d(n,{Z:function(){return t}})}},function(e){e.O(0,[6492,5675,6127,7637,3935,1664,5767,4039,3246,8383,7169,9879,9411,5601,7428,5267,2888,9774,179],function(){return e(e.s=16862)}),_N_E=e.O()}]);

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.