PageSourceSearch

https://nolbal.com/_next/static/chunks/pages/ai-travel-plan-6ac9718d98492691.js

js nolbal.com collected 2026-10-01 15:58:09 UTC 92,020 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5959],{64470:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-travel-plan",function(){return t(63749)}])},63749:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ig}});var i,r,o=t(85893),a=t(38231),l=t(67294),s=t(67204),c=t(11163),d=t(19521),p=t(89904),u=t(991),g=t(36492),h=t(19170),f=t(47834);let w=["completed","failed","interrupted"];function m(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,g.a)({queryKey:x(e),queryFn:()=>(0,f.Z)({sessionId:e}),enabled:null!==e,refetchInterval:e=>!(e&&w.includes(e.derived_status))&&1e3*n,...t})}let x=e=>[h.up,e,"status"];m.extractKey=x;var b=t(90245),y=t(64179);let v=(0,d.iv)(["padding-right:20px;padding-left:20px;@media ","{padding-right:32px;padding-left:32px;}"],y.A.mobileL);function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}var _=function(e){return l.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:100,height:100,fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 100 100"},e),i||(i=l.createElement("g",{id:"Frame 2117908539"},l.createElement("rect",{width:100,height:100,fill:"#F0F8F8",rx:50}),l.createElement("path",{id:"\\xE2\\x9C\\x93",stroke:"#6AC1B9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6.6,d:"m36.3 50.764 9.02 9.81L63.7 39.426"}))))},k=t(28230),Z=t(51178),j=t(48862);function C(e){let{coupons:n}=e;return 0===n.length?null:(0,o.jsxs)(M,{"aria-label":"지급된 쿠폰",children:[(0,o.jsx)(D,{children:n.map(e=>(0,o.jsxs)(T,{$serviceType:e.service_type,children:[(0,o.jsxs)(R,{children:[(0,o.jsx)(Y,{children:I[e.service_type].label}),(0,o.jsxs)(L,{children:[e.is_percent?"".concat(e.discount_percent,"%"):"".concat(e.discount_amount.toLocaleString("ko-KR"),"원")," 할인 쿠폰"]})]}),(0,o.jsx)(z,{children:(0,o.jsx)(N,{children:"지급완료"})})]},e.coupon_pk))}),(0,o.jsx)(F,{children:"※ 결제 시 쿠폰 적용 화면에서 확인할 수 있습니다."})]})}let I={ALL:{background:b.w.red100,text:b.w.red900,label:"전체"},LEISURE:{background:b.w.blue100,text:"#2479e6",label:"레저"},STAY:{background:b.w.pink100,text:b.w.primaryGradientMiddle,label:"숙박"}},P=(0,d.F4)(["0%{opacity:0;animation-timing-function:linear;}25.14%{opacity:0;animation-timing-function:ease-out;}32.57%{opacity:1;animation-timing-function:linear;}100%{opacity:1;}"]),S=(0,d.F4)(["0%{transform:translateY(20px);animation-timing-function:linear;}25.14%{transform:translateY(20px);animation-timing-function:ease-out;}35.43%{transform:translateY(0);animation-timing-function:linear;}100%{transform:translateY(0);}"]),E=(0,d.F4)(["0%{opacity:0;animation-timing-function:linear;}32.29%{opacity:0;animation-timing-function:ease-out;}39.71%{opacity:1;animation-timing-function:linear;}100%{opacity:1;}"]),B=(0,d.F4)(["0%{transform:translateY(20px);animation-timing-function:linear;}32.29%{transform:translateY(20px);animation-timing-function:ease-out;}42.57%{transform:translateY(0);animation-timing-function:linear;}100%{transform:translateY(0);}"]),M=d.ZP.section.withConfig({componentId:"sc-81d24c47-0"})(["width:100%;"]),D=d.ZP.ul.withConfig({componentId:"sc-81d24c47-1"})(["display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;"]),T=d.ZP.li.withConfig({componentId:"sc-81d24c47-2"})(["display:flex;align-items:stretch;min-height:74px;--coupon-background:",";--coupon-accent:",";"," @media (prefers-reduced-motion:reduce){animation:none;}"],e=>{let{$serviceType:n}=e;return I[n].background},e=>{let{$serviceType:n}=e;return I[n].text},e=>{let{$serviceType:n}=e;return"LEISURE"===n?(0,d.iv)(["animation:"," 3500ms forwards,"," 3500ms forwards;"],P,S):"STAY"===n?(0,d.iv)(["animation:"," 3500ms forwards,"," 3500ms forwards;"],E,B):""}),R=d.ZP.div.withConfig({componentId:"sc-81d24c47-3"})(["display:flex;flex:1;flex-direction:column;justify-content:center;gap:6px;min-width:0;padding:16px 24px;border-radius:12px;background-color:var(--coupon-background);"]),Y=d.ZP.p.withConfig({componentId:"sc-81d24c47-4"})(["margin:0;color:var(--coupon-accent);"," line-height:1.4;letter-spacing:-0.02em;"],b.Z.caption4),L=d.ZP.p.withConfig({componentId:"sc-81d24c47-5"})(["margin:0;overflow:hidden;color:",";text-overflow:ellipsis;white-space:nowrap;",""],b.w.gray02,b.Z.largeTitle11),z=d.ZP.div.withConfig({componentId:"sc-81d24c47-6"})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:74px;border-radius:12px;background-color:var(--coupon-background);"]),N=d.ZP.span.withConfig({componentId:"sc-81d24c47-7"})(["color:var(--coupon-accent);"," font-weight:",";line-height:1.4;letter-spacing:-0.02em;"],b.Z.caption4,Z.Z.fontWeight.medium),F=d.ZP.p.withConfig({componentId:"sc-81d24c47-8"})(["margin:10px 0 0;color:",";font-family:",";font-weight:",";font-size:14px;line-height:1.4;letter-spacing:",";text-align:center;"],b.w.gray04,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.regular,Z.Z.letterSpacing.minus2);
1function G(e){let{coupons:n,onOpenPlan:t}=e;return(0,o.jsxs)(Q,{children:[(0,o.jsxs)(H,{children:[(0,o.jsx)(W,{children:(0,o.jsx)(U,{children:(0,o.jsx)(V,{"aria-hidden":"true",children:(0,o.jsx)(_,{})})})}),(0,o.jsx)(J,{children:"여행 일정이 완성됐어요!"}),(0,o.jsx)(X,{children:(0,o.jsx)(C,{coupons:n})})]}),(0,o.jsx)($,{children:(0,o.jsx)(ee,{type:"button",onClick:t,children:"일정 확인하기"})})]})}let O=(0,d.F4)(["0%{opacity:0;animation-timing-function:linear;}7.14%{opacity:0;animation-timing-function:ease-out;}8.57%{opacity:1;animation-timing-function:linear;}100%{opacity:1;}"]),q=(0,d.F4)(["0%{transform:scale(0.3);animation-timing-function:linear;}7.14%{transform:scale(0.3);animation-timing-function:ease-out;}13.14%{transform:scale(1.06);animation-timing-function:ease-out;}18.57%{transform:scale(1);animation-timing-function:linear;}100%{transform:scale(1);}"]),K=(0,d.F4)(["0%{transform:translateY(14px);animation-timing-function:linear;}7.14%{transform:translateY(14px);animation-timing-function:ease-out;}13.14%{transform:translateY(-9px);animation-timing-function:ease-out;}18%{transform:translateY(4px);animation-timing-function:ease-out;}22.57%{transform:translateY(-2px);animation-timing-function:ease-out;}26.86%{transform:translateY(0);animation-timing-function:linear;}100%{transform:translateY(0);}"]),Q=d.ZP.main.withConfig({componentId:"sc-b8e36b62-0"})(["display:flex;flex:1;flex-direction:column;min-height:0;overflow-y:auto;padding-bottom:calc(106px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch;"]),H=d.ZP.div.withConfig({componentId:"sc-b8e36b62-1"})(["display:flex;flex:1 0 auto;flex-direction:column;align-items:center;padding-top:110px;"]),W=d.ZP.div.withConfig({componentId:"sc-b8e36b62-2"})(["display:flex;align-items:center;justify-content:center;width:100px;height:100px;"]),U=d.ZP.div.withConfig({componentId:"sc-b8e36b62-3"})(["width:100px;height:100px;animation:"," 3500ms forwards;will-change:transform;@media (prefers-reduced-motion:reduce){animation:none;transform:translateY(0);}"],K),V=d.ZP.div.withConfig({componentId:"sc-b8e36b62-4"})(["width:100px;height:100px;animation:"," 3500ms forwards,"," 3500ms forwards;will-change:opacity,transform;svg{display:block;width:100px;height:100px;}@media (prefers-reduced-motion:reduce){animation:none;opacity:1;transform:scale(1);}"],O,q),J=d.ZP.h2.withConfig({componentId:"sc-b8e36b62-5"})(["margin:40px 0 0;padding:0 24px;color:",";font-family:",";font-weight:",";font-size:28px;line-height:1.2;letter-spacing:",";text-align:center;"],b.w.tintTertiary,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.bold,Z.Z.letterSpacing.minus2),X=d.ZP.div.withConfig({componentId:"sc-b8e36b62-6"})(["width:100%;margin-top:auto;padding:48px 20px 0;@media ","{padding-right:60px;padding-left:60px;}"],y.A.mobileL),$=d.ZP.div.withConfig({componentId:"sc-b8e36b62-7"})(["position:fixed;right:0;bottom:0;left:0;z-index:",";width:100%;max-width:500px;margin:0 auto;padding-top:24px;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));"," background-color:",";"],j.Z.footer,v,b.w.tintSecondary),ee=(0,d.ZP)(k.Z).withConfig({componentId:"sc-b8e36b62-8"})(["background-color:",";color:",";"],b.w.tintTertiary,b.w.tintSecondary);function en(e){let{isRetryPending:n,onBack:t,onRetry:i}=e;return(0,o.jsxs)(et,{children:[(0,o.jsxs)(ei,{children:[(0,o.jsx)(er,{children:"일정을 만들지 못했어요"}),(0,o.jsx)(eo,{children:"네트워크 연결을 확인한 뒤 다시 시도해주세요."}),(0,o.jsx)(ea,{children:"입력한 여행 정보는 그대로 보관됩니다."})]}),(0,o.jsxs)(el,{children:[(0,o.jsx)(k.Z,{type:"button",variant:"outlined",color:"gray",disabled:n,onClick:t,children:"이전으로"}),(0,o.jsx)(es,{type:"button",disabled:n,onClick:i,children:"다시 시도"})]})]})}let et=d.ZP.main.withConfig({componentId:"sc-73366369-0"})(["flex:1;min-height:0;overflow-y:auto;padding-bottom:calc(86px + env(safe-area-inset-bottom,0px));"]),ei=d.ZP.div.withConfig({componentId:"sc-73366369-1"})(["padding:96px 20px 40px;text-align:center;"]),er=d.ZP.h2.withConfig({componentId:"sc-73366369-2"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.headline7),eo=d.ZP.p.withConfig({componentId:"sc-73366369-3"})(["margin:12px 0 0;color:",";",""],b.w.gray04,b.Z.label5),ea=d.ZP.p.withConfig({componentId:"sc-73366369-4"})(["margin:8px 0 0;color:",";",""],b.w.gray05,b.Z.caption5),el=d.ZP.div.withConfig({componentId:"sc-73366369-5"})(["position:fixed;right:0;bottom:0;left:0;z-index:",";display:flex;gap:8px;width:100%;max-width:500px;margin:0 auto;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));background-color:",";> button{flex:1;}"],j.Z.footer,b.w.tintSecondary),es=(0,d.ZP)(k.Z).withConfig({componentId:"sc-73366369-6"})(["background-color:",";color:",";"],b.w.tintTertiary,b.w.tintSecondary);function ec(){return(ec=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}var ed=function(e){return l.createElement("svg",ec({xmlns:"http://www.w3.org/2000/svg",width:11.6,height:9.2,fill:"none",overflow:"visible",preserveAspectRatio:"none",style:{display:"block"},viewBox:"0 0 11.6 9.2"},e),r||(r=l.createElement("path",{id:"Icon",stroke:"#6AC1B9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.6 1 3.44 8.2 1 5.746"})))};function ep(e){let{progress:n,messages:t,isAllComplete:i}=e;return(0,o.jsxs)(eg,{children:[(0,o.jsx)(eh,{children:"여행 일정을 만들고 있어요"}
1),(0,o.jsx)(ef,{children:"잠시만 기다려주세요."}),(0,o.jsx)(ey,{"aria-label":"일정 생성 진행 단계",children:t.map((e,n)=>{let r=i||n<t.length-1;return(0,o.jsxs)(ev,{"aria-label":"".concat(e,", ").concat(r?"완료":"진행 중"),$isComplete:r,children:[r?(0,o.jsx)(eA,{"aria-hidden":"true",children:(0,o.jsx)(ed,{})}):(0,o.jsxs)(e_,{"aria-hidden":"true",children:[(0,o.jsx)(eZ,{$delay:0}),(0,o.jsx)(eZ,{$delay:.16}),(0,o.jsx)(eZ,{$delay:.32})]}),(0,o.jsx)(ej,{children:e})]},"".concat(e,"-").concat(n))})}),(0,o.jsxs)(ew,{role:"progressbar","aria-label":"여행 일정 생성 진행률","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:[(0,o.jsxs)(em,{"aria-hidden":"true",children:[n,"%"]}),(0,o.jsx)(ex,{$progress:n}),(0,o.jsxs)(eb,{"aria-hidden":"true",$progress:n,children:[n,"%"]})]})]})}let eu=(0,d.F4)(["from{opacity:0.35;transform:scale(0.75) rotate(-8deg);}to{opacity:1;transform:scale(1) rotate(0deg);}"]),eg=d.ZP.main.withConfig({componentId:"sc-7cc043fc-0"})(["flex:1;min-height:0;overflow-y:auto;padding:48px 20px 90px;-webkit-overflow-scrolling:touch;"]),eh=d.ZP.h2.withConfig({componentId:"sc-7cc043fc-1"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.headline7),ef=d.ZP.p.withConfig({componentId:"sc-7cc043fc-2"})(["margin:8px 0 0;color:",";",""],b.w.gray04,b.Z.label5),ew=d.ZP.section.withConfig({componentId:"sc-7cc043fc-3"})(["position:absolute;bottom:0;left:0;width:100%;height:50px;overflow:hidden;background-color:",";"],b.w.gray09),em=d.ZP.p.withConfig({componentId:"sc-7cc043fc-4"})(["position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;color:",";font-family:'Noto Sans KR',Pretendard,sans-serif;font-weight:700;font-size:16px;line-height:24px;"],b.w.tintTertiary),ex=d.ZP.div.withConfig({componentId:"sc-7cc043fc-5"})(["position:absolute;top:0;left:0;width:",";height:100%;background-image:linear-gradient( 156.461deg,#f3554b 0%,#ff0066 62.778%,#ff9705 115.89% );transition:width 200ms linear;@media (prefers-reduced-motion:reduce){transition:none;}"],e=>{let{$progress:n}=e;return"".concat(n,"%")}),eb=(0,d.ZP)(em).withConfig({componentId:"sc-7cc043fc-6"})(["color:",";clip-path:inset( 0 "," 0 0 );"],b.w.tintSecondary,e=>{let{$progress:n}=e;return"".concat(Math.max(100-n,0),"%")}),ey=d.ZP.ul.withConfig({componentId:"sc-7cc043fc-7"})(["display:flex;flex-direction:column;gap:12px;margin:60px 20px 0;padding:0;list-style:none;"]),ev=d.ZP.li.withConfig({componentId:"sc-7cc043fc-8"})(["display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 24px;border-radius:12px;background-color:",";"],e=>{let{$isComplete:n}=e;return n?b.w.green100:b.w.gray09}),eA=d.ZP.span.withConfig({componentId:"sc-7cc043fc-9"})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:24px;height:24px;animation:"," 220ms ease-out 180ms both;svg{width:11.6px;height:9.2px;}@media (prefers-reduced-motion:reduce){animation:none;opacity:1;transform:scale(1) rotate(0deg);}"],eu),e_=d.ZP.span.withConfig({componentId:"sc-7cc043fc-10"})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;gap:2px;width:24px;height:24px;"]),ek=(0,d.F4)(["0%,80%,100%{opacity:0.32;transform:scale(1);}40%{opacity:1;transform:scale(1.2);}"]),eZ=d.ZP.span.withConfig({componentId:"sc-7cc043fc-11"})(["width:4px;height:4px;border-radius:50%;background-color:",";animation:"," 1.2s ease-in-out infinite;animation-delay:",";@media (prefers-reduced-motion:reduce){animation:none;opacity:1;transform:scale(1);}"],b.w.gray05,ek,e=>{let{$delay:n}=e;return"".concat(n,"s")}),ej=d.ZP.span.withConfig({componentId:"sc-7cc043fc-12"})(["min-width:0;color:",";word-break:break-word;",""],b.w.tintTertiary,b.Z.label4);function eC(e){var n;let{sessionId:t,pollIntervalSeconds:i,initialStatusMessage:r,isRetrySessionPending:a,onClose:s,onBack:c,onRetrySession:d,onOpenPlan:p}=e,[g,h]=(0,l.useState)(0),[f,w]=(0,l.useState)(()=>r.trim().length>0?[r]:[]),[x,b]=(0,l.useState)(!1),[y,v]=(0,l.useState)(!1),{data:A,isError:_,refetch:k}=m(t,i,{enabled:x}),Z=null==A?void 0:A.derived_status,j="completed"===Z&&null!==(n=null==A?void 0:A.plan_id)&&void 0!==n?n:null,{data:C,isError:I,refetch:P}=(0,u.Z)(j,{enabled:null!==j}),S="completed"===Z,E="failed"===Z||"interrupted"===Z,B=_||S&&null===j,M=E||B||I,D=!M&&void 0!==C,T=!M&&!D;(0,l.useEffect)(()=>{let e=window.setTimeout(()=>{b(!0)},1e3*i);return()=>{window.clearTimeout(e)}},[i]),(0,l.useEffect)(()=>
1{if(!T||S)return;let e=window.setInterval(()=>{h(e=>Math.min(e+3,99))},1e3);return()=>{window.clearInterval(e)}},[T,S]),(0,l.useEffect)(()=>{if(_){b(!1);return}A&&(w(e=>{let n=e[e.length-1];return 0===A.status_message.trim().length||n===A.status_message?e:[...e,A.status_message]}),(E||S)&&b(!1),S&&h(100))},[A,_,E,S]);let R=async()=>{if(M&&!y&&!a){v(!0);try{if(E){await d();return}if(B){var e,n;let t=await k();t.isError||(null===(e=t.data)||void 0===e?void 0:e.derived_status)!=="queued"&&(null===(n=t.data)||void 0===n?void 0:n.derived_status)!=="running"||b(!0);return}I&&await P()}finally{v(!1)}}},Y=S&&null!==j;return(0,o.jsxs)(eI,{children:[(0,o.jsxs)(eP,{children:[(0,o.jsx)(eS,{children:"AI 여행 일정 만들기"}),(0,o.jsx)(eE,{type:"button","aria-label":"내 일정으로 이동",onClick:s,children:(0,o.jsx)(eB,{})})]}),T?(0,o.jsx)(ep,{progress:g,messages:f,isAllComplete:Y}):null,D&&C?(0,o.jsx)(G,{coupons:C.coupon_info,onOpenPlan:()=>{j&&p(j)}}):null,M?(0,o.jsx)(en,{isRetryPending:y||a,onBack:c,onRetry:R}):null]})}let eI=d.ZP.div.withConfig({componentId:"sc-84cb31a8-0"})(["position:relative;display:flex;flex-direction:column;width:100%;max-width:500px;height:100dvh;margin:0 auto;background-color:",";"],b.w.tintSecondary),eP=d.ZP.header.withConfig({componentId:"sc-84cb31a8-1"})(["display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding-top:32px;padding-bottom:12px;"," background-color:",";"],v,b.w.tintSecondary),eS=d.ZP.h1.withConfig({componentId:"sc-84cb31a8-2"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.largeTitle11),eE=d.ZP.button.withConfig({componentId:"sc-84cb31a8-3"})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px;margin:-4px;padding:0;color:",";&:focus-visible{border-radius:4px;outline:2px solid ",";outline-offset:2px;}"],b.w.gray03,b.w.primary),eB=(0,d.ZP)(p.aM).withConfig({componentId:"sc-84cb31a8-4"})(["width:24px;height:24px;"]);function eM(e){let{id:n,name:t,value:i,label:r,prefix:a,descriptionId:l,className:s,type:c,selectionStyle:d,checked:p,disabled:u=!1,onChange:g}=e;return(0,o.jsxs)(eD,{className:s,$disabled:u,children:[(0,o.jsx)(eT,{id:n,name:t,value:i,type:c,checked:p,disabled:u,"aria-describedby":l,onChange:g}),"filled"===d?(0,o.jsxs)(eY,{children:[a,r]}):(0,o.jsxs)(eL,{children:[a,r]})]})}let eD=d.ZP.label.withConfig({componentId:"sc-d70220ca-0"})(["display:block;width:100%;cursor:",";"],e=>{let{$disabled:n}=e;return n?"not-allowed":"pointer"}),eT=d.ZP.input.withConfig({componentId:"sc-d70220ca-1"})(["position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;&:focus-visible + span{outline:2px solid ",";outline-offset:2px;}&:disabled + span{color:",";background-color:",";}"],b.w.primary,b.w.gray06,b.w.gray09),eR=(0,d.iv)(["display:flex;align-items:center;justify-content:center;width:100%;height:58px;border:1px solid ",";border-radius:8px;background-color:",";color:",";user-select:none;",""],b.w.gray07,b.w.black,b.w.gray03,b.Z.largeTitle7),eY=d.ZP.span.withConfig({componentId:"sc-d70220ca-2"})([""," ",":not(:disabled):checked + &{border-color:",";background-color:",";color:",";","}"],eR,eT,b.w.primaryGradientMiddle,b.w.primaryGradientMiddle,b.w.tintSecondary,b.Z.largeTitle9),eL=d.ZP.span.withConfig({componentId:"sc-d70220ca-3"})([""," ",":not(:disabled):checked + &{border-color:",";color:",";","}"],eR,eT,b.w.primaryGradientMiddle,b.w.primaryGradientMiddle,b.Z.largeTitle9);function ez(e){return(0,o.jsx)(eN,{...e,type:"checkbox",selectionStyle:"outlined"})}let eN=(0,d.ZP)(eM).withConfig({componentId:"sc-92074cf4-0"})(["&&& > span,&&& > input:not(:disabled):checked + span{height:44px;padding:0 32px;","}"],b.Z.label8);function eF(e){let{order:n,...t}=e,i=(0,l.useId)(),r=void 0!==n;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eG,{...t,type:"checkbox",selectionStyle:"filled",prefix:r?(0,o.jsx)(eO,{"aria-hidden":"true",children:n}):void 0,descriptionId:r?i:void 0}),r&&(0,o.jsx)(eq,{id:i,children:"".concat(n,"번째 선택")})]})}let eG=(0,d.ZP)(eM).withConfig({componentId:"sc-b1770f30-0"})(["&&& > span,&&& > input:not(:disabled):checked + span{gap:8px;height:59px;text-align:center;","}
1"],b.Z.largeTitle11),eO=d.ZP.span.withConfig({componentId:"sc-b1770f30-1"})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;width:16px;height:16px;border-radius:10px;background-color:",";color:",";font-family:",";font-size:12px;font-weight:",";line-height:1.4;letter-spacing:",";"],b.w.pink100,b.w.primaryGradientMiddle,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.semiBold,Z.Z.letterSpacing.minus2),eq=d.ZP.span.withConfig({componentId:"sc-b1770f30-2"})(["position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;"]);function eK(e){return(0,o.jsx)(eM,{...e,type:"radio",selectionStyle:"filled"})}var eQ=t(83009);function eH(e){let{isLoading:n,isError:t,loadingLabel:i,errorText:r,onRetry:a}=e;return n?(0,o.jsx)(eW,{"aria-label":i,children:(0,o.jsx)(eQ.Z,{})}):t?(0,o.jsxs)(eW,{children:[(0,o.jsx)(eU,{children:r}),(0,o.jsx)(eV,{type:"button",variant:"outlined",color:"gray",onClick:a,children:"다시 시도"})]}):null}let eW=d.ZP.div.withConfig({componentId:"sc-3e6f44d8-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:40px 0;"]),eU=d.ZP.p.withConfig({componentId:"sc-3e6f44d8-1"})(["margin:0;color:",";",""],b.w.gray03,b.Z.title4),eV=(0,d.ZP)(k.Z).withConfig({componentId:"sc-3e6f44d8-2"})(["width:160px;"]);function eJ(e){let{title:n,currentStep:t,totalSteps:i,isEditMode:r=!1,onBack:a}=e,l=i<=0?0:Math.min(Math.max(t/i*100,0),100);return(0,o.jsxs)(eX,{children:[(0,o.jsxs)(e$,{children:[!r&&(0,o.jsx)(e0,{type:"button","aria-label":"이전 단계로 이동",onClick:a,children:(0,o.jsx)(p.wy,{})}),(0,o.jsx)(e1,{$isCentered:r,children:n}),!r&&(0,o.jsxs)(e2,{"aria-label":"전체 ".concat(i,"단계 중 ").concat(t,"단계"),children:[t," / ",i]})]}),!r&&(0,o.jsx)(e4,{role:"progressbar","aria-valuemin":0,"aria-valuemax":i,"aria-valuenow":t,"aria-label":"여행 일정 입력 진행률",children:(0,o.jsx)(e3,{$progressPercent:l})})]})}let eX=d.ZP.header.withConfig({componentId:"sc-17500ea4-0"})(["width:100%;"," background-color:",";"],v,b.w.black),e$=d.ZP.div.withConfig({componentId:"sc-17500ea4-1"})(["display:flex;align-items:center;height:64px;"]),e0=d.ZP.button.withConfig({componentId:"sc-17500ea4-2"})(["display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin-left:-8px;padding:0;color:",";&:focus-visible{border-radius:4px;outline:2px solid ",";outline-offset:2px;}svg{width:24px;height:24px;}"],b.w.white,b.w.primary),e1=d.ZP.h1.withConfig({componentId:"sc-17500ea4-3"})(["margin:",";flex:",";color:",";text-align:",";",""],e=>{let{$isCentered:n}=e;return n?"0":"0 0 0 12px"},e=>{let{$isCentered:n}=e;return n?"1":"initial"},b.w.white,e=>{let{$isCentered:n}=e;return n?"center":"left"},b.Z.largeTitle6),e2=d.ZP.span.withConfig({componentId:"sc-17500ea4-4"})(["margin-left:auto;color:",";",""],b.w.gray05,b.Z.title6),e4=d.ZP.div.withConfig({componentId:"sc-17500ea4-5"})(["width:100%;height:4px;overflow:hidden;border-radius:2px;background-color:",";"],b.w.gray08),e3=d.ZP.div.withConfig({componentId:"sc-17500ea4-6"})(["width:",";height:100%;border-radius:inherit;background-color:",";"],e=>{let{$progressPercent:n}=e;return"".concat(n,"%")},b.w.primaryGradientMiddle);function e5(e){let{headerTitle:n,currentStep:t,totalSteps:i,question:r,description:a,ctaLabel:l,isNextDisabled:s,isEditMode:c=!1,children:d,onBack:p,onNext:u,onCancel:g}=e;return(0,o.jsxs)(e8,{onSubmit:e=>{e.preventDefault(),s||u()},children:[(0,o.jsx)(eJ,{title:n,currentStep:t,totalSteps:i,isEditMode:c,onBack:p}),(0,o.jsxs)(e6,{children:[(0,o.jsx)(e7,{children:r}),(0,o.jsx)(e9,{children:a}),(0,o.jsx)(ne,{children:d})]}),(0,o.jsxs)(nn,{children:[c&&(0,o.jsx)(nt,{type:"button",variant:"outlined",color:"gray",onClick:g,children:"취소"}),(0,o.jsx)(ni,{type:"submit",disabled:s,children:l})]})]})}let e8=d.ZP.form.withConfig({componentId:"sc-51f04f18-0"})(["display:flex;flex-direction:column;width:100%;max-width:500px;height:100dvh;margin:0 auto;background-color:",";"],b.w.tintSecondary),e6=d.ZP.main.withConfig({componentId:"sc-51f04f18-1"})(["flex:1;min-height:0;overflow-y:auto;padding:36px 0 40px;"," -webkit-overflow-scrolling:touch;"],v),e7=d.ZP.h2.withConfig({componentId:"sc-51f04f18-2"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.headline7),e9=d.ZP.p.withConfig({componentId:"sc-51f04f18-3"})(["margin:8px 0 0;color:",";",""],b.w.gray04,b.Z.label5),ne=d.ZP.div.withConfig({componentId:"sc-51f04f18-4"})(["margin-top:40px;"]),nn=d.ZP.div.withConfig({componentId:"sc-51f04f18-5"})(["display:flex;flex-shrink:0;gap:12px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));"," background-color:",";"],v,b.w.tintSecondary),nt=(0,d.ZP)(k.Z).withConfig({componentId:"sc-51f04f18-6"})(["flex:1;"]),ni=(0,d.ZP)(k.Z).withConfig({componentId:"sc-51f04f18-7"})(["flex:1;background-color:",";color:",";&:disabled{background-color:",";color:",";}"],b.w.tintTertiary,b.w.tintSecondary,b.w.gray07,b.w.gray05);function nr(e){let{headerTitle:n,regions:t,selectedRegionId:i,isLoading:r,isError:a,currentStep:s,totalSteps:c,isNextPending:d,ctaLabel:p="다음",isEditMode:u,onCh
1ange:g,onBack:h,onNext:f,onCancel:w,onRetry:m}=e,x=(0,l.useId)();return(0,o.jsx)(e5,{headerTitle:n,currentStep:s,totalSteps:c,question:"어디에서 출발하세요?",description:"출발할 지역을 골라주세요.",ctaLabel:p,isNextDisabled:r||a||null===i||d,isEditMode:u,onBack:h,onNext:f,onCancel:w,children:(0,o.jsxs)(no,{"aria-labelledby":"departure-region-title",children:[(0,o.jsx)(na,{id:"departure-region-title",children:"출발지"}),(0,o.jsx)(eH,{isLoading:r,isError:a,loadingLabel:"출발지 정보 불러오는 중",errorText:"출발지 정보를 불러오지 못했습니다.",onRetry:m}),!r&&!a&&(0,o.jsx)(nl,{children:t.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(eK,{id:"".concat(x,"-").concat(e.id),name:"departure-region",value:e.id,label:e.name,checked:i===e.id,onChange:()=>g(e.id)})},e.id))})]})})}let no=d.ZP.section.withConfig({componentId:"sc-72a9d180-0"})([""]),na=d.ZP.h3.withConfig({componentId:"sc-72a9d180-1"})(["margin:0 0 16px;color:",";",""],b.w.tintTertiary,b.Z.largeTitle6),nl=d.ZP.ul.withConfig({componentId:"sc-72a9d180-2"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;"]);function ns(e){let{regions:n,inputName:t,selectionType:i,selectedRegionIds:r,isSelectionLimitReached:a=!1,onChange:s}=e,c=(0,l.useId)();return(0,o.jsx)(nc,{children:n.map(e=>{let n=r.includes(e.districtId),l={id:"".concat(c,"-").concat(e.districtId),name:t,value:String(e.districtId),label:e.name,checked:n,onChange:()=>s(e.districtId)};return"multiple"===i?(0,o.jsx)("li",{children:(0,o.jsx)(eF,{...l,order:n?r.indexOf(e.districtId)+1:void 0,disabled:a&&!n})},e.districtId):(0,o.jsx)("li",{children:(0,o.jsx)(eK,{...l})},e.districtId)})})}let nc=d.ZP.ul.withConfig({componentId:"sc-85609b95-0"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;"]);function nd(e){let{headerTitle:n,regions:t,departureName:i,selectedRegionIds:r,isLoading:a,isError:l,currentStep:s,totalSteps:c,isNextPending:d,ctaLabel:p="다음",isEditMode:u,onChange:g,onBack:h,onNext:f,onCancel:w,onRetry:m,onEditDeparture:x}=e,b=r.length>=3;return(0,o.jsxs)(e5,{headerTitle:n,currentStep:s,totalSteps:c,question:"어디로 떠날까요?",description:"지역을 몰라도 장소나 동네로 찾을 수 있어요.",ctaLabel:p,isNextDisabled:a||l||0===r.length||d,isEditMode:u,onBack:h,onNext:f,onCancel:w,children:[(0,o.jsxs)(np,{"aria-labelledby":"selected-departure-title",children:[(0,o.jsx)(nu,{id:"selected-departure-title",children:"출발지"}),(0,o.jsx)(ng,{type:"button","aria-label":"출발지 ".concat(i," 변경"),onClick:x,children:i})]}),(0,o.jsxs)("section",{"aria-labelledby":"destination-region-title",children:[(0,o.jsxs)(nh,{children:[(0,o.jsx)(nu,{id:"destination-region-title",children:"도착지"}
1),(0,o.jsx)(nf,{children:"최대 3개 지역 선택 가능"})]}),(0,o.jsx)(eH,{isLoading:a,isError:l,loadingLabel:"도착지 정보 불러오는 중",errorText:"도착지 정보를 불러오지 못했습니다.",onRetry:m}),!a&&!l&&(0,o.jsx)(ns,{regions:t,inputName:"destination-region",selectionType:"multiple",selectedRegionIds:r,isSelectionLimitReached:b,onChange:e=>{if(r.includes(e)){g(r.filter(n=>n!==e));return}b||g([...r,e])}})]})]})}let np=d.ZP.section.withConfig({componentId:"sc-759e9e9d-0"})(["margin-bottom:36px;"]),nu=d.ZP.h3.withConfig({componentId:"sc-759e9e9d-1"})(["margin:0 0 16px;color:",";",""],b.w.tintTertiary,b.Z.largeTitle10),ng=d.ZP.button.withConfig({componentId:"sc-759e9e9d-2"})(["width:100%;margin:0;padding:20px 24px;border:0;border-radius:12px;background-color:",";color:",";text-align:left;font-family:",";font-size:16px;font-weight:",";line-height:1.2;letter-spacing:",";&:focus-visible{outline:2px solid ",";outline-offset:2px;}"],b.w.gray09,b.w.gray03,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.medium,Z.Z.letterSpacing.minus2,b.w.primary),nh=d.ZP.div.withConfig({componentId:"sc-759e9e9d-3"})(["display:flex;align-items:center;gap:8px;margin-bottom:16px;","{margin-bottom:0;}"],nu),nf=d.ZP.span.withConfig({componentId:"sc-759e9e9d-4"})(["color:",";font-family:",";font-size:14px;font-weight:",";line-height:1.4;letter-spacing:",";"],b.w.gray04,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.regular,Z.Z.letterSpacing.minus2);var nw=t(10154),nm=t(97930),nx=t(87633),nb=t(80258),ny=t(89769),nv=t(9905),nA=t(69447),n_=t(24002),nk=t(2886),nZ=t(30831),nj=t(10084),nC=t(58301),nI=t(35945);function nP(e,n,t){return!n||!t||e<=(0,nI.default)(t,n)+1}function nS(e){let{monthDate:n,isPrevDisabled:t,isNextDisabled:i,onClickPrev:r,onClickNext:a}=e;return(0,o.jsxs)(nE,{children:[(0,o.jsx)(nB,{children:(0,s.default)(n,"yyyy년 M월")}),(0,o.jsxs)(nM,{children:[(0,o.jsx)(nD,{type:"button","aria-label":"이전 달",disabled:t,onClick:r,children:(0,o.jsx)(p.wy,{})}),(0,o.jsx)(nD,{type:"button","aria-label":"다음 달",disabled:i,onClick:a,children:(0,o.jsx)(p.XC,{})})]})]})}let nE=d.ZP.div.withConfig({componentId:"sc-67bc9526-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;"]),nB=d.ZP.span.withConfig({componentId:"sc-67bc9526-1"})(["color:",";font-family:Pretendard,sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:-0.02em;"],b.w.gray01),nM=d.ZP.div.withConfig({componentId:"sc-67bc9526-2"})(["display:flex;gap:16px;"]),nD=d.ZP.button.withConfig({componentId:"sc-67bc9526-3"})(["display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background-color:transparent;color:",";stroke-width:1.5;cursor:pointer;&:disabled{color:",";stroke-width:1;cursor:default;}svg{width:24px;height:24px;}"],b.w.tintTertiary,b.w.gray06);var nT=t(495);let nR="yy/MM/dd(EEE)";function nY(e,n){if(!e)return"날짜를 선택해 주세요";let t=(0,s.default)(e,nR,{locale:nT.Z});if(!n)return"".concat(t," ~ 도착일을 선택해 주세요");let i=(0,s.default)(n,nR,{locale:nT.Z});return"".concat(t," ~ ").concat(i)}function nL(e){let{startDate:n,endDate:t,destinationCount:i,currentStep:r,totalSteps:a,isNextPending:c,ctaLabel:d="다음",isEditMode:p=!1,onChange:u,onBack:g,onNext:h,onCancel:f}=e,{openToastMessage:w}=(0,nj.Z)(),{data:m=[]}=(0,nC.Z)(),x=new Date,b=(0,nw.default)((0,nm.default)(x,5)),y=n?(0,nx.default)(n,6):null,v=y&&y<b?y:b,A=Array.from({length:6},(e,n)=>(0,nb.default)((0,nm.default)(x,n))),_=A.length-1,[k]=(0,l.useState)(()=>n?Math.min(Math.max((0,ny.default)(n,x),0),_):0),[Z,j]=(0,l.useState)(k),[C,I]=(0,l.useState)(),P=new Set(m.map(e=>{let{date:n}=e;return n})),S=e=>{let i=[];return P.has((0,s.default)(e,"yyyy-MM-dd"))&&i.push("react-datepicker__day--travel-period-holiday"),n&&!t&&(0,nv.default)(e,n)&&i.push("react-datepicker__day--travel-period-start"),i.join(" ")},E=!!(n&&t),B=!E||c,M=e=>{let[i,r]=e;if(n&&t&&(0,nv.default)(n,t)&&i&&!r&&(0,nv.default)(i,n)){u([null,
1null]);return}let{range:o,isExceeded:a}=function(e){let[n,t]=e;return n&&t&&(0,nI.default)(t,n)+1>7?{range:[n,null],isExceeded:!0}:{range:[n,t],isExceeded:!1}}(e);a&&w("최대 7일 까지 선택 가능합니다."),u(o)};return(0,o.jsxs)(nz,{onSubmit:e=>{if(e.preventDefault(),!B&&n&&t){if(!nP(i,n,t)){w("여행 기간에 맞게 도착지 수를 줄여주세요.");return}h()}},children:[(0,o.jsx)(eJ,{title:"AI 여행 일정 만들기",currentStep:r,totalSteps:a,isEditMode:p,onBack:g}),(0,o.jsxs)(nN,{children:[(0,o.jsx)(nF,{children:"언제 떠나시나요?"}),(0,o.jsx)(nG,{children:"출발일과 도착일을 선택해 주세요."}),(0,o.jsxs)(nO,{children:[(0,o.jsx)(nS,{monthDate:A[Z],isPrevDisabled:0===Z,isNextDisabled:Z===_,onClickPrev:()=>null==C?void 0:C.slidePrev(),onClickNext:()=>null==C?void 0:C.slideNext()}),(0,o.jsx)(nZ.Z,{width:"100%",height:"auto",backgroundColor:"transparent",children:(0,o.jsx)(nA.t,{autoHeight:!0,spaceBetween:24,threshold:20,touchAngle:30,initialSlide:k,onSwiper:I,onSlideChange:e=>{let{activeIndex:n}=e;return j(n)},children:A.map(e=>(0,o.jsx)(n_.o,{children:(0,o.jsx)(nk.Z,{inline:!0,startDate:n,endDate:t,openToDate:e,minDate:x,maxDate:v,dayClassName:S,onChange:M,renderCustomHeader:()=>null})},e.getTime()))})})]}),(0,o.jsxs)(nq,{children:[(0,o.jsx)(nK,{children:"여행 기간"}),(0,o.jsx)(nQ,{$isComplete:E,children:nY(n,t)})]})]}),(0,o.jsxs)(nH,{children:[p&&(0,o.jsx)(nW,{type:"button",variant:"outlined",color:"gray",onClick:f,children:"취소"}),(0,o.jsx)(nU,{type:"submit",disabled:B,children:d})]})]})}let nz=d.ZP.form.withConfig({componentId:"sc-77e749d4-0"})(["display:flex;flex-direction:column;width:100%;max-width:500px;height:100dvh;margin:0 auto;background-color:",";"],b.w.tintSecondary),nN=d.ZP.main.withConfig({componentId:"sc-77e749d4-1"})(["flex:1;min-height:0;overflow-y:auto;padding:36px 0 40px;"," -webkit-overflow-scrolling:touch;"],v),nF=d.ZP.h2.withConfig({componentId:"sc-77e749d4-2"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.headline7),nG=d.ZP.p.withConfig({componentId:"sc-77e749d4-3"})(["margin:8px 0 0;color:",";",""],b.w.gray04,b.Z.label5),nO=d.ZP.div.withConfig({componentId:"sc-77e749d4-4"})(["margin-top:40px;.react-datepicker{width:100%;padding:0;border:0;border-radius:0;box-shadow:none;background-color:",";font-family:Pretendard,sans-serif;}.react-datepicker__month-container{float:none;width:100%;}.react-datepicker__header{display:flex;flex-direction:column;gap:32px;padding:0;border:0;border-radius:0;background-color:"," !important;}.react-datepicker__month{display:flex;flex-direction:column;gap:32px;min-height:0;margin:32px 0 0;}.react-datepicker__day-names,.react-datepicker__week{display:grid;grid-template-columns:repeat(7,1fr);width:100%;}.react-datepicker__day-names{margin:0;color:",";}.react-datepicker__day-name{display:flex;align-items:center;justify-content:center;width:auto;margin:0 !important;background-color:transparent;color:",";font-family:Pretendard,sans-serif;font-size:12px !important;font-weight:600;line-height:16.8px;letter-spacing:-0.02em;}.react-datepicker__day{position:relative;z-index:0;display:flex;align-items:center;justify-content:center;width:auto;height:40px;margin:0 !important;border-radius:20px;outline:none;background-color:transparent;color:",";font-family:Pretendard,sans-serif;font-size:14px !important;font-weight:500;line-height:19.6px;letter-spacing:-0.02em;cursor:pointer;isolation:isolate;}.react-datepicker__day--keyboard-selected{background-color:transparent;color:",";}.react-datepicker__day--weekend{color:",";}.react-datepicker__day--travel-period-holiday{color:",";}.react-datepicker__day--today{color:",";font-weight:500;&::after{content:none;}}.react-datepicker__day--disabled,.react-datepicker__day--disabled.react-datepicker__day--weekend{background-color:transparent;color:",";cursor:default;}.react-datepicker__day--outside-month{visibility:hidden;pointer-events:none;}.react-datepicker__day--in-range:not(.react-datepicker__day--outside-month){border-radius:0;background-color:transparent;color:",";}.react-datepicker__day--in-range:not( .react-datepicker__day--outside-month )::before{content:'';position:absolute;z-index:-2;inset:0;background-color:",";}.react-datepicker__day--travel-period-start,.react-datepicker__day--range-start:not( .react-datepicker__day--outside-month ),.react-datepicker__day--selecting-range-start:not( .react-datepicker__day--outside-month ),.react-datepicker__day--range-end:not
1(.react-datepicker__day--outside-month){border-radius:50%;background-color:transparent;color:",";&::after{content:'';position:absolute;z-index:-1;top:50%;left:50%;width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%;background-color:",";}}.react-datepicker__day--range-start:not( .react-datepicker__day--range-end )::before{left:50%;}.react-datepicker__day--range-end:not( .react-datepicker__day--range-start )::before{right:50%;}.react-datepicker__day--range-start.react-datepicker__day--range-end::before{content:none;}"],b.w.tintSecondary,b.w.tintSecondary,b.w.gray01,b.w.gray01,b.w.gray01,b.w.gray01,b.w.primaryGradientMiddle,b.w.primaryGradientMiddle,b.w.gray01,b.w.gray06,b.w.gray01,b.w.pink100,b.w.tintSecondary,b.w.primaryGradientMiddle),nq=d.ZP.div.withConfig({componentId:"sc-77e749d4-5"})(["display:flex;flex-direction:column;gap:12px;margin-top:24px;"]),nK=d.ZP.h3.withConfig({componentId:"sc-77e749d4-6"})(["margin:0;color:",";font-family:Pretendard,sans-serif;font-size:18px;font-weight:700;line-height:21.6px;letter-spacing:-0.02em;"],b.w.tintTertiary),nQ=d.ZP.p.withConfig({componentId:"sc-77e749d4-7"})(["box-sizing:border-box;width:100%;margin:0;padding:16px 24px;border:1px solid ",";border-radius:12px;background-color:",";color:",";font-family:Pretendard,sans-serif;font-size:16px;font-weight:500;line-height:19.2px;letter-spacing:-0.02em;"],b.w.primaryGradientMiddle,b.w.tintSecondary,e=>{let{$isComplete:n}=e;return n?b.w.gray01:b.w.gray05}),nH=d.ZP.div.withConfig({componentId:"sc-77e749d4-8"})(["display:flex;flex-shrink:0;gap:12px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));"," background-color:",";"],v,b.w.tintSecondary),nW=(0,d.ZP)(k.Z).withConfig({componentId:"sc-77e749d4-9"})(["flex:1;"]),nU=(0,d.ZP)(k.Z).withConfig({componentId:"sc-77e749d4-10"})(["flex:1;background-color:",";color:",";&:disabled{background-color:",";color:",";}"],b.w.tintTertiary,b.w.tintSecondary,b.w.gray07,b.w.gray05),nV=[{type:"CHILD",label:"아이"},{type:"PARENT",label:"부모님"},{type:"SPOUSE",label:"배우자"},{type:"PARTNER",label:"연인"},{type:"FRIEND",label:"친구"},{type:"ALONE",label:"혼자"}];function nJ(e){let{selectedCompanions:n,onToggleCompanion:t}=e,i=(0,l.useId)();return(0,o.jsx)(nX,{children:nV.map(e=>{let r=n.includes(e.type);return(0,o.jsx)("li",{children:(0,o.jsx)(ez,{id:"".concat(i,"-").concat(e.type),name:"companion",value:e.type,label:e.label,checked:r,onChange:()=>t(e.type)})},e.type)})})}let nX=d.ZP.ul.withConfig({componentId:"sc-a67a81df-0"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;"]);function n$(e){let{headerTitle:n,currentStep:t,totalSteps:i,question:r,description:a,ctaLabel:l,isNextDisabled:s,isEditMode:c=!1,children:d,onBack:p,onNext:u,onCancel:g}=e;return(0,o.jsxs)(n0,{onSubmit:e=>{e.preventDefault(),s||u()},children:[(0,o.jsx)(eJ,{title:n,currentStep:t,totalSteps:i,isEditMode:c,onBack:p}),(0,o.jsxs)(n1,{children:[(0,o.jsx)(n2,{children:r}),(0,o.jsx)(n4,{children:a}),(0,o.jsx)(n3,{children:d})]}),(0,o.jsxs)(n5,{children:[c&&(0,o.jsx)(n8,{type:"button",variant:"outlined",color:"gray",onClick:g,children:"취소"}),(0,o.jsx)(n6,{type:"submit",disabled:s,children:l})]})]})}let n0=d.ZP.form.withConfig({componentId:"sc-2dccd43a-0"})(["display:flex;flex-direction:column;width:100%;max-width:500px;height:100dvh;margin:0 auto;background-color:",";"],b.w.tintSecondary),n1=d.ZP.main.withConfig({componentId:"sc-2dccd43a-1"})(["flex:1;min-height:0;overflow-y:auto;padding:36px 0 40px;"," -webkit-overflow-scrolling:touch;"],v),n2=d.ZP.h2.withConfig({componentId:"sc-2dccd43a-2"})(["margin:0;color:",";"," font-size:28px;line-height:1.2;letter-spacing:-0.02em;"],b.w.tintTertiary,b.Z.headline7),n4=d.ZP.p.withConfig({componentId:"sc-2dccd43a-3"})(["margin:8px 0 0;color:",";"," line-height:1.4;letter-spacing:-0.02em;"],b.w.gray04,b.Z.label5),n3=d.ZP.div.withConfig({componentId:"sc-2dccd43a-4"})(["margin-top:40px;"]),n5=d.ZP.div.withConfig({componentId:"sc-2dccd43a-5"})(["display:flex;flex-shrink:0;gap:12px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));"," background-color:",";"],v,b.w.tintSecondary),n8=(0,d.ZP)(k.Z).withConfig({componentId:"sc-2dccd43a-6"})(["flex:1;"]),n6=(0,d.ZP)(k.Z).withConfig({componentId:"sc-2dccd43a-7"})(["flex:1;background-color:",";color:",";&:disabled{background-color:",";color:",";}"],b.w.tintTertiary,b.w.tintSecondary,b.w.gray07,b.w.gray05);var n7=t(72056);function n9(e){let{adultCount:n,childCount:t,hasChild:i,isAdultCountLocked:r=!1,onIncreaseAdultCount:a,onDecreaseAdultCount:l,onIncreaseChildCount:s,onDecreaseChildCount:c}=e;return(0,o.jsxs)(te,{"aria-labelledby":"travel-headcount-title",children:[(0,o.jsx)(tn,{id:"travel-headcount-title",children:"여행 인원"}),(0,o.jsxs)(tt,{children:[(0,o.jsx)(ti,{role:"group","aria-labelledby":"adult-headcount-label",children:(0,o.jsx)(tr,{step:n,disabledDecrease:r||n<=1,disabledIncrease:r||n>
1=50,decreaseButtonAriaLabel:"대인 1명 감소",increaseButtonAriaLabel:"대인 1명 증가",onClickIncreaseButton:a,onClickDecreaseButton:l,children:(0,o.jsxs)(to,{children:[(0,o.jsx)(ta,{id:"adult-headcount-label",children:"대인"}),(0,o.jsx)(tl,{children:"만 19세 이상"})]})})}),i?(0,o.jsx)(ti,{role:"group","aria-labelledby":"child-headcount-label",children:(0,o.jsx)(tr,{step:t,disabledDecrease:t<=0,disabledIncrease:t>=50,decreaseButtonAriaLabel:"소인 1명 감소",increaseButtonAriaLabel:"소인 1명 증가",onClickIncreaseButton:s,onClickDecreaseButton:c,children:(0,o.jsxs)(to,{children:[(0,o.jsx)(ta,{id:"child-headcount-label",children:"소인"}),(0,o.jsx)(tl,{children:"만 18세 미만"})]})})}):null]})]})}let te=d.ZP.section.withConfig({componentId:"sc-958945af-0"})(["margin-top:32px;"]),tn=d.ZP.h3.withConfig({componentId:"sc-958945af-1"})(["margin:0 0 12px;color:",";",""],b.w.tintTertiary,b.Z.largeTitle10),tt=d.ZP.div.withConfig({componentId:"sc-958945af-2"})(["display:flex;flex-direction:column;gap:12px;"]),ti=d.ZP.div.withConfig({componentId:"sc-958945af-3"})(["padding:20px 24px;border:1px solid ",";border-radius:12px;"],b.w.gray07),tr=(0,d.ZP)(n7.Z).withConfig({componentId:"sc-958945af-4"})(["align-items:center;width:100%;> div{gap:16px;width:auto;color:",";}> div > button{justify-content:center;width:24px;height:24px;padding:0;color:",";}> div > button > svg{width:14px;height:14px;}> div > button > svg > *{stroke-width:3;}> div > span{color:",";","}"],b.w.white,b.w.white,b.w.white,b.Z.label7),to=d.ZP.div.withConfig({componentId:"sc-958945af-5"})(["display:flex;flex-direction:column;gap:4px;"]),ta=d.ZP.span.withConfig({componentId:"sc-958945af-6"})(["color:",";",""],b.w.tintTertiary,b.Z.largeTitle11),tl=d.ZP.span.withConfig({componentId:"sc-958945af-7"})(["color:",";",""],b.w.gray04,b.Z.caption12);function ts(e){let{headerTitle:n,selectedCompanions:t,adultCount:i,childCount:r,currentStep:a,totalSteps:l,isNextPending:s,ctaLabel:c="다음",isEditMode:d,onToggleCompanion:p,onIncreaseAdultCount:u,onDecreaseAdultCount:g,onIncreaseChildCount:h,onDecreaseChildCount:f,onBack:w,onNext:m,onCancel:x}=e,b=t.length>0,y=t.includes("CHILD"),v=t.includes("ALONE");return(0,o.jsxs)(n$,{headerTitle:n,currentStep:a,totalSteps:l,question:"여행 인원은 어떻게 되나요?",description:"여행하는 사람을 선택해 주세요.",ctaLabel:c,isNextDisabled:!b||i<1||s,isEditMode:d,onBack:w,onNext:m,onCancel:x,children:[(0,o.jsx)(nJ,{selectedCompanions:t,onToggleCompanion:p}),b&&(0,o.jsx)(n9,{adultCount:i,childCount:r,hasChild:y,isAdultCountLocked:v,onIncreaseAdultCount:u,onDecreaseAdultCount:g,onIncreaseChildCount:h,onDecreaseChildCount:f})]})}function tc(e){let{categories:n,selectedCategoryIds:t,onToggleCategory:i}=e,r=(0,l.useId)();return(0,o.jsx)(td,{children:n.map(e=>{let n=t.includes(e.id);return(0,o.jsx)("li",{children:(0,o.jsx)(ez,{id:"".concat(r,"-").concat(e.id),name:"preference",value:String(e.id),label:e.label,checked:n,onChange:()=>i(e.id)})},e.id)})})}let td=d.ZP.ul.withConfig({componentId:"sc-2db3ad4f-0"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;"]);function tp(e){let{headerTitle:n,currentStep:t,totalSteps:i,question:r,description:a,ctaLabel:l,isNextDisabled:s,isEditMode:c=!1,children:d,onBack:p,onNext:u,onCancel:g}=e;return(0,o.jsxs)(tu,{onSubmit:e=>{e.preventDefault(),s||u()},children:[(0,o.jsx)(eJ,{title:n,currentStep:t,totalSteps:i,isEditMode:c,onBack:p}),(0,o.jsxs)(tg,{children:[(0,o.jsx)(th,{children:r}),(0,o.jsx)(tf,{children:a}),(0,o.jsx)(tw,{children:d})]}),(0,o.jsxs)(tm,{children:[c&&(0,o.jsx)(tx,{type:"button",variant:"outlined",color:"gray",onClick:g,children:"취소"}),(0,o.jsx)(tb,{type:"submit",disabled:s,children:l})]})]})}let tu=d.ZP.form.withConfig({componentId:"sc-370445eb-0"})(["display:flex;flex-direction:column;width:100%;max-width:500px;height:100dvh;margin:0 auto;background-color:",";"],b.w.tintSecondary),tg=d.ZP.main.withConfig({componentId:"sc-370445eb-1"})(["flex:1;min-height:0;overflow-y:auto;padding:36px 0 40px;"," -webkit-overflow-scrolling:touch;"],v),th=d.ZP.h2.withConfig({componentId:"sc-370445eb-2"})(["margin:0;color:",";
1",""],b.w.tintTertiary,b.Z.headline7),tf=d.ZP.p.withConfig({componentId:"sc-370445eb-3"})(["margin:8px 0 0;color:",";",""],b.w.gray04,b.Z.label5),tw=d.ZP.div.withConfig({componentId:"sc-370445eb-4"})(["margin-top:40px;"]),tm=d.ZP.div.withConfig({componentId:"sc-370445eb-5"})(["display:flex;flex-shrink:0;gap:12px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));"," background-color:",";"],v,b.w.tintSecondary),tx=(0,d.ZP)(k.Z).withConfig({componentId:"sc-370445eb-6"})(["flex:1;"]),tb=(0,d.ZP)(k.Z).withConfig({componentId:"sc-370445eb-7"})(["flex:1;background-color:",";color:",";&:disabled{background-color:",";color:",";}"],b.w.tintTertiary,b.w.tintSecondary,b.w.gray07,b.w.gray05);function ty(e){let{headerTitle:n,categories:t,selectedCategoryIds:i,currentStep:r,totalSteps:a,isNextPending:l,ctaLabel:s="다음",isEditMode:c,onToggleCategory:d,onBack:p,onNext:u,onCancel:g}=e,h=0===i.length||l;return(0,o.jsx)(tp,{headerTitle:n,currentStep:r,totalSteps:a,question:"어떤 여행을 즐기고 싶나요?",description:"즐기고 싶은 여행을 모두 선택해 주세요.",ctaLabel:s,isNextDisabled:h,isEditMode:c,onBack:p,onNext:u,onCancel:g,children:(0,o.jsx)(tc,{categories:t,selectedCategoryIds:i,onToggleCategory:d})})}function tv(e){let{summaryItems:n}=e;return(0,o.jsx)(tA,{children:n.map(e=>(0,o.jsxs)(t_,{children:[(0,o.jsxs)(tk,{children:[(0,o.jsx)(tZ,{children:e.label}),Array.isArray(e.value)?(0,o.jsx)(tC,{children:e.value.map((n,t)=>(0,o.jsxs)(tI,{children:[(0,o.jsx)(tP,{children:n}),t<e.value.length-1&&(0,o.jsx)(tS,{"aria-hidden":"true"})]},"".concat(n,"-").concat(t)))}):(0,o.jsx)(tj,{children:e.value})]}),(0,o.jsx)(tE,{type:"button",onClick:e.onChange,children:"변경"})]},e.label))})}let tA=d.ZP.ul.withConfig({componentId:"sc-58373895-0"})(["display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none;"]),t_=d.ZP.li.withConfig({componentId:"sc-58373895-1"})(["display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-radius:12px;background-color:",";"],b.w.gray09),tk=d.ZP.div.withConfig({componentId:"sc-58373895-2"})(["display:flex;flex-direction:column;gap:8px;min-width:0;"]),tZ=d.ZP.p.withConfig({componentId:"sc-58373895-3"})(["margin:0;color:",";font-family:",";font-size:12px;font-weight:",";line-height:1.4;letter-spacing:",";"],b.w.gray04,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.regular,Z.Z.letterSpacing.minus2),tj=d.ZP.p.withConfig({componentId:"sc-58373895-4"})(["margin:0;overflow:hidden;color:",";text-overflow:ellipsis;white-space:nowrap;font-family:",";font-size:16px;font-weight:",";line-height:1.2;letter-spacing:",";"],b.w.tintTertiary,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.bold,Z.Z.letterSpacing.minus2),tC=(0,d.ZP)(tj).withConfig({componentId:"sc-58373895-5"})(["display:flex;align-items:center;gap:4px;"]),tI=d.ZP.span.withConfig({componentId:"sc-58373895-6"})(["display:flex;flex-shrink:1;align-items:center;gap:4px;min-width:0;"]),tP=d.ZP.span.withConfig({componentId:"sc-58373895-7"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),tS=(0,d.ZP)(p.XC).withConfig({componentId:"sc-58373895-8"})(["flex-shrink:0;width:16px;height:16px;color:",";"],b.w.gray04),tE=d.ZP.button.withConfig({componentId:"sc-58373895-9"})(["flex-shrink:0;padding:0;border:0;background:none;color:",";cursor:pointer;font-family:",";font-size:12px;font-weight:",";line-height:1.4;letter-spacing:",";text-decoration:underline;"],b.w.gray04,Z.Z.fontFamily.pretendard,Z.Z.fontWeight.semiBold,Z.Z.letterSpacing.minus2),tB=[{pace:"RELAXED",label:"여유롭게"},{pace:"PACKED",label:"알차게"}];function tM(e){let{travelPace:n,onChangeTravelPace:t}=e,i=(0,l.useId)();return(0,o.jsx)(tD,{children:tB.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(tT,{id:"".concat(i,"-").concat(e.pace),name:"travel-pace",value:e.pace,label:e.label,checked:n===e.pace,onChange:()=>t(e.pace)})},e.pace))})}let tD=d.ZP.ul.withConfig({componentId:"sc-1023a6f8-0"})(["display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;"]),tT=(0,d.ZP)(function(e){return(0,o.jsx)(eM,{...e,type:"radio",selectionStyle:"outlined"})}).withConfig({componentId:"sc-1023a6f8-1"})(["&&& > span{height:36px;padding:0 24px;border-color:",";border-radius:4px;background-color:",";color:",";","}&&& > input:not(:disabled):checked + span{background-color:",";color:",";","}"],b.w.primaryGradientMiddle,b.w.tintSecondary,b.w.primaryGradientMiddle,b.Z.label7,b.w.primaryGradientMiddle,b.w.tintSecondary,b.Z.label7);function tR(e){let{headerTitle:n,summaryItems:t,travelPace:i,currentStep:r,totalSteps:a,isSubmitPending:l,onCh
1angeTravelPace:s,onBack:c,onSubmit:d}=e;return(0,o.jsxs)(tY,{onSubmit:e=>{e.preventDefault(),l||d()},children:[(0,o.jsx)(eJ,{title:n,currentStep:r,totalSteps:a,onBack:c}),(0,o.jsxs)(tL,{children:[(0,o.jsx)(tz,{children:"여행 정보를 확인해 주세요"}),(0,o.jsx)(tN,{children:"일정을 만들기 전에 선택한 내용을 확인해 주세요."}),(0,o.jsx)(tF,{children:(0,o.jsx)(tv,{summaryItems:t})}),(0,o.jsxs)(tG,{children:[(0,o.jsx)(tO,{children:"추가질문이 있어요!"}),(0,o.jsxs)(tq,{children:[(0,o.jsx)(tK,{children:"어떤 속도로 여행하고 싶나요?"}),(0,o.jsx)(tM,{travelPace:i,onChangeTravelPace:s})]})]})]}),(0,o.jsx)(tQ,{children:(0,o.jsx)(tH,{type:"submit",disabled:l,children:"일정 만들기"})})]})}let tY=d.ZP.form.withConfig({componentId:"sc-ef08cb6c-0"})(["display:flex;flex-direction:column;width:100%;max-width:500px;height:100dvh;margin:0 auto;background-color:",";"],b.w.tintSecondary),tL=d.ZP.main.withConfig({componentId:"sc-ef08cb6c-1"})(["flex:1;min-height:0;overflow-y:auto;padding:36px 0 40px;"," -webkit-overflow-scrolling:touch;"],v),tz=d.ZP.h2.withConfig({componentId:"sc-ef08cb6c-2"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.headline7),tN=d.ZP.p.withConfig({componentId:"sc-ef08cb6c-3"})(["margin:8px 0 0;color:",";",""],b.w.gray04,b.Z.label5),tF=d.ZP.section.withConfig({componentId:"sc-ef08cb6c-4"})(["margin-top:40px;"]),tG=d.ZP.section.withConfig({componentId:"sc-ef08cb6c-5"})(["margin-top:40px;"]),tO=d.ZP.h3.withConfig({componentId:"sc-ef08cb6c-6"})(["margin:0;color:",";",""],b.w.tintTertiary,b.Z.largeTitle10),tq=d.ZP.div.withConfig({componentId:"sc-ef08cb6c-7"})(["margin-top:12px;padding:20px 24px;border-radius:12px;background-color:",";"],b.w.gray09),tK=d.ZP.p.withConfig({componentId:"sc-ef08cb6c-8"})(["margin:0 0 16px;color:",";",""],b.w.gray02,b.Z.label8),tQ=d.ZP.div.withConfig({componentId:"sc-ef08cb6c-9"})(["flex-shrink:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom));"," background-color:",";"],v,b.w.tintSecondary),tH=(0,d.ZP)(k.Z).withConfig({componentId:"sc-ef08cb6c-10"})(["background-color:",";color:",";&:disabled{background-color:",";color:",";}"],b.w.tintTertiary,b.w.tintSecondary,b.w.gray07,b.w.gray05);var tW=t(21766);async function tU(){let e=await (0,tW.Z)(),n=new Set;return e.data.locations.filter(e=>!n.has(e.district_id)&&(n.add(e.district_id),!0)).map(e=>({districtId:e.district_id,name:e.concept_name,sidoDistrictId:e.sido_district_id}))}function tV(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,g.a)({queryKey:tJ(),queryFn:tU,...e})}let tJ=()=>[h.F3];tV.extractKey=tJ;var tX=t(96665);async function t$(){let{data:e}=await (0,tX.Z)({excludeRecommend:!0});return e.data.reduce((e,n)=>{let t=function(e){let n=e.split(",").map(e=>e.trim()).filter(e=>e.length>0).map(Number).filter(e=>Number.isFinite(e));return 1===n.length?n[0]:null}(n.districts);return null===t?e:[...e,{id:n.id,name:n.name,districtId:t}]},[])}function t0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,g.a)({queryKey:t1(),queryFn:t$,...e})}let t1=()=>[h.P3,"ai-travel-departure"];t0.extractKey=t1;var t2=t(52591),t4=t(16053);function t3(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,g.a)({queryKey:t5(e),queryFn:()=>(0,t4.Z)(e),enabled:e.q.length>0,...n})}let t5=e=>[h.y4,e];t3.extractKey=t5;var t8=t(98933);function t6(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,g.a)({queryKey:t7(),queryFn:t8.Z,...e})}let t7=()=>[h.hO];t6.extractKey=t7;var t9=t(48228),ie=t(47487),it=t(51904);function ii(e){return(0,s.default)(e,"yyyyMMdd")}var ir=t(29204);let io="일정 생성 요청 중 오류가 발생했습니다. 다시 시도해 주세요.";var ia=t(26669),il=t(52790);let is="AI 여행 일정 만들기";function ic(){var e,n,t;let i=(0,c.useRouter)(),{openToastMessage:r}=(0,nj.Z)(),[a,s]=(0,l.useState)(1),[d,p]=(0,l.useState)(!1),[u,g]=(0,l.useState)(null),[h,f]=(0,l.useState)(null),[w,m]=(0,l.useState)([]),[x,b]=(0,l.useState)(null),[y,v]=(0,l.useState)(null),[A,_]=(0,l.useState)([]),[k,Z]=(0,l.useState)(2),[j,C]=(0,l.useState)(0),[I,P]=(0,l.useState)([]),[S,E]=(0,l.useState)("RELAXED"),[B,M]=(0,l.useState)(null),D=(0,l.useRef)(null),{data:T=[],isLoading:R,isError:Y,refetch:L}=tV(),{data:z=[],isLoading:N,isError:F,refetch:G}=t0(),{defaultDeparture:O}=function(e){var n,t,i;let{data:r}=(0,t2.Z)(),o=null!==(n=null==r?void 0:r.data.district)&&void 0!==n?n:null,{data:a=[]}=t3({q:null!==(t=null==o?void 0:o.formatted_address)&&void 0!==t?t:"",limit:20});if(!o)return{defaultDeparture:null,memberSidoDistrictId:null};let l=function(e,n){var t;let i=e.find(e=>e.districtId===n);return null!==(t=null==i?void 0:i.sidoDistrictId)&&void 0!==t?t:null}(a,o.pk);return{defaultDeparture:null===l?null:null!==(i=e.find(e=>e.districtId===l))&&void 0!==i?i:null,memberSidoDistrictId:l}}(z),{data:q=[]}=t6(),K=(0,t9.D)({mutationFn:ie.Z});(0,l.useEffect)(()=>{null===h&&null!==O&&f(O)},[h,O]),(0,l.useEffect)(()=>
1{if(B){D.current=null;return}if(D.current!==a){if(D.current=a,1===a){(0,it.In)();return}if(2===a){(0,it.Ii)();return}if(3===a){(0,it.k1)();return}if(4===a){(0,it._z)();return}if(5===a){(0,it.Lg)();return}(0,it.rb)()}},[a,B]);let Q=w.map(e=>{var n;return null===(n=T.find(n=>n.districtId===e))||void 0===n?void 0:n.name}).filter(e=>!!e),H=K.isLoading,W=e=>{g({departure:h,destinationRegionIds:w,startDate:x,endDate:y,companions:A,adultCount:k,childCount:j,categoryIds:I}),p(!0),s(e)},U=e=>{if(d){g(null),p(!1),s(6);return}s(e)},V=()=>{u&&(f(u.departure),m(u.destinationRegionIds),b(u.startDate),v(u.endDate),_(u.companions),Z(u.adultCount),C(u.childCount),P(u.categoryIds)),g(null),p(!1),s(6)},J=e=>{if(null===e){if((0,ia.ZP)()){i.push(il.Ql);return}i.back();return}s(e)},X=async()=>{var e,n,t,i;if(H||!x||!y)return;let o=null!==(n=null===(e=tB.find(e=>e.pace===S))||void 0===e?void 0:e.label)&&void 0!==n?n:"";(0,it.RY)({startSpot:null!==(t=null==h?void 0:h.name)&&void 0!==t?t:"",endSpot:Q,startDate:id(x),endDate:id(y),who:ip(A),adults:k,children:j,categorys:iu(I,q),tripSpeed:o});try{let e=function(e){let{destinationRegionIds:n,startDate:t,endDate:i,departureName:r,companions:o,adultCount:a,childCount:l,categoryIds:s,travelPace:c}=e;return{destination:{district_id:n[n.length-1]},waypoints:n.slice(0,-1).map(e=>({district_id:e})),start_travel_date:ii(t),end_travel_date:ii(i),...r?{departure:r}:{},traveler_count:l>0?"성인 ".concat(a,"명, 소인 ").concat(l,"명"):"성인 ".concat(a,"명"),travel_pace:c,...o.length>0?{companion:o.map(e=>{var n,t;return null!==(t=null===(n=nV.find(n=>n.type===e))||void 0===n?void 0:n.label)&&void 0!==t?t:e}).join(", ")}:{},...s.length>0?{category_ids:s}:{}}}({destinationRegionIds:w,startDate:x,endDate:y,departureName:null!==(i=null==h?void 0:h.name)&&void 0!==i?i:null,companions:A,adultCount:k,childCount:j,categoryIds:I,travelPace:S}),n=await K.mutateAsync(e);M(n)}catch(e){r(function(e){var n,t;if(!(0,ir.IZ)(e))return io;let i=null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.message;return"string"==typeof i&&i.length>0?i:io}(e))}},$=[{label:"출발지",value:null!==(e=null==h?void 0:h.name)&&void 0!==e?e:"",onChange:()=>W(1)},{label:"여행지",value:Q,onChange:()=>W(2)},{label:"기간",value:nY(x,y),onChange:()=>W(3)},{label:"인원",value:"대인 ".concat(k,"명").concat(j>0?", 소인 ".concat(j,"명"):""),onChange:()=>W(4)},{label:"취향",value:q.filter(e=>I.includes(e.id)).map(e=>e.label).join(", "),onChange:()=>W(5)}];return B?(0,o.jsx)(eC,{sessionId:B.session_id,pollIntervalSeconds:B.poll_interval_seconds,initialStatusMessage:B.status_message,isRetrySessionPending:K.isLoading,onClose:()=>i.push(il.lx),onBack:()=>{M(null),p(!1),s(6)},onRetrySession:X,onOpenPlan:e=>{i.push({pathname:il.rb,query:{planId:e}})}},B.session_id):1===a?(0,o.jsx)(nr,{headerTitle:is,regions:z,selectedRegionId:null!==(n=null==h?void 0:h.id)&&void 0!==n?n:null,isLoading:N,isError:F,currentStep:1,totalSteps:6,isNextPending:!1,ctaLabel:d?"저장":"다음",isEditMode:d,onChange:e=>{var n;f(null!==(n=z.find(n=>n.id===e))&&void 0!==n?n:null)},onBack:()=>J(null),onNext:()=>{h&&((0,it.ND)({spot:h.name}),U(2))},onCancel:V,onRetry:()=>G()}):2===a?(0,o.jsx)(nd,{headerTitle:is,regions:T,departureName:null!==(t=null==h?void 0:h.name)&&void 0!==t?t:"",selectedRegionIds:w,isLoading:R,isError:Y,currentStep:2,totalSteps:6,isNextPending:!1,ctaLabel:d?"저장":"다음",isEditMode:d,onChange:m,onBack:()=>J(1),onNext:()=>{if(d&&!nP(w.length,x,y)){s(3);return}(0,it.Rp)({spot:Q}),U(3)},onCancel:V,onRetry:()=>L(),onEditDeparture:()=>J(1)}):3===a?(0,o.jsx)(nL,{startDate:x,endDate:y,destinationCount:w.length,currentStep:3,totalSteps:6,isNextPending:!1,ctaLabel:d?"저장":"다음",isEditMode:d,onChange:e=>{let[n,t]=e;b(n),v(t)},onBack:()=>J(2),onNext:()=>{x&&y&&((0,it.pO)({tripStartDate:id(x),tripEndDate:id(y)}),U(4))},onCancel:V}):4===a?(0,o.jsx)(ts,{headerTitle:is,selectedCompanions:A,adultCount:k,childCount:j,currentStep:4,totalSteps:6,isNextPending:!1,ctaLabel:d?"저장":"다음",isEditMode:d,onToggleCompanion:e=>{_(n=>{let t="ALONE"===e?n.includes("ALONE")?[]:["ALONE"]:n.includes(e)?n.filter(n=>n!==e):[...n.filter(e=>"ALONE"!==e),e];return t.includes("ALONE")?(Z(1),C(0)):"CHILD"===e&&n.includes("CHILD")&&t.length>0?C(0):(n.includes("ALONE")||0===t.length||1===t.length&&"CHILD"===t[0])&&(Z(2),C(0)),t})},onIncreaseAdultCount:()=>Z(e=>Math.min(e+1,50)),onDecreaseAdultCount:()=>Z(e=>Math.max(e-1,1)),onIncreaseChildCount:()=>C(e=>Math.min(e+1,50)),onDecreaseChildCount:()=>C(e=>Math.max(e-1,0)),onBack:()=>J(3),onNext:()=>{(0,it.H4)({who:ip(A),adults:k,children:j}),U(5)},onCancel:V}):5===a?(0,o.jsx)(ty,{headerTitle:is,categories:q,selectedCategoryIds:I,currentStep:5,totalSteps:6,isNextPending:!1,ctaLabel:d?"저장":"다음",isEditMode:d,onToggleCategory:e=>{P(n=>n.includes(e)?n.filter(n=>n!==e):[...n,e])},onBack:()=>J(4),onNext:()=>{(0,it.Jb)({categorys:iu(I,q)}),U(6)},onCancel:V}):(0,o.jsx)(tR,{headerTitle:is,summaryItems:$,travelPace:S,currentStep:6,totalSteps:6,isSubmitPending:H,onChangeTravelPace:E,onBack:()=>J(5),onSubmit:X})}function id(e){return(0,s.default)(e,"yyyy.MM.dd")}function ip(e){return e.flatMap(e=>{let n=nV.find(n=>n.type===e);return n?[n.label]:[]})}function iu(e,n){return e.flatMap(e=>{let t=n.find(n=>n.id===e);return t?[t.label]:[]})}function ig(){return(0,o.jsx)(a.Z,{children:(0,o.jsx)(ic,{})})}},38231:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var i=t(85893),r=t(67294),o=t(11163),a=t(52790),l=t(28343),s=t(10084);function c(e){let{children:n}=e,{isAuthorized:t}=function(){let e=(0,o.useRouter)(),{openToastMessage:n}=(0,s.Z)(),[t,i]=(0,r.useState)(!1),c=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{let t=()=>{var t;if(null===(t=(0,l.Z)())||void 0===t?void 0:t.is_member){c.current=!1,i(!0);return}i(!1),c.current||(c.current=!0,n("로그인 후 이용해 주세요."),e.replace(a.qj))};t();let r=window.setInterval(t,1e3);return window.addEventListener("focus",t),window.addEventListener("pageshow",t),document.addEventListener("visibilitychange",t),()=>{window.clearInterval(r),window.removeEventListener("focus",t),window.removeEventListener("pageshow",t),document.removeEventListener("visibilitychange",t)}},[e,n]),{isAuthorized:t}}();return t?(0,i.jsx)(i.Fragment,{children:n}):null}},2886:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(85893),r=t(67294),o=t(67204),a=t(9198),l=t.n(a),s=t(19521),c=t(495),d=t(64179),p=t(90245);let u=(0,s.iv)([".react-datepicker{width:100vw;padding:8px;background-color:#fff;"," @media ","{width:500px;}}.react-datepicker__header{padding:25px 0 24px;display:flex;flex-direction:column;gap:36px;","}
1.react-datepicker__aria-live{display:none;}.react-datepicker__navigation-icon{display:none;}.react-datepicker__day-names{color:",";}.react-datepicker__week,.react-datepicker__day-names{display:flex;justify-content:space-around;}.react-datepicker__day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:54px;cursor:pointer;}.react-datepicker__day--outside-month{cursor:default;visibility:hidden;}.react-datepicker__day--today{color:#579cf0;}.react-datepicker__day--weekend{color:",";}.stay-calendar-day--saturday{color:#1a1c20;}.stay-calendar-day--holiday{color:",";}.react-datepicker__day--disabled{color:rgb(from "," r g b / 20%);}.react-datepicker__day--disabled.react-datepicker__day--weekend{color:rgb(from "," r g b / 20%);}.react-datepicker__day--in-range:not(.react-datepicker__day--outside-month){background-color:rgb(from "," r g b / 15%);}.react-datepicker__day--selected{display:flex;flex-direction:column;gap:4px;background-color:",";border-bottom-left-radius:4px;border-top-left-radius:4px;color:",";}.react-datepicker__day--range-start:not( .react-datepicker__day--outside-month ),.react-datepicker__day--selecting-range-start:not( .react-datepicker__day--outside-month ){display:flex;flex-direction:column;gap:4px;background-color:",";border-bottom-left-radius:4px;border-top-left-radius:4px;color:",";}.react-datepicker__day--range-end:not(.react-datepicker__day--outside-month){display:flex;flex-direction:column;gap:4px;background-color:",";border-bottom-right-radius:4px;border-top-right-radius:4px;color:",";}"],p.Z.label3,d.A.mobileL,p.w.gray02,p.w.gray03,p.w.primary,p.w.primary,p.w.gray02,p.w.primary,p.w.primary,p.w.primary,p.w.tintSecondary,p.w.primary,p.w.tintSecondary,p.w.primary,p.w.tintSecondary),g=(0,r.forwardRef)(function(e,n){let{renderCustomHeader:t,...r}=e;return(0,i.jsx)(f,{children:(0,i.jsx)(l(),{selectsRange:!0,locale:c.Z,focusSelectedMonth:!1,disabledKeyboardNavigation:!0,ref:n,...r,renderCustomHeader:null!=t?t:e=>{let{monthDate:n}=e;return(0,i.jsx)(h,{monthDate:n})}})})});function h(e){let{monthDate:n}=e;return(0,i.jsx)("span",{children:(0,o.default)(n,"yyyy년 MM월")})}let f=s.ZP.div.withConfig({componentId:"sc-d4574fa3-0"})(["",""],u);var w=g},8289:function(e,n,t){"use strict";var i=t(85893),r=t(19521),o=t(95649),a=t(64179);let l=r.ZP.div.withConfig({componentId:"sc-8e3ce8bc-0"})(["width:",";height:",";overflow-x:hidden;overflow-y:hidden;background-color:",";-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}@media ","{width:",";height:",";}"," .swiper-container{overflow:visible;}"],e=>e.width,e=>e.height,e=>e.backgroundColor,a.A.mobileL,e=>e.largeWidth,e=>e.largeHeight,o.Z);n.Z=function(e){let{width:n,largeWidth:t=n,height:r,largeHeight:o=r,backgroundColor:a,children:s}=e;return(0,i.jsx)(l,{width:n,largeWidth:t,height:r,largeHeight:o,backgroundColor:a,children:s})}},30831:function(e,n,t){"use strict";t.d(n,{Z:function(){return i.Z}});var i=t(8289)},72056:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(85893),r=t(19521),o=t(90245),a=t(89904);function l(e){let{step:n,disabledDecrease:t,disabledIncrease:r=!1,className:o,children:l,decreaseButtonAriaLabel:g="decreaseButton",increaseButtonAriaLabel:h="increaseButton",onClickIncreaseButton:f,onClickDecreaseButton:w}=e;return(0,i.jsxs)(s,{className:o,children:[(0,i.jsx)(c,{"aria-label":"kindOfPeople",children:l}),(0,i.jsxs)(d,{children:[(0,i.jsx)(p,{type:"button",disabled:t,onClick:w,"aria-label":g,children:(0,i.jsx)(a.V_,{})}),(0,i.jsx)(u,{children:n}),(0,i.jsx)(p,{type:"button",disabled:r,onClick:f,"aria-label":h,children:(0,i.jsx)(a.pO,{})})]})]})}let s=r.ZP.div.withConfig({componentId:"sc-dc8d1d3c-0"})(["display:flex;justify-content:space-between;"]),c=r.ZP.span.withConfig({componentId:"sc-dc8d1d3c-1"})(["color:",";",""],o.w.gray02,o.Z.headline6),d=r.ZP.div.withConfig({componentId:"sc-dc8d1d3c-2"})(["display:flex;justify-content:space-between;align-items:center;width:104px;color:",";"],o.w.gray02),p=r.ZP.button.withConfig({componentId:"sc-dc8d1d3c-3"})(["display:flex;align-items:center;color:",";&:disabled{opacity:20%;cursor:default;}& > svg{width:14px;
1height:auto;color:inherit;& > *{stroke-width:3;}}"],o.w.gray02),u=r.ZP.span.withConfig({componentId:"sc-dc8d1d3c-4"})(["",""],o.Z.largeTitle4)},991:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(36492),r=t(19170),o=t(2499);function a(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t={...n,queryKey:l(e),queryFn:()=>{if(null===e)throw Error("플랜 ID 없이 상세 일정을 조회할 수 없습니다.");return(0,o.Z)({planId:e})},enabled:null!==e&&!1!==n.enabled};return(0,i.a)(t)}let l=e=>[r.kn,e];a.extractKey=l},58301:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(36492),r=t(69294),o=t(19170),a=t(9208);async function l(){let{data:e}=await r.Z.get(o.$T,{headers:{"p-signature":(0,a.Z)("GET",o.$T)}});return e.data}function s(){return(0,i.a)({queryKey:[o.$T],queryFn:l})}},52591:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(36492),r=t(19170),o=t(25554);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.a)({queryKey:l(),queryFn:o.Z,...e})}let l=()=>[r.Gi];a.extractKey=l},98933:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(19170),r=t(69781),o=t(83294);async function a(){let e=i.hO;return(await r.Z.get(e,{headers:{"p-signature":(0,o.rV)("GET",e)}})).data.data.categories.map(e=>({id:e.category_id,label:e.name}))}},16053:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(80129),r=t.n(i),o=t(19170),a=t(69781),l=t(83294);async function s(e){let{q:n,depth:t,limit:i,parentDistrictId:s}=e,c=o.y4,d={q:n,depth:t,limit:i,parent_district_id:s};return(await a.Z.get(c,{params:d,headers:{"p-signature":(0,l.rV)("GET",c,r().stringify(d))}})).data.data.locations.map(e=>({districtId:e.district_id,name:e.display_name,sidoDistrictId:e.sido_district_id}))}},21766:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(19170),r=t(69781),o=t(83294);async function a(){let e=i.F3;return(await r.Z.get(e,{headers:{"p-signature":(0,o.rV)("GET",e)}})).data}},2499:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(19170),r=t(69781),o=t(83294);async function a(e){let{planId:n}=e,t="".concat(i.kn,"/").concat(n);return(await r.Z.get(t,{headers:{"p-signature":(0,o.rV)("GET",t)}})).data.data}},47834:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(19170),r=t(69781),o=t(83294);async function a(e){let{sessionId:n}=e,t="".concat(i.up,"/").concat(n,"/status");return(await r.Z.get(t,{headers:{"p-signature":(0,o.rV)("GET",t)}})).data.data}},47487:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(19170),r=t(69781),o=t(83294);async function a(e){let n="".concat(i.up,"/");return(await r.Z.post(n,e,{headers:{"content-type":"application/json","p-signature":(0,o.rV)("POST",n,"",JSON.stringify((0,o.V_)(e)))}})).data.data}},95649:function(e,n){"use strict";n.Z="\n  @font-face {\n    font-family: 'swiper-icons';\n    src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMk
1pFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA')\n      format('woff');\n    font-weight: 400;\n    font-style: normal;\n  }\n  :root {\n    --swiper-theme-color: #007aff;\n  }\n  .swiper-container {\n    margin-left: auto;\n    margin-right: auto;\n    position: relative;\n    overflow: hidden;\n    list-style: none;\n    padding: 0;\n    /* Fix of Webkit flickering */\n    z-index: 1;\n  }\n  .swiper-container-vertical > .swiper-wrapper {\n    flex-direction: column;\n  }\n  .swiper-wrapper {\n    position: relative;\n    width: 100%;\n    height: 100%;\n    z-index: 1;\n    display: flex;\n    transition-property: transform;\n    box-sizing: content-box;\n  }\n  .swiper-container-android .swiper-slide,\n  .swiper-wrapper {\n    transform: translate3d(0px, 0, 0);\n  }\n  .swiper-container-multirow > .swiper-wrapper {\n    flex-wrap: wrap;\n  }\n  .swiper-container-multirow-column > .swiper-wrapper {\n    flex-wrap: wrap;\n    flex-direction: column;\n  }\n  .swiper-container-free-mode > .swiper-wrapper {\n    transition-timing-function: ease-out;\n    margin: 0 auto;\n  }\n  .swiper-container-pointer-events {\n    touch-action: pan-y;\n  }\n  .swiper-container-pointer-events.swiper-container-vertical {\n    touch-action: pan-x;\n  }\n  .swiper-slide {\n    flex-shrink: 0;\n    width: 100%;\n    height: 100%;\n    position: relative;\n    transition-property: transform;\n  }\n  .swiper-slide-invisible-blank {\n    visibility: hidden;\n  }\n  /* Auto Height */\n  .swiper-container-autoheight,\n  .swiper-container-autoheight .swiper-slide {\n    height: auto;\n  }\n  .swiper-container-autoheight .swiper-wrapper {\n    align-items: flex-start;\n    transition-property: transform, height;\n  }\n  /* 3D Effects */\n  .swiper-container-3d {\n    perspective: 1200px;\n  }\n  .swiper-container-3d .swiper-wrapper,\n  .swiper-container-3d .swiper-slide,\n  .swiper-container-3d .swiper-slide-shadow-left,\n  .swiper-container-3d .swiper-slide-shadow-right,\n  .swiper-container-3d .swiper-slide-shadow-top,\n  .swiper-container-3d .swiper-slide-shadow-bottom,\n  .swiper-container-3d .swiper-cube-shadow {\n    transform-style: preserve-3d;\n  }\n  .swiper-container-3d .swiper-slide-shadow-left,\n  .swiper-container-3d .swiper-slide-shadow-right,\n  .swiper-container-3d .swiper-slide-shadow-top,\n  .swiper-container-3d .swiper-slide-shadow-bottom {\n    position: absolute;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    pointer-events: none;\n    z-index: 10;\n  }\n  .swiper-container-3d .swiper-slide-shadow-left {\n    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  }\n  .swiper-container-3d .swiper-slide-shadow-right {\n    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  }\n  .swiper-container-3d .swiper-slide-shadow-top {\n    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  }\n  .swiper-container-3d .swiper-slide-shadow-bottom {\n    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n  }\n  /* CSS Mode */\n  .swiper-container-css-mode > .swiper-wrapper {\n    overflow: auto;\n    scrollbar-width: none;\n    /* For Firefox */\n    -ms-overflow-style: none;\n    /* For Internet Explorer and Edge */\n  }\n  .swiper-container-css-mode > .swiper-wrapper::-webkit-scrollbar {\n    display: none;\n  }\n  .swiper-container-css-mode > .swiper-wrapper > .swiper-slide {\n    scroll-snap-align: start start;\n  }\n  .swiper-container-horizontal.swiper-container-css-mode > .swiper-wrapper {\n    scroll-snap-type: x mandatory;\n  }\n  .swiper-container-vertical.swiper-container-css-mode > .swiper-wrapper {\n    scroll-snap-type: y mandatory;\n  }\n  :root {\n    --swiper-navigation-size: 44px;\n    /*\n  --swiper-navigation-color: var(--swiper-theme-color);\n  */\n  }\n  .swiper-button-prev,\n  .swiper-button-next {\n    position: absolute;\n    top: 50%;\n    width: calc(var(--swiper-navigation-size) / 44 * 27);\n    height: var(--swiper-navigation-size);\n    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));\n    z-index: 10;\n    cursor: pointer;\n    display: flex;
1\n    align-items: center;\n    justify-content: center;\n    color: var(--swiper-navigation-color, var(--swiper-theme-color));\n  }\n  .swiper-button-prev.swiper-button-disabled,\n  .swiper-button-next.swiper-button-disabled {\n    opacity: 0.35;\n    cursor: auto;\n    pointer-events: none;\n  }\n  .swiper-button-prev:after,\n  .swiper-button-next:after {\n    font-family: swiper-icons;\n    font-size: var(--swiper-navigation-size);\n    text-transform: none !important;\n    letter-spacing: 0;\n    text-transform: none;\n    font-variant: initial;\n    line-height: 1;\n  }\n  .swiper-button-prev,\n  .swiper-container-rtl .swiper-button-next {\n    left: 10px;\n    right: auto;\n  }\n  .swiper-button-prev:after,\n  .swiper-container-rtl .swiper-button-next:after {\n    content: 'prev';\n  }\n  .swiper-button-next,\n  .swiper-container-rtl .swiper-button-prev {\n    right: 10px;\n    left: auto;\n  }\n  .swiper-button-next:after,\n  .swiper-container-rtl .swiper-button-prev:after {\n    content: 'next';\n  }\n  .swiper-button-prev.swiper-button-white,\n  .swiper-button-next.swiper-button-white {\n    --swiper-navigation-color: #ffffff;\n  }\n  .swiper-button-prev.swiper-button-black,\n  .swiper-button-next.swiper-button-black {\n    --swiper-navigation-color: #000000;\n  }\n  .swiper-button-lock {\n    display: none;\n  }\n  :root {\n    /*\n  --swiper-pagination-color: var(--swiper-theme-color);\n  */\n  }\n  .swiper-pagination {\n    position: absolute;\n    text-align: center;\n    transition: 300ms opacity;\n    transform: translate3d(0, 0, 0);\n    z-index: 10;\n  }\n  .swiper-pagination.swiper-pagination-hidden {\n    opacity: 0;\n  }\n  /* Common Styles */\n  .swiper-pagination-fraction,\n  .swiper-pagination-custom,\n  .swiper-container-horizontal > .swiper-pagination-bullets {\n    bottom: 10px;\n    left: 0;\n    width: 100%;\n  }\n  /* Bullets */\n  .swiper-pagination-bullets-dynamic {\n    overflow: hidden;\n    font-size: 0;\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n    transform: scale(0.33);\n    position: relative;\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {\n    transform: scale(1);\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {\n    transform: scale(1);\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {\n    transform: scale(0.66);\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {\n    transform: scale(0.33);\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {\n    transform: scale(0.66);\n  }\n  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {\n    transform: scale(0.33);\n  }\n  .swiper-pagination-bullet {\n    width: 8px;\n    height: 8px;\n    display: inline-block;\n    border-radius: 50%;\n    background: #000;\n    opacity: 0.2;\n  }\n  button.swiper-pagination-bullet {\n    border: none;\n    margin: 0;\n    padding: 0;\n    box-shadow: none;\n    -webkit-appearance: none;\n    appearance: none;\n  }\n  .swiper-pagination-clickable .swiper-pagination-bullet {\n    cursor: pointer;\n  }\n  .swiper-pagination-bullet-active {\n    opacity: 1;\n    background: var(--swiper-pagination-color, var(--swiper-theme-color));\n  }\n  .swiper-container-vertical > .swiper-pagination-bullets {\n    right: 10px;\n    top: 50%;\n    transform: translate3d(0px, -50%, 0);\n  }\n  .swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {\n    margin: 6px 0;\n    display: block;\n  }\n  .swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n    top: 50%;\n    transform: translateY(-50%);\n    width: 8px;\n  }\n  .swiper-container-vertical\n    > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic\n    .swiper-pagination-bullet {\n    display: inline-block;\n    transition: 200ms transform, 200ms top;\n  }\n  .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {\n    margin: 0 4px;\n  }\n  .swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n    left: 50%;\n    transform: translateX(-50%);\n    white-space: nowrap;\n  }\n  .swiper-container-horizontal\n    > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic\n    .swiper-pagination-bullet {\n    transition: 200ms transform, 200ms left;\n  }\n  .swiper-container-horizontal.swiper-container-rtl\n    > .swiper-pagination-bullets-dynamic\n    .swiper-pagination-bullet {\n    transition: 200ms transform, 200ms right;\n  }\n  /* Progress */\n  .swiper-pagination-progressbar {\n    background: rgba(0, 0, 0, 0.25);\n    position: absolute;\n  }\n  .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {\n    background: var(--swiper-pagination-color, var(--swiper-theme-color));\n    position: absolute;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    transform: scale(0);\n    transform-origin: left top;\n  }\n  .swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {\n    transform-origin: right top;\n  }\n  .swiper-container-horizontal > .swiper-pagination-progressbar,\n  .swiper-container-vertical\n    > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {\n    width: 100%;\n    height: 4px;\n    left: 0;\n    top: 0;\n  }\n  .swiper-container-vertical > .swiper-pagination-progressbar,\n  .swiper-container-horizontal\n    > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {\n    width: 4px;\n    height: 100%;\n    left: 0;\n    top: 0;\n  }\n  .swiper-pagination-white {\n    --swiper-pagination-color: #ffffff;\n  }\n  .swiper-pagination-black {\n    --swiper-pagination-color: #000000;\n  }\n  .swiper-pagination-lock {\n    display: none;\n  }\n  /* Scrollbar */\n  .swiper-scrollbar {\n    border-radius: 10px;\n    position: relative;\n    -ms-touch-action: none;\n    background: rgba(0, 0, 0, 0.1);\n  }\n  .swiper-container-horizontal > .swiper-scrollbar {\n    position: absolute;\n    left: 1%;\n    bottom: 3px;\n    z-index: 50;\n    height: 5px;\n    width: 98%;\n  }\n  .swiper-container-vertical > .swiper-scrollbar {\n    position: absolute;\n    right: 3px;\n    top: 1%;\n    z-index: 50;\n    width: 5px;\n    height: 98%;\n  }\n  .swiper-scrollbar-drag {\n    height: 100%;\n    width: 100%;\n    position: relative;\n    background: rgba(0, 0, 0, 0.5);\n    border-radius: 10px;\n    left: 0;\n    top: 0;\n  }\n  .swiper-scrollbar-cursor-drag {\n    cursor: move;\n  }\n  .swiper-scrollbar-lock {\n    display: none;\n  }\n  .swiper-zoom-container {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    justify-content: center;
1\n    align-items: center;\n    text-align: center;\n  }\n  .swiper-zoom-container > img,\n  .swiper-zoom-container > svg,\n  .swiper-zoom-container > canvas {\n    max-width: 100%;\n    max-height: 100%;\n    object-fit: contain;\n  }\n  .swiper-slide-zoomed {\n    cursor: move;\n  }\n  /* Preloader */\n  :root {\n    /*\n  --swiper-preloader-color: var(--swiper-theme-color);\n  */\n  }\n  .swiper-lazy-preloader {\n    width: 42px;\n    height: 42px;\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    margin-left: -21px;\n    margin-top: -21px;\n    z-index: 10;\n    transform-origin: 50%;\n    animation: swiper-preloader-spin 1s infinite linear;\n    box-sizing: border-box;\n    border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));\n    border-radius: 50%;\n    border-top-color: transparent;\n  }\n  .swiper-lazy-preloader-white {\n    --swiper-preloader-color: #fff;\n  }\n  .swiper-lazy-preloader-black {\n    --swiper-preloader-color: #000;\n  }\n  @keyframes swiper-preloader-spin {\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n  /* a11y */\n  .swiper-container .swiper-notification {\n    position: absolute;\n    left: 0;\n    top: 0;\n    pointer-events: none;\n    opacity: 0;\n    z-index: -1000;\n  }\n  .swiper-container-fade.swiper-container-free-mode .swiper-slide {\n    transition-timing-function: ease-out;\n  }\n  .swiper-container-fade .swiper-slide {\n    pointer-events: none;\n    transition-property: opacity;\n  }\n  .swiper-container-fade .swiper-slide .swiper-slide {\n    pointer-events: none;\n  }\n  .swiper-container-fade .swiper-slide-active,\n  .swiper-container-fade .swiper-slide-active .swiper-slide-active {\n    pointer-events: auto;\n  }\n  .swiper-container-cube {\n    overflow: visible;\n  }\n  .swiper-container-cube .swiper-slide {\n    pointer-events: none;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n    z-index: 1;\n    visibility: hidden;\n    transform-origin: 0 0;\n    width: 100%;\n    height: 100%;\n  }\n  .swiper-container-cube .swiper-slide .swiper-slide {\n    pointer-events: none;\n  }\n  .swiper-container-cube.swiper-container-rtl .swiper-slide {\n    transform-origin: 100% 0;\n  }\n  .swiper-container-cube .swiper-slide-active,\n  .swiper-container-cube .swiper-slide-active .swiper-slide-active {\n    pointer-events: auto;\n  }\n  .swiper-container-cube .swiper-slide-active,\n  .swiper-container-cube .swiper-slide-next,\n  .swiper-container-cube .swiper-slide-prev,\n  .swiper-container-cube .swiper-slide-next + .swiper-slide {\n    pointer-events: auto;\n    visibility: visible;\n  }\n  .swiper-container-cube .swiper-slide-shadow-top,\n  .swiper-container-cube .swiper-slide-shadow-bottom,\n  .swiper-container-cube .swiper-slide-shadow-left,\n  .swiper-container-cube .swiper-slide-shadow-right {\n    z-index: 0;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n  }\n  .swiper-container-cube .swiper-cube-shadow {\n    position: absolute;\n    left: 0;\n    bottom: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0.6;\n    z-index: 0;\n  }\n  .swiper-container-cube .swiper-cube-shadow:before {\n    content: '';\n    background: #000;\n    position: absolute;\n    left: 0;\n    top: 0;\n    bottom: 0;\n    right: 0;\n    filter: blur(50px);\n  }\n  .swiper-container-flip {\n    overflow: visible;\n  }\n  .swiper-container-flip .swiper-slide {\n    pointer-events: none;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n    z-index: 1;\n  }\n  .swiper-container-flip .swiper-slide .swiper-slide {\n    pointer-events: none;\n  }\n  .swiper-container-flip .swiper-slide-active,\n  .swiper-container-flip .swiper-slide-active .swiper-slide-active {\n    pointer-events: auto;\n  }\n  .swiper-container-flip .swiper-slide-shadow-top,\n  .swiper-container-flip .swiper-slide-shadow-bottom,\n  .swiper-container-flip .swiper-slide-shadow-left,\n  .swiper-container-flip .swiper-slide-shadow-right {\n    z-index: 0;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n  }\n"},51904:function(e,n,t){"use strict";t.d(n,{AI:function(){return b},Bo:function(){return k},Cp:function(){return v},D4:function(){return P},H4:function(){return u},I1:function(){return Z},Ii:function(){return l},In:function(){return o},J$:function(){return m},Jb:function(){return h},Lg:function(){return g},M3:function(){return A},ND:function(){return a},NR:function(){return _},PV:function(){return x},RY:function(){return w},Rp:function(){return s},Yo:function(){return S},_P:function(){return y},_z:function(){return p},aZ:function(){return C},hb:function(){return I},iT:function(){return r},k1:function(){return c},ld:function(){return j},pO:function(){return d},rb:function(){return f}});var i=t(80843);let r=()=>{i.j({event_type:"amp_click_start_ai_planner"})},o=()=>{i.j({event_type:"amp_enter_select_start_spot_ai_planner"})},a=e=>{let{spot:n}=e;i.j({event_type:"amp_click_select_start_spot_ai_planner",event_properties:{spot:n}})},l=()=>{i.j({event_type:"amp_enter_select_end_spot_ai_planner"})},s=e=>{let{spot:n}=e;i.j({event_type:"amp_click_select_end_spot_ai_planner",event_properties:{spot:n}})},c=()=>{i.j({event_type:"amp_enter_select_calender_ai_planner"})},d=e=>{let{tripStartDate:n,tripEndDate:t}=e;i.j({event_type:"amp_click_select_calender_ai_planner",event_properties:{tripStartDate:n,tripEndDate:t}})},p=()=>{i.j({event_type:"amp_enter_select_who_ai_planner"})},u=e=>{let{who:n,adults:t,children:r}=e;i.j({event_type:"amp_click_select_who_ai_planner",event_properties:{who:n,adults:t,children:r}})},g=()=>{i.j({event_type:"amp_enter_select_category_ai_planner"})}
1,h=e=>{let{categorys:n}=e;i.j({event_type:"amp_click_select_category_ai_planner",event_properties:{categorys:n}})},f=()=>{i.j({event_type:"amp_enter_create_page_ai_planner"})},w=e=>{let{startSpot:n,endSpot:t,startDate:r,endDate:o,who:a,adults:l,children:s,categorys:c,tripSpeed:d}=e;i.j({event_type:"amp_click_create_page_ai_planner",event_properties:{startSpot:n,endSpot:t,startDate:r,endDate:o,who:a,adults:l,children:s,categorys:c,tripSpeed:d}})},m=e=>{let{id:n,title:t}=e;i.j({event_type:"amp_enter_edit_plan_page_ai_planner",event_properties:{id:n,title:t}})},x=e=>{let{id:n,title:t,memo:r}=e;i.j({event_type:"amp_click_edit_plan_page_ai_planner",event_properties:{id:n,title:t,memo:r}})},b=e=>{let{id:n,title:t}=e;i.j({event_type:"amp_delete_plan_ai_planner",event_properties:{id:n,title:t}})},y=()=>{i.j({event_type:"amp_enter_ai_planner_result"})},v=()=>{i.j({event_type:"amp_click_save_image_ai_planner"})},A=()=>{i.j({event_type:"amp_click_share_ai_planner"})},_=e=>{let{id:n,title:t}=e;i.j({event_type:"amp_enter_edit_step_ai_planner",event_properties:{id:n,title:t}})},k=e=>{let{id:n,title:t,time:r,memo:o}=e;i.j({event_type:"amp_click_edit_step_ai_planner",event_properties:{id:n,title:t,time:r,memo:o}})},Z=()=>{i.j({event_type:"amp_enter_change_step_ai_planner"})},j=e=>{let{id:n,title:t}=e;i.j({event_type:"amp_delete_step_ai_planner",event_properties:{id:n,title:t}})},C=()=>{i.j({event_type:"amp_enter_add_spot_ai_planner"})},I=e=>
1{let{productCores:n}=e;i.j({event_type:"amp_click_add_spot_ai_planner",event_properties:{productCores:n}})},P=e=>{let{cartProductCores:n}=e;i.j({event_type:"amp_enter_cart_ai_planner",event_properties:{cartProductCores:n}})},S=e=>{let{productCore:n}=e;i.j({event_type:"amp_add_cart_ai_planner",event_properties:{productCore:n}})}},48228:function(e,n,t){"use strict";t.d(n,{D:function(){return u}});var i=t(67294),r=t(32161),o=t(89886),a=t(30081),l=t(33989);class s extends l.l{constructor(e,n){super(),this.client=e,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var n;let t=this.options;this.options=this.client.defaultMutationOptions(e),(0,r.VS)(t,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(n=this.currentMutation)||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let n={listeners:!0};"success"===e.type?n.onSuccess=!0:"error"===e.type&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,o.R)(),n="loading"===e.status,t={...e,isLoading:n,isPending:n,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){a.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var n,t,i,r,o,a,l,s;e.onSuccess?(null==(n=(t=this.mutateOptions).onSuccess)||n.call(t,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(r=this.mutateOptions).onSettled)||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(o=(a=this.mutateOptions).onError)||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(s=this.mutateOptions).onSettled)||l.call(s,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var c=t(464),d=t(85945),p=t(24798);function u(e,n,t){let o=(0,r.lV)(e,n,t),l=(0,d.NL)({context:o.context}),[u]=i.useState(()=>new s(l,o));i.useEffect(()=>{u.setOptions(o)},[u,o]);let h=(0,c.$)(i.useCallback(e=>u.subscribe(a.V.batchCalls(e)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f=i.useCallback((e,n)=>{u.mutate(e,n).catch(g)},[u]);if(h.error&&(0,p.L)(u.options.useErrorBoundary,[h.error]))throw h.error;return{...h,mutate:f,mutateAsync:h.mutate}}function g(){}}},function(e){e.O(0,[6492,6127,3935,7637,5767,3246,2888,9774,179],function(){return e(e.s=64470)}),_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.