PageSourceSearch

https://www.lyntel.io/_next/static/chunks/app/%5Blocale%5D/checkout/airhelp/page-11f3a4ba8acfdc8f.js

js lyntel.io collected 2026-10-05 01:20:48 UTC 12,189 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4698],{18460:(e,t,l)=>{"use strict";l.d(t,{F:()=>i});var a=l(29722);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=a.$,i=(e,t)=>l=>{var a;if((null==t?void 0:t.variants)==null)return s(e,null==l?void 0:l.class,null==l?void 0:l.className);let{variants:i,defaultVariants:n}=t,d=Object.keys(i).map(e=>{let t=null==l?void 0:l[e],a=null==n?void 0:n[e];if(null===t)return null;let s=r(t)||r(a);return i[e][s]}),o=l&&Object.entries(l).reduce((e,t)=>{let[l,a]=t;return void 0===a||(e[l]=a),e},{});return s(e,d,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:l,className:a,...r}=t;return Object.entries(r).every(e=>{let[t,l]=e;return Array.isArray(l)?l.includes({...n,...o}[t]):({...n,...o})[t]===l})?[...e,l,a]:e},[]),null==l?void 0:l.class,null==l?void 0:l.className)}},24766:(e,t,l)=>{"use strict";l.d(t,{AirHelpCheckoutForm:()=>h});var a=l(95155),r=l(12115),s=l(94173),i=l(15566),n=l(60529);let d=["base","baseAirpayout","baseAirluggage","luggageStandalone"];var o=l(48732);let c={status:"idle"},u={status:"idle"};function m(e,t){return e.replace(/\{(\w+)\}/g,(e,l)=>l in t?String(t[l]):e)}function h({locale:e,sdkLocale:t,strings:l,dropinStrings:o,confirmHrefTemplate:y,policiesHref:N,checkoutHref:f,actions:v,navigate:A}){let[F,k]=r.useState(null),[w,U]=r.useState(!1),[T,S,C]=r.useActionState(v.buyAirHelpCover,c),[J,E,q]=r.useActionState(v.releaseUnpaidAirHelpPolicy,c),D=e=>"at"in e?e.at:0,O="idle"!==J.status&&D(J)>=D(T)?J:T,[$,L,P]=r.useActionState(v.checkEligibility,u);if("session"===O.status)return(0,a.jsxs)("section",{"data-testid":"airhelp-checkout-sheet",className:"space-y-6",children:[(0,a.jsx)("h2",{className:"text-heading-small",children:l.paySheetTitle}),(0,a.jsx)(g,{summary:O.summary,strings:l,locale:e}),(0,a.jsx)(s.a5,{handoff:O.handoff,locale:t,strings:o,confirmHref:y.replace("{id}",O.summary.orderId),navigate:A})]});if("noSheet"===O.status)return(0,a.jsxs)("section",{className:"space-y-4","data-testid":"airhelp-no-sheet",children:[(0,a.jsx)("h2",{className:"text-heading-small",children:l.noSheetTitle}),(0,a.jsx)("p",{className:"text-body-small",children:l.noSheetBody}),O.orderNumber?(0,a.jsx)("p",{className:"text-body-small text-muted","data-testid":"airhelp-existing-order-number",children:m(l.orderNumber,{number:O.orderNumber})}):null,(0,a.jsx)("a",{className:"underline",href:N,children:l.viewPolicies})]});if("released"===O.status)return(0,a.jsxs)("section",{className:"space-y-4","data-testid":"airhelp-released",children:[(0,a.jsx)("h2",{className:"text-heading-small",children:l.releasedTitle}),(0,a.jsx)("p",{className:"text-body-small",children:l.releasedBody}),(0,a.jsx)("a",{className:"underline",href:f,"data-testid":"airhelp-buy-again",children:l.releasedAction})]});if("alreadyOwned"===O.status||"existingUnpaid"===O.status){let e="alreadyOwned"===O.status;return(0,a.jsxs)("section",{className:"space-y-4","data-testid":e?"airhelp-already-owned":"airhelp-existing-unpaid",children:[(0,a.jsx)("h2",{className:"text-heading-small",children:e?l.alreadyOwnedTitle:l.existingUnpaidTitle}),(0,a.jsx)("p",{className:"text-body-small",children:e?l.alreadyOwnedBody:l.existingUnpaidBody}),O.orderNumber?(0,a.jsx)("p",{className:"text-body-small text-muted","data-testid":"airhelp-existing-order-number",children:m(l.orderNumber,{number:O.orderNumber})}):null,(0,a.jsx)("a",{className:"underline",href:N,children:l.viewPolicies}),!1]})}return(0,a.jsxs)("form",{action:S,className:"space-y-8","data-testid":"airhelp-checkout",children:[(0,a.jsx)("input",{type:"hidden",name:"locale",value:e}),(0,a.jsxs)("fieldset",{className:"space-y-3",children:[(0,a.jsx)("legend",{className:"text-heading-small",children:l.coverTitle}),(0,a.jsx)("p",{className:"text-body-small text-muted","data-testid":"airhelp-price-note",children:l.coverPriceNote}),d.map(e=>(0,a.jsxs)("label",{className:"flex gap-2 text-body-small",children:[(0,a.jsx)("input",{type:"radio",name:"cover",value:e,checked:F===e,onChange:()=>k(e)}),(0,a.jsxs)("span",{children:[l[b[e]],(0,a.jsx)("span",{className:"block text-muted",children:l[j[e]]})]})]},e)),null!==F&&("baseAirluggage"===F||"luggageStandalone"===F)?(0,a.jsxs)("div",{"data-testid":"airhelp-luggage",children:[(0,a.jsx)(n.JU,{htmlFor:"luggageCount",children:l.luggageLabel}),(0,a.jsx)(n.pd,{id:"luggageCount",name:"luggageCount",type:"number",min:1,max:10,defaultValue:1})]}):null]}),(0,a.jsxs)("fieldset",{className:"space-y-4",children:[(0,a.jsx)("legend",{className:"text-heading-small",children:l.flightsTitle}),(0,a.jsx)("p",{className:"text-body-small text-muted",children:l.localTimeNote}),(0,a.jsx)(p,{prefix:"outbound",title:l.outboundTitle,strings:l}),(0,a.jsx)(x,{name:"hasReturn",checked:w,onChange:U,label:l.addReturn}),w?(0,a.jsx)(p,{prefix:"return",title:l.returnTitle,strings:l}):null]}),(0,a.jsxs)("section",{className:"space-y-2","data-testid":"airhelp-eligibility",children:[(0,a.jsx)("h3",{className:"text-heading-small",children:l.eligibilityTitle}),(0,a.jsx)(i.$,{type:"submit",variant:"secondary",formAction:L,disabled:P,children:P?l.eligibilityChecking:l.eligibilityAction}),"done"===$.status?(0,a.jsx)("p",{className:"text-body-small","data-testid":`eligibility-${$.verdict}`,children:$.throttled?l.eligibilityThrottled:"likely"===$.verdict?l.eligibilityLikely:"unlikely"===$.verdict?l.eligibilityUnlikely:l.eligibilityUnknown}):null,(0,a.jsx)("p",{className:"text-body-small text-muted",children:l.eligibilityNotAPromise})]}),(0,a.jsxs)("fieldset",{className:"space-y-3",children:[(0,a.jsx)("legend",{className:"text-heading-small",children:l.passengerTitle}),(0,a.jsx)("p",{className:"text-body-small text-muted",children:l.passengerNote}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:"firstName",children:l.firstName}),(0,a.jsx)(n.pd,{id:"firstName",name:"firstName",autoComplete:"given-name",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:"lastName",children:l.lastName}),(0,a.jsx)(n.pd,{id:"lastName",name:"lastName",autoComplete:"family-name",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:"email",children:l.email}),(0,a.jsx)(n.pd,{id:"email",name:"email",type:"email",autoComplete:"email",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:"phoneNumber",children:l.phone}),(0,a.jsx)(n.pd,{id:"phoneNumber",name:"phoneNumber",type:"tel",autoComplete:"tel"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:"residency",children:l.residency}),(0,a.jsxs)("select",{id:"residency",name:"residency",defaultValue:"eu",className:"w-full rounded border p-2",children:[(0,a.jsx)("option",{value:"eu",children:l.residencyEu}),(0,a.jsx)("option",{value:"non-eu",children:l.residencyNonEu})]})]})]}),(0,a.jsxs)("fieldset",{className:"space-y-2",children:[(0,a.jsx)("legend",{className:"text-heading-small",children:l.directFlightTitle}),(0,a.jsx)("p",{className:"text-body-small",children:l.directFlightBody}),(0,a.jsxs)("label",{className:"flex gap-2 text-body-small",children:[(0,a.jsx)("input",{type:"checkbox",name:"directFlight",value:"on"}),(0,a.jsx)("span",{children:l.directFlightConfirm})]})]}),(0,a.jsx)("p",{className:"text-body-small text-muted",children:l.dataSharingNote}),"form"===O.status?(0,a.jsx)("p",{className:"text-body-small",role:"alert","data-testid":"airhelp-form-error",children:function(e,t){switch(e.field){case"cover":return t.cover
1Errors[e.problem];case"luggage":return t.luggageLabel;case"outbound":case"return":return t.flightErrors[e.problem];case"passenger":return t.passengerErrors[e.problem];case"directFlight":return t.directFlightRequired}}(O.problem,l)}):null,"error"===O.status?(0,a.jsx)("p",{className:"text-body-small",role:"alert","data-testid":"airhelp-error",children:l.errors[O.error]}):null,(0,a.jsx)(i.$,{type:"submit",disabled:C||null===F,children:C?l.submitting:l.continueToPayment})]})}function x({name:e,checked:t,onChange:l,label:r,note:s}){return(0,a.jsxs)("label",{className:"flex gap-2 text-body-small",children:[(0,a.jsx)("input",{type:"checkbox",name:e,value:"on",checked:t,onChange:e=>l(e.target.checked)}),(0,a.jsxs)("span",{children:[r,s?(0,a.jsx)("span",{className:"block text-muted",children:s}):null]})]})}function p({prefix:e,title:t,strings:l}){let r=t=>`${e}${t}`;return(0,a.jsxs)("div",{className:"space-y-3","data-testid":`airhelp-flight-${e}`,children:[(0,a.jsx)("h3",{className:"text-heading-small",children:t}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:r("Airline"),children:l.airline}),(0,a.jsx)(n.pd,{id:r("Airline"),name:r("Airline"),maxLength:2,required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:r("Number"),children:l.flightNumber}),(0,a.jsx)(n.pd,{id:r("Number"),name:r("Number"),maxLength:5,required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:r("From"),children:l.departureAirport}),(0,a.jsx)(n.pd,{id:r("From"),name:r("From"),maxLength:3,required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:r("Departure"),children:l.departureAt}),(0,a.jsx)(n.pd,{id:r("Departure"),name:r("Departure"),type:"datetime-local",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:r("To"),children:l.arrivalAirport}),(0,a.jsx)(n.pd,{id:r("To"),name:r("To"),maxLength:3,required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.JU,{htmlFor:r("Arrival"),children:l.arrivalAt}),(0,a.jsx)(n.pd,{id:r("Arrival"),name:r("Arrival"),type:"datetime-local",required:!0})]})]})}function g({summary:e,strings:t,locale:l}){return(0,a.jsxs)("dl",{className:"space-y-1 text-body-small","data-testid":"airhelp-session-summary",children:[(0,a.jsxs)("div",{className:"flex justify-between font-semibold",children:[(0,a.jsx)("dt",{children:t.amountDue.replace(/\s*\{amount\}\s*$/,"")}),(0,a.jsx)("dd",{"data-testid":"airhelp-amount",children:(0,o.u)(e.amount,l,e.currency)})]}),e.orderNumber?(0,a.jsx)("div",{className:"text-muted","data-testid":"airhelp-order-number",children:m(t.orderNumber,{number:e.orderNumber})}):null]})}let b={base:"optionBase",baseAirpayout:"optionAirpayout",baseAirluggage:"optionAirluggage",luggageStandalone:"optionStandalone"},j={base:"optionBaseNote",baseAirpayout:"optionAirpayoutNote",baseAirluggage:"optionAirluggageNote",luggageStandalone:"optionStandaloneNote"}},43221:(e,t,l)=>{Promise.resolve().then(l.bind(l,69549)),Promise.resolve().then(l.bind(l,24766))},48732:(e,t,l)=>{"use strict";function a(e,t,l="USD"){let r="sr"===t?"sr-Latn":t;try{return new Intl.NumberFormat(r,{style:"currency",currency:l,maximumFractionDigits:2}).format(e)}catch{try{return new Intl.NumberFormat("en",{style:"currency",currency:l}).format(e)}catch{try{return new Intl.NumberFormat(r,{maximumFractionDigits:2}).format(e)}catch{return new Intl.NumberFormat("en",{maximumFractionDigits:2}).format(e)}}}}l.d(t,{u:()=>a}),Date.UTC(2024,0,1)},60529:(e,t,l)=>{"use strict";l.d(t,{JU:()=>i,oE:()=>n,pd:()=>s});var a=l(95155);l(12115);var r=l(40980);function s({className:e,type:t="text",invalid:l,"aria-invalid":i,...n}){return(0,a.jsx)("input",{type:t,"data-slot":"input","aria-invalid":(l??(!0===i||"true"===i))||void 0,className:(0,r.cn)("flex h-11 w-full min-w-0 rounded-md border border-line-strong bg-surface px-3.5 text-body-large text-ink","placeholder:text-muted transition-[border-color,box-shadow]","focus-visible:outline-none focus-visible:border-brand focus-visible:ring-2 focus-visible:ring-brand-tint","disabled:cursor-not-allowed disabled:bg-surface-alt disabled:text-faint","aria-invalid:border-error-solid aria-invalid:focus-visible:ring-error-bg","file:border-0 file:bg-transparent file:text-body file:font-medium",e),...n})}function i({className:e,...t}){return(0,a.jsx)("label",{"data-slot":"label",className:(0,r.cn)("block text-body font-medium text-ink",e),...t})}function n({className:e,error:t,...l}){return(0,a.jsx)("p",{"data-slot":"field-hint",role:t?"alert":void 0,className:(0,r.cn)("text-small",t?"text-error-text":"text-muted",e),...l})}},69549:(e,t,l)=>{"use strict";l.d(t,{default:()=>s});var a=l(11697),r=l(95155);function s({locale:e,...t}){if(!e)throw Error(void 0);return(0,r.jsx)(a.Dk,{locale:e,...t})}}},e=>{e.O(0,[1697,5443,5856,4173,8441,5254,7358],()=>e(e.s=43221)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.