1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2559],{8595:e=>{e.exports={"apple-pay-button-wrapper":"styles_apple-pay-button-wrapper__oxEMz","apple-pay-button-sdk":"styles_apple-pay-button-sdk__c33yo",isLoading:"styles_isLoading__ji_Uf","loading-overlay":"styles_loading-overlay__5gOuW"}},9746:e=>{e.exports={"axepta-payssl-container":"styles_axepta-payssl-container__6hG_s","axepta-payssl-sub-container":"styles_axepta-payssl-sub-container__Y0mIu","radio-container":"styles_radio-container__RkqBV",invalid:"styles_invalid__0pKoK",selected:"styles_selected__ZVJ47","no-border":"styles_no-border__nMWtB","select-children":"styles_select-children__7CAb8","select-custom":"styles_select-custom__B_29j","payssl-radio":"styles_payssl-radio__QVMlD","border-radius-enabled":"styles_border-radius-enabled__Mjf6V","credit-card-brands":"styles_credit-card-brands__0LeSI","axepta-iframe":"styles_axepta-iframe__FnEie"}},9857:e=>{e.exports={"return-button":"AxeptaReturnButton_return-button__si8uP"}},27253:e=>{e.exports={"more-options-button":"MoreOptions_more-options-button__evKqe"}},28464:(e,t,a)=>{"use strict";a.d(t,{X:()=>r.A,a:()=>n.A});var n=a(87913),r=a(55579)},32096:(e,t,a)=>{"use strict";a.d(t,{EY:()=>o.A,az:()=>n.A,me:()=>r.A});var n=a(87913),r=a(28319),o=a(14073)},32559:(e,t,a)=>{"use strict";a.d(t,{e:()=>td});var n=a(80263),r=a(17343),o=a(69327),i=a(16786),l=a.n(i),s=a(53239),d=a(94638),c=a(77686),u=a(52840),m=a(73858),p=a(90404),h=a(8809),y=a(44915),x=a(35104),g=a(42547);let E=e=>{let{handleFreePaymentClick:t}=e,{t:a}=(0,d.B)([y.NS.PaymentForm]);return(0,n.jsxs)(g.az,{d:"flex",flexDirection:"column",gap:"16px",children:[(0,n.jsx)(g.EY,{variant:"medium",children:a("NOTHING_LEFT_TO_PAY")}),(0,n.jsx)(g.$n,{onClick:t,fullWidth:!0,children:a("FREE_BOOKING_CTA")})]})};var C=a(87913),v=a(3692),P=a(14073),_=a(80922),A=a(75213),b=a(56798),f=a(19702),I=a(2936),j=a(77854),M=a(95217),S=a.n(M),O=a(42059),N=a(9746),R=a.n(N);let T=S().bind(R()),w=["--color-secondary","--color-text-secondary-contrast","--color-grey-3","--color-grey-1"],L=()=>{let{axeptaEncryptedData:e,axeptaMerchantId:t}=(0,m.js)(),a=(0,O.Ym)(),r=(0,s.useMemo)(()=>{let e=getComputedStyle(document.documentElement);return Object.fromEntries(w.map(t=>[t,e.getPropertyValue(t).trim()]))},[w]);return(0,n.jsx)("div",{className:T("axepta-payssl-container"),children:(0,n.jsx)("div",{className:T("axepta-payssl-sub-container"),children:(0,n.jsx)("iframe",{id:"axepta-iframe",title:"axepta-iframe",className:T("axepta-iframe"),src:"".concat(h.mM,"/payssl.aspx?MerchantID=").concat(t,"&Len=").concat(null==e?void 0:e.length,"&Data=").concat(e,"&CustomField14=iframe&Language=").concat(a,"&Template=BNP_KOMBO_KomboCardsV12&CustomField101=%23").concat(r["--color-text-secondary-contrast"].replace("#",""),"&CustomField102=%23").concat(r["--color-secondary"].replace("#",""),"&CustomField103=%23").concat(r["--color-text-secondary-contrast"].replace("#",""),"&CustomField104=%23").concat(r["--color-secondary"].replace("#",""),"&CustomField105=%23").concat(r["--color-grey-3"].replace("#",""),"&CustomField106=%23").concat(r["--color-grey-1"].replace("#","")),sandbox:"allow-forms allow-scripts allow-same-origin"})})})};var D=a(830),V=a(9857),k=a.n(V);let F=S().bind(k()),B=e=>{let{handleClick:t}=e,{t:a}=(0,d.B)([y.NS.PaymentForm]);return(0,n.jsx)(D.$n,{onClick:t,variant:"unstyled",className:F("return-button"),children:(0,n.jsxs)(D.az,{d:"flex",alignItems:"center",gap:"12px",children:[(0,n.jsx)(D.In,{icon:"chevron-left-outline",height:"20px",width:"20px",color:"textPrimary"}),(0,n.jsx)(D.EY,{as:"p",fontWeight:"semibold",variant:"small",color:"textPrimary",children:a("CHANGE_PAYMENT_METHOD")})]})})},U=[{icon:"flashOutline",description:"SAVE_CREDIT_CARD_INFO_1"},{icon:"phoneCheck",description:"SAVE_CREDIT_CARD_INFO_2"},{icon:"lockOutline",description:"SAVE_CREDIT_CARD_INFO_3"}],H=()=>{let{t:e}=(0,d.B)([y.NS.PaymentForm]);return(0,n.jsx)(I.az,{as:"span",d:"flex",gap:"8px",children:U.map(t=>(0,n.jsxs)(I.az,{as:"span",d:"flex",flexDirection:"column",alignItems:"center",gap:"8px",flexGrow:1,flexBasis:"0%",children:[(0,n.jsx)(I.In,{icon:t.icon,color:"primary",width:"16px",height:"16px"}),(0,n.jsx)(I.EY,{variant:"mini",color:"grey3",textAlign:"center",children:e(t.description)})]},t.description))})};var K=a(72047),Y=a.n(K);let z=S().bind(Y()),G=e=>{let{isSelected:t,onSelect:a}=e,{t:r}=(0,d.B)([y.NS.PaymentForm]);return(0,n.jsxs)("button",{className:z("save-credit-card-button",{selected:t}),onClick:a,children:[(0,n.jsxs)(I.az,{d:"flex",alignItems:"center",gap:"8px",textAlign:"left",children:[t?(0,n.jsx)(I.In,{icon:"checkedFilled",color:"goodGreen",width:"14px",height:"14px"}):(0,n.jsx)(I.In,{icon:"uncheckedCircle",width:"14px",height:"14px"}),(0,n.jsx)(I.EY,{fontWeight:t?"semibold":"normal",children:r("SAVE_CREDIT_CARD")})]}),(0,n.jsx)(H,{})]})},W=e=>{let{displaySaveCardCheckbox:t=!1,disableSaveCard:a=!1,handleCreditCardFormVisibility:r}=e,{t:o}
1=(0,d.B)([y.NS.PaymentForm]),{selectedSavedCardNumber:i,saveCard:l,updateSaveCard:s}=(0,m.js)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B,{handleClick:()=>r(!1)}),!a&&t&&("creditCardForm"===i||!i)&&(0,n.jsx)(G,{isSelected:l,onSelect:()=>void s(!l)}),(0,n.jsx)(L,{}),(0,n.jsx)(j.E,{variant:"small",color:"grey3",textAlign:"center",__textAlign:"left",lineHeight:"short",children:o("PAYMENT_INFO_3DS")})]})};var q=a(38833);let X=e=>{let{onClick:t,disabled:a,children:r}=e;return(0,n.jsx)(q.$,{variant:"primary",fullWidth:!0,disabled:a,onClick:t,style:{paddingLeft:8,paddingRight:8},children:r})};var $=a(45593),J=a(68636),Z=a(74680),Q=a(26187);let ee=e=>{let{authorizationRequest:t,creditCards:a,currentMethodInProgress:o,setCurrentMethodInProgress:i}=e,{t:l}=(0,d.B)([y.NS.PaymentForm]),{axeptaEncryptedData:c,axeptaMerchantId:u,selectedSavedCardNumber:p,retrieveEncodedAxeptaData:g,isPaying:E,setIsPaying:C}=(0,m.js)(),v=(0,s.useMemo)(()=>null==a?void 0:a.find(e=>(null==e?void 0:e.pseudoCardNumber)===p),[a,p]);(0,s.useEffect)(()=>{E&&o===r.KomboPaymentMethod.PayNow&&(i(void 0),C(!1))},[E,C,o,i]);let P=(0,s.useCallback)(async()=>{if(v&&void 0===o){i(r.KomboPaymentMethod.PayNow);try{if(await t()){let t=await g(r.AxeptaPaymentType.PayNow);if(null==t?void 0:t.data)if((0,A.VS)()||(0,b.lB)()){let e={MerchantID:u,Len:t.data.length,Data:t.data,cardholder:v.cardHolder,number:v.pseudoCardNumber,expiryDate:"".concat(v.expiryYear).concat(1===v.expiryMonth.toString().length?"0"+v.expiryMonth.toString():v.expiryMonth.toString()),brand:v.brand},a=Object.keys(e).map(t=>"".concat(t,"=").concat(e[t])).join("&"),n="".concat(h.mM,"/payNow.aspx?").concat(a);window.location.href=n,C(!0)}else{var e;await (0,Q.yy)(200),null==(e=document.getElementById("axepta-pay-now-submit"))||e.click(),C(!0)}else throw Error("An error happened while retrieving the encoded data")}else throw Error("An error happened while authorizing the booking")}catch(e){(0,f.VR)(f.ME.Payment,!0,f.VL.Error,"BOOKING_FAILED_TECH_ERROR"),(0,x.v)(e)}finally{i(void 0)}}},[v,o,i,t,g,u,C]);return v?(0,n.jsxs)(Z.az,{children:[(0,n.jsxs)("form",{name:"card form",action:"".concat(h.mM,"/payNow.aspx"),method:"post",children:[(0,n.jsx)("input",{type:"hidden",name:"MerchantID",value:u}),(0,n.jsx)("input",{type:"hidden",name:"Len",value:null==c?void 0:c.length}),(0,n.jsx)("input",{type:"hidden",name:"Data",value:c}),(0,n.jsx)("input",{type:"hidden",name:"cardholder",value:v.cardHolder}),(0,n.jsx)("input",{type:"hidden",name:"number",value:h.jx?0xe9b08a568f1c7:v.pseudoCardNumber}),(0,n.jsx)("input",{type:"hidden",name:"expiryDate",value:"".concat(v.expiryYear).concat(1===v.expiryMonth.toString().length?"0"+v.expiryMonth.toString():v.expiryMonth.toString())}),(0,n.jsx)("input",{type:"hidden",name:"brand",value:v.brand}),(0,n.jsx)("input",{id:"axepta-pay-now-submit",type:"submit",value:"Submit",style:{display:"none"}})]}),(0,n.jsx)(X,{onClick:P,disabled:void 0!==o&&o!==r.KomboPaymentMethod.PayNow,children:(0,n.jsxs)(Z.az,{width:"100%",d:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(Z.az,{__width:o===r.KomboPaymentMethod.PayNow?"33px":"16px"}),(0,n.jsx)(Z.EY,{variant:"large",fontWeight:"semibold",children:l("PAY_NOW")}),o===r.KomboPaymentMethod.PayNow?(0,n.jsx)(Z.XC,{color:"secondaryContrast",size:"small"}):(0,n.jsx)(Z.In,{icon:"chevron-right-outline",width:"16px",height:"16px"})]})})]}):null},et=e=>{let{authorizationRequest:t,creditCards:a,handleChange:o,currentMethodInProgress:i,setCurrentMethodInProgress:l}=e,{selectedSavedCardNumber:s}=(0,m.js)(),{t:c}=(0,d.B)([y.NS.PaymentForm]),u=a.map(e=>({label:(0,n.jsxs)($.az,{display:"flex",alignItems:"center",gap:"12px",children:[(0,n.jsx)($.az,{d:"flex",alignItems:"center",justifyContent:"center",__width:"42px",__height:"18px",background:"white",__borderRadius:"4px",p:"4px",__paddingTop:"8px",__paddingBottom:"8px",children:(0,n.jsx)("img",{src:"/assets/images/icons/payment/".concat(e.brand.toLowerCase().trim().replaceAll(" ","-"),".png"),alt:e.brand,style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}})}),(0,n.jsxs)("div",{children:[(0,n.jsx)($.EY,{lineHeight:"4",fontWeight:"semibold",children:e.cardName?e.cardName:c("BANK_CARD")}),(0,n.jsxs)($.az,{d:"flex",gap:"8px",children:[(0,n.jsxs)($.EY,{lineHeight:"5",variant:"small",children:["â¢â¢â¢â¢ ",e.pseudoCardNumber.substring(e.pseudoCardNumber.length-3)]}),(0,n.jsx)($.EY,{lineHeight:"5",variant:"small",children:"-"}),(0,n.jsx)($.EY,{lineHeight:"5",variant:"small",children:e.cardHolder})]}),(0,n.jsx)($.EY,{lineHeight:"3",variant:"mini",color:(0,J.o)(e)?"redError":"grey3",children:"Expire ".concat(e.expiryMonth.toString().padStart(2,"0"),"/").concat(e.expiryYear.toString().slice(-2))})]})]}),value:e.pseudoCardNumber}));return(0,n.jsxs)($.az,{d:"flex",flexDirection:"column",gap:"16px",children:[(0,n.jsx)($.z6,{options:u,value:null!=s?s:"",onValueChange:e=>o(e),unsetHeight:!0}),(0,n.jsx)(ee,{creditCards:a,authorizationRequest:async()=>t(r.PaymentMethod.Axepta),currentMethodInProgress:i,setCurrentMethodInProgress:l})]})},ea=e=>
1{let{authorizationRequest:t,creditCards:a,displayCreditCardForm:r,disableSaveCard:o=!1,displaySaveCardCheckbox:i=!1,displaySavedCreditCards:l,handleCreditCardFormVisibility:c,currentMethodInProgress:u,setCurrentMethodInProgress:p}=e,{t:h}=(0,d.B)([y.NS.PaymentForm]),{selectedSavedCardNumber:x,setSelectedSavedCardNumber:g}=(0,m.js)(),E=(0,s.useCallback)(e=>{x!==e&&g(e)},[g,x]);return(0,n.jsx)(n.Fragment,{children:r?(0,n.jsx)(W,{disableSaveCard:o,displaySaveCardCheckbox:i,handleCreditCardFormVisibility:c}):(0,n.jsx)(n.Fragment,{children:l&&t&&(null==a?void 0:a.length)?(0,n.jsx)(et,{authorizationRequest:t,creditCards:a,handleChange:E,currentMethodInProgress:u,setCurrentMethodInProgress:p}):(0,n.jsx)(X,{onClick:()=>c(!0),disabled:void 0!==u,children:(0,n.jsxs)(I.az,{width:"100%",d:"flex",alignItems:"center",justifyContent:{mobile:"space-between",tablet:"center"},pos:"relative",children:[(0,n.jsxs)(I.az,{d:"flex",gap:"24px",alignItems:"center",children:[(0,n.jsxs)(I.az,{d:"flex",gap:"4px",alignItems:"center",children:[(0,n.jsx)(I.In,{icon:"masterCardBlueBackgroun
1d",width:"auto",height:"24px"}),(0,n.jsx)(I.In,{icon:"visaBlueBackground",width:"auto",height:"24px"}),(0,n.jsx)(I.In,{icon:"carteBancaire",width:"auto",height:"24px"})]}),(0,n.jsx)(I.EY,{d:{mobile:"none",tablet:"block"},variant:"large",fontWeight:"semibold",color:"secondaryContrast",children:h("PAY_NOW")})]}),(0,n.jsx)(I.EY,{d:{mobile:"block",tablet:"none"},variant:"large",fontWeight:"semibold",marginRight:"24px",color:"secondaryContrast",children:h("PAY")}),(0,n.jsx)(I.az,{pos:"absolute",__right:0,children:(0,n.jsx)(I.In,{icon:"chevron-right-outline",width:"16px",height:"16px",color:"secondaryContrast"})})]})})})})};var en=a(28464),er=a(55414),eo=a(59809),ei=a(59419);let el=e=>{try{e.abort()}catch(e){}};var es=a(8595),ed=a.n(es);let ec=e=>{let{buttonstyle:t,type:a,locale:n,className:r,onClick:o}=e,i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=i.current;e&&(r?e.setAttribute("class",r):e.removeAttribute("class"))},[r]),(0,s.useEffect)(()=>{let e=i.current;if(e&&o)return e.addEventListener("click",o),()=>e.removeEventListener("click",o)},[o]),(0,s.createElement)("apple-pay-button",{ref:i,buttonstyle:t,type:a,locale:n})},eu=S().bind(ed()),em={[r.LOCALE.fr]:"fr-FR",[r.LOCALE.en]:"en-US",[r.LOCALE.es]:"es-ES",[r.LOCALE.de]:"de-DE",[r.LOCALE.it]:"it-IT",[r.LOCALE.nl]:"nl-NL",[r.LOCALE.pt]:"pt-PT"},ep=e=>{var t;let{encodedBookingId:a,price:o,authorizationRequest:i,bookingRequest:l,currentMethodInProgress:d,setCurrentMethodInProgress:c}=e,u=(0,_.wA)(),p=(0,A.LV)(),y=(0,er.Y)(),{isPaying:g,setIsPaying:E}=(0,m.js)(),C=d===r.KomboPaymentMethod.ApplePay,v=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];E(!1),c(void 0),e?u((0,f.VR)(f.ME.Payment,!0,f.VL.Error,"BOOKING_FAILED_TECH_ERROR")):u((0,f.VR)(f.ME.Payment,!1))},[u,c,E]);return(0,n.jsxs)(en.a,{className:eu("apple-pay-button-wrapper"),children:[(0,n.jsx)(ec,{buttonstyle:"black",type:"plain",locale:null!=(t=em[y])?t:"en-US",onClick:()=>{var e;let t;if(u((0,f.VR)(f.ME.Payment,!1)),g||void 0!==d)return;E(!0),c(r.KomboPaymentMethod.ApplePay);let n={countryCode:"FR",currencyCode:null!=(e=o.currency)?e:"EUR",merchantCapabilities:["supports3DS"],supportedNetworks:["cartesBancaires","visa","masterCard","amex"],total:{label:p,type:"final",amount:(o.amount/100).toString()}};try{(t=new ApplePaySession(h.tj,n)).begin()}catch(e){(0,x.v)(e),v(!0);return}(e=>{let{session:t,api:a,encodedBookingId:n,price:o,brand:i,authorizationRequest:l,bookingRequest:s,setIsPaying:d,setCurrentMethodInProgress:c,cancel:u}=e;t.onvalidatemerchant=async e=>{try{if(!(!l||await l(r.PaymentMethod.Axepta))){d(!1),c(void 0),el(t);return}let n={applePayValidationUrl:e.validationURL,brand:i},o=await a.validateApplePayMerchant(n);if(!o)throw Error("Unable to validate merchant");t.completeMerchantValidation(o)}catch(a){var n;(0,x.v)(a);let e=(0,ei.ensureError)(a);u(!(null==e||null==(n=e.message)?void 0:n.includes("The object does not support the operation or argument."))),el(t)}},t.onpaymentauthorized=async e=>{try{let i=null==e?void 0:e.payment,l={token:null==i?void 0:i.token,amount:o},u=await a.executeApplePayPayment(n,l);if(!u.success)throw Error("Payment is unsuccessful");if(!await s(r.PaymentMethod.Axepta,u.payId,!0,r.AxeptaPaymentType.ApplePay,u.refNumber)){d(!1),c(void 0),t.completePayment({status:ApplePaySession.STATUS_FAILURE});return}}catch(e){(0,x.v)(e),u(!0),el(t);return}d(!1);try{t.completePayment({status:ApplePaySession.STATUS_SUCCESS})}catch(e){(0,x.v)(e)}},t.oncancel=()=>{setTimeout(u,0)}})({session:t,api:eo._,encodedBookingId:a,price:o,brand:p,authorizationRequest:i,bookingRequest:l,setIsPaying:E,setCurrentMethodInProgress:c,cancel:v})},className:eu("apple-pay-button-sdk",{isLoading:C})}),C&&(0,n.jsx)(en.a,{className:eu("loading-overlay"),children:(0,n.jsx)(en.X,{color:"white",size:"small"})})]})};var eh=a(87314),ey=a(84436),ex=a.n(ey);let eg=S().bind(ex()),eE=e=>{let{encodedBookingId:t,price:a,authorizationRequest:o,bookingRequest:i,currentMethodInProgress:l,setCurrentMethodInProgress:d}=e,{displayGooglePay:c,googlePayBaseRequest:u,googlePayPaymentsClient:p,googlePayCardPaymentMethod:y}
1=(0,eh.dP)(),{isPaying:x,setIsPaying:g}=(0,m.js)(),E=(0,O.Ym)(),C=(0,_.wA)(),v=(0,s.useCallback)(async()=>{try{if(x||void 0!==l||(g(!0),d(r.KomboPaymentMethod.GooglePay),C((0,f.VR)(f.ME.Payment,!1)),!(!o||await o())))return;let e={...u,allowedPaymentMethods:[y],transactionInfo:{totalPriceStatus:"FINAL",totalPrice:(a.amount/100).toString(),currencyCode:a.currency,countryCode:"FR"},merchantInfo:{merchantId:h.em,merchantName:"Kombo"}},n=await p.loadPaymentData(e),s={token:JSON.parse(n.paymentMethodData.tokenizationData.token),amount:a.amount},c=await eo._.executeGooglePayPayment(t,s);if(c.success)await i(r.PaymentMethod.Axepta,null==c?void 0:c.payId,!0,r.AxeptaPaymentType.GooglePay,c.refNumber);else throw Error("An error happened with Google Pay")}catch(t){console.error(t);let e=null==t?void 0:t.statusCode;!e||e&&("DEVELOPER_ERROR"===e||"MERCHANT_ACCOUNT_ERROR"===e)?C((0,f.VR)(f.ME.Payment,!0,f.VL.Error,"BOOKING_FAILED_TECH_ERROR")):e&&"CANCELED"!==e&&C((0,f.VR)(f.ME.Payment,!0,f.VL.Error,"GOOGLE_PAY_".concat(t.statusCode)))}finally{g(!1),d(void 0)}},[x,l,g,d,C,o,u,y,a,p,t,i]),P=(0,s.useMemo)(()=>c&&p.createButton({onClick:()=>{v()},buttonColor:"default",buttonType:"pay",buttonLocale:E,buttonSizeMode:"fill",allowedPaymentMethods:[y]}),[c,p,E,y,v]);return(0,s.useEffect)(()=>{var e;
1if(P&&(null==(e=document.getElementById("google-pay-container"))?void 0:e.childElementCount)===0){let e=document.getElementById("google-pay-container");null==e||e.appendChild(P)}},[a,P]),(0,n.jsx)("div",{id:"google-pay-container",className:eg("google-pay-container")})};var eC=a(35040),ev=a(88658),eP=a(55781),e_=a.n(eP);let eA=S().bind(e_()),eb=e=>{let{price:t,onPaypalAuthorizationRequest:a,onPaypalCancel:o,onPaypalError:i,onPaypalApprove:l,hasFlight:c,currentMethodInProgress:u,setCurrentMethodInProgress:m}=e,{t:p}=(0,d.B)([y.NS.PaymentForm]),x=(0,s.useRef)(null),[g,E]=(0,s.useState)(1),C=(0,s.useCallback)((e,a)=>a.order.create({purchase_units:[{amount:{value:t.amount/100}}]}),[t]),P=(0,s.useCallback)(async(e,t)=>{l&&l(e.orderID),m(void 0)},[l,m]),_=(0,s.useCallback)(async(e,t)=>{if(void 0===u){m(r.KomboPaymentMethod.Paypal),(0,ev.h)("paypal_button_clicked");try{if(!a||await a())return t.resolve();return t.reject()}catch(e){m(void 0),(0,f.VR)(f.ME.Payment,!0,f.VL.Error,"PAYPAL_FAILED_TO_RESPOND")}}},[a,m]),A=(0,s.useCallback)(async(e,t)=>{o&&o(),m(void 0)},[o,m]),b=(0,s.useCallback)(async e=>{i&&i(e),m(void 0)},[i,m]);return(0,s.useEffect)(()=>{let e=()=>{x.current&&E(x.current.offsetHeight/55)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.jsx)(eC.ag,{options:{clientId:h.C8,currency:t.currency,disableFunding:"credit,card,bancontact,blik,eps,giropay,ideal,mercadopago,mybank,p24,sepa,sofort,venmo"},children:(0,n.jsx)(v.A,{icon:"paypal",label:"Paypal",description:p(c?"METHOD_UNAVAILABLE_FLIGHT":"TICKET_DESTINATION_PAYPAL"),isLoading:u===r.KomboPaymentMethod.Paypal,disabled:c||void 0!==u&&u!==r.KomboPaymentMethod.Paypal,children:!c&&(0,n.jsx)("div",{ref:x,className:eA("paypal-hidden-button"),style:{"--scale":g},children:(0,n.jsx)(eC.JV,{style:{layout:"horizontal",tagline:!1,disableMaxWidth:!0,height:55},createOrder:C,onApprove:P,onClick:_,onCancel:A,onError:b})})})})};var ef=a(2596),eI=a(94335),ej=a(50343),eM=a(70141),eS=a(97326),eO=a(45706),eN=a(81663),eR=a(15850),eT=a(98879),ew=a(28319),eL=a(71863),eD=a(29123),eV=a(29515),ek=a(57371),eF=a(53632),eB=a(58355);let eU=e=>{let{onSubmit:t,showFraudCodeInput:a=!1}=e,{t:r}=(0,d.B)([y.NS.PaymentForm]),[o,i]=(0,s.useState)(""),[l,c]=(0,s.useState)("");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eB.pd,{id:"promo",type:"text",name:"promo",label:r("Code promo"),placeholder:"ECO".concat(new Date().getFullYear()),autoComplete:"off",autoFocus:!0,onChange:e=>i(e.target.value),value:o}),a&&(0,n.jsxs)(eB.az,{marginTop:"12px",gap:"4px",d:"flex",flexDirection:"column",children:[(0,n.jsx)(eB.pd,{id:"fraud-code",type:"text",name:"fraud-code",label:r("TRENITALIA_FRAUD_CODE"),placeholder:r("TRENITALIA_FRAUD_CODE_PLACEHOLDER"),autoComplete:"off",onChange:e=>c(e.target.value),value:l}),(0,n.jsx)(eB.EY,{as:"p",variant:"small",color:"grey3",children:r("TRENITALIA_CODE_EXPLANATION")})]}),(0,n.jsxs)(eB.az,{marginTop:"12px",gap:"4px",d:"flex",flexDirection:"column",children:[(0,n.jsx)(eV.A,{place:f.ME.Voucher,namespaces:[y.NS.PaymentForm]}),(0,n.jsx)(eB.$n,{fullWidth:!0,onClick:()=>{t(o,l.trim()||void 0)},variant:"primary",children:r("Utiliser")}),(0,n.jsx)(eB.EY,{as:"p",variant:"small",color:"grey3",children:r("ONLY_ONE_PROMO_CODE")})]})]})},eH=e=>{let{onSubmit:t,showFraudCodeInput:a=!1,isAdding:o,onStartAdding:i}=e,[l,u]=(0,s.useState)(""),{loadUserVouchers:m,isLoadingVouchers:h,vouchersAndGiftCards:x}=(0,c.F7)(),{t:g}=(0,d.B)([y.NS.PaymentForm,y.NS.Account,y.NS.FunnelPayment]);(0,s.useEffect)(()=>{m()},[m]);let E=(0,s.useMemo)(()=>[{value:"",label:g("VOUCHER_NONE_OPTION")},...x.map(e=>e.code?{label:(0,n.jsx)(ek.zt,{voucher:e}),value:e.code,disabled:!(0,r.isExternalVoucher)(e)&&(!e.isValid||(0,ek.Ks)(e))}:void 0).filter(ei.isTruthy)],[g,x]);if(h)return(0,n.jsx)(p.A,{});let v=!o&&x.length>0;return(0,n.jsx)(C.A,{children:v?(0,n.jsxs)(eD.A,{p:"0",children:[(0,n.jsxs)(C.A,{p:"16px",children:[(0,n.jsx)(eL.A,{name:"travelClass",value:l,onValueChange:e=>{u(e)},options:E,unsetHeight:!0}),(0,n.jsx)(C.A,{marginTop:"12px",children:(0,n.jsx)(eT.A,{fullWidth:!0,onClick:()=>{let e=x.find(e=>e.code===l);t(l,e&&(0,r.isExternalVoucher)(e)?e.fraudCode:void 0)},children:g("APPLY")})})]}),(0,n.jsx)(C.A,{h:"1px",background:"whiteOutline"}),(0,n.jsxs)(C.A,{children:[(0,n.jsx)(ew.A,{options:[{icon:"discountShapeOutlinePlus",label:g("ADD_VOUCHER_CTA"),description:g("VOUCHER_PROMO_SENTENCE"),trailingIcon:"plus",onClick:i}]}),(0,n.jsx)(eV.A,{place:f.ME.Voucher,namespaces:[y.NS.PaymentForm]})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eD.A,{children:(0,n.jsx)(eU,{onSubmit:t,showFraudCodeInput:a})}),(0,n.jsx)(C.A,{marginTop:"24px",children:(0,n.jsx)(eF.A,{})})]})})},eK=e=>{let{onSubmit:t,toggleModal:a,isLoading:r,showRefundNotice:o,showFraudCodeInput:i}=e,{t:l}=(0,d.B)([y.NS.PaymentForm]),{fullAccess:m}=(0,u.As)(),{vouchersAndGiftCards:h}
1=(0,c.F7)(),[x,g]=(0,s.useState)(!1),E=m&&x&&!!h.length;return(0,n.jsx)(eR.A,{mobile:{fixedHeight:!0},onClose:a,headingText:l("VOUCHER_PAYMENT_METHOD"),hasBlueBackground:!0,stickyButton:E?(0,n.jsx)(eN.$n,{variant:"creamYellow",fullWidth:!0,onClick:()=>g(!1),children:l("BACK")}):void 0,children:(0,n.jsx)(eN.az,{__minHeight:"400px",children:r?(0,n.jsx)(p.A,{}):(0,n.jsxs)(n.Fragment,{children:[m?(0,n.jsx)(eH,{onSubmit:t,showFraudCodeInput:i,isAdding:x,onStartAdding:()=>g(!0)}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eU,{onSubmit:t,showFraudCodeInput:i}),(0,n.jsx)(eF.A,{})]}),o&&(0,n.jsx)(eN.az,{pt:"16px",children:(0,n.jsx)(eN.Eg,{variant:eN.VL.Info,message:l("REFUND_BY_VOUCHER_NOTICE_KOMBO_VOUCHER")})})]})})})},eY=e=>{let{currentMethodInProgress:t,setCurrentMethodInProgress:a}=e,{t:o}=(0,d.B)([y.NS.PaymentForm]),i=(0,ej.T)(),{bookingId:l}=(0,ef.useParams)(),{isModalOpen:c,toggleModal:u}=(0,eM.A)(),{booking:m,refreshBooking:p}=(0,eI.Bx)(),h=(0,_.wA)(),x=(0,O.Ym)(),g=(0,s.useCallback)(async(e,n)=>{if(void 0===t&&e)try{a(r.KomboPaymentMethod.Voucher);let t=await eo._.applyVoucher(l,{voucherCode:e,fraudCode:n}),{status:s}=t;if(s===r.VoucherStatus.Valid)u(),h((0,f.VR)(f.ME.Voucher,!1)),await p();else{var o;let e=null!=(o=t.voucherMinPrice)?o:t.voucherMaxPrice,a=t.activationDate?new Date(t.activationDate):void 0,n=void 0!==t.voucherProviderId?(0,eS.f)(t.voucherProviderId):void 0,l=s!==r.VoucherStatus.ProviderInvalid||n?r.VoucherStatus[s]:r.VoucherStatus[r.VoucherStatus.TripInvalid];h((0,f.VR)(f.ME.Voucher,!0,f.VL.Warning,"VOUCHER_STATUS",{context:l,amount:e?i(e):void 0,date:a?(0,eO.iv)(a,x):void 0,company:t.voucherCompanyName,provider:n}))}}catch(e){(0,f.VR)(f.ME.Voucher,!0,f.VL.Warning,"ERROR_TRY_AGAIN")}finally{a(void 0)}},[t,a,l,u,h,p,i,x]),E=(0,s.useMemo)(()=>{if(m)if(m.voucherDiscount)return m.voucherDiscount;else{let e=m.allSubTrips.find(e=>e.providerVoucherDiscount);if(e)return e.providerVoucherDiscount}},[m]),C=(0,s.useMemo)(()=>{if(m)if(m.voucherCode)return m.voucherCode;else{let e=m.allSubTrips.find(e=>e.providerVoucherCode);if(e)return e.providerVoucherCode}},[m]),P=(0,s.useMemo)(()=>{if(!m)return!0;let e=m.allSubTrips.flatMap(e=>e.segments),t=e.every(e=>e.company.transportType===r.TransportType.Flight),a=e.every(e=>[r.CompanyId.Ouigo,r.CompanyId.OuigoTrainClassique,r.CompanyId.OuigoSpain].includes(e.company.id));return!t&&!a},[m]),A=(0,s.useMemo)(()=>{var e;return null!=(e=null==m?void 0:m.allSubTrips.some(e=>e.providerId===r.ProviderId.TrenItalia))&&e},[m]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{icon:"voucher",label:o("VOUCHER_PAYMENT_METHOD"),description:E&&E.amount>0?void 0:o("VOUCHER_PROMO_SENTENCE"),successMessage:C&&E&&E.amount>0?o("VOUCHER_STATUS",{context:r.VoucherStatus[r.VoucherStatus.Valid],amount:i(E),code:C}):void 0,isLoading:t===r.KomboPaymentMethod.Voucher,disabled:!!E&&E.amount>0||void 0!==t&&t!==r.KomboPaymentMethod.Voucher,onClick:u}),c&&(0,n.jsx)(eK,{onSubmit:g,toggleModal:u,isLoading:t===r.KomboPaymentMethod.Voucher,showRefundNotice:P,showFraudCodeInput:A})]})};var ez=a(40340),eG=a(2429),eW=a(43555),eq=a(77758),eX=a(25175);let e$=()=>{let{t:e}=(0,d.B)([y.NS.PaymentForm]),t=(0,ef.useParams)(),a=(0,ef.useHistory)(),{withInward:r}=(0,eq.oZ)();return(0,n.jsxs)(I.az,{as:"button",d:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",onClick:e=>{e.stopPropagation(),r?a.push((0,eG.formatRoute)(eW.Xb,t)):a.push((0,eG.formatRoute)(eW.$G,t)),setTimeout(()=>(0,eX.cs)(),0)},children:[(0,n.jsx)(I.EY,{variant:"mini",color:"primary",children:e("ADD_PHONE_NUMBER")}),(0,n.jsx)(I.In,{icon:"chevron-right-outline",width:"12px",height:"12px",color:"primary"})]})};var eJ=a(32096),eZ=a(72804);let eQ={[r.KomboPaymentMethod.Ancv]:"REFUND_BY_VOUCHER_NOTICE_ANCV",[r.KomboPaymentMethod.Instanea]:"REFUND_BY_VOUCHER_NOTICE_INSTANEA"},e0=e=>{let{headingText:t,onClose:a,handlePayment:r,paymentType:o}=e,{t:i}=(0,d.B)([y.NS.PaymentForm,y.NS.FunnelPayment]),l=eQ[o];return l?(0,n.jsxs)(eR.A,{headingText:t,onClose:a,hasBlueBackgroun
1d:!0,children:[(0,n.jsx)(eJ.EY,{children:(0,n.jsx)(eZ.x,{i18nKey:l,ns:y.NS.PaymentForm,components:{bold:(0,n.jsx)(eJ.EY,{fontWeight:"semibold"})}})}),(0,n.jsx)(eJ.az,{marginTop:"24px",children:(0,n.jsx)(eJ.me,{options:[{icon:"checkedCircle",label:i("YES_CONTINUE"),onClick:()=>{r(),a()}},{icon:"crossCircle",label:i("NO_BACK"),onClick:a}]})})]}):null};var e1=a(97577);let e3=e=>{let{onClose:t,handlePayment:a}=e,{t:r}=(0,d.B)([y.NS.PaymentForm]);return(0,n.jsxs)(eR.A,{headingText:"Floa",onClose:t,hasBlueBackground:!0,children:[(0,n.jsx)(e1.E,{as:"p",mb:"16px",children:(0,n.jsx)(eZ.x,{i18nKey:"FLOA_CONFIRMATION_NOTICE",ns:y.NS.PaymentForm,components:{a:(0,n.jsx)("a",{href:"https://www.floabank.fr/politique-confidentialite",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}}),b:(0,n.jsx)(e1.E,{fontWeight:"semibold"}),bold:(0,n.jsx)(e1.E,{fontWeight:"semibold"})}})}),(0,n.jsx)(e1.m,{options:[{label:r("Oui, valider et payer"),icon:"checkedCircle",onClick:()=>{a(),t()},trailingIcon:"chevron-right-outline"},{label:r("NO_BACK"),icon:"crossCircle",onClick:t,trailingIcon:"chevron-right-outline"}]})]})},e5=[r.KomboPaymentMethod.Ancv,r.KomboPaymentMethod.Instanea],e2=[...e5,r.KomboPaymentMethod.Floa],e8=e=>{let{icon:t,label:a,description:o,paymentType:i,authorizationRequest:l,disabled:d=!1,bottomElement:c,currentMethodInProgress:u,setCurrentMethodInProgress:p,children:h}=e,{retrieveEncodedAxeptaData:y,isPaying:x,setIsPaying:g}=(0,m.js)(),E=(0,_.wA)(),{isModalOpen:C,setIsModalOpen:P}=(0,eM.A)();(0,s.useEffect)(()=>{x&&u===i&&(p(void 0),g(!1))},[x,g,u,i,p]);let A=(0,s.useCallback)(async()=>{if(E((0,f.VR)(f.ME.Payment,!1)),void 0===u){p(i),i===r.KomboPaymentMethod.Floa&&(0,ev.h)("floa_button_clicked");try{if(await l()){let t=await y((0,J.e)(i));if(null==t?void 0:t.data){var e;await (0,Q.yy)(200),null==(e=document.getElementById("axepta-".concat(i,"-submit")))||e.click(),g(!0)}else throw Error("An error happened")}}catch(e){(0,f.VR)(f.ME.Payment,!0,f.VL.Error,"BOOKING_FAILED_TECH_ERROR")}finally{p(void 0)}}},[E,u,p,i,l,y,g]),b=(0,s.useCallback)(async()=>{void 0===u&&(e2.includes(i)?P(!0):A())},[u,i,A,P]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{icon:t,label:a,description:o,onClick:b,isLoading:u===i,disabled:d||void 0!==u&&u!==i,bottomElement:c,children:h}),C&&i===r.KomboPaymentMethod.Floa&&(0,n.jsx)(e3,{onClose:()=>P(!1),handlePayment:A}),C&&e5.includes(i)&&(0,n.jsx)(e0,{headingText:a,onClose:()=>P(!1),handlePayment:A,paymentType:i})]})},e4=e=>{let{authorizationRequest:t,hasPhoneNumber:a,currentMethodInProgress:o,setCurrentMethodInProgress:i}=e,{t:l}=(0,d.B)([y.NS.PaymentForm]),{axeptaMerchantId:s,axeptaEncryptedData:c}=(0,m.js)();return(0,n.jsxs)(ez.a,{children:[(0,n.jsx)(e8,{icon:"ancv",label:"Ch\xe8ques Vacances",description:a?void 0:l("METHOD_UNAVAILABLE_PHONE"),paymentType:r.KomboPaymentMethod.Ancv,authorizationRequest:t,disabled:!a,bottomElement:!a&&(0,n.jsx)(e$,{}),currentMethodInProgress:o,setCurrentMethodInProgress:i}),(0,n.jsx)("form",{name:"limonetik-form",action:"".concat(h.mM,"/limonetik.aspx?MerchantID=").concat(s,"&Len=").concat(null==c?void 0:c.length,"&Data=").concat(c),method:"post",children:(0,n.jsx)("input",{id:"axepta-".concat(r.AxeptaPaymentType.Ancv,"-submit"),type:"submit",value:"Submit",style:{display:"none"}})})]})},e6=e=>{let{authorizationRequest:t,currentMethodInProgress:a,setCurrentMethodInProgress:o}=e,{t:i}=(0,d.B)([y.NS.PaymentForm]),{axeptaMerchantId:l,axeptaEncryptedData:s}=(0,m.js)();return(0,n.jsxs)(ez.a,{children:[(0,n.jsx)(e8,{icon:"flash",label:i("INSTANT_TRANSFER"),description:i("INSTA_PROMO_SENTENCE"),paymentType:r.KomboPaymentMethod.Instanea,authorizationRequest:t,currentMethodInProgress:a,setCurrentMethodInProgress:o}),(0,n.jsx)("form",{name:"instanea-form",action:"".concat(h.mM,"/instanea.aspx?MerchantID=").concat(l,"&Len=").concat(null==s?void 0:s.length,"&Data=").concat(s),method:"post",children:(0,n.jsx)("input",{id:"axepta-".concat(r.AxeptaPaymentType.Instanea,"-submit"),type:"submit",value:"Submit",style:{display:"none"}})})]})},e7=e=>{let{authorizationRequest:t,price:a,hasFlight:o,hasPhoneNumber:i,currentMethodInProgress:l,setCurrentMethodInProgress:c}=e,{t:u}=(0,d.B)([y.NS.PaymentForm]),p=(0,ej.T)(),{axeptaMerchantId:x,axeptaEncryptedData:g}=(0,m.js)(),E=(0,s.useMemo)(()=>o||a.amount<5e3||a.amount>6e5?u("FLOA_BUTTON_LABEL"):"Payer ".concat(p({amount:Math.round(a.amount/3),currency:a.currency})," maintenant"),[p,o,a.amount,a.currency,u]),C=(0,s.useMemo)(()=>o?u("METHOD_UNAVAILABLE_FLIGHT"):!i&&(a.amount<5e3||a.amount>
16e5)?u("METHOD_UNAVAILABLE_PHONE_AND_AMOUNT_RANGE",{minPrice:p({amount:5e3,currency:a.currency},!0),maxPrice:p({amount:6e5,currency:a.currency},!0)}):a.amount<5e3?u("METHOD_UNAVAILABLE_MIN_AMOUNT",{minPrice:p({amount:5e3,currency:a.currency},!0)}):a.amount>6e5?u("METHOD_UNAVAILABLE_MAX_AMOUNT",{maxPrice:p({amount:6e5,currency:a.currency},!0)}):i?u("FLOA_PROMO_SENTENCE"):u("METHOD_UNAVAILABLE_PHONE"),[p,o,i,a.amount,a.currency,u]);return(0,n.jsxs)(ez.a,{children:[(0,n.jsx)(e8,{icon:"floa",label:E,description:C,paymentType:r.KomboPaymentMethod.Floa,authorizationRequest:t,disabled:o||!i||a.amount<5e3||a.amount>6e5,bottomElement:!o&&!i&&(0,n.jsx)(e$,{}),currentMethodInProgress:l,setCurrentMethodInProgress:c}),(0,n.jsx)("form",{name:"floapay-form",action:"".concat(h.mM,"/floapay.aspx?MerchantID=").concat(x,"&Len=").concat(null==g?void 0:g.length,"&Data=").concat(g),method:"post",children:(0,n.jsx)("input",{id:"axepta-".concat(r.AxeptaPaymentType.Floa,"-submit"),type:"submit",value:"Submit",style:{display:"none"}})})]})};var e9=a(23365),te=a(55579),tt=a(40885);let ta=e=>{let{encodedBookingId:t,toggleModal:a,refreshBooking:o,isLoading:i,setIsLoading:l}=e,{t:c}=(0,d.B)([y.NS.PaymentForm]),u=(0,ej.T)(),m=(0,_.wA)(),{isTurnstileSuccessful:p,hasTokenBeenVerified:x}=(e=>
1{let[t,a]=(0,s.useState)(),[n,r]=(0,s.useState)(!1),[o,i]=(0,s.useState)(!1),[l,d]=(0,s.useState)(!1),[c,u]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(!n)return r(!0),()=>{window.onloadTurnstileCallback=function(){turnstile.render("#".concat(e),{sitekey:h.$$,callback:function(e){a(e)}})}}},[e,n,t]),(0,s.useEffect)(()=>{if(!o&&n){let e=document.createElement("script");return e.src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback",e.defer=!0,document.head.appendChild(e),i(!0),()=>{document.head.removeChild(e)}}},[o,n]);let m=(0,s.useCallback)(async()=>{if(t&&!c)try{h.jx?d(!0):(await eo._.verifyCloudflareTurnstileToken(t)).verified&&d(!0),u(!0)}catch(e){console.error(e)}},[c,t]);return(0,s.useEffect)(()=>{m()},[m]),{hasTokenBeenVerified:c,isTurnstileSuccessful:l}})("turnstile-container"),{requestAuthorization:g,requestBooking:E}=(0,tt.xx)(),[v,P]=(0,s.useState)(""),[A,b]=(0,s.useState)(""),I=(0,s.useCallback)(e=>{let t="",a={};switch(e){case r.IllicadoGiftCardStatus.EMPTY:t="ILLICADO_ERROR_EMPTY",a={balance:u({amount:0,currency:r.Currency.EUR})};break;case r.IllicadoGiftCardStatus.NOT_ACTIVATED:t="ILLICADO_ERROR_NOT_ACTIVATED";break;case r.IllicadoGiftCardStatus.EXPIRED:t="ILLICADO_ERROR_EXPIRED";break;case r.IllicadoGiftCardStatus.ERROR:t="ILLICADO_ERROR";break;case r.IllicadoGiftCardStatus.OPPOSED:t="ILLICADO_ERROR_OPPOSED";break;case void 0:case r.IllicadoGiftCardStatus.FULL_PRICE:case r.IllicadoGiftCardStatus.PARTIAL_PRICE:t="ILLICADO_ERROR"}m((0,f.VR)(f.ME.Illicado,!0,f.VL.Error,t,a))},[m,u]),j=(0,s.useCallback)(async()=>{try{if(i)return;l(!0),m((0,f.VR)(f.ME.Illicado,!1));let e={giftCardCode:v.replace(/\s+/g,""),giftCardCvv:A},n=await eo._.confirmIllicadoGiftCardUse(t,e);if(n.success)if(n.giftCardStatus===r.IllicadoGiftCardStatus.FULL_PRICE){if(await g(r.PaymentMethod.Illicado)){if(await E(r.PaymentMethod.Illicado,n.requestId,!0))return;a()}}else o(),a(),n.amount&&m((0,f.VR)(f.ME.Payment,!0,f.VL.Success,"ILLICADO_CARD_APPLIED",{amount:u(n.amount)}));else P(""),b(""),I(n.giftCardStatus)}catch(e){m((0,f.VR)(f.ME.Illicado,!0,f.VL.Error,"BOOKING_FAILED_TECH_ERROR"))}finally{l(!1)}},[m,u,t,v,A,I,i,o,g,E,l,a]),M=(0,s.useCallback)(()=>{P(""),b(""),m((0,f.VR)(f.ME.Illicado,!1)),a()},[m,a]);
1return(0,n.jsx)(eR.A,{hasBlueBackground:!0,onClose:i?()=>null:M,headingText:c("ILLICADO_TITLE"),children:(0,n.jsxs)(eD.A,{marginTop:"12px",children:[(0,n.jsx)(e9.A,{id:"promo",type:"text",name:"promo",label:c("ILLICADO_CODE_PLACEHOLDER"),placeholder:"",autoComplete:"off",onChange:e=>P(e.target.value),value:v}),(0,n.jsx)(C.A,{marginTop:"8px",children:(0,n.jsx)(e9.A,{id:"promo",type:"text",name:"promo",label:c("ILLICADO_CVV_PLACEHOLDER"),autoComplete:"off",placeholder:"",onChange:e=>b(e.target.value),value:A})}),(0,n.jsx)(C.A,{marginTop:"8px",children:(0,n.jsx)("div",{id:"turnstile-container"})}),(0,n.jsx)(C.A,{marginTop:"12px",children:(0,n.jsx)(eT.A,{fullWidth:!0,onClick:j,variant:"secondary",disabled:!p||!x||(null==v?void 0:v.length)<19||(null==A?void 0:A.length)<3||i,children:i?(0,n.jsx)(te.A,{color:"primary",size:"medium"}):c("ILLICADO_AVAILABLE_CTA")})}),(0,n.jsx)(eV.A,{place:f.ME.Illicado,namespaces:[y.NS.PaymentForm]})]})})},tn=e=>{let{encodedBookingId:t,refreshBooking:a,currentMethodInProgress:o,setCurrentMethodInProgress:i}=e,{t:l}=(0,d.B)([y.NS.PaymentForm]),c=(0,ej.T)(),{isModalOpen:u,toggleModal:m}=(0,eM.A)(),{booking:p}=(0,eI.Bx)(),h=(0,s.useMemo)(()=>{var e,t;return null==p||null==(t=p.amountPaidByOtherMethods)||null==(e=t.find(e=>e.method===r.PaymentMethod.Illicado))?void 0:e.amount},[null==p?void 0:p.amountPaidByOtherMethods]),x=(0,s.useCallback)(e=>{i(e?r.KomboPaymentMethod.Illicado:void 0)},[i]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{icon:"illicadoBlue",label:"Illicado",successMessage:h&&h.amount>0?l("VOUCHER_STATUS",{context:r.VoucherStatus[r.VoucherStatus.Valid],amount:c(h)}):void 0,isLoading:o===r.KomboPaymentMethod.Illicado,onClick:m,disabled:!!h&&h.amount>0||void 0!==o&&o!==r.KomboPaymentMethod.Illicado}),u&&(0,n.jsx)(ta,{toggleModal:m,encodedBookingId:t,refreshBooking:a,isLoading:o===r.KomboPaymentMethod.Illicado,setIsLoading:x})]})};var tr=a(27253),to=a.n(tr);let ti=S().bind(to()),tl=e=>{let{onClick:t}=e,{t:a}=(0,d.B)([y.NS.PaymentForm]);return(0,n.jsx)("button",{className:ti("more-options-button"),onClick:t,children:(0,n.jsx)(j.E,{color:"primary",children:a("MORE_OPTIONS")})})},ts=e=>{let{authorizationRequest:t,bookingRequest:a,creditCards:o,displayAncv:i,displayApplePay:l,displayFloa:c,displayGooglePay:u,displayIllicado:p,displayInstanea:h,displayPaypal:x=!0,displaySaveCardCheckbox:g=!1,displayVoucher:E,encodedBookingId:I,hasFlight:j,hasPhoneNumber:M,priceToPay:S,refreshBooking:O,currentMethodInProgress:N,setCurrentMethodInProgress:R,...T}=e,{t:w}=(0,d.B)([y.NS.PaymentForm]),L=(0,s.useMemo)(()=>!(0,b.Qi)("nativeEvents")&&((0,b.lB)()||(0,A.VS)()),[]),{selectedSavedCardNumber:D,setSelectedSavedCardNumber:V}
1=(0,m.js)(),[k,F]=(0,s.useState)(!1),[B,U]=(0,s.useState)(!1),H=(0,_.wA)(),K=(0,s.useMemo)(()=>!k&&!L&&!!t&&!!o&&o.length>0&&!!D&&"creditCardForm"!==D,[t,o,L,k,D]),Y=(0,s.useMemo)(()=>!K||K&&B,[B,K]),z=(0,s.useCallback)(e=>{if(e)V("creditCardForm");else if(null==o?void 0:o.length){var t;V(null==(t=o[0])?void 0:t.pseudoCardNumber)}H((0,f.VR)(f.ME.Payment,!1)),F(e)},[o,H,V]);return(0,s.useEffect)(()=>{var e;!D&&(null==o?void 0:o.length)&&V(null==(e=o[0])?void 0:e.pseudoCardNumber)},[D,o,V]),(0,n.jsxs)(C.A,{d:"flex",flexDirection:"column",gap:"16px",children:[!k&&(0,n.jsx)(P.A,{fontWeight:"medium",variant:"medium",children:w("SELECT_PAYMENT_METHOD")}),(0,n.jsx)(ea,{authorizationRequest:t,creditCards:o,disableSaveCard:L,displaySaveCardCheckbox:g,displaySavedCreditCards:K,displayCreditCardForm:k,handleCreditCardFormVisibility:z,currentMethodInProgress:N,setCurrentMethodInProgress:R}),!k&&(0,n.jsxs)(n.Fragment,{children:[l&&a&&I&&(0,n.jsx)(ep,{price:S,authorizationRequest:t,bookingRequest:a,encodedBookingId:I,currentMethodInProgress:N,setCurrentMethodInProgress:R}),u&&a&&I&&(0,n.jsx)(eE,{price:S,authorizationRequest:t?async()=>t(r.PaymentMethod.Axepta):void 0,bookingRequest:a,encodedBookingId:I,currentMethodInProgress:N,setCurrentMethodInProgress:R}),(0,n.jsxs)(C.A,{children:[K&&(0,n.jsx)(v.A,{icon:"creditCardFilled",label:w("ADD_A_CARD"),onClick:()=>z(!0),disabled:void 0!==N}),E&&(0,n.jsx)(eY,{currentMethodInProgress:N,setCurrentMethodInProgress:R}),i&&t&&(0,n.jsx)(e4,{authorizationRequest:async()=>t(r.PaymentMethod.Axepta),hasPhoneNumber:M,currentMethodInProgress:N,setCurrentMethodInProgress:R}),Y?(0,n.jsxs)(n.Fragment,{children:[h&&t&&(0,n.jsx)(e6,{authorizationRequest:async()=>t(r.PaymentMethod.Axepta),currentMethodInProgress:N,setCurrentMethodInProgress:R}),x&&{...T}&&(0,n.jsx)(eb,{price:S,hasFlight:j,currentMethodInProgress:N,setCurrentMethodInProgress:R,...T}),c&&t&&(0,n.jsx)(e7,{authorizationRequest:async()=>t(r.PaymentMethod.Axepta),hasFlight:j,hasPhoneNumber:M,price:S,currentMethodInProgress:N,setCurrentMethodInProgress:R}),p&&O&&I&&(0,n.jsx)(tn,{encodedBookingId:I,refreshBooking:O,currentMethodInProgress:N,setCurrentMethodInProgress:R})]}):(0,n.jsx)(n.Fragment,{children:!B&&(h||x||c||p)&&(0,n.jsx)(tl,{onClick:()=>U(!0)})})]})]})]})},td=e=>{let{encodedBookingId:t,priceToPay:a,handleFreePaymentClick:i,authorizationRequest:g,bookingRequest:C,purchaseType:v=r.PurchaseFunnelType.Booking,enableSaveCardCheckbox:P=!1,isLoading:_=!1,displayApplePay:A=!1,isPaying:b=!1,displayFloa:f=!1,displayAncv:I=!1,displayInstanea:j=!1,displayIllicado:M=!1,displayPaypal:S=!0,displayGooglePay:O=!1,displayVoucher:N=!0,hasFlight:R,hasPhoneNumber:T,refreshBooking:w,onReady:L,...D}=e,{retrieveEncodedAxeptaData:V,axeptaEncryptedData:k,isPaying:F}=(0,m.js)(),{t:B}
1=(0,d.B)(),[U,H]=(0,s.useState)(!1),[K,Y]=(0,s.useState)(!1),[z,G]=(0,s.useState)(!1),[W,q]=(0,s.useState)(!1),[X,$]=(0,s.useState)(),[J,Z]=(0,s.useState)(),{checkedAuth:Q,fullAccess:ee}=(0,u.As)(),{customerSavedCards:et,getCustomerSavedCards:ea}=(0,c.F7)(),{fullAccess:en}=(0,u.As)();(0,s.useEffect)(()=>{en&&!et&&ea()},[en,et,ea]);let er=(0,s.useCallback)(async()=>{$(a),H(!0),Y(!1);try{await V()}catch(e){(0,x.v)(e),Y(!0)}finally{H(!1)}},[a,V]);(0,s.useEffect)(()=>{if(!C||!W)return;let e=window.ApplePaySession;e&&(async()=>{try{let{paymentCredentialStatus:t}=await e.applePayCapabilities(h.qi);"applePayUnsupported"!==t&&G(!0)}catch(a){var t;(null==(t=e.canMakePayments)?void 0:t.call(e))&&G(!0)}})()},[C,W]),(0,s.useEffect)(()=>{!(a.amount>0)||k||U||_||K||er(),0===a.amount&&i&&H(!1)},[k,i,K,_,U,a,er]),(0,s.useEffect)(()=>{let e=(null==X?void 0:X.amount)!==a.amount||(null==X?void 0:X.currency)!==a.currency;a.amount>0&&e&&k&&!_&&!U&&er()},[k,_,U,X,a,er]);let eo=(0,s.useMemo)(()=>U||_||0===a.amount&&i&&b||F||isNaN(a.amount)||a.amount>0&&(!k||K),[k,i,K,F,_,b,U,a]),ei=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{eo||ei.current||(ei.current=!0,null==L||L())},[eo,L]),(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(l(),{src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",crossOrigin:"anonymous",onLoad:()=>q(!0),onReady:()=>q(!0),onError:()=>{var e;let t=window.ApplePaySession;(null==t||null==(e=t.canMakePayments)?void 0:e.call(t))&&G(!0)}}),!K||!(a.amount>0)||F||b||_?eo?(0,n.jsx)(p.A,{}):(0,n.jsx)(n.Fragment,{children:0===a.amount&&i?(0,n.jsx)(E,{handleFreePaymentClick:i}):(0,n.jsx)(ts,{authorizationRequest:g,bookingRequest:C,creditCards:et,displayAncv:I,displayApplePay:A&&z,displayFloa:f,displayGooglePay:O,displayIllicado:M,displayInstanea:j,displayPaypal:S,displaySaveCardCheckbox:P&&Q&&ee,displayVoucher:N,encodedBookingId:t,hasFlight:R,hasPhoneNumber:T,priceToPay:a,purchaseType:v,refreshBooking:w,currentMethodInProgress:J,setCurrentMethodInProgress:Z,...D})}):(0,n.jsxs)(o.az,{d:"flex",flexDirection:"column",gap:"16px",alignItems:"center",children:[(0,n.jsx)(o.EY,{variant:"medium",as:"p",textAlign:"center",children:B("ERROR_TRY_AGAIN",{ns:y.NS.Common})}),(0,n.jsx)(o.$n,{onClick:()=>void er(),children:B("TRY_AGAIN",{ns:y.NS.Common})})]})]})}},53632:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(80263),r=a(13426),o=a(94638),i=a(19702),l=a(44915),s=a(77854);let d=e=>{let{label:t,description:a}=e;return(0,n.jsxs)(s.E,{as:"li",marginTop:"4px",marginBottom:"4px",color:"primaryDarker",children:[(0,n.jsx)(s.E,{fontWeight:"semibold",color:"primaryDarker",children:t})," ",a]})},c=e=>{let{userAccountVouchers:t=!1}=e,{t:a}=(0,o.B)([l.NS.PaymentForm]);return(0,n.jsx)(r.Eg,{variant:i.VL.Info,children:(0,n.jsxs)(r.az,{children:[(0,n.jsx)(r.EY,{fontWeight:"bold",color:"primaryDarker",children:a("COMPATIBLE_CODES")}),(0,n.jsx)(r.az,{children:(0,n.jsxs)(r.az,{as:"ul",marginLeft:"4px",listStyleType:"disc",listStylePosition:"inside",children:[(0,n.jsx)(d,{label:"SNCF:",description:a("SNCF_VOUCHER_EXPLANATION")}),(0,n.jsx)(d,{label:"Trenitalia:",description:a("TRENITALIA_VOUCHER_EXPLANATION")}),(0,n.jsx)(d,{label:"Flixbus:",description:a("FLIXBUS_VOUCHER_EXPLANATION")}),(0,n.jsx)(d,{label:"Deutsche Bahn:",description:a("DEUTSCHE_BAHN_VOUCHER_EXPLANATION")}),(0,n.jsx)(d,{label:a("CSE_CODES")}),(0,n.jsx)(d,{label:a("KOMBO_CODES")})]})}),(0,n.jsx)(r.az,{marginTop:"16px",children:(0,n.jsx)(r.EY,{as:"p",color:"primaryDarker",children:a("NOT_COMPATIBLE_CODES")})}),t&&(0,n.jsx)(r.az,{marginTop:"8px",children:(0,n.jsx)(r.EY,{as:"p",color:"primaryDarker",children:a("USE_PROVIDER_VOUCHER_LATER")})})]})})}},55781:e=>{e.exports={"paypal-hidden-button":"PaypalButton_paypal-hidden-button__TTM0l"}},57371:(e,t,a)=>{"use strict";a.d(t,{zt:()=>g,Ks:()=>x});var n=a(80263),r=a(17343),o=a(830),i=a(53239),l=a(94638),s=a(50343),d=a(42059),c=a(45706),u=a(44915),m=a(32096),p=a(15850);let h=e=>{let{voucher:t,onClose:a,onDelete:o}=e,{t:i}=(0,l.B)([u.NS.Account]),s=!(0,r.isExternalVoucher)(t);return(0,n.jsxs)(p.A,{onClose:a,headingText:t.code,hasBlueBackgroun
1d:!0,children:[(0,n.jsx)(m.az,{marginBottom:"16px",children:(0,n.jsx)(m.EY,{variant:"small",color:"textPrimary",children:i(s?"VOUCHER_IS_KOMBO_CODE":"VOUCHER_IS_NOT_KOMBO_CODE")})}),(0,n.jsx)(m.me,{options:[{label:i("VOUCHER_DELETE_CODE"),onClick:o,icon:"minusOutlined",color:"redError"}]})]})};var y=a(97326);let x=e=>{if(!(0,r.isKomboVoucher)(e)||!e.activationDate)return!1;let t=new Date(e.activationDate);return!Number.isNaN(t.getTime())&&t>new Date},g=e=>{let t,{voucher:a,onRemove:m}=e,{t:p}=(0,l.B)([u.NS.Account]),g=(0,d.Ym)(),[E,C]=(0,i.useState)(!1),{code:v,amount:P,expirationDate:_,activationDate:A,isValid:b,providerName:f}=(t={code:a.code||""},(0,r.isExternalVoucher)(a)?(t.isValid=!0,void 0!==a.amount&&(t.amount=a.isPercentage?"".concat(a.amount,"%"):(0,s.O)({amount:a.amount,currency:r.Currency.EUR},g)),a.expirationDate&&(t.expirationDate=new Date(a.expirationDate)),void 0!==a.providerId&&(t.providerName=(0,y.f)(a.providerId))):((0,r.isKomboVoucher)(a)?(t.amount=a.type===r.VoucherType.Percentage?"".concat(a.percentageDiscount,"%"):(0,s.O)(a.balance,g),t.activationDate=a.activationDate):t.amount=(0,s.O)(a.balance,g),t.expirationDate=a.expirationDate,t.isValid=a.isValid),t),I=!(0,r.isExternalVoucher)(a),j=_?new Date(_):void 0,M=j&&!Number.isNaN(j.getTime())?(0,c.iv)(j,g):void 0,S=A&&x(a)?(0,c.iv)(new Date(A),g):void 0,O=I?void 0:f?M?p("VOUCHER_PROVIDER_USE_BEFORE_CHECK_LATER",{provider:f,date:M,ns:u.NS.Account}):p("VOUCHER_PROVIDER_CHECK_EXPIRATION_LATER",{provider:f,ns:u.NS.Account}):M?p("VOUCHER_USE_BEFORE_CHECK_LATER",{date:M,ns:u.NS.Account}):p("VOUCHER_CHECK_LATER",{ns:u.NS.Account});return(0,n.jsxs)(o.az,{d:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:{mobile:"16px",desktop:"32px"},children:[(0,n.jsxs)(o.az,{flexDirection:"column",style:{minWidth:0},children:[(0,n.jsxs)(o.az,{d:"flex",alignItems:"center",gap:"8px",style:{minWidth:0},children:[(0,n.jsx)(o.EY,{variant:"small",fontWeight:"semibold",color:b?"textPrimary":"grey2",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:v}),!!P&&(0,n.jsx)(o.az,{flexShrink:0,children:(0,n.jsx)(o.EY,{variant:"small",fontWeight:"semibold",as:"p",color:b?"textPrimary":"grey2",children:P})})]}),I?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.EY,{as:"p",variant:"small",color:b?"textPrimary":"grey2",children:p("KOMBO_CODE_LABEL",{ns:u.NS.Account})}),!!S&&(0,n.jsx)(o.EY,{as:"p",variant:"small",color:"grey3",children:p("VOUCHER_USABLE_FROM",{date:S,ns:u.NS.Account})}),!!M&&(0,n.jsx)(o.EY,{as:"p",variant:"small",color:"grey3",children:p("VOUCHER_VALID_UNTIL",{date:M,ns:u.NS.Account})})]}):(0,n.jsx)(o.EY,{as:"p",variant:"small",color:b?"textPrimary":"grey2",children:O})]}),m&&(0,n.jsx)(o.az,{flexShrink:0,children:(0,n.jsx)(o.$n,{variant:"unstyled",onClick:()=>C(!0),"aria-label":"Open voucher actions",children:(0,n.jsx)(o.In,{icon:"more-bold",color:"textPrimary",height:"24px",width:"24px"})})}),E&&(0,n.jsx)(h,{voucher:a,onClose:()=>C(!1),onDelete:()=>{C(!1),null==m||m(a)}})]})}},68636:(e,t,a)=>{"use strict";a.d(t,{e:()=>r,o:()=>o});var n=a(17343);let r=e=>{switch(e){case n.KomboPaymentMethod.PaySSL:return n.AxeptaPaymentType.PaySSL;case n.KomboPaymentMethod.PayNow:return n.AxeptaPaymentType.PayNow;case n.KomboPaymentMethod.Floa:return n.AxeptaPaymentType.Floa;case n.KomboPaymentMethod.Ancv:return n.AxeptaPaymentType.Ancv;case n.KomboPaymentMethod.Instanea:return n.AxeptaPaymentType.Instanea;case n.KomboPaymentMethod.ApplePay:return n.AxeptaPaymentType.ApplePay;case n.KomboPaymentMethod.GooglePay:return n.AxeptaPaymentType.GooglePay;case n.KomboPaymentMethod.Paypal:case n.KomboPaymentMethod.Voucher:case n.KomboPaymentMethod.Illicado:return}},o=e=>{let t=new Date,a=t.getFullYear()%100,n=t.getMonth()+1,r=e.expiryYear%100,o=e.expiryMonth;return r<a||r===a&&!!(o<n)}},72047:e=>{e.exports={"save-credit-card-button":"SaveCreditCardSelect_save-credit-card-button__zB09L",selected:"SaveCreditCardSelect_selected__MbqMR"}},73858:(e,t,a)=>{"use strict";a.d(t,{js:()=>d,tR:()=>c});var n=a(80263),r=a(17343),o=a(53239),i=a(11988),l=a(59809);let s=(0,o.createContext)(void 0),d=()=>{let e=(0,o.useContext)(s);if(void 0===e)throw Error("useAxepta must be used within a AxeptaProvider");return e},c=e=>{let{children:t,getEncodedDataRequest:a}=e,d=(e=>{let{getEncodedDataRequest:t}=e,[a,n]=(0,o.useState)(),[s,d]=(0,o.useState)(),[c,u]=(0,o.useState)(),[m,p]=(0,o.useState)(!1),[h,y]=(0,o.useState)(!1),x=(0,o.useRef)({s
1aveCard:!1,storedSaveCard:!1,lastUpdate:0,pendingUpdate:Promise.resolve()}),g=(0,o.useCallback)(async e=>{let t=x.current;t.saveCard=e,y(e);let a=++t.lastUpdate;return t.saveCardRef&&(t.pendingUpdate=t.pendingUpdate.then(async()=>{let{saveCardRef:e,saveCard:n}=t;if(a===t.lastUpdate&&e)try{await l._.setAxeptaCardStorage(e,{enabled:n}),e===t.saveCardRef&&(t.storedSaveCard=n)}catch(e){if(a!==t.lastUpdate)return;t.saveCard=t.storedSaveCard,y(t.storedSaveCard)}})),t.pendingUpdate},[]);return{retrieveEncodedAxeptaData:(0,o.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.AxeptaPaymentType.PaySSL,a=new i.A,o=a.get("_ga")||null,l=a.get("_gid")||null,s=a.get("_gac_UA-77552608-5")||null,u={ga:{_ga:o,_gid:l,_gac:s},fbc:a.get("fbc")||void 0,fbp:a.get("_fbp")||void 0,paymentType:e,urlBack:window.location.href,selectedSavedCardNumber:c};e===r.AxeptaPaymentType.PayNow&&(u={...u,windowHeight:window.innerHeight,windowWidth:window.innerWidth,timezoneOffset:new Date().getTimezoneOffset().toString(),language:window.navigator.language});let m=await t(u);return n(m.data),d(m.mid),e===r.AxeptaPaymentType.PaySSL&&(x.current.saveCardRef=m.saveCardRef,x.current.storedSaveCard=!1,x.current.saveCard&&g(!0)),m},[t,c,g]),axeptaEncryptedData:a,axeptaMerchantId:s,selectedSavedCardNumber:c,setSelectedSavedCardNumber:u,saveCard:h,updateSaveCard:g,setIsPaying:p,isPaying:m}})({getEncodedDataRequest:a});return(0,n.jsx)(s.Provider,{value:d,children:t})}},81663:(e,t,a)=>{"use strict";a.d(t,{$n:()=>r.A,Eg:()=>o.A,VL:()=>o.V,az:()=>n.A});var n=a(87913),r=a(98879),o=a(90257)},84436:e=>{e.exports={"google-pay-container":"styles_google-pay-container__Jwq_D"}},87314:(e,t,a)=>{"use strict";a.d(t,{$d:()=>s,dP:()=>l});var n=a(80263),r=a(53239),o=a(8809);let i=(0,r.createContext)(void 0),l=()=>{let e=(0,r.useContext)(i);if(void 0===e)throw Error("useGooglePay must be used within a GooglePayProvider");return e},s=e=>{let{children:t}=e,a=(()=>{let[e,t]=(0,r.useState)(!1),a=(0,r.useMemo)(()=>({apiVersion:2,apiVersionMinor:0}),[]),n=(0,r.useMemo)(()=>({type:"PAYMENT_GATEWAY",parameters:{gateway:"computop",gatewayMerchantId:o.dW}}),[]),i=(0,r.useMemo)(()=>({type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","MASTERCARD","VISA"]}}),[]),l=(0,r.useMemo)(()=>({...i,tokenizationSpecification:n}),[i,n]),s=(0,r.useMemo)(()=>{var e,t;if(null==(t=window.google)||null==(e=t.payments)?void 0:e.api)return new window.google.payments.api.PaymentsClient({environment:o.jx?"TEST":"PRODUCTION"})},[]);return(0,r.useEffect)(()=>{(async()=>{let e={...a,allowedPaymentMethods:[i]},n=await (null==s?void 0:s.isReadyToPay(e));(null==n?void 0:n.result)&&t(!0)})()},[l,a,s,i]),{displayGooglePay:e,googlePayBaseRequest:a,googlePayPaymentsClient:s,googlePayCardPaymentMethod:l}})();return(0,n.jsx)(i.Provider,{value:a,children:t})}},97326:(e,t,a)=>{"use strict";a.d(t,{f:()=>l,m:()=>o});var n=a(17343);let r=[{value:n.ProviderId.SNCF,label:"SNCF"},{value:n.ProviderId.TrenItalia,label:"Trenitalia"},{value:n.ProviderId.Flixbus,label:"Flixbus"},{value:n.ProviderId.DBahn,label:"Deutsche Bahn"}],o=e=>r.map(t=>t.value===n.ProviderId.TrenItalia&&e===n.LOCALE.fr?{...t,label:"Trenitalia/Frecciarossa"}:t),i={[n.ProviderId.OuiGo]:"OUIGO",[n.ProviderId.TER]:"TER",[n.ProviderId.Eurostar]:"Eurostar",[n.ProviderId.EurostarCom]:"Eurostar",[n.ProviderId.Italo]:"Italo",[n.ProviderId.Renfe]:"Renfe",[n.ProviderId.Iryo]:"Iryo",[n.ProviderId.BlaBlaBus]:"BlaBlaCar Bus",[n.ProviderId.Altibus]:"Altibus",[n.ProviderId.SNCB]:"SNCB",[n.ProviderId.NS]:"NS",[n.ProviderId.CFF]:"CFF",[n.ProviderId.OBB]:"\xd6BB",[n.ProviderId.WestBahn]:"WESTbahn"},l=e=>{var t,a;return null!=(t=null==(a=r.find(t=>t.value===e))?void 0:a.label)?t:i[e]}}}]);
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.