PageSourceSearch

https://hopihebakonynana.hu/_next/static/chunks/5582-d3d3eeae97317543.js

js hopihebakonynana.hu collected 2026-10-08 23:46:33 UTC 45,928 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5582],{84328:function(e,n,t){t.d(n,{Z:function(){return l}});var o=t(36770),i=t(56907),r=t(42472);function l(e,n){(0,r.Z)(2,arguments);var t=(0,i.Z)(e),l=(0,o.Z)(n);return isNaN(l)?new Date(NaN):(l&&t.setDate(t.getDate()+l),t)}},84983:function(e,n,t){t.d(n,{Z:function(){return l}});var o=t(36770),i=t(53496),r=t(42472);function l(e,n){(0,r.Z)(2,arguments);var t=(0,o.Z)(n);return(0,i.Z)(e,6e4*t)}},74863:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e,n,t){(0,i.Z)(2,arguments);var r=(0,o.Z)(null==e?void 0:e.start).getTime(),l=(0,o.Z)(null==e?void 0:e.end).getTime(),s=(0,o.Z)(null==n?void 0:n.start).getTime(),a=(0,o.Z)(null==n?void 0:n.end).getTime();if(!(r<=l&&s<=a))throw RangeError("Invalid interval");return null!=t&&t.inclusive?r<=a&&s<=l:r<a&&s<l}},11598:function(e,n,t){t.d(n,{Z:function(){return l}});var o=t(58357),i=t(41784),r=t(42472);function l(e,n){(0,r.Z)(2,arguments);var t=(0,i.Z)(e),l=(0,i.Z)(n);return Math.round((t.getTime()-(0,o.Z)(t)-(l.getTime()-(0,o.Z)(l)))/864e5)}},20129:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e,n){(0,i.Z)(2,arguments);var t=(0,o.Z)(e),r=(0,o.Z)(n);return t.getTime()<r.getTime()}},52361:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e){return(0,i.Z)(1,arguments),5===(0,o.Z)(e).getDay()}},85487:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(41784),i=t(42472);function r(e,n){(0,i.Z)(2,arguments);var t=(0,o.Z)(e),r=(0,o.Z)(n);return t.getTime()===r.getTime()}},28191:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e){return(0,i.Z)(1,arguments),6===(0,o.Z)(e).getDay()}},12488:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e){return(0,i.Z)(1,arguments),0===(0,o.Z)(e).getDay()}},32987:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e,n){(0,i.Z)(2,arguments);var t=(0,o.Z)(e).getTime(),r=(0,o.Z)(n.start).getTime(),l=(0,o.Z)(n.end).getTime();if(!(r<=l))throw RangeError("Invalid interval");return t>=r&&t<=l}},41784:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(56907),i=t(42472);function r(e){(0,i.Z)(1,arguments);var n=(0,o.Z)(e);return n.setHours(0,0,0,0),n}},8292:function(e,n,t){t.d(n,{A:function(){return u}});var o=t(11527),i=t(50959),r=t(95075),l=t(65130),s=t.n(l),a=t(95893);let u=i.forwardRef((e,n)=>{let{href:t,isNextLink:i,color:l,hoverColor:u,...c}=e,d=(0,a.c)();return(0,o.jsx)(r.r,{as:i&&t?s():"a",href:t,textDecor:"underline",color:null!=l?l:d.PRIMARY,_hover:{color:null!=u?u:d.PRIMARY_HOVER},...c,ref:n})})},17175:function(e,n,t){t.d(n,{t:function(){return eS}});var o=t(11527),i=t(50959),r=t(34461),l=t(60047),s=t(88053),a=t(70627),u=t(54902),c=t(34870),d=t(824),m=t(99270),f=t(69741),h=t(96871),p=t(76451),v=t(70233),E=t(20380),x=t(18719),g=t(5027),R=t(87822),T=t(45620),j=t(41820),C=t(56868),y=t(96969),I=t(32603),N=t(40764),A=t(10448),_=t(10736),O=t(13933),b=t(86878),S=t(69869),D=t(42812),k=t(32256),F=t(37798),w=t(95893),P=t(98179),U=t(99121),M=t(9208),L=t(37663),z=t(51242),Y=t(92137),Z=t(35994),V=t(49990);let G=e=>_.h.post("discounts/validate",{json:e}).json(),H=(e,n)=>{let t=(0,r.p)(),{t:i}=(0,N.$G)("guest-side"),{selectedFont:l}=(0,P.Q)();(0,Z.Hr)(e);let s=(0,z.NL)();return(0,Y.D)(G,{...n,onError:async function(r){for(var a=arguments.length,u=Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];let{isSundayWeekend:d}=await s.ensureQueryData({queryKey:["hotels",e]}),m=d?"(".concat(i("common:friday-short"),", ").concat(i("common:saturday-short"),", ").concat(i("common:sunday-short"),")"):"(".concat(i("common:friday-short"),", ").concat(i("common:saturday-short"),")"),h=[];try{h=await (0,V.$)(r)}catch(e){t({title:i("common:something-went-wrong"),status:"error"}),(null==n?void 0:n.onError)&&n.onError(r,...u);return}if(h.length>0){let e=h.map(e=>{let n=i(e.reason,{...Object.fromEntries(Object.entries(e).filter(e=>{let[n]=e;return"reason"!==n})),returnDetails:!1});return"coupon-only-valid-on-weekends"===e.reason?"".concat(n," ").concat(m):n});t({title:i("coupon-cannot-be-used"),description:(0,o.jsx)(o.Fragment,{children:e.map((e,n)=>(0,o.jsx)(f.x,{fontFamily:null==l?void 0:l.description,children:e},n))}),status:"error"})}else t({title:i("invalid-coupon-code"),status:"error"});(null==n?void 0:n.onError)&&n.onError(r,...u)}})};var Q=t(79518),B=function(e){var n,t,l;let{name:s,formik:a,onDiscountActivated:u,onDiscountDeactivated:f,onDiscountInvalidated:h}=e,{locale:p}=(0,S.useRouter)(),{t:v}=(0,N.$G)("common"),E=(0,w.c)(),x=(0,U.R)(),{selectedTemplate:R,primaryColor:T,selectedFont:j}=(0,P.Q)(),C=(0,F.wN)(R).reserve,y=(0,F.jx)(R,x),I=C.input.border.radiu
1s,A=(0,r.p)(),_=(0,M.o)(e=>e.autoValidatedDiscount),z=(0,M.o)(e=>e.manualValidatedDiscount),Y=(0,M.o)(e=>e.setManualValidatedDiscount),Z=(0,i.useRef)(!1),V=(0,i.useRef)(!1),G=(0,i.useRef)(!1),[B,J]=(0,i.useState)(null),[W,X]=(0,i.useState)(null),{pickerState:q}=(0,M.o)(),{mutate:K}=H(x,{onSuccess:e=>{var n,t,o,i;let r=(0,L.gY)(e,p);J(W),Y(r),u(r),sessionStorage.setItem("discountValidatedStart",String(null!==(o=null===(n=q.start)||void 0===n?void 0:n.getTime())&&void 0!==o?o:"")),sessionStorage.setItem("discountValidatedEnd",String(null!==(i=null===(t=q.end)||void 0===t?void 0:t.getTime())&&void 0!==i?i:""))}}),$=(0,i.useCallback)(()=>{W&&q.start&&q.end&&K({code:W,hotelSlug:x,startAt:(0,Q._4)(q.start),endAt:(0,Q._4)(q.end)})},[W,x,q.end,q.start,K]),{setFieldValue:ee,values:en}=a,et=en[s],eo=(0,i.useCallback)(async()=>{G.current=!0,await ee(s,""),Z.current=!1,V.current=!1,J(null),X(null),Y(null),sessionStorage.removeItem("discountValidatedStart"),sessionStorage.removeItem("discountValidatedEnd"),G.current=!1},[ee,s,Y]),ei=async()=>{A({title:v("discount-code-removed"),status:"info"}),await eo(),f()},er=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(!er.current&&!B&&!W){if(z){er.current=!0,Z.current=!0,X(z.code),ee(s,z.code);return}void 0!==_&&(er.current=!0,_&&(Z.current=!0,V.current=!0,J(_.code),ee(s,_.code)))}},[z,_,B,W,ee,s]),(0,i.useEffect)(()=>{Z.current&&!V.current&&W&&!B&&q.start&&q.end&&K({code:W,hotelSlug:x,startAt:(0,Q._4)(q.start),endAt:(0,Q._4)(q.end)},{onError:async()=>{await eo(),f(),null==h||h()}})},[q.start,q.end,W,B,x,K,eo,f,h]),(0,i.useEffect)(()=>{B&&ee(s,B)},[s,ee,B]);let el=(0,i.useRef)($);(0,i.useEffect)(()=>{el.current=$},[$]);let es=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{var e;!Z.current&&!G.current&&es.current&&!B&&et.length>0&&(null!==(e=null==W?void 0:W.length)&&void 0!==e?e:0)>0&&(es.current=!1,el.current())},[null==W?void 0:W.length,B,et.length]),(0,i.useEffect)(()=>{var e;Z.current||G.current||B||!(et.length>0)||(null!==(e=null==W?void 0:W.length)&&void 0!==e?e:0)!==0||(es.current=!0,X(et))},[null==W?void 0:W.length,X,B,et]),(0,o.jsxs)(d.k,{gap:4,w:"100%",children:[(0,o.jsxs)(c.NI,{w:"65%",children:[(0,o.jsx)(m.l,{fontFamily:null==j?void 0:j.description,children:v("discount-code")}),B?(0,o.jsx)(g.z,{w:"100%",colorScheme:y.SECONDARY,variant:"outline",leftIcon:(0,o.jsx)(O.J,{as:k.XH,color:E.ERROR}),onClick:ei,borderRadius:I,fontFamily:null==j?void 0:j.description,children:v("remove-discount-code")}):(0,o.jsx)(b.I,{value:W||"",onChange:e=>{Z.current=!1,V.current=!1,X(e.target.value),ee(s,e.target.value)},borderRadius:I,borderColor:"blackAlpha.600"})]}),(0,o.jsx)(g.z,{flex:1,mt:8,color:E.WHITE,bgColor:null!==(n=null==T?void 0:T[500])&&void 0!==n?n:y.PRIMARY,px:6,variant:B?"unstyled":void 0,leftIcon:B?(0,o.jsx)(D.hXj,{color:"green"}):void 0,onClick:()=>{B||$()},borderRadius:I,_hover:{bg:null!==(l=null!==(t=null==T?void 0:T[600])&&void 0!==t?t:null==C?void 0:C.hoverBg)&&void 0!==l?l:y.PRIMARY_HOVER},fontFamily:null==j?void 0:j.description,className:"plausible-event-name=Discount+Validation",children:B?v("activated"):v("activation")})]})},J=t(49710),W=function(e){let{email:n,onClick:t}=e,{t:r}=(0,N.$G)("guest-side"),{selectedTemplate:l}=(0,P.Q)(),s=(0,U.R)(),u=(0,F.jx)(l,s),c=(0,w.c)(),m=(0,i.useMemo)(()=>(0,J.I)(n),[n]);return m&&(0,o.jsxs)(d.k,{gap:1,sx:{color:c.ALERT,mt:1},direction:["column","column","row"],children:[r("common:possible-email-typo"),(0,o.jsx)(a.xu,{children:(0,o.jsx)(a.xu,{as:"a",textDecor:"underline",color:u.PRIMARY,cursor:"pointer",_hover:{color:u.PRIMARY_HOVER},onClick:()=>{t&&t(m)},children:m})})]})},X=t(44736),q=function(e){let{containerRef:n,name:t,formik:r}=e,{t:l}=(0,N.$G)("guest-side"),{selectedFont:s}=(0,P.Q)(),a=(0,i.useRef)(),u=r.touched[t],d=r.values[t],f=r.values.country;return(0,i.useEffect)(()=>{a.current=d.length>0||u?a.current:f},[u,d,f]),(0,o.jsxs)(c.NI,{isInvalid:r.touched[t]&&!!r.errors[t],children:[(0,o.jsx)(m.l,{htmlFor:t,fontFamily:null==s?void 0:s.description,children:l("common:phone-number-full")}),(0,o.jsx)(X.Z,{containerRef:n,defaultCountryCode:a.current?a.current.toUpperCase():void 0,value:r.values[t],onChange:async e=>{await r.setFieldTouched(t,!0,!1),await r.setFieldValue(t,e)},onBlur:async()=>await r.setFieldTouched(t,!0)},a.current),(0,o.jsx)(x.J1,{fontFamily:null==s?void 0:s.description,children:r.errors[t]})]})},K=t(82327),$=t(17803),ee=t(50704),en=t(73082),et=t(83743),eo=t(46665),ei=t(26029),er=t(13809),el=t(89034),es=t(55167),ea=t(76165),eu=t(8292),ec=t(49387),ed=t(76187),em=t(58012),ef=t(10346);let eh=e=>{let{formik:n,name:t,placeholder:i,label:r,cities:l,inputRadius:s}=e,{selectedFont:a}=(0,P.Q)();return(0,o.jsxs)(c.NI,{isInvalid:n.touched[t]&&!!n.errors[t],children:[(0,o.jsx)(m.l,{htmlFor:t,fontFamily:null==a?void 0:a.description,children:r}),(0,o.jsx)(ef.P,{...n.getFieldProps(t),id:t,placeholder:i,disabled:l.length<2,borderRadius:s,borderColor:"blackAlpha.600",children:l.map(e=>(0,o.jsx)("option",{value:e.name,children:(0,o.jsx)(f.x,{fontFamily:null==a?void 0:a.description,children:e.name})},e.name))}),(0,o.jsx)(x.J1,{children:n.errors[t]})]})};var ep=t(54938);let ev=(e,n)=>e.find(e=>e.value===n),eE=e=>{let{formik:n,name:t,placeholder:r,label:l,countries:s,inputRadius:a}=e,{locale:u}=(0,S.useRouter)(),{t:d}=(0,N.$G)("guest-side"),f=(0,i.useMemo)(()=>s.map(e=>({value:e,label:(0,Z.XJ)(e,u)})).sort((e,n)=>e.label.localeCompare(n.label)),[s,u]),{value:h}=n.getFieldProps(t),{setFieldValue:p}=n,{selectedFont:v}=(0,P.Q)();return(0,o.jsxs)(c.NI,{isInvalid:n.touched[t]&&!!n.errors[t],children:[(0,o.jsx)(m.l,{htmlFor:t,fontFamily:null==v?void 0:v.description,children:l}),(0,o.jsx)(ep.Z,{instanceId:"contact-form-country-select",placeholder:r,value:ev(f,h),options:f,onChange:e=>p(t,e.value),noOptionsMessage:()=>d("common:no-options-found"),chakraStyles:{control:e=>({...e,borderRadius:"".concat(a),borderColor:"blackAlpha.600",fontFamily:null==v?void 0:v.description}),menu:e=>({...e,fontFamily:null==v?void 0:v.description}),option:e=>({...e,fontFamily:null==v?void 0:v.description})}}),(0,o.jsx)(x.J1,{fontFamily:null==v?void 0:v.description,children:n.errors[t]})]})};var ex=t(32218);let eg=e=>{let{formik:n,name:t,placeholder:i,label:r,type:l,autoComplete:s,inputRadius:a,onBlur:u}=e,{selectedFont:d}=(0,P.Q)();return(0,o.jsxs)(c.NI,{isInvalid:n.touched[t]&&!!n.errors[t],children:[(0,o.jsx)(m.l,{htmlFor:t,fontFamily:null==d?void 0:d.description,children:r}),(0,o.jsx)(b.I,{...n.getFieldProps(t),id:t,placeholder:i,type:l,autoComplete:s,onBlur:e=>{var o,i;n.setFieldValue(t,null===(i=n.values)||void 0===i?void 0:null===(o=i[t])||void 0===o?void 0:o.trim()),u&&u(e)},borderRadius:a,borderColor:"blackAlpha.600",fontFamily:null==d?void 0:d.description}),(0,o.jsx)(x.J1,{fontFamily:null==d?void 0:d.description,children:n.errors[t]})]})},eR=e=>{let{formik:n,name:t,sx:i,children:r}=e,{selectedFont:l}=(0,P.Q)();return(0,o.jsxs)(c.NI,{sx:i,isInvalid:n.touched[t]&&!!n.errors[t],children:[(0,o.jsx)(ex.X,{onChange:n.handleChange,isChecked:n.values[t],id:t,colorScheme:"purple",children:(0,o.jsx)(a.xu,{ml:2,fontFamily:null==l?void 0:l.description,children:r})}),(0,o.jsx)(x.J1,{fontFamily:null==l?void 0:l.description,children:n.errors[t]})]})};var eT=t(17948);let ej=e=>{let{formik:n,name:t,placeholder:i,label:r,textareaRadius:l}=e,{selectedFont:s}=(0,P.Q)();return(0,o.jsxs)(c.NI,{isInvalid:n.touched[t]&&!!n.errors[t],children:[(0,o.jsx)(m.l,{htmlFor:t,fontFamily:null==s?void 0:s.description,children:r}),(0,o.jsx)(eT.g,{...n.getFieldProps(t),id:t,placeholder:i,resize:"none",onBlur:()=>n.setFieldValue(t,n.values[t].trim()),borderRadius:l,borderColor:"blackAlpha.600",fontFamily:null==s?void 0:s.description}),(0,o.jsx)(x.J1,{fontFamily:null==s?void 0:s.description,children:n.errors[t]})]})};var eC=t(41184);let ey=e=>{let{formik:n,name:r,placeholder:l,label:s,type:a,autoComplete:u,inputRadius:d,setPossibleCities:f}=e,{onChange:h,value:p,...v}=n.getFieldProps(r),{selectedFont:E}=(0,P.Q)(),g=(0,i.useCallback)(e=>{h(e),"hu"===n.values.country&&t.e(5176).then(t.bind(t,35176)).then(n=>{let{cityList:t}=n,o=e.target.value;if(4!==o.length){f([]);return}let i=t.filter(e=>e.zip===parseInt(o));if(i.length>0){f(i);return}f([{name:"Ismeretlen ir\xe1ny\xedt\xf3sz\xe1m\xfa v\xe1ros",zip:parseInt(o)}])})},[h,f,n.values.country]);return(0,i.useEffect)(()=>{""!==p&&(0,eC.w)(n.values.country)&&t.e(5176).then(t.bind(t,35176)).then(e=>{let{cityList:n}=e;if(4!==p.toString().length){f([]);return}let t=n.filter(e=>e.zip===parseInt(p));if(t.length>0){f(t);return}f([{name:"Ismeretlen ir\xe1ny\xedt\xf3sz\xe1m\xfa v\xe1ros",zip:parseInt(p)}])})},[n.values.country]),(0,o.jsxs)(c.NI,{isInvalid:n.touched[r]&&!!n.errors[r],maxW:[null,null,36],children:[(0,o.jsx)(m.l,{htmlFor:r,fontFamily:null==E?void 0:E.description,children:s}),(0,o.jsx)(b.I,{...v,id:r,value:p,placeholder:l,type:a,autoComplete:u,onChange:g,borderRadius:d,borderColor:"blackAlpha.600",fontFamily:null==E?void 0:E.description}),(0,o.jsx)(x.J1,{fontFamily:null==E?void 0:E.description,children:n.errors[r]})]})};var eI=t(62837);let eN=e=>e.pickerState,eA=e=>e.selectedServices,e_=e=>e.roomSelection,eO=e=>{{let{selectedDates:n,roomSelection:t,paymentMethod:o,...i}=e;window.sessionStorage.setItem("formValues",JSON.stringify(i))}},eb=()=>{{let e=null;try{e=window.sessionStorage.getItem("formValues")}catch(e){console.log("session storage inaccessible")}if(e){let n=JSON.parse(e);return{...n,privacy:!1,tos:!1,paymentMethod:null}}}
1return{firstName:"",lastName:"",email:"",phone:"",country:"hu",zip:"",city:"",address:"",notes:"",privacy:!1,tos:!1,paymentMethod:null,isCompanyBooking:!1,companyName:"",taxNumber:"",validDiscountCode:""}},eS=e=>{var n,O,b,S,D,k,w,L,z,Y,V,G,H,J,X,ef,ep;let{onDiscountActivated:ev,onDiscountDeactivated:ex,onDiscountInvalidated:eT,isEmbedded:eC,deposit:eS,isDiscountResolved:eD}=e,[ek,eF]=(0,i.useState)(!1),[ew,eP]=(0,i.useState)("number"),[eU,eM]=(0,i.useState)([]),[eL,ez]=(0,i.useState)(!1),[eY,eZ]=(0,i.useState)(null),[eV,eG]=(0,i.useState)(!1),eH=(0,M.o)(e=>e.autoValidatedDiscount),eQ=(0,M.o)(e=>e.manualValidatedDiscount);(0,en.d)(ek);let{t:eB}=(0,N.$G)("guest-side"),eJ=(0,M.o)(eN),eW=(0,M.o)(e_),eX=(0,M.o)(eA),eq=(0,U.R)(),{selectedTemplate:eK,primaryColor:e$,selectedFont:e0}=(0,P.Q)(),e1=(0,F.wN)(eK).reserve,e2=(0,F.jx)(eK,eq),e4=e1.input.border.radius,e7=(0,Z.Hr)(eq),e9=(null===(n=e7.data)||void 0===n?void 0:n.hotelDetail.paymentMethods)?(0,er.Jt)(null===(O=e7.data)||void 0===O?void 0:O.hotelDetail.paymentMethods):null,e8=null==e9?void 0:e9.filter(e=>![et.Ve.CASH,et.Ve.BANK_TRANSFER,et.Ve.CREDIT_CARD].includes(e)),e5=null===(S=e7.data)||void 0===S?void 0:null===(b=S.hotelDetail)||void 0===b?void 0:b.depositAmount,e3=(null==e9?void 0:e9.includes(et.Ve.CREDIT_CARD))&&(null===(D=e7.data)||void 0===D?void 0:D.isStripeConnected),e6=null==e9?void 0:e9.includes(et.Ve.BANK_TRANSFER),ne=(null==e9?void 0:e9.includes(et.Ve.CASH))&&(null==e9?void 0:e9.length)===1,nn=(0,Z.U8)(),nt=!ne&&null!==e9||!e5&&e3,{roomPrices:no,servicePrices:ni,duration:nr}=(0,K.D)(eq),{items:nl,value:ns}=(0,$.Z)(no,ni),na=(0,A.useRouter)(),{locale:nu}=na,nc=(0,r.p)({position:"bottom"}),nd=(0,ee.d)(),nm=(0,es.H)(),nf=(0,eo.w)({isCustomDomain:nm,pathName:"thank-you",slug:eq+(eC?"/embed":"")}),nh=(0,eo.w)({isCustomDomain:nm,pathName:"",slug:eq+(eC?"/embed":"")}),np=(e,n)=>{let t=e;eL&&n&&null===e||(!eL&&n&&null===e&&(t=(null==e8?void 0:e8.length)?e8[0]:null),nv.setFieldValue("paymentMethod",t),ez(n))},nv=(0,y.TA)({initialValues:{...eb(),selectedDates:eJ,roomSelection:eW},onSubmit:async(e,n)=>{let{selectedDates:o,roomSelection:i,phone:r,paymentMethod:l,validDiscountCode:s,...a}=e,{format:u}=await Promise.all([t.e(1209),t.e(6149)]).then(t.bind(t,87054)),c={startAt:(0,Q._4)(o.start),endAt:(0,Q._4)(o.end),hotelSlug:eq,roomAllocation:i.map(e=>{let{id:n,quantity:t,assignedGuests:o}=e;return{roomId:n,quantity:t,...o}}),reservationDetail:{...a,paymentMethod:l||void 0,phone:u(r,"HU","E.164"),zip:"number"==typeof a.zip?a.zip.toString():a.zip,preferredLang:na.locale,notes:""!==a.notes?a.notes:void 0,discountId:eY,nonStripeDepositPaymentStatus:l!==et.uU.ONLINE_PAYMENT&&e5?et.ZY.NOT_PAID:void 0},extraServiceAllocation:eX.length>0?eX:void 0,pathName:window.location.origin+window.location.pathname};try{let{redirect:e,redirectUrl:t,id:i}=await _.h.post("reservations",{json:c}).json();n.setSubmitting(!1),window.sessionStorage.removeItem("formValues"),eF(!0),window.dataLayer&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"purchase",check_in_date:o.start?I.ou.fromJSDate(o.start).toISODate():void 0,check_out_date:o.end?I.ou.fromJSDate(o.end).toISODate():void 0,los:nr||void 0,ecommerce:{transaction_id:"T_".concat(i),currency:nn,value:ns,items:nl}})),e&&t&&eC?(window.open(t,"_blank","noopener"),na.push(nf+"?encodedStripeUrl="+btoa(t))):na.push(e&&t?t:nf)}catch(e){(0,el.Y)(e)?(nc({title:eB("common:error"),description:eB("offer-no-longer-available"),status:"warning"}),na.push(nh)):nc({title:eB("common:something-went-wrong"),status:"error"})}},validate:async e=>{let n={},{notes:o,country:i,city:r,privacy:l,tos:s,paymentMethod:a,isCompanyBooking:u,companyName:c,taxNumber:d,validDiscountCode:m,...f}=e,{isValidPhoneNumber:h}=await t.e(3075).then(t.bind(t,83075));return eO(e),l||(n.privacy=eB("must-accept")),s||(n.tos=eB("must-accept")),h(f.phone)||(n.phone=eB("common:invalid-phone-number")),Object.entries({...f,...u&&{companyName:c,taxNumber:d}}).forEach(e=>{let t=e[0],o=e[1];(!o||o.length<1)&&(n[t]=eB("field-cannot-be-empty"))}),nt&&!a&&(n.paymentMethod=eB("must-select-payment-method")),n.zip||"hu"!==nv.values.country||4===f.zip.toString().length||(n.zip=eB("common:invalid-zip-code")),n.email||/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,7}$/i.test(f.email)||(n.email=eB("common:invalid-email")),n}}),{setFieldValue:nE,values:{isCompanyBooking:nx}}=nv;(0,i.useEffect)(()=>
1{if(eQ){eG(!0),eZ(eQ.id);return}eV||eZ(eH?eH.id:null)},[eH,eV,eQ]),(0,i.useEffect)(()=>{var e;(null===(e=e7.data)||void 0===e?void 0:e.isStripeConnected)?nE("paymentMethod",et.uU.ONLINE_PAYMENT):nE("paymentMethod",null)},[null===(k=e7.data)||void 0===k?void 0:k.isStripeConnected,nE]),(0,i.useEffect)(()=>{if(eU.length>0){{let e=window.sessionStorage.getItem("formValues");if(e){let n=JSON.parse(e).city;if(n){nE("city",n,!1);return}}}nE("city",eU[0].name)}else nE("city","")},[eU,nE]),(0,i.useEffect)(()=>{"hu"===nv.values.country?"number"!==ew&&(nE("zip",""),nE("city",""),eM([]),eP("number")):"text"!==ew&&(nE("city",""),eP("text"))},[nv.values.country,nE,ew]);let ng=null!==(w=e7.data)&&void 0!==w&&!!w.hotelDetail&&!!(0,ed.y$)(null===(L=e7.data)||void 0===L?void 0:L.hotelDetail),nR=(0,l.q)(),nT=(0,i.useMemo)(()=>{var e,n,t,o;return(null===(n=e7.data)||void 0===n?void 0:null===(e=n.hotelDetail)||void 0===e?void 0:e.houseRules)?(0,j.ar)(JSON.parse(null===(o=e7.data)||void 0===o?void 0:null===(t=o.hotelDetail)||void 0===t?void 0:t.houseRules),[C.Z.configure({heading:{levels:[2]}}),T.Z]):void 0},[null===(Y=e7.data)||void 0===Y?void 0:null===(z=Y.hotelDetail)||void 0===z?void 0:z.houseRules]),[nj,nC]=(0,i.useState)(nv.values.email),ny=nv.values.paymentMethod===et.uU.ONLINE_PAYMENT?(null===(V=e7.data)||void 0===V?void 0:V.requiresConfirmation)?eB("manual-confirmation-reservation-online-payment-disclaimer",{cost:(0,ei.x)(eS.cost,nn,nu)}):eB("auto-confirmation-reservation-online-payment-disclaimer",{cost:(0,ei.x)(eS.cost,nn,nu)}):(null===(G=e7.data)||void 0===G?void 0:G.requiresConfirmation)?eB("reservation-request-disclaimer"):eB("reservation-payment-disclaimer"),nI=(0,i.useRef)(null);return(0,o.jsxs)("form",{ref:nI,onSubmit:nv.handleSubmit,children:[(0,o.jsxs)(s.g,{spacing:"8",w:["100%"],children:[(null===(J=e7.data)||void 0===J?void 0:null===(H=J.hotelDetail)||void 0===H?void 0:H.acceptsCompanyBookings)!==!1&&(0,o.jsx)(eR,{sx:{mb:7},formik:nv,name:"isCompanyBooking",children:eB("company-booking")}),(0,o.jsx)(eg,{label:eB("common:last-name"),formik:nv,name:"lastName",autoComplete:"family-name",inputRadius:e4}),(0,o.jsx)(eg,{label:eB("common:first-name"),formik:nv,name:"firstName",autoComplete:"given-name",inputRadius:e4}),nx&&(0,o.jsx)(eg,{formik:nv,name:"companyName",label:eB("common:company-name"),autoComplete:"organization",inputRadius:e4}),(0,o.jsxs)(a.xu,{sx:{width:"100%"},children:[(0,o.jsx)(eg,{label:eB("common:email-address"),formik:nv,name:"email",autoComplete:"email",type:"email",inputRadius:e4,onBlur:()=>{nC(nv.values.email)}}),nj&&(0,o.jsx)(W,{email:nj,onClick:e=>{nv.setFieldValue("email",e),nC(void 0)}})]}),nx&&(0,o.jsx)(eg,{formik:nv,name:"taxNumber",label:eB("common:tax-number"),autoComplete:"off",inputRadius:e4}),(0,o.jsx)(eE,{label:eB("common:country"),formik:nv,name:"country",countries:eI.n,inputRadius:e4}),(0,o.jsxs)(u.K,{align:"flex-start",direction:["column",null,"row"],w:"100%",spacing:["8",null,"4"],children:[(0,o.jsx)(ey,{label:eB("common:zip-code"),formik:nv,name:"zip",type:ew,autoComplete:"postal-code",setPossibleCities:eM,inputRadius:e4}),"number"===ew?(0,o.jsx)(eh,{label:eB("common:city"),formik:nv,name:"city",placeholder:0===eU.length?eB("common:please-enter-zip-code"):void 0,cities:eU,inputRadius:e4}):(0,o.jsx)(eg,{label:eB("common:city"),formik:nv,name:"city",autoComplete:"address-level2",inputRadius:e4})]}),(0,o.jsx)(eg,{label:eB("common:street-address"),formik:nv,name:"address",autoComplete:"street-address",inputRadius:e4}),(0,o.jsx)(q,{name:"phone",formik:nv,containerRef:nI}),(0,o.jsx)(B,{name:"validDiscountCode",formik:nv,onDiscountActivated:e=>{eG(!0),eZ(e.id),null==ev||ev(e)},onDiscountDeactivated:()=>{eG(!1),eZ(eH?eH.id:null),ex()},onDiscountInvalidated:eT}),(0,o.jsxs)(c.NI,{isInvalid:nv.touched.paymentMethod&&!!nv.errors.paymentMethod,children:[nt&&(0,o.jsxs)(d.k,{align:"center",mb:nd?10:4,mt:nd?14:0,children:[(0,o.jsx)(m.l,{fontSize:nd?"sm":"xl",fontWeight:nd?"light":"bold",color:nd?e2.SECONDARY:e2.BLACK,textTransform:nd?"uppercase":"none",fontFamily:null==e0?void 0:e0.heading,children:(0,o.jsx)(f.x,{fontFamily:null==e0?void 0:e0.description,children:eB("deposit-payment-method")})}),(0,o.jsx)(h.i,{flex:"1"})]}),nt&&(0,o.jsxs)(d.k,{flexDir:"column",gap:"8",children:[e3&&(0,o.jsxs)(d.k,{direction:"column",children:[(0,o.jsx)(m.l,{fontSize:"md",fontFamily:null==e0?void 0:e0.description,children:eB("payment-immediately")}),(0,o.jsx)(p.O,{isLoaded:eD,borderRadius:"md",children:(0,o.jsx)(em.C,{title:eB("safe-payment-with-cc",{amount:eS.amount}),description:eB("fast-via-stripe"),isChecked:nv.values.paymentMethod===et.uU.ONLINE_PAYMENT,onClick:()=>np(et.uU.ONLINE_PAYMENT,!1)})}),(0,o.jsxs)(v.U,{mt:4,gap:3,children:[(0,o.jsx)(E.E,{src:"/ma-symbol.svg",h:"20px"}),(0,o.jsx)(E.E,{src:"/visa.svg",h:"12px"}),(0,o.jsx)(E.E,{src:"/apple-pay.svg",h:"20px"}),(0,o.jsx)(E.E,{src:"/google-pay.svg",h:"20px"}),(0,o.jsx)(E.E,{src:"/powered-by-stripe.svg",h:"20px"})]})]}),(0,o.jsxs)(d.k,{direction:"column",children:[(!!(null==e8?void 0:e8.length)||e6||eL)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.l,{fontSize:"md",fontFamily:null==e0?void 0:e0.description,children:eB("payment-later")}),(0,o.jsx)(m.l,{fontSize:"sm",fontStyle:"italic",fontFamily:null==e0?void 0:e0.description,children:eB("more-info-in-email")})]}),(0,o.jsxs)(d.k,{direction:"column",gap:"2",children:[e6&&(0,o.jsx)(em.C,{title:eB("with-bank-transfer"),isChecked:nv.values.paymentMethod===et.Ve.BANK_TRANSFER,onClick:()=>np(et.Ve.BANK_TRANSFER,!1)}),!!(null==e8?void 0:e8.length)&&(0,o.jsx)(em.C,{title:eB("payment-later-other"),description:eB("choose-szep-card"),isChecked:eL,onClick:()=>np(null,!0)}),eL&&(0,o.jsx)(o.Fragment,{children:null==e8?void 0:e8.map(e=>(0,o.jsx)(em.C,{title:(0,er.kr)(e,eB),isChecked:nv.values.paymentMethod===e,onClick:()=>np(e,!0),isSubType:!0},e))})]})]})]}),(0,o.jsx)(x.J1,{children:nv.errors.paymentMethod})]}),(0,o.jsx)(ej,{label:"".concat(eB("common:notes")," (").concat(eB("common:optional"),")"),formik:nv,name:"notes",textareaRadius:e4}),(0,o.jsx)(eR,{formik:nv,name:"privacy",children:(0,o.jsx)(N.cC,{t:eB,i18nKey:"common:accept-privacy-terms",components:[(0,o.jsx)(eu.A,{href:eq?"".concat("hu"!==nu?"/".concat(nu):"","/").concat(eq,"/terms"):"#",target:"_blank",rel:"noreferrer"},"0")]})}),(0,o.jsxs)(eR,{formik:nv,name:"tos",children:[(0,o.jsx)(N.cC,{t:eB,i18nKey:"accept-terms-of-service",components:[(0,o.jsx)(eu.A,{href:eq?"".concat("hu"!==nu?"/".concat(nu):"","/").concat(eq,"/tos"):"#",target:"_blank",rel:"noreferrer"},"0")]}),(0,o.jsxs)(a.xu,{as:"span",display:ng?"inline":"none",children:[" ",(0,o.jsx)(N.cC,{t:eB,i18nKey:"and-the-house-rules",components:[(0,o.jsx)(eu.A,{onClick:e=>{e.preventDefault(),nR.onOpen()},cursor:"pointer"},"0")]})]})]}),e7.data?(0,o.jsxs)(d.k,{direction:"column",align:"center",w:"100%",children:[(0,o.jsx)(g.z,{type:"submit",isDisabled:nv.isSubmitting||ek,colorScheme:e2.SECONDARY,bgColor:null!==(X=null==e$?void 0:e$[500])&&void 0!==X?X:e2.PRIMARY,w:"100%",borderRadius:e4,_hover:{bg:null!==(ep=null!==(ef=null==e$?void 0:e$[600])&&void 0!==ef?ef:null==e1?void 0:e1.hoverBg)&&void 0!==ep?ep:e2.PRIMARY_HOVER},fontFamily:null==e0?void 0:e0.description,children:e7.data.requiresConfirmation?eB("send-reservation-request"):eB("confirm-reservation")}),(0,o.jsx)(a.xu,{as:"p",mt:"3",textAlign:"center",fontSize:"sm",fontFamily:null==e0?void 0:e0.description,children:nv.values.paymentMethod!==et.uU.ONLINE_PAYMENT||eD?ny:(0,o.jsx)(p.O,{height:"1em",width:"70%",mx:"auto"})})]}):null]}
1),ng&&(0,o.jsxs)(ea.I,{disclosureProps:nR,modalTitle:eB("house-rules"),size:"5xl",children:[(0,o.jsx)(ec.H,{hotelDetail:e7.data.hotelDetail}),nT&&(0,o.jsx)(R.M,{children:(0,o.jsx)(a.xu,{dangerouslySetInnerHTML:{__html:nT}})})]})]})}},44736:function(e,n,t){t.d(n,{Z:function(){return _}});var o=t(11527),i=t(50959),r=t(87883),l=t(47731),s=t(86878),a=t(84850),u=t(43433),c=t(79908),d=t(60047),m=t(824),f=t(70233),h=t(70627),p=t(69741),v=t(40764),E=t(56350),x=t(4360),g=t(69869),R=t(37798),T=t(98179),j=t(99121),C=t(35994),y=function(e){var n,t;let{selectedCountry:r,onSelect:l,inputRef:a}=e,{locale:c}=(0,g.useRouter)(),{t:d}=(0,v.$G)("common"),m=(0,j.R)(),{selectedTemplate:y}=(0,T.Q)(),I=(0,R.jx)(y,m),[N,A]=(0,i.useState)(""),_=(0,i.useRef)(null),O=(0,i.useRef)(r);(0,i.useEffect)(()=>{O.current=r},[r]);let b=e=>Array.from(e.toUpperCase()).map(e=>String.fromCodePoint(127462+e.charCodeAt(0)-65)).join(""),S=(0,i.useMemo)(()=>(0,x.o)().map(e=>({code:e,name:(0,C.XJ)(e,c),callingCode:(0,u.G)(e),flag:b(e)})).sort((e,n)=>e.name.localeCompare(n.name)),[c]),D=(0,i.useMemo)(()=>S.filter(e=>e.name.toLowerCase().includes(N.toLowerCase())),[S,N]),{isOpen:k,openMenu:F,getInputProps:w,getMenuProps:P,getItemProps:U,highlightedIndex:M,selectedItem:L}=(0,E.Kb)({defaultHighlightedIndex:0,items:D,selectedItem:null!==(n=D.find(e=>e.code===r))&&void 0!==n?n:null,inputValue:N,onSelectedItemChange:e=>{let{selectedItem:n}=e;n&&(O.current=n.code)},itemToString:e=>null!==(t=null==e?void 0:e.name)&&void 0!==t?t:""}),z=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{!k&&z.current&&(z.current=!1,l(O.current),setTimeout(()=>A(""),300))},[k,l]),(0,i.useEffect)(()=>{if(k){var e;null===(e=_.current)||void 0===e||e.scrollIntoView({behavior:"instant",block:"center"})}},[k]),(0,o.jsxs)(h.xu,{children:[(0,o.jsx)(h.xu,{pt:1,pb:3,children:(0,o.jsx)(s.I,{placeholder:d("country"),size:"md",...w({ref:a,onFocus:()=>{F(),z.current=!0},onChange:e=>{A(e.target.value)}})})}),(0,o.jsx)(h.xu,{overflow:"auto",maxH:"240px",...P(),children:D.map((e,n)=>(0,o.jsx)(h.xu,{px:3,py:2,color:e.code===(null==L?void 0:L.code)?I.SURFACE:void 0,bg:(null==L?void 0:L.code)===e.code?I.SECONDARY:M===n?I.SURFACE_HOVER:void 0,cursor:"pointer",...U({ref:(null==L?void 0:L.code)===e.code?_:void 0,item:e,index:n}),children:(0,o.jsxs)(f.U,{spacing:2,children:[(0,o.jsx)(p.x,{children:e.flag}),(0,o.jsx)(p.x,{fontWeight:"medium",children:e.name}),(0,o.jsx)(p.x,{ml:"auto",children:"+".concat(e.callingCode)})]})},e.code))})]})},I=t(18136);let N={callingCodeButton:{flex:1,alignSelf:"stretch",alignItems:"center",cursor:"pointer"},callingCodeContainer:{gap:1},emoji:{fontSize:22},callingCodeIcon:{fontSize:"sm"}};var A=function(e){let{countryCode:n,onCountryCodeChange:t,containerRef:r}=e,{t:l}=(0,v.$G)("common"),{isOpen:s,onOpen:a,onClose:E}=(0,d.q)(),x=e=>Array.from(e.toUpperCase()).map(e=>String.fromCodePoint(127462+e.charCodeAt(0)-65)).join(""),g=(0,i.useRef)(s);(0,i.useEffect)(()=>{setTimeout(()=>g.current=s,500)},[s]);let R=(0,i.useRef)(null);return(0,o.jsx)(I.G,{isOpen:s,onClose:E,width:"md",placement:"bottom-start",drawerTitle:l("country"),portalContainerRef:r,initialFocusRef:R,offset:[-13,8],renderAnchor:()=>(0,o.jsx)(m.k,{sx:N.callingCodeButton,onClick:()=>g.current?E():a(),children:(0,o.jsxs)(f.U,{sx:N.callingCodeContainer,children:[(0,o.jsx)(h.xu,{sx:N.emoji,children:x(n)}),(0,o.jsx)(p.x,{children:"+".concat((0,u.G)(n))}),(0,o.jsx)(c.v,{sx:N.callingCodeIcon})]})}),children:(0,o.jsx)(y,{inputRef:R,selectedCountry:n,onSelect:e=>{t(e),E()}})})},_=function(e){var n,t,c;let{containerRef:d,defaultCountryCode:m="HU",value:f,onChange:h,onBlur:p}=e,{selectedTemplate:v}=(0,T.Q)(),E=(0,j.R)(),x=(0,R.jx)(v,E),g=null===(n=(0,R.wN)(v))||void 0===n?void 0:n.radii,[C,y]=(0,i.useState)(m),[I,N]=(0,i.useState)(""),_=(0,i.useRef)(!1),O=(0,i.useMemo)(()=>new a.R(C),[C]),b=(0,i.useMemo)(()=>{O.reset();let e=O.input(f),n=(0,u.G)(C);return O.isInternational()?{countryCode:O.getCountry(),formattedValue:O.getCallingCode()===n?e.substring(n.length+1).trim():e}:(O.reset(),{formattedValue:O.input("+".concat(n).concat(f)).substring(n.length+1).trim()})},[O,C,f]);(0,i.useEffect)(()=>
1{if(_.current)return;O.reset();let e=O.input(f);if(O.isInternational()){let n=(0,u.G)(C),t=O.getCallingCode();if(t===n){N(e.substring(n.length+1).trim());return}}N(e)},[f,O,C]);let S=(0,i.useRef)(C);return(0,i.useEffect)(()=>{S.current=C},[C]),(0,i.useEffect)(()=>{b.countryCode&&b.countryCode!==S.current&&y(b.countryCode)},[b.countryCode]),(0,o.jsxs)(r.B,{children:[(0,o.jsx)(l.Ui,{fontWeight:500,color:x.SECONDARY,borderLeftRadius:null!==(t=g.lg)&&void 0!==t?t:"lg",children:(0,o.jsx)(A,{countryCode:C,onCountryCodeChange:e=>{e!==C&&(y(e),h(""))},containerRef:d})}),(0,o.jsx)(s.I,{pl:3,borderLeftRadius:0,value:_.current?I:b.formattedValue,onFocus:()=>_.current=!0,onBlur:()=>{var e;_.current=!1,h(null!==(e=O.getNumberValue())&&void 0!==e?e:""),null==p||p()},borderRightRadius:null!==(c=g.lg)&&void 0!==c?c:"lg",onChange:e=>{O.reset(),N(O.input(e.target.value));let n=O.getCountry();n&&n!==C&&y(n),h(O.getNumberValue()||e.target.value)},type:"tel",autoComplete:"tel"})]})}},62837:function(e,n,t){t.d(n,{n:function(){return o}});let o=["af","al","dz","as","ad","ao","ai","aq","ag","ar","am","aw","au","at","az","bs","bh","bd","bb","by","be","bz","bj","bm","bt","bo","bq","ba","bw","bv","br","io","bn","bg","bf","bi","cv","kh","cm","ca","ky","cf","td","cl","cn","cx","cc","co","km","cd","cg","ck","cr","hr","cu","cw","cy","cz","ci","dk","dj","dm","do","ec","eg","sv","gq","er","ee","sz","et","fk","fo","fj","fi","fr","gf","pf","tf","ga","gm","ge","de","gh","gi","gr","gl","gd","gp","gu","gt","gg","gn","gw","gy","ht","hm","va","hn","hk","hu","is","in","id","ir","iq","ie","im","il","it","jm","jp","je","jo","kz","ke","ki","kp","kr","kw","kg","la","lv","lb","ls","lr","ly","li","lt","lu","mo","mg","mw","my","mv","ml","mt","mh","mq","mr","mu","yt","mx","fm","md","mc","mn","me","ms","ma","mz","mm","na","nr","np","nl","nc","nz","ni","ne","ng","nu","nf","mp","no","om","pk","pw","ps","pa","pg","py","pe","ph","pn","pl","pt","pr","qa","mk","ro","ru","rw","re","bl","sh","kn","lc","mf","pm","vc","ws","sm","st","sa","sn","rs","sc","sl","sg","sx","sk","si","sb","so","za","gs","ss","es","lk","sd","sr","sj","se","ch","sy","tw","tj","tz","th","tl","tg","tk","to","tt","tn","tr","tm","tc","tv","ug","ua","ae","gb","um","us","uy","uz","vu","ve","vn","vg","vi","wf","eh","ye","zm","zw","ax"]},18136:function(e,n,t){t.d(n,{G:function(){return y}});var o=t(11527),i=t(50959),r=t(86284),l=t(67587),s=t(74499),a=t(70627),u=t(19239),c=t(41797),d=t(55481),m=t(88493),f=t(79177),h=t(74025),p=t(89021),v=t(53868),E=t(92909),x=t(5027),g=t(40764),R=t(37798),T=t(98179),j=t(50704),C=t(99121);let y=e=>{var n;let{children:t,drawerTitle:y,isOpen:I,onClose:N,placement:A="top",renderAnchor:_,width:O,portalContainerRef:b,offset:S,initialFocusRef:D}=e,k=(0,j.d)(),{t:F}=(0,g.$G)("common"),w=(0,C.R)(),{selectedTemplate:P,selectedFont:U,primaryColor:M}=(0,T.Q)(),L=(0,R.jx)(P,w),z=(0,i.useRef)(null);return k?(0,o.jsxs)(o.Fragment,{children:[_&&_(),(0,o.jsxs)(m.d,{placement:"bottom",onClose:N,isOpen:I,children:[(0,o.jsx)(f.Z,{}),(0,o.jsxs)(h.s,{borderTopRadius:"xl",children:[(0,o.jsx)(p.x,{borderBottomWidth:"1px",color:L.SECONDARY,fontFamily:null==U?void 0:U.description,children:y}),(0,o.jsx)(v.f,{color:L.SECONDARY,children:t}),(0,o.jsx)(E.m,{pb:"6",children:(0,o.jsx)(x.z,{onClick:N,w:"100%",bg:null!==(n=null==M?void 0:M[500])&&void 0!==n?n:L.PRIMARY,color:L.WHITE,fontFamily:null==U?void 0:U.description,children:F("close")})})]})]})]}):(0,o.jsxs)(r.J,{isOpen:I,onClose:N,returnFocusOnClose:!1,placement:A,offset:S,initialFocusRef:D,children:[_&&(0,o.jsx)(l.t,{children:_()}),(0,o.jsx)(s.x,{children:(0,o.jsx)(a.xu,{alignSelf:"flex-start"})}),(0,o.jsx)(a.xu,{ref:z}),(0,o.jsx)(u.h,{containerRef:null!=b?b:z,children:(0,o.jsx)(c.y,{width:O,children:(0,o.jsx)(d.b,{children:t})})})]})}},58012:function(e,n,t){t.d(n,{C:function(){return d}});var o=t(11527);t(50959);var i=t(70233),r=t(98201),l=t(70627),s=t(73159),a=t(37798),u=t(95893),c=t(98179);let d=e=>{let{isChecked:n,title:t,onClick:d,description:m,isSubType:f}=e,h=(0,u.c)(),{selectedFont:p,selectedTemplate:v}=(0,c.Q)(),E=(0,a.wN)(v).radii;return(0,o.jsxs)(i.U,{w:"100%",spacing:"6",bg:h.SURFACE,py:f?1:4,px:"4",borderRadius:f?E.lg:E.xxl,border:f?n?"2px":void 0:"2px",borderColor:n?h.PRIMARY:h.SURFACE,_hover:{boxShadow:"lg"},transitionProperty:"var(--chakra-transition-property-common)",transitionDuration:"var(--chakra-transition-duration-normal)",cursor:"pointer",onClick:d,children:[(0,o.jsx)(r.Y,{colorScheme:"purple",isChecked:n}),(0,o.jsxs)(l.xu,{children:[(0,o.jsx)(s.X,{size:"sm",fontWeight:f?"light":"bold",fontFamily:null==p?void 0:p.description,children:t}),!!m&&(0,o.jsx)(l.xu,{as:"p",fontSize:"sm",fontFamily:null==p?void 0:p.description,children:m})]})]})}},62252:function(e,n,t){t.d(n,{C:function(){return S}});var o=t(11527),i=t(60047),r=t(88053),l=t(70233),s=t(824),a=t(13933),u=t(70627),c=t(96871),d=t(2531),m=t(5027),f=t(40764),h=t(69869),p=t(37798),v=t(95893),E=t(98179),x=t(8548),g=t(99121),R=t(9208),T=t(35994),j=t(96363),C=t(26029),y=t(27790),I=t(6563),N=t(23474),A=t(32256),_=t(37251),O=t(82327);let b=e=>{let{roomSelection:n}=e;return n},S=e=>{var n,t,S,D,k,F;let{discount:w}=e,P=(0,g.R)(),{data:U}=(0,T.Hr)(P),{dateString:M,duration:L,roomPrices:z,servicePrices:Y,hasNonDiscountableServices:Z,ageGroups:V}=(0,O.D)(P),{selectedTemplate:G,selectedFont:H,primaryColor:Q}=(0,E.Q)(),B=(0,R.o)(b),J=(0,N.D)(B),{t:W}=(0,f.$G)("guest-side"),{locale:X}=(0,h.useRouter)(),q=(0,T.U8)(),K=(0,i.q)(),$=(0,v.c)(),ee=(0,x.M)({hotel:U,locale:X}),en=((null==z?void 0:z.total)||0)+((null==Y?void 0:Y.discountableTotal)||0),et=(0,j.PZ)(en,w),eo=((null==z?void 0:z.total)||0)+((null==Y?void 0:Y.total)||0),ei=(0,C.f)(((null==z?void 0:z.total)||0)*(1-et)+((null==Y?void 0:Y.discountableTotal)||0)*(1-et)+((null==Y?void 0:Y.nonDiscountableTotal)||0),q),er=!!(w&&Z&&(null==Y?void 0:Y.discountableTotal)!==(null==Y?void 0:Y.total)),el=(0,p.wN)(G).radii,es=null!==(n=null==Q?void 0:Q[600])&&void 0!==n?n:$.SECONDARY;return(0,o.jsxs)(r.g,{display:[null,null,null,"none"],align:"flex-start",border:"1px solid",borderColor:$.SURFACE_ACTIVE,borderRadius:null!==(t=el.md)&&void 0!==t?t:"md",px:"3",pt:"4",pb:"1",children:[(0,o.jsxs)(l.U,{w:"100%",justifyContent:"space-between",pb:2,children:[(0,o.jsxs)(s.k,{alignItems:"center",gap:2,children:[(0,o.jsx)(a.J,{as:A.Qu,h:"4",w:"4",color:es}),(0,o.jsx)(u.xu,{as:"span",fontFamily:null==H?void 0:H.description,children:M})]}),(0,o.jsxs)(s.k,{alignItems:"center",gap:2,children:[(0,o.jsx)(a.J,{as:A.VS,h:"4",w:"4",color:es}),(0,o.jsxs)(u.xu,{as:"span",fontFamily:null==H?void 0:H.description,children:[L," ",W("common:night-short",{count:L})]})]})]}),(0,o.jsx)(c.i,{}),(0,o.jsx)(l.U,{py:2,children:(0,o.jsxs)(s.k,{alignItems:"center",gap:2,children:[(0,o.jsx)(a.J,{as:A.nS,h:"4",w:"4",color:es}),(0,o.jsx)(u.xu,{as:"span",fontFamily:null==H?void 0:H.description,children:(0,I.y)(J,V," | ",W)})]})}),(0,o.jsxs)(s.k,{justify:"space-between",align:"flex-start",direction:"column",gap:6,pt:3,pb:1,children:[(0,o.jsxs)(s.k,{justify:"space-between",align:"start",direction:"column",children:[w&&(0,o.jsxs)(s.k,{gap:2,justifyContent:"end",w:"100%",mb:2,children:[(0,o.jsx)(d.Vp,{backgroundColor:null!==(S=null==Q?void 0:Q[500])&&void 0!==S?S:$.PRIMARY,color:null!==(D=null==Q?void 0:Q[50])&&void 0!==D?D:$.PRIMARY_SURFACE,borderRadius:null!==(k=el.sm)&&void 0!==k?k:"sm",fontWeight:"bold",children:"-".concat(w.amount,"%")}),(0,o.jsx)(u.xu,{as:"p",textAlign:"right",color:$.SECONDARY,fontSize:"md",fontWeight:"bold",textDecor:"line-through",fontFamily:null==H?void 0:H.description,children:(0,C.x)(eo,q,X)})]}),(0,o.jsx)(u.xu,{as:"p",textAlign:"right",color:$.PRIMARY,fontSize:"2xl",fontWeight:"bold",fontFamily:null==H?void 0:H.description,children:(0,C.x)(ei,q,X)})]}),ee&&(0,o.jsx)(u.xu,{as:"p",fontSize:"xs",textAlign:"start",fontFamily:null==H?void 0:H.description,children:ee}),er&&(0,o.jsx)(u.xu,{as:"p",fontSize:"xs",textAlign:"start",fontFamily:null==H?void 0:H.description,children:W("discount-not-valid-on-all-extras")}),(0,o.jsxs)(s.k,{direction:"column",w:"100%",alignItems:"center",gap:"2",children:[(0,o.jsx)(m.z,{variant:"outline",onClick:K.onOpen,borderRadius:null!==(F=el.md)&&void 0!==F?F:"md",size:"sm",leftIcon:(0,o.jsx)(a.J,{as:A.cF}),fontFamily:null==H?void 0:H.description,w:"100%",color:$.SECONDARY,className:"plausible-event-name=Mobile+Summary+Reserve",children:W("reservation-summary")}
1),(0,o.jsx)(y.Z,{isMobile:!0})]})]}),(0,o.jsx)(_.R,{disclosureProps:K,discount:w,touristTaxInfo:ee})]})}},49710:function(e,n,t){t.d(n,{I:function(){return r}});var o=t(67812);let i=(0,o.ZP)({domains:o.qJ,maxMisspelled:3});function r(e){let n=i(e);if(n)for(let e of o.qJ){var t;let{corrected:o}=null!==(t=n.find(n=>{let{suggest:t}=n;return t===e}))&&void 0!==t?t:{};if(o)return o}}},74511:function(e,n){var t,o;(o=t||(t={}))[o.CONTINUE=100]="CONTINUE",o[o.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",o[o.PROCESSING=102]="PROCESSING",o[o.OK=200]="OK",o[o.CREATED=201]="CREATED",o[o.ACCEPTED=202]="ACCEPTED",o[o.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",o[o.NO_CONTENT=204]="NO_CONTENT",o[o.RESET_CONTENT=205]="RESET_CONTENT",o[o.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",o[o.MULTI_STATUS=207]="MULTI_STATUS",o[o.ALREADY_REPORTED=208]="ALREADY_REPORTED",o[o.IM_USED=226]="IM_USED",o[o.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",o[o.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",o[o.FOUND=302]="FOUND",o[o.SEE_OTHER=303]="SEE_OTHER",o[o.NOT_MODIFIED=304]="NOT_MODIFIED",o[o.USE_PROXY=305]="USE_PROXY",o[o.SWITCH_PROXY=306]="SWITCH_PROXY",o[o.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",o[o.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",o[o.BAD_REQUEST=400]="BAD_REQUEST",o[o.UNAUTHORIZED=401]="UNAUTHORIZED",o[o.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",o[o.FORBIDDEN=403]="FORBIDDEN",o[o.NOT_FOUND=404]="NOT_FOUND",o[o.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",o[o.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",o[o.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",o[o.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",o[o.CONFLICT=409]="CONFLICT",o[o.GONE=410]="GONE",o[o.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",o[o.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",o[o.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",o[o.URI_TOO_LONG=414]="URI_TOO_LONG",o[o.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",o[o.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",o[o.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",o[o.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",o[o.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",o[o.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",o[o.LOCKED=423]="LOCKED",o[o.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",o[o.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",o[o.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",o[o.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",o[o.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",o[o.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",o[o.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",o[o.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",o[o.BAD_GATEWAY=502]="BAD_GATEWAY",o[o.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",o[o.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",o[o.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",o[o.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",o[o.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",o[o.LOOP_DETECTED=508]="LOOP_DETECTED",o[o.NOT_EXTENDED=510]="NOT_EXTENDED",o[o.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",n.Z=t},89034:function(e,n,t){t.d(n,{Y:function(){return r}});var o=t(11816),i=t(74511);let r=e=>e instanceof o.B&&e.response.status===i.Z.CONFLICT},41184:function(e,n,t){t.d(n,{w:function(){return o}});function o(e){return"hu"===e}},49990:function(e,n,t){t.d(n,{$:function(){return o}});let o=async e=>{var n;let{errors:t}=await (null===(n=e.response)||void 0===n?void 0:n.json())||{};return null!=t?t:[]}},83197:function(e,n,t){t.d(n,{J:function(){return i},z:function(){return o}});var[o,i]=(0,t(41235).k)({name:"CheckboxGroupContext",strict:!1})},32218:function(e,n,t){t.d(n,{X:function(){return T}});var o=t(50959),i=t(83197),r=t(4750),l=t(11527);function s(e){return(0,l.jsx)(r.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,l.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function a(e){return(0,l.jsx)(r.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,l.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function u(e){let{isIndeterminate:n,isChecked:t,...o}=e,i=n?a:s;return t||n?(0,l.jsx)(r.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,l.jsx)(i,{...o})}):null}
1var c=t(1835),d=t(24843),m=t(46448),f=t(20179),h=t(85593),p=t(83198),v={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},E={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},x=(0,m.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),g=(0,m.F4)({from:{opacity:0},to:{opacity:1}}),R=(0,m.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),T=(0,f.G)(function(e,n){let t=(0,i.J)(),s={...t,...e},a=(0,h.jC)("Checkbox",s),m=(0,p.Lr)(e),{spacing:f="0.5rem",className:T,children:j,iconColor:C,iconSize:y,icon:I=(0,l.jsx)(u,{}),isChecked:N,isDisabled:A=null==t?void 0:t.isDisabled,onChange:_,inputProps:O,...b}=m,S=N;(null==t?void 0:t.value)&&m.value&&(S=t.value.includes(m.value));let D=_;(null==t?void 0:t.onChange)&&m.value&&(D=(0,d.PP)(t.onChange,_));let{state:k,getInputProps:F,getCheckboxProps:w,getLabelProps:P,getRootProps:U}=(0,c.O)({...b,isDisabled:A,isChecked:S,onChange:D}),M=function(e){let[n,t]=(0,o.useState)(e),[i,r]=(0,o.useState)(!1);return e!==n&&(r(!0),t(e)),i}(k.isChecked),L=(0,o.useMemo)(()=>({animation:M?k.isIndeterminate?`${g} 20ms linear, ${R} 200ms linear`:`${x} 200ms linear`:void 0,fontSize:y,color:C,...a.icon}),[C,y,M,k.isIndeterminate,a.icon]),z=(0,o.cloneElement)(I,{__css:L,isIndeterminate:k.isIndeterminate,isChecked:k.isChecked});return(0,l.jsxs)(r.m.label,{__css:{...E,...a.container},className:(0,d.cx)("chakra-checkbox",T),...U(),children:[(0,l.jsx)("input",{className:"chakra-checkbox__input",...F(O,n)}),(0,l.jsx)(r.m.span,{__css:{...v,...a.control},className:"chakra-checkbox__control",...w(),children:z}),j&&(0,l.jsx)(r.m.span,{className:"chakra-checkbox__label",...P(),__css:{marginStart:f,...a.label},children:j})]})});T.displayName="Checkbox"},86878:function(e,n,t){t.d(n,{I:function(){return c}});var o=t(99779),i=t(20179),r=t(85593),l=t(83198),s=t(4750),a=t(24843),u=t(11527),c=(0,i.G)(function(e,n){let{htmlSize:t,...i}=e,c=(0,r.jC)("Input",i),d=(0,l.Lr)(i),m=(0,o.Y)(d),f=(0,a.cx)("chakra-input",e.className);return(0,u.jsx)(s.m.input,{size:t,...m,__css:c.field,ref:n,className:f})});c.displayName="Input",c.id="Input"},97778:function(e,n,t){t.d(n,{X:function(){return o}});function o(e,n){if(Object.is(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(let[t,o]of e)if(!Object.is(o,n.get(t)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;return!0}let t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(let o=0;o<t.length;o++)if(!Object.prototype.hasOwnProperty.call(n,t[o])||!Object.is(e[t[o]],n[t[o]]))return!1;return!0}}}]);

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.