1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{19229:(e,t,i)=>{"use strict";i.d(t,{O:()=>n});let n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllFlights"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allFlights"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"aircraftIcon"}},{kind:"Field",name:{kind:"Name",value:"ids"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icao"}},{kind:"Field",name:{kind:"Name",value:"iata"}},{kind:"Field",name:{kind:"Name",value:"ident"}}]}},{kind:"Field",name:{kind:"Name",value:"lastPosition"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"latitude"}},{kind:"Field",name:{kind:"Name",value:"longitude"}},{kind:"Field",name:{kind:"Name",value:"clock"}},{kind:"Field",name:{kind:"Name",value:"gs"}},{kind:"Field",name:{kind:"Name",value:"heading"}},{kind:"Field",name:{kind:"Name",value:"altitude"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]}}]}}]}},24834:(e,t,i)=>{"use strict";i.d(t,{ProductCardBasic:()=>s});var n=i(54568),a=i(99680);i(7620);var l=i(57283);let s=e=>{let t,i,s,r,o,d=(0,a.c)(13),{data:c}=e,{heading:u,subHeading:m,link:h,linkText:p}=c;d[0]!==h||d[1]!==p?(t={enabled:!0,url:h,text:p},d[0]=h,d[1]=p,d[2]=t):t=d[2];let v=t;return d[3]!==u?(i=(0,n.jsx)("h2",{className:"text-p-900 group-hover:text-neutral text-3xl font-medium transition-all duration-300 ease-in-out",children:u}),d[3]=u,d[4]=i):i=d[4],d[5]!==m?(s=m&&(0,n.jsx)("div",{className:"text-p-700 group-hover:text-neutral grid min-h-0 transition-all duration-300 ease-in-out group-hover:opacity-100 sm:grid-rows-[0fr] sm:opacity-0 sm:group-hover:grid-rows-[1fr]",children:(0,n.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,n.jsx)("h3",{className:"py-[8px] text-sm",children:m})})}),d[5]=m,d[6]=s):s=d[6],d[7]!==v?(r=(0,n.jsx)(l.n$,{data:v,theme:"group-hover:text-neutral transition-all duration-300 ease-in-out text-secondary"}),d[7]=v,d[8]=r):r=d[8],d[9]!==i||d[10]!==s||d[11]!==r?(o=(0,n.jsx)("div",{"data-testid":"product-card-basic",className:"bg-neutral aspect-h-1 aspect-w-2 sm:aspect-none hover:bg-secondary hover:text-neutral group group flex items-center overflow-hidden px-[24px] py-[48px] text-left transition-all duration-300 ease-in-out sm:relative sm:h-full md:px-[48px]",children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[i,s,r]})}),d[9]=i,d[10]=s,d[11]=r,d[12]=o):o=d[12],o}},35753:(e,t,i)=>{"use strict";i.d(t,{Mq:()=>n,nR:()=>a});var n=function(e){return e.Airliner="AIRLINER",e.Balloon="BALLOON",e.Cessna="CESSNA",e.Heavy2E="HEAVY2E",e.Heavy4E="HEAVY4E",e.Helicopter="HELICOPTER",e.Hiperf="HIPERF",e.JetNonswept="JET_NONSWEPT",e.JetSwept="JET_SWEPT",e.TwinLarge="TWIN_LARGE",e.TwinSmall="TWIN_SMALL",e.Unknown="UNKNOWN",e}({}),a=function(e){return e.Arrived="ARRIVED",e.Cancelled="CANCELLED",e.Enroute="ENROUTE",e.Fru="FRU",e.Scheduled="SCHEDULED",e}({})},44538:(e,t,i)=>{"use strict";i.d(t,{default:()=>n});let n=(0,i(12417).default)(()=>Promise.resolve().then(i.bind(i,95866)),{loadableGenerated:{webpack:()=>[95866]},ssr:!1})},71267:(e,t,i)=>{"use strict";i.d(t,{Carousel:()=>s});var n=i(54568),a=i(99680);i(7620);var l=i(57283);let s=e=>{let t,i,l=(0,a.c)(4),{props:s}=e;return l[0]!==s.photos?(t=s.photos.map(r),l[0]=s.photos,l[1]=t):t=l[1],l[2]!==t?(i=(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"carousel carousel-center h-[300px] space-x-4 ",children:t})}),l[2]=t,l[3]=i):i=l[3],i};function r(e,t){return(0,n.jsx)("div",{className:"carousel-item",children:(0,n.jsx)(l.hn,{alt:e.alt,width:"400",height:"300",src:e.src,className:"min-h-full object-cover"})},t)}},81753:(e,t,i)=>{"use strict";i.d(t,{e:()=>d});var n=i(99680),a=i(44079),l=i(4584),s=i(7620),r=i(68482);let o=(0,r.createServerReference)("00331dbc1f4ff8c91c71543e439390cf84012e73e5",r.callServer,void 0,r.findSourceMapURL,"getTestInfo"),d=()=>
1{let e,t,i=(0,n.c)(5),[r,d]=(0,s.useState)(void 0),c=(0,l.wV)();if(i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{(async()=>{d(await o())})()},t=[],i[0]=e,i[1]=t):(e=i[0],t=i[1]),(0,s.useEffect)(e,t),!r)return c;{let e,{testJwt:t,testId:n}=r;if(console.log(t),t&&n){let e;return i[2]!==n?(e={status:a.Ph.AUTHENTICATED,data:{userId:n,expiry:9e11}},i[2]=n,i[3]=e):e=i[3],e}return i[4]===Symbol.for("react.memo_cache_sentinel")?(e={status:a.Ph.UNAUTHENTICATED,data:null},i[4]=e):e=i[4],e}}},86197:(e,t,i)=>{Promise.resolve().then(i.bind(i,71267)),Promise.resolve().then(i.bind(i,44538)),Promise.resolve().then(i.bind(i,95866)),Promise.resolve().then(i.bind(i,24834)),Promise.resolve().then(i.bind(i,90933)),Promise.resolve().then(i.bind(i,18143)),Promise.resolve().then(i.bind(i,1125)),Promise.resolve().then(i.bind(i,52340)),Promise.resolve().then(i.bind(i,15533)),Promise.resolve().then(i.bind(i,94986)),Promise.resolve().then(i.bind(i,79961)),Promise.resolve().then(i.bind(i,73945)),Promise.resolve().then(i.bind(i,40356)),Promise.resolve().then(i.bind(i,60850)),Promise.resolve().then(i.bind(i,97332)),Promise.resolve().then(i.bind(i,33451)),Promise.resolve().then(i.bind(i,44515)),Promise.resolve().then(i.bind(i,30052)),Promise.resolve().then(i.bind(i,26584)),Promise.resolve().then(i.bind(i,62328)),Promise.resolve().then(i.bind(i,93640)),Promise.resolve().then(i.bind(i,49211)),Promise.resolve().then(i.bind(i,35619)),Promise.resolve().then(i.bind(i,3444)),Promise.resolve().then(i.bind(i,43907)),Promise.resolve().then(i.bind(i,29512)),Promise.resolve().then(i.bind(i,79240)),Promise.resolve().then(i.bind(i,27706)),Promise.resolve().then(i.bind(i,57324)),Promise.resolve().then(i.bind(i,99246)),Promise.resolve().then(i.bind(i,60250)),Promise.resolve().then(i.bind(i,59996)),Promise.resolve().then(i.bind(i,60674)),Promise.resolve().then(i.bind(i,98384)),Promise.resolve().then(i.bind(i,3764)),Promise.resolve().then(i.bind(i,85580)),Promise.resolve().then(i.bind(i,63935)),Promise.resolve().then(i.bind(i,5704)),Promise.resolve().then(i.bind(i,94226)),Promise.resolve().then(i.bind(i,32672)),Promise.resolve().then(i.bind(i,54188)),Promise.resolve().then(i.bind(i,77997)),Promise.resolve().then(i.bind(i,26905)),Promise.resolve().then(i.bind(i,87440)),Promise.resolve().then(i.t.bind(i,59007,23)),Promise.resolve().then(i.t.bind(i,10360,23)),Promise.resolve().then(i.t.bind(i,92894,23))},90933:(e,t,i)=>{"use strict";i.d(t,{SignUpAdvertisement:()=>c});var n=i(54568),a=i(99680),l=i(59007),s=i.n(l),r=i(49442),o=i(4584),d=i(81753);let c=()=>{let e=(0,a.c)(16),t=(0,r.A)();if((0,d.e)().status===o.Ph.UNAUTHENTICATED){let i,a,l,r,o,d,c;return e[0]!==t?(i=t.formatMessage({defaultMessage:"Customize your tracking.",description:"The headline for the account signup page. Talks about personalizing the experience",id:"MWkmKv"}),e[0]=t,e[1]=i):i=e[1],e[2]!==i?(a=(0,n.jsx)("h2",{className:"text-neutral text-left text-xl font-medium",children:i}),e[2]=i,e[3]=a):a=e[3],e[4]!==t?(l=t.formatMessage({defaultMessage:"Create your free FlightAware account and unlock real-time tracking, custom alerts, and more.",description:"The sign up description. Includes the benefits of signing up",id:"Ob1LAW"}),e[4]=t,e[5]=l):l=e[5],e[6]!==l?(r=(0,n.jsx)("p",{className:"text-neutral text-left text-sm",children:l}),e[6]=l,e[7]=r):r=e[7],e[8]!==t?(o=t.formatMessage({defaultMessage:"Sign up",description:"The text for the sign up button",id:"kZHBxF"}),e[8]=t,e[9]=o):o=e[9],e[10]!==o?(d=(0,n.jsx)("div",{className:"left-0 lg:right-0",children:(0,n.jsx)(s(),{href:"https://login.flightaware.com/signup",className:"btn btn-primary w-[77px] pl-0 pr-0 text-base lg:float-right ",children:o})}),e[10]=o,e[11]=d):d=e[11],e[12]!==a||e[13]!==r||e[14]!==d?(c=(0,n.jsx)("div",{className:"bg-p-900 w-full lg:px-44",children:(0,n.jsxs)("div",{className:"border-b-p-800 mx-auto grid w-full grid-cols-1 gap-y-2 border-b-[.5px] px-[16px] pb-[41px] pt-[40px] lg:max-w-[1088px] lg:grid-cols-3 lg:grid-cols-[2fr_2fr_1fr] lg:px-0","data-testid":"sign-up-section",children:[a,r,d]})}),e[12]=a,e[13]=r,e[14]=d,e[15]=c):c=e[15],c}}},95866:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>ea}
1);var n=i(54568),a=i(7620),l=i(99680),s=i(19e3),r=i(32166),o=i(54491);let d=(0,r.v)((0,o.lt)((0,o.kg)({searchOpen:!1,searchVisible:!0,searchBackgroundVisible:!1,showSearchSuggestions:!1},e=>({openSearch:()=>e(()=>({searchOpen:!0})),closeSearch:()=>e(()=>({searchOpen:!1,searchBackgroundVisible:!1})),setSearchVisible:t=>e(()=>({searchVisible:t})),setSearchBackgroundVisible:t=>e(()=>({searchBackgroundVisible:t})),setShowSearchSuggestions:t=>e(()=>({showSearchSuggestions:t}))})),{name:"search-store"}));var c=i(74689);let u=e=>{let t,i,s=(0,l.c)(4),{children:r}=e,[o,d]=(0,a.useState)(!1),c=(0,a.useRef)(null);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{var e,t;(null!=(t=null==c||null==(e=c.current)?void 0:e.innerText)?t:"").length>6&&d(!0)},s[0]=t):t=s[0],(0,a.useEffect)(t);let u="".concat(o?"w-[48px] overflow-x-hidden text-ellipsis whitespace-nowrap align-bottom":""," text-p-400 border-p-700/50 inline-block rounded-[3px] border px-1 py-0.5 text-xs uppercase leading-none");return s[1]!==r||s[2]!==u?(i=(0,n.jsx)("span",{className:u,ref:c,children:r}),s[1]=r,s[2]=u,s[3]=i):i=s[3],i};var m=i(59007),h=i.n(m);let p=e=>{let t,i,a,s,r,o,d=(0,l.c)(19),{airportLink:c,result:m,query:p}=e,v="".concat(p?"text-p-500":"text-p-300"," text-p-300 text-sm");return d[0]!==p||d[1]!==m.description?(t=(0,n.jsx)(g,{substringToHighlight:p,children:m.description}),d[0]=p,d[1]=m.description,d[2]=t):t=d[2],d[3]!==v||d[4]!==t?(i=(0,n.jsx)("h3",{className:v,children:t}),d[3]=v,d[4]=t,d[5]=i):i=d[5],d[6]!==p||d[7]!==m.iata?(a=m.iata&&(0,n.jsx)("li",{className:"mr-0.5 inline-block last:mr-0",children:(0,n.jsx)(u,{children:(0,n.jsx)(g,{substringToHighlight:p,children:m.iata})})}),d[6]=p,d[7]=m.iata,d[8]=a):a=d[8],d[9]!==p||d[10]!==m.icao?(s=m.icao&&(0,n.jsx)("li",{className:"mr-0.5 inline-block last:mr-0",children:(0,n.jsx)(u,{children:(0,n.jsx)(g,{substringToHighlight:p,children:m.icao})})}),d[9]=p,d[10]=m.icao,d[11]=s):s=d[11],d[12]!==a||d[13]!==s?(r=(0,n.jsxs)("ul",{className:"flex w-28 flex-shrink-0 text-[0] outline-none",children:[a,s]}),d[12]=a,d[13]=s,d[14]=r):r=d[14],d[15]!==c||d[16]!==i||d[17]!==r?(o=(0,n.jsxs)(h(),{href:c,className:"group flex cursor-pointer flex-row-reverse justify-end outline-none last:mb-0",children:[i,r]}),d[15]=c,d[16]=i,d[17]=r,d[18]=o):o=d[18],o},v=e=>{let t,i,a,s,r=(0,l.c)(13),{operatorLink:o,result:d,query:c}=e,m="".concat(c?"text-p-500":"text-p-300"," text-p-300 text-sm");return r[0]!==c||r[1]!==d.description?(t=(0,n.jsx)(g,{substringToHighlight:c,children:d.description}),r[0]=c,r[1]=d.description,r[2]=t):t=r[2],r[3]!==m||r[4]!==t?(i=(0,n.jsx)("h3",{className:m,children:t}),r[3]=m,r[4]=t,r[5]=i):i=r[5],r[6]!==c||r[7]!==d.ident?(a=(0,n.jsx)("ul",{className:"flex w-28 flex-shrink-0 text-[0] outline-none",children:(0,n.jsx)("li",{className:"mr-0.5 inline-block last:mr-0",children:(0,n.jsx)(u,{children:(0,n.jsx)(g,{substringToHighlight:c,children:d.ident})})})}),r[6]=c,r[7]=d.ident,r[8]=a):a=r[8],r[9]!==o||r[10]!==i||r[11]!==a?(s=(0,n.jsxs)(h(),{href:o,className:"group flex cursor-pointer flex-row-reverse justify-end outline-none last:mb-0",children:[i,a]}),r[9]=o,r[10]=i,r[11]=a,r[12]=s):s=r[12],s},x=e=>{let t,i,a,s,r=(0,l.c)(13),{flightLink:o,result:d,query:c}=e,m="".concat(c?"text-p-500":"text-p-300"," text-p-300 text-sm");return r[0]!==c||r[1]!==d.description?(t=(0,n.jsx)(g,{substringToHighlight:c,children:d.description}),r[0]=c,r[1]=d.description,r[2]=t):t=r[2],r[3]!==m||r[4]!==t?(i=(0,n.jsx)("h3",{className:m,children:t}),r[3]=m,r[4]=t,r[5]=i):i=r[5],r[6]!==c||r[7]!==d.ident?(a=(0,n.jsx)("ul",{className:"flex w-28 flex-shrink-0 text-[0] outline-none",children:(0,n.jsx)("li",{className:"mr-0.5 inline-block last:mr-0",children:(0,n.jsx)(u,{children:(0,n.jsx)(g,{substringToHighlight:c,children:d.ident})})})}),r[6]=c,r[7]=d.ident,r[8]=a):a=r[8],r[9]!==o||r[10]!==i||r[11]!==a?(s=(0,n.jsxs)(h(),{href:o,className:"group flex cursor-pointer flex-row-reverse justify-end outline-none last:mb-0",children:[i,a]}),r[9]=o,r[10]=i,r[11]=a,r[12]=s):s=r[12],s},g=e=>{let{children:t,substringToHighlight:i}=e,l=RegExp(i&&i.length&&i.replace(/[^a-zA-Z0-9\s\-/]/g,""),"gi"),s=[...t.matchAll(l)],r=t.split(l);return 1===r.length?r[0]:r.map((e,t)=>t<r.length-1?(0,n.jsxs)(a.Fragment,{children:[e,(0,n.jsx)("span",{className:"text-neutral fond-bold",children:s[t]})]},t):(0,n.jsx)(a.Fragment,{children:e},t))};var f=i(8257),k=i(57283),b=i(49442),N=i(3106);let w=e=>{let t,i=(0,l.c)(8),{title:a,query:s,results:r,ref:o,globe:u}=e,{searchOpen:m}=d(),h=(0,b.A)();if(!m){let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(n.Fragment,{}),i[0]=e):e=i[0],e}return i[1]!==u||i[2]!==h||i[3]!==s||i[4]!==o||i[5]!==r||i[6]!==a?(t=r?(0,n.jsxs)("div",{className:(0,
1c.A)("bg-p-900 text-neutral z-[1001] mt-2 py-6 sm:rounded-3xl",u&&"sm:[box-shadow:15px_15px_#000e28aa]"),"data-testid":"search-results",ref:o,children:[(0,n.jsxs)("div",{className:"align-items-center mb-4 flex w-full text-xs sm:px-6",children:[""!==a&&(0,n.jsx)("h2",{className:"mr-auto text-left font-bold uppercase",children:a}),(0,n.jsx)(k.n$,{data:{enabled:!0,text:h.formatMessage({description:"call to action for search by route",defaultMessage:"Search by route",id:"Search by route"}),url:"https://www.flightaware.com/live/findflight/"},theme:"!min-h-[0px] !pr-0"})]}),0===r.length?(0,n.jsxs)("p",{className:"text-p-300 text-center text-sm",children:[(0,n.jsx)(f.A,{defaultMessage:"We didn't find any results for your query.",id:"We didn't find any results for your query.",description:"Message that a search returned no results"}),(0,n.jsx)(k.n$,{data:{enabled:!0,text:h.formatMessage({description:"Call to action for using the Flight Finder page",defaultMessage:"Try using the Flight Finder",id:"Try using the Flight Finder"}),url:"https://www.flightaware.com/live/findflight/"},theme:"pl-1 !inline [&>div]:inline"})]}):(0,n.jsx)("ul",{className:"max-h-[calc(100vh_-300px)] overflow-y-auto text-left sm:max-h-[calc(100vh_-_35rem)]",children:r.map((e,t)=>{switch((0,N.s9)(e)){case"airport":{let i="https://www.flightaware.com/live/airport/"+(e.icao&&""!==e.icao?e.icao:e.iata&&""!==e.iata?e.iata:"UNKNOWN");return(0,n.jsx)("li",{className:"mb-2 rounded-[3px] py-2 hover:bg-white/5 has-[:focus-visible]:bg-white/5 sm:px-6","data-testid":"search-result",children:(0,n.jsx)(p,{airportLink:i,result:e,query:s})},t)}case"flight":{let i="https://www.flightaware.com/live/flight/".concat(e.ident);return(0,n.jsx)("li",{className:"mb-2 rounded-[3px] py-2 hover:bg-white/5 has-[:focus-visible]:bg-white/5 sm:px-6","data-testid":"search-result",children:(0,n.jsx)(x,{flightLink:i,result:e,query:s})},t)}case"operator":{let i="https://www.flightaware.com/live/fleet/".concat(e.ident);return(0,n.jsx)("li",{className:"mb-2 rounded-[3px] py-2 hover:bg-white/5 has-[:focus-visible]:bg-white/5 sm:px-6","data-testid":"search-result",children:(0,n.jsx)(v,{operatorLink:i,result:e,query:s})},t)}default:return(0,n.jsx)(n.Fragment,{})}})})]}):null,i[1]=u,i[2]=h,i[3]=s,i[4]=o,i[5]=r,i[6]=a,i[7]=t):t=i[7],t},j=[{description:"Hartsfield-Jackson Intl Airport (Atlanta)",icao:"KATL",iata:"ATL",ops:""},{description:"Live Southwest Flight Status",icon:"",ident:"SWA",link:"/live/fleet/swa",type:"fleet"},{description:"Chicago O'Hare Intl Airport",icao:"KORD",iata:"ORD",ops:""},{description:"Live American Airlines Flight Status",icon:"",ident:"AAL",link:"/live/fleet/aal",type:"fleet"},{description:"Dallas-Fort Worth Intl Airport",icao:"KDFW",iata:"DFW",ops:""},{description:"Live Delta Flight Status",icon:"",ident:"DAL",link:"/live/fleet/dal",type:"fleet"},{description:"Denver Intl Airport",icao:"KDEN",iata:"DEN",ops:""},{description:"Live United Flight Status",icon:"",ident:"UAL",link:"/live/fleet/ual",type:"fleet"},{description:"Harry Reid Intl Airport (Las Vegas)",icao:"KLAS",iata:"LAS",ops:""},{description:"Live Ryanair Flight Status",icon:"",ident:"RYR",link:"/live/fleet/ryr",type:"fleet"},{description:"Charlotte/Douglas Intl Airport",icao:"KCLT",iata:"CLT",ops:""},{description:"Live Turkish Airlines Flight Status",icon:"",ident:"THY",link:"/live/fleet/thy",type:"fleet"}];var S=i(34336),y=i(16833);function F(){document.body.style.overflowY="scroll"}let A=e=>{let{searchProps:t,globe:i}=e,[r,o,u,m]=(0,s.useSearchQuery)({appName:"homepage",isFallback:!1}),{setSearchBackgroundVisible:h,showSearchSuggestions:p,setShowSearchSuggestions:v,openSearch:x,closeSearch:g,searchOpen:f}=d(),{placeholder:A}=t,[I,T]=(0,a.useState)(""),[E,P]=(0,a.useState)(!1),L=(0,a.useRef)(null),C=(0,a.useRef)(null);!function(e){let t,i,n=(0,l.c)(3);n[0]!==e?(t=()=>{if(document&&document.body)return document.body.style.overflowY=e?"hidden":"scroll",F},i=[e],n[0]=e,n[1]=t,n[2]=i):(t=n[1],i=n[2]),(0,a.useEffect)(t,i)}(f);let _=(0,a.useRef)(null),M=(0,b.A)(),H=(0,S.useRouter)(),O=()=>{var e;null==(e=_.current)||e.click()};(0,a.useEffect)(()=>{let e=e=>{var t;(null==(t=L.current)?void 0:t.contains(e.target))||O()},t=e=>{e.preventDefault(),C.current&&"Escape"===e.key&&O(),"Enter"===e.key&&P(!0)};return window.addEventListener("click",e),window.addEventListener("keyup",t),()=>{window.removeEventListener("click",e),window.removeEventListener("keyup",t)}},[]),(0,a.useEffect)(()=>
1{if(E&&u){let e="/",t=null;if(0===r.length?t=j[0]:r.length>0&&u.length>0&&(t=u[0]),t)switch((0,N.s9)(t)){case"airport":{let i=t;e="https://www.flightaware.com/live/airport/"+(i.icao&&""!==i.icao?i.icao:i.iata&&""!==i.iata?i.iata:"UNKNOWN");break}case"flight":{let i=t;e="https://www.flightaware.com/live/flight/".concat(i.ident);break}case"operator":{let i=t;e="https://www.flightaware.com/live/fleet/".concat(i.ident)}}else e="https://www.flightaware.com/search/".concat(r);H.push(e)}},[E,r,u]);let D=(0,n.jsx)("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",children:(0,n.jsx)("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),R=(0,n.jsx)("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",className:p?"":"hidden",children:(0,n.jsx)("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),W=(0,n.jsxs)("div",{className:(0,c.A)("input-md bg-neutral focus-within:border-neutral group relative z-[101] mx-auto mt-6 flex h-[48px] w-full items-center gap-3 rounded-full border-[.5px] border-white/0 sm:h-[64px]",i&&"sm:[box-shadow:15px_15px_#000e28aa]"),onSubmit:e=>{e.preventDefault()},children:[(0,n.jsx)("div",{className:"text-primary/65 group-focus-within:text-primary",children:D}),(0,n.jsxs)("form",{className:"group mx-auto flex grow items-center gap-3",children:[(0,n.jsx)("input",{type:"text",className:"text-primary h-full grow bg-transparent text-base outline-none",onChange:e=>{let t=e.target.value;o(t),T(t)},value:I,spellCheck:"false","data-testid":"search-input"}),""==I&&(0,n.jsx)(k.BW,{phrases:A.phrases,className:"text-p-600 pointer-events-none absolute bg-transparent text-base outline-none"}),(0,n.jsx)("button",{type:"reset",ref:_,className:"".concat(p?"":"hidden"," text-primary/65 group-focus-within:inline"),onClick:e=>{e.currentTarget.focus(),e.currentTarget.blur(),v(!1),h(!1),T(""),g(),m()},children:R})]}),(0,n.jsx)("div",{className:"absolute bottom-[-56px] right-0 block"})]});return(0,n.jsx)("section",{"data-testid":"search",className:(0,c.A)("pointer-events-none static z-50",!f&&"mx-[16px] sm:mx-0"),onFocus:()=>{u||v(!0),x(),window&&window.innerWidth<640&&y.un&&setTimeout(function(){var e;null==(e=window)||e.scroll({top:-1,left:0,behavior:"smooth"})},150)},onBlur:()=>{u&&h(!0)},children:(0,n.jsxs)("div",{className:(0,c.A)("pointer-events-auto",f&&"bg-p-900 absolute top-0 m-0 h-screen w-screen px-4 sm:static sm:w-full sm:bg-transparent sm:p-0"),ref:L,children:[W,u?(0,n.jsx)(w,{title:u.length?M.formatMessage({defaultMessage:"Results",id:"ckXmWh",description:"search result title"}):"",results:u,query:r,ref:C,globe:i}):p&&(0,n.jsx)(w,{title:M.formatMessage({defaultMessage:"Explore Suggestions",id:"explore suggestions",description:"search result title for explore suggestions for when we do not have results yet"}),results:j,query:"",ref:C,globe:i})]})})};i(94226);var I=i(32672);i(54188),i(35645),i(40459),i(40459),i(5704),i(64755);let T=e=>{let t,i,a,s=(0,l.c)(6),{heroBackgroundImage:r}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,n.jsx)("path",{d:"M9.41325 3.33333L10.6333 4.66667H13.3333V12.6667H2.66659V4.66667H5.36659L6.58659 3.33333H9.41325ZM9.99992 2H5.99992L4.77992 3.33333H2.66659C1.93325 3.33333 1.33325 3.93333 1.33325 4.66667V12.6667C1.33325 13.4 1.93325 14 2.66659 14H13.3333C14.0666 14 14.6666 13.4 14.6666 12.6667V4.66667C14.6666 3.93333 14.0666 3.33333 13.3333 3.33333H11.2199L9.99992 2ZM7.99992 6.66667C9.09992 6.66667 9.99992 7.56667 9.99992 8.66667C9.99992 9.76667 9.09992 10.6667 7.99992 10.6667C6.89992 10.6667 5.99992 9.76667 5.99992 8.66667C5.99992 7.56667 6.89992 6.66667 7.99992 6.66667ZM7.99992 5.33333C6.15992 5.33333 4.66659 6.82667 4.66659 8.66667C4.66659 10.5067 6.15992 12 7.99992 12C9.83992 12 11.3333 10.5067 11.3333 8.66667C11.3333 6.82667 9.83992 5.33333 7.99992 5.33333Z",fill:"white"})}),s[0]=t):t=s[0],s[1]!==r.owner?(i=(0,n.jsxs)("span",{className:"relative top-[0.5px] text-sm",children:["Photo by ",r.owner]}),s[1]=r.owner,s[2]=i):i=s[2],s[3]!==r.fa_link||s[4]!==i?(a=(0,n.jsxs)("a",{href:r.fa_link,target:"_blank",className:"bg-p-900/60 absolute bottom-[32px] right-[33px] z-[101] flex h-[32px] w-fit items-center gap-1.5 rounded-[3px] p-[6px] px-[10px] text-white",children:[t,i]}),s[3]=r.fa_link,s[4]=i,s[5]=a):a=s[5],a};var E=i(75499),P=i(55889),L=i.n(P),C=i(63001),_=i.n(C),M=i(4992),H=i.n(M),O=i(12417);let D=(0,O.default)(()=>i.e(4180).then(i.bind(i,4180)),{loadableGenerated:{webpack:()=>[4180]},ssr:!1}),R=(0,O.default)(()=>i.e(8038).then(i.bind(i,28038)),{loadableGenerated:{webpack:()=>[28038]},ssr:!1}),W=e=>{let t,i,a,s=(0,l.c)(7),{className:r,globeData:o,globeTakeover:d}=e;return s[0]!==o||s[1]!==d?(t=(0,n.jsx)(D,{globeData:o,globeTakeover:d}),s[0]=o,s[1]=d,s[2]=t):t=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(R,{}),s[3]=i):i=s[3],s[4]!==r||s[5]!==t?(a=(0,n.jsxs)("div",{className:r,children:[t,i]}),s[4]=r,s[5]=t,s[6]=a):a=s[6],a};L().extend(H()),L().extend(_());let z=e=>{let t,i=(0,l.c)(6),{desktopTakeover:a,fallbackImage:s,globe:r,globeData:o,globeTakeover:d}=e;if(i[0]!==a||i[1]!==s||i[2]!==r||i[3]!==o||i[4]!==d){var c,u;t=(null==a?void 0:a.heroSkin)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.default,{quality:90,fill:!0,src:null==a?void 0:a.heroSkin,alt:"hero background",className:"absolute h-[calc(100vh-64px)] min-h-[300px] w-full bg-cover object-cover"}),(null==a?void 0:a.heroLogo)&&(0,n.jsx)(E.default,{quality:75,src:a.heroLogo,className:"relative top-[32px] mx-auto hidden sm:absolute sm:right-[24px] sm:flex",width:null!=(c=a.heroLogoWidth)?c:144,height:null!=(u=a.heroLogoHeight)?u:28,alt:"takeover logo","data-testid":"takeover-logo-desktop"})]}):r?(0,n.jsx)("div",{"data-testid":"desktop-hero-globe",children:(0,n.jsx)(W,{className:"absolute h-[200vh] min-h-[300px] w-full bg-cover object-cover",globeData:o,globeTakeover:d})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(E.default,{quality:90,fill:!0,src:s.path,alt:"hero background",className:"absolute h-[calc(100vh-64px)] min-h-[300px] w-full select-none bg-cover object-cover"}
1),(0,n.jsx)(T,{heroBackgroundImage:s})]}),i[0]=a,i[1]=s,i[2]=r,i[3]=o,i[4]=d,i[5]=t}else t=i[5];return t},B=e=>{var t,i,a;let s,r,o,d,c=(0,l.c)(11),{mobileTakeover:u,fallbackImage:m}=e,h=null!=(t=null==u?void 0:u.heroSkin)?t:m.path;return c[0]!==h?(s=(0,n.jsx)(E.default,{priority:!0,fill:!0,quality:75,src:h,alt:"hero background",className:"h-[calc(100vh-64px)] min-h-[300px] w-full object-cover object-top"}),c[0]=h,c[1]=s):s=c[1],c[2]!==m||c[3]!==(null==u?void 0:u.heroSkin)?(r=!(null==u?void 0:u.heroSkin)&&(0,n.jsx)(T,{heroBackgroundImage:m}),c[2]=m,c[3]=null==u?void 0:u.heroSkin,c[4]=r):r=c[4],c[5]!==u?(o=(null==u?void 0:u.heroLogo)&&(0,n.jsx)(E.default,{quality:100,src:u.heroLogo,className:"absolute right-[19px] top-[12px] flex sm:hidden",width:null!=(i=u.heroLogoWidth)?i:64,height:null!=(a=u.heroLogoHeight)?a:41,alt:"takeover logo","data-testid":"takeover-logo-mobile"}),c[5]=u,c[6]=o):o=c[6],c[7]!==s||c[8]!==r||c[9]!==o?(d=(0,n.jsxs)(n.Fragment,{children:[s,r,o]}),c[7]=s,c[8]=r,c[9]=o,c[10]=d):d=c[10],d},q=e=>{let t,i,a,s,r,o,u,m,p,v,x,g=(0,l.c)(37),{data:f,globe:k,globeData:b,globeTakeover:w}=e,j=void 0!==k&&k,{heading:S,customTargeting:y,searchProps:F,mobileTakeover:T,desktopTakeover:E,fallbackImage:P}=f;g[0]!==y?(t=(e=>{let t=[["homepage_hero",["1"]]];return(0,N.St)(e,t),{bannerAdConfig:{id:"heroAd",path:"/6254/flight.https/home",sizes:[[728,90]],targeting:t,sizeMapping:[[[769,0],[[728,90]]]],className:"mx-auto opacity-100",supportResize:!1},bannerAdConfigMobile:{id:"heroAdMobile",path:"/6254/flight.https/home",sizes:[[320,50]],targeting:t,sizeMapping:[[[0,0],[[320,50]]]],className:"mx-auto opacity-100",supportResize:!1}}})(y),g[0]=y,g[1]=t):t=g[1];let{bannerAdConfig:L,bannerAdConfigMobile:C}=t,{searchOpen:_}=d(),M=j?"h-[calc(100dvh-64px)] sm:h-[calc(200dvh)]":"h-[calc(100dvh-64px)]";g[2]!==M?(i=(0,c.A)("bg-p-800 relative min-h-[300px] w-full",M),g[2]=M,g[3]=i):i=g[3],g[4]!==E||g[5]!==P||g[6]!==j||g[7]!==b||g[8]!==w?(a=(null==E?void 0:E.url)?(0,n.jsx)(h(),{href:null==E?void 0:E.url,target:"_blank",rel:"noopener noreferrer","data-ad-displayed":"true",className:"heap-desktop-skin-tracker invisible sm:visible",children:(0,n.jsx)(z,{desktopTakeover:E,fallbackImage:P,globe:j,globeData:b,globeTakeover:w})}):(0,n.jsx)("div",{"data-ad-displayed":"true",className:"heap-desktop-skin-tracker invisible sm:visible",children:(0,n.jsx)(z,{desktopTakeover:E,fallbackImage:P,globe:j,globeData:b,globeTakeover:w})}),g[4]=E,g[5]=P,g[6]=j,g[7]=b,g[8]=w,g[9]=a):a=g[9],g[10]!==P||g[11]!==T?(s=(null==T?void 0:T.url)?(0,n.jsx)(h(),{href:null==T?void 0:T.url,target:"_blank",rel:"noopener noreferrer","data-ad-displayed":"true",className:"heap-mobile-skin-tracker sm:invisible",children:(0,n.jsx)(B,{mobileTakeover:T,fallbackImage:P})}):(0,n.jsx)("div",{"data-ad-displayed":"true",className:"heap-mobile-skin-tracker sm:invisible",children:(0,n.jsx)(B,{mobileTakeover:T,fallbackImage:P})}),g[10]=P,g[11]=T,g[12]=s):s=g[12];let H=!_&&"relative top-[160px]";return g[13]!==H?(r=(0,c.A)("text-neutral absolute left-[50%] z-[101] w-full translate-x-[-50%] flex-col items-center gap-[16px] text-center sm:relative sm:top-[160px] sm:mx-0 sm:max-w-[638px] sm:gap-[36px]",H),g[13]=H,g[14]=r):r=g[14],g[15]!==S?(o=(0,n.jsx)("h1",{className:"text-medium text-p-50 mx-auto mb-[16px] px-[16px] text-3xl sm:mb-[32px] sm:px-[36px] sm:text-5xl","data-testid":"hero-heading",children:S}),g[15]=S,g[16]=o):o=g[16],g[17]!==j||g[18]!==F?(u=(0,n.jsx)(A,{"data-testid":"search",searchProps:F,globe:j}),g[17]=j,g[18]=F,g[19]=u):u=g[19],g[20]!==u||g[21]!==r||g[22]!==o?(m=(0,n.jsxs)("div",{className:r,children:[o,u]}),g[20]=u,g[21]=r,g[22]=o,g[23]=m):m=g[23],g[24]!==L||g[25]!==E?(p=E&&(0,n.jsx)("div",{className:"absolute bottom-[88px] left-0 right-0 mx-auto hidden sm:flex",children:(0,n.jsx)(I.GoogleAd,{config:L})}),g[24]=L,g[25]=E,g[26]=p):p=g[26],g[27]!==C||g[28]!==T?(v=T&&(0,n.jsx)("div",{className:"absolute bottom-[44px] left-0 right-0 mx-auto h-[50px] w-[320px] sm:hidden sm:h-[90px] sm:w-[728px]",children:(0,n.jsx)(I.GoogleAd,{config:C})}),g[27]=C,g[28]=T,g[29]=v):v=g[29],g[30]!==m||g[31]!==p||g[32]!==v||g[33]!==i||g[34]!==a||g[35]!==s?(x=(0,n.jsxs)("div",{"data-testid":"hero",className:i,children:[a,s,m,p,v]}),g[30]=m,g[31]=p,g[32]=v,g[33]=i,g[34]=a,g[35]=s,g[36]=x):x=g[36],x};var V=i(48247),U=i(56801),K=i(99677),Z=i(48698),G=i(14521),Y=i(81970),$=i(19229);let J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetHomepageFlightByIdent"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ident"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"departure"}},type:{kind:"NamedType",name:{kind:"Name",value:"DepartureTime"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"flightByIdent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ident"},value:{kind:"Variable",name:{kind:"Name",value:"ident"}}},{kind:"Argument",name:{kind:"Name",value:"departure"},value:{kind:"Variable",name:{kind:"Name",value:"departure"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"ids"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"iata"}},{kind:"Field",name:{kind:"Name",value:"icao"}},{kind:"Field",name:{kind:"Name",value:"ident"}}]}},{kind:"Field",name:{kind:"Name",value:"origin"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"iata"}},{kind:"Field",name:{kind:"Name",value:"icao"}},{kind:"Field",name:{kind:"Name",value:"lid"}},{kind:"Field",name:{kind:"Name",value:"location"}},{kind:"Field",name:{kind:"Name",value:"latlon"}},{kind:"Field",name:{kind:"Name",value:"tz"}}]}},{kind:"Field",name:{kind:"Name",value:"destination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"iata"}},{kind:"Field",name:{kind:"Name",value:"icao"}},{kind:"Field",name:{kind:"Name",value:"lid"}},{kind:"Field",name:{kind:"Name",value:"location"}},{kind:"Field",name:{kind:"Name",value:"latlon"}},{kind:"Field",name:{kind:"Name",value:"tz"}}]}},{kind:"Field",name:{kind:"Name",value:"times"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"estimated"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"out"}},{kind:"Field",name:{kind:"Name",value:"off"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"in"}}]}},{kind:"Field",name:{kind:"Name",value:"actual"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"out"}},{kind:"Field",name:{kind:"Name",value:"off"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"in"}}]}},{kind:"Field",name:{kind:"Name",value:"scheduled"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"out"}},{kind:"Field",name:{kind:"Name",value:"off"}},{kind:"Field",name:{kind:"Name",value:"on"}},{kind:"Field",name:{kind:"Name",value:"in"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"aircraft"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"icon"}},{kind:"Field",name:{kind:"Name",value:"manufacturer"}},{kind:"Field",name:{kind:"Name",value:"registration"}}]}},{kind:"Field",name:{kind:"Name",value:"airline"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fullName"}},{kind:"Field",name:{kind:"Name",value:"shortName"}},{kind:"Field",name:{kind:"Name",value:"icao"}},{kind:"Field",name:{kind:"Name",value:"iata"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"trackList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limitOptions"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"1"}},{kind:"ObjectField",name:{kind:"Name",value:"limitType"},value:{kind:"EnumValue",value:"POSITIONS_DESC"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"latitude"}},{kind:"Field",name:{kind:"Name",value:"longitude"}},{kind:"Field",name:{kind:"Name",value:"clock"}},{kind:"Field",name:{kind:"Name",value:"gs"}},{kind:"Field",name:{kind:"Name",value:"heading"}},{kind:"Field",name:{kind:"Name",value:"altitude"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]}}]}}]};var Q=i(35753);let X=e=>{var t,i,n,a,l;let s=null!=(l=null==(i=e.trackList)||null==(t=i.at(-1))?void 0:t.clock)?l:0;return(null==(n=e.data)?void 0:n.status)===Q.nR.Enroute||(null==(a=e.data)?void 0:a.status)===Q.nR.Arrived&&Date.now()/1e3-s<900},ee=e=>{var t,i,s;let{customTargeting:r,desktopTakeover:o,mobileTakeover:d}=e,[c,u]=(0,a.useState)(null!=o),[m,p]=(0,a.useState)(null!=(t=null==o?void 0:o.sponsoredFlights)?t:[]),[v,x]=(0,a.useState)(!1),[g,k]=(0,a.useState)(!1),{loadFlights:b}=(0,U.WN)(),w=null!=(i=null==o?void 0:o.sponsoredIdent)?i:"",j=null!=(s=null==d?void 0:d.sponsoredIdent)?s:"",S=((e,t)=>{var i,n;let a,s,r,o,d,c=(0,l.c)(11),u=[];c[0]===Symbol.for("react.memo_cache_sentinel")?(a={pollInterval:3e4},c[0]=a):a=c[0];let{error:m,data:h}=(0,G.IT)($.O,a);m&&(0,Z.Rm)("failed to refresh flights ".concat(m),Z.$b.warn),(null==h?void 0:h.allFlights)&&(u=null==h?void 0:h.allFlights.map(et)),c[1]!==e?(s={ident:e},c[1]=e,c[2]=s):s=c[2];let p=""===e;c[3]!==s||c[4]!==p?(r={variables:s,pollInterval:3e5,skip:p},c[3]=s,c[4]=p,c[5]=r):r=c[5];let{error:v,data:x}=(0,G.IT)(J,r);v&&(0,Z.Rm)("failed to fetch flight data for ident ".concat(e,": ").concat(v),Z.$b.warn);let g=null==x?void 0:x.flightByIdent;if(g&&X(g)){let t=(0,Y.m)(g);(null==(i=t.data)?void 0:i.aircraft)&&null==t.data.aircraft.registration&&(t.data.aircraft.registration=e),u.push(t)}c[6]!==t?(o={ident:t},c[6]=t,c[7]=o):o=c[7];let f=""===t;c[8]!==o||c[9]!==f?(d={variables:o,pollInterval:3e5,skip:f},c[8]=o,c[9]=f,c[10]=d):d=c[10];let{error:k,data:b}=(0,G.IT)(J,d);k&&(0,Z.Rm)("failed to fetch flight data for ident ".concat(t,": ").concat(k),Z.$b.warn);let N=null==b?void 0:b.flightByIdent;if(N&&X(N)){let e=(0,Y.m)(N);(null==(n=e.data)?void 0:n.aircraft)&&null==e.data.aircraft.registration&&(e.data.aircraft.registration=t),u.push(e)}return u})(w,j);(0,a.useEffect)(()=>{b(S,Date.now()/1e3)},[b,S]);let{bannerAdConfig:y}=(e=>{let t=[["homepage_right",["1"]]];return(0,N.St)(e,t),{bannerAdConfig:{id:"mapAd",path:"/6254/flight.https/home",sizes:[[300,600]],targeting:t,sizeMapping:[[[1280,0],[[300,600]]],[[0,0],[]]],className:"max-w-[320px] z-1000 min-w-[300px] min-h-[600px] opacity-100 absolute right-[16px] my-auto top-1/2 -translate-y-1/2 transform"}}})(r),F=(0,a.useMemo)(()=>{var e,t,i,n;let a={...U.sb.appearance.aircraftIcons};return(null==o?void 0:o.sponsoredIdentAircraftIcon)&&(a["CUSTOM-DESKTOP"]={size:[null!=(e=o.sponsoredIdentAircraftIconWidth)?e:50,null!=(t=o.sponsoredIdentAircraftIconHeight)?t:50],canBeStyled:!1,svg:o.sponsoredIdentAircraftIcon}),(null==d?void 0:d.sponsoredIdentAircraftIcon)&&(a["CUSTOM-MOBILE"]={size:[null!=(i=d.sponsoredIdentAircraftIconWidth)?i:50,null!=(n=d.sponsoredIdentAircraftIconHeight)?n:50],canBeStyled:!1,svg:d.sponsoredIdentAircraftIcon}),{horde:{enabled:!1},initialView:{longitude:-175.5795,latitude:39.8283,interactive:!1,bounds:[[-171.5,76],[180,-44]],zoom:1.5},animation:{enabled:!1},tracks:{show:!1},plannedRoutes:{show:!1}
1,airportMarkers:{show:!1},appearance:{padding:{top:0,left:0,bottom:0,right:0},dataBlock:{style:"full",displayTimePriority:["actual_in","estimated_in","actual_on","estimated_on"]},iconStyles:{UNKNOWN:{fill:"#637089",stroke:"#00153D",blur:0}},aircraftIcons:a},airlineCodeFormat:"icao",buttons:{zoomInAndOut:{show:!1}},logo:{show:!1},globeView:{showBelowZoomLevel:-1}}},[null==o?void 0:o.sponsoredIdentAircraftIcon,null==o?void 0:o.sponsoredIdentAircraftIconHeight,null==o?void 0:o.sponsoredIdentAircraftIconWidth,null==d?void 0:d.sponsoredIdentAircraftIcon,null==d?void 0:d.sponsoredIdentAircraftIconHeight,null==d?void 0:d.sponsoredIdentAircraftIconWidth]),A=(0,a.useCallback)(async()=>await (0,K.Y)(),[]),T=(0,a.useCallback)(e=>0!==m.length&&!!o&&m.some(t=>{var i;return null==(i=e.data)?void 0:i.ids.ident.startsWith(t)}),[o,m]),E=(0,a.useCallback)(e=>{var t,i;let n=null==(t=e.data)?void 0:t.ids.ident,a=null==(i=e.data)?void 0:i.aircraft.registration;return(n===w||a===w)&&v||(n===j||a===j)&&g||T(e)},[T,w,j,v,g]),P=(0,a.useCallback)(e=>T(e)?"-LIGHT":"-UNKNOWN",[T]),L=(0,a.useCallback)(e=>{var t,i,n,a;let l=null==(t=e.data)?void 0:t.ids.ident,s=null==(i=e.data)?void 0:i.aircraft.registration;return v&&(null==o?void 0:o.sponsoredIdentAircraftIcon)!=null&&(l===w||s===w)?"CUSTOM-DESKTOP":g&&(null==d?void 0:d.sponsoredIdentAircraftIcon)!=null&&(l===j||s===j)?"CUSTOM-MOBILE":null!=(a=null==(n=e.data)?void 0:n.aircraft.icon)?a:Q.Mq.Airliner},[v,null==o?void 0:o.sponsoredIdentAircraftIcon,w,g,null==d?void 0:d.sponsoredIdentAircraftIcon,j]),C=(0,a.useCallback)(e=>{var t,i;let n=null==(t=e.data)?void 0:t.ids.ident,a=null==(i=e.data)?void 0:i.aircraft.registration;return(n===w||a===w)&&v},[w,v]);return(0,a.useEffect)(()=>{let e=()=>{var e,t;let i=window.innerWidth;i<1280?u(!1):u(!0),i<640?(p(null!=(e=null==d?void 0:d.sponsoredFlights)?e:[]),x(!1),k(null!=d)):(p(null!=(t=null==o?void 0:o.sponsoredFlights)?t:[]),x(null!=o),k(!1))};return c&&e(),window.addEventListener?window.addEventListener("resize",e):window.attachEvent&&window.attachEvent("onresize",e),x(null!=o&&window.innerWidth>=640),k(null!=d&&window.innerWidth<640),()=>{window.removeEventListener("resize",e)}},[o,d,c]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"group container relative mx-auto",children:[c&&(0,n.jsx)(I.GoogleAd,{config:y}),(0,n.jsx)("div",{className:"invisible absolute left-1/2 top-1/2 z-10 -translate-x-1/2 -translate-y-1/2 transform p-4 text-center group-hover:visible",children:(0,n.jsxs)(h(),{"data-testid":"track-now-link",href:"https://www.flightaware.com/live",className:"text-neutral bg-s-600 flex items-center rounded px-4 py-2 opacity-100",children:[(0,n.jsx)(f.A,{id:"vBcHoB",defaultMessage:"Track Now",description:"tracking button text"}),(0,n.jsx)(V.A,{size:26,className:"inline-flex px-1"})]})}),(0,n.jsx)("div",{className:"text-neutral h-[428px] w-full text-xs group-hover:opacity-60 sm:h-[calc(100vh-239px)] sm:min-h-[648px]","data-testid":"map",children:(0,n.jsx)(U.sw,{config:F,options:{mode:"allFlights",isHighPriorityFlight:E},token:"",onTokenExpiration:A,flightInfoUpdateFrequency:0,getAircraftColor:P,getAircraftIcon:L,isDataBlockVisible:C,maxFlightAge:3600,"data-testid":"map"})})]})})};function et(e){let t={id:e.id,data:{id:e.id,ids:{...e.ids},aircraft:{icon:e.aircraftIcon},origin:{latlon:!1},status:Q.nR.Enroute,times:{actual:{},estimated:{},scheduled:{}}}};return t.trackList=[e.lastPosition],t}let ei=()=>{let e,t,i,a,s=(0,l.c)(7),r=(0,b.A)();s[0]!==r?(e=r.formatMessage({defaultMessage:"Optimize your experience",description:"wemi cta link",id:"3jrwOO"}),s[0]=r,s[1]=e):e=s[1],s[2]!==e?(t={url:"https://www.flightaware.com/commercial/integrated-maps/",text:e,enabled:!0},s[2]=e,s[3]=t):t=s[3];let o=t;return s[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)("h2",{className:"pb-[8px] pt-[20px] text-xl font-bold sm:pt-[40px]",children:(0,n.jsx)(f.A,{defaultMessage:"Connect our global flight map to your digital platforms.",description:"wemi sub headline",id:"KZmZGU"})}),s[4]=i):i=s[4],s[5]!==o?(a=(0,n.jsxs)("div",{className:"text-neutral container mx-auto","data-testid":"mapIntegratedLink",children:[i,(0,n.jsx)(k.n$,{data:o,theme:"text-neutral"})]}),s[5]=o,s[6]=a):a=s[6],a},en=e=>{let t,i=(0,l.c)(5),{customTargeting:a,desktopTakeover:s,mobileTakeover:r,globe:o}=e;return i[0]!==a||i[1]!==s||i[2]!==o||i[3]!==r?(t=o?(0,n.jsx)("div",{className:"w-full bg-[#000e28] px-[16px] pb-11 sm:pb-[40px] md:px-[64px]",children:(0,n.jsx)(ei,{})}):(0,n.jsxs)("div",{className:"bg-p-900 relative min-h-[590px] w-full px-[16px] pb-11 pt-11 sm:h-screen sm:min-h-[890px] sm:py-[77px] sm:pb-[40px] md:px-[64px]",children:[(0,n.jsx)(ee,{customTargeting:a,desktopTakeover:s,mobileTakeover:r}),(0,n.jsx)(ei,{})]}),i[0]=a,i[1]=s,i[2]=o,i[3]=r,i[4]=t):t=i[4],t},ea=e=>{let{heroData:t,desktopTakeover:i,mobileTakeover:l,customTargeting:s,globeData:r,globeTakeover:o}=e,[d,c]=(0,a.useState)(!1);return(0,a.useLayoutEffect)(()=>{var e;(()=>{let{enabled:e,loadFrequency:t,searchParams:n}=r,a=null==n?void 0:n.toLowerCase();return"true"==a||"false"!=a&&(null==i||!i.heroSkin)&&e&&Math.random()<=t})()&&(null==(e=window)?void 0:e.innerWidth)>=640?c(!0):c(!1)},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(U.ZC,{children:[(0,n.jsx)(q,{data:t,globeData:r,globe:d,globeTakeover:o}),(0,n.jsx)(en,{desktopTakeover:i,mobileTakeover:l,customTargeting:s,globe:d})]})})}},99677:(e,t,i)=>{"use strict";i.d(t,{Y:()=>a});var n=i(68482);let a=(0,n.createServerReference)("0003cbfdb8baec248f9349074d31547bd13a25f1bc",n.callServer,void 0,n.findSourceMapURL,"getJwt")}},e=>{e.O(0,[1325,2147,5469,3614,3473,7822,8737,3570,391,1268,7051,9158,5646,231,6420,4398,7834,6535,7283,643,6214,9765,587,9893,7358],()=>e(e.s=86197)),_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.