PageSourceSearch

https://claim.airfairness.com/_next/static/chunks/2014.3bd627ff51801df2.js

js airfairness.com collected 2026-10-07 06:09:31 UTC 26,881 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8903c759-bee8-4de5-875f-889ce1cb8f9b",e._sentryDebugIdIdentifier="sentry-dbid-8903c759-bee8-4de5-875f-889ce1cb8f9b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2014],{27851:function(e,t,r){r.r(t),r.d(t,{default:function(){return S}});var n=r(27573),a=r(66729),i=r(80630),l=r(67313),o=r(18200),s=r(63398),d=r(57059),u=r(51361),c=r(6961),f=r(37097),g=r(98624),h=r(95731);let m="airfairness_utm_params";var p=r(59344),x=r(83803),v=r(13513),y=r(37185),j=r(57177),b=r(80846),w=r(68634),N=r(43478),D=r(61581),C=r(67754),A=r(7653),F=r(48388),_=r(88987);let k=_.z.object({departureAirport:_.z.object(o.uM.shape).refine(e=>void 0!==e,{message:"Please select a departure airport"}),destinationAirport:_.z.object(o.uM.shape).refine(e=>void 0!==e,{message:"Please select a destination airport"}),hasConnectingFlights:_.z.boolean({required_error:"Please select your travel route type"}),flightDate:_.z.date().optional()}).superRefine((e,t)=>{!1===e.hasConnectingFlights&&(e.flightDate?e.flightDate>new Date&&t.addIssue({code:_.z.ZodIssueCode.custom,message:"Flight date cannot be in the future",path:["flightDate"]}):t.addIssue({code:_.z.ZodIssueCode.custom,message:"Please select a flight date",path:["flightDate"]}))});function S(){var e,t;let r=(0,C.useRouter)(),{itineraryDetails:o,setItineraryDetails:_}=(0,d.useItineraryDetailsStore)(),{formDetails:S,setFormDetails:I}=(0,s.d)(),{setPersonalDetails:T}=(0,u.B)(),[z,V]=(0,A.useState)(!1),[R,P]=(0,A.useState)(null),[O,Z]=(0,A.useState)(()=>{var e;let t=null===(e=o.inputtedFlights[0])||void 0===e?void 0:e.date;return t?(0,f.k)(t):void 0}),{}=(0,l.X)();(0,A.useEffect)(()=>{(0,c.r)().catch(console.error)},[]),(0,A.useEffect)(()=>{var e,t;let r=(Object.values(t={utm_source:(e=new URLSearchParams(window.location.search)).get("utm_source")||void 0,utm_medium:e.get("utm_medium")||void 0,utm_campaign:e.get("utm_campaign")||void 0,utm_term:e.get("utm_term")||void 0,utm_content:e.get("utm_content")||void 0}).some(e=>void 0!==e)&&sessionStorage.setItem(m,JSON.stringify(t)),function(){try{let e=sessionStorage.getItem(m);return e?JSON.parse(e):null}catch(e){return null}}());r&&r&&"esports"===r.utm_source&&"liefx"===r.utm_medium&&(T({promoCode:"LIEFX"}),window.gtag&&window.gtag("event","liefx_traffic_detected",{event_category:"partnership",event_label:"esports_to_main_app",utm_source:r.utm_source,utm_medium:r.utm_medium,utm_campaign:r.utm_campaign,promo_code_set:"LIEFX"}))},[T]);let E=(0,F.cI)({resolver:(0,w.F)(k),mode:"onTouched",defaultValues:{departureAirport:U(null===(e=o.inputtedFlights[0])||void 0===e?void 0:e.departure)||void 0,destinationAirport:U(null===(t=o.inputtedFlights[0])||void 0===t?void 0:t.arrival)||void 0,hasConnectingFlights:S.hasConnectingFlights,flightDate:O}});(0,A.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("prefill"),r=e.get("dep"),n=e.get("arr");"true"===t&&r&&n&&(async()=>{try{let[e,t]=await Promise.all([(0,c.H)(r.toUpperCase()),(0,c.H)(n.toUpperCase())]),a=e.find(e=>e.iata===r.toUpperCase()),i=t.find(e=>e.iata===n.toUpperCase());if(a&&i){let e=X(a),t=X(i);_({inputtedFlights:[{date:null,departure:e,arrival:t}],selectedBookedFlights:[],selectedTakenFlights:[],problemFlight:null}),I({hasConnectingFlights:void 0}),E.setValue("departureAirport",a),E.setValue("destinationAirport",i),E.trigger(["departureAirport","destinationAirport"]);let r=window.location.pathname;window.history.replaceState({},document.title,r)}else console.warn("Could not find airport data for IATA codes")}catch(e){console.error("Error searching for airports:",e)}})()},[E,_,I]);let M=E.watch("hasConnectingFlights");function U(e){return(null==e?void 0:e.iata)?{id:e.id||0,name:e.name||"",iata:e.iata,icao:e.icao,jurisdiction:e.jurisdiction,continent:e.continent,iso_country:e.iso_country,iso_region:e.iso_region,longitude_deg:e.longitude_deg,latitude_deg:e.latitude_deg,timezone:e.timezone,location:e.location}:null}E.watch("departureAirport"),E.watch("destinationAirport"),(0,A.useEffect)(()=>{E.clearErrors("flightDate"),!0===M&&(Z(void 0),E.setValue("flightDate",void 0,{shouldDirty:!1,shouldTouch:!1}))},[M,E]),(0,A.useEffect)(()=>{let e=o.inputtedFlights[0],t=[];if(e){let r=U(e.departure),n=U(e.arrival);
1if(r&&(E.setValue("departureAirport",r),t.push("departureAirport")),n&&(E.setValue("destinationAirport",n),t.push("destinationAirport")),e.date){let r=(0,f.k)(e.date);E.setValue("flightDate",r),Z(r),t.push("flightDate")}else Z(void 0),E.setValue("flightDate",void 0,{shouldDirty:!1,shouldTouch:!1})}void 0!==S.hasConnectingFlights&&(E.setValue("hasConnectingFlights",S.hasConnectingFlights),t.push("hasConnectingFlights")),t.length>0&&E.trigger(t)},[E,o.inputtedFlights,S.hasConnectingFlights]);let X=e=>({id:e.id,name:e.name,iata:e.iata,icao:e.icao,jurisdiction:e.jurisdiction,continent:e.continent,iso_country:e.iso_country,iso_region:e.iso_region,latitude_deg:e.latitude_deg,longitude_deg:e.longitude_deg,timezone:e.timezone,location:e.location}),Y=e=>{var t;return S.hasConnectingFlights!==e&&(!1===e?o.inputtedFlights.length>1||o.selectedBookedFlights.length>0:(null===(t=o.inputtedFlights[0])||void 0===t?void 0:t.date)!==null)},B=e=>{Y(e)?(P(e),V(!0)):L(e)},L=e=>{if(E.setValue("hasConnectingFlights",e),I({hasConnectingFlights:e}),!1===e){let e=o.inputtedFlights[0];e&&_({inputtedFlights:[e],selectedBookedFlights:[],selectedTakenFlights:[],problemFlight:null}),Z(void 0),E.setValue("flightDate",void 0,{shouldDirty:!1,shouldTouch:!1})}else{let e=o.inputtedFlights[0];e&&(_({inputtedFlights:[{...e,date:null}],selectedBookedFlights:[],selectedTakenFlights:[],problemFlight:null}),Z(void 0),E.setValue("flightDate",void 0,{shouldDirty:!1,shouldTouch:!1}))}},W=e=>{if(void 0!==e.hasConnectingFlights&&I({hasConnectingFlights:e.hasConnectingFlights}),d.useItineraryDetailsStore.getState().setProblemFlight(null),d.useItineraryDetailsStore.getState().resetBookedFlights(),d.useItineraryDetailsStore.getState().resetTakenFlights(),e.departureAirport&&e.destinationAirport){let t={date:(0,f.X)(e.flightDate),departure:X(e.departureAirport),arrival:X(e.destinationAirport)},{updateInitialFlight:r}=d.useItineraryDetailsStore.getState();r(t)}};return(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)(a.ll,{}),(0,n.jsx)("div",{className:"space-y-2",children:(0,n.jsx)("h2",{className:"text-2xl font-bold text-foreground",children:"Hello! Let's find out if the airline owes you money."})}),(0,n.jsx)(y.l0,{...E,children:(0,n.jsxs)("form",{onSubmit:E.handleSubmit(e=>{W(e),e.hasConnectingFlights?r.push("/claim/journey-builder/connections"):r.push("/claim/journey-builder/select-flight")}),className:"space-y-6",onKeyDown:e=>{if("Enter"===e.key){let t=e.target,r=["button",'input[type="submit"]'].some(e=>"button"===e?"BUTTON"===t.tagName:'input[type="submit"]'===e&&"INPUT"===t.tagName&&"submit"===t.type),n="DIV"===t.tagName&&t.closest('[role="radiogroup"]');r||n||e.preventDefault()}},children:[(0,n.jsx)(y.Wi,{control:E.control,name:"departureAirport",render:e=>{var t,r;let{field:a}=e;return(0,n.jsxs)(y.xJ,{children:[(0,n.jsxs)(y.lX,{htmlFor:"departure",children:[(0,n.jsx)(i.Z,{}),"Departure Airport"]}),(0,n.jsx)(y.NI,{children:(0,n.jsx)(j.b,{id:"departure",value:(null===(t=a.value)||void 0===t?void 0:t.iata)||"",selectedAirport:a.value,onSelect:(e,t)=>{if(null===t){a.onChange(void 0),(0,h.j)();return}a.onChange(t),(0,h.j)(),t&&W({departureAirport:t,destinationAirport:E.getValues("destinationAirport"),flightDate:E.getValues("flightDate"),hasConnectingFlights:E.getValues("hasConnectingFlights")})},placeholder:"Search departure airport...",className:"w-full",excludedAirports:(null===(r=E.watch("destinationAirport"))||void 0===r?void 0:r.iata)?[E.watch("destinationAirport").iata]:[]})}),(0,n.jsx)(y.zG,{})]})}}),(0,n.jsx)(y.Wi,{control:E.control,name:"destinationAirport",render:e=>{var t,r;let{field:a}=e;return(0,n.jsxs)(y.xJ,{children:[(0,n.jsxs)(y.lX,{htmlFor:"arrival",children:[(0,n.jsx)(i.Z,{}),"Destination Airport"]}),(0,n.jsx)(y.NI,{children:(0,n.jsx)(j.b,{id:"arrival",value:(null===(t=a.value)||void 0===t?void 0:t.iata)||"",selectedAirport:a.value,onSelect:(e,t)=>{if(null===t){a.onChange(void 0),(0,h.j)();return}a.onChange(t),(0,h.j)(),t&&W({departureAirport:E.getValues("departureAirport"),destinationAirport:t,flightDate:E.getValues("flightDate"),hasConnectingFlights:E.getValues("hasConnectingFlights")})},placeholder:"Search destination airport...",className:"w-full",excludedAirports:(null===(r=E.watch("departureAirport"))||void 0===r?void 0:r.iata)?[E.watch("departureAirport").iata]:[]})}),(0,n.jsx)(y.zG,{})]})}}),(0,n.jsx)(y.Wi,{control:E.control,name:"hasConnectingFlights",render:e=>{let{field:t}=e;return(0,n.jsxs)(y.xJ,{children:[(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(y.lX,{className:"text-lg font-medium text-foreground",children:"When you originally booked your trip, did it include connecting flights?"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"We'd like to know about your original itinerary at the time of booking, not any changes the airline may have made later."})]}),(0,n.jsx)(y.NI,{children:(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:"p-4 border rounded-lg cursor-pointer transition-colors ".concat(!1===t.value?"border-primary bg-primary/5 text-primary":"border-border hover:bg-muted/50"),onClick:()=>B(!1),children:(0,n.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,n.jsx)("div",{className:"w-5 h-5 rounded-full border-2 flex items-center justify-center ".concat(!1===t.value?"border-primary bg-primary":"border-muted-foreground"),children:!1===t.value&&(0,n.jsx)("div",{className:"w-2 h-2 rounded-full bg-white"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-medium",children:"Direct Flight"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"One flight from departure to destination"})]})]})}),(0,n.jsx)("div",{className:"p-4 border rounded-lg cursor-pointer transition-colors ".concat(!0===t.value?"border-primary bg-primary/5 text-primary":"border-border hover:bg-muted/50"),onClick:()=>B(!0),children:(0,n.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,n.jsx)("div",{className:"w-5 h-5 rounded-full border-2 flex items-center justify-center ".concat(!0===t.value?"border-primary bg-primary":"border-muted-foreground"),children:!0===t.value&&(0,n.jsx)("div",{className:"w-2 h-2 rounded-full bg-white"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-medium",children:"Connecting Flights"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Multiple flights with connections/layovers"})]})]})})]})})]}),(0,n.jsx)(y.zG,{})]})}}),!1===M&&(0,n.jsx)(y.Wi,{control:E.control,name:"flightDate",render:e=>{let{field:t}=e;return(0,n.jsxs)(y.xJ,{children:[(0,n.jsxs)(y.lX,{children:[(0,n.jsx)(i.Z,{}),"Flight Date",(0,n.jsxs)(b.yK,{children:[(0,n.jsx)(b.$Q,{asChild:!0,children:(0,n.jsx)(N.Z,{className:"h-4 w-4 text-muted-foreground cursor-help"})}),(0,n.jsx)(b._x,{side:"top",className:"max-w-xs",children:(0,n.jsx)("p",{children:"When was your flight originally suppose to take off?"})})]})]}),(0,n.jsx)(y.NI,{children:(0,n.jsx)(v.M,{id:"date",value:O,onChange:e=>{Z(e),t.onChange(e),W({flightDate:e,departureAirport:E.getValues("departureAirport"),destinationAirport:E.getValues("destinationAirport"),hasConnectingFlights:E.getValues("hasConnectingFlights")})},disabled:g.kI})}),(0,n.jsx)(y.zG,{})]})}}),(0,n.jsx)("div",{className:"flex flex-col gap-4",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("div",{})," ",(0,n.jsxs)(x.z,{type:"submit",disabled:!E.formState.isValid,className:"flex items-center gap-2 w-full sm:w-auto",children:["Continue",(0,n.jsx)(D.Z,{className:"h-4 w-4"})]})]})})]})}),(0,n.jsx)(p.aR,{open:z,onOpenChange:V,children:(0,n.jsxs)(p._T,{children:[(0,n.jsxs)(p.fY,{children:[(0,n.jsx)(p.f$,{children:"Confirm Flight Type Change"}),(0,n.jsx)(p.yT,{children:!1===R?"Switching to a direct flight will remove any connecting flight information you've entered. This action cannot be undone.":"Switching to connecting flights will remove the flight date you've entered for your direct flight. This action cannot be undone."})]}),(0,n.jsxs)(p.xo,{children:[(0,n.jsx)(p.le,{onClick:()=>{V(!1),P(null)},children:"Cancel"}),(0,n.jsx)(p.OL,{onClick:()=>{null!==R&&L(R),V(!1),P(null)},children:"Continue & Reset Data"})]})]})})]})}},66729:function(e,t,r){r.d(t,{im:function(){return l},ll:function(){return i},uZ:function(){return o}});var n=r(27573),a=r(82182);function i(){return(0,n.jsx)(a.bZ,{children:(0,n.jsxs)(a.X,{children:["Check your compensation at no cost with our ",(0,n.jsx)("span",{className:"font-bold",children:"win or free"})," ","guarantee"]})})}function l(){return(0,n.jsx)(a.bZ,{children:(0,n.jsxs)(a.X,{children:["If we win, our fee is ",(0,n.jsx)("span",{className:"font-bold",children:"30% of the compensation amount"}),". If not, you don't pay anything."]})})}function o(){return(0,n.jsx)(a.bZ,{variant:"success",children:(0,n.jsx)(a.X,{children:"Based on the circumstances of your flight, it appears that you may have a valid claim under the regulations governing flight compensation."})})}},98624:function(e,t,r){r.d(t,{MA:function(){return l},kI:function(){return a},vx:function(){return i}});var n=r(96829);function a(e){let t=new Date,r=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0,0)),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0));return 0>Math.floor((r.getTime()-a.getTime())/n.Ix)}let i=e=>{var t,r;let n=new Date((null==e?void 0:e.length)&&e.length>1?(null===(t=e[1])||void 0===t?void 0:t.date)||Date.now():(null==e?void 0:null===(r=e[0])||void 0===r?void 0:r.date)||Date.now());return new Date(n.getTime()+6e4*n.getTimezoneOffset())},l=e=>{var t,r;return new Date((null==e?void 0:e.length)&&e.length>1?(null===(t=e[1])||void 0===t?void 0:t.date)||Date.now():(null==e?void 0:null===(r=e[0])||void 0===r?void 0:r.date)||Date.now())}},95731:function(e,t,r){r.d(t,{j:function(){return l}});var n=r(34587),a=r(63398),i=r(57059);let l=()=>{i.useItineraryDetailsStore.getState().reset(),n.w.getState().reset(),a.d.getState().reset()}},61581:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(59565).Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},43478:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(59565).Z)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},78327:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(59565).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},59344:function(e,t,r){r.d(t,{OL:function(){return p},_T:function(){return c},aR:function(){return s},f$:function(){return h},fY:function(){return f},le:function(){return x},xo:function(){return g},yT:function(){return m}});var n=r(27573),a=r(56969),i=r(7653),l=r(83803),o=r(56230);let s=a.fC;a.xz;let d=a.h_,u=i.forwardRef((e,t)=>
1{let{className:r,...i}=e;return(0,n.jsx)(a.aV,{className:(0,o.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...i,ref:t})});u.displayName=a.aV.displayName;let c=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsxs)(d,{children:[(0,n.jsx)(u,{}),(0,n.jsx)(a.VY,{ref:t,className:(0,o.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...i})]})});c.displayName=a.VY.displayName;let f=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};f.displayName="AlertDialogHeader";let g=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};g.displayName="AlertDialogFooter";let h=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsx)(a.Dx,{ref:t,className:(0,o.cn)("text-lg font-semibold",r),...i})});h.displayName=a.Dx.displayName;let m=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsx)(a.dk,{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...i})});m.displayName=a.dk.displayName;let p=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsx)(a.aU,{ref:t,className:(0,o.cn)((0,l.d)(),r),...i})});p.displayName=a.aU.displayName;let x=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsx)(a.$j,{ref:t,className:(0,o.cn)((0,l.d)({variant:"outline"}),"mt-2 sm:mt-0",r),...i})});x.displayName=a.$j.displayName},82182:function(e,t,r){r.d(t,{Cd:function(){return g},X:function(){return h},bZ:function(){return f}});var n=r(27573),a=r(21296),i=r(65517),l=r(7653),o=r(56230);let s=(0,i.j)("relative my-4 w-full rounded-lg px-7 py-3 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-1/2 [&>svg]:-translate-y-1/2 [&>svg]:h-5 [&>svg]:w-5 [&>svg~*]:pl-5",{variants:{variant:{default:"bg-blue-50 text-blue-700 [&>svg]:text-blue-700 dark:bg-blue-950/50 dark:text-blue-300 dark:[&>svg]:text-blue-300",info:"bg-blue-50 text-blue-700 [&>svg]:text-blue-700 dark:bg-blue-950/50 dark:text-blue-300 dark:[&>svg]:text-blue-300",success:"bg-green-50 text-green-700 [&>svg]:text-green-700 dark:bg-green-950/50 dark:text-green-300 dark:[&>svg]:text-green-300",warning:"bg-yellow-50 text-yellow-700 [&>svg]:text-yellow-400 dark:bg-yellow-950/50 dark:text-yellow-300 dark:[&>svg]:text-yellow-300",danger:"bg-red-50 text-red-700 [&>svg]:text-red-400 dark:bg-red-950/50 dark:text-red-300 dark:[&>svg]:text-red-300"},size:{sm:"text-sm",md:"text-md",lg:"py-4 text-lg",xl:"py-5 text-xl [&>svg]:h-6 [&>svg]:w-6"}},defaultVariants:{variant:"default",size:"md"}}),d={default:(0,n.jsx)(a.H4u,{}),info:(0,n.jsx)(a.H4u,{}),success:(0,n.jsx)(a.NhS,{}),warning:(0,n.jsx)(a.LPM,{}),danger:(0,n.jsx)(a.xrR,{})},u={default:"Notice",info:"Information",success:"Success",warning:"Warning",danger:"Danger"},c=l.createContext({variant:"default"}),f=l.forwardRef((e,t)=>{let{className:r,variant:a,size:i,icon:l,...u}=e,f=a?d[a]:d.default;return(0,n.jsx)(c.Provider,{value:{variant:null!=a?a:"default"},children:(0,n.jsxs)("div",{ref:t,role:"alert",className:(0,o.cn)(s({variant:a,size:i}),r),...u,children:[null!=l?l:f,u.children]})})});f.displayName="Alert";let g=l.forwardRef((e,t)=>{var r;let{className:a,variant:i,children:s,...d}=e,f=l.useContext(c),g=null!==(r=null!=i?i:f.variant)&&void 0!==r?r:"default";return(0,n.jsx)("h5",{ref:t,className:(0,o.cn)("mb-1 font-semibold leading-none tracking-tight",a),...d,children:null!=s?s:u[g]})});g.displayName="AlertTitle";let h=l.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,o.cn)("[&_p]:leading-relaxed",r),...a})});h.displayName="AlertDescription"},57177:function(e,t,r){r.d(t,{b:function(){return d}});var n=r(27573),a=r(67313),i=r(78327),l=r(7653),o=r(56230),s=r(98646);let d=(0,l.forwardRef)((e,t)=>{let{value:r,selectedAirport:d,onSelect:u,placeholder:c="Search airports...",emptyMessage:f="No airports found.",className:g,disabled:h=!1,id:m,maxResults:p=10,searchDelay:x=180,excludedAirports:v=[],...y}=e,{searchResults:j,isLoading:b,setSearchQuery:w,getAirportByValue:N}=(0,a.X)({maxResults:p,searchDelay:x}),D=j.filter(e=>{let t=N(e.value);return!t||!v.includes(t.iata)}),[C,A]=(0,l.useState)(!1);return(0,n.jsx)("div",{className:(0,o.cn)("relative",g),children:(0,n.jsx)(s.H,{ref:t,id:m,options:D,value:C?"":d?"".concat(d.name," 
1(").concat(d.iata,")"):"",onSelect:e=>{if(!e){A(!1),u("",null);return}let t=N(e);t&&!v.includes(t.iata)&&(A(!1),u(t.iata,t))},placeholder:c,emptyMessage:b?(0,n.jsxs)("div",{className:"flex items-center justify-center p-4",children:[(0,n.jsx)(i.Z,{className:"h-4 w-4 animate-spin mr-2"}),(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:"Searching airports..."})]}):f,className:"w-full",disabled:h,isDynamic:!0,onSearchChange:e=>{e.length>0&&A(!0),w(e)},isLoading:b,...y})})});d.displayName="SearchAirportInput"},80846:function(e,t,r){r.d(t,{$Q:function(){return j},TooltipProvider:function(){return u},TouchProvider:function(){return v},_v:function(){return g},_x:function(){return b},es:function(){return w},u:function(){return c},yK:function(){return y}});var n=r(27573),a=r(99819),i=r(7653),l=r(56230),o=r(58595);let s="cursor-pointer inline-flex items-center justify-center align-middle  ml-1 sm:ml-1.5 sm:mb-0.5",d="z-50 overflow-hidden rounded-md bg-popover\npx-3 py-1.5 text-sm text-popover-foreground shadow-md\nanimate-in fade-in-0 zoom-in-95\ndata-[state=closed]:animate-out data-[state=closed]:fade-out-0\ndata-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2\ndata-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2\ndata-[side=top]:slide-in-from-bottom-2 max-w-xs",u=a.zt,c=a.fC,f=i.forwardRef((e,t)=>{let{className:r,...i}=e;return(0,n.jsx)(a.xz,{ref:t,className:(0,l.cn)(s,r),...i})});f.displayName=a.xz.displayName;let g=i.forwardRef((e,t)=>{let{className:r,sideOffset:i=4,...o}=e;return(0,n.jsx)(a.VY,{ref:t,sideOffset:i,collisionPadding:8,className:(0,l.cn)(d,r),...o})});g.displayName=a.VY.displayName;let h=i.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(o.xo,{ref:t,className:(0,l.cn)(s,r),...a})});h.displayName="TooltipPopoverTrigger";let m=i.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...i}=e;return(0,n.jsx)(o.yk,{ref:t,sideOffset:a,collisionPadding:8,className:(0,l.cn)(d,r),...i})});m.displayName="TooltipPopoverContent";let p=(0,i.createContext)(void 0),x=()=>(0,i.useContext)(p),v=e=>{let[t,r]=(0,i.useState)();return(0,i.useEffect)(()=>{r(window.matchMedia("(pointer: coarse)").matches)},[]),(0,n.jsx)(p.Provider,{value:t,...e})},y=e=>x()?(0,n.jsx)(o.J2,{...e}):(0,n.jsx)(c,{...e}),j=e=>x()?(0,n.jsx)(h,{...e}):(0,n.jsx)(f,{...e}),b=e=>{let t=x(),{align:r,...a}=e,i="end"===r?"end":r,l="end"===r?void 0:r;return t?(0,n.jsx)(m,{align:i,...a}):(0,n.jsx)(g,{align:l,...a})},w=a.xz},56969:function(e,t,r){r.d(t,{$j:function(){return O},Dx:function(){return Z},VY:function(){return R},aU:function(){return P},aV:function(){return V},dk:function(){return E},fC:function(){return I},h_:function(){return z},xz:function(){return T}});var n=r(7653),a=r(20379),i=r(18497),l=r(11737),o=r(2467),s=r(92721),d=r(27573),u="AlertDialog",[c,f]=(0,a.b)(u,[l.p8]),g=(0,l.p8)(),h=e=>{let{__scopeAlertDialog:t,...r}=e,n=g(t);return(0,d.jsx)(l.fC,{...n,...r,modal:!0})};h.displayName=u;var m=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=g(r);return(0,d.jsx)(l.xz,{...a,...n,ref:t})});m.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:t,...r}=e,n=g(t);return(0,d.jsx)(l.h_,{...n,...r})};p.displayName="AlertDialogPortal";var x=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=g(r);return(0,d.jsx)(l.aV,{...a,...n,ref:t})});x.displayName="AlertDialogOverlay";var v="AlertDialogContent",[y,j]=c(v),b=(0,s.sA)("AlertDialogContent"),w=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:a,...s}=e,u=g(r),c=n.useRef(null),f=(0,i.e)(t,c),h=n.useRef(null);return(0,d.jsx)(l.jm,{contentName:v,titleName:N,docsSlug:"alert-dialog",children:(0,d.jsx)(y,{scope:r,cancelRef:h,children:(0,d.jsxs)(l.VY,{role:"alertdialog",...u,...s,ref:f,onOpenAutoFocus:(0,o.M)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=h.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,d.jsx)(b,{children:a}),(0,d.jsx)(S,{contentRef:c})]})})})});w.displayName=v;var N="AlertDialogTitle",D=n.forwardRef((e,t)=>
1{let{__scopeAlertDialog:r,...n}=e,a=g(r);return(0,d.jsx)(l.Dx,{...a,...n,ref:t})});D.displayName=N;var C="AlertDialogDescription",A=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=g(r);return(0,d.jsx)(l.dk,{...a,...n,ref:t})});A.displayName=C;var F=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,a=g(r);return(0,d.jsx)(l.x8,{...a,...n,ref:t})});F.displayName="AlertDialogAction";var _="AlertDialogCancel",k=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=j(_,r),o=g(r),s=(0,i.e)(t,a);return(0,d.jsx)(l.x8,{...o,...n,ref:s})});k.displayName=_;var S=e=>{let{contentRef:t}=e,r="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(C,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return n.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},I=h,T=m,z=p,V=x,R=w,P=F,O=k,Z=D,E=A},65517:function(e,t,r){r.d(t,{j:function(){return l}});var n=r(57908);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.W,l=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:o}=t,s=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let i=a(t)||a(n);return l[e][i]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,s,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...d}[t]):({...o,...d})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},6347:function(e,t,r){r.d(t,{k:function(){return a}});var n=r(67876);function a(e,t,r){return(0,n.E)(e,-t,r)}},32725:function(e,t,r){r.d(t,{e:function(){return a}});var n=r(36170);function a(e,t,r){return(0,n.B)(e,-t,r)}}}]);

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.