1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13085,39187],{1375:(e,t,o)=>{"use strict";o.d(t,{G:()=>n,j:()=>r});var a=o(9966);let n=a.d4.withTypes(),r=a.wA.withTypes()},2917:e=>{e.exports={checkbox:"Checkbox_checkbox__bVSES",checkmarkAndLabel:"Checkbox_checkmarkAndLabel__arNY_",disabledStyle:"Checkbox_disabledStyle__gzRiA",checkmark:"Checkbox_checkmark__L5fTe",checkboxChecked:"Checkbox_checkboxChecked__h0CJQ",invalid:"Checkbox_invalid__tbf3E",helperText:"Checkbox_helperText__bKdF6",checkboxDisabled:"Checkbox_checkboxDisabled__j09HO",checkboxWithoutContent:"Checkbox_checkboxWithoutContent__qubLh",checkboxInput:"Checkbox_checkboxInput__OmJDc"}},3667:e=>{e.exports={bottomSheet:"EntryModal_bottomSheet__4OMrC",content:"EntryModal_content__OxLPk",logoWrapper:"EntryModal_logoWrapper__mqslH",titleSection:"EntryModal_titleSection__w29Jy",title:"EntryModal_title__TNEH1",heading:"EntryModal_heading__MINvh",emailSection:"EntryModal_emailSection__60l1R",label:"EntryModal_label__tbebf",textInput:"EntryModal_textInput__jjNWK",errorMessage:"EntryModal_errorMessage__lU46B",primaryButton:"EntryModal_primaryButton__pfVl3",termsText:"EntryModal_termsText__XqyiS",closeButton:"EntryModal_closeButton__90BBK",modalInput:"EntryModal_modalInput__Ig1Dc",headerLine:"EntryModal_headerLine__kdNyJ"}},7557:e=>{e.exports={termsText:"TermsAndPrivacy_termsText__WoySX"}},10379:(e,t,o)=>{"use strict";o.d(t,{f:()=>n,y:()=>r});var a=o(58697);let n=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,a.HK)(),event:"command_select",type:e,feature:"confirmation",hit_timestamp:new Date().toISOString()})},r=()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,a.HK)(),event:"all_booking_details_show",feature:"confirmation",hit_timestamp:new Date().toISOString()})}},12485:(e,t,o)=>{"use strict";o.d(t,{m:()=>a});var a=function(e){return e.setShoppingCart="ShoppingCart.setShoppingCart",e.setHotel="ShoppingCart.setHotel",e.setAvailabilityParameters="ShoppingCart.setAvailabilityParameters",e.setShoppingCartItems="ShoppingCart.setShoppingCartItems",e.addSingleShoppingCartItem="ShoppingCart.addSingleShoppingCartItem",e.removeSingleShoppingCartItem="ShoppingCart.removeSingleShoppingCartItem",e.setBookResponse="ShoppingCart.setBookResponse",e.setMarkInvalidFields="ShoppingCart.setMarkInvalidFields",e.setShowBusinessTariffRestrictionModal="ShoppingCart.setShowBusinessTariffRestrictionModal",e.setBlockBookButton="ShoppingCart.setBlockBookButton",e.setCreditCardForGuaranty="ShoppingCart.setCreditCardForGuaranty",e.setSmartPayActivated="ShoppingCart.setSmartPayActivated",e.setSendBillingAddress="ShoppingCart.setSendBillingAddress",e.setTriggerTrustpilotInvitaiton="ShoppingCart.setTriggerTrustpilotInvitaiton",e.setCreditCardBookMode="ShoppingCart.setCreditCardBookMode",e.setCustomer="ShoppingCart.setCustomer",e.setSMSConfirmationNumber="ShoppingCart.setSMSConfirmationNumber",e.setBillingAddress="ShoppingCart.setBillingAddress",e.updateGuestsOfOneRoom="ShoppingCart.updateGuestsOfOneRoom",e.updateGuestWishesOfOneRoom="ShoppingCart.updateGuestWishesOfOneRoom",e.setCaptureCardResponse="ShoppingCart.setCaptureCardResponse",e.setCreditCardFromTemplate="ShoppingCart.setCreditCardFromTemplate",e.setBookingFeedbackSubmitted="ShoppingCart.setBookingFeedbackSubmitted",e.setLoyaltyCard="ShoppingCart.setLoyaltyCard",e.setInitialTemplate="ShoppingCart.setInitialTemplate",e.setSelectedTemplate="ShoppingCart.setSelectedTemplate",e.resetSelectedTemplate="ShoppingCart.resetSelectedTemplate",e.set3DSActivatedForPayAtHotel="ShoppingCart.set3DSActivatedForPayAtHotel",e.setPaymentOption="ShoppingCart.setPaymentOption",e.setPaymentMethod="ShoppingCart.setPaymentMethod",e.setPaymentMeans="ShoppingCart.setPaymentMeans",e.setProcessFinalBookingStep="ShoppingCart.setProcessFinalBookingStep",e.setStripeCardDeclinedCode="ShoppingCart.setStripeCardDeclinedCode",e.clearCaptureCardResponse="ShoppingCart.clearCaptureCardResponse",e.clearCardToken="ShoppingCart.clearCardToken",e.setVouchers="ShoppingCart.setVouchers",e.setDefaultVoucherCode="ShoppingCart.setDefaultVoucherCode",e.setTriggerNewsletterSubscription="ShoppingCart.setTriggerNewsletterSubscription",e.setWantsToReceiveHotelRatingMail="ShoppingCart.setWantsToReceiveHotelRatingMail",e.markToNotifyUncompletedApplyVoucher="ShoppingCart.markToNotifyUncompletedApplyVoucher",e.setPreAuthorizationOnCreditCard="ShoppingCart.setPreAuthorizationOnCreditCard",e.setPreAuthorizationChecked="ShoppingCart.setPreAuthorizationChecked",e.resetCreditCardIframe="ShoppingCart.resetCreditCardIframe",e.markToSaveContactDetails="ShoppingCart.markToSaveContactDetails",e.setFailedBookingAttempt="ShoppingCart.setFailedBookingAttempt",e.setRegisterWhileBooking="ShoppingCart.setRegisterWhileBooking",e.clearCustomerBookingData="ShoppingCart.clearCustomerBookingData",e}({})},14637:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});
1var a=o(69406),n=o(33186),r=o(1375),s=o(96224),i=o(7620),l=o(31946),d=o(42380);let c=e=>{let{autoLoginOnSuccess:t=!0,onSuccess:o,onError:c}=e,[u,p]=(0,i.useState)(!1),[m,h]=(0,i.useState)(),[g,w]=(0,i.useState)(!1),_=(0,r.j)();return{resetPasswordProcessing:u,resetPasswordError:m,resetPasswordSuccess:g,handleResetPassword:async e=>{let{code:r,email:i,password:u}=e;p(!0),h(void 0),w(!1);try{await (0,s.P)({username:i,confirmationCode:r,newPassword:u}),w(!0),(0,l.g6)({status:"success"}),t&&_((0,n.zz)(i,u)),o&&o()}catch(t){let e=(e=>"CodeMismatchException"===e.name||"ExpiredCodeException"===e.name?d.V.CodeExpired:"LimitExceededException"===e.name?d.V.LimitExceeded:d.V.Unknown)(t);h(e),(0,l.g6)({status:"failed",error:t.name}),a.Vy.error(t,{source:a._q.AuthService,code:t.name,method:"resetPassword"}),c&&c(e)}finally{p(!1)}}}}},22627:(e,t,o)=>{"use strict";o.d(t,{$g:()=>r,BO:()=>c,LP:()=>d,dP:()=>l,h1:()=>s,jI:()=>i});var a=o(51823),n=o(8431);let r=(e,t,o)=>new Intl.NumberFormat((0,a.m)(e),{style:"currency",currency:o}).format(t),s=(e,t,o)=>new Intl.NumberFormat((0,a.m)(e),{style:"currency",currency:o,minimumFractionDigits:0}).format(t),i=(e,t,o)=>new Intl.NumberFormat((0,a.m)(e),{style:"currency",currency:o,minimumFractionDigits:0,maximumFractionDigits:0}).format(t),l=(e,t)=>new Intl.NumberFormat((0,a.m)(e),{maximumSignificantDigits:2}).format(t),d=(e,t)=>new Intl.NumberFormat((0,a.m)(e),{minimumFractionDigits:0,maximumFractionDigits:0}).format(t),c=(e,t)=>{let o=(0,n.py)(t),a=e;return o===n.uf.miles?(a=(0,n.gD)(e),"".concat(l(t,a)," mi.")):e<1?"".concat(d(t,1e3*a)," m"):"".concat(l(t,a)," km")}},25327:e=>{e.exports={root:"OtpConfirmationContent_root__g4EwG",heading:"OtpConfirmationContent_heading__KF2qq",description:"OtpConfirmationContent_description__x3UvC",resendLine:"OtpConfirmationContent_resendLine__LMPco",resendButton:"OtpConfirmationContent_resendButton__hn6wN",countdown:"OtpConfirmationContent_countdown__yGepQ",resendSuccess:"OtpConfirmationContent_resendSuccess__SHTqJ"}},27127:e=>{e.exports={container:"InlineNotification_container__XUo5W",containerNeutral:"InlineNotification_containerNeutral__9Ulg2",containerHint:"InlineNotification_containerHint__rBSA9",containerWarning:"InlineNotification_containerWarning__DnILY",containerError:"InlineNotification_containerError__KEVcq",containerSuccess:"InlineNotification_containerSuccess__rACiS",containerInfo:"InlineNotification_containerInfo__edgjf",notification:"InlineNotification_notification__dIZnF"}},28594:(e,t,o)=>{"use strict";o.d(t,{o:()=>a});var a=function(e){return e.UNKNOWN="UNKNOWN",e.BREAKFAST="BREAKFAST",e.HALF_BOARD="HALF_BOARD",e.FULL_BOARD="FULL_BOARD",e.ALL_INCLUSIVE="ALL_INCLUSIVE",e}({})},29350:e=>{e.exports={bottomSheet:"PasswordFallbackModal_bottomSheet__u4VC4",content:"PasswordFallbackModal_content__rmxgb",header:"PasswordFallbackModal_header__SP8gd",heading:"PasswordFallbackModal_heading__vC5mL",title:"PasswordFallbackModal_title__WpQJ_",description:"PasswordFallbackModal_description__jallM",forgotPasswordLink:"PasswordFallbackModal_forgotPasswordLink__fS_fi",navFooterLink:"PasswordFallbackModal_navFooterLink__7vxyk",passwordSection:"PasswordFallbackModal_passwordSection__YwL3U",label:"PasswordFallbackModal_label__9EWNX",textInput:"PasswordFallbackModal_textInput__6Hrgp",errorMessage:"PasswordFallbackModal_errorMessage__1OOiL",primaryButton:"PasswordFallbackModal_primaryButton__tICF6",otpLink:"PasswordFallbackModal_otpLink__0ZEyd",navFooter:"PasswordFallbackModal_navFooter__RKLSa",navButton:"PasswordFallbackModal_navButton__45fFv",modalInput:"PasswordFallbackModal_modalInput__roAru",headerLine:"PasswordFallbackModal_headerLine__lxYnW"}},29732:(e,t,o)=>{"use strict";o.d(t,{A:()=>c,_:()=>d});var a=o(54568),n=o(72902),r=o(9406),s=o(32733),i=o(27127),l=o.n(i),d=function(e){return e.Info="Info",e.Success="Success",e.Error="Error",e.Warning="Warning",e.Hint="Hint",e}({});let c=e=>{let t,o,i;switch(e.notificationType){case"Info":t=s.I.statusInfo,o=l().containerInfo,i="status";break;case"Success":t=s.I.statusSuccessCircle,o=l().containerSuccess,i="status";break;case"Error":t=s.I.statusError,o=l().containerError,i="alert";break;case"Warning":t=s.I.statusWarning,o=l().containerWarning,i="alert";break;case"Hint":t=s.I.timeClock,o=l().containerHint,i="status";break;default:t=s.I.statusSurface,o=l().containerNeutral,i="status"}
1return(0,a.jsx)("div",{className:(0,n.A)(o,e.className),role:i,children:(0,a.jsxs)("div",{className:l().notification,children:[(0,a.jsx)(r.A,{src:t,alt:"",width:20,height:20}),e.text&&(0,a.jsx)("span",{children:e.text}),e.children]})})}},33718:e=>{e.exports={bottomSheet:"ForgotPasswordNewPasswordModal_bottomSheet__U1JSu",content:"ForgotPasswordNewPasswordModal_content__V_xxG",heading:"ForgotPasswordNewPasswordModal_heading__O7N1w",description:"ForgotPasswordNewPasswordModal_description__mrDCP",hintArea:"ForgotPasswordNewPasswordModal_hintArea__9xtIa",requirements:"ForgotPasswordNewPasswordModal_requirements__maOWv",requirementsCount:"ForgotPasswordNewPasswordModal_requirementsCount__ZYiyd",modalInput:"ForgotPasswordNewPasswordModal_modalInput__EAxMy",headerLine:"ForgotPasswordNewPasswordModal_headerLine__9v_jL"}},39108:e=>{e.exports={bottomSheet:"ForgotPasswordOtpModal_bottomSheet__MektF",content:"ForgotPasswordOtpModal_content__1z0xx",headerLine:"ForgotPasswordOtpModal_headerLine__7IJ4a"}},39187:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>p});var a=o(54568),n=o(64889),r=o(72902),s=o(9406),i=o(32733),l=o(19784),d=o(96104),c=o.n(d);let u=e=>{let{isValid:t,isError:o}=e;if(o){let e=t?i.I.closeSurface:i.I.closeError;return(0,a.jsx)(s.A,{className:c().x,src:e,width:10,height:10,alt:"error"})}return(0,a.jsx)(s.A,{className:c().check,src:i.I.checkSuccess500,width:10,height:10,alt:"check"})},p=e=>{let{password:t,slimDisplayMode:o,isValid:s,classNames:i,showProgressBar:d=!0}=e,{t:p}=(0,n.useTranslation)("auth"),m=(0,l.Oj)(t),h=m.validationErrors.includes(l.bM.MIN_LENGTH_ERROR),g=m.validationErrors.includes(l.bM.UPPERCASE_LOWERCASE_ERROR),w=m.validationErrors.includes(l.bM.SPECIAL_CHAR_ERROR),_=m.validationErrors.includes(l.bM.NUMBER_ERROR);return(0,a.jsxs)(a.Fragment,{children:[d&&(0,a.jsxs)("div",{className:(0,r.A)(c().requirements,null==i?void 0:i.requirements),children:[(0,a.jsxs)("span",{children:["".concat(p("PasswordStrength.Requirements")," "),(0,a.jsxs)("span",{className:(0,r.A)(c().requirementsCount,null==i?void 0:i.requirementsCount),"aria-invalid":!m.isValid,children:[(0,a.jsx)("span",{children:m.requirementsMet}),(0,a.jsx)("span",{children:"/4"})]})]}),(0,a.jsx)("div",{className:c().bar,id:"passwordStrengthBar",children:(0,a.jsx)("div",{"aria-valuenow":m.requirementsMet,"aria-valuemin":0,"aria-valuemax":4})})]}),(0,a.jsxs)("div",{className:(0,r.A)(c().hintArea,null==i?void 0:i.hintArea,{[c().hintAreaColumns]:o}),children:[(0,a.jsxs)("div",{className:c().condition,"aria-invalid":h,children:[(0,a.jsx)(u,{isValid:s,isError:h}),(0,a.jsx)("div",{className:c().hint,children:p("PasswordStrength.MinLength")})]}),(0,a.jsxs)("div",{className:c().condition,"aria-invalid":g,children:[(0,a.jsx)(u,{isValid:s,isError:g}),(0,a.jsx)("div",{className:c().hint,children:p("PasswordStrength.UpperLowerCaseLetter")})]}),(0,a.jsxs)("div",{className:c().condition,"aria-invalid":_,children:[(0,a.jsx)(u,{isValid:s,isError:_}),(0,a.jsx)("div",{className:c().hint,children:p("PasswordStrength.Number")})]}),(0,a.jsxs)("div",{className:c().condition,"aria-invalid":w,children:[(0,a.jsx)(u,{isValid:s,isError:w}),(0,a.jsx)("div",{className:c().hint,children:p("PasswordStrength.SpecialChar")})]})]})]})}},40147:(e,t,o)=>{"use strict";o.d(t,{$z:()=>_,Ck:()=>m,Jo:()=>E,N0:()=>x,T6:()=>v,WF:()=>k,Y4:()=>f,ZI:()=>C,Zu:()=>p,jU:()=>b,jY:()=>g,lm:()=>y,om:()=>S,yy:()=>h});var a=o(16734),n=o.n(a),r=o(27560),s=o(32733),i=o(32384),l=o(80549),d=o(10379),c=o(22627),u=o(19784);let p=9;function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start",a=arguments.length>3?arguments[3]:void 0,n=document.getElementById(e);null==n||n.scrollIntoView({block:o,behavior:t,inline:a})}let h=e=>e>=9?"Excellent":e>=8?"VeryGood":e>=7?"Good":"Ok",g=e=>e.filter(e=>w.includes(e)),w=[i.s.BATHROOM,i.s.CABLETV,i.s.AIRCONDITIONROOM,i.s.MINIBAR,i.s.INTERNET_WLANINROOM,i.s.INTERNET_DSLINROOM,i.s.WHEELCHAIRFRIENDLYROOM,i.s.PAYTV,i.s.DESK,i.s.ROOMSAFE],_=(e,t)=>e.reduce((e,o)=>{let a=t(o);return e[a]||(e[a]=[]),e[a].push(o),e},{}),C=e=>e.isMobile?"Mobile":e.isSmallTablet?"Smalltablet":e.isTablet?"Tablet":e.isDesktop?"Desktop":"unknown",f=e=>{if(!e)return"Registration.PasswordHint";let t=(0,u.Oj)(e);if(t.isValid||0===t.validationErrors.length)return"Registration.PasswordHint";if(t.validationErrors.length>1)return"Registration.PasswordErrorMultiple";switch(t.validationErrors[0]){case u.bM.MIN_LENGTH_ERROR:return"Registration.PasswordErrorMinLength";case u.bM.UPPERCASE_LOWERCASE_ERROR:return"Registration.PasswordErrorUpperLowercase";case u.bM.NUMBER_ERROR:return"Registration.PasswordErrorNumber";
1case u.bM.SPECIAL_CHAR_ERROR:return"Registration.PasswordErrorSpecialChar";default:return"Registration.PasswordHint"}},S=()=>"/".concat("static/btcimages/"),y=(e,t,o,a)=>{(0,d.f)("AddToCalendar"),!function(e,t){let o=document.createElement("a");o.href=window.URL.createObjectURL(e),o.setAttribute("download",t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}(new Blob([function(e,t,o,a){var s,i,d,u,p,m;let{summary:h,itemGuestUnits:g,processNumber:w,accessCode:_}=e,{hotel:C,contact:f}=t;if(!h)return"";let S="".concat(new Date().toISOString().replace(/[-:]/g,"").substring(0,15),"Z"),y=(null==(s=t.receptionInformation)?void 0:s.earliestCheckIn)?n()(null==(i=t.receptionInformation)?void 0:i.earliestCheckIn).format("HHmmss"):"060000",E=(null==(d=t.receptionInformation)?void 0:d.latestCheckout)?n()(null==(u=t.receptionInformation)?void 0:u.latestCheckout).format("HHmmss"):"235900",x="".concat(n()(e.arrival).format("YYYYMMDDT")).concat(y),b="".concat(n()(e.departure).format("YYYYMMDDT")).concat(E),v=f.phoneNumber.countryCode?"".concat(f.phoneNumber.countryCode," ").concat(f.phoneNumber.callNumber):f.phoneNumber.callNumber,k="".concat(o("book:Confirmation.YourBookingData"),": ").concat(C.name,"\\, ").concat(C.address.city,"\\, ").concat(o("customer:Contact.Phone"),": ").concat(v),N="".concat(C.address.street,"\\, ").concat(null!=(m=C.address.postalCode)?m:""," ").concat(null==(p=C.address.cityWithDistrict)?void 0:p.replace(",","\\,")),A=g.map((e,t)=>{let{pricePerNight:o,description:n}=e.rate,r=(0,c.$g)(a,o.amount,o.currency).replace(",","\\,"),s=g.length>1?"(".concat(t+1,") "):"";return"".concat(s).concat(e.room.description," - ").concat(n,": ").concat(r)}),P=[o("book:Confirmation.CalendarTitle_".concat("HRS")),"",o("book:Confirmation.YourBookingData"),"","".concat(o("book:Confirmation.ProcessNumber"),": ").concat(w),"".concat(o("book:Confirmation.AccessCode"),": ").concat(_),"","".concat(o("common:Calendar.Arrival")," / ").concat(o("common:Calendar.Departure"),": ").concat((0,l.Yq)(a,e.arrival,!0,!0)," - ").concat((0,l.Yq)(a,e.departure,!0,!0)),"","".concat(o("home:Search.Hotel"),": ").concat(C.name,"\\, ").concat(N),"".concat(o("customer:Contact.Phone"),": ").concat(v),"",...A,"----------------------------------------------------------------------","".concat(o("detail:SummaryPrice.PriceType.Total"),": ").concat((0,c.$g)(a,h.totalPrice.amount,h.totalPrice.currency))];return["BEGIN:VCALENDAR\nPRODID:-//Events Calendar//iCal4j 1.0//EN\nCALSCALE:GREGORIAN\nVERSION:2.0\nMETHOD:PUBLISH\nBEGIN:VEVENT","DTSTAMP:".concat(S),"DTSTART:".concat(x),"DTEND:".concat(b),"SUMMARY:".concat(k),"LOCATION:".concat(N),"UID:".concat((0,r.A)()),"DESCRIPTION:".concat(P.join("\\n")),"TRANSP:TRANSPARENT\nEND:VEVENT\nEND:VCALENDAR"].join("\n")}(e,t,o,a)],{type:"text/calendar;charset=utf-8"}),"de"===a?"HRS_Buchung.ics":"HRS_Reservation.ics")};function E(e,t,o){(0,d.f)("Print");let a="/".concat(o,"/confirmationprintview");a="".concat(a,"?processId=").concat(e,"&accessCode=").concat(t);let n=window.open(a,"_blank","noopener noreferrer");n&&n.focus()}function x(e){let t={VISA:s.I.visa,MASTERCARD:s.I.masterCard,AMERICAN_EXPRESS:s.I.amex,DINERS:s.I.dinersClub,DISCOVER:s.I.discover,JCB:s.I.jcb,NO_CARD:s.I.noCardSelected};return t[e]||t.NO_CARD}function b(e){let t=[],o=e=>{e&&(e.firstName||e.lastName)&&t.push([e.firstName,e.lastName].join(" "))};return o(e.adult1),o(e.adult2),o(e.child1),o(e.child2),t}function v(e,t){let o=[i.s.VISA,i.s.MASTERCARD,i.s.ELECTRONIC_CASH,i.s.DINERS_CLUB,i.s.AMERICAN_EXPRESS,i.s.JCB,i.s.DISCOVER,i.s.CHINA_UNIONPAY,i.s.NON_CC_PAYMENTS_BILLING_TO_CORPORATE_ACCOUNT,i.s.NON_CC_PAYMENTS_ELECTRONIC_CASH,i.s.NON_CC_PAYMENTS_TRAVELER_CHECKS,i.s.TRAVELERS_CHECKS,i.s.CREDITCARDS_NOTACCEPTED],a=[...o,i.s.APPLE_PAY_NO_BACKGROUND,i.s.GOOGLE_PAY_NO_BACKGROUND],n=t?a:o,r=e.filter(e=>n.includes(e));return r.includes(i.s.ELECTRONIC_CASH)&&r.includes(i.s.NON_CC_PAYMENTS_ELECTRONIC_CASH)&&(r=r.filter(e=>e!==i.s.NON_CC_PAYMENTS_ELECTRONIC_CASH)),r.includes(i.s.TRAVELERS_CHECKS)&&r.includes(i.s.NON_CC_PAYMENTS_TRAVELER_CHECKS)&&(r=r.filter(e=>e!==i.s.NON_CC_PAYMENTS_TRAVELER_CHECKS)),r}let k=e=>"HRS"},42380:(e,t,o)=>{"use strict";o.d(t,{V:()=>n,e:()=>a});var a=function(e){return e.LimitExceeded="LimitExceededException",e.UserNotActivated="UserDoesNotActivate",e.Unknown="Unknown",e}({}),n=function(e){return e.CodeExpired="CodeExpired",e.CodeMismatch="CodeMismatch",e.LimitExceeded="LimitExceeded",e.Unknown="Unknown",e}({})},51823:(e,t,o)=>{"use strict";o.d(t,{m:()=>a});let a=e=>{switch(e){case"de":return"de-DE";case"en":return"en-GB";case"fr":return"fr-FR";case"it":return"it-IT";case"es":return"es-ES";case"nl":return"nl-NL";case"pl":return"pl-PL";case"ru":return"ru-RU";case"sv":return"sv-SE";case"tr":return"tr-TR";case"ja":return"ja-JP";case"zh_cn":return"zh";case"pt":return"pt-PT";default:return"en-US"}}},60821:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var a=o(54568),n=o(64889),r=o(9406),s=o(32733),i=o(92478),l=o.n(i);let d=()=>{let{t:e}=(0,n.useTranslation)("auth");return(0,a.jsxs)("div",{className:l().container,children:[(0,a.jsx)("div",{className:l().hint,children:"".concat(e("Login.DidYouKnow")," ").concat(e("Login.Hint_".concat("HRS")))}),(0,a.jsxs)("div",{className:l().logos,children:[!1,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.A,{alt:"HRS",src:s.I.logoHrs,width:58,height:14}),(0,a.jsx)(r.A,{alt:"HOTEL DE",src:s.I.logoHde,width:70,height:14})]})]})]})}},63371:e=>{e.exports={benefits:"Benefits_benefits__DwRBs",benefitsTitle:"Benefits_benefitsTitle__UgM56"}},64549:(e,t,o)=>{"use strict";o.d(t,{J:()=>a});var a=function(e){return e.Unknown="UNKNOWN",e.Inclusive="INCLUSIVE",e.Exclusive="EXCLUSIVE",e.NotAvailable="NOT_AVAILABLE",e}({})},67031:e=>{e.exports={bottomSheet:"LoginOtpModal_bottomSheet__aLPwr",content:"LoginOtpModal_content__utA7g",header:"LoginOtpModal_header__qIx0I",title:"LoginOtpModal_title___VCFl",description:"LoginOtpModal_description__VYqyR",otpSection:"LoginOtpModal_otpSection____xp4",errorMessage:"LoginOtpModal_errorMessage__DBTEm",navFooter:"LoginOtpModal_navFooter__r5Ifo",divider:"LoginOtpModal_divider__dnq_S",navButton:"LoginOtpModal_navButton__Ieiap",switchMethodButton:"LoginOtpModal_switchMethodButton__XGbrz",headerLine:"LoginOtpModal_headerLine__pzjP4"}},89422:(e,t,o)=>{"use strict";o.d(t,{A:()=>m});var a=o(54568),n=o(44164),r=o(23134),s=o(46468),i=o(16752),l=o(64889),d=o(7620),c=o(7557),u=o.n(c);let p=i.T.brand,m=()=>{let{t:e}=(0,l.useTranslation)("auth"),[t,o]=(0,d.useState)(void 0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.A,{variant:"body2",className:u().termsText,children:[e("Registration.TaCStart_".concat(p)),(0,a.jsx)(n.Ay,{type:n.VQ.Tertiary,size:n.Mp.Small,linkType:n.J.ButtonLink,onButtonClick:e=>{e.stopPropagation(),o("Terms")},text:e("Registration.TaCTerms")}),e("Registration.TaCAnd"),(0,a.jsx)(n.Ay,{type:n.VQ.Tertiary,size:n.Mp.Small,linkType:n.J.ButtonLink,onButtonClick:e=>{e.stopPropagation(),o("Privacy")},text:e("Registration.TaCPrivacy")}),e("Registration.TaCEnd_".concat(p))]}),t&&(0,a.jsx)(s.A,{type:t,closeModal:()=>o(void 0)})]})}},90173:e=>{e.exports={bottomSheet:"RegistrationOtpModal_bottomSheet__TD6L5",content:"RegistrationOtpModal_content__M08bW",header:"RegistrationOtpModal_header__ROHPq",title:"RegistrationOtpModal_title__Vd30J",description:"RegistrationOtpModal_description__Uivts",otpSection:"RegistrationOtpModal_otpSection__hRQba",errorMessage:"RegistrationOtpModal_errorMessage__iAEKI",navFooter:"RegistrationOtpModal_navFooter__eFY9_",newsletterRow:"RegistrationOtpModal_newsletterRow__Q1MvZ",divider:"RegistrationOtpModal_divider__tvOlg",navButton:"RegistrationOtpModal_navButton__CJ2IW",headerLine:"RegistrationOtpModal_headerLine__2m0DT"}},92478:e=>{e.exports={container:"Footer_container__p6mvG",hint:"Footer_hint__QIeXl",logos:"Footer_logos__XjLNy"}},94152:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var a=o(54568),n=o(9406),r=o(32733),s=o(23134),i=o(64889),l=o(63371),d=o.n(l);let c=["Discount","LoyaltyPoints","QuickBooking"],u=(0,a.jsx)(n.A,{src:r.I.checkSuccess500,width:16,height:16,alt:"check"}),p=()=>{let{t:e}=(0,i.useTranslation)(["auth","customer"]);
1return(0,a.jsx)("div",{className:d().benefits,children:c.map(t=>(0,a.jsxs)("span",{className:d().benefitsTitle,children:[u,(0,a.jsx)(s.A,{variant:"body2",children:e("Registration.BenefitsNew.".concat(t),{ns:"auth"})})]},t))})}},95176:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>eL});var a=o(54568),n=o(1375),r=o(55471),s=o(7620),i=o(10545);let l="auth_flow_ref";function d(e,t){var o;if(null==(o=window.newrelic)?void 0:o.addPageAction)try{let o=function(){try{var e;return null!=(e=sessionStorage.getItem(l))?e:void 0}catch(e){return}}();window.newrelic.addPageAction(e,{...t,...o&&{authFlowRef:o}})}catch(e){}}function c(e){d("auth_step_entered",{flowVersion:"otp",step:e,timestamp:Date.now()})}function u(e){d("auth_step_completed",{flowVersion:"otp",step:e,timestamp:Date.now()})}function p(e){d("auth_success",{flowVersion:"otp",step:e,timestamp:Date.now()})}function m(e,t,o){d("auth_error",{flowVersion:"otp",step:e,errorType:t,...o&&{errorMessage:o},timestamp:Date.now()})}function h(e,t){d("auth_prelogin_password_probe",{flowVersion:"otp",step:"entry",errorType:e,...t&&{errorMessage:t},timestamp:Date.now()})}function g(e){d("auth_flow_started",{flowVersion:"otp",step:"entry",entryType:e,timestamp:Date.now()})}var w=o(53598),_=o(47801),C=o(44164),f=o(29732),S=o(44176),y=o(23134),E=o(60821),x=o(59168),b=o(64889),v=o(33083),k=o(86634),N=o(3667),A=o.n(N);let P=new Set(["LimitExceededException","LimitExceeded","TooManyRequestsException"]),O=e=>!!e&&P.has(e),R=e=>e("OtpFlow.Error.LimitExceeded","Too many attempts. For security reasons, please wait a few minutes before trying again.");function F(){return"".concat(crypto.randomUUID().replace(/-/g,""),"Aa1!")}async function T(e){try{await (0,v.J)({username:e,password:F(),options:{authFlowType:"USER_PASSWORD_AUTH"}}),h("None")}catch(e){var t;h(null!=(t=e.name)?t:"Unknown",e.message)}}let I=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,M=e=>{let{modalVisible:t,isSendingInitialOtp:o=!1,currentEmail:n="",onRouteDecided:i,onClose:l}=e,{t:d}=(0,b.useTranslation)("auth"),[u,p]=(0,s.useState)(n),[h,g]=(0,s.useState)(""),[v,N]=(0,s.useState)(!1),[P,M]=(0,s.use
1State)(!1);(0,s.useEffect)(()=>{t&&N(!1)},[t]);let L=(0,s.useRef)(""),{handleSignUpUser:j}=(0,k.V)({onSuccess:()=>{i("none",u)}}),B=I.test(u),D=v||o,V=(0,s.useCallback)(async()=>{if(D)return;if(!B)return void M(!0);g(""),N(!0),c("entry");try{await (0,r.x)({username:u,options:{clientMetadata:{suppressEmail:"true"}}})}catch(t){if("UserLambdaValidationException"===t.name)await T(u),i("confirmed",u);else if("InvalidParameterException"===t.name)i("unconfirmed",u);else{var e;g(O(t.name)?R(d):null!=(e=t.message)?e:d("OtpFlow.Entry.ErrorGeneric","Something went wrong. Please try again.")),m("entry",t.name,t.message)}N(!1);return}let t=F();L.current=t;try{await j({data:{firstName:"",lastName:"",email:u,password:t,language:"en",subscribeNewsletter:!1},onError:e=>{g(O(e)?R(d):d("OtpFlow.Entry.ErrorGeneric","Something went wrong. Please try again.")),m("entry",e,void 0),N(!1)}})}catch(e){g(d("OtpFlow.Entry.ErrorGeneric","Something went wrong. Please try again.")),N(!1)}},[u,D,B,j,i,d]);return(0,a.jsxs)(w.default,{open:t,centerContentForDesktop:!0,onClose:l,className:A().bottomSheet,children:[(0,a.jsx)(_.A,{className:A().headerLine,title:d("OtpFlow.Entry.Title","Sign in or create an account"),onExit:l}),(0,a.jsxs)("div",{className:A().content,children:[(0,a.jsx)(x.A,{}),(0,a.jsx)(y.A,{component:"h2",variant:"h5",fontWeight:"semi-bold",className:A().heading,children:d("OtpFlow.Entry.Title","Sign in or create an account")}
1),(0,a.jsx)(S.A,{id:"entry-email",className:A().modalInput,noMargin:!0,type:"email",inputMode:"email",placeholder:d("OtpFlow.Entry.EmailPlaceholder","Email address"),value:u,onChange:e=>{p(e),M(!1)},onBlur:()=>{M(u.trim().length>0&&!B)},onKeyDown:e=>{"Enter"===e.key&&V()},disabled:D,isValid:!h&&!P,isHelperTextShown:P,helperText:d("OtpFlow.Entry.EmailInvalid","Please enter a valid email address")}),h&&(0,a.jsx)(f.A,{notificationType:f._.Error,children:h}),(0,a.jsx)(C.Ay,{type:C.VQ.Primary,size:C.Mp.Large,onButtonClick:V,text:D?d("OtpFlow.Entry.Loading","Loading..."):d("OtpFlow.Entry.ContinueButton","Continue"),fullWidth:!0,disabled:D}),(0,a.jsx)(E.A,{})]})]})};var L=o(95473),j=o.n(L);let B=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,D=e=>{let{modalVisible:t,currentEmail:o="",onCodeSent:n,onNavigateBack:i,onClose:l}=e,{t:d}=(0,b.useTranslation)("auth"),[p,h]=(0,s.useState)(o),[g,v]=(0,s.useState)(""),[k,N]=(0,s.useState)(!1),[A,P]=(0,s.useState)(!1);(0,s.useEffect)(()=>{t&&(h(o),P(!1))},[t,o]);let F=B.test(p),T=(0,s.useCallback)(async()=>{if(!k){if(!F)return void P(!0);v(""),N(!0),c("forgot-password-email");try{await (0,r.x)({username:p}),u("forgot-password-email"),n(p)}catch(e){v(O(e.name)?R(d):d("OtpFlow.ForgotPassword.Email.ErrorGeneric","Something went wrong. Please try again.")),m("forgot-password-email",e.name,e.message)}finally{N(!1)}}},[p,F,k,n,d]);return(0,a.jsxs)(w.default,{open:t,centerContentForDesktop:!0,onClose:l,className:j().bottomSheet,children:[(0,a.jsx)(_.A,{className:j().headerLine,title:d("OtpFlow.ForgotPassword.Email.Title","Forgot password?"),onGoBack:i,onExit:l}),(0,a.jsxs)("div",{className:j().content,children:[(0,a.jsx)(x.A,{}),(0,a.jsx)(y.A,{component:"h2",variant:"h5",fontWeight:"semi-bold",className:j().heading,children:d("OtpFlow.ForgotPassword.Email.Title","Forgot password?")}),(0,a.jsx)(y.A,{variant:"body2",className:j().subtitle,children:d("OtpFlow.ForgotPassword.Email.Description","No problem! Please check the email address associated to your account.")}),(0,a.jsx)(S.A,{id:"forgot-password-email",className:j().modalInput,noMargin:!0,type:"email",inputMode:"email",placeholder:d("OtpFlow.Entry.EmailPlaceholder","Email address"),value:p,onChange:e=>{h(e),P(!1)},onBlur:()=>{P(p.trim().length>0&&!F)},onKeyDown:e=>{"Enter"===e.key&&T()},disabled:k,isValid:!g&&!A,isHelperTextShown:A,helperText:d("OtpFlow.Entry.EmailInvalid","Please enter a valid email address"),autoFocus:!0}),g&&(0,a.jsx)(f.A,{notificationType:f._.Error,children:g}),(0,a.jsx)(C.Ay,{type:C.VQ.Primary,size:C.Mp.Large,onButtonClick:T,text:k?d("OtpFlow.Entry.Loading","Loading..."):d("OtpFlow.ForgotPassword.Email.ContinueButton","Reset password"),fullWidth:!0,disabled:k}),(0,a.jsx)(E.A,{})]})]})};
1var V=o(39187),H=o(40147),U=o(19784),W=o(14637),q=o(42380),G=o(33718),Y=o.n(G);let z=e=>{let{modalVisible:t,email:o,code:n,onPasswordReset:r,onCodeRejected:i,onClose:l}=e,{t:d}=(0,b.useTranslation)("auth"),[h,g]=(0,s.useState)(""),[E,v]=(0,s.useState)(!0),[k,N]=(0,s.useState)(!1);(0,s.useEffect)(()=>{c("forgot-password-new-password")},[]);let{resetPasswordProcessing:A,resetPasswordError:P,handleResetPassword:O}=(0,W.A)({autoLoginOnSuccess:!0,onSuccess:()=>{p("forgot-password-new-password"),r()},onError:e=>{m("forgot-password-new-password",e,void 0),e===q.V.CodeExpired&&i()}}),F=()=>{E&&h&&!A&&(u("forgot-password-new-password"),O({email:o,code:n,password:h}))},T=P&&P!==q.V.CodeExpired,I=P===q.V.LimitExceeded?R(d):d("OtpFlow.ForgotPassword.NewPassword.ErrorGeneric","Something went wrong. Please try again.");return(0,a.jsxs)(w.default,{open:t,centerContentForDesktop:!0,onClose:l,className:Y().bottomSheet,children:[(0,a.jsx)(_.A,{className:Y().headerLine,title:d("OtpFlow.ForgotPassword.NewPassword.Title","Configure new password"),onExit:l}),(0,a.jsxs)("form",{className:Y().content,noValidate:!0,onSubmit:e=>{e.preventDefault(),F()},children:[(0,a.jsx)(x.A,{}),(0,a.jsx)(y.A,{component:"h2",variant:"h5",fontWeight:"semi-bold",className:Y().heading,children:d("OtpFlow.ForgotPassword.NewPassword.Heading","Enter your new password")}),(0,a.jsxs)(y.A,{variant:"body2",className:Y().description,children:[d("OtpFlow.ForgotPassword.NewPassword.EmailConfirmationPrefix","You are setting up a password for")," ",(0,a.jsx)("strong",{children:o}),d("OtpFlow.ForgotPassword.NewPassword.EmailConfirmationSuffix",".")]}),(0,a.jsx)(S.A,{id:"forgot-password-new-password",className:Y().modalInput,noMargin:!0,type:"password",placeholder:d("OtpFlow.ForgotPassword.NewPassword.PasswordPlaceholder","Password"),value:h,onChange:e=>{g(e),v((0,U.Oj)(e).isValid)},helperText:d((0,H.Y4)(h)),onFocus:()=>N(!0),isHelperTextShown:!E,autoComplete:"new-password",disabled:A,autoFocus:!0,required:!0}),T&&(0,a.jsx)(f.A,{notificationType:f._.Error,children:I}),k&&(0,a.jsx)(V.default,{classNames:{hintArea:Y().hintArea,requirements:Y().requirements,requirementsCount:Y().requirementsCount},password:h,slimDisplayMode:!0,isValid:!0}),(0,a.jsx)(C.Ay,{type:C.VQ.Primary,size:C.Mp.Large,onButtonClick:F,text:d("OtpFlow.ForgotPassword.NewPassword.SubmitButton","Proceed"),fullWidth:!0,showSpinner:A,disabled:!E||!h||A})]})]})};var K=o(39108),J=o.n(K),Q=o(9406),X=o(32733),$=o(40887),Z=o(25327),ee=o.n(Z);let et="SendFailed",eo=e=>e&&O(e)?e:et,ea=e=>{let{length:t,email:o,onSubmitOTP:n,onResendCode:r,isResendAvailable:i,secondsRemaining:l,error:d,codeSentText:c,hintText:u,heading:p,children:m}=e,{t:h}=(0,b.useTranslation)("auth"),[g,w]=(0,s.useState)(!1),[_,f]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(!_)return;let e=setTimeout(()=>f(!1),1500);return()=>clearTimeout(e)},[_]);let S=async()=>{if(!g){w(!0),f(!1);try{await r()&&f(!0)}finally{w(!1)}}},E=null!=c?c:h("OtpFlow.OtpConfirmation.EnterCodePrefix","Please enter this code, we sent to");return(0,a.jsxs)("div",{className:ee().root,"data-testid":"otp-confirmation-content",children:[(0,a.jsx)(x.A,{}),p&&(0,a.jsx)(y.A,{component:"h2",variant:"h5",fontWeight:"semi-bold",className:ee().heading,children:p}),m,(0,a.jsxs)(y.A,{variant:"body1",className:ee().description,children:[E," ",(0,a.jsx)("strong",{children:o}),null!=u?u:""]}),(0,a.jsx)($.A,{length:t,onComplete:n,isError:!!d,errorMessage:((e,t)=>{if(O(e))return R(t);switch(e){case"CodeExpired":case"InvalidCode":case"CodeMismatchException":case"NotAuthorizedException":return t("OtpFlow.OtpConfirmation.Error.CodeExpired","This code is incorrect or no longer valid. Please try again or request a new code.");case"UserAlreadyConfirmed":return t("OtpFlow.OtpConfirmation.Error.AlreadyConfirmed","This account is already confirmed. You can sign in.");case et:return t("OtpFlow.OtpConfirmation.ResendFailed","Failed to resend the code. Please try again.");default:return t("OtpFlow.OtpConfirmation.Error.Unknown","Something went wrong. Please try again.")}})(d,h)}),(0,a.jsxs)(y.A,{component:"p",variant:"body2",className:ee().resendLine,children:[h("OtpFlow.OtpConfirmation.ResendLabel","Code expired or no email received? Check your spam folder or")," ",_?(0,a.jsxs)("span",{className:ee().resendSuccess,role:"status","data-testid":"otp-resend-success",children:[(0,a.jsx)(Q.A,{src:X.I.checkSuccess500,alt:"",width:14,height:14}),h("OtpFlow.OtpConfirmation.ResendSuccess","A new code has been sent.")]}):i?(0,a.jsx)(C.Ay,{type:C.VQ.Tertiary,size:C.Mp.Small,onButtonClick:()=>void S(),className:ee().resendButton,text:h("OtpFlow.OtpConfirmation.ResendButton","Request a new code"),disabled:g}):(0,a.jsx)("span",{className:ee().countdown,"data-testid":"otp-countdown",children:h("OtpFlow.OtpConfirmation.Countdown","You can request a new one in ".concat(l,"s"),{seconds:l})})]})]})},en=e=>{let{modalVisible:t,email:o,isResendAvailable:n,secondsRemaining:i,startCountdown:l,onCodeEntered:d,inlineError:p,onNavigateBack:h,onClose:g}=e,{t:C}
1=(0,b.useTranslation)("auth"),[f,S]=(0,s.useState)(!1),[y,E]=(0,s.useState)(void 0);(0,s.useEffect)(()=>{c("forgot-password-otp")},[]);let x=async()=>{S(!0),E(void 0);try{return await (0,r.x)({username:o}),l(),u("forgot-password-otp"),!0}catch(e){return E(eo(e.name)),m("forgot-password-otp",e.name,e.message),!1}};return(0,a.jsxs)(w.default,{open:t,centerContentForDesktop:!0,onClose:g,className:J().bottomSheet,children:[(0,a.jsx)(_.A,{className:J().headerLine,title:C("OtpFlow.ForgotPassword.Otp.Title","Enter confirmation code"),onGoBack:h,onExit:g}),(0,a.jsx)("div",{className:J().content,children:(0,a.jsx)(ea,{length:6,email:o,heading:C("OtpFlow.ForgotPassword.Otp.Heading","Confirm your email address"),onSubmitOTP:d,onResendCode:x,isResendAvailable:n,secondsRemaining:i,error:f?y:p?"CodeExpired":void 0})})]})};var er=o(7980),es=o(33186),ei=o(8426),el=o(16095),ed=o(19636),ec=o(13989),eu=o(52606),ep=o(29592),em=o(7232),eh=o(15890),eg=o(48557),ew=o(97307),e_=o(63471),eC=o(29470),ef=o(19891);async function eS(e){let{challengeResponse:t,options:o}=e,{username:a,challengeName:n,signInSession:r,signInDetails:s}=ed.c$.getState(),i=ei.H.getConfig().Auth?.Cognito;(0,el.$y)(i);let l=o?.clientMetadata;if((0,em.M)(!!t,eh.P.EmptyChallengeResponse),!a||!n||!r)throw new ec.l({name:eg.nC.SignInException,message:` 2 An error occurred during the sign in process. 3 4 This most likely occurred due to: 5 1. signIn was not called before confirmSignIn. 6 2. signIn threw an exception. 7 3. page was refreshed during the sign in flow and session has expired. 8 `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{let{Session:e,ChallengeName:d,AuthenticationResult:c,ChallengeParameters:u}=await (0,eu.XE)(a,n,r,t,i,e_.o,l,o);if((0,ed.wr)({signInSession:e,username:a,challengeName:d,signInDetails:s}),c)return await (0,ew.i)({username:a,...c,NewDeviceMetadata:await (0,ef.i)({userPoolId:i.userPoolId,userPoolEndpoint:i.userPoolEndpoint,newDeviceMetadata:c.NewDeviceMetadata,accessToken:c.AccessToken}),signInDetails:s}),(0,ed.jN)(),await (0,eC.Q)(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return(0,eu.q2)({challengeName:d,challengeParameters:u})}catch(t){(0,ep.e)(t);let e=(0,eu.m$)(t.name);if(e)return e;throw t}}let ey=()=>{};var eE=o(67031),ex=o.n(eE);let eb=e=>{let{email:t,isVisible:o=!0,onSendComplete:r=ey,autoSendOnMount:l=!0,isResendAvailable:d=!0,secondsRemaining:h=0,startCountdown:g=ey,onSuccess:f,onNavigateBack:S,onNavigatePasswordFallback:y,onClose:E}=e,{sendOtp:x,verifyOtp:k,resendOtp:N,verifyLoading:A,getError:P}
8=function(){let e=(0,n.j)(),[t,o]=(0,s.useState)(!1),[a,r]=(0,s.useState)(!1),[i,l]=(0,s.useState)(!1),[d,c]=(0,s.useState)(null),[u,p]=(0,s.useState)(!1),m=(0,s.useRef)(null),h=(0,s.useCallback)(async e=>{o(!0),c(null),m.current=null;try{return await (0,v.J)({username:e,options:{authFlowType:"USER_AUTH",preferredChallenge:"EMAIL_OTP"}}),p(!0),!0}catch(t){let e={type:t.name&&"Error"!==t.name?t.name:"NetworkError",message:t.message||"Failed to send OTP. Please try again."};return c(e),m.current=e,!1}finally{o(!1)}},[]),g=(0,s.useCallback)(async e=>{l(!0),c(null),m.current=null;try{return await (0,v.J)({username:e,options:{authFlowType:"USER_AUTH",preferredChallenge:"EMAIL_OTP"}}),!0}catch(t){let e={type:t.name&&"Error"!==t.name?t.name:"NetworkError",message:t.message||"Failed to resend OTP."};return c(e),m.current=e,!1}finally{l(!1)}},[]);return{sendOtp:h,resendOtp:g,verifyOtp:(0,s.useCallback)(async t=>{r(!0),c(null),m.current=null;try{if((await eS({challengeResponse:t})).isSignedIn)return e((0,es.$X)()),!0;throw Error("Authentication failed")}catch(a){let e=a.name&&"Error"!==a.name?a.name:"NetworkError",t=a.message||"Invalid OTP. Please try again.";t.includes("Incorrect")||t.includes("invalid")?e="InvalidCode":t.includes("expired")?e="CodeExpired":t.includes("NotAuthorizedException")?e="NotAuthorizedException":t.includes("TooManyRequests")&&(e="TooManyRequestsException",t="Too many failed attempts. Please try again later.");let o={type:e,message:t};return c(o),m.current=o,!1}finally{r(!1)}},[e]),reset:(0,s.useCallback)(()=>{o(!1),r(!1),l(!1),c(null),m.current=null,p(!1)},[]),loading:t||a||i,sendLoading:t,verifyLoading:a,resendLoading:i,error:d,otpSent:u,getError:()=>m.current}}(),{t:O}
8=(0,b.useTranslation)("auth"),[R,F]=(0,s.useState)(void 0),T=(0,s.useRef)(!1);(0,s.useEffect)(()=>{o&&c("login-otp-modal")},[o]),(0,s.useEffect)(()=>{!T.current&&l&&(T.current=!0,x(t).then(e=>{if(e)u("login-otp-modal");else{let e=P();F(eo(null==e?void 0:e.type)),m("login-otp-modal",(null==e?void 0:e.type)||"NetworkError",null==e?void 0:e.message)}r(e)}))},[t]);let I=async e=>{if(u("login-otp-modal"),(0,er.kG)(),F(void 0),await k(e))p("login-otp-modal"),(0,er.Nf)("",""),f();else{let e=P();F((null==e?void 0:e.type)||"Unknown"),m("login-otp-modal",(null==e?void 0:e.type)||"Unknown",null==e?void 0:e.message)}},M=async()=>{F(void 0);let e=await N(t);if(e)g(),u("login-otp-modal");else{let e=P();F(eo(null==e?void 0:e.type)),m("login-otp-modal",(null==e?void 0:e.type)||"NetworkError",null==e?void 0:e.message)}return e};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{modalVisible:o&&A,flow:"waitingConfirmOTP"}),(0,a.jsxs)(w.default,{open:o&&!A,centerContentForDesktop:!0,onClose:E,className:ex().bottomSheet,children:[(0,a.jsx)(_.A,{className:ex().headerLine,title:O("OtpFlow.LoginOtp.Title","Sign in with code"),onGoBack:S,onExit:E}),(0,a.jsxs)("div",{className:ex().content,children:[(0,a.jsx)(ea,{length:8,email:t,heading:O("OtpFlow.LoginOtp.Heading","Sign in to your account"),onSubmitOTP:I,onResendCode:M,isResendAvailable:d,secondsRemaining:h,error:R}),(0,a.jsx)("div",{className:ex().divider}),(0,a.jsx)(C.Ay,{type:C.VQ.Tertiary,size:C.Mp.Small,onButtonClick:y,className:ex().switchMethodButton,text:O("OtpFlow.LoginOtp.PasswordFallbackButton","Sign in with password instead"),disabled:A})]})]})]})};var ev=o(29350),ek=o.n(ev);let eN=e=>{let{email:t,onSuccess:o,onPasswordAttemptFailed:r,onNavigateBackToOtp:i,onForgotPassword:l,onClose:d}=e,{t:h}=(0,b.useTranslation)("auth"),{loginWithPassword:g,loading:f,getError:E}
8=function(){let e=(0,n.j)(),[t,o]=(0,s.useState)(!1),[a,r]=(0,s.useState)(null),i=(0,s.useRef)(null);return{loginWithPassword:(0,s.useCallback)(async(t,a)=>{o(!0),r(null),i.current=null;try{if((await (0,v.J)({username:t,password:a,options:{authFlowType:"USER_PASSWORD_AUTH"}})).isSignedIn)return e((0,es.$X)()),!0;throw Error("Authentication failed")}catch(a){let e=a.name&&"Error"!==a.name?a.name:"NetworkError",t=a.message||"Invalid email or password. Please try again.";t.includes("Incorrect")||t.includes("invalid")?e="NotAuthorizedException":t.includes("TooManyRequests")?(e="TooManyRequestsException",t="Too many failed attempts. Please try again later."):t.includes("not confirmed")&&(e="UserNotConfirmedException");let o={type:e,message:t};return r(o),i.current=o,!1}finally{o(!1)}},[e]),reset:(0,s.useCallback)(()=>{o(!1),r(null),i.current=null},[]),loading:t,error:a,getError:()=>i.current}}(),[k,N]=(0,s.useState)(""),[A,P]=(0,s.useState)("");(0,s.useEffect)(()=>{c("password-fallback-modal")},[]);let F=!k||f,T=async()=>{if(!F)if(P(""),u("password-fallback-modal"),(0,er.kG)(),await g(t,k))p("password-fallback-modal"),(0,er.Nf)("",""),o();else{let e=E();m("password-fallback-modal",(null==e?void 0:e.type)||"Unknown",null==e?void 0:e.message),P(O(null==e?void 0:e.type)?R(h):h("OtpFlow.PasswordFallback.ErrorInvalidCredentials","Email and password don't match. Try again.")),null==r||r()}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(w.default,{open:!0,centerContentForDesktop:!0,onClose:d,className:ek().bottomSheet,children:[(0,a.jsx)(_.A,{className:ek().headerLine,title:h("OtpFlow.PasswordFallback.Title","Sign in with password"),onGoBack:i,onExit:d}),(0,a.jsxs)("div",{className:ek().content,children:[(0,a.jsx)(x.A,{}),(0,a.jsx)(y.A,{component:"h2",variant:"h5",fontWeight:"semi-bold",className:ek().heading,children:h("OtpFlow.PasswordFallback.Heading","Enter your password")}),(0,a.jsxs)(y.A,{variant:"body1",className:ek().description,children:[h("OtpFlow.PasswordFallback.DescriptionPrefix","You are signing into the account for")," ",(0,a.jsx)("strong",{children:t}),h("OtpFlow.PasswordFallback.DescriptionSuffix",".")]}),(0,a.jsx)(S.A,{id:"password",className:ek().modalInput,noMargin:!0,type:"password",placeholder:h("OtpFlow.PasswordFallback.PasswordPlaceholder","Password"),value:k,onChange:e=>{N(e),P("")},onKeyDown:e=>{"Enter"!==e.key||F||T()},disabled:f,isValid:!A,isHelperTextShown:!!A,helperText:A,autoFocus:!0}),(0,a.jsx)(C.Ay,{type:C.VQ.Tertiary,size:C.Mp.Small,onButtonClick:l,className:ek().forgotPasswordLink,text:h("OtpFlow.PasswordFallback.ForgotPasswordButton","Forgot password?"),disabled:f}),(0,a.jsx)(C.Ay,{type:C.VQ.Primary,size:C.Mp.Large,onButtonClick:T,text:f?h("OtpFlow.PasswordFallback.SignInLoadingButton","Logging in..."):h("OtpFlow.PasswordFallback.SignInButton","Sign in"),fullWidth:!0,disabled:F}),(0,a.jsx)(C.Ay,{type:C.VQ.Tertiary,size:C.Mp.Small,onButtonClick:i,className:ek().navFooterLink,text:h("OtpFlow.PasswordFallback.OtpFallbackButton","Sign in with code instead"),disabled:f})]})]})})};var eA=o(99102),eP=o(94152),eO=o(89422),eR=o(49479),eF=o(14834),eT=o(90173),eI=o.n(eT);let eM=e=>{let{variant:t,email:o,isVisible:n=!0,onSendComplete:r=ey,isResendAvailable:l=!0,secondsRemaining:d=0,startCountdown:h=ey,onSuccess:g,onAuthFailure:f,onNavigateBack:S,onClose:E,newsletterOptIn:x=!1,onNewsletterOptInChange:v,prefilledConfirmationCode:k}=e,N="new"===t?"registration-otp-new":"registration-otp-unconfirmed",{t:A}=(0,b.useTranslation)("auth"),[P,O]=(0,s.useState)(void 0),[R,F]=(0,s.use
8State)(""),{confirmProcessing:T,confirmSuccess:I,confirmError:M,handleConfirmSignUp:L}=(0,eR.M)({onSuccess:()=>{p(N),(0,er.kh)("signup"),g()},onAuthFailure:f});(0,s.useEffect)(()=>{M&&O(M)},[M]);let{handleResendSignUp:j}=(0,eF.h)(),B=(0,s.useRef)(!1);(0,s.useEffect)(()=>{c(N),(0,er.F1)(void 0,"signup")},[t]),(0,s.useEffect)(()=>{if(!B.current){if(B.current=!0,k){L({email:o,code:k,subscribeNewsletter:!1}),r(!1);return}if("unconfirmed"!==t)return void r(!0);j({email:o,onSuccess:()=>{u(N),r(!0)},onError:e=>{O(eo(e)),m(N,e,void 0),r(!1)}})}},[t,o,k]);let D=async()=>{O(void 0);let e=!1;return await j({email:o,onSuccess:()=>{e=!0,h(),u(N)},onError:e=>{O(eo(e)),m(N,e,void 0)}}),e};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{modalVisible:n&&I,flow:"waitingAutoLogin"}),(0,a.jsxs)(w.default,{open:n&&!I,centerContentForDesktop:!0,onClose:E,className:eI().bottomSheet,children:[(0,a.jsx)(_.A,{className:eI().headerLine,title:A("OtpFlow.RegistrationOtp.Title","Create an account"),onGoBack:S,onExit:E}),(0,a.jsxs)("div",{className:eI().content,children:[(0,a.jsx)(ea,{length:6,email:o,heading:A("OtpFlow.RegistrationOtp.Heading","Create your account"),onSubmitOTP:e=>{F(e)},onResendCode:D,isResendAvailable:l,secondsRemaining:d,error:P,children:(0,a.jsx)(eP.A,{})}),(0,a.jsx)("div",{className:eI().divider}),(0,a.jsxs)("div",{className:eI().newsletterRow,children:[(0,a.jsx)(eA.A,{id:"registration-newsletter-opt-in",checked:x,onChange:()=>{null==v||v(!x)}}),(0,a.jsx)(y.A,{variant:"body2",children:A("Registration.NewsletterSubscriptionText","Subscribe to our newsletter and join the inner circle for insider info and special offers (unsubscribe any time).")})]}),(0,a.jsx)(C.Ay,{type:C.VQ.Primary,size:C.Mp.Large,onButtonClick:()=>{6!==R.length||T||(u(N),O(void 0),L({email:o,code:R,subscribeNewsletter:x}))},text:T?A("OtpFlow.Entry.Loading","Loading..."):A("OtpFlow.RegistrationOtp.RegisterButton","Register"),fullWidth:!0,disabled:6!==R.length||T}),(0,a.jsx)(eO.A,{})]})]})]})},eL=e=>{let{onClose:t,deepLink:o,initialStep:c}=e,[u,p]=(0,s.useState)(null!=c?c:"entry"),[h,w]=(0,s.useState)("forgot-password-email"===c?"entry":"password-fallback"),[_,C]=(0,s.useState)(""),[f,S]=(0,s.useState)(!1),{isResendAvailable:y,secondsRemaining:E,startCountdown:x,reset:b}=function(){let[e,t]=(0,s.useState)(0),o=e>0;return(0,s.useEffect)(()=>{if(!o)return;let e=setInterval(()=>{t(e=>e>0?e-1:0)},1e3);return()=>clearInterval(e)},[o]),{isResendAvailable:!o,secondsRemaining:e,startCountdown:(0,s.useCallback)(()=>{t(30)},[]),reset:(0,s.useCallback)(()=>{t(0)},[])}}(),[v,k]=(0,s.useState)(!1),[N,A]=(0,s.useState)(""),[P,O]=(0,s.useState)(void 0),[R,F]=(0,s.use
8State)(void 0),[T,I]=(0,s.useState)(null),[L,j]=(0,s.useState)(null),[B,V]=(0,s.useState)("new"),H=(0,n.G)(e=>e.auth.loginState.isRunning),U=(0,n.G)(e=>e.auth.loginState.isLoggedIn),W=(0,n.G)(e=>e.auth.loginState.loginError),q=(0,s.useRef)(!1),G=(0,s.useRef)(0),Y=(0,s.useCallback)(()=>{q.current||(q.current=!0,function(e,t){d("auth_step_abandoned",{flowVersion:"otp",step:e,timestamp:Date.now(),...void 0!==t&&{durationMs:t}})}(function(e,t){switch(e){case"login-otp":return"login-otp-modal";case"registration-otp":return"unconfirmed"===t?"registration-otp-unconfirmed":"registration-otp-new";case"password-fallback":return"password-fallback-modal";default:return e}}(u,B),Date.now()-G.current))},[u,B]);(0,s.useEffect)(()=>{G.current=Date.now();try{sessionStorage.setItem(l,crypto.randomUUID())}catch(e){}},[]);let K=(0,s.useCallback)(()=>{Y(),C(""),S(!1),A(""),O(void 0),F(void 0);try{sessionStorage.removeItem(l)}catch(e){}t()},[t,Y]);(0,s.useEffect)(()=>(window.addEventListener("pagehide",Y),()=>window.removeEventListener("pagehide",Y)),[Y]);let J=(0,s.useCallback)((e,t)=>{C(t),"confirmed"===e?I(t):"unconfirmed"===e?(V("unconfirmed"),j(t)):(V("new"),p("registration-otp"))},[]),Q=(0,s.useCallback)(()=>{v&&(b(),k(!1)),p("login-otp")},[v,b]),X=(0,s.useCallback)(()=>{q.current=!0,K()},[K]);(0,s.useEffect)(()=>{"forgot-password-auto-login"===u&&(U?X():W&&p("entry"))},[u,U,W,X]);let $=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if($.current||($.current=!0,!(null==o?void 0:o.authAction)))return;let{authAction:e,email:t,code:a}=o;switch(e){case"login":g("direct_login_link");break;case"confirmpwreset":if(g("direct_reset_link"),!t||!a)return;C(t),A(a),p("forgot-password-new-password");break;case"confirmsignup":if(g("direct_signup_link"),!t||!a)return;C(t),V("new"),F(a),p("registration-otp");break;case"resendpwreset":if(g("direct_reset_link"),!t)return;C(t),(0,r.x)({username:t}).then(()=>{x(),p("forgot-password-otp")}).catch(e=>{m("forgot-password-email",e.name||"Unknown",e.message),p("forgot-password-email")});break;case"resendsignup":if(g("direct_signup_link"),!t)return;V("unconfirmed"),C(t),j(t)}},[o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{modalVisible:"forgot-password-auto-login"===u&&H,flow:"waitingAutoLogin"}),(0,a.jsx)(M,{modalVisible:"entry"===u,isSendingInitialOtp:null!==T||null!==L,currentEmail:_,onRouteDecided:J,onClose:K}),("login-otp"===u||null!==T)&&(0,a.jsx)(eb,{email:null!=T?T:_,isVisible:"login-otp"===u,autoSendOnMount:null!==T,onSendComplete:e=>{I(null),p("login-otp"),e&&x()},isResendAvailable:y,secondsRemaining:E,startCountdown:x,onSuccess:X,onNavigateBack:()=>p("entry"),onNavigatePasswordFallback:()=>p("password-fallback"),onClose:K}),("registration-otp"===u||"waiting-auto-sign-in"===u||null!==L)&&(0,a.jsx)(eM,{variant:B,email:null!=L?L:_,isVisible:"registration-otp"===u||"waiting-auto-sign-in"===u,onSendComplete:e=>{j(null),p("registration-otp"),e&&x()},isResendAvailable:y,secondsRemaining:E,startCountdown:x,onSuccess:()=>p("waiting-auto-sign-in"),onAuthFailure:e=>I(e),onNavigateBack:()=>p("entry"),onClose:K,newsletterOptIn:f,onNewsletterOptInChange:S,prefilledConfirmationCode:R}),"password-fallback"===u&&(0,a.jsx)(eN,{email:_,onSuccess:X,onPasswordAttemptFailed:()=>k(!0),onNavigateBackToOtp:Q,onForgotPassword:()=>{w("password-fallback"),p("forgot-password-email")},onClose:K}),(0,a.jsx)(D,{modalVisible:"forgot-password-email"===u,currentEmail:_,onCodeSent:e=>{C(e),x(),p("forgot-password-otp")},onNavigateBack:()=>p(h),onClose:K}),"forgot-password-otp"===u&&(0,a.jsx)(en,{modalVisible:!0,email:_,isResendAvailable:y,secondsRemaining:E,startCountdown:x,onCodeEntered:e=>{O(void 0),A(e),p("forgot-password-new-password")},inlineError:P,onNavigateBack:()=>p("forgot-password-email"),onClose:K}),"forgot-password-new-password"===u&&(0,a.jsx)(z,{modalVisible:!0,email:_,code:N,onPasswordReset:()=>{A(""),p("forgot-password-auto-login")},onCodeRejected:()=>{O("CodeExpired"),p("forgot-password-otp")},onClose:K})]})}},95473:e=>{e.exports={bottomSheet:"ForgotPasswordEmailModal_bottomSheet__2d43x",content:"ForgotPasswordEmailModal_content__62Rxw",heading:"ForgotPasswordEmailModal_heading__KKo0k",subtitle:"ForgotPasswordEmailModal_subtitle__CnOrs",modalInput:"ForgotPasswordEmailModal_modalInput__gfpcD",headerLine:"ForgotPasswordEmailModal_headerLine__Jv_IU"}}
8,96104:e=>{e.exports={requirements:"PasswordValidation_requirements__k5_Ze",requirementsCount:"PasswordValidation_requirementsCount___UhiG",bar:"PasswordValidation_bar__7Y78z",hintArea:"PasswordValidation_hintArea___o4B3",condition:"PasswordValidation_condition__utg9h",hint:"PasswordValidation_hint__SHJog",hintAreaColumns:"PasswordValidation_hintAreaColumns__satx_",check:"PasswordValidation_check__ltEqw",x:"PasswordValidation_x__6xVV7"}},97037:(e,t,o)=>{"use strict";o.d(t,{$e:()=>c,A0:()=>z,CB:()=>J,Cj:()=>W,E3:()=>u,EC:()=>k,Gw:()=>A,H1:()=>E,Hs:()=>H,J4:()=>m,Lv:()=>B,Me:()=>S,OQ:()=>x,Q$:()=>_,QJ:()=>l,Rg:()=>g,Rx:()=>d,Sv:()=>K,Tz:()=>i,VK:()=>D,Ye:()=>I,ZP:()=>Y,_0:()=>h,_6:()=>V,bT:()=>n,es:()=>y,gA:()=>s,hQ:()=>Q,hv:()=>N,iS:()=>v,jA:()=>q,kP:()=>b,lh:()=>U,p1:()=>p,p3:()=>r,p9:()=>j,pW:()=>f,qF:()=>F,sI:()=>P,tE:()=>C,tK:()=>L,vt:()=>R,w:()=>T,yW:()=>w,yZ:()=>G,zM:()=>O,zS:()=>M});var a=o(12485);let n=e=>({type:a.m.setShoppingCart,state:e}),r=e=>({type:a.m.setHotel,hotel:e}),s=e=>({type:a.m.setCaptureCardResponse,captureCardResponse:e}),i=e=>({type:a.m.setLoyaltyCard,loyaltyCard:e}),l=e=>({type:a.m.setSelectedTemplate,selectedTemplate:e}),d=e=>({type:a.m.setInitialTemplate,initialTemplate:e}),c=()=>({type:a.m.resetSelectedTemplate}),u=(e,t,o)=>({type:a.m.setAvailabilityParameters,arrival:e,departure:t,rooms:o}),p=(e,t,o)=>({type:a.m.setShoppingCartItems,goToBook:t,items:e,writeTrackingData:o}),m=e=>({type:a.m.addSingleShoppingCartItem,item:e}),h=e=>({type:a.m.removeSingleShoppingCartItem,item:e}),g=e=>({type:a.m.setBookResponse,response:e}),w=e=>({type:a.m.set3DSActivatedForPayAtHotel,threeDSActivated:e}),_=(e,t,o)=>({type:a.m.setMarkInvalidFields,markInvalidFields:e,invalidSection:t,invalidContext:o}),C=e=>({type:a.m.setShowBusinessTariffRestrictionModal,showBusinessTariffRestrictionModal:e}),f=e=>({type:a.m.setBlockBookButton,blockBookButton:e}),S=e=>({type:a.m.setCreditCardFromTemplate,creditCard:e}),y=e=>({type:a.m.setCreditCardForGuaranty,creditCardForGuaranty:e}),E=e=>({type:a.m.setSmartPayActivated,smartPayActivated:e}),x=e=>({type:a.m.setSendBillingAddress,sendBillingAddress:e}),b=e=>({type:a.m.setTriggerTrustpilotInvitaiton,triggerTrustpilotInvitation:e}),v=e=>({type:a.m.setWantsToReceiveHotelRatingMail,wantsToReceiveHotelRatingMail:e}),k=e=>({type:a.m.setCreditCardBookMode,creditCardBookMode:e}),N=e=>({type:a.m.setCustomer,customer:e}),A=e=>({type:a.m.setSMSConfirmationNumber,smsConfirmationNumber:e}),P=e=>({type:a.m.setBillingAddress,billingAddress:e}),O=(e,t,o)=>({type:a.m.updateGuestsOfOneRoom,id:e,guestIndex:t,guest:o}),R=(e,t)=>({type:a.m.updateGuestWishesOfOneRoom,id:e,guestWishes:t}),F=e=>({type:a.m.setBookingFeedbackSubmitted,bookingFeedbackSubmitted:e}),T=e=>({type:a.m.setPaymentOption,paymentOption:e}),I=e=>({type:a.m.setPaymentMethod,paymentMethod:e}),M=e=>({type:a.m.setPaymentMeans,paymentMeans:e}),L=e=>({type:a.m.setProcessFinalBookingStep,processFinalBookingStep:e}),j=e=>({type:a.m.setStripeCardDeclinedCode,stripeCardDeclinedCode:e}),B=()=>({type:a.m.clearCaptureCardResponse}),D=()=>({type:a.m.clearCardToken}),V=e=>({type:a.m.setVouchers,vouchers:e}),H=e=>({type:a.m.setDefaultVoucherCode,voucherCode:e}),U=e=>({type:a.m.setTriggerNewsletterSubscription,triggerNewsletterSubscription:e}),W=e=>({type:a.m.markToNotifyUncompletedApplyVoucher,notifyUncompletedApplyVoucherFlag:e}),q=e=>({type:a.m.setPreAuthorizationOnCreditCard,activated:e}),G=e=>({type:a.m.setPreAuthorizationChecked,checked:e}),Y=e=>({type:a.m.resetCreditCardIframe,activated:e}),z=e=>({type:a.m.markToSaveContactDetails,isSaveContactDetails:e}),K=e=>({type:a.m.setFailedBookingAttempt,attempt:e}),J=e=>({type:a.m.setRegisterWhileBooking,checked:e}),Q=()=>({type:a.m.clearCustomerBookingData})},99102:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var a=o(54568),n=o(72902),r=o(7620),s=o(9406),i=o(32733),l=o(23134),d=o(2917),c=o.n(d);let u=e=>{let{id:t,checked:o,disabled:d=!1,isValid:u=!0,withoutContent:p=!1,onChange:m,className:h,children:g,text:w,isHelperTextShown:_=!1,helperText:C,required:f=!1,helperId:S,"aria-labelledby":y}=e,E=d?c().disabledStyle:c().checkboxChecked,x=(0,r.useId)(),b=S||x;return(0,a.jsxs)("div",{className:(0,n.A)(c().checkbox,h,{[c().checkboxWithoutContent]:p,[c().checkboxDisabled]:d,[c().invalid]:!u}),children:[(0,a.jsx)("input",{type:"checkbox",id:t,checked:o,disabled:d,onChange:m,className:c().checkboxInput,"aria-invalid":!u,required:f,"aria-describedby":S||_&&C?b:void 0,"aria-labelledby":y}),(0,a.jsxs)(l.A,{component:"label",variant:"body2",htmlFor:t,className:c().checkmarkAndLabel,children:[(0,a.jsx)("span",{className:o?E:c().checkmark,children:o&&d?(0,a.jsx)(s.A,{src:i.I.checkSurface200,width:18,height:18,alt:""}):(0,a.jsx)(s.A,{src:i.I.checkWhite,width:18,height:18,alt:""})}),(0,a.jsxs)("div",{children:[w,g]})]}),_&&C&&(0,a.jsx)(l.A,{component:"span",variant:"body2",id:b,className:c().helperText,"aria-live":"assertive",children:C})]})}}}]);
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.