1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7568],{600:e=>{e.exports={border:"make-reservation_border__MLJVf",borderRightTop:"make-reservation_borderRightTop__96X2L",border0:"make-reservation_border0__WOF1t",borderBoxShadow:"make-reservation_borderBoxShadow__J2b4p",textArea:"make-reservation_textArea__okgAR",fullBG:"make-reservation_fullBG__QJUu2",marginAuto:"make-reservation_marginAuto__sgFlS",btnLogin:"make-reservation_btnLogin__AMW4U",btnLoginDisable:"make-reservation_btnLoginDisable__syLTY",lineText:"make-reservation_lineText__wnIw3",lineTextComplete:"make-reservation_lineTextComplete__2AZTx",borderFull:"make-reservation_borderFull__MswsC",borderFullNone:"make-reservation_borderFullNone__Bv36_",borderRight:"make-reservation_borderRight__UPlQr",checkBox:"make-reservation_checkBox__9O44y",checkBoxAll:"make-reservation_checkBoxAll___YtSS",borderLine:"make-reservation_borderLine__V1W_U",required:"make-reservation_required__ADLnm",errorHiden:"make-reservation_errorHiden__r2f33",errorShow:"make-reservation_errorShow__r_Kqu",borderColor:"make-reservation_borderColor__RFoB0",btnSubmitReservation:"make-reservation_btnSubmitReservation__5tQTk",container:"make-reservation_container__CIS2C",container1:"make-reservation_container1__fzTdb",btnMakePayment:"make-reservation_btnMakePayment__C7F6g",btnCancelpayment:"make-reservation_btnCancelpayment__l_4p8",lastEmail:"make-reservation_lastEmail__6HnUE",borderBottom:"make-reservation_borderBottom__ELpMF",borderBottomComplete:"make-reservation_borderBottomComplete__mjNRS",collapse:"make-reservation_collapse__gaAiB",customSwiper:"make-reservation_customSwiper__4iE7e",customSwiper1:"make-reservation_customSwiper1__9qqJ3",rotate:"make-reservation_rotate__0mlXT",scrollbar:"make-reservation_scrollbar__uevC_",btnHover:"make-reservation_btnHover__J8FKH",btnHoverActive:"make-reservation_btnHoverActive__TCsCo",loading:"make-reservation_loading__7Ij7H",number:"make-reservation_number__qXOuY",circle:"make-reservation_circle__tp7fg",noSpinner:"make-reservation_noSpinner__opNxD",checkMTNumber:"make-reservation_checkMTNumber__YhNdN",unCheckMTNumber:"make-reservation_unCheckMTNumber__73P8w",customInputFormIems:"make-reservation_customInputFormIems__7ugTm",customInputForm:"make-reservation_customInputForm__nDXho",err:"make-reservation_err__hbiQ8",errInput:"make-reservation_errInput__WYV1n",table:"make-reservation_table__Ndiv0",errText:"make-reservation_errText__M2Awm",errBorder:"make-reservation_errBorder__8FvAJ",cancelPolicyWrapper:"make-reservation_cancelPolicyWrapper__6r_JN",hotelReservationNotice:"make-reservation_hotelReservationNotice__Ghj2k",customTableNote:"make-reservation_customTableNote__ju_DJ",center:"make-reservation_center__bCClf"}},6594:(e,l,a)=>{"use strict";a.d(l,{A:()=>S});var n=a(58214),o=a(17861),t=a.n(o),s=a(80633),r=a(47242),i=a(31623),c=a(92453),d=a(61704),m=a(87192),x=a(36658),u=a(15528),p=a(10614),h=a(84104),v=a(81917);let _=e=>{let{lineWidth:l,fontSizeIcon:a,calc:n}=e,o=e.fontSizeSM;return(0,h.mergeToken)(e,{tagFontSize:o,tagLineHeight:(0,x.unit)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(a).sub(n(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},N=e=>({defaultBg:new u.FastColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),f=(0,v.OF)("Tag",e=>(e=>{let{paddingXXS:l,lineWidth:a,tagPaddingHorizontal:n,componentCls:o,calc:t}=e,s=t(n).sub(a).equal(),r=t(l).sub(a).equal();return{[o]:Object.assign(Object.assign({},(0,p.dF)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:"".concat((0,x.unit)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,opacity:1,transition:"all ".concat(e.motionDurationMid),textAlign:"start",position:"relative",["&".concat(o,"-rtl")]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},["".concat(o,"-close-icon")]:{marginInlineStart:r,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),"&:hover":{color:e.colorTextHeading}},["&".concat(o,"-has-color")]:{borderColor:"transparent",["&, a, a:hover, ".concat(e.iconCls,"-close, ").concat(e.iconCls,"-close
1:hover")]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",["&:not(".concat(o,"-checkable-checked):hover")]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},["> ".concat(e.iconCls," + span, > span + ").concat(e.iconCls)]:{marginInlineStart:s}}),["".concat(o,"-borderless")]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(_(e)),N);var g=function(e,l){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>l.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>l.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a};let j=n.forwardRef((e,l)=>{let{prefixCls:a,style:o,className:s,checked:r,children:i,icon:c,onChange:d,onClick:x}=e,u=g(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:p,tag:h}=n.useContext(m.QO),v=p("tag",a),[_,N,j]=f(v),b=t()(v,"".concat(v,"-checkable"),{["".concat(v,"-checkable-checked")]:r},null==h?void 0:h.className,s,N,j);return _(n.createElement("span",Object.assign({},u,{ref:l,style:Object.assign(Object.assign({},o),null==h?void 0:h.style),className:b,onClick:e=>{null==d||d(!r),null==x||x(e)}}),c,n.createElement("span",null,i)))});var b=a(6275);let A=(0,v.bf)(["Tag","preset"],e=>(e=>(0,b.A)(e,(l,a)=>{let{textColor:n,lightBorderColor:o,lightColor:t,darkColor:s}=a;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(l)]:{color:n,background:t,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:s,borderColor:s},["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}}))(_(e)),N),I=(e,l,a)=>{let n=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}(a);return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(l)]:{color:e["color".concat(a)],background:e["color".concat(n,"Bg")],borderColor:e["color".concat(n,"Border")],["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}},y=(0,v.bf)(["Tag","status"],e=>{let l=_(e);return[I(l,"success","Success"),I(l,"processing","Info"),I(l,"error","Error"),I(l,"warning","Warning")]},N);var C=function(e,l){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>l.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>l.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(a[n[o]]=e[n[o]]);return a};let k=n.forwardRef((e,l)=>{let{prefixCls:a,className:o,rootClassName:x,style:u,children:p,icon:h,color:v,onClose:_,bordered:N=!0,visible:g}=e,j=C(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:I,tag:k}=n.useContext(m.QO),[S,T]=n.useState(!0),w=(0,s.A)(j,["closeIcon","closable"]);n.useEffect(()=>{void 0!==g&&T(g)},[g]);let E=(0,r.nP)(v),F=(0,r.ZZ)(v),D=E||F,P=Object.assign(Object.assign({backgroundColor:v&&!D?v:void 0},null==k?void 0:k.style),u),R=b("tag",a),[M,O,B]=f(R),L=t()(R,null==k?void 0:k.className,{["".concat(R,"-").concat(v)]:D,["".concat(R,"-has-color")]:v&&!D,["".concat(R,"-hidden")]:!S,["".concat(R,"-rtl")]:"rtl"===I,["".concat(R,"-borderless")]:!N},o,x,O,B),V=e=>{e.stopPropagation(),null==_||_(e),e.defaultPrevented||T(!1)},[,q]=(0,i.$)((0,i.d)(e),(0,i.d)(k),{closable:!1,closeIconRender:e=>{let l=n.createElement("span",{className:"".concat(R,"-close-icon"),onClick:V},e);return(0,c.fx)(e,l,e=>({onClick:l=>{var a;null==(a=null==e?void 0:e.onClick)||a.call(e,l),V(l)},className:t()(null==e?void 0:e.className,"".concat(R,"-close-icon"))}))}}),H="function"==typeof j.onClick||p&&"a"===p.type,G=h||null,Y=G?n.createElement(n.Fragment,null,G,p&&n.createElement("span",null,p)):p,K=n.createElement("span",Object.assign({},w,{ref:l,className:L,style:P}),Y,q,E&&n.createElement(A,{key:"preset",prefixCls:R}),F&&n.createElement(y,{key:"status",prefixCls:R}));return M(H?n.createElement(d.A,{component:"Tag"},K):K)});k.CheckableTag=j;let S=k},48569:(e,l,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/hotel/overseas/reservation",function(){return a(49602)}])},49602:(e,l,a)=>{"use strict";a.r(l),a.d(l,{__N_SSP:()=>eX,default:()=>eJ});var n=a(39942),o=a(26935),t=a(69768),s=a(6594),r=a(28029),i=a(69499),c=a(59533),d=a(36471),m=a(99593),x=a(59604),u=a(11360),p=a(39709),h=a(90228),v=a(75465),_=a(14160),N=a(43999),f=a.n(N),g=a(58214),j=a(600),b=a.n(j);let A=e=>{var l,a,N,j,A,I,y,C,k,S,T,w,E,F,D,P,R,M,O;let{onChangeStep:B,session:L,hotel:V}=e,[q,H]=(0,g.useState)(!1),{mappedTerms:G}=(0,x.hf)({kindSubTypeCodeKeys:[x.DC.HOTEL_CANCELLATION_POLICY]});return o.A,(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(b().fullBG," flex bg-[#F5F6F6] pt-[40px] pb-[35px]"),children:(0,n.jsxs)("div",{className:"".concat(b().marginAuto," flex justify-between"),children:[(0,n.jsxs)("div",{className:"flex ",children:[(0,n.jsx)(u.A,{alt:"",className:"rounded-l-lg",height:200,src:(0,p.y)(L.hotelInfo.mainImage,"200:200")||"",width:200}),(0,n.jsxs)("div",{className:"pl-[60px] flex flex-col justify-between",children:[(0,n.jsxs)("div",{children:[Number(null==(l=L.hotelInfo)?void 0:l.class)>0&&(0,n.jsx)("div",{className:"flex pt-[0px] pb-[15px]",children:(0,n.jsx)("div",{className:"leading-[15px]",children:(0,n.jsx)(s.A,{className:"font-semibold text-[#111111] text-[13px]",children:t.f.hotelClass.getValueByKey(null!=(R=null==(N=L.hotelInfo)||null==(a=N.class)?void 0:a.toString())?R:"","name")})})}),(0,n.jsx)("div",{className:"".concat(b().lineText," leading-[30px] w-[460px]"),children:(0,n.jsx)("span",{className:"text-[24px] text-[#111111] font-semibold ",children:null==(j=L.hotelInfo)?void 0:j.koreanName})}),(0,n.jsx)("div",{className:"leading-[23px] pt-[10px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[17px]",children:null==(A=L.hotelInfo)?void 0:A.englishName})})]}),(0,n.jsxs)("div",{className:"leading-[18px] ",children:[(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-medium",children:["ì²´í¬ì¸ : ",null==(I=L.hotelInfo)?void 0:I.checkInTime]})," ",(0,n.jsx)("span",{className:"px-[16px]",children:"|"}),(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-medium",children:["ì²´í¬ìì : ",null==(y=L.hotelInfo)?void 0:y.checkOutTime]}),parseInt((null==(C=L.hotelInfo)?void 0:C.mininumCheckinAge)||"0",10)?(0,n.jsxs)("p",{className:"text-[#111111] text-[16px] font-medium pt-[8px] mb-[0px]",children:["ìµì ì²´í¬ì¸ ëì´ : ","ë§ ".concat(parseInt((null==(k=L.hotelInfo)?void 0:k.mininumCheckinAge)||"0",10),"ì¸")]}):null]})]})]}),(0,n.jsx)("div",{className:"".concat(b().borderFullNone," max-w-[400px] bg-[#FFFFFF] h-[200px] rounded-lg"),children:(0,n.jsxs)("div",{className:"flex pb-[50px] w-[400px] ",children:[(0,n.jsxs)("div",{className:"".concat(b().borderRight," h-[200px] w-[50%] rounded-l-lg"),children:[(0,n.jsx)("div",{className:"text-center pt-[62px] leading-[19px] pb-[10px]",children:(0,n.jsx)("span",{className:"text-[#888888] text-[14px] font-semibold",children:"ì²´í¬ì¸/ì²´í¬ìì"})}),(0,n.jsx)("div",{className:"text-center leading-[20px] pb-[8px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-semibold",children:[f()(L.hotelParams.cin).format("MM.DD(ddd)")," ~ ",f()(L.hotelParams.cout).format("MM.DD(ddd)")]})}),(0,n.jsx)("div",{className:"text-center leading-[19px]",children:(0,n.jsxs)("span",{className:"text-[#009C75] text-[16px] font-semibold",children:[L.hotelParams.cdays,"ë°"]})})]}),(0,n.jsxs)("div",{className:"".concat(b().borderRightTop," h-[200px] w-[50%] rounded-r-lg"),children:[(0,n.jsx)("div",{className:"text-center pt-[62px] pb-[24px] leading-[19px]",children:(0,n.jsx)("span",{className:"text-[#888888] text-[14px] font-semibold",children:"ê°ì¤ ë° ì¸ì"})}),(0,n.jsxs)("div",{className:"justify-center leading-[20px] flex",children:[(0,n.jsx)("div",{className:"pt-[0px] pr-[5px] ",children:(0,n.jsx)(r.A,{alt:"",className:" w-auto",preview:!1,src:"/icons/icon_mypage_20.svg"})}),(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-semibold",children:["ê°ì¤",null==(S=L.hotelParams.occupancies)?void 0:S.length,", ",0!==L.hotelParams.countAdult?"ì±ì¸":"",0!==L.hotelParams.countAdult?L.hotelParams.countAdult:"",0!==L.hotelParams.countChild?", ìë":"",0!==L.hotelParams.countChild?L.hotelParams.countChild:""]})]})]})]})})]})}),(0,n.jsx)("div",{className:"leading-[34px] mt-[60px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"ìì½ê°ì¤"})}),(0,n.jsx)(i.A,{children:L.hotelParams.occupancies.map((e,l)=>{var a;return(0,n.jsx)(c.A,{className:"!max-w-[32%] mb-[20px] rounded-xl\n ".concat(2!==l&&5!==l&&8!==l&&" !mr-[24px]"),span:8,children:(0,n.jsxs)("div",{className:"".concat(b().border," mt-[15px] px-[20px] py-[20px] rounded-xl"),children:[(0,n.jsxs)("div",{className:"flex justify-between pb-[16px]",children:[(0,n.jsx)("div",{className:"leading-[16
1px]",children:(0,n.jsxs)("span",{className:"text-[#888888] text-[14px]",children:["ê°ì¤ì ë³´ ",l+1]})}),(0,n.jsx)("div",{className:"leading-[16px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[14px] font-semibold",children:[(null==e?void 0:e.adult)>0&&(null==e?void 0:e.childAges.length)>0?"ì±ì¸ ".concat(null==e?void 0:e.adult,", "):"ì±ì¸ ".concat(null==e?void 0:e.adult),(null==e?void 0:e.childAges.length)>0&&" ìë ".concat(null==e?void 0:e.childAges.length," [").concat(e.childAges.filter(e=>null!==e).map(e=>null==e?void 0:e.toString().concat("ì¸")),"]")]})})]}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{className:"leading-[25px]",children:(0,n.jsx)("span",{className:"text-[18px] text-[#111111] font-semibold",children:null==(a=L.hotelRoom.roomTypeName)?void 0:a.toUpperCase()})})}),(0,n.jsxs)("div",{className:"pt-[16px] flex",children:[(0,n.jsx)(r.A,{alt:"",className:"mt-[2px]",preview:!1,src:"/icons/icon_meal_14.svg",width:14}),(0,n.jsx)("div",{className:"pl-[5px] pr-[10px] leading-[21px]",children:(0,n.jsx)("span",{className:"font-medium text-[14px] text-[#111111]",children:V.textMeal})})]}),(0,n.jsxs)("div",{className:"pt-[4px] flex",children:[(0,n.jsx)(_.zD,{className:"mt-[3px]",height:14,width:14,strokeWidth:1.1,color:"#111"}),(0,n.jsx)("div",{className:"pl-[5px] pr-[10px] leading-[20px] w-[65%]",children:(0,n.jsx)("span",{className:"font-medium text-[14px] text-[#111111]",children:V.textCancelTime})})]})]})},l)})}),(0,n.jsxs)(i.A,{children:[(0,n.jsx)(c.A,{className:"!max-w-[49%] rounded-xl !mr-[20px]",span:12,children:(0,n.jsxs)("div",{className:"bg-[#F5F6F6] pt-[24px] pb-[42px] px-[24px] rounded-lg",children:[(0,n.jsx)("div",{className:"leading-[19px] ",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-semibold",children:"í¬í¨ì¬í"})}),(0,n.jsx)("div",{className:"leading-[16px] pt-[12px]",children:(0,n.jsx)("span",{className:"text-[#555555] text-[14px]",dangerouslySetInnerHTML:{__html:null!=(M=null==(T=L.hotelInfo)?void 0:T.includeNote)?M:""}})})]})}),(0,n.jsx)(c.A,{className:"!max-w-[49%] rounded-xl",span:12,children:(0,n.jsxs)("div",{"aria-hidden":!0,className:"bg-[#F5F6F6] pt-[24px] pb-[20px] px-[24px] rounded-lg",children:[(0,n.jsx)("div",{className:"leading-[19px] ",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-semibold",children:"íì§ ì¶ê° ì§ë¶ ì¬í"})}),(0,n.jsxs)("div",{className:"flex flex-row space-x-[10px] justify-between mt-[12px]",children:[(0,n.jsx)("div",{className:"leading-[19px]",children:(0,n.jsx)("span",{className:"text-[13px] text-[#555555] font-regular w-full ".concat(q?"":"line-clamp-2"," "),dangerouslySetInnerHTML:{__html:(null==(w=L.hotelInfo)?void 0:w.requirePriceDescription)===""?"ìì":null!=(O=null==(E=L.hotelInfo)?void 0:E.requirePriceDescription)?O:""}})}),(null==(F=L.hotelInfo)?void 0:F.requirePriceDescription)!==""&&(0,n.jsx)("div",{className:"".concat(q?"h-auto":"!h-[35px]"," flex flex-col justify-end"),children:(0,n.jsx)(r.A,{alt:"icon-error",className:"flex flex-end cursor-pointer",height:26,onClick:()=>{H(!q)},preview:!1,src:"/icons/tour-pass-vehicle/icon__18.svg",style:{transform:q?"rotate(180deg)":"rotate(0)",transition:"all 0.4s ease"},width:26})})]})]})})]}),(0,n.jsx)("div",{className:"bg-[#111111] h-[1px] mt-[40px] mb-[40px]"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"leading-[19px] text-end",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[18px] font-medium",children:[f()(L.hotelParams.cout).diff(f()(L.hotelParams.cin),"days"),"ë°ê¸°ì¤"]})}),(0,n.jsxs)("div",{className:"flex justify-between py-[5px]",children:[(0,n.jsx)("div",{className:"leading-[20px]]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[20px] font-semibold",children:[L.hotelParams.occupancies.length,"ê°ì ê°ì¤ ì´ ê¸ì¡"]})}),(0,n.jsx)("div",{className:"pl-[5px] leading-[26px] flex",children:(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)(d.A,{value:parseInt(L.hotelRoom.price||"",10)||0,valueStyle:{fontSize:26,marginTop:-6,color:"#009C75",fontWeight:"bold"}}),(0,n.jsx)("span",{className:"font-medium text-[22px] text-[#111111] mt-[2px]",children:"ì"})]})})]})]}),(0,n.jsx)("div",{className:"bg-[#D3DBD9] h-[1px] mt-[25px] mb-[30px]"}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"leading-[19px] pb-[15px]",children:(0,n.jsx)("span",{className:"text-[#888888] text-[16px] font-semibold",children:"ìì½ì ìì¬í"})}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:b().cancelPolicyWrapper,children:(null==G||null==(D=G[0])?void 0:D.contents)&&(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:"".concat(G[0].contents.replaceAll("#{cancellation_guide}","".concat((null==(P=V.textCancelTime)?void 0:P.includes("ì ì¡ íë¶ ë¶ê°"))?V.textCancelTime:"ë¬´ë£ ì·¨ìê°ë¥ì¼ : ".concat((0,v.A)(V.textCancelTime).replace("무ë£ì·¨ì","").replace("17
1ì",'<span class="text-[#ED4949]">17ì</span>')))))}})})})]}),(0,n.jsx)("div",{className:"flex justify-center pt-[80px] pb-[100px]",children:(0,n.jsx)("div",{className:"".concat(b().btnLogin," w-[176px]"),children:(0,n.jsx)(m.Ay,{className:"w-[100%]",onClick:()=>B(h.l,h.DN),children:"ë¤ìë¨ê³"})})})]})};var I=a(92395),y=a(58975),C=a(14406),k=a(75360),S=a(99084),T=a(8346),w=a(51),E=a(68887),F=a(76194),D=a(17760),P=a(97014),R=a(17930),M=a(19894),O=a(26214),B=a(16061),L=a(71921),V=a(48587),q=a(55226),H=a(6556),G=a(96771),Y=a(38798),K=a(14937),z=a(61017),U=a(59558),W=a(64306),X=a(98626),J=a(70488),Q=a(79307),Z=a(20996),$=a(86448),ee=a(68639),el=a(30558),ea=a(19895),en=a(44975),eo=a(32493),et=a(11772),es=a(30221),er=a(49923),ei=a(43321);let ec=e=>{var l,a,o,t,s,m,x,u,p,h,v,N,j,A,I,y;let{session:C}=e,[k,S]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{},[k]),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"".concat(b().fullBG," flex bg-[#F5F6F6] py-[40px]"),children:(0,n.jsxs)("div",{className:"".concat(b().marginAuto," justify-between"),children:[(0,n.jsxs)("div",{className:" ",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"".concat(b().lineText," leading-[30px] "),children:(0,n.jsx)("span",{className:"text-[24px] text-[#111111] font-semibold ",children:null==(l=C.hotelInfo)?void 0:l.koreanName})}),(0,n.jsx)("div",{className:"leading-[23px] pt-[10px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[17px]",children:[" ",null==(a=C.hotelInfo)?void 0:a.englishName]})})]}),(0,n.jsxs)("div",{className:"leading-[18px]",children:[(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-medium pr-[15px]",children:["ì²´í¬ì¸ : ",null==(o=C.hotelInfo)?void 0:o.checkInTime]})," ",(0,n.jsx)("span",{className:"text-[#AAAAAA]",children:"|"}),(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-medium pl-[15px]",children:["ì²´í¬ìì : ",null==(t=C.hotelInfo)?void 0:t.checkOutTime]}),parseInt((null==(s=C.hotelInfo)?void 0:s.mininumCheckinAge)||"0",10)?(0,n.jsxs)("p",{className:"text-[#111111] text-[16px] font-medium pt-[8px]",children:["ìµì ì²´í¬ì¸ ëì´ : ","ë§ ".concat(parseInt((null==(m=C.hotelInfo)?void 0:m.mininumCheckinAge)||"0",10),"ì¸")]}):null]})]}),(0,n.jsxs)("div",{className:"w-[100%] flex justify-between",children:[(0,n.jsxs)("div",{className:"".concat(b().borderFull," bg-[#ffffff] mt-[20px] py-[20px] px-[24px] rounded-lg min-w-[50%] max-w-[70%] mr-[20px]"),children:[(0,n.jsx)("div",{className:"leading-[20px] pb-[5px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[17px] font-semibold",children:null==(u=C.hotelRoom)||null==(x=u.roomTypeName)?void 0:x.toUpperCase()})}),(0,n.jsxs)("div",{className:"leading-[20px] font-medium",children:[(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] pr-[10px]",children:[f()(C.hotelParams.cin).format("MM.DD")," ~"," ",f()(C.hotelParams.cout).format("MM.DD")]}),(0,n.jsxs)("span",{className:"text-[#009C75] text-[16px]",children:[C.hotelParams.cdays,"ë°"]}),(0,n.jsx)("span",{className:"px-[12px]",children:" | "}),(0,n.jsx)(r.A,{alt:"",className:"mt-[4px]",height:20,preview:!1,src:"/icons/icon_mypage_20.svg"}),(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] pl-[5px]",children:["ê°ì¤",null==(p=C.hotelParams.occupancies)?void 0:p.length,","," ",0!==C.hotelParams.countAdult?"ì±ì¸":"",0!==C.hotelParams.countAdult?C.hotelParams.countAdult:"",0!==C.hotelParams.countChild?", ìë":"",0!==C.hotelParams.countChild?"".concat(C.hotelParams.countChild," [").concat(C.hotelParams.occupancies.map(e=>e.childAges).flat().filter(e=>null!==e).map(e=>e.toString().concat("ì¸")),"]"):""]})]})]}),(0,n.jsx)("div",{className:"leading-[20px] text-end relative w-[30%]",children:!k&&(0,n.jsx)("div",{className:"absolute bottom-[-4px] right-0 flex",children:(0,n.jsxs)("span",{className:"flex",children:[(0,n.jsx)("span",{className:"font-semibold text-[20px] leading-[20px] text-[#111111] mr-[24px]",children:"ì´ ê¸ì¡"}),(0,n.jsx)(d.A,{value:parseInt(C.hotelRoom.price||"",10)||0,valueStyle:{fontSize:22,marginTop:-10,color:"#009C75",fontWeight:"700"}}),(0,n.jsx)("span",{className:"font-medium text-[18px] text-[#111111]",children:"ì"})]})})})]})]}
1),k&&(0,n.jsxs)("div",{children:[(0,n.jsx)(i.A,{className:"w-[100%]",children:C.hotelParams.occupancies.map((e,l)=>(0,n.jsx)(c.A,{className:"w-[185px] ".concat(3!==l&&" !mr-[18px]"," mt-[20px] mb-[20px]"),children:(0,n.jsxs)("div",{className:"".concat(b().border," bg-[#FFFFFF] px-[20px] pt-[20px] pb-[37px] rounded-lg"),children:[(0,n.jsx)("div",{className:"leading-[16px]",children:(0,n.jsxs)("span",{className:"text-[#888888] text-[14px] font-medium",children:["ê°ì¤ ",l+1]})}),(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)(r.A,{alt:"",height:40,preview:!1,src:"/icons/icon_mypage_40.svg"})}),(0,n.jsx)("div",{className:"leading-[18px] pt-[9px] text-center",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[15px] font-semibold",children:[(null==e?void 0:e.adult)!==0?"ì±ì¸":"",(null==e?void 0:e.adult)!==0?null==e?void 0:e.adult:"",(null==e?void 0:e.childAges.length)!==0?", ìë":"",(null==e?void 0:e.childAges.length)!==0?null==e?void 0:e.childAges.length:""]})})]})},e.roomId))}),(0,n.jsxs)(i.A,{className:"!max-w-[1200px]",children:[(0,n.jsx)(c.A,{className:"!max-w-[49%] rounded-xl !mr-[20px]",span:12,children:(0,n.jsxs)("div",{className:"bg-[#E4E8E7] pt-[24px] pb-[42px] px-[24px] rounded-lg",children:[(0,n.jsx)("div",{className:"leading-[19px] ",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-semibold",children:"í¬í¨ì¬í"})}),(0,n.jsx)("div",{className:"leading-[16px] pt-[12px]",children:(0,n.jsx)("span",{className:"text-[#555555] text-[14px]",dangerouslySetInnerHTML:{__html:null!=(I=null==(h=C.hotelInfo)?void 0:h.includeNote)?I:""}})})]})}),(0,n.jsx)(c.A,{className:"!max-w-[49%] rounded-xl",span:12,children:(0,n.jsxs)("div",{className:"bg-[#E4E8E7] pt-[24px] pb-[42px] px-[24px] rounded-lg",children:[(0,n.jsx)("div",{className:"leading-[19px] ",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-semibold",children:"íì§ ì¶ê° ì§ë¶ ì¬í"})}),(0,n.jsx)("div",{className:"leading-[16px] pt-[12px] ",children:(0,n.jsx)("span",{className:"text-[#555555] text-[13px] font-regular",dangerouslySetInnerHTML:{__html:(null==(v=C.hotelInfo)?void 0:v.requirePriceDescription)===""?"ìì":null!=(y=null==(N=C.hotelInfo)?void 0:N.requirePriceDescription)?y:""}})})]})})]}),(0,n.jsx)("div",{className:"".concat(b().borderBottom," mt-[40px] mb-[40px]")}),(0,n.jsxs)("div",{className:"mb-[-10px]",children:[(0,n.jsx)("div",{className:"leading-[19px] text-end",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[18px] font-medium",children:[f()(C.hotelParams.cout).diff(f()(C.hotelParams.cin),"days"),"ë°ê¸°ì¤"]})}),(0,n.jsxs)("div",{className:"flex justify-between py-[5px]",children:[(0,n.jsx)("div",{className:"leading-[20px]]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[20px] font-semibold",children:[null==(j=C.hotelParams.occupancies)?void 0:j.length,"ê°ì ê°ì¤ ì´ ê¸ì¡"]})}),(0,n.jsx)("div",{className:"pl-[5px] leading-[26px] flex",children:(0,n.jsxs)("span",{className:"flex",children:[(0,n.jsx)(d.A,{value:parseInt((null==(A=C.hotelRoom)?void 0:A.price)||"",10)||0,valueStyle:{fontSize:26,marginTop:-6,color:"#009C75",fontWeight:"bold"}}),(0,n.jsx)("span",{className:"font-medium text-[22px] text-[#111111] mt-[2px]",children:"ì"})]})})]})]})]})]})}),(0,n.jsx)("div",{className:"pt-[24px] pb-[60px] text-end",children:(0,n.jsx)("div",{className:"inline-flex items-center leading-[19px] cursor-pointer",onClick:()=>{S(!k)},children:k?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-[#888888] text-[16px] pr-[8px]",children:"ìì¸ë³´ê¸° ì 기"}),(0,n.jsx)(r.A,{alt:"",className:"mb-[-3px]",preview:!1,src:"/icons/icon_up_18.svg"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-[#888888] text-[16px] pr-[8px]",children:"ìì¸ë³´ê¸°"}),(0,n.jsx)(_.H7,{width:12,height:12,color:"#888",strokeWidth:1.7})]})})})]})})};var ed=a(67692),em=a(4021),ex=a(24374),eu=a(17629);let{Panel:ep}=ex.A,eh=e=>{var l;let{session:a,hotel:o,onCheckAllTermsCondition:t}=e,[s]=eu.A.useForm(),{showPopUp:i}=(0,K.G)(),[c,d]=(0,g.useState)([]),[m,u]=(0,g.useState)([]),[p,h]=(0,g.useState)(!1),{mappedTerms:v}=(0,x.hf)({kindSubTypeCodeKeys:[x.DC.HOTEL_PRECAUTIONS_FOR_RESERVATION]}),[N,{data:j}]=(0,ed.rh)({});(0,g.useEffect)(()=>{N({contentAndTermsRequest:{kindSubTypeCodeKeys:["CT2094","CT2095","CT2096","CT2097","CT2098","CT2099","CT2100","CT2054"]}})},[]);let A=(0,g.useMemo)(()=>{var e,l,a,n;let o=["CT2094","CT2095","CT2096"],t=["CT2097","CT2098","CT2099","CT2100"];return[{title:"ì½ê´ ëì",list:null==j||null==(l=j.result)||null==(e=l.filter(e=>{var l;return o.includes(null!=(l=null==e?void 0:e.kindSubTypeCodeKey)?l:"")}))?void 0:e.map((e,l)=>({...e,id:l+1,contents:e.contents}))},{title:"ê°ì¸ì ë³´ ìì§ ë° ì´ì© ëì",list:null==j||null==(n=j.result)||null==(a=n.filter(e=>{var l;return t.includes(null!=(l=null==e?void 0:e.kindSubTypeCodeKey)?l:"")}))?void 0:a.map((e,l)=>({...e,id:l+4}))}]},[j]),I=(e,l)=>{let a;u(a=m.find(e=>e===l)?m.filter(e=>e!==l):[...m,l]),d(a)},y=(0,g.useMemo)(()=>null==A?void 0:A.map(e=>e.list).flat().filter(e=>void 0!==e).map(e=>{var l;return{id:null!=(l=null==e?void 0:e.no)?l:e.id,title:null==e?void 0:e.kindSubTypeCodeName,content:null==e?void 0:e.contents,isRequired:null==e?void 0:e.isReqTerms}}),[A]),C=(0,g.useMemo)(()=>null==y?void 0:y.filter(e=>!0===e.isRequired),[y]);return(0,g.useEffect)(()=>{y&&0!==y.length&&(m.length===(null==y?void 0:y.length)?(t&&t(!0),h(!0)):(null==C?void 0:C.every(e=>m.includes(e.id)))?(t&&t(!0),h(!1)):(h(!1),t&&t(!1)))},[c,p,y]),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"flex w-[100%] mb-[100px]",children:[(0,n.jsxs)("div",{className:"w-[50%] pr-[80px]",children:[(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"ì½ê´ëì"}),(0,n.jsx)("div",{className:"pt-[30px]",children:(0,n.jsxs)(eu.A,{autoComplete:"off",form:s,children:[(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{className:"".concat(b().checkBoxAll),children:(0,n.jsx)(G.A,{checked:p,id:"checkAllTerms",onChange:e=>{if(h(e.target.checked),e.target.checked){let e=(null==y?void 0:y.map(e=>e.id))||[];u(e),d(e)}else u([]),d([])}})}),(0,n.jsx)("div",{className:"pl-[15px] pb-[5px] mt-[3px]",children:(0,n.jsx)("label",{className:"leading-[20px] pb-[0px] cursor-pointer",htmlFor:"checkAllTerms",children:(0,n.jsx)("span",{className:"text-[#111111] text-[18px] font-semibold",children:"ì ì²´ëì"})})})]}),null==A?void 0:A.slice(0,2).map((e,l)=>{var a;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"bg-[#D3DBD9] h-[1px] mt-[30px] mb-[30px]"}),(0,n.jsx)("div",{className:"leading-[20px] pb-[20px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[18px] font-semibold",children:e.title})}),null==(a=e.list)?void 0:a.filter(e=>"number"==typeof e.no).map((e,l)=>{var a,o;return(0,n.jsxs)("div",{className:"flex pb-[15px] justify-between",children:[(0,n.jsxs)("div",{className:"leading-[20px] flex",children:[(0,n.jsx)("span",{className:"".concat(b().checkBox," pt-[0px] pr-[10px]"),children:(0,n.jsx)(eu.A.Item,{name:null!=(a=e.kindSubTypeCodeKey)?a:e.no,noStyle:!0,children:(0,n.jsx)(G.A,{checked:c.includes(e.no),onChange:l=>I(l,e.no),value:c})})}
1),(0,n.jsxs)("div",{"aria-hidden":!0,className:"pt-[2px] cursor-pointer",onClick:l=>I(l,e.no),children:[(null==e?void 0:e.isReqTerms)?(0,n.jsx)("span",{className:"text-[#009C75] text-[15px] font-medium",children:"[íì]"}):(0,n.jsx)("span",{className:"text-[#111111] text-[15px]",children:"[ì í]"}),(0,n.jsxs)("span",{className:"text-[#888888] text-[15px]",children:[" ",null==e?void 0:e.kindSubTypeCodeName]})]})]}),(0,n.jsx)("div",{className:"pt-[2px] cursor-pointer",children:(0,n.jsx)(r.A,{alt:"",height:20,onClick:()=>{var l,a;i(er.A,{title:null!=(a=null==y||null==(l=y.find(l=>l.id===e.no))?void 0:l.title)?a:"",content:(0,n.jsx)(em.A,{height:"max-h-[60vh]",list:[e],width:"w-[90vw] max-w-[620px] min-w-[320px]"})})},preview:!1,src:"/icons/icon__20.svg",width:20})})]},null!=(o=e.kindSubTypeCodeKey)?o:l)}),l>0&&(0,n.jsx)("div",{className:"bg-[#D3DBD9] h-[1px] mt-[15px] mb-[30px]"})]},e.title)}),(0,n.jsx)("div",{className:"leading-[25px] pt-[15px]",children:"ì ì¡ íë¶ ë¶ê°"===o.textCancelTime?(0,n.jsx)("span",{className:"text-[#ED4949] text-[15px]",children:"* ì ì¡íë¶ ë¶ê°(ì ì¼ì ì·¨ì/ë³ê²½/íë¶ë¶ê°) ìíì
ëë¤."}):(0,n.jsxs)("span",{className:"text-[#ED4949] text-[15px]",children:["*"," ",null==(l=""===o.bookingExpiredDate?f()().format("YYYY.MM.DD"):f()(o.bookingExpiredDate).format("YYYY.MM.DD"))?void 0:l.replaceAll("-",".")," ","17ìê¹ì§ ë¬´ë£ ì·¨ì ê°ë¥í©ëë¤."]})})]})})]}),(0,n.jsxs)("div",{className:"".concat(b().collapse," w-[50%] pl-[80px]"),children:[(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"ì ìì¬í"}),v?(0,n.jsx)("div",{className:"pt-[20px]",children:v.map(e=>{if(e.clauseGuideBodyId===x.DC.HOTEL_PRECAUTIONS_FOR_RESERVATION){var l;return(0,n.jsx)(ex.A,{defaultActiveKey:e.sortOrder,expandIconPosition:"end",children:(0,n.jsx)(ep,{className:"font-bold",header:e.bodyTitle,children:(0,n.jsxs)("div",{className:"leading-[19px] mb-[10px]",children:[(0,n.jsx)("div",{className:"".concat(b().hotelReservationNotice),dangerouslySetInnerHTML:{__html:"".concat(null==e?void 0:e.contents)}}),(0,n.jsx)("div",{className:"text-[13px] text-[#555555] font-normal leading-[19px]",dangerouslySetInnerHTML:{__html:null!=(l=a.hotelInfo.requirePriceDescription)?l:""}})]})},e.sortOrder)},e.sortOrder)}})}):(0,n.jsxs)("div",{className:"flex flex-col space-y-[20px] mt-[100px] items-center mx-auto",children:[(0,n.jsx)(_._f,{width:68,height:68}),(0,n.jsx)("div",{className:"flex flex-col justify-center items-center text-[15px] leading-[21px] font-normal text-[#AAAAAA]",children:(0,n.jsx)("span",{children:"íµì§ ìì"})})]}),(0,n.jsx)("div",{})]})]})})};var ev=a(78236),e_=a(87009);let eN=e=>{let{Item:l}=O.A,{onChange:a,onChangeTime:o,agreement:t="",isCheckMTNumber:s}=e,[r,d]=(0,g.useState)([]),[m,x]=(0,g.useState)(!1),u=[];for(let e=18;e<25;e+=1)u.push({label:"".concat(e,":00"),value:"".concat(e,":00")});for(let e=1;e<3;e+=1)u.push({label:"+1ì¼ 0".concat(e,":00"),value:"+1ì¼ ".concat(e,":00")});(0,g.useEffect)(()=>{""!==t&&x(!0)},[t]);let p=(0,n.jsxs)("p",{children:["모ëí¬ì´ íìì´ ìëìëë¤. ê°ì
í ë§ì´íì´ì§ > ",(0,n.jsx)("br",{})," ëì ìì½ë´ììì ì¡°í í ë±ë¡ íìë©´ ë§ì¼ë¦¬ì§ ì 립ì ë°ì ì ììµëë¤."]}),v=(0,n.jsx)("p",{children:"íì ì¸ì¦ì´ ìë£ëììµëë¤"}),_=(0,n.jsx)("p",{children:"í¬ì´ë§ì¼ë¦¬ì§ íìì ë³´ì ì¼ì¹ íì§ ììµëë¤. ë§ì¼ë¦¬ì§ë²í¸ íì¸ í ì¬ì
ë ¥ë¶íë립ëë¤."});return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"pb-[12px] leading-[32px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-semibold",children:"MTë²í¸ "})}),(0,n.jsx)("div",{className:"".concat(b().required," text-[#111111] font-semibold flex"),children:(0,n.jsx)("div",{className:"w-[100%]",children:(0,n.jsx)(l,{name:"mt_number",noStyle:!0,children:(0,n.jsx)(q.A,{className:"".concat(s?b().checkMTNumber:b().unCheckMTNumber),readOnly:!0})})})}),(0,n.jsx)("div",{className:"leading-[20px] pt-[60px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"ìì²ì¬í(ì í)"})}),(0,n.jsx)("div",{className:"pb-[10px] leading-[20px] pt-[30px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-semibold",children:"ììëì°© ìì ìê° "})}),(0,n.jsx)("div",{className:"".concat(b().required," w-[100%]"),children:(0,n.jsx)(l,{children:(0,n.jsx)(H.A,{onChange:e=>{o(e)},options:u,placeholder:"미ì "})})}),(0,n.jsx)("div",{className:"pb-[20px] leading-[20px] pt-[20px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-semibold",children:"ì¶ê° ìì²ì¬í "})}),(0,n.jsx)("div",{className:"".concat(b().checkBox," leading-[20px]"),children:(0,n.jsx)(i.A,{children:h.N.map(e=>(0,n.jsx)(c.A,{className:"pb-[8px]",span:12,children:(0,n.jsx)(G.A,{onChange:()=>(e=>{if(r.find(l=>l===e)){d([...r.filter(l=>l!==e)]);
1let l=r.indexOf(e);r.splice(l,1),a(r)}else d([...r,e]),r.push(e),a(r)})(e.value),value:e.value,children:e.value})},e.id))})}),(0,n.jsx)("div",{className:"pt-[10px]",children:(0,n.jsx)(l,{name:"note_request",noStyle:!0,children:(0,n.jsx)(ev.A,{autoSize:{minRows:7,maxRows:7},className:"".concat(b().textArea," !rounded-lg focus:!border-[#009c75]"),placeholder:"'ìì´'í¹ì 'í¬ì í¸í
ì íì§ ì¸ì´'ë¡ ìì±í´ 주ì¸ì."})})}),(0,n.jsx)("div",{className:"pt-[10px]",children:h.fk.map(e=>(0,n.jsxs)("div",{className:"flex ",children:[(0,n.jsx)("span",{className:"pr-[5px] text-[#888888] text-[12px]",children:"*"}),(0,n.jsx)("div",{className:"leading-[16px]",children:(0,n.jsx)("span",{className:"text-[#888888] text-[12px]",children:e.title})})]},e.id))}),m&&(0,n.jsx)(e_.A,{content:"N"===t?p:"H"===t?_:v,customStyleAlert:"!pr-[10px] !pl-[10px] pt-[50px] pb-[40px]",handleCancel:()=>void 0,handleOk:()=>{x(!1)},isCancel:!1,isModalOpen:m})]})},ef=e=>{let{requireName:l,changeRequireName:a}=e,{Item:o}=O.A;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"leading-[20px] pt-[100px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"íê³µ ì¤ì¼ì¤"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"pt-[30px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[15px] font-semibold",children:["ì¶ë° íê³µí¸ / íì§ ëì°©ì¼ì ",(0,n.jsx)("span",{className:"text-primary2",children:"*"})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"".concat(l.dlcAirname&&b().borderColor," pt-[5px]"),children:(0,n.jsx)(o,{name:"dlcAirname",required:!0,rules:Q.g.ENGLISH_NAME_NO_MSS,children:(0,n.jsx)(q.A,{maxLength:20,onBlur:e=>a(e,"dlcAirname","email"),placeholder:"ì) OZ111"})})}),(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[0px] pb-[20px] flex flex-col",children:l.dlcAirname&&(0,n.jsx)("span",{className:"".concat(l.dlcAirname?"text-[#ED4949]":"text-[#009C75]"," text-[12px]"),children:"* ì¶ë° íê³µí¸ì ì
ë ¥í´ ì£¼ì¸ì"})})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"mt-[-12px] flex",children:[(0,n.jsx)(o,{className:"w-[64%] !mr-[20px] ".concat(l.dlcDate&&b().borderColor),name:"dlcDate",required:!0,rules:Q.g.CONTACT_NUMBERS_RESERVATION,children:(0,n.jsx)(q.A,{maxLength:8,onBlur:e=>a(e,"dlcDate","email"),onKeyPress:e=>(0,ee.A)(e,9),placeholder:"ì) 20201215"})}),(0,n.jsx)(o,{className:"".concat(b().center," ").concat(l.dlcHour&&b().borderColor),name:"dlcHour",required:!0,rules:Q.g.CONTACT_NUMBERS_RESERVATION,children:(0,n.jsx)(q.A,{className:"!max-w-[52px] !p-[14px]",maxLength:2,onBlur:e=>a(e,"dlcHour","email"),onKeyPress:e=>(0,ee.A)(e,3),placeholder:"00"})}),(0,n.jsx)("span",{className:"mr-[15px] ml-[10px] mt-[15px] text-[14px] text-[#111111] font-medium",children:"ì"}),(0,n.jsx)(o,{className:"".concat(b().center," ").concat(l.dlcMinutes&&b().borderColor),name:"dlcMinutes",required:!0,rules:Q.g.CONTACT_NUMBERS_RESERVATION,children:(0,n.jsx)(q.A,{className:"!max-w-[52px] !p-[14px]",maxLength:2,onBlur:e=>a(e,"dlcMinutes","email"),onKeyPress:e=>(0,ee.A)(e,3),placeholder:"00"})}),(0,n.jsx)("span",{className:"ml-[10px] mt-[15px] text-[14px] text-[#111111] font-medium",children:"ë¶"})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[0px] pb-[20px] flex flex-col",children:l.dlcDate&&(0,n.jsx)("span",{className:"".concat(l.dlcDate?"text-[#ED4949]":"text-[#009C75]"," text-[12px]"),children:"* ì¶ë°ì¼ì ì
ë ¥í´ ì£¼ì¸ì."})}),(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[-12px] pb-[20px] flex flex-col",children:(l.dlcHour||l.dlcMinutes)&&(0,n.jsx)("span",{className:"text-[#ED4949] text-[12px]",children:"* ì¶ë°ìê°ì ì
ë ¥í´ì£¼ì¸ì."})})]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"pt-[10px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[15px] font-semibold",children:["ê·êµ íê³µí¸ / íì§ ì¶ë°ì¼ì ",(0,n.jsx)("span",{className:"text-primary2",children:"*"})]})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"".concat(l.alcAirname&&b().borderColor," pt-[12px]"),children:(0,n.jsx)(o,{name:"alcAirname",required:!0,rules:Q.g.ENGLISH_NAME_NO_MSS,children:(0,n.jsx)(q.A,{maxLength:20,onBlur:e=>a(e,"alcAirname","email"),placeholder:"ì) OZ111"})})}
1),(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[0px] pb-[20px] flex flex-col",children:l.alcAirname&&(0,n.jsx)("span",{className:"".concat(l.alcAirname?"text-[#ED4949]":"text-[#009C75]"," text-[12px]"),children:"* ì¶ë° íê³µí¸ì ì
ë ¥í´ ì£¼ì¸ì"})})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"mt-[-12px] flex",children:[(0,n.jsx)(o,{className:"w-[64%] !mr-[20px] ".concat(l.alcDate&&b().borderColor),name:"alcDate",required:!0,rules:Q.g.CONTACT_NUMBERS_RESERVATION,children:(0,n.jsx)(q.A,{maxLength:20,onBlur:e=>a(e,"alcDate","email"),onKeyPress:e=>(0,ee.A)(e,8),placeholder:"ì) 20201215"})}),(0,n.jsx)(o,{className:"".concat(b().center," ").concat(l.alcHour&&b().borderColor),name:"alcHour",required:!0,rules:Q.g.CONTACT_NUMBERS_RESERVATION,children:(0,n.jsx)(q.A,{className:"!max-w-[52px] !p-[14px]",maxLength:2,onBlur:e=>a(e,"alcHour","email"),onKeyPress:e=>(0,ee.A)(e,3),placeholder:"00"})}),(0,n.jsx)("span",{className:"mr-[15px] ml-[10px] mt-[15px] text-[14px] text-[#111111] font-medium",children:"ì"}),(0,n.jsx)(o,{className:"".concat(b().center," ").concat(l.alcHour&&b().borderColor),name:"alcMinutes",required:!0,rules:Q.g.CONTACT_NUMBERS_RESERVATION,children:(0,n.jsx)(q.A,{className:"!max-w-[52px] !p-[14px]",maxLength:2,onBlur:e=>a(e,"alcMinutes","email"),onKeyPress:e=>(0,ee.A)(e,3),placeholder:"00"})}),(0,n.jsx)("span",{className:"ml-[10px] mt-[15px] text-[14px] text-[#111111] font-medium",children:"ë¶"})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[0px] pb-[20px] flex flex-col",children:l.alcDate&&(0,n.jsx)("span",{className:"".concat(l.alcDate?"text-[#ED4949]":"text-[#009C75]"," text-[12px]"),children:"* ì¶ë°ì¼ì ì
ë ¥í´ ì£¼ì¸ì."})}),(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[-12px] pb-[20px] flex flex-col",children:(l.alcHour||l.alcMinutes)&&(0,n.jsx)("span",{className:"text-[#ED4949] text-[12px]",children:"* ì¶ë°ìê°ì ì
ë ¥í´ì£¼ì¸ì."})})]})]})]})]})};var eg=a(22538),ej=a(59980),eb=a(1055),eA=a(19487),eI=a(74123),ey=a(68777),eC=a(22662),ek=a(66599),eS=a(90282),eT=a(89706),ew=a(15021),eE=a(4593),eF=a(13994),eD=a.n(eF),eP=a(56616);let eR=(0,n.jsx)(o.A,{spin:!0,style:{fontSize:24}}),eM=e=>{var l,a,o,t;let{onClosePopup:s,onOpenPopup:r,cancelPolicyTime:i,loadingReservationAndOpenPayment:c,submitText:d="ê²°ì í기"}=e,[u,p]=(0,g.useState)(!1),[h,v]=(0,g.useState)(!1),[_,N]=(0,g.useState)(!1),{mappedTerms:f}=(0,x.hf)({kindSubTypeCodeKeys:[x.DC.HOTEL_FREE_CANCELABLE_DATES]}),j=(0,eo.useRouter)(),b=()=>{r()};return(0,g.useEffect)(()=>{h&&b(),_&&j.push({pathname:"/hotel"})},[h,_]),(0,n.jsxs)(C.A,{indicator:eR,spinning:c,children:[(0,n.jsxs)("div",{className:"px-[20px]",children:[(0,n.jsx)("div",{className:eD().term_section_wrapper,dangerouslySetInnerHTML:{__html:null!=(t=null==f||null==(o=f[0])||null==(a=o.contents)?void 0:a.replace("#{cancellation_guide}",(0,el.V)(i)?'<div>í´ë¹ ê°ì¤ì ë¬´ë£ ì·¨ì ê°ë¥ì¼ì <br /><span class="text-[#ED4949] text-[14px]">'.concat(i&&(null==i||null==(l=i.slice(0,10))?void 0:l.replace("-","ë
").replace("-","ì ")),"ì¼ 17:00ê¹ì§</span> ì
ëë¤.</div>"):"<div><span>ì ì¡íë¶ ë¶ê°(ì ì¼ì ì·¨ì/ë³ê²½/íë¶ë¶ê°) ìíì
ëë¤.</span></div>"))?t:""}}),(0,n.jsxs)("div",{className:"flex pt-[30px] pb-[30px]",children:[(0,n.jsx)("div",{className:"w-[100%] pr-[7px] hover:border-[#009c75]",children:(0,n.jsx)(m.Ay,{className:"w-[100%]",onClick:()=>void s(),children:"ì·¨ì"})}),(0,n.jsx)("div",{className:" w-[100%] pl-[7px]",children:(0,n.jsx)(R.A,{className:"w-[100%]",onClick:()=>b(),type:"primary",children:d})})]})]}),u&&(0,n.jsx)(eP.A,{message:"ì·¨ìíìë©´ ìì½ ì ì
ë ¥í ì ë³´ê° ëª¨ë ìì ë©ëë¤. ì·¨ìíìê² ìµëê¹?",onCancel:e=>{N(e),p(!1),v(!1)},onChange:e=>{p(!1),v(e),N(!1)},open:u})]})},eO=e=>{var l,a,t,s,i,c,m,x,u;let{session:p,hotel:h,valuesNew:v,checkLogin:N}=e,{openAlert:j}=(0,M.M)(),A=(0,eo.useRouter)(),{updateDataCollection:I}=(0,eC.D6)(),y=(0,eI.z)(),{sendGaEcommerce:k}=(0,U.B)(),[S,T]=(0,g.useState)(!1),[w,E]=(0,g.useState)(!1),[D,P]=(0,g.useState)(null),[O,B]=(0,g.useState)(null),L="XCRS"===(0,W.w5)(),{isXcrsHotel:V,webSiteNo:q}=(0,F.A)(),{data:H,isLoading:G}=(0,ek.FO)({price:null!=(c=Number(p.hotelRoom.price))?c:0}),Y=(0,n.jsx)(o.A,{spin:!0,style:{fontSize:20,top:"5px",left:"90%"}}),K=(0,X.d4)(e=>e.auth),z=(null==K?void 0:K.accessToken)?"Y":"N",J=null!=(m=null==K||null==(l=K.userProfile)?void 0:l.ptid)?m:"",{showPaymentPopUp:Q}=(0,eT.z7)(),Z=(0,g.useRef)(!1);return(0,g.useEffect)(()=>{let{gaEvent:e,gaEcommerceEvent:l,gaEcommerceProduct:a}=p.gaData;k({...e,ep_event_area:"begin_checkout",cm_total_amt:p.hotelRoom.price&&parseInt(p.hotelRoom.price||"",10)||0},l,{...a,ip_reservation_travel_yn:N?"Y":"N"},!0)},[]),(0,n.jsxs)("div",{className:"mt-[10px] w-[600px] z-9999",children:[(0,n.jsx)("div",{className:"text-center leading-[22px] pb-[30px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"ìì½ ì ë³´ íì¸ í ê²°ì í´ ì£¼ì¸ì."})}),(0,n.jsx)("div",{className:"".concat(b().scrollbar," !h-[463px] overflow-auto mr-[-15px]"),children:(0,n.jsxs)("div",{className:"mr-[12px]",children:[(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{children:(0,n.jsx)(r.A,{alt:"",className:"rounded-lg",height:120,preview:!1,src:p.hotelInfo.mainImage||"",width:120})}),(0,n.jsxs)("div",{className:"pl-[20px] w-[100%]",children:[(0,n.jsx)("div",{className:"".concat(b().lineTextComplete," leading-[20px]"),children:(0,n.jsxs)("span",{className:"text-[16px] text-[#111111] font-semibold ",children:[" ",p.hotelInfo.koreanName]})}
1),(0,n.jsx)("div",{className:"leading-[16px] pt-[6px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[14px]",children:[" ",p.hotelInfo.englishName]})}),(0,n.jsxs)("div",{className:"leading-[18px] pt-[8px]",children:[(0,n.jsxs)("span",{className:"text-[#111111] text-[13px] font-medium",children:["ì²´í¬ì¸ : ",p.hotelInfo.checkInTime]}),(0,n.jsx)("span",{className:"px-[12px] text-[#AAAAAA]",children:"|"}),(0,n.jsxs)("span",{className:"text-[#111111] text-[13px] font-medium",children:["ì²´í¬ìì : ",p.hotelInfo.checkOutTime]}),parseInt(p.hotelInfo.mininumCheckinAge||"0",10)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"px-[12px] text-[#AAAAAA]",children:"|"}),(0,n.jsxs)("span",{className:"text-[#111111] text-[13px] font-medium",children:["ìµì ì²´í¬ì¸ ëì´ : ","ë§ ".concat(parseInt(p.hotelInfo.mininumCheckinAge||"0",10),"ì¸")]})]}):null]}),(0,n.jsx)("div",{className:"h-[20px] pt-[10px] pb-[4px]"}),(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("div",{className:"leading-[20px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[14px] font-semibold",children:"문ì "})}),(0,n.jsx)("div",{className:"laeding-[17px] flex flex-col",children:V?ey.C.map(e=>{let{name:l,tel:a}=e;return(0,n.jsx)("span",{className:"text-[#111111] text-[14px] font-medium",children:a},l)}):(0,n.jsx)("span",{className:"text-[#111111] text-[14px] font-medium",children:"1544-5252"})})]})]})]}),(0,n.jsx)("div",{className:"".concat(b().borderBottomComplete," mt-[25px] mb-[26px]")}),(0,n.jsx)("div",{className:"leading-[19px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-bold",children:"ìì½ë´ì"})}),(0,n.jsxs)("div",{className:"leading-[20px] pt-[16px]",children:[(0,n.jsxs)("span",{className:"text-[#111111] text-[14px] font-medium",children:[f()(p.hotelParams.cin).format("MM.DD"),"(",f()(p.hotelParams.cin).format("dd"),") ~"," ",f()(p.hotelParams.cout).format("MM.DD"),"(",f()(p.hotelParams.cout).format("dd"),")"]}),(0,n.jsx)("span",{className:"text-[#009C75] text-[14px] font-medium pl-[10px]",children:(0,eS.WB)(p.hotelParams.cin||"",p.hotelParams.cout||"",!1,!0)})]}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsxs)("div",{className:"".concat((null==(a=p.hotelParams.occupancies)?void 0:a.length)===1?b().customSwiper1:b().customSwiper," mx-auto flex w-full overflow-visible"),children:[(0,n.jsx)(eE.RC,{centeredSlides:!0,centeredSlidesBounds:!0,centerInsufficientSlides:!0,className:"mySwiper",modules:[ew.Vx,ew.dK],navigation:{nextEl:O,prevEl:D},slidesPerView:"auto",spaceBetween:20,children:null==(t=p.hotelParams.occupancies)?void 0:t.map((e,l)=>(0,n.jsx)(eE.qr,{className:"!w-max",children:(0,n.jsxs)("div",{className:"".concat(b().borderLine," mt-[16px] px-[18px] py-[16px] rounded-xl !w-[335px]"),children:[(0,n.jsxs)("div",{className:"flex justify-between pb-[15px]",children:[(0,n.jsx)("div",{className:"leading-[14px]",children:(0,n.jsxs)("span",{className:"text-[#888888] text-[12px]",children:["ê°ì¤ì ë³´ ",l+1]})}),(0,n.jsx)("div",{className:"leading-[14px]",children:(0,n.jsxs)("span",{className:"text-[#111111] text-[12px] font-semibold",children:[p.hotelParams.occupancies[l].adult>0&&p.hotelParams.occupancies[l].childAges.length>0?"ì±ì¸ ".concat(p.hotelParams.occupancies[l].adult,", "):"ì±ì¸ ".concat(p.hotelParams.occupancies[l].adult),p.hotelParams.occupancies[l].childAges.length>0&&" ìë ".concat(p.hotelParams.occupancies[l].childAges.length," [").concat(p.hotelParams.occupancies[l].childAges.filter(e=>null!==e).map((e,l)=>null!==e&&1!==l?"".concat(e,"ì¸"):null!==e&&1===l?" ".concat(e,"ì¸"):void 0),"]")]})})]}),(0,n.jsx)("div",{className:" ",children:(0,n.jsx)("div",{className:"leading-[19px]",children:(0,n.jsx)("span",{className:"text-[15px] text-[#111111] font-semibold",children:p.hotelRoom.roomTypeName})})}),(0,n.jsxs)("div",{className:"pt-[10px] flex",children:[(0,n.jsx)(r.A,{alt:"",className:"mt-[1px]",preview:!1,src:"/icons/icon_meal_14.svg",width:15}),(0,n.jsx)("div",{className:"pl-[5px] pr-[10px] leading-[16px]",children:(0,n.jsx)("span",{className:"font-semibold text-[12px] text-[#111111]",children:h.textMeal})})]}),(0,n.jsxs)("div",{className:"pt-[4px] flex",children:[(0,n.jsx)(_.zD,{className:"mt-[1px]",height:15,width:15,strokeWidth:1.1,color:"#111111 "}
1),(0,n.jsx)("div",{className:"pl-[5px] pr-[10px] leading-[16px] w-[65%]",children:(0,n.jsx)("span",{className:"font-semibold text-[12px] text-[#111111]",children:h.textCancelTime})})]})]},e.roomId)},e.roomId))}),(0,n.jsx)("div",{className:"cursor-pointer absolute top-[-58px] right-[0px] z-[10]",ref:B,style:{},children:(0,n.jsx)(r.A,{alt:"",className:"".concat(b().rotate),preview:!1,src:"/icons/icon_rev_square_26_white.svg",width:26})}),(0,n.jsx)("div",{className:"cursor-pointer absolute top-[-58px] right-[35px] z-[10]",ref:P,style:{},children:(0,n.jsx)(r.A,{alt:"",preview:!1,src:"/icons/icon_rev_square_26_white.svg",width:26})})]})}),(0,n.jsxs)("div",{className:"flex mt-[20px] w-[100%]",children:[(0,n.jsxs)("div",{className:"bg-[#F5F6F6] rounded-lg py-[16px] px-[16px] mr-[20px] w-[50%]",children:[(0,n.jsx)("div",{className:"leading-[16px]",children:(0,n.jsx)("span",{className:"text-[14px] text-[#111111] font-semibold",children:"í¬í¨ì¬í"})}),(0,n.jsx)("div",{className:"leading-[16px] mt-[12px]",children:(0,n.jsx)("span",{className:"text-[14px] text-[#555555]",dangerouslySetInnerHTML:{__html:null!=(x=p.hotelInfo.includeNote)?x:""}})})]}),(0,n.jsxs)("div",{className:"bg-[#F5F6F6] rounded-lg py-[16px] px-[16px] w-[50%]",children:[(0,n.jsx)("div",{className:"leading-[16px]",children:(0,n.jsx)("span",{className:"text-[14px] text-[#111111] font-semibold",children:"íì§ ì¶ê° ì§ë¶ ì¬í"})}),(0,n.jsx)("div",{className:"leading-[16px] mt-[12px]",children:(0,n.jsx)("span",{className:"text-[14px] text-[#555555]",dangerouslySetInnerHTML:{__html:""===p.hotelInfo.requirePriceDescription?"ìì":null!=(u=p.hotelInfo.requirePriceDescription)?u:""}})})]})]}),(0,n.jsxs)("div",{className:"mt-[30px]",children:[(0,n.jsx)("div",{className:"laeding-[19px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-bold",children:"ì´ í©ê³ê¸ì¡ "})}),(0,n.jsx)("div",{className:"laeding-[20px] flex justify-end pt-[16px] pb-[5px]",children:(0,n.jsxs)("span",{className:"flex",children:[(0,n.jsx)("span",{className:"text-[#111111] text-[16px] font-bold pr-[12px] mt-[4px]",children:"ì´ í©ê³ "}),(0,n.jsx)(d.A,{value:p.hotelRoom.price&&parseInt(p.hotelRoom.price||"",10)||0,valueStyle:{fontSize:24,marginTop:-7,color:"#009C75",fontWeight:"bold"}}),(0,n.jsx)("span",{className:"font-medium text-[20px] text-[#111111] mt-[-2px]",children:"ì"})]})}),(0,n.jsx)(C.A,{indicator:Y,spinning:G,children:(0,n.jsx)("div",{className:"laeding-[20px] flex justify-end pb-[20px]",children:(0,n.jsxs)("span",{className:"flex",children:[(0,n.jsx)(d.A,{value:(null==H||null==(s=H.result)?void 0:s.savePrice)&&parseInt((null==H||null==(i=H.result)?void 0:i.savePrice)||"",10)||0,valueStyle:{fontSize:14,marginTop:-7,color:"#009C75",fontWeight:"semibold"}}),(0,n.jsx)("span",{className:"font-semibold text-[14px] text-[#009C75] mt-[-5px] px-[3px]",children:"ë§ì¼"}),(0,n.jsx)("span",{className:"font-medium text-[14px] text-[#111111] mt-[-5px]",children:" ì 립"})]})})})]})]})}),(0,n.jsx)("div",{className:"flex justify-center pt-[20px]",children:(0,n.jsx)("div",{className:"".concat(b().btnSubmitReservation," w-[226px]"),children:(0,n.jsx)(R.A,{className:"w-[100%]",onClick:()=>{T(!0)},children:L?"ìì½í기":"ìì½ ë° ê²°ì í기"})})}),(0,n.jsx)(eb.A,{centered:!0,className:b().container,onCancel:()=>{T(!1)},onOk:()=>{T(!1)},open:S,title:(0,n.jsxs)("div",{className:"pt-[20px]",children:[(0,n.jsx)("div",{className:"pb-[20px]",children:(0,n.jsx)("div",{className:"leading-[20px]",children:(0,n.jsx)("span",{className:"text-[18px] font-bold text-[#111111]",children:"ë¬´ë£ ì·¨ì ê°ë¥ì¼ ìë´"})})}),(0,n.jsx)("div",{className:"".concat(b().borderLine," !border-b-0")})]}),children:(0,n.jsx)(eM,{cancelPolicyTime:h.bookingExpiredDate,loadingReservationAndOpenPayment:w,onClosePopup:()=>{let{gaEvent:e,gaEcommerceEvent:l,gaEcommerceProduct:a}=p.gaData;k({...e,ep_event_area:"remove_from_cart"},l,{...a,ip_reservation_travel_yn:N?"Y":"N"},!0),T(!1)},onOpenPopup:()=>{let{gaEvent:e,gaEcommerceEvent:l,gaEcommerceProduct:a}=p.gaData;k({...e,ep_event_area:"add_shipping_info"},l,{...a,ip_reservation_travel_yn:N?"Y":"N"},!0),(()=>{if(!Z.current){if(Z.current=!0,p.hotelInfo){var e,l,a,o,t;I({type:"Reservation",date:f()().toDate().toISOString(),pageType:"Hotel Overseas",id:null==(e=(null==(l=p.hotelInfo)?void 0:l.hotelCode)||0)?void 0:e.toString(),goodsName:(null==(a=p.hotelInfo)?void 0:a.koreanName)||"",itemCode:((null==(o=p.hotelInfo)?void 0:o.hotelCode)||0).toString(),city:(null==(t=p.hotelInfo)?void 0:t.address)||"",itemCount:"".concat(p.hotelParams.cdays," days"),ptc:"".concat(p.hotelParams.countAdult," adult, ").concat(p.hotelParams.countChild," child, ").concat(p.hotelParams.occupancies.length," room "),etc:"".concat((null==v?void 0:v.description)||"",", ").concat(null==v?void 0:v.requestOption)})}E(!0),y(v).then(e=>{var l,a,o,t,s,r;if(!e||!("data"in e))throw Error(null==e||null==(a=e.error)||null==(l=a.data)?void 0:l.Message);let i=e.data;(null==i?void 0:i.result)?L?((0,ej.s)("reservation-hotel",i.result),window.opener||j({message:(0,n.jsx)("div",{className:"flex flex-col justify-center w-full min-h-[100px] break-keep space-y-[10px]",children:(0,n.jsx)("div",{className:"text-[#111]",children:"ìì½ì´ ìë£ëììµëë¤."})}),canClose:!1,canCancel:!1,onOk:()=>{A.replace("/hotel/xcrs?type=overseas")}}
1)):(localStorage.setItem("oid",String(null==i||null==(o=i.result)?void 0:o.orderNo)),localStorage.setItem("pid",String(null==i||null==(t=i.result)?void 0:t.reservationMemberNo)),localStorage.setItem("email",String(null==v?void 0:v.email)),Q({ptId:J,loginFlag:z,productType:"ODCHTL",orderNo:null==i||null==(r=i.result)||null==(s=r.orderNo)?void 0:s.toString(),types:"hotel",onClickPay:e=>{var l,a,n;let{gaEvent:o,gaEcommerceEvent:t,gaEcommerceProduct:s}=p.gaData,r={...o,ep_event_area:"add_payment_info"};k(r,{...t,payment_type:null==e||null==(l=e.ecommerceEvent)?void 0:l.payment_type,coupon:null==e||null==(a=e.ecommerceEvent)?void 0:a.coupon},{...s,coupon:null==e||null==(n=e.ecommerceEvent)?void 0:n.coupon,ip_reservation_travel_yn:N?"Y":"N"},!0)},onFinishPay:e=>{var l,a,n,o,t,s,r,c,d,m,x,u;let{gaEvent:h,gaEcommerceEvent:v,gaEcommerceProduct:_}=p.gaData,f={...h,ep_booking_discount:null==e||null==(l=e.eventData)?void 0:l.ep_booking_discount,cm_total_amt:null==e||null==(a=e.eventData)?void 0:a.cm_total_amt,cm_discount_amt:null==e||null==(n=e.eventData)?void 0:n.cm_discount_amt,cm_coupon_amt:null==e||null==(o=e.eventData)?void 0:o.cm_coupon_amt,cm_mileage_amt:null==e||null==(t=e.eventData)?void 0:t.cm_mileage_amt,cm_certificate_amt:null==e||null==(s=e.eventData)?void 0:s.cm_certificate_amt,cm_okcashback_amt:null==e||null==(r=e.eventData)?void 0:r.cm_okcashback_amt,cm_asiana_mileage_amt:null==e||null==(c=e.eventData)?void 0:c.cm_asiana_mileage_amt,ep_event_area:"purchase"};k(f,{...v,payment_type:null==e||null==(d=e.ecommerceEvent)?void 0:d.payment_type,transaction_id:null==i||null==(m=i.result)?void 0:m.orderNo,coupon:null==e||null==(x=e.ecommerceEvent)?void 0:x.coupon},{..._,coupon:null==e||null==(u=e.ecommerceEvent)?void 0:u.coupon,ip_reservation_travel_yn:N?"Y":"N"},!0)},webSiteName:(0,eg.Bf)(q)})):(null==i?void 0:i.result)||(L&&(0,ej.k)("reservation-hotel",{message:eA.Sm}),j({message:eA.Sm,onCancel:()=>{},onOk:()=>{},canCancel:!1}))}).catch(e=>{e instanceof Error&&L&&(0,ej.k)("reservation-hotel",e),j({message:(0,n.jsxs)("div",{children:[eA.Sm," ",(0,n.jsx)("br",{}),e.message&&(0,n.jsxs)("p",{children:["(",e.message,")"]})]}),onCancel:()=>{},onOk:()=>{},canCancel:!1})}).finally(()=>{E(!1),Z.current=!1,L&&window.close()})}})()},submitText:L?"ìì½í기":"ê²°ì í기"})})]})},eB=e=>{var l,a,t,s,r,i;let{session:c,hotel:d}=e,{Item:m,useForm:x}=O.A,[u]=x(),[p,v]=(0,g.useState)([]),[_,N]=(0,g.useState)(""),[j,A]=(0,g.useState)({}),[ed,em]=(0,g.useState)(!1),[ex,eu]=(0,g.useState)(!1),[ep,ev]=(0,g.useState)(""),[e_,eg]=(0,g.useState)(!1),[ej,eb]=(0,g.useState)(u.getFieldValue(["rooms","1_1","last_email"])),[eA,eI]=(0,g.useState)(1),[ey,eC]=(0,g.useState)(),[ek,eS]=(0,g.useState)(!1),{sendGaEcommerce:eT}=(0,U.B)(),[ew,eE]=(0,g.useState)(!1),{openAlert:eF}=(0,M.M)();(0,eo.useRouter)().pathname.includes("overseas");let eD=(e,l)=>{if(!e||e.length<4||!l)return"";let a=(0,en.cx)(l)===S.PL.MALE;return parseInt(e.slice(0,4))>=2e3?a?"3":"4":a?"1":"2"},{isBP:eP}=(0,F.A)(),{isAdult:eR,showNotAdultAlert:eM,showNotAdultAlertBpPc:eB}=(0,T.A)(),eL="XCRS"===(0,W.w5)(),eV=(0,X.d4)(e=>e.auth),eq=(0,X.d4)(e=>{var l;return!!(null==e||null==(l=e.auth)?void 0:l.accessToken)}),[eH,eG]=(0,g.useState)((null==eV||null==(l=eV.memberInfo)?void 0:l.email)&&(null==eV||null==(s=eV.memberInfo)||null==(t=s.email)||null==(a=t.split("@"))?void 0:a[1])),eY=(e,l,a)=>{var n,o,t,s,r,i,c,d,m;let x=RegExp("^[a-z A-Z]+$"),p=RegExp("^[0-9]+$"),h=RegExp("^(?:01|\\+)[0-9\\s.\\/-]{7,10}$"),v=null==(n=u.getFieldsValue().rooms["".concat(l.split("_")[1],"_").concat(l.split("_")[2])])?void 0:n.number_gender,_={...j};_={...j,[l]:"text"===a?!x.test(null==e||null==(o=e.target)?void 0:o.value):"number"===a?"rooms_1_1_telephone"===l?!h.test(null==e||null==(t=e.target)?void 0:t.value):!p.test(null==e||null==(s=e.target)?void 0:s.value):"gender"===a?!p.test(null==e||null==(r=e.target)?void 0:r.value):"email"===a?(null==e||null==(i=e.target)?void 0:i.value)===""||(null==e||null==(c=e.target)?void 0:c.value)===void 0:!e},!l.includes("_birthday")||(0,B.T_)(null==e||null==(d=e.target)?void 0:d.value)||v||(_={...j,[l]:!0}),A({..._}),(l.includes("_firstName")||l.includes("_lastName"))&&((e,l)=>{let a={...j},n=[],o="".concat(e[l].firstName," ").concat(e[l].lastName);for(let l in e)if(e.hasOwnProperty(l)){let a=e[l];
1if(""!==a.firstName&&void 0!==a.firstName&&""!==a.lastName&&void 0!==a.lastName){let e="".concat(a.firstName," ").concat(a.lastName);n.push({name:e,key:l})}}n.some(e=>e.name===o&&e.key!==l)?(eu(!0),a={...a,["rooms_".concat(l,"_firstName")]:!0,["rooms_".concat(l,"_lastName")]:!0}):a={...a,["rooms_".concat(l,"_firstName")]:!1,["rooms_".concat(l,"_lastName")]:!1};let t=new Set,s=!0;for(let e of n){if(t.has(e.name)){s=!1;break}t.add(e.name)}if(s)for(let l in e)e.hasOwnProperty(l)&&(a={...a,["rooms_".concat(l,"_firstName")]:!1,["rooms_".concat(l,"_lastName")]:!1});A({...a})})(null==(m=u.getFieldsValue(["rooms"]))?void 0:m.rooms,"".concat(l.split("_")[1],"_").concat(l.split("_")[2]))},[eK,ez]=(0,g.useState)(!1),[eU,eW]=(0,g.useState)(""),eX=e=>{var l,a;let o,t=[],s="";null==e||null==(l=e.errorFields)||l.map(e=>{var l,a;(null==e?void 0:e.name[0])==="dlcAirname"&&(s+="<p> - ì¶ë° íê³µí¸ì ì
ë ¥í´ ì£¼ì¸ì </p>"),(null==e?void 0:e.name[0])==="dlcDate"&&(s+="<p> - ì¶ë°ì¼ì ì
ë ¥í´ ì£¼ì¸ì </p>"),(null==e?void 0:e.name[0])==="alcAirname"&&(s+="<p> - ê·êµ íê³µí¸ì ì
ë ¥í´ ì£¼ì¸ì </p>"),(null==e?void 0:e.name[0])==="alcDate"&&(s+="<p> - ê·êµì¼ì ì
ë ¥í´ ì£¼ì¸ì </p>"),o={roomNo:null==e||null==(a=e.name[1])||null==(l=a.split("_"))?void 0:l[0],roomName:J.I[null==e?void 0:e.name[2]]},!(null==t?void 0:t.find(e=>(null==e?void 0:e.roomNo)===(null==o?void 0:o.roomNo)&&(null==e?void 0:e.roomName)===(null==o?void 0:o.roomName)))&&(null==o?void 0:o.roomName)&&(null==t||t.push(o),(null==o?void 0:o.roomName)==="ì±ë³"?s+="<p> - ê°ì¤ ".concat(null==o?void 0:o.roomNo,": 2000ë
ì ì´í ì¶ììë 3,4를 ì
ë ¥í´ì£¼ì¸ì</p>"):s+="<p> - ê°ì¤ ".concat(null==o?void 0:o.roomNo," ë²ì ").concat((null==o?void 0:o.roomName)==="ì문 ì´ë¦"?"".concat(null==o?void 0:o.roomName,"ì 공백ìì´ ì
ë ¥í´ ì£¼ì¸ì."):"".concat(null==o?void 0:o.roomName,"ì ì
ë ¥í´ ì£¼ì¸ì."),"</p>"))}),""!==u.getFieldValue(["rooms","1_1","last_email"])||s.includes("ì´ë©ì¼ì")||(s+=eU),ev(s),eg(!0);let r={};e.errorFields.map(e=>{r["".concat(e.name.join("_"))]=!0}),A(r);let i=RegExp("^[a-z A-Z]+$"),d=RegExp("^[0-9]+$"),m={};Object.keys(null==e||null==(a=e.values)?void 0:a.rooms).forEach(l=>{var a,n,o,t,s,x,p,h,v,_,N,f,g,j,b,A,I,y,C,k,S,T,w,E,F,D,P,R,M,O,B,L,V,q,H,G,Y;m={...m,...r,["rooms_".concat(l,"_koreanName")]:"1_1"===l&&!u.getFieldValue(["rooms","1_1","koreanName"]),["rooms_".concat(l,"_lastName")]:!(null==e||null==(n=e.values)||null==(a=n.rooms[l])?void 0:a.lastName)||!i.test(null==e||null==(t=e.values)||null==(o=t.rooms[l])?void 0:o.lastName),["rooms_".concat(l,"_firstName")]:!(null==e||null==(x=e.values)||null==(s=x.rooms[l])?void 0:s.firstName)||!i.test(null==e||null==(h=e.values)||null==(p=h.rooms[l])?void 0:p.firstName),["rooms_".concat(l,"_birthday")]:null!=(v=c.hotelRoom.features)&&!!v.requiresFlightDetails&&"1_1"!==l&&(!(null==e||null==(f=e.values)||null==(N=f.rooms[l])||null==(_=N.birthdayAndGender)?void 0:_.birthday)||(null==e||null==(A=e.values)||null==(b=A.rooms[l])||null==(j=b.birthdayAndGender)||null==(g=j.birthday)?void 0:g.length)<8),["rooms_".concat(l,"_birthdayAndGender")]:null!=(I=c.hotelRoom.features)&&!!I.requiresFlightDetails&&"1_1"!==l&&(!(null==e||null==(k=e.values)||null==(C=k.rooms[l])||null==(y=C.birthdayAndGender)?void 0:y.birthday)||!(null==e||null==(w=e.values)||null==(T=w.rooms[l])||null==(S=T.birthdayAndGender)?void 0:S.gender)||(null==e||null==(P=e.values)||null==(D=P.rooms[l])||null==(F=D.birthdayAndGender)||null==(E=F.birthday)?void 0:E.length)<8),["rooms_".concat(l,"_telephone")]:"1_1"===l&&(!(null==e||null==(M=e.values)||null==(R=M.rooms[l])?void 0:R.telephone)||!d.test(null==e||null==(B=e.values)||null==(O=B.rooms[l])?void 0:O.telephone)),["rooms_".concat(l,"_last_email")]:"1_1"===l&&!(null==e||null==(V=e.values)||null==(L=V.rooms[l])?void 0:L.last_email),["rooms_".concat(l,"_email")]:"1_1"===l&&(!(null==e||null==(H=e.values)||null==(q=H.rooms[l])?void 0:q.email)||!i.test(null==e||null==(Y=e.values)||null==(G=Y.rooms[l])?void 0:G.email))}}),A(m),ew||eF({message:(0,n.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:"모ë ì½ê´ì íìëìê° ëì´ì¼ í©ëë¤."}),onCancel:()=>{},onOk:()=>{},canCancel:!1})};(0,g.useEffect)(()=>{e_&&""!==ep&&eg(!1)},[ep,e_]);let{showPopUp:eJ}=(0,K.G)(),eQ=(0,g.useRef)(null),eZ=(0,g.useRef)(null),e$="".concat(P.k,"/reservation-detail/hotel"),e0="".concat(P.k,"/my-page/reservation-history"),e1=!!(null==eV?void 0:eV.accessToken),[e2,e5]=(0,g.useState)(!1);(0,z.C)(eZ,eQ,(null==eV?void 0:eV.accessToken)?e0:e$,e1,e5);let e4=localStorage.getItem("closeWindown");(0,g.useEffect)(()=>{"cancelPayment"===e4&&(localStorage.removeItem("closeWindown"),localStorage.removeItem("oid"),localStorage.removeItem("pid"),localStorage.removeItem("email"))},[e4]);let[e6,e8]=(0,g.useState)(!1),e9=(e,l)=>{var a,n,o;let t=null==(a=l.split("_"))?void 0:a[0];(null==e||null==(n=e.target)?void 0:n.checked)===void 0?(em(!ed),ed?eI(0):eI(Number(t))):(em(e.target.checked),(null==e||null==(o=e.target)?void 0:o.checked)?eI(Number(t)):eI(0)),A({...j,["rooms_".concat(l,"_koreanName")]:!1,["rooms_".concat(l,"_firstName")]:!1,["rooms_".concat(l,"_lastName")]:!1,["rooms_".concat(l,"_telep
1hone")]:!1,["rooms_".concat(l,"_person")]:!1,["rooms_".concat(l,"_birthdayAndGender")]:!1,["rooms_".concat(l,"_email")]:!1,["rooms_".concat(l,"_last_email")]:!1,["rooms_".concat(l,"_gender")]:!1,["rooms_".concat(l,"_number_gender")]:!1}),(e=>{var l,a,n,o,t,s,r,i,c,d,m,x,p,h,v,_,N,f,g,j,b;let A=null==eV?void 0:eV.memberInfo,I=(null==A||null==(l=A.birthdayDate)?void 0:l.replaceAll("-","").slice(0,8))||(null==A||null==(a=A.birthdayString)?void 0:a.replaceAll("-","").slice(0,8))||"",y=eD(I,(null==A?void 0:A.genderGubunCode)||"");eG(ed?"":(null==eV||null==(n=eV.memberInfo)?void 0:n.email)&&(null==eV||null==(s=eV.memberInfo)||null==(t=s.email)||null==(o=t.split("@"))?void 0:o[1])),u.setFields([{name:["rooms",e,"koreanName"],value:ed?"":null==eV||null==(r=eV.memberInfo)?void 0:r.koreanName},{name:["rooms",e,"firstName"],value:!ed&&(null==eV||null==(i=eV.memberInfo)?void 0:i.firstName)?eV.memberInfo.firstName.replaceAll(" ",""):""},{name:["rooms",e,"lastName"],value:!ed&&(null==eV||null==(c=eV.memberInfo)?void 0:c.lastName)?eV.memberInfo.lastName.replaceAll(" ",""):""},{name:["rooms",e,"telephone"],value:ed?"":null==eV||null==(m=eV.memberInfo)||null==(d=m.cellPhoneNumber)?void 0:d.replaceAll("-","")},{name:["rooms",e,"person"],value:ed||(null==eV||null==(x=eV.memberInfo)?void 0:x.isDomestic)?"0":"1"},{name:["rooms","1_1","birthdayAndGender"],value:{birthday:I,gender:ed?"":y}},{name:["rooms",e,"email"],value:ed?"":(null==eV||null==(p=eV.memberInfo)?void 0:p.email)&&(null==eV||null==(v=eV.memberInfo)||null==(h=v.email.split("@"))?void 0:h[0])},{name:["rooms",e,"last_email"],value:ed?"":"".concat((null==eV||null==(_=eV.memberInfo)?void 0:_.email)&&(null==eV||null==(f=eV.memberInfo)||null==(N=f.email.split("@"))?void 0:N[1]))},{name:["rooms",e,"gender"],value:!ed&&(null==eV||null==(g=eV.memberInfo)?void 0:g.genderGubunCode)?null==eV||null==(j=eV.memberInfo)?void 0:j.genderGubunCode:"M"},{name:["rooms",e,"number_gender"],value:ed?"1":y},{name:"mt_number",value:ed?"":null==eV||null==(b=eV.memberInfo)?void 0:b.mtid}])})(l)};(0,g.useEffect)(()=>{ed&&A({...j,rooms_1_1_koreanName:!1,rooms_1_1_firstName:!1,rooms_1_1_lastName:!1,rooms_1_1_telephone:!1,rooms_1_1_person:!1,rooms_1_1_birthdayAndGender:!1,rooms_1_1_email:!1,rooms_1_1_last_email:!1,rooms_1_1_gender:!1,rooms_1_1_number_gender:!1})},[ed]),(0,g.useEffect)(()=>{if(eq){var e,l,a,n,o,t,s,r,i,d,m,x,p,h,v;let c=eV.memberInfo,_=((null==c?void 0:c.birthdayDate)||(null==c?void 0:c.birthdayString)||"").replaceAll("-","").slice(0,8),N=eD(_,(null==c?void 0:c.genderGubunCode)||"");u.setFields([{name:["rooms","1_1","koreanName"],value:(null==eV?void 0:eV.memberInfo)!==null?null==eV||null==(e=eV.memberInfo)?void 0:e.koreanName:""},{name:["rooms","1_1","firstName"],value:(null==eV||null==(l=eV.memberInfo)?void 0:l.firstName)?eV.memberInfo.firstName.replaceAll(" ",""):""},{name:["rooms","1_1","lastName"],value:(null==eV||null==(a=eV.memberInfo)?void 0:a.lastName)?eV.memberInfo.lastName.replaceAll(" ",""):""},{name:["rooms","1_1","telephone"],value:(null==eV?void 0:eV.memberInfo)!==null?null==eV||null==(o=eV.memberInfo)||null==(n=o.cellPhoneNumber)?void 0:n.replaceAll("-",""):""},{name:["rooms","1_1","person"],value:(null==eV||null==(t=eV.memberInfo)?void 0:t.isDomestic)===!1?"1":"0"},{name:["rooms","1_1","birthdayAndGender"],value:{birthday:_,gender:N}},{name:["rooms","1_1","email"],value:(null==eV?void 0:eV.memberInfo)!==null?(null==eV||null==(s=eV.memberInfo)?void 0:s.email)&&(null==eV||null==(i=eV.memberInfo)||null==(r=i.email.split("@"))?void 0:r[0]):""},{name:["rooms","1_1","last_email"],value:(null==eV?void 0:eV.memberInfo)!==null?"".concat((null==eV||null==(d=eV.memberInfo)?void 0:d.email)&&(null==eV||null==(x=eV.memberInfo)||null==(m=x.email.split("@"))?void 0:m[1])):""},{name:["rooms","1_1","gender"],value:!ed&&(null==eV||null==(p=eV.memberInfo)?void 0:p.genderGubunCode)?null==eV||null==(h=eV.memberInfo)?void 0:h.genderGubunCode:"M"},{name:["rooms","1_1","number_gender"],value:N},{name:"mt_number",value:(null==eV?void 0:eV.memberInfo)!==null?null==eV||null==(v=eV.memberInfo)?void 0:v.mtid:""}])}else eG(""),u.setFields([{name:["rooms","1_1","koreanName"],value:""},{name:["rooms","1_1","firstName"],value:""},{name:["rooms","1_1","lastName"],value:""},{name:["rooms","1_1","telephone"],value:""},{name:["rooms","1_1","person"],value:"0"},{name:["rooms","1_1","birthdayAndGender"],value:{birthday:"",gender:""}},{name:["rooms","1_1","email"],value:""},{name:["rooms","1_1","last_email"],value:""},{name:["rooms","1_1","gender"],value:"M"},{name:["rooms","1_1","number_gender"],value:""},{name:"mt_number",value:""}]);(null==eV?void 0:eV.memberInfo)!==null&&em(!0),c.hotelParams.occupancies.map(e=>{Array(((null==e?void 0:e.adult)||0)+((null==e?void 0:e.childAges.length)||0)).fill(0).map((l,a)=>{(1!==e.roomId||0!==a)&&(u.setFields([{name:["rooms","".concat(e.roomId,"_").concat(a+1),"gender"],value:"M"}]),u.setFields([{name:["rooms","".concat(e.roomId,"_").concat(a+1),"person"],value:"0"}]))})})},[JSON.stringify(eV),eq]),(0,g.useEffect)(()=>{(e=>{var l,a,n,o,t;let s=null==eV||null==(l=eV.memberInfo)?void 0:l.email;(""===ej||void 0===ej)&&!1===ek?ed?h.Rp.filter(e=>{var l,a;return e.value.includes(null!=(a=null==s||null==(l=s.split("@"))?void 0:l[1])?a:"")}).length>0?u.setFields([{name:["rooms","".concat(e,"_1"),"email"],value:(null==eV?void 0:eV.memberInfo)&&""===ej&&""===eU?null==s||null==(a=s.split("@"))?void 0:a[0]:u.getFieldValue(["rooms","".concat(e,"_1"),"email"])},{name:["rooms","".concat(e,"_1"),"last_email"],value:(null==eV?void 0:eV.memberInfo)&&""===ej&&""===eU?null==s||null==(n=s.split("@"))?void 0:n[1]:u.getFieldValue(["rooms","".concat(e,"_1"),"last_email"])}]):u.setFields([{name:["rooms","".concat(e,"_1"),"email"],value:(null==eV?void 0:eV.memberInfo)&&""===ej&&""===eU?s?s.substring(0,s.indexOf("@")):"":u.getFieldValue(["rooms","".concat(e,"_1"),"email"])},{name:["rooms","".concat(e,"_1"),"last_email"],value:(null==eV?void 0:eV.memberInfo)&&!eK?null==s||null==(o=s.split("@"))?void 0:o[1]:u.getFieldValue(["rooms","".concat(e,"_1"),"last_email"])}]):(eb(""),u.setFields([{name:["rooms","".concat(e,"_1"),"email"],value:""},{name:["rooms","".concat(e,"_1"),"last_email"],value:""}])):u.setFields([{name:["rooms","".concat(e,"_1"),"email"],value:s&&!e6?null==(t=s.split("@"))?void 0:t[0]:u.getFieldValue(["rooms","".concat(e,"_1"),"email"])},{name:["rooms","".concat(e,"_1"),"last_email"],value:ej}])})(eA)},[ej,ed]);let e3=(0,n.jsx)(o.A,{spin:!0,style:{fontSize:36}}),e7=()=>{""===ej&&ek&&u.resetFields([["rooms","1_1","last_email"]]),eS(!1),u.setFields([{name:["rooms","1_1","last_email"],value:""}]),A({...j,rooms_1_1_last_email:!0}),eC(void 0),ez(!0),eb("")},le=e=>{eb("".concat(e.target.value)),A({...j,rooms_1_1_last_email:!1})},ll=new RegExp(/^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/).test(ej);return(0,g.useEffect)(()=>{ej&&ll?(eC(void 0),u.validateFields()):ej&&!ll?(eC(Q.g.LAST_EMAIL_NO_MSS),u.validateFields([["rooms","1_1","last_email"]])):""===ej&&ek&&(eS(!0),eC(void 0),u.resetFields([["rooms","1_1","last_email"]]))},[ej,ey]),(0,g.useEffect)(()=>{e8(!0)},[u.getFieldValue(["rooms","".concat(eA,"_1"),"email"])]),(0,g.useEffect)(()=>{A({...j,rooms_1_1_koreanName:!1})},[u.getFieldValue(["rooms","1_1","person"])]),(0,g.useEffect)(()=>{A({...j,rooms_1_1_koreanName:!1})},[u.getFieldValue(["rooms","1_1","person"])]),(0,n.jsxs)("div",{className:"".concat(b().loading),children:[(0,n.jsx)("div",{children:(0,n.jsx)(ec,{session:c})}),(0,n.jsx)(eh,{session:c,hotel:d,onCheckAllTermsCondition:e=>eE(e)}),(0,n.jsx)(O.A,{autoComplete:"off",form:u,layout:"vertical",onFinish:e=>{var l,a,o,t,s;if(!eR)return void(eP?eB():eM());let r=(e=>{let l=(0,et.o8)(e);for(let e in l.rooms)if(l.rooms.hasOwnProperty(e)){let a=l.rooms[e];if(a.birthdayAndGender){let{gender:e}=a.birthdayAndGender,{birthday:l}=a.birthdayAndGender;a.birthday=l,a.number_gender=e,a.gender=(0,ea._M)(e),delete a.birthdayAndGender}}return l})(e);if(!ew)return void eF({message:(0,n.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:"모ë ì½ê´ì íìëìê° ëì´ì¼ í©ëë¤."}),onCancel:()=>{},onOk:()=>{},canCancel:!1});if(!u.getFieldValue(["rooms","1_1","koreanName"])||""===u.getFieldValue(["rooms","1_1","koreanName"]))return void A({...j,rooms_1_1_koreanName:!0});if(""===eH&&""===ej)return void A({...j,rooms_1_1_last_email:!0});let i=!1,m=[],x=[];
1null==(l=Object.keys(null==r?void 0:r.rooms))||l.map((e,l)=>{var a,n,o,t,s,d,u,p,h,v,_,N,g,b,I,y,C,k,S,T,F,D,P,R,M,O,B,L,V,q,H,G,Y,K,z,U,W,X;let J=e.split("_")[0],Q=(0,es.Et)(Number(J))?Number(J)-1:l;"1_1"===e&&(null==r||null==(a=r.rooms[e])?void 0:a.birthday)!==void 0&&(null==r||null==(o=r.rooms[e])||null==(n=o.birthday)?void 0:n.length)<8&&(i=!0,A({...j,rooms_1_1_birthday:!0}),eX({errorFields:[{name:["rooms","1_1","birthday"]}]})),(null==r||null==(s=r.rooms[e])||null==(t=s.birthday)?void 0:t.length)<8&&(A({...j,["rooms_".concat(e,"_birthday")]:!0}),eX({errorFields:[{name:["rooms",e,"birthday"]}]})),(null==r||null==(d=r.rooms[e])?void 0:d.number_gender)===""&&(A({...j,["rooms_".concat(e,"_number_gender")]:!0}),eX({errorFields:[{name:["rooms",e,"number_gender"]}]})),((null==r||null==(u=r.rooms[e])?void 0:u.lastName)===""||(null==r||null==(p=r.rooms[e])?void 0:p.lastName)===void 0&&(null==r||null==(h=r.rooms[e])?void 0:h.firstName)===void 0||(null==r||null==(v=r.rooms[e])?void 0:v.firstName)==="")&&(A({...j,["rooms_".concat(e,"_firstName")]:!0,["rooms_".concat(e,"_lastName")]:!0}),eX({errorFields:[{name:["rooms",e,"firstName"]},{name:["rooms",e,"lastName"]}]})),((null==r||null==(_=r.rooms[e])?void 0:_.firstName)===""||(null==r||null==(N=r.rooms[e])?void 0:N.firstName)===void 0)&&(A({...j,["rooms_".concat(e,"_firstName")]:!0}),eX({errorFields:[{name:["rooms",e,"firstName"]}]})),((null==r||null==(g=r.rooms[e])?void 0:g.lastName)===""||(null==r||null==(b=r.rooms[e])?void 0:b.lastName)===void 0)&&(A({...j,["rooms_".concat(e,"_lastName")]:!0}),eX({errorFields:[{name:["rooms",e,"lastName"]}]})),(null==r||null==(I=r.rooms[e])?void 0:I.telephone)===""&&(A({...j,["rooms_".concat(e,"_telephone")]:!0}),eX({errorFields:[{name:["rooms",e,"telephone"]}]})),(null==r||null==(y=r.rooms[e])?void 0:y.email)===""&&(A({...j,["rooms_".concat(e,"_email")]:!0}),eX({errorFields:[{name:["rooms",e,"email"]}]})),(0,Z.El)(null==r||null==(C=r.rooms[e])?void 0:C.birthday,null==r||null==(k=r.rooms[e])?void 0:k.person,null==r||null==(S=r.rooms[e])?void 0:S.number_gender)||(null==r||null==(T=r.rooms[e])?void 0:T.person)!=="0"||(A({...j,["rooms_".concat(e,"_number_gender")]:!0}),x.push(["rooms",e,"number_gender"])),A({...j,["rooms_".concat(e,"_birthday")]:!1}),A({...j,["rooms_".concat(e,"_number_gender")]:!1}),A({...j,["rooms_".concat(e,"_gender")]:!1});let $=(0,el.HQ)(null==r||null==(F=r.rooms[e])?void 0:F.birthday),ee=(0,w.T)(null==(D=c.hotelParams.occupancies[Q])?void 0:D.childAges),ea=$?void 0:(0,E.r)(null==r||null==(P=r.rooms[e])?void 0:P.birthday,ee);0===l?m.push({...null==r?void 0:r.rooms[e],koreanName:null==r||null==(R=r.rooms[e])?void 0:R.koreanName,genderTypeCodeKey:(0,el.R5)(null==r||null==(M=r.rooms[e])?void 0:M.birthday,null==r||null==(O=r.rooms[e])?void 0:O.number_gender),person:null==r||null==(B=r.rooms[e])?void 0:B.person,last_email:""===eH?ej:eH,email:(null==r||null==(L=r.rooms[e])?void 0:L.email)!==void 0?"".concat(null==r||null==(V=r.rooms[e])?void 0:V.email,"@").concat(""===eH?ej:eH):null,birthday:f()(null==r||null==(q=r.rooms[e])?void 0:q.birthday).format("YYYY-MM-DD"),number_gender:+((null==r||null==(H=r.rooms[e])?void 0:H.number_gender)||1),lastName:null==r||null==(G=r.rooms[e])?void 0:G.lastName,firstName:null==r||null==(Y=r.rooms[e])?void 0:Y.firstName,adultCount:c.hotelParams.occupancies[Q].adult,childCount:c.hotelParams.occupancies[Q].childAges.length,childAges:ee.join(","),isAdult:$,isRoomRepresentative:"1"===e.split("_")[1],roomOrder:Number(e.split("_")[0]),childAge:ea}):m.push({...null==r?void 0:r.rooms[e],genderTypeCodeKey:(0,el.R5)(null==r||null==(K=r.rooms[e])?void 0:K.birthday,null==r||null==(z=r.rooms[e])?void 0:z.number_gender),person:null==r||null==(U=r.rooms[e])?void 0:U.person,lastName:null==r||null==(W=r.rooms[e])?void 0:W.lastName,firstName:null==r||null==(X=r.rooms[e])?void 0:X.firstName,adultCount:c.hotelParams.occupancies[Q].adult,childCount:c.hotelParams.occupancies[Q].childAges.length,childAges:ee.join(","),isAdult:$,isRoomRepresentative:"1"===e.split("_")[1],roomOrder:Number(e.split("_")[0]),childAge:ea})});let{isDuplicated:h,keyName:v}=(0,D.m)(null==r?void 0:r.rooms);if(eu(h),A({...j,["rooms_".concat(v,"_firstName")]:h,["rooms_".concat(v,"_lastName")]:h}),h||(0!==x.length&&eX({errorFields:x.map(e=>({name:e}))}),i))return;let N={...r};delete N.rooms,delete N.mt_number;let g={hotelId:c.hotelDetail.id,cancelTime:d.bookingExpiredDate,firstName:null==(a=m[0])?void 0:a.firstName,lastName:null==(o=m[0])?void 0:o.lastName,birthday:null==(t=m[0])?void 0:t.birthday,genderTypeCodeKey:null==(s=m[0])?void 0:s.genderTypeCodeKey,person:m[0].person,koreanName:m[0].koreanName,telephone:m[0].telephone,adultCount:m[0].adultCount,childCount:m[0].childCount,childAges:m[0].childAges,email:m[0].email.trim(),promotionCode:"",bookingExpiredDate:d.bookingExpiredDate,description:u.getFieldValue("note_request")||"",arriveTime:_,requestOption:null==p?void 0:p.map(e=>e).join(","),numberOfRoom:c.hotelParams.occupancies.length||0,dlcAirname:N.dlcAirname,dlcDate:N.dlcDate,dlcHour:N.dlcHour,dlcMinutes:N.dlcMinutes,alcAirname:N.alcAirname,alcDate:N.alcDate,alcHour:N.alcHour,alcMinutes:N.alcMinutes,roomOrder:1,priceCheckBase64:c.hotelRoom.indexKey||"",listGuestInfo:null==m?void 0:m.slice(1,null==m?void 0:m.length),isSelfBooking:ed,termsAndConditions:c.hotelInfo.requirePriceDescription};if(Object.values(j).includes(!0))return;eZ.current=eJ(er.A,{title:"",content:(0,n.jsx)(eO,{checkLogin:ed,session:c,hotel:d,valuesNew:g}),iconClose:!0,canClose:!1});let{gaEvent:b,gaEcommerceEvent:I,gaEcommerceProduct:y}=c.gaData;eT({...b,ep_event_area:"view_cart"},I,{...y,ip_reservation_travel_yn:ed?"Y":"N"},!0)},onFinishFailed:eX,onValuesChange:()=>{},requiredMark:(e,l)=>{let{required:a}=l;return(0,n.jsxs)(n.Fragment,{children:[e,a&&(0,n.jsx)("span",{style:{color:"#009c75",marginLeft:"4px"},children:"*"})]})},validateTrigger:["onBlur"],children:(0,n.jsxs)(C.A,{indicator:e3,spinning:e2,tip:"ìì½ ì§í ì¤ì
ëë¤.",children:[(0,n.jsxs)("div",{className:"w-[100%] flex",children:[(0,n.jsxs)("div",{className:"w-[50%] pr-[80px]",children:[(0,n.jsx)("div",{className:"pb-[10px] leading-[20px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[20px] font-bold",children:"í¬ìì ì ë³´ "})}),null==(r=c.hotelParams.occupancies)?void 0:r.map((e,l)=>{var a,o;return(0,n.jsxs)("div",{children:[Array(((null==e?void 0:e.adult)||0)+((null==e?void 0:e.childAges.length)||0)).fill(0).map((a,o)=>{var t,s,r,i,d,x,p,v,_,N;return(0,n.jsxs)("div",{children:[ed&&0===o||!ed&&(null==eV?void 0:eV.memberInfo)!==null&&0===o||(null==eV?void 0:eV.memberInfo)===null&&0===o||(null==(t=c.hotelRoom.features)?void 0:t.requiresFlightDetails)?(0,n.jsxs)("div",{className:"flex justify-between pt-[20px] pb-[20px]",children:[(0,n.jsxs)("div",{className:"leading-[20px]",children:[0===o&&(0,n.jsx)("p",{className:"".concat((null==(s=c.hotelRoom.features)?void 0:s.requiresFlightDetails)?"mb-[15px]":""),children:(0,n.jsxs)("span",{className:"text-[#111111] text-[16px] font-bold pr-[10px]",children:["ê°ì¤",null==e?void 0:e.roomId," - ì±ì¸ ",e.adult,"ëª
"," ",e.childAges.length>0?", ìë".concat(e.childAges.length,"ëª
"):""]})}),(null==(r=c.hotelRoom.features)?void 0:r.requiresFlightDetails)&&
1(0,n.jsx)("span",{className:"text-[#111111] text-[14px] font-medium",children:e.adult>o?0===o&&0===l?"ëí í¬ìê° ì ë³´":0===o&&0!==l?"ê°ì¤".concat(l+1," í¬ìê° ì ë³´"):"ëë° ì±ì¸".concat(o+1," ì ë³´"):"ëë° ìë".concat(o-e.adult+1," ì ë³´")})]}),0===l&&(null==e?void 0:e.roomId)===1&&0===o&&!(0,es.Im)(eV)&&eq&&(null==eV?void 0:eV.memberInfo)!==null&&(0,n.jsxs)("div",{className:"".concat(b().checkBox," ").concat((null==(i=c.hotelRoom.features)?void 0:i.requiresFlightDetails)?"mb-[35px]":""," flex leading-[16px] cursor-pointer"),onClick:l=>e9(l,"".concat(e.roomId,"_").concat(o+1)),children:[(0,n.jsx)(G.A,{checked:ed,onChange:l=>e9(l,"".concat(e.roomId,"_").concat(o+1))}),(0,n.jsx)("span",{className:"pl-[10px] text-[#111111] text-[14px] font-semibold mt-[5px]",children:"ë¡ê·¸ì¸ íìê³¼ ëì¼"})]})]}):"",(0,n.jsxs)("div",{className:b().required,children:[o<1&&(null==e?void 0:e.roomId)<=1&&(0,n.jsxs)("div",{className:"block-form-item",children:[(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsxs)("div",{className:"text-[#111111] text-[15px] font-semibold pr-[22px] w-[82%]",children:[(0,n.jsxs)("div",{className:"text-[15px] font-semibold text-[#111] leading-6",children:["0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?"íê¸ ì´ë¦":"ì´ë¦",(0,n.jsx)("span",{className:"text-primary2",children:"*"})]}),(0,n.jsx)("div",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_koreanName")]&&b().borderColor," mt-[8px]"),children:(0,n.jsx)(m,{name:["rooms","".concat(e.roomId,"_").concat(o+1),"koreanName"],required:!0,getValueFromEvent:l=>{let a=l.target.value,n="0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?y._v.KOREAN_MAX_LENGTH:y._v.FOREIGN_MAX_LENGTH;return a.length>n?a.slice(0,n):a},children:(0,n.jsx)(k.A,{className:"rounded-md shadow-inherit",maxLength:"0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?y._v.KOREAN_MAX_LENGTH:y._v.FOREIGN_MAX_LENGTH,onBlur:l=>eY(l,"rooms_".concat(e.roomId,"_").concat(o+1,"_koreanName"),"email"),onKeyDown:l=>(0,$.A)(l,"0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?y._v.KOREAN_MAX_LENGTH:y._v.FOREIGN_MAX_LENGTH,"0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?"local":"foreign"),onPaste:l=>{l.preventDefault();let a=l.clipboardData.getData("text")||"",n=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"koreanName"])||"",t="0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"]),s=(0,y.cq)(a,n,t);u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"koreanName"],s)},placeholder:"í길ë"})})})]}),(0,n.jsx)("div",{className:"".concat(b().checkBox," pt-[31px]"),children:(0,n.jsx)(m,{name:["rooms","".concat(e.roomId,"_").concat(o+1),"person"],children:(0,n.jsx)(Y.A,{className:"flex-1",defaultValue:u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"]),onChange:l=>{var a,n,t;u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"],null==l||null==(a=l.target)?void 0:a.value),A({...j,rooms_1_1_koreanName:!1}),(null==l||null==(n=l.target)?void 0:n.value)==="0"?u.setFieldValue(["rooms","1_1","koreanName"],(null==eV?void 0:eV.memberInfo)!==null?null==eV||null==(t=eV.memberInfo)?void 0:t.koreanName:""):u.setFieldValue(["rooms","1_1","koreanName"],""),u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"number_gender"],""),A({...j,["rooms_".concat(e.roomId,"_").concat(o+1,"_number_gender")]:!1})},options:[{label:"ë´êµì¸",value:"0"},{label:"ì¸êµì¸",value:"1"}],size:"large"})})})]}),(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[10px] pb-[0px] flex flex-col",children:j["rooms_".concat(e.roomId,"_").concat(o+1,"_koreanName")]&&(0,n.jsxs)("span",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_koreanName")]?"text-[#ED4949]":"text-[#009C75]"," text-[12px]"),children:["* ë²ì"," ","0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?"íê¸":""," ","ì´ë¦ì ì
ë ¥í´ ì£¼ì¸ì."]})})]}),ed&&0===o||!ed&&(null==eV?void 0:eV.memberInfo)!==null&&0===o||0===o&&(null==eV?void 0:eV.memberInfo)===null||(null==(d=c.hotelRoom.features)?void 0:d.requiresFlightDetails)?(0,n.jsxs)("div",{className:"block-form-item",children:[(0,n.jsxs)("div",{className:"text-[#111111] text-[15px] font-semibold flex",children:[(0,n.jsx)("div",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_lastName")]&&b().borderColor," pr-[10px] w-[50%]"),children:(0,n.jsx)(m,{label:"ì문 ì±",name:["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"],required:!0,getValueFromEvent:e=>e.target.value.toUpperCase(),children:(0,n.jsx)(k.A,{className:"rounded-md shadow-inherit",maxLength:y._v.ENGLISH_COMB
1INED_MAX_LENGTH,onBlur:l=>eY(l,"rooms_".concat(e.roomId,"_").concat(o+1,"_lastName"),"text"),onKeyDown:l=>(0,$.A)(l,y._v.ENGLISH_COMBINED_MAX_LENGTH-(u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"])||"").length,"foreign"),onKeyUp:l=>{let a=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"])||"",n=(0,y.ny)(l.target.value,a);l.target.value!==n&&u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"],n)},onPaste:l=>{l.preventDefault();let a=l.clipboardData.getData("text")||"",n=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"])||"",t=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"])||"",s=(0,y.g9)(a,n,t);u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"],s)},placeholder:"ì문 ì±",value:u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"])})})}),(0,n.jsx)("div",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_firstName")]&&b().borderColor," pl-[10px] w-[50%]"),children:(0,n.jsx)(m,{label:"ì문 ì´ë¦",name:["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"],required:!0,getValueFromEvent:e=>e.target.value.toUpperCase(),children:(0,n.jsx)(k.A,{className:"rounded-md shadow-inherit",maxLength:y._v.ENGLISH_COMBINED_MAX_LENGTH,onBlur:l=>eY(l,"rooms_".concat(e.roomId,"_").concat(o+1,"_firstName"),"text"),onKeyDown:l=>(0,$.A)(l,y._v.ENGLISH_COMBINED_MAX_LENGTH-(u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"])||"").length,"foreign"),onKeyUp:l=>{let a=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"])||"",n=(0,y.ny)(l.target.value,a);l.target.value!==n&&u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"],n)},onPaste:l=>{l.preventDefault();let a=l.clipboardData.getData("text")||"",n=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"])||"",t=u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"lastName"])||"",s=(0,y.g9)(a,n,t);u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"firstName"],s)},placeholder:"ì문 ì´ë¦"})})}),(1!==e.roomId||1===e.roomId&&0!==o)&&((null==(x=c.hotelRoom.features)?void 0:x.requiresFlightDetails)||0===l&&0===o)&&(ed&&0===o||!ed&&0===o||(null==eV?void 0:eV.memberInfo)===null&&0===o||(null==(p=c.hotelRoom.features)?void 0:p.requiresFlightDetails))&&(0,n.jsx)("div",{className:"".concat(b().checkBox," pt-[31px] pl-[20px]"),children:(0,n.jsx)(m,{name:["rooms","".concat(e.roomId,"_").concat(o+1),"person"],children:(0,n.jsx)(Y.A,{className:"flex-1",defaultValue:u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"]),onChange:l=>{var a;u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"],null==l||null==(a=l.target)?void 0:a.value),u.setFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"number_gender"],""),A({...j,["rooms_".concat(e.roomId,"_").concat(o+1,"_number_gender")]:!1})},options:[{label:"ë´êµì¸",value:"0"},{label:"ì¸êµì¸",value:"1"}],size:"large"})})})]}),(0,n.jsx)("div",{className:"leading-[16px] pt-[8px]",children:(0,n.jsxs)("span",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_lastName")]||j["rooms_".concat(e.roomId,"_").concat(o+1,"_firstName")]?"text-[#ED4949]":"text-[#009C75]"," text-[12px] mb-[0px]"),children:[(0,n.jsx)("p",{className:"!mb-[5px]",children:" * ì¬ê¶ìì ì문 ì´ë¦ì ì
ë ¥í´ ì£¼ì¸ì."}),0===l&&0===o&&(0,n.jsx)("p",{className:"!mb-[5px]",children:"* ì¬ê¶ë°ê¸ ì ì´ë©´ ì¬ê¶ì ì¬ì©í ì문 ì´ë¦ì ì
ë ¥í´ ì£¼ì¸ì."}),0===l&&0===o&&(0,n.jsx)("p",{className:"!mb-[0px]",children:"* ì¤ì í¬ìê°ëª
ì¼ë¡ ì
ë ¥í´ì£¼ì¸ì. ìì½ í ëí í¬ìê° ì문ëª
ë³ê²½ì´ ë¶ê°í©ëë¤."})]})})]}):"",(0,n.jsxs)("div",{children:[((null==(v=c.hotelRoom.features)?void 0:v.requiresFlightDetails)||0===l&&0===o)&&(ed&&0===o||!ed&&0===o||(null==eV?void 0:eV.memberInfo)===null&&0===o||(null==(_=c.hotelRoom.features)?void 0:_.requiresFlightDetails))?(0,n.jsxs)("div",{className:"birthday-block block-form-item",children:[(0,n.jsx)(m,{name:["rooms","".concat(e.roomId,"_").concat(o+1),"birthdayAndGender"],rules:((e,l)=>{let a=1===Number(e.roomId||1)&&0===l,n=a?18:e.adult>l?y.mV.ADULT_MIN_AGE:0,o=a||e.adult>l?100:y.mV.ADULT_MIN_AGE,t=a?B.fp.booker:e.adult>l?B.fp.adult:B.fp.child,s=B.XC.traveler,r=e.adult>l?B.SA.adult:B.SA.children;return(0,L.l)(r,B.WD.oversea,{leftLimit:n,rightLimit:o,typeOfPerson:t,typeOfTraveler:s})})(e,o),children:"0"===u.getFieldValue(["rooms","".concat(e.roomId,"_").concat(o+1),"person"])?(0,n.jsx)(V.q
1V,{form:u,name:["rooms","".concat(e.roomId,"_").concat(o+1),"birthdayAndGender"],placeholder:"19801212",type:"PC"}):(0,n.jsx)(V.cn,{form:u,name:["rooms","".concat(e.roomId,"_").concat(o+1),"birthdayAndGender"],placeholder:"19801212"})}),(0,n.jsxs)("div",{className:"text-[12px] pt-[12px] leading-[16px] text-[#009c75]",children:["ë§ 18ì¸ ë¯¸ë§ì ê³ ê°ì ë¨ë
ìì½ì´ ë¶ê°íì¤ë, 모ëí¬ì´ ê³ ê°ì¼í°",(0,n.jsx)("span",{className:"break-keep",children:" (1544-5252)ë¡"})," 문ì ë°ëëë¤."]})]}):"",1===e.roomId&&0===l&&o<1&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"text-[#111111] text-[15px] font-semibold flex flex-col block-form-item",children:[(0,n.jsx)("div",{className:"".concat(b().errInput," ").concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_telephone")]&&b().borderColor," w-[100%]"),children:(0,n.jsx)(m,{label:"ì°ë½ì²",name:["rooms","".concat(e.roomId,"_").concat(o+1),"telephone"],required:!0,children:(0,n.jsx)(q.A,{className:"".concat(b().noSpinner),onBlur:l=>eY(l,"rooms_".concat(e.roomId,"_").concat(o+1,"_telephone"),"number"),onChange:()=>{},onKeyDown:e=>(0,ee.A)(e,20),placeholder:"01012341234"})})}),j["rooms_".concat(e.roomId,"_").concat(o+1,"_telephone")]&&(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[12px] flex flex-col",children:(0,n.jsx)("span",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_telephone")]?"text-[#ED4949]":"text-[#009C75]"," text-[12px] font-normal"),children:"* ë²ì ì°ë½ì²ì ì
ë ¥í´ ì£¼ì¸ì."})})]}),(0,n.jsxs)("div",{className:"flex flex-col block-form-item",children:[(0,n.jsxs)("div",{className:"text-[#111111] font-semibold flex",children:[(0,n.jsx)("div",{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_email")]&&b().borderColor," pr-[10px] w-[50%]"),children:(0,n.jsx)(m,{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_email")]&&b().errBorder),label:"ì´ë©ì¼",name:["rooms","".concat(e.roomId,"_").concat(o+1),"email"],required:!0,children:(0,n.jsx)(q.A,{maxLength:30,onBlur:l=>eY(l,"rooms_".concat(e.roomId,"_").concat(o+1,"_email"),"email"),placeholder:"ì´ë©ì¼"})})}),(0,n.jsx)("div",{className:"pt-[45px]",children:(0,n.jsx)("span",{className:"text-[14px]",children:"@"})}),(0,n.jsx)("div",{className:" pl-[10px] pt-[31px] w-[50%]",children:(0,n.jsx)(m,{className:"".concat(b().customInputFormIems),name:["rooms","".concat(e.roomId,"_").concat(o+1),"last_email"],required:!0,rules:ey,children:ek?(0,n.jsx)(k.A,{autoFocus:!0,className:"".concat(b().customInputForm," !rounded-[5px] !h-[50px]"),onBlur:l=>{var a;(null==l||null==(a=l.target)?void 0:a.value)===""&&(e7(),A({...j,["rooms_".concat(e.roomId,"_").concat(o+1,"_last_email")]:!0}))},onChange:le,prefix:(0,n.jsx)(I.A,{onClick:e7})}):(0,n.jsx)("div",{children:(0,n.jsx)(H.A,{className:"".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_last_email")]&&b().err),onChange:l=>{""===l?(eS(!0),eW("<p> - ê°ì¤ 1 ë²ì ì´ë©ì¼ì ì
ë ¥í´ ì£¼ì¸ì.</p>"),eC(Q.g.LAST_EMAIL_NO_MSS)):(eC(void 0),eW("")),(e=>{eG(e),A({...j,rooms_1_1_last_email:!1}),eb(e)})(l),eY(l,"rooms_".concat(e.roomId,"_").concat(o+1,"_last_email"),"email"),A({...j,rooms_1_1_last_email:!1})},options:h.Rp,placeholder:"ì íí´ ì£¼ì¸ì",value:""!==eH?eH:null})})})})]}),(j["rooms_".concat(e.roomId,"_").concat(o+1,"_email")]||j["rooms_".concat(e.roomId,"_").concat(o+1,"_last_email")])&&(0,n.jsx)("div",{className:"text-[12px] leading-[16px] mt-[12px] flex flex-col ".concat(j["rooms_".concat(e.roomId,"_").concat(o+1,"_last_email")]&&!j["rooms_".concat(e.roomId,"_").concat(o+1,"_email")]?"mt-[12px]":""),children:(0,n.jsx)("span",{className:"text-[#ED4949] text-[12px]",children:"* ë²ì ì´ë©ì¼ì ì
ë ¥í´ ì£¼ì¸ì."})})]})]})]})]}),((null==e?void 0:e.adult)||0)+((null==e?void 0:e.childAges.length)||0)!==o+1&&(null==(N=c.hotelRoom.features)?void 0:N.requiresFlightDetails)&&(0,n.jsx)("div",{className:"bg-[#D3DBD9] h-[1px] mt-[10px] mb-[10px] "})]},o)}),(null==(a=c.hotelParams.occupancies)?void 0:a.length)>1&&(null==(o=c.hotelParams.occupancies)?void 0:o.length)!==e.roomId&&(0,n.jsx)("div",{className:"bg-[#EEEEEE] h-[8px] mb-[10px] mt-[10px]"})]},e.roomId)})]}),(0,n.jsxs)("div",{className:"w-[50%] pl-[80px] mt-[-5px]",children:[(0,n.jsx)(eN,{isCheckMTNumber:!1,onChange:e=>{v(e)},onChangeTime:e=>{N(e)}}),(null==(i=c.hotelRoom.features)?void 0:i.requiresFlightDetails)&&
1(0,n.jsx)(ef,{changeRequireName:eY,requireName:j})]})]}),(0,n.jsx)("div",{className:"flex pb-[100px] pt-[30px] justify-center",children:(0,n.jsx)("div",{className:"".concat(b().btnSubmitReservation," w-[226px]"),children:(0,n.jsx)(R.A,{className:"w-[100%]",htmlType:"submit",children:eL?"ìì½í기":"ìì½ ë° ê²°ì í기"})})})]})}),ex&&(0,n.jsx)(ei.A,{message:'<div className="flex flex-col"><div>ì¤ë³µ ì´ë¦ì¼ë¡ íì¸ë©ëë¤.</div><div>ê°ì¤ë¹ ë¤ë¥¸ ì´ë¦ì¼ë¡ ì
ë ¥íì¬ ì£¼ì기 ë°ëëë¤.</div></div>',onChange:e=>{eu(e)},open:ex})]})};var eL=a(88576),eV=a(4535),eq=a.n(eV),eH=a(37374),eG=a(73811),eY=a(37328),eK=a(36011),ez=a(76526),eU=a.n(ez);let{Step:eW}=eH.A;eK.A.of(X.iE).getServerSideProps();var eX=!0;let eJ=()=>{var e,l,a,o,t,s;let{sendGaPageView:r}=(0,U.B)(),{isXcrsHotel:i}=(0,F.A)(),c=(0,eo.useRouter)(),{sessionQuery:d,hotel:m}=(0,eY.G)(),x=(0,g.useMemo)(()=>{var e;return null!=(e=Number(c.query.step))?e:1},[c.query]);return(0,g.useEffect)(()=>{if("/hotel/overseas/reservation"===c.pathname&&d.hotelDetail&&(null==c?void 0:c.query.step)==="1"){var e,l,a,n,o,t,s,i,m,x;r({ep_menu_1depth:"í¸í
",ep_menu_2depth:"í´ì¸í¸í
",ep_menu_3depth:"ìì½/ê²°ì ",ep_menu_4depth:"".concat(null!=(i=null==(e=d.hotelInfo)?void 0:e.ctnK)?i:"","-").concat(null!=(m=null==(l=d.hotelInfo)?void 0:l.crnK)?m:""),ep_menu_5depth:null!=(x=null==(a=d.hotelInfo)?void 0:a.koreanName)?x:"",ep_product_price:Number(null==(n=d.hotelRoom)?void 0:n.price)||0,ep_product_code:null==(o=d.hotelInfo)?void 0:o.hotelCode,ep_product_name:(null==(t=d.hotelInfo)?void 0:t.koreanName)||(null==(s=d.hotelInfo)?void 0:s.englishName)})}},[d.hotelInfo,d.hotelRoom]),(0,n.jsxs)("div",{className:(0,eG.A)(eq().container,i?"pb-[30px]":"py-[30px]"),children:["/hotel/overseas/reservation"===c.pathname&&d.hotelInfo&&(0,n.jsx)(eU(),{children:(0,n.jsx)("title",{children:"í¸í
>í´ì¸í¸í
>ìì½/ê²°ì >".concat(null!=(o=null==(e=d.hotelInfo)?void 0:e.ctnK)?o:"","-").concat(null!=(t=null==(l=d.hotelInfo)?void 0:l.crnK)?t:"",">").concat(null!=(s=null==(a=d.hotelInfo)?void 0:a.koreanName)?s:"")})}),(0,n.jsx)(eL.A,{props:{hotelResponse:d.hotelInfo,hotelKeywordInfo:d.hotelDetail},templateAreaType:"WTAHotelReservationPopup",templateType:"WTTDetailReservationPopup",webPageType:"WPTHotelReservation",websiteType:"WSTB2C"}),(0,n.jsxs)("div",{className:"flex justify-between pb-[20px]",children:[(0,n.jsx)("div",{className:"leading-[34px] pt-[10px]",children:(0,n.jsx)("span",{className:"text-[#111111] text-[26px] font-bold",children:"ìì½í기"})}),(0,n.jsx)("div",{className:"".concat(eq().step," px-[0px]"),children:(0,n.jsxs)(eH.A,{current:x,labelPlacement:"vertical",responsive:!1,children:[(0,n.jsx)(eW,{status:1===x?"process":"wait",title:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"leading-[15px]",children:(0,n.jsx)("span",{className:"".concat(1===x?"text-[#009C75]":"text-[#111111]"," text-[13px] font-semibold"),children:"ìì½ì ë³´ íì¸"})})})}),(0,n.jsx)(eW,{status:2===x?"process":"wait",title:(0,n.jsx)("div",{className:"leading-[15px]",children:(0,n.jsx)("span",{className:"".concat(2===x?"text-[#009C75]":"text-[#111111]"," text-[13px] font-semibold"),children:"ì½ê´ëì ë° ì ë³´ì
ë ¥"})})})]})})]}),(0,n.jsxs)("div",{className:"",children:[1===x&&(0,n.jsx)(A,{onChangeStep:()=>{c.push({query:{...c.query,step:2}})},hotel:m,session:d}),2===x&&(0,n.jsx)(eB,{session:d,hotel:m}),(0,n.jsx)("div",{})]})]})}},69768:(e,l,a)=>{"use strict";function n(e){let l=[...e];return{map:e=>l.map(e),orderBy:e=>n([...l].sort(e)),validateEntryKey:e=>l.some(l=>l.key===e),validateByKey:(e,a)=>l.some(l=>l[a]===e),getValueByKey(e,a){var n;let o=l.find(l=>l.key===e);return null!=(n=null==o?void 0:o[a])?n:null},getKeyByValue(e,a){var n;let o=l.find(l=>l[a]===e);return null!=(n=null==o?void 0:o.key)?n:""}}}a.d(l,{d:()=>n,f:()=>o.f}),n([{key:"a",value:"b"}]).map(e=>e.value);var o=a(89892)},75465:(e,l,a)=>{"use strict";a.d(l,{A:()=>t});var n=a(43999),o=a.n(n);let t=e=>{if(e){let l=e.split(" "),a=l.shift();if(o()(a,"YYYY/MM/DD",!0).isValid()||o()(a,"YYYY-MM-DD",!0).isValid()){let e=o()(a,"YYYY/MM/DD"),n=e.format("M"),t=e.format("D"),s=e.format("YYYY");return'<span class="text-[#ED4949]">'.concat(s,"ë
").concat(n,"ì ").concat(t,"ì¼</span> ").concat(l.join(""))}}return""}},89892:(e,l,a)=>{"use strict";a.d(l,{f:()=>t});var n=a(79531),o=a(69768);let t={hotelClass:(0,o.d)(n.A.HOTEL.CLASS),activitiesBadge:(0,o.d)(n.A.UI.BADGE.ACTIVITIES),activityCountries:(0,o.d)(n.A.ACTIVITY.COUNTRIES),inquiryTypeCodeKey:(0,o.d)(n.A.INQUIRY.TYPE_CODE_KEY)}}},e=>{e.O(0,[4374,1014,1190,7188,4985,558,3373,9706,83,8104,9843,8677,636,6593,8792],()=>e(e.s=48569)),_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.