PageSourceSearch

https://www.signatureaviation.com/_next/static/chunks/52584-d834bdcf15973119.js

js signatureaviation.com collected 2026-10-09 21:35:44 UTC 42,840 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[52584],{5788:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(85659),n=l(38241),s=l(53662),i=l.n(s);function r(){return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-5 text-base",children:"Please refine your search terms and try again"}),(0,a.jsx)("h4",{className:"font-semibold font-acumin text-xl mb-5",children:"Helpful search tips:"}),(0,a.jsxs)("ul",{className:"list-disc list-inside [&>li]:marker:text-[10px] text-base mb-5",children:[(0,a.jsx)("li",{children:"Enter the airport code if you know it"}),(0,a.jsx)("li",{children:"Try searching the nearest larger city or town"}),(0,a.jsx)("li",{children:"Check to ensure you have the proper spelling of your destination"}),(0,a.jsx)("li",{children:"Increase the distance to include a broader search area"})]}),(0,a.jsx)("h4",{className:"font-semibold font-acumin text-xl mb-5",children:"Can’t find what you’re looking for?"}),(0,a.jsx)(n.$,{className:"px-8 py-2 font-proxima",children:(0,a.jsx)(i(),{href:"/location",children:"Explore the Map"})})]})}l(33355)},16444:(e,t,l)=>{l.d(t,{m:()=>r});var a=l(85659);l(33355);var n=l(23475),s=l(67842),i=l(5788);function r(e){let{children:t,title:l,loading:r,results:o,center:d,name:u,zoom:c,showClustering:m=!1}=e,h=(0,n.useSearchParams)().get("tab"),g=null==o?void 0:o.map(e=>{var t,l,a,n,s,i;return"fbo-search"===h?{id:e.id,name:e.slug,latitude:null!=(t=e.latitude)?t:0,longitude:null!=(l=e.longitude)?l:0,pinVariant:"tooltip"}:"hotels-search"===h?{id:e.id,name:e.name,latitude:null!=(a=e.latitude)?a:0,longitude:null!=(n=e.longitude)?n:0,pinVariant:"tooltip"}:"real-estate-search"===h?{id:e.id.toString(),name:e.slug,latitude:null!=(s=e.latitude)?s:0,longitude:null!=(i=e.longitude)?i:0,pinVariant:"tooltip"}:e});return(0,a.jsxs)("div",{className:"flex flex-col px-5 lg:px-11 py-11 mt-5 bg-white lg:border-signature-light-gray lg:border lg:border-solid rounded-md",children:[r?(0,a.jsx)("div",{className:"h-10 bg-gray-200 rounded-md animate-pulse mb-11"}):(0,a.jsx)("h2",{className:"text-2xl text-pretty lg:text-4xl mb-11 font-acumin",children:(null==g?void 0:g.length)===0?"0 ".concat({"fbo-search":"FBOs","hotel-search":"Hotels","real-estate-search":"Real Estate"}[h]," matching your search criteria"):l}),(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4",children:[r?(0,a.jsx)("div",{className:"block order-1 lg:order-2 w-full lg:max-w-[462px] h-[150px] min-h-[400px] lg:h-[720px] rounded-md overflow-hidden lg:sticky lg:top-20",children:(0,a.jsx)("div",{className:"h-full w-full bg-gray-200 rounded-md animate-pulse"})}):(null==g?void 0:g.length)!==0||r?(0,a.jsx)("div",{className:"block order-1 lg:order-2 w-full lg:max-w-[462px] h-[150px] min-h-[400px] lg:h-[720px] rounded-md overflow-hidden lg:sticky lg:top-20",children:(0,a.jsx)(s.A,{results:null!=g?g:[],center:d,name:u,zoom:c||11,enableClustering:m})}):null,(0,a.jsx)("div",{className:"order-2 lg:order-1 flex flex-col gap-4 flex-1 lg:min-w-[460px]",children:(null==g?void 0:g.length)!==0||r?t:(0,a.jsx)(i.A,{})})]})]})}},26330:(e,t,l)=>{l.d(t,{E:()=>x});var a=l(85659),n=l(33355),s=l(23475),i=l(95256),r=l(64489);async function o(e){var t,l,a,n,s,i,o,d,u,c,m,h,g,f;if(!e)return{lat:0,lng:0,found:!1};let x=e.trim(),p=/^[A-Za-z]{3}$/.test(x),v=/^[A-Za-z]{4}$/.test(x);if(!(p||v))return{lat:0,lng:0,found:!1};let b=await r.Z.searchFBOs(x.toUpperCase(),5,!1);if(b.fbos&&b.fbos.length>0){let e=b.fbos[0];if((null==e?void 0:e.latitude)&&e.longitude)return{lat:e.latitude,lng:e.longitude,found:!0,airportName:e.airportName,city:null==(s=e.address)?void 0:s.city,state:null==(i=e.address)?void 0:i.state,country:null==(o=e.address)?void 0:o.country}}return(null==(l=b.meta)||null==(t=l.center)?void 0:t.lat)&&(null==(n=b.meta)||null==(a=n.center)?void 0:a.lng)?{lat:b.meta.center.lat,lng:b.meta.center.lng,found:!0,airportName:null==(d=b.fbos[0])?void 0:d.airportName,city:null==(c=b.fbos[0])||null==(u=c.address)?void 0:u.city,state:null==(h=b.fbos[0])||null==(m
1=h.address)?void 0:m.state,country:null==(f=b.fbos[0])||null==(g=f.address)?void 0:g.country}:{lat:0,lng:0,found:!1}}var d=l(62824);let u={lat:25.7616798,lng:-80.1917902,name:"Miami"};async function c(e){var t,l,a,n,s;let i=function(e){if(!e||"string"!=typeof e)return null;let t=/^(-?\d+\.?\d*)\s*,\s*(-?\d+\.?\d*)$/.exec(e.trim());if((null==t?void 0:t[1])&&t[2]){let e=parseFloat(t[1]),l=parseFloat(t[2]);if(!isNaN(e)&&!isNaN(l)&&e>=-90&&e<=90&&l>=-180&&l<=180)return{lat:e,lng:l}}return null}(e);if(i)return{lat:i.lat,lng:i.lng,formattedAddress:"".concat(i.lat,", ").concat(i.lng),isValid:!0};if(!(null==e?void 0:e.trim()))return{lat:u.lat,lng:u.lng,formattedAddress:u.name,isValid:!1};let r=null!=(t=d.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY)?t:"AIzaSyCNHSnjbC9DvQARdNBy_6Wbr4qmV-9mqaU",o="https://maps.googleapis.com/maps/api/geocode/json?address=".concat(encodeURIComponent(e),"&key=").concat(r),c=await fetch(o);if(!c.ok)throw Error("Geocoding request failed");let m=await c.json();if("ZERO_RESULTS"===m.status)return{lat:u.lat,lng:u.lng,formattedAddress:e,isValid:!1};if("OK"!==m.status)throw console.error("[useGeocode] Geocoding API error:",m.status,m.error_message),Error(null!=(l=m.error_message)?l:"Geocoding failed");if(m.results&&m.results.length>0){let t=m.results[0];return{lat:null!=(a=null==t?void 0:t.geometry.location.lat)?a:u.lat,lng:null!=(n=null==t?void 0:t.geometry.location.lng)?n:u.lng,formattedAddress:null!=(s=null==t?void 0:t.formatted_address)?s:e,isValid:!0}}return{lat:u.lat,lng:u.lng,formattedAddress:e,isValid:!1}}var m=l(70606),h=l(31332),g=l(16444),f=l(97833);function x(e){var t,l,r,d,x;let{showClustering:p=!0}=e,v=(0,s.useRouter)();(0,s.usePathname)();let b=(0,s.useSearchParams)(),y=b.get("search"),j=b.get("q"),w=b.get("location"),N=b.get("distance"),C=y||j||w||"",S=parseInt(N||"5"),k=S>
10?String(S):"5",[I,E]=(0,n.useState)(C),[D,A]=(0,n.useState)(k),[T,R]=(0,n.useState)(()=>{let e=b.get("checkin"),t=b.get("checkout");if(e&&t)return{from:new Date(e),to:new Date(t)};let l=new Date;l.setHours(0,0,0,0);let a=new Date(l);return a.setDate(l.getDate()+1),{from:l,to:a}}),[_,L]=(0,n.useState)(0),[M,F]=(0,n.useState)(null),[P,U]=(0,n.useState)(null),{coordinates:q,isLoading:B}=function(e){let{data:t={lat:0,lng:0,found:!1},isLoading:l}=(0,i.I)({queryKey:["airport-coordinates",e],queryFn:()=>o(e),staleTime:864e5,gcTime:6048e5,retry:2,retryDelay:e=>Math.min(1e3*2**e,3e4)});return{coordinates:t,isLoading:l}}(I),{coordinates:H,isLoading:O}=function(e){let{data:t={lat:u.lat,lng:u.lng,formattedAddress:u.name,isValid:!1},isLoading:l,error:a}=(0,i.I)({queryKey:["geocode",e],queryFn:()=>c(e),staleTime:36e5,gcTime:864e5,retry:2,retryDelay:e=>Math.min(1e3*2**e,3e4)});return{coordinates:t,isLoading:l,error:a?String(a):null}}(I),z=q.found||H.isValid,G={latitude:q.found?q.lat:H.lat,longitude:q.found?q.lng:H.lng},V=q.found?B:O,$=m.F.useUtils(),{data:W,isLoading:Z,isFetchingNextPage:K,hasNextPage:Q,fetchNextPage:X,refetch:Y}=(0,h.q)({queryKey:["hotel-search",G.latitude,G.longitude,D,_],queryFn:async e=>{let{pageParam:t=0}=e,l=parseInt(D||"5");return await $.hotel.search.fetch({latitude:G.latitude,longitude:G.longitude,radiusValue:l>0?l:5,radiusUnit:"miles",limit:25,offset:25*t})},initialPageParam:0,getNextPageParam:(e,t)=>{var l,a,n;return null!=(n=null==e||null==(a=e.meta)||null==(l=a.pagination)?void 0:l.hasMore)&&n?t.length:void 0},enabled:z&&!!G.latitude&&!!G.longitude&&_>0}),J=(null==W?void 0:W.pages.flatMap(e=>{var t,l;return(null==e||null==(l=e.data)||null==(t=l.hotels)?void 0:t.map(e=>{var t,l,a,n,s,i,r,o,d,u,c,m,h,g,f,x;return{id:String(e.flightBridgeHotelIdentifier||e.id),distanceMiles:e.distanceFromSearch||0,distanceLabel:"".concat(e.distanceFromSearch||0," miles from destination"),imageUrl:(null==(l=e.images)||null==(t=l[0])?void 0:t.url)||"/search/image1.png",rating:(null==(a=e.rating)?void 0:a.starRating)||0,brand:{name:e.brandName||"Hotel"},name:e.name,address:{line1:(null==(s=e.location)||null==(n=s.address)?void 0:n.street)||(null==(r=e.location)||null==(i=r.address)?void 0:i.line1)||"",city:(null==(d=e.location)||null==(o=d.address)?void 0:o.city)||"",state:(null==(c=e.location)||null==(u=c.address)?void 0:u.state)||"",postalCode:(null==(h=e.location)||null==(m=h.address)?void 0:m.postalCode)||""},contactDetails:{phone:(null==(g=e.contact)?void 0:g.phone)||""},latitude:null==(f=e.location)?void 0:f.latitude,longitude:null==(x=e.location)?void 0:x.longitude,actions:{checkAvailabilityLabel:"Check Availability",viewHotelLabel:"View Hotel"}}}))||[]}))||[],ee=e=>{e.latitude&&e.longitude&&(F({lat:e.latitude,lng:e.longitude}),U(15))};(0,n.useEffect)(()=>{let e=b.get("search"),t=b.get("q"),l=b.get("location"),a=b.get("distance"),n=e||t||l||"",s=parseInt(a||"5"),i=s>0?String(s):"5";E(n),A(i),n&&n!==I&&L(e=>e+1);let r=b.get("checkin"),o=b.get("checkout");r&&o&&R({from:new Date(r),to:new Date(o)})},[b]),(0,n.useEffect)(()=>{C&&L(1)},[]);let et=null!=(d=null==W||null==(r=W.pages)||null==(l=r[0])||null==(t=l.data)?void 0:t.totalCount)?d:0,el=(0,n.useCallback)(e=>{if(Z||K)return;let t=new IntersectionObserver(e=>{var t;(null==(t=e[0])?void 0:t.isIntersecting)&&Q&&X()},{rootMargin:"200px"});return e&&t.observe(e),()=>t.disconnect()},[Z,K,Q,X]),ea=q.found&&q.airportName?"".concat(q.airportName," (").concat(I.toUpperCase(),")"):I||"your location",en=!z&&_>0?[]:J;return(0,a.jsxs)(g.m,{title:"".concat(et>0?et:en.length," ").concat((et>0?et:en.length)===1?"Hotel":"Hotels"," in or near ").concat(ea),loading:Z||V,results:en,center:M||{lat:G.latitude,lng:G.longitude},name:I,zoom:null!=P?P:(x=parseInt(D))<=5?12:x<=10?11:x<=25?10:x<=50?9:x<=100?8:x<=200?7:6,showClustering:p,children:[(0,a.jsx)(f.L,{results:en,isLoading:Z||V,isLoadingMore:K,setSelectedItem:e=>{let t=en.find(t=>(t.id||t.objectID)===e);t&&ee(t)},handleViewHotel:e=>{let t=new URLSearchParams(b.toString());t.set("hotelDetailId",e.id||e.objectID||""),v.push("hotels/".concat(e.id,"?").concat(t.toString()),{scroll:!1})},type:"hotels"}),Q&&(0,a.jsx)("div",{ref:el,className:"h-4"})]})}},36165:(e,t,l)=>{l.d(t,{D:()=>a});function a(e){if(!e||"string"!=typeof e||!e.includes("res.cloudinary.com")||e.includes("f_auto")&&e.includes("q_auto"))return e;let t=/(\/upload\/)(v\d+\/)?/;return t.test(e)?e.replace(t,"$1f_auto,q_auto/$2"):e}},40473:(e,t,l)=>{l.d(t,{g:()=>c});var a=l(85659),n=l(33355),s=l(23475),i=l(64489),r=l(49459),o=l(95256),d=l(16444),u=l(97833);function c(){var e,t,l,c,m,h,g,f;
1let x=(0,s.useRouter)(),p=(0,s.useSearchParams)(),v=p.get("search"),b=parseInt(null!=(l=p.get("distance"))?l:"50"),y="true"===p.get("isCountry"),j=(0,n.useMemo)(()=>{let e=p.get("types");return e?e.split(",").filter(Boolean):[]},[p]),w=(0,n.useMemo)(()=>{let e=p.get("sqftMin"),t=p.get("sqftMax");return{min:e?Number(e):0,max:t?Number(t):1/0}},[p]),N=(0,n.useMemo)(()=>{let e=p.get("doorHeightMin"),t=p.get("doorHeightMax");return{min:e?Number(e):0,max:t?Number(t):1/0}},[p]),[C,S]=(0,n.useState)(0),[k,I]=(0,n.useState)(null),[E,D]=(0,n.useState)(null),{data:A,isPending:T}=(0,o.I)({queryKey:["real-estate-search",v,b,j,w,N,C,y],queryFn:async()=>{let e=await i.Z.searchRealEstate(null!=v?v:"",b,y);return(0,r.a)(e)},enabled:!0,staleTime:0,gcTime:0});(0,n.useEffect)(()=>{v&&S(e=>e+1)},[v]);let R=(0,n.useMemo)(()=>{if(!(null==A?void 0:A.fbos)||!(j.length>0||w.min>0||w.max<1/0||N.min>0||N.max<1/0))return A;let e=A.fbos.map(e=>{if(!e.realEstateListings||0===e.realEstateListings.length)return null;let t=e.realEstateListings.filter(e=>{var t,l;if(j.length>0){let t=e.assetType,l=t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();if(!j.includes(l))return!1}if(e.availableSqFt<w.min||e.availableSqFt>w.max)return!1;if(j.includes("Hangar")&&(null==(t=e.assetType)?void 0:t.toLowerCase())==="hangar"){let t=null!=(l=e.hangarDoorHeightInInches)?l:0;if(t<N.min||t>N.max)return!1}return!0});return 0===t.length?null:{...e,realEstateListings:t}}).filter(e=>null!==e);return{...A,fbos:e}},[A,j,w,N]);return(0,a.jsx)(d.m,{title:"".concat(null!=(c=null==R?void 0:R.fbos.length)?c:0," ").concat((null==R?void 0:R.fbos.length)===1?"FBO offers":"FBOs offer"," real estate in or near ").concat(null!=v?v:"your location"),loading:T,results:null!=(m=null==R?void 0:R.fbos)?m:[],center:null!=k?k:(null==R||null==(e=R.meta)?void 0:e.center)||{lat:0,lng:0},name:null!=(g=null!=(h=null==R||null==(t=R.meta)?void 0:t.searchTerm)?h:v)?g:"",zoom:null!=E?E:b<=5?12:b<=10?11:b<=25?10:b<=50?9:b<=100?8:b<=200?7:6,showClustering:!1,children:(0,a.jsx)(u.L,{results:null!=(f=null==R?void 0:R.fbos)?f:[],isLoading:T,setSelectedItem:e=>{var t;let l=null==A||null==(t=A.fbos)?void 0:t.find(t=>t.id===e||t.slug===e);(null==l?void 0:l.latitude)&&(null==l?void 0:l.longitude)&&(I({lat:l.latitude,lng:l.longitude}),D(15))},type:"real-estate",handleViewRealEstate:e=>{let t=new URLSearchParams(p.toString());t.set("realEstateDetailId",e||""),x.push("/real-estate/".concat(e,"?").concat(t.toString()))}})})}},45127:(e,t,l)=>{l.d(t,{B:()=>i});var a=l(98462),n=l(33355),s=l(25178);function i(e,t){let l=(0,n.useMemo)(()=>new a.A(t),[t]),i=(0,n.useRef)(null),[r,o]=(0,n.useReducer)(e=>e+1,0);(0,n.useEffect)(()=>{l.load(e.features),i.current=l,o()},[l,e]);let{bbox:d,zoom:u}=function(){let{padding:e=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.ko)(),[l,a]=(0,n.useState)([-180,-90,180,90]),[i,r]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(!t)return;let l=t.addListener("idle",()=>{let l=t.getBounds(),n=t.getZoom(),s=t.getProjection();if(!l||!n||!s)return;
1let i=l.getSouthWest(),o=l.getNorthEast(),d=360/(256*Math.pow(2,n))*e,u=Math.min(90,o.lat()+d),c=Math.max(-90,i.lat()-d);a([i.lng()-d,c,o.lng()+d,u]),r(n)});return()=>l.remove()},[t,e]),{bbox:l,zoom:i}}({padding:250}),c=(0,n.useMemo)(()=>{if(!l||0===r||i.current!==l)return[];let e=u<=6?[-180,-90,180,90]:d;return l.getClusters(e,u)},[r,l,d,u]),m=(0,n.useCallback)(e=>l.getChildren(e),[l]);return{clusters:c,zoom:u,getChildren:m,getLeaves:(0,n.useCallback)(e=>l.getLeaves(e,1/0),[l]),getClusterExpansionZoom:(0,n.useCallback)(e=>l.getClusterExpansionZoom(e),[l])}}},45363:(e,t,l)=>{l.d(t,{R:()=>c});var a=l(85659),n=l(33355),s=l(23475),i=l(64489),r=l(49459),o=l(95256),d=l(16444),u=l(97833);function c(){var e,t,l,c,m,h;let g=(0,s.useRouter)(),f=(0,s.useSearchParams)(),x=f.get("search"),p=f.get("q"),v=f.get("location"),b=f.get("distance"),y="true"===f.get("isCountry"),j=x||p||v||"",w=b||"50",[N,C]=(0,n.useState)(0),[S,k]=(0,n.useState)(null),[I,E]=(0,n.useState)(null),{data:D,isLoading:A}=(0,o.I)({queryKey:["fbo-search",j,w,y,N],queryFn:async()=>{let e=parseInt(w)||50,t=await i.Z.searchFBOs(j||"",e,y);return(0,r.a)(t)},enabled:!0,staleTime:0,gcTime:0}),T=e=>{e.latitude&&e.longitude&&(k({lat:e.latitude,lng:e.longitude}),E(15))};return(0,n.useEffect)(()=>{j&&C(1)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(d.m,{title:"".concat(null!=(t=null==D?void 0:D.fbos.length)?t:0," ").concat((null==D?void 0:D.fbos.length)===1?"FBO":"FBOs"," in or near ").concat((null==D?void 0:D.meta.searchTerm)||j||"your location"),loading:A,results:null!=(l=null==D?void 0:D.fbos)?l:[],center:S||(null==D||null==(e=D.meta)?void 0:e.center)||{lat:0,lng:0},name:null!=(c=null==D?void 0:D.meta.searchTerm)?c:j,zoom:null!=I?I:(h=parseInt(w))<=5?12:h<=10?11:h<=25?10:h<=50?9:h<=100?8:h<=200?7:6,children:(0,a.jsx)(u.L,{results:null!=(m=null==D?void 0:D.fbos)?m:[],isLoading:A,setSelectedItem:e=>{var t;let l=null==D||null==(t=D.fbos)?void 0:t.find(t=>(t.id||t.objectID)===e);l&&T(l)},handleViewFbo:(e,t)=>{let l=new URLSearchParams(f.toString());l.set("fboDetailId",e.id||e.objectID||""),t?l.set("scrollTo",t):l.delete("scrollTo"),g.push("locations/".concat(e.slug,"?").concat(l.toString())),t||(scrollTo({top:0}),window.scrollTo({top:0,behavior:"smooth"}))},type:"fbo"})})})}},49459:(e,t,l)=>{l.d(t,{a:()=>r});var a=l(62824),n=l(87099),s=l(36165);let i=e=>Object.entries({TECHNICAir:e.isTechnicair,Customs:e.isCustoms,SAF:e.isSaf,BAH:e.isBah,"DLA Fueling":e.isGovMillitary,"Signature Select":e.isSignatureSelect,"AES Union":e.isAesUnion,"GES Union":e.isGesUnion,"Sole Source":e.isSoleSource,eFuel:e.isEFuel,CAA:e.hasCAA,"Loyalty Base":e.loyaltyBaseFlag,DASSP:e.isDassp}).filter(e=>{let[t,l]=e;return l}).map(e=>{let[t]=e;return t});async function r(e){try{var t,l,r,o,d,u,c,m,h;let g=(e.fbos||[]).reduce((e,t)=>{let l=t.documentId;return l&&e.push(l),e},[]);if(0===g.length)return e;let[f,x]=await Promise.all([n.T.find("real-estate-listings",{filters:{fbo:{documentId:{$in:g}}},fields:["documentId","assetType","assetName","assetDescription","availableSqFt","availabilityDisplayText","isAvailable","leaseType","hangarDoorHeightInInches","operatingHours","slug"],populate:{fbo:{fields:["documentId"]}}}),n.T.find("fbos",{filters:{documentId:{$in:g}},populate:{images:!0,mainDescription:!0},fields:["documentId","baseId","street1","street2","zipCode","hoursOfOperation","phone","fax","email","showRealEstateInSearchResults","isEFuel","hasCAA","loyaltyBaseFlag","isGovMillitary","isDassp","isSignatureSelect","isTechnicair","isCustoms","isSaf","isBah","isGesUnion","isAesUnion","isSoleSource","enableReservations","enablePPR"]})]),p={};for(let e of null!=(t=f.data)?t:[]){let t=null!=(d=null==e||null==(l=e.fbo)?void 0:l.documentId)?d:null==e||null==(o=e.fbo)||null==(r=o.data)?void 0:r.documentId;t&&(null!=p[t]||(p[t]=[]),p[t].push(e))}let v={};for(let e of null!=(c=x.data)?c:[])e.documentId&&(v[e.documentId]=e);let b=null!=(m=a.env.NEXT_PUBLIC_STRAPI_URL)?m:"",y=e=>{var t;if(!e)return null;let l=e;return e.startsWith("http://")||e.startsWith("https://")||(l="".concat(b).concat(e.startsWith("/")?"":"/").concat(e)),null!=(t=(0,s.D)(l))?t:null};return{...e,fbos:(null!=(h=e.fbos)?h:[]).map(e=>{var t,l,a,n,s,r,o,d,u,c,m,h,g,f,x,b,j,w,N,C,S,k,I,E,D,A,T,R,_,L;let M=e.documentId,F=M?v[M]:null,P=e.address.street;(null==F?void 0:F.street1)&&(P=F.street1,(null==(t=F.street2)?void 0:t.trim())&&(P+=" "+F.street2));let U=null!=(l=e.heroImage)?l:"/search/image1.png";if((null==F?void 0:F.images)&&F.images.length>0){let e=F.images[0],t=null!=(d=null!=(o=y(null==e||null==(n=e.formats)||null==(a=n.large)?void 0:a.url))?o:y(null==e||null==(r=e.formats)||null==(s=r.medium)?void 0:s.url))?d:y(null==e?void 0:e.url);t&&(U=t)}return{...e,address:{...e.address,street:P,zipCode:null!=(u=null==F?void 0:F.zipCode)?u:e.address.zipCode},operationHours:null!=(m=null!=(c=null==F?void 0:F.hoursOfOperation)?c:e.operationHours)?m:"Contact for hours",contactDetails:{...e.contactDetails,phone:null!=(g=null!=(h=null==F?void 0:F.phone)?h:e.contactDetails.phone)?g
1:"",fax:null!=(f=null==F?void 0:F.fax)?f:e.contactDetails.fax,managerEmail:null!=(x=null==F?void 0:F.email)?x:e.contactDetails.managerEmail},heroImage:U,mainDescription:null!=(b=null==F?void 0:F.mainDescription)?b:e.mainDescription,showRealEstateInSearchResults:null!=(j=null==F?void 0:F.showRealEstateInSearchResults)?j:e.showRealEstateInSearchResults,realEstateListings:M&&null!=(w=p[M])?w:[],isEFuel:null!=(N=null==F?void 0:F.isEFuel)&&N,hasCAA:null!=(C=null==F?void 0:F.hasCAA)&&C,loyaltyBaseFlag:null!=(S=null==F?void 0:F.loyaltyBaseFlag)&&S,isGovMillitary:null!=(k=null==F?void 0:F.isGovMillitary)&&k,isDassp:null!=(I=null==F?void 0:F.isDassp)&&I,isSignatureSelect:null!=(E=null==F?void 0:F.isSignatureSelect)&&E,isTechnicair:null!=(D=null==F?void 0:F.isTechnicair)&&D,isCustoms:null!=(A=null==F?void 0:F.isCustoms)&&A,isBah:null!=(T=null==F?void 0:F.isBah)&&T,isGesUnion:null!=(R=null==F?void 0:F.isGesUnion)&&R,isAesUnion:null!=(_=null==F?void 0:F.isAesUnion)&&_,isSoleSource:null!=(L=null==F?void 0:F.isSoleSource)&&L,badges:F?i(F):[],enableReservations:null==F?void 0:F.enableReservations,enablePPR:null==F?void 0:F.enablePPR}})}}catch(t){return console.warn("Failed to enrich with Strapi",t),e}}},67842:(e,t,l)=>{l.d(t,{A:()=>x});var a,n=l(85659),s=l(33355),i=l(62824),r=l(25178);let o=e=>{let{position:t,name:l}=e,a=(0,r.ko)(),n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(a)return n.current=new google.maps.Marker({position:t,map:a}),()=>{n.current&&n.current.setMap(null)}},[a,t]),null},d=e=>{let{position:t,size:l,sizeAsText:a,onMarkerClick:i,clusterId:o}=e,[d,u]=(0,r.vH)(),c=(0,s.useCallback)(()=>i&&i(u,o),[i,u,o]),m=Math.floor(32+1.5*Math.sqrt(l));return(0,n.jsx)(r.J8,{ref:d,position:t,zIndex:l,onClick:c,className:"marker cluster",style:{width:m,height:m},anchorPoint:r.GN.CENTER,children:(0,n.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"#152644",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"16px",fontWeight:"bold",boxShadow:"0 2px 6px rgba(0,0,0,0.3)"},children:a})})},u=e=>{let{position:t,featureId:l,locationData:a,onMarkerClick:i}=e,[o,d]=(0,r.vH)(),[u,c]=(0,s.useState)(!1),{name:m,pinVariant:h="default",renderInfoWindow:g,slug:f}=a,x=(0,s.useCallback)(()=>{g&&c(!0),i&&i(d,l)},[i,d,l,g]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.J8,{ref:o,position:t,onClick:x,anchorPoint:"tooltip"===h?r.GN.BOTTOM:r.GN.CENTER,className:"marker feature",children:(0,n.jsx)("div",{style:{position:"relative"},children:"tooltip"===h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{style:{backgroundColor:"#152644",color:"white",padding:"8px 16px",borderRadius:"6px",fontSize:"12px",fontWeight:"bold",whiteSpace:"nowrap",maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",boxShadow:"0 2px 8px rgba(0,0,0,0.3)",textAlign:"center"},children:f||m}),(0,n.jsx)("div",{style:{position:"absolute",bottom:"-6px",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:"8px solid #152644"}})]}):(0,n.jsx)("div",{style:{backgroundColor:"#152644",color:"white",padding:"6px 12px",borderRadius:"4px",fontSize:"12px",fontWeight:"bold",whiteSpace:"nowrap",maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",boxShadow:"0 2px 6px rgba(0,0,0,0.3)",textAlign:"center"},children:f||m})})}),g&&u&&(0,n.jsx)(r.Fu,{anchor:d,onClose:()=>c(!1),children:g(a)})]})};var c=l(45127),m=l(79209);let h=e=>{let{geojson:t,enableClusterZoom:l=!1,enableClustering:a=!0}=e,i=(0,m.a)(),o=(0,s.useMemo)(()=>({extent:256,radius:i?40:80,maxZoom:12}),[i]),{clusters:h,getClusterExpansionZoom:g}=(0,c.B)(t,o),f=(0,r.ko)(),x=(0,s.useCallback)((e,t)=>{if(!l||!f)return;let a=g(t),n=e.position;if(n){f.setZoom(a);let e="function"==typeof n.lat?n.lat():n.lat,t="function"==typeof n.lng?n.lng():n.lng;f.setCenter({lat:e,lng:t})}},[l,f,g]),p=(0,s.useCallback)((e,t)=>{},[]),v=a?h:t.features;return(0,n.jsx)(n.Fragment,{children:v.map(e=>{let[t,l]=e.geometry.coordinates,s=e.properties;return s.cluster&&a?(0,n.jsx)(d,{clusterId:s.cluster_id,position:{lat:null!=l?l:0,lng:null!=t?t:0},size:s.point_count,sizeAsText:String(s.point_count_abbreviated),onMarkerClick:x},e.id):(0,n.jsx)(u,{featureId:e.id,locationData:e.properties,position:{lat:null!=l?l:0,lng:null!=t?t:0},onMarkerClick:p},e.id)})})},g=null!=(a=i.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY)?a:"AIzaSyCNHSnjbC9DvQARdNBy_6Wbr4qmV-9mqaU",f=e=>{let{center:t,zoom:l,bounds:a}=e,n=(0,r.ko)(),i=(0,s.useRef)(t),o=(0,s.useRef)(l),d=(0,s.useRef)(a);return(0,s.useEffect)(()=>
1{if(!n)return;let e=a!==d.current;if(a&&e){let e=new google.maps.LatLngBounds({lat:a.south,lng:a.west},{lat:a.north,lng:a.east});n.fitBounds(e,{padding:50}),d.current=a}else if(!a){let e=i.current.lat!==t.lat||i.current.lng!==t.lng,a=o.current!==l;(e||a)&&(e&&n.panTo(t),a&&n.setZoom(l),i.current=t,o.current=l)}},[n,t,l,a]),null},x=e=>{let{results:t,center:l,name:a,zoom:i=9,bounds:d,showCenterMarker:u=!0,renderInfoWindow:c,enableClusterZoom:m=!1,enableClustering:x=!0}=e,[p,v]=(0,s.useState)(null);return(0,s.useEffect)(()=>{v({type:"FeatureCollection",features:t.map(e=>({type:"Feature",id:e.id.toString(),geometry:{type:"Point",coordinates:[e.longitude,e.latitude]},properties:{...e,renderInfoWindow:c}}))})},[t,c]),(0,n.jsx)("div",{className:"w-full h-full relative z-0",children:(0,n.jsx)(r.c4,{apiKey:g,version:"beta",children:(0,n.jsxs)(r.T5,{mapId:"DEMO_MAP_ID",defaultCenter:l,defaultZoom:i,gestureHandling:"greedy",mapTypeControl:!0,streetViewControl:!1,fullscreenControl:!1,style:{width:"100%",height:"100%"},children:[(0,n.jsx)(f,{center:l,zoom:i,bounds:d}),u&&(0,n.jsx)(o,{position:l,name:a}),p&&(0,n.jsx)(h,{geojson:p,enableClusterZoom:m,enableClustering:x})]})})})}},79209:(e,t,l)=>{l.d(t,{a:()=>n});var a=l(33355);function n(){let[e,t]=a.useState(void 0);return a.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),l=()=>{t(window.innerWidth<768)};return e.addEventListener("change",l),t(window.innerWidth<768),()=>e.removeEventListener("change",l)},[]),!!e}},97833:(e,t,l)=>{l.d(t,{L:()=>z});var a=l(85659),n=l(33355),s=l(53662),i=l.n(s),r=l(23475),o=l(38241),d=l(81217),u=l(24112),c=l(95117),m=l(95103),h=l(39982),g=l(65340),f=l(1776),x=l(59950),p=l(70606),v=l(99406),b=l(86739),y=l(35227),j=l(99132),w=l(95256),N=l(62454),C=l(75288),S=l(14006),k=l(23751),I=l(27589),E=l(14211),D=l(49257);function A(e){var t,l,s,A,T,R,_;let{fbo:L,position:M,handleViewFbo:F}=e,P=(0,r.useRouter)();(0,b.n)(e=>e.isAuthenticated);let U=(0,r.useSearchParams)(),{openQuoteModal:q}=(0,c.o)(),{isCpqEnabled:B}=(0,d.a)(),{enabled:H}=(0,u.J)({baseId:L.id}),O=(0,j.useFboLookup)(),z=()=>{var e;let t=null!=(e=U.get("search"))?e:void 0;O.resultClicked({fboId:L.id,position:null!=M?M:-1,...t?{query:t}:{}})},G=U.get("pps-arrival-date"),V=U.get("pps-period"),[$,W]=(0,n.useState)(null),{data:Z}=p.F.quote.getUserFboQuoteSummary.useQuery(void 0,{staleTime:6e4}),K=(0,n.useMemo)(()=>{var e;return(null==Z?void 0:Z.data)&&null!=(e=Z.data.find(e=>L.iata&&e.fboCode&&e.fboCode.toLowerCase()===L.iata.toLowerCase()||L.icao&&e.fboIcao&&e.fboIcao.toLowerCase()===L.icao.toLowerCase()||e.fboName&&L.name&&e.fboName.toLowerCase()===L.name.toLowerCase()))?e:null},[Z,L.iata,L.icao,L.name]),Q=null!=(R=null==K?void 0:K.activeCount)?R:0;(0,n.useEffect)(()=>{W(null)},[G,V]);let{slots:X,isLoading:Y,error:J,refetch:ee}=(0,m.k)({fboId:L.id,arrivalDate:G,startHour:null,endHour:null,enabled:!!G&&!!V}),et=null==(_=L.enableReservations)||_,el=(e,t)=>{t&&($===e?W(null):W(e))},ea=(0,n.useMemo)(()=>{if(!G)return"";let e=(0,N.H)(G);return(0,C.f)(e)?(0,S.GP)(e,"MM/dd/yyyy"):""},[G]),{data:en}=(0,w.I)({queryKey:["fbo-card-weather",L.latitude,L.longitude],queryFn:async()=>{if(!L.latitude||!L.longitude)return null;let e=await fetch("https://api.openweathermap.org/data/2.5/weather?lat=".concat(L.latitude,"&lon=").concat(L.longitude,"&appid=129fb8ece7ffe7e963f1718f8ac3f432&units=metric"));return e.ok?await e.json():(console.error("Failed to fetch weather data"),null)},enabled:!!(L.latitude&&L.longitude),staleTime:6e5}),es=()=>{let e=(L.id||L.objectID||L.iata||"").trim();if(!e)return;let t=(0,x.ET)("fbo",{fboId:e});(0,f.cD)(t,!0,e=>P.push(e))};return(0,a.jsxs)("div",{className:(0,v.cn)("border border-signature-light-gray border-solid rounded-md","overflow-hidden bg-white shadow-md hover:shadow-xl hover:-translate-y-1 transition-all duration-300"),children:[(0,a.jsxs)("div",{className:"min-h-48 md:h-48 bg-cover bg-center relative",style:{backgroundImage:"url(".concat(L.heroImage,")")},children:[(0,a.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.33), rgba(0,0,0,0.12))"}}),(0,a.jsx)("div",{className:"relative flex flex-col lg:justify-between lg:items-start p-4 lg:p-6 h-full",children:(0,a.jsxs)("div",{className:"text-white h-full flex flex-col flex-1",children:[(0,a.jsx)("h3",{className:"font-acumin text-white text-2xl lg:text-3xl",children:L.airportCode}),(0,a.jsx)("p",{className:"text-lg font-medium",children:(0,v.Sn)(null==L?void 0:L.name)}),(0,a.jsx)("p",{className:"text-sm mt-2 lg:mt-auto",children:L.distance}),(0,a.jsxs)("div",{className:"lg:absolute lg:right-4 lg:top-[30px] flex gap-2 flex-wrap lg:justify-end md:max-w-[200px] lg:mt-0 mt-2",children:[Q>0&&(0,a.jsxs)(i(),{href:"/account/quotes?fboCode=".concat(encodeURIComponent((null==K?void 0:K.fboCode)||L.iata||""),"&search=").concat(encodeURIComponent((null==K?void 0:K.fboName)||L.name),"&status=active"),onClick:e=>e.stopPropagation(),className:"bg-blue-600 hover:bg-blue-700 transition-colors text-white px-2 py-1 text-xs rounded flex items-center gap-1",children:[(0,a.jsx)(k.default,{className:"h-3 w-3"}),Q," Active"," ",1===Q?"Quote":"Quotes"]}),null==(t=L.badges)?void 0:t.map((e,t)=>(0,a.jsx)("span",{className:"bg-black text-white px-2 py-1 text-xs rounded",children:e},t))]})]})})]}),(0,a.jsx)("section",{className:"px-2 pt-2 md:px-6 md:pt-6 pb-4 md:pb-4 grid gap-4",children:(0,a.jsxs)("div",{className:"grid gap-4",children:[L.address&&(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(I.default,{className:"w-5 h-5 text-midnight-sky mt-0.5 flex-shrink-0"}),(0,a.jsxs)("p",{className:"text-sm text-midnight-sky",children:[L.address.street," ",L.address.city,", ",L.address.state," ",L.address.zipCode,L.address.country&&" ".concat(L.address.country)]})]}),L.operationHours&&(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(E.default,{className:"w-5 h-5 text-midnight-sky mt-0.5 flex-shrink-0"}),(0,a.jsxs)("p",{className:"text-sm text-midnight-sky",children:["Operation Hours: ",L.operationHours]})]}),((null==(l=L.contactDetails)?void 0:l.phone)||(null==(s=L.contactDetails)?void 0:s.fax))&&(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(D.default,{className:"w-5 h-5 text-midnight-sky mt-0.5 flex-shrink-0"}),(0,a.jsxs)("p",{className:"text-sm text-midnight-sky",children:["Contact Details:",(null==(A=L.contactDetails)?void 0:A.phone)&&(0,a.jsxs)(a.Fragment,{children:[" Phone ",(0,a.jsx)("a",{href:"tel:".concat(L.contactDetails.phone.replace(/[^\d+]/g,"")),className:"underline",children:L.contactDetails.phone})]}),(null==(T=L.contactDetails)?void 0:T.fax)&&" Fax ".concat(L.contactDetails.fax)]})]})]})}),G&&et&&(0,a.jsxs)("section",{className:"px-4 pt-0 pb-6 md:px-6 md:pt-0 md:pb-6 grid gap-4",children:[(0,a.jsx)("div",{className:"border-t border-[#
1E5E5E5] mt-4"}),(0,a.jsxs)("p",{children:["Showing results for ",(0,a.jsx)("strong",{children:ea})]}),Y&&(0,a.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,a.jsx)("p",{className:"text-sm text-midnight-sky",children:"Loading availability..."})}),J&&(0,a.jsxs)("div",{className:"flex flex-col gap-2 py-4",children:[(0,a.jsx)("p",{className:"text-sm text-red-600",children:"Unable to load time slot availability. Please try again."}),(0,a.jsx)(o.$,{variant:"tertiary",size:"sm",onClick:()=>ee(),className:"w-fit",children:"Retry"})]}),!Y&&!J&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:X.length>0?X.map(e=>{let t=e.isAvailable,l=$===e.time,n=!e.isAvailable,s=function(e,t,l){let a,n,s;if(!e)return!1;let i=new Date().getTime(),r=-60*new Date().getTimezoneOffset();if("string"==typeof e){let t=e.trim().split("-");if(3!==t.length||!t[0]||!t[1]||!t[2])return!1;{var o;let e=null==(o=t[2].split("T")[0])?void 0:o.split(" ")[0];if(!e||(a=parseInt(t[0],10),n=parseInt(t[1],10)-1,s=parseInt(e,10),isNaN(a)||isNaN(n)||isNaN(s)))return!1}}else a=e.getFullYear(),n=e.getMonth(),s=e.getDate();let d=new Date(i+1e3*r),u=d.getUTCFullYear(),c=d.getUTCMonth(),m=d.getUTCDate(),h=d.getUTCHours(),g=d.getUTCMinutes(),f="".concat(a,"-").concat(String(n+1).padStart(2,"0"),"-").concat(String(s).padStart(2,"0"));if(void 0!==l){let e=new Date(i+1e3*l),t=e.getUTCFullYear(),a=e.getUTCMonth(),n=e.getUTCDate();if(f!=="".concat(t,"-").concat(String(a+1).padStart(2,"0"),"-").concat(String(n).padStart(2,"0")))return!1}else if(f!=="".concat(u,"-").concat(String(c+1).padStart(2,"0"),"-").concat(String(m).padStart(2,"0")))return!1;if(void 0!==l){let e=t+(r-l)/3600;if(e<0)return!0;if(e>=24)return!1;let a=Math.round(e);return!!(a<h)||a===h&&!!(g>0)}return!!(t<h)||t===h&&!!(g>0)}(G,e.hour,null==en?void 0:en.timezone),i=n||s;return(0,a.jsx)("button",{type:"button",onClick:()=>{t&&!s&&el(e.time,e.isAvailable)},disabled:i,className:(0,v.cn)("px-4 py-2 text-sm font-semibold rounded-md transition-all","disabled:cursor-not-allowed disabled:opacity-60",{"text-white hover:opacity-90":t&&!l&&!s,"bg-gray-300 text-gray-600 line-through":n||s}),style:s||n?void 0:l?{backgroundColor:"#34D5AE",color:"#152644"}:t&&!l?{backgroundColor:"#152644"}:void 0,children:e.time},e.time)}):(0,a.jsx)("p",{className:"text-sm text-midnight-sky",children:"No availability information for this location"})})]}),(0,a.jsx)("section",{className:(0,v.cn)("px-4 pb-6 md:px-6 md:pb-6",G&&!et&&"pt-4 md:pt-6"),children:(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center",children:[et&&(0,a.jsx)(o.$,{variant:"signature",type:"button",onClick:()=>{z(),es()},className:"w-full flex items-center justify-center gap-2 sm:w-auto",children:"Request Reservation"}),B&&(0,a.jsx)(o.$,{variant:"signature","data-cta":"request-a-quote",className:"w-full sm:w-auto",onClick:()=>{z(),(0,y.sendGTMEvent)({event:"fbo_search_quote_cta_click",page_location:window.location.href,cta_label:"Request a Quote",fbo_base_id:L.id,fbo_iata:L.iata,fbo_icao:L.icao}),q(L.id,L.name,L.iata,L.icao)},children:"Request a Quote"}),H&&(0,a.jsx)(o.$,{variant:"secondary","data-cta":"build-an-estimate",className:"w-full sm:w-auto",onClick:()=>{(0,y.sendGTMEvent)({event:"fbo_search_estimate_cta_click",page_location:window.location.href,cta_label:"Build an Estimate",fbo_base_id:L.id,fbo_iata:L.iata,fbo_icao:L.icao}),(0,h.A9)(),P.push((0,g.aP)({flow:"search",airport:L.iata,fboId:L.id}))},children:"Build an Estimate"}),(0,a.jsx)(o.$,{variant:"tertiary",className:"w-full sm:w-auto",onClick:()=>{z(),F(L)},children:"View FBO"})]})})]})}var T=l(62824),R=l(67185),_=l(27302),L=l(74767),M=l(62723),F=l(66909);function P(e){let{hotel:t,setSelectedItem:l,handleViewHotel:n}=e,s=(0,r.useSearchParams)(),{isAuthenticated:i,token:d}=(0,R.Q)(),u=()=>{let e=T.env.NEXT_PUBLIC_HOTEL_RESERVATION_ENDPOINT||"",l=T.env.NEXT_PUBLIC_CHECK_AVAILABILITY_FB_ID||"",a=s.get("checkin")||(0,S.GP)(new Date,"yyyy-MM-dd"),n=s.get("checkout")||(0,S.GP)((0,_.f)(new Date,1),"yyyy-MM-dd"),i=s.get("distance")||"5",r=new URLSearchParams({TripSystemIdentifier:l,FlightBridgeHotelIdentifier:t.id,CheckInDate:a,CheckOutDate:n,MaxMileRadius:i});return d&&r.set("UserAuthenticationToken",d),"".concat(e,"?").concat(r.toString())},c=()=>{i?window.open(u(),"_blank"):confirm("Please login to check availability.")&&(0,F.jL)()};return(0,a.jsxs)("div",{className:(0,v.cn)("border border-signature-light-gray border-solid rounded-md cursor-pointer","overflow-hidden bg-white shadow-md hover:shadow-xl hover:-translate-y-1 transition-all duration-300"),children:[(0,a.jsxs)("div",{className:"h-48 bg-cover bg-center relative",style:{backgroundImage:"url(".concat(t.imageUrl,")")},children:[(0,a.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.33), rgba(0,0,0,0.12))"}}),(0,a.jsxs)("div",{className:"relative flex flex-col sm:flex-row sm:justify-between items-start gap-2 p-4 lg:p-6 h-full",children:[(0,a.jsx)("p",{className:"text-sm text-white",children:t.distanceLabel}),(0,a.jsxs)("div",{className:"flex justify-start gap-2",children:[(0,a.jsx)(o.$,{variant:"secondary",className:"h-9",onClick:e=>{e.stopPropagation(),c()},children:"Check Availability"}),(0,a.jsx)(o.$,{variant:"tertiary",className:"h-9 bg-white border-signature-light-gray",onClick:()=>{n(t),scrollTo({top:0})},children:"View Hotel"})]}),(0,a.jsxs)("div",{className:"absolute bottom-6 left-6",children:[(0,a.jsx)("div",{className:"flex items-center gap-1 mb-2",children:Array.from({length:5},(e,l)=>{let n=t.rating-l;return n>=1?(0,a.jsx)(L.default,{size:16,className:"fill-white stroke-white"},l):n>=.5?(0,a.jsx)(M.default,{size:16,className:"fill-white stroke-white"},l):null})}),(0,a.jsx)("p",{className:"text-lg text-white",children:t.brand.name})]})]})]}),(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsx)("h3",{className:"text-2xl mb-4 font-acumin font-medium",children:t.name}),(0,a.jsxs)("div",{className:"space-y-3 text-sm text-midnight-sky",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(I.default,{size:20}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),l(t.id)},className:"text-left hover:underline hover:decoration-dotted hover:decoration-1 hover:underline-offset-2 cursor-pointer transition-all",children:[t.address.line1,", ",t.address.city,","," ",t.address.state," ",t.address.postalCode]})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(D.default,{size:20}),(0,a.jsxs)("span",{children:["Contact Details: Phone ",t.contactDetails.phone]})]})]})]})]})}var U=l(13159),q=l(18425);function B(e){var t;let{property:l,setSelectedItem:s,handleViewRealEstate:i}=e,d=(0,r.useRouter)(),u=()=>{s(l.id||l.slug,l.iata)},c=Array.isArray(null==l?void 0:l.realEstateListings)?l.realEstateListings:[],m=c.filter(e=>"hangar"===e.assetType).length,h=c.filter(e=>"office"===e.assetType).length,g=c.filter(e=>
1"ramp"===e.assetType).length,f=c.length,[x,p]=(0,n.useState)(!1),b=(0,n.useMemo)(()=>{var e,t;return(null==l||null==(e=l.mainDescription)?void 0:e.rich)?l.mainDescription.rich:[{type:"paragraph",children:[{type:"text",text:null!=(t=null==l?void 0:l.mainDescription)?t:""}]}]},[l]),y=(0,n.useMemo)(()=>{var e,t,a;if(null==l||null==(e=l.mainDescription)?void 0:e.rich){let e=t=>{let l="";for(let a of t)"text"===a.type&&a.text?l+=a.text:a.children&&(l+=e(a.children));return l};return e(null==l||null==(t=l.mainDescription)?void 0:t.rich)}return null!=(a=null==l?void 0:l.mainDescription)?a:""},[l]);return(0,a.jsxs)("div",{className:(0,v.cn)("border border-signature-light-gray border-solid rounded-lg cursor-pointer","overflow-hidden bg-white shadow-md hover:shadow-xl hover:-translate-y-1 transition-all duration-300"),children:[(0,a.jsxs)("div",{className:"h-64 bg-cover bg-center relative",style:{backgroundImage:"url(".concat(null!=(t=l.heroImage)?t:"/search/image1.png",")")},children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-bl from-black/20 via-black/40 to-black/60"}),(0,a.jsx)("div",{className:"relative flex justify-between items-start p-6 h-full",children:(0,a.jsx)("div",{className:"text-white h-full flex flex-col",children:(0,a.jsxs)("div",{className:"mb-auto",children:[(0,a.jsx)("h3",{className:"text-white text-3xl font-medium mb-1 font-acumin",children:l.airportCode||"".concat(l.iata," / ").concat(l.icao)}),(0,a.jsx)("p",{className:"text-lg text-white/90",children:(0,v.Sn)(l.airportName||l.title)})]})})}),(0,a.jsx)("div",{className:"absolute bottom-4 left-0 right-0 px-6",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row  sm:items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:(0,v.cn)("text-[#171717] w-6 h-6 rounded-full flex items-center justify-center text-sm",f>0?"bg-[#34D5AE]":"bg-white"),children:f}),(0,a.jsx)("span",{className:"text-white text-sm",children:"Available Listings"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[0===f&&(0,a.jsx)(o.$,{className:"h-9 bg-white text-[#152644] border-white hover:text-[#152644]",variant:"outline",onClick:e=>{e.stopPropagation(),sessionStorage.setItem("formEntryPoint",window.location.href),d.push("/real-estate/waitlist-form?iata=".concat(l.iata))},children:"Join the Waitlist"}),(0,a.jsx)(o.$,{className:"h-9 text-black border-transparent",variant:"signature",style:{backgroundColor:"var(--base-secondary, #34D5AE)"},onClick:e=>{e.stopPropagation(),null==i||i(l.slug||""),scrollTo({top:0})},children:"View Details"})]})]})})]}),(m>0||h>0||g>0)&&(0,a.jsx)("div",{className:"px-6 py-4 border-b border-gray-100",children:(0,a.jsxs)("dl",{className:"grid grid-cols-3 gap-6",children:[(0,a.jsx)(U.r,{label:"HANGAR",value:m,mode:"light"}),(0,a.jsx)(U.r,{label:"OFFICE",value:h,mode:"light"}),(0,a.jsx)(U.r,{label:"RAMP",value:g,mode:"light"})]})}),(0,a.jsx)("div",{className:"p-6",children:(0,a.jsxs)("div",{className:"space-y-4 text-sm text-gray-700",children:[l.address&&(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(I.default,{size:20,className:"text-gray-500 mt-0.5 flex-shrink-0"}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),u()},className:"text-left hover:underline hover:decoration-dotted hover:decoration-1 hover:underline-offset-2 cursor-pointer transition-all",children:[(0,a.jsx)("p",{className:"text-gray-800",children:(0,v.Sn)(l.address.street)}),l.address.city&&l.address.state&&(0,a.jsxs)("p",{className:"text-gray-600",children:[(0,v.Sn)(l.address.city),","," ",(0,v.Sn)(l.address.state),l.address.zipCode&&"  ".concat((0,v.Sn)(l.address.zipCode))]}),l.address.country&&(0,a.jsx)("p",{className:"text-gray-600",children:(0,v.Sn)(l.address.country)})]})})]}),(0,a.jsx)("div",{className:"leading-5",children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-base text-signature-midnight font-proxima",children:(0,a.jsx)(q.W,{rich:b})}),(0,a.jsx)("button",{onClick:()=>p(!1),className:"underline underline-offset-2 text-signature-midnight text-sm mt-2 font-proxima",children:"Read Less"})]}):(0,a.jsxs)("p",{className:"text-base text-signature-midnight font-proxima",children:[((e,t)=>{let l=String(null!=e?e:"");return l?l.length<=t?l:l.slice(0,t).trimEnd()+"...":""})(y,220)," ",(0,a.jsx)("button",{onClick:()=>p(!0),className:"underline underline-offset-2 text-signature-midnight font-proxima",children:"Read More"})]})})]})})]})}function H(){return(0,a.jsxs)("div",{className:(0,v.cn)("border border-signature-light-gray border-solid rounded-md animate-pulse","overflow-hidden bg-white shadow-md"),children:[(0,a.jsx)("div",{className:"h-48 bg-gray-200"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-6",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-200 rounded-md"}),(0,a.jsx)("div",{className:"h-4 bg-gray-200 rounded-md"}),(0,a.jsx)("div",{className:"h-4 w-4/5 bg-gray-200 rounded-md"})]})]})}var O=l(5788);function z(e){let{results:t,isLoading:l,isLoadingMore:s,setSelectedItem:i,handleViewFbo:r,handleViewHotel:o,handleViewRealEstate:d,type:u}=e,c=(0,n.useCallback)(()=>t&&0!==t.length?"fbo"===u?t.map((e,t)=>(0,a.jsx)(A,{position:t+1,fbo:e,handleViewFbo:r||(()=>{})},e.id)):"hotels"===u?t.map(e=>(0,a.jsx)(P,{hotel:e,setSelectedItem:i,handleViewHotel:o||(()=>{})},e.id)):"real-estate"===u?t.map(e=>(0,a.jsx)(B,{property:e,setSelectedItem:i,handleViewRealEstate:d||(()=>{})},e.id)):null:null,[u,t,r,o,d]);if(l){let e=Array.from({length:4},(e,t)=>(0,a.jsx)(H,{},t));return(0,a.jsx)("div",{className:"flex flex-col gap-4",children:e})}return t&&0!==t.length?(0,a.jsxs)(a.Fragment,{children:[c(),s?Array.from({length:"hotels"===u?3:4},(e,t)=>(0,a.jsx)(H,{},"skeleton-".concat(t))):null]}):(0,a.jsx)(O.A,{})}}}]);

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.