PageSourceSearch

https://skyfareracademy.com/static/js/ListingPageCarousel.633611e3.chunk.js

js skyfareracademy.com collected 2026-10-08 09:41:35 UTC 98,848 bytes, 3 lines download raw bytes

1/*! For license information please see ListingPageCarousel.633611e3.chunk.js.LICENSE.txt */
2"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[8314],{4200(e,t,i){i.d(t,{A:()=>h});var a=i(65043),n=i(92174);const s="SkyfarerProUpsell_section__bP82Q",l="SkyfarerProUpsell_bar__KEGyZ",o="SkyfarerProUpsell_text__1aZFk",r="SkyfarerProUpsell_promo__yE6fU",c="SkyfarerProUpsell_toggle__xUG3s",d="SkyfarerProUpsell_table__GRZKR";var u=i(70579);const g="https://js.stripe.com/v3/pricing-table.js",h=e=>{var t,i;const{currentUser:h,className:v}=e,[m,y]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(m&&"undefined"!==typeof document&&!document.querySelector(`script[src="${g}"]`)){const e=document.createElement("script");e.src=g,e.async=!0,document.body.appendChild(e)}},[m]);const p=null===h||void 0===h||null===(t=h.id)||void 0===t?void 0:t.uuid;if(!p)return null;const x=null===h||void 0===h||null===(i=h.attributes)||void 0===i?void 0:i.email;return(0,u.jsxs)("div",{className:v||s,children:[(0,u.jsxs)("div",{className:l,children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{className:o,children:(0,u.jsx)(n.sA,{id:"SkyfarerProUpsell.pitch"})}),(0,u.jsx)("p",{className:r,children:(0,u.jsx)(n.sA,{id:"SkyfarerProUpsell.promo"})})]}),(0,u.jsx)("button",{type:"button",className:c,onClick:()=>y(e=>!e),children:(0,u.jsx)(n.sA,{id:m?"SkyfarerProUpsell.hide":"SkyfarerProUpsell.show"})})]}),m?(0,u.jsx)("div",{className:d,children:(0,u.jsx)("stripe-pricing-table",{"pricing-table-id":"prctbl_1UIBLyEJEeEtfwbxGxUkxhd3","publishable-key":"pk_live_51PejwfEJEeEtfwbxBL02Mjy8DblMNwpaHLwFZMKOdjHQQ82xVaeLNZfCP20Dkcrjr9GcMKrqe9f0nNNEov2xmBjS005VcPU6vU","client-reference-id":`pro_${p}`,...x?{"customer-email":x}:{}})}):null]})}},37741(e,t,i){i.d(t,{A:()=>F});var a=i(65043),n=i(98139),s=i.n(n),l=i(50222),o=(i(44356),i(92174)),r=i(27685);const c="ListingImageGallery_root__kl5mP",d="ListingImageGallery_itemWrapper__aSDMh",u="ListingImageGallery_itemWrapperFullscreen__bfx3L",g="ListingImageGallery_noImage__lWRtc",h="ListingImageGallery_itemCentering__QQuqe",v="ListingImageGallery_item__F9JRh",m="ListingImageGallery_thumbWrapper__q6BhM",y="ListingImageGallery_thumb__DquP2",p="ListingImageGallery_navLeft__Jo6UK",x="ListingImageGallery_navRight__D4PMf",b="ListingImageGallery_navArrowWrapper__hih7r",f="ListingImageGallery_openFullscreen__7cq-K buttonSmall",L="ListingImageGallery_close__aNIAD marketplaceModalCloseStyles",_="ListingImageGallery_closeText__5nYnT marketplaceModalCloseText",w="ListingImageGallery_closeIcon__wMVMR marketplaceModalCloseIcon",j="ListingImageGallery_galleryOverlay__Mk8MB",A="ListingImageGallery_overlayButton__RCz9c",N="ListingImageGallery_saveCount__vUqAr";var S=i(15736),k=i(70579);const I={showPlayButton:!1,disableThumbnailScroll:!0,lazyLoad:!0},C=4/3,P=88,M=e=>{const{image:t,alt:i,variants:n,sizes:s,width:l,height:o}=e,c=(0,a.useRef)(null),[d,u]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(d)return;const e=c.current;if(!e)return;if("function"!==typeof IntersectionObserver)return void u(!0);const t=e.closest(".image-gallery-thumbnails"),i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(u(!0),i.unobserve(e.target))})},{root:t||null,rootMargin:"0px 88px",threshold:0});return i.observe(e),()=>i.disconnect()},[d]),(0,k.jsx)("span",{ref:c,className:m,style:{width:l,height:o},children:d?(0,k.jsx)(r.wF,{rootClassName:y,image:t,alt:i,variants:n,sizes:s,width:l,height:o}):null})},F=e=>{var t;const[i,n]=(0,a.useState)(!1),m=(0,o.tz)(),{rootClassName:y,className:F,images:T,imageVariants:R,thumbnailVariants:D,aspectWidth:E=1,aspectHeight:O=1,onOpenShare:W,toggleFavorites:U,isFavorite:q,HeartIcon:$,favoriteCount:B=0}=e,H=D||R,{aspectWidth:G,aspectHeight:V}=((e,t)=>{var i;if(!e)return{aspectWidth:1,aspectHeight:1};const a=null===e||void 0===e||null===(i=e.attributes)||void 0===i||null===(i=i.variants)||void 0===i?void 0:i[t],n=null===a||void 0===a?void 0:a.width,s=null===a||void 0===a?void 0:a.height;if(!n||!s)return{aspectWidth:1,aspectHeight:1};const l=n/s;return l>=2?{aspectWidth:2,aspectHeight:1}:l<=C?{aspectWidth:4,aspectHeight:3}:{aspectWidth:n,aspectHeight:s}})(null===T||void 0===T?void 0:T[0],R[0]),z=((e,t)=>{const i=e||1,a=t||1;return i>=a?{width:P,height:Math.round(P*a/i)}:{width:Math.round(P*i/a),height:P}})(E,O),K=T.map((e,t)=>{var i;return{original:"",alt:m.formatMessage({id:"ListingImageGallery.imageAltText"},{index:t+1,count:T.length}),thumbAlt:m.formatMessage({id:"ListingImageGallery.imageThumbnailAltText"},{index:t+1,count:T.length}),thumbnail:null===(i=e.attributes)||void 0===i||null===(i=i.variants)||void 0===i?void 0:i[H[0]],image:e}}),Q=i?{}:{sizes:"(max-width: 1024px) 100vw, (max-width: 1200px) calc(100vw - 192px), 708px"},J=null===(t=T[0])||void 0===t||null===(t=t.id)||void 0===t?void 0:t.uuid,Y=e=>{var t;return!!J&&(null===(t=e.image)||void 0===t||null===(t=t.id)||void 0===t?void 0:t.uuid)===J};if(0===K.length)return(0,k.jsx)(r.wF,{className:g,image:null,variants:[],alt:""});const Z=s()(y||c,F),X={"--listing-thumb-display-width":`${z.width}px`,"--listing-thumb-display-height":`${z.height}px`};return(0,k.jsx)("div",{className:Z,style:X,children:(0,k.jsx)(l.A,{items:K,renderItem:e=>(0,k.jsxs)(r.Vh,{width:G,height:V,className:i?u:d,children:[(0,k.jsxs)("div",{className:j,children:[(0,k.jsxs)("button",{type:"button",className:A,onClick:e=>{e.stopPropagation(),W()},children:[(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none",stroke:"#222"},strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("path",{d:"M8.5 9.5H6.5a1.5 1.5 0 0 0-1.5 1.5v8a1.5 1.5 0 0 0 1.5 1.5h11a1.5 1.5 0 0 0 1.5-1.5v-8a1.5 1.5 0 0 0-1.5-1.5h-2"}),(0,k.jsx)("polyline",{points:"8.5 6 12 2.5 15.5 6"}),(0,k.jsx)("line",{x1:"12",y1:"2.5",x2:"12",y2:"13.5"})]}),(0,k.jsx)("span",{children:"Share"})]}),(0,k.jsxs)("button",{type:"button",className:A,onClick:U,title:B>=1?`Saved by ${B} ${1===B?"person":"people"}`:void 0,children:[(0,k.jsx)($,{filled:q}),(0,k.jsx)("span",{children:q?"Saved":"Save"}),B>=1?(0,k.jsx)("span",{className:N,children:(0,S.eX)(B)}):null]})]}),(0,k.jsx)("div",{className:h,children:(0,k.jsx)(r.wF,{rootClassName:v,image:e.image,alt:e.alt,variants:R,...Q,...Y(e)?{fetchpriority:"high"}:{}})})]}),renderThumbInner:e=>(0,k.jsx)(M,{image:e.image,alt:e.thumbAlt,variants:H,sizes:"88px",width:z.width,height:z.height}),onScreenChange:e=>n(e),renderLeftNav:(e,t)=>(0,k.jsx)("button",{className:p,disabled:t,onClick:e,children:(0,k.jsx)("div",{className:b,children:(0,k.jsx)(r.N1,{direction:"left",size:"big"})})}),renderRightNav:(e,t)=>(0,k.jsx)("button",{className:x,disabled:t,onClick:e,children:(0,k.jsx)("div",{className:b,children:(0,k.jsx)(r.N1,{direction:"right",size:"big"})})}),renderFullscreenButton:(e,t)=>t?(0,k.jsxs)(r.$n,{onClick:e,rootClassName:L,children:[(0,k.jsx)("span",{className:_,children:(0,k.jsx)(o.sA,{id:"ListingImageGallery.closeModal"})}),(0,k.jsx)(r.gz,{rootClassName:w})]}):(0,k.jsx)("button",{className:f,onClick:e,children:(0,k.jsx)(o.sA,{id:"ListingImageGallery.viewImagesButton",values:{count:T.length}})}),...I})})}},33898(e,t,i){i.r(t),i.d(t,{ListingPageComponent:()=>Pi,default:()=>Mi});var a=i(65043),n=i(97950),s=i(55346),l=i(95392),o=i(83003),r=i(98139),c=i.n(r),d=i(92174),u=i(44356),g=i(77153),h=i(47955),v=i(54682),m=i(32423),y=i(2306),p=(i(16882),i(26297)),x=(i(86770),i(77232),i(79577)),b=i(15736),f=i(25967),L=i(44104),_=i(28233),w=i(27685),j=i(71702),A=i(37614),N=i(87982),S=i(70923),k=i(39935),I=i(11851),C=(i(13298),i(7326));const P="SectionCommunityListingMaybe_badgeRow__UmNJW",M="SectionCommunityListingMaybe_badge__ZK-KP",F="SectionCommunityListingMaybe_infoIcon__Ajvi7",T="SectionCommunityListingMaybe_tooltip__OiYMp",R="SectionCommunityListingMaybe_claimCard__fvJnl",D="SectionCommunityListingMaybe_claimSuggest__8txHG",E="SectionCommunityListingMaybe_claimButton__s5eUU";var O=i(70579);const W=e=>{const{listing:t,className:i}=e,a=(0,d.tz)();if(!(0,C.bY)(t))return null;const n=a.formatMessage({id:"ListingPage.communityUnclaimedTooltip"});return(0,O.jsx)("div",{className:c()(P,i),children:(0,O.jsxs)("span",{className:M,tabIndex:0,"aria-label":n,children:[(0,O.jsx)(d.sA,{id:"ListingPage.communityUnclaimed"}
2),(0,O.jsxs)("svg",{className:F,viewBox:"0 0 24 24",width:"14",height:"14","aria-hidden":"true",children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,O.jsx)("line",{x1:"12",y1:"10",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0,O.jsx)("circle",{cx:"12",cy:"7",r:"1.5",fill:"currentColor"})]}),(0,O.jsx)("span",{className:T,role:"tooltip","aria-hidden":"true",children:n})]})})},U=e=>{const{listing:t,className:i}=e;return(0,C.bY)(t)?(0,O.jsxs)("div",{className:c()(R,i),children:[(0,O.jsx)(w.Gr,{href:C.al,className:E,children:(0,O.jsx)(d.sA,{id:"ListingPage.communityClaimCta"})}),(0,O.jsx)(w.Gr,{href:C.Qb,className:D,children:(0,O.jsx)(d.sA,{id:"ListingPage.communitySuggestEdit"})})]}):null};var q=i(4200);const $=e=>{const{isOwnListing:t,listingId:i,currentUser:a,isPremium:n,publicData:s}=e,l=n||(0,b.FJ)(a),o=(0,b.Ht)({attributes:{publicData:s}});return t&&i&&!l&&o?(0,O.jsx)(q.A,{currentUser:a}):null};var B=i(87658),H=i(53901),G=i(84503),V=i(81942);const z=e=>{const{reviews:t=[],aggregate:i,authorDisplayName:a}=e;return 0===t.length?null:(0,O.jsxs)("section",{className:V.A.sectionReviews,children:[(0,O.jsx)(w.DZ,{as:"h2",rootClassName:V.A.sectionHeadingWithExtraMargin,children:(0,O.jsx)(d.sA,{id:"ListingPage.authorOtherReviewsTitle",values:{name:a,count:t.length}})}),null!==i&&void 0!==i&&i.average&&(null===i||void 0===i?void 0:i.count)>0?(0,O.jsxs)("p",{className:V.A.authorAggregateRating,children:[(0,O.jsx)(w.Un,{rating:Math.round(i.average),reviewStarClassName:V.A.authorAggregateStar}),(0,O.jsx)(d.sA,{id:"ListingPage.authorOtherReviewsAggregate",values:{average:i.average,count:i.count,name:a}})]}):null,(0,O.jsx)(w.Kf,{reviews:t.slice(0,10)})]})};var K=i(95565);const Q=e=>{let{rating:t}=e;return(0,O.jsx)("span",{className:V.A.openReviewStars,"aria-label":`${t} out of 5`,children:[1,2,3,4,5].map(e=>(0,O.jsx)("span",{className:e<=Math.round(t)?V.A.openReviewStarFilled:V.A.openReviewStarEmpty,children:"\u2605"},e))})},J=e=>{let{value:t,onChange:i,disabled:a}=e;return(0,O.jsx)("div",{className:V.A.openReviewStarPicker,role:"radiogroup",children:[1,2,3,4,5].map(e=>(0,O.jsx)("button",{type:"button",role:"radio","aria-checked":t===e,"aria-label":`${e} star${e>1?"s":""}`,disabled:a,className:e<=t?V.A.openReviewStarOn:V.A.openReviewStarOff,onClick:()=>i(e),children:"\u2605"},e))})},Y=e=>{var t;const{publicData:i,metadata:n,listingId:s,currentUser:l,isOwnListing:o}=e,r=(0,d.tz)(),c=!0===(null===i||void 0===i?void 0:i.Open_Reviews)&&(null===i||void 0===i?void 0:i.categoryLevel2)===b.gC.Flight_schools,[u,g]=(0,a.useState)(null),[h,v]=(0,a.useState)(0),[m,y]=(0,a.useState)(""),[p,x]=(0,a.useState)(!1),[f,L]=(0,a.useState)(null);if(!c)return null;const _=u||(Array.isArray(null===n||void 0===n?void 0:n.openReviews)?n.openReviews:[]),j=!(null===l||void 0===l||!l.id),A=null===l||void 0===l||null===(t=l.id)||void 0===t?void 0:t.uuid,N=A?_.find(e=>e.userId===A):null,S=_.filter(e=>!0===e.approved),k=[...N&&!0!==N.approved?[{...N,pending:!0}]:[],...S],I=S.length>0?S.reduce((e,t)=>e+(t.rating||0),0)/S.length:null,C=e=>{try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short"})}catch(t){return""}};return(0,O.jsxs)("section",{className:V.A.openReviewsSection,children:[(0,O.jsx)(w.DZ,{as:"h2",rootClassName:V.A.sectionHeadingWithExtraMargin,children:(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsTitle"})}),null!=I?(0,O.jsxs)("p",{className:V.A.openReviewAggregate,children:[(0,O.jsx)(Q,{rating:I}),(0,O.jsxs)("span",{className:V.A.openReviewAggregateText,children:[I.toFixed(1)," \xb7"," ",(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsCount",values:{count:k.length}})]})]}):0===k.length?(0,O.jsx)("p",{className:V.A.openReviewsEmpty,children:(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsEmpty"})}):null,k.length>0?(0,O.jsx)("ul",{className:V.A.openReviewsList,children:k.map((e,t)=>(0,O.jsxs)("li",{className:V.A.openReviewItem,children:[(0,O.jsx)("div",{className:V.A.openReviewHeaderRow,children:(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{className:V.A.openReviewAuthor,children:e.name}
2),e.pending?(0,O.jsx)("span",{className:V.A.openReviewPendingChip,children:(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsPendingChip"})}):null,(0,O.jsxs)("div",{className:V.A.openReviewMeta,children:[(0,O.jsx)(Q,{rating:e.rating}),(0,O.jsx)("span",{className:V.A.openReviewWhen,children:C(e.at)})]})]})}),(0,O.jsx)("p",{className:V.A.openReviewText,children:e.text})]},e.userId||t))}):null,o?null:N?(0,O.jsx)("p",{className:V.A.openReviewLoginPrompt,children:(0,O.jsx)(d.sA,{id:!0===N.approved?"ListingPage.openReviewsAlreadyReviewed":"ListingPage.openReviewsPendingNote"})}):j?(0,O.jsxs)("form",{className:V.A.openReviewForm,onSubmit:e=>{e.preventDefault(),p||h<1||!m.trim()||(x(!0),L(null),(0,K.kk)({listingId:s,rating:h,text:m.trim()}).then(e=>{g(e.openReviews||[]),y(""),v(0)}).catch(()=>{L(r.formatMessage({id:"ListingPage.openReviewsError"}))}).finally(()=>x(!1)))},children:[(0,O.jsx)("p",{className:V.A.openReviewFormTitle,children:(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsWriteTitle"})}),(0,O.jsx)(J,{value:h,onChange:v,disabled:p}),(0,O.jsx)("textarea",{className:V.A.openReviewTextarea,value:m,maxLength:2e3,rows:4,placeholder:r.formatMessage({id:"ListingPage.openReviewsPlaceholder"}),onChange:e=>y(e.target.value),disabled:p}),f?(0,O.jsx)("p",{className:V.A.openReviewError,children:f}):null,(0,O.jsx)(w.jn,{type:"submit",className:V.A.openReviewSubmit,inProgress:p,disabled:p||h<1||!m.trim(),children:(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsSubmit"})})]}):(0,O.jsx)("p",{className:V.A.openReviewLoginPrompt,children:(0,O.jsx)(w.GF,{name:"LoginPage",children:(0,O.jsx)(d.sA,{id:"ListingPage.openReviewsLogin"})})})]})};var Z=i(18505),X=i(49640),ee=i(37741),te=i(63470);const ie=e=>{var t,i,n;const{listing:s,variantPrefix:l,aspectWidth:o,aspectHeight:r,currentUser:c,onToggleFavorites:d}=e,u=s.images,g=[l,`${l}-2x`,`${l}-4x`],[h,v]=(0,a.useState)(!1),m=null===c||void 0===c||null===(t=c.attributes.profile.privateData.favorites)||void 0===t?void 0:t.includes(s.id.uuid),y=(0,b.EA)(s),[p,x]=(0,a.useState)(y);(0,a.useEffect)(()=>{x(y)},[y]);return(0,O.jsxs)("section",{className:V.A.productGallery,style:{position:"relative"},children:[(0,O.jsx)(ee.A,{images:u,imageVariants:["scaled-small","scaled-medium","scaled-large","scaled-xlarge"],thumbnailVariants:g,aspectWidth:o,aspectHeight:r,onOpenShare:()=>v(!0),toggleFavorites:e=>{e.stopPropagation(),c&&x(e=>Math.max(0,e+(m?-1:1))),"function"===typeof d&&d(m)},isFavorite:m,HeartIcon:e=>{let{filled:t}=e;return(0,O.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{height:"19px",width:"19px",verticalAlign:"middle",fill:t?"red":"none",stroke:t?"none":"black",strokeWidth:1.4,transition:"all 0.2s ease"},children:(0,O.jsx)("path",{d:"M12.1 8.64l-.1.1-.11-.1C10.14 6.6 7.4 6.6 5.5 8.5               c-1.9 1.9-1.9 4.63 0 6.54l6.6 6.6 6.6-6.6               c1.9-1.9 1.9-4.63 0-6.54-1.9-1.9-4.64-1.9-6.54 0z"})})},favoriteCount:p}),(0,O.jsx)(te.A,{isOpen:h,onClose:()=>v(!1),title:(null===(i=s.attributes)||void 0===i?void 0:i.title)||"",imageUrl:null===u||void 0===u||null===(n=u[0])||void 0===n||null===(n=n.attributes)||void 0===n||null===(n=n.variants)||void 0===n||null===(n=n["scaled-medium"])||void 0===n?void 0:n.url})]})};var ae=i(83397),ne=i(22044),se=i(77784);const le=(0,se.A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),oe=(0,se.A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),re="SectionMoreProvidersNearby_section__JPEqt",ce="SectionMoreProvidersNearby_heading__4klBG p",de="SectionMoreProvidersNearby_headingLink__YlDxh",ue="SectionMoreProvidersNearby_carousel__FFJ+n",ge="SectionMoreProvidersNearby_arrow__xFrt-",he="SectionMoreProvidersNearby_arrowLeft__Y5QA1",ve="SectionMoreProvidersNearby_arrowRight__MUciZ",me="SectionMoreProvidersNearby_cards__yrXia",ye="SectionMoreProvidersNearby_cardItem__8gyCd",pe="SectionMoreProvidersNearby_card__opIkx",xe=["(max-width: 1023px) 78vw","25vw"].join(", "),be=e=>{const{listings:t=[],titleId:i="ListingPage.moreProvidersNearbyTitle",titleValues:n={},titleLink:s=null}=e,l=(0,d.tz)(),o=(0,a.useRef)(null),[r,u]=(0,a.useState)(!1),[g,h]=(0,a.useState)(!1),v=(0,a.useCallback)(()=>{const e=o.current;if(!e)return;const{scrollLeft:t,clientWidth:i,scrollWidth:a}=e;u(t>1),h(t+i<a-1)},[]);if((0,a.useEffect)(()=>{v();const e=o.current;if(e)return e.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{e.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[v,t.length]),!t.length)return null;const m=e=>{const t=o.current;t&&t.scrollBy({left:e*Math.round(.8*t.clientWidth),behavior:"smooth"})};return(0,O.jsxs)("section",{className:re,children:[(0,O.jsx)(w.DZ,{as:"h2",rootClassName:ce,children:s?(0,O.jsx)(w.GF,{name:s.name,params:s.params||{},to:s.to,className:de,children:(0,O.jsx)(d.sA,{id:i,values:n})}):(0,O.jsx)(d.sA,{id:i,values:n})}),(0,O.jsxs)("div",{className:ue,children:[r?(0,O.jsx)("button",{type:"button",className:c()(ge,he),onClick:()=>m(-1),"aria-label":l.formatMessage({id:"SectionMoreProvidersNearby.scrollLeft"}),children:(0,O.jsx)(le,{size:22})}):null,(0,O.jsx)("ul",{className:me,ref:o,children:t.map(e=>(0,O.jsx)("li",{className:ye,children:(0,O.jsx)(w.l,{className:pe,listing:e,renderSizes:xe})},e.id.uuid))}),g?(0,O.jsx)("button",{type:"button",className:c()(ge,ve),onClick:()=>m(1),"aria-label":l.formatMessage({id:"SectionMoreProvidersNearby.scrollRight"}),children:(0,O.jsx)(oe,{size:22})}):null]})]})},fe=JSON.parse('[{"city":"New York","state":"New York","lat":40.71,"lon":-74.01},{"city":"Los Angeles","state":"California","lat":34.05,"lon":-118.24}
2,{"city":"Chicago","state":"Illinois","lat":41.88,"lon":-87.63},{"city":"Houston","state":"Texas","lat":29.76,"lon":-95.37},{"city":"Phoenix","state":"Arizona","lat":33.45,"lon":-112.07},{"city":"Philadelphia","state":"Pennsylvania","lat":39.95,"lon":-75.17},{"city":"San Antonio","state":"Texas","lat":29.42,"lon":-98.49},{"city":"San Diego","state":"California","lat":32.72,"lon":-117.16},{"city":"Dallas","state":"Texas","lat":32.78,"lon":-96.8},{"city":"Austin","state":"Texas","lat":30.27,"lon":-97.74},{"city":"Jacksonville","state":"Florida","lat":30.33,"lon":-81.66},{"city":"Fort Worth","state":"Texas","lat":32.76,"lon":-97.33},{"city":"San Jose","state":"California","lat":37.34,"lon":-121.89},{"city":"Columbus","state":"Ohio","lat":39.96,"lon":-83},{"city":"Charlotte","state":"North Carolina","lat":35.23,"lon":-80.84},{"city":"Indianapolis","state":"Indiana","lat":39.77,"lon":-86.16},{"city":"San Francisco","state":"California","lat":37.77,"lon":-122.42},{"city":"Seattle","state":"Washington","lat":47.61,"lon":-122.33},{"city":"Denver","state":"Colorado","lat":39.74,"lon":-104.99},{"city":"Washington","state":"District Of Columbia","lat":38.91,"lon":-77.04},{"city":"Boston","state":"Massachusetts","lat":42.36,"lon":-71.06},{"city":"Nashville","state":"Tennessee","lat":36.16,"lon":-86.78},{"city":"El Paso","state":"Texas","lat":31.76,"lon":-106.49},{"city":"Oklahoma City","state":"Oklahoma","lat":35.47,"lon":-97.52},{"city":"Las Vegas","state":"Nevada","lat":36.17,"lon":-115.14},{"city":"Detroit","state":"Michigan","lat":42.33,"lon":-83.05},{"city":"Memphis","state":"Tennessee","lat":35.15,"lon":-90.05},{"city":"Louisville","state":"Kentucky","lat":38.25,"lon":-85.76},{"city":"Portland","state":"Oregon","lat":45.52,"lon":-122.68},{"city":"Baltimore","state":"Maryland","lat":39.29,"lon":-76.61},{"city":"Milwaukee","state":"Wisconsin","lat":43.04,"lon":-87.91},{"city":"Albuquerque","state":"New Mexico","lat":35.08,"lon":-106.65},{"city":"Tucson","state":"Arizona","lat":32.22,"lon":-110.97},{"city":"Fresno","state":"California","lat":36.74,"lon":-119.78},{"city":"Sacramento","state":"California","lat":38.58,"lon":-121.49},{"city":"Kansas City","state":"Missouri","lat":39.1,"lon":-94.58},{"city":"Atlanta","state":"Georgia","lat":33.75,"lon":-84.39},{"city":"Miami","state":"Florida","lat":25.76,"lon":-80.19},{"city":"Tampa","state":"Florida","lat":27.95,"lon":-82.46},{"city":"Orlando","state":"Florida","lat":28.54,"lon":-81.38},{"city":"Minneapolis","state":"Minnesota","lat":44.98,"lon":-93.27},{"city":"St. Louis","state":"Missouri","lat":38.63,"lon":-90.2},{"city":"Pittsburgh","state":"Pennsylvania","lat":40.44,"lon":-79.99},{"city":"Cleveland","state":"Ohio","lat":41.5,"lon":-81.69},{"city":"Cincinnati","state":"Ohio","lat":39.1,"lon":-84.51},{"city":"New Orleans","state":"Louisiana","lat":29.95,"lon":-90.07},{"city":"Raleigh","state":"North Carolina","lat":35.78,"lon":-78.64},{"city":"Richmond","state":"Virginia","lat":37.54,"lon":-77.44},{"city":"Virginia Beach","state":"Virginia","lat":36.85,"lon":-75.98},{"city":"Salt Lake City","state":"Utah","lat":40.76,"lon":-111.89},{"city":"Boise","state":"Idaho","lat":43.62,"lon":-116.2},{"city":"Omaha","state":"Nebraska","lat":41.26,"lon":-95.94},{"city":"Des Moines","state":"Iowa","lat":41.59,"lon":-93.62},{"city":"Wichita","state":"Kansas","lat":37.69,"lon":-97.34},{"city":"Tulsa","state":"Oklahoma","lat":36.15,"lon":-95.99},{"city":"Little Rock","state":"Arkansas","lat":34.75,"lon":-92.29},{"city":"Birmingham","state":"Alabama","lat":33.52,"lon":-86.8},{"city":"Jackson","state":"Mississippi","lat":32.3,"lon":-90.18},{"city":"Charleston","state":"South Carolina","lat":32.78,"lon":-79.93},{"city":"Columbia","state":"South Carolina","lat":34,"lon":-81.03},{"city":"Knoxville","state":"Tennessee","lat":35.96,"lon":-83.92},{"city":"Chattanooga","state":"Tennessee","lat":35.05,"lon":-85.31},{"city":"Huntsville","state":"Alabama","lat":34.73,"lon":-86.59},{"city":"Spokane","state":"Washington","lat":47.66,"lon":-117.43},{"city":"Colorado Springs","state":"Colorado","lat":38.83,"lon":-104.82},{"city":"Reno","state":"Nevada","lat":39.53,"lon":-119.81},{"city":"Bakersfield","state":"California","lat":35.37,"lon":-119.02},{"city":"Buffalo","state":"New York","lat":42.89,"lon":-78.88},{"city":"Rochester","state":"New York","lat":43.16,"lon":-77.61},{"city":"Albany","state":"New York","lat":42.65,"lon":-73.76},{"city":"Hartford","state":"Connecticut","lat":41.77,"lon":-72.67},{"city":"Providence","state":"Rhode Island","lat":41.82,"lon":-71.41},{"city":"Manchester","state":"New Hampshire","lat":42.99,"lon":-71.46},{"city":"Burlington","state":"Vermont","lat":44.48,"lon":-73.21},{"city":"Portland","state":"Maine","lat":43.66,"lon":-70.26},{"city":"Anchorage","state":"Alaska","lat":61.22,"lon":-149.9},{"city":"Honolulu","state":"Hawaii","lat":21.31,"lon":-157.86},{"city":"Billings","state":"Montana","lat":45.78,"lon":-108.5},{"city":"Fargo","state":"North Dakota","lat":46.88,"lon":-96.79},{"city":"Sioux Falls","state":"South Dakota","lat":43.55,"lon":-96.73},{"city":"Cheyenne","state":"Wyoming","lat":41.14,"lon":-104.82},{"city":"Wilmington","state":"Delaware","lat":39.75,"lon":-75.55},{"city":"Charleston","state":"West Virginia","lat":38.35,"lon":-81.63},{"city":"Grand Rapids","state":"Michigan","lat":42.96,"lon":-85.66},{"city":"Madison","state":"Wisconsin","lat":43.07,"lon":-89.4},{"city":"Lexington","state":"Kentucky","lat":38.04,"lon":-84.5}
2,{"city":"Greensboro","state":"North Carolina","lat":36.07,"lon":-79.79},{"city":"Baton Rouge","state":"Louisiana","lat":30.45,"lon":-91.15},{"city":"Fort Lauderdale","state":"Florida","lat":26.12,"lon":-80.14},{"city":"Santa Barbara","state":"California","lat":34.42,"lon":-119.7},{"city":"Ann Arbor","state":"Michigan","lat":42.28,"lon":-83.74},{"city":"Vancouver","state":"Washington","lat":45.64,"lon":-122.66},{"city":"Bend","state":"Oregon","lat":44.06,"lon":-121.31},{"city":"Daytona Beach","state":"Florida","lat":29.18,"lon":-81.06},{"city":"Bolivar","state":"Texas","lat":33.38,"lon":-97.24},{"city":"Riverside","state":"California","lat":33.99,"lon":-117.41},{"city":"Readington","state":"New Jersey","lat":40.58,"lon":-74.74},{"city":"Avalon","state":"California","lat":33.4,"lon":-118.42},{"city":"Aurora","state":"Illinois","lat":41.77,"lon":-88.48},{"city":"Bridgeport","state":"Connecticut","lat":41.16,"lon":-73.13},{"city":"Melbourne","state":"Florida","lat":28.1,"lon":-80.65},{"city":"Greenwood","state":"Illinois","lat":42.4,"lon":-88.38},{"city":"Stanwood","state":"Washington","lat":48.26,"lon":-122.44},{"city":"Fort Collins","state":"Colorado","lat":40.45,"lon":-105.01},{"city":"Fort Pierce","state":"Florida","lat":27.5,"lon":-80.37},{"city":"Fallbrook","state":"California","lat":33.35,"lon":-117.25},{"city":"Englewood","state":"Florida","lat":26.99,"lon":-82.37},{"city":"Wooster","state":"Ohio","lat":40.87,"lon":-81.89},{"city":"Reading","state":"Pennsylvania","lat":40.38,"lon":-75.97},{"city":"Spanish Fork","state":"Utah","lat":40.15,"lon":-111.67},{"city":"Brigham City","state":"Utah","lat":41.55,"lon":-112.06},{"city":"Placerville","state":"California","lat":38.72,"lon":-120.75},{"city":"Inverness","state":"Florida","lat":28.8,"lon":-82.32},{"city":"Lake Wales","state":"Florida","lat":27.92,"lon":-81.61},{"city":"Navarre","state":"Florida","lat":30.41,"lon":-86.83},{"city":"Fairfield","state":"Pennsylvania","lat":39.76,"lon":-77.35},{"city":"Hillsboro","state":"Texas","lat":32.08,"lon":-97.1},{"city":"Olympia","state":"Washington","lat":46.98,"lon":-122.87},{"city":"Newton Falls","state":"Ohio","lat":41.21,"lon":-80.97},{"city":"Ridgeland","state":"South Carolina","lat":32.5,"lon":-80.99},{"city":"Foley","state":"Alabama","lat":30.43,"lon":-87.7},{"city":"Jasper","state":"Georgia","lat":34.45,"lon":-84.46},{"city":"Jefferson","state":"Georgia","lat":34.18,"lon":-83.56},{"city":"Homedale","state":"Idaho","lat":43.61,"lon":-116.92},{"city":"Flushing","state":"Michigan","lat":43.06,"lon":-83.8},{"city":"Carrollton","state":"Ohio","lat":40.6,"lon":-81.07},{"city":"Fort Hood","state":"Texas","lat":31.07,"lon":-97.83},{"city":"Darrington","state":"Washington","lat":48.26,"lon":-121.61},{"city":"Superior","state":"Arizona","lat":33.28,"lon":-111.13},{"city":"Oakdale","state":"California","lat":37.76,"lon":-120.8},{"city":"Archer","state":"Florida","lat":29.62,"lon":-82.51},{"city":"Lagrange","state":"Georgia","lat":33.01,"lon":-85.07},{"city":"Orange","state":"Massachusetts","lat":42.57,"lon":-72.29},{"city":"Moscow Mills","state":"Missouri","lat":38.9,"lon":-90.96},{"city":"Toms River","state":"New Jersey","lat":39.93,"lon":-74.3},{"city":"Greenville","state":"Texas","lat":33.07,"lon":-96.07},{"city":"Immokalee","state":"Florida","lat":26.43,"lon":-81.4},{"city":"Thomaston","state":"Georgia","lat":32.96,"lon":-84.26},{"city":"Hopkinsville","state":"Kentucky","lat":36.86,"lon":-87.46},{"city":"East Hampton","state":"New York","lat":40.96,"lon":-72.25},{"city":"Pinehurst","state":"North Carolina","lat":35.24,"lon":-79.39},{"city":"Dayton","state":"Ohio","lat":39.76,"lon":-84.24},{"city":"Landrum","state":"South Carolina","lat":35.16,"lon":-82.12},{"city":"Laurens","state":"South Carolina","lat":34.51,"lon":-81.95},{"city":"Huntsville","state":"Texas","lat":30.75,"lon":-95.59},{"city":"Berkeley Springs","state":"West Virginia","lat":39.69,"lon":-78.17},{"city":"Wickenburg","state":"Arizona","lat":33.97,"lon":-112.8},{"city":"Statesboro","state":"Georgia","lat":32.48,"lon":-81.74},{"city":"Jackson","state":"Michigan","lat":42.26,"lon":-84.46},{"city":"South Haven","state":"Michigan","lat":42.35,"lon":-86.26},{"city":"Crookston","state":"Minnesota","lat":47.84,"lon":-96.62},{"city":"Aurora","state":"Missouri","lat":36.96,"lon":-93.7},{"city":"Ocean City","state":"New Jersey","lat":39.26,"lon":-74.61},{"city":"Skaneateles","state":"New York","lat":42.91,"lon":-76.44},{"city":"Independence","state":"Oregon","lat":44.87,"lon":-123.2},{"city":"Hurricane","state":"Utah","lat":37.14,"lon":-113.31},{"city":"New Richmond","state":"Wisconsin","lat":45.15,"lon":-92.54},{"city":"Dothan","state":"Alabama","lat":31.32,"lon":-85.45},{"city":"Marina","state":"California","lat":36.68,"lon":-121.76},{"city":"Paso Robles","state":"California","lat":35.67,"lon":-120.63},{"city":"South Lake Tahoe","state":"California","lat":38.89,"lon":-120},{"city":"Delphi","state":"Indiana","lat":40.54,"lon":-86.68},{"city":"Knox","state":"Indiana","lat":41.33,"lon":-86.66},{"city":"Lake Village","state":"Indiana","lat":41.15,"lon":-87.46},{"city":"Bogalusa","state":"Louisiana","lat":30.81,"lon":-89.86},{"city":"Albert Lea","state":"Minnesota","lat":43.68,"lon":-93.37},{"city":"Faribault","state":"Minnesota","lat":44.33,"lon":-93.31},{"city":"Maple Lake","state":"Minnesota","lat":45.24,"lon":-93.99},{"city":"Argyle","state":"New York","lat":43.25,"lon":-73.47},{"city":"Rocky Mount","state":"North Carolina","lat":35.86,"lon":-77.89},{"city":"Minto","state":"North Dakota","lat":48.29,"lon":-97.39},{"city":"Lindsay","state":"Oklahoma","lat":34.85,"lon":-97.59},{"city":"Grove City","state":"Pennsylvania","lat":41.15,"lon":-80.17},{"city":"Lewisburg","state":"Tennessee","lat":35.51,"lon":-86.8},{"city":"Gonzales","state":"Texas","lat":29.53,"lon":-97.46},{"city":"Culpeper","state":"Virginia","lat":38.53,"lon":-77.86},{"city":"Palmer","state":"Alaska","lat":61.56,"lon":-149.05},{"city":"Courtland","state":"Alabama","lat":34.66,"lon":-87.35},{"city":"Santa Maria","state":"California","lat":34.9,"lon":-120.46},{"city":"Wyoming","state":"Delaware","lat":39.12,"lon":-75.58},{"city":"Pahokee","state":"Florida","lat":26.79,"lon":-80.69},{"city":"Malad City","state":"Idaho","lat":42.17,"lon":-112.29}
2,{"city":"Mount Morris","state":"Illinois","lat":42.04,"lon":-89.39},{"city":"Clinton","state":"Iowa","lat":41.83,"lon":-90.33},{"city":"Herington","state":"Kansas","lat":38.69,"lon":-96.81},{"city":"Abbeville","state":"Louisiana","lat":29.98,"lon":-92.08},{"city":"Bangor","state":"Maine","lat":44.81,"lon":-68.83},{"city":"Battle Creek","state":"Michigan","lat":42.31,"lon":-85.25},{"city":"Gulfport","state":"Mississippi","lat":30.41,"lon":-89.07},{"city":"Clinton","state":"Missouri","lat":38.35,"lon":-93.68},{"city":"Mesquite","state":"Nevada","lat":36.83,"lon":-114.06},{"city":"Binghamton","state":"New York","lat":42.21,"lon":-75.98},{"city":"Taylorsville","state":"North Carolina","lat":35.93,"lon":-81.2},{"city":"Bellefontaine","state":"Ohio","lat":40.37,"lon":-83.82},{"city":"Marion","state":"Ohio","lat":40.62,"lon":-83.06},{"city":"Cascade Locks","state":"Oregon","lat":45.68,"lon":-121.88},{"city":"Williamsport","state":"Pennsylvania","lat":41.24,"lon":-76.92},{"city":"Anderson","state":"South Carolina","lat":34.49,"lon":-82.71},{"city":"Jamestown","state":"Tennessee","lat":36.35,"lon":-84.95},{"city":"Lafayette","state":"Tennessee","lat":36.52,"lon":-86.06},{"city":"Sinton","state":"Texas","lat":28.04,"lon":-97.54},{"city":"Clarksville","state":"Virginia","lat":36.6,"lon":-78.56},{"city":"Colfax","state":"Washington","lat":46.77,"lon":-117.43},{"city":"Appleton","state":"Wisconsin","lat":44.26,"lon":-88.52}]'),Le=JSON.parse('[{"state":"Alabama","code":"AL","n":35.1161,"e":-84.9289,"s":30.0605,"w":-88.4751},{"state":"Alaska","code":"AK","n":71.4849,"e":-131.5112,"s":51.6836,"w":-176.8425},{"state":"Arizona","code":"AZ","n":37.1599,"e":-108.8674,"s":31.1426,"w":-114.8984},{"state":"Arkansas","code":"AR","n":36.6042,"e":-89.6308,"s":32.9783,"w":-94.69},{"state":"California","code":"CA","n":42.0906,"e":-114.232,"s":32.3723,"w":-124.4365},{"state":"Colorado","code":"CO","n":41.1703,"e":-101.9167,"s":36.9515,"w":-109.0886},{"state":"Connecticut","code":"CT","n":42.1557,"e":-71.701,"s":40.9635,"w":-73.6822},{"state":"Delaware","code":"DE","n":39.8787,"e":-75.1593,"s":38.3422,"w":-75.9237},{"state":"District of Columbia","code":"DC","n":39.1475,"e":-76.8377,"s":38.521,"w":-77.7151},{"state":"Florida","code":"FL","n":31.0439,"e":-79.8851,"s":24.3561,"w":-87.549},{"state":"Georgia","code":"GA","n":35.0544,"e":-81.0021,"s":30.5815,"w":-85.4905},{"state":"Hawaii","code":"HI","n":22.176,"e":-154.8485,"s":19.5203,"w":-159.8032},{"state":"Idaho","code":"ID","n":49.1905,"e":-110.8913,"s":41.8236,"w":-117.2154},{"state":"Illinois","code":"IL","n":42.6221,"e":-87.3295,"s":36.8641,"w":-91.3924},{"state":"Indiana","code":"IN","n":41.9194,"e":-84.6427,"s":37.8119,"w":-87.7949},{"state":"Iowa","code":"IA","n":43.6522,"e":-90.129,"s":40.2599,"w":-96.6047},{"state":"Kansas","code":"KS","n":40.1054,"e":-94.4095,"s":36.8008,"w":-102.08},{"state":"Kentucky","code":"KY","n":39.2488,"e":-82.3664,"s":36.3256,"w":-89.1178},{"state":"Louisiana","code":"LA","n":33.1837,"e":-89.6208,"s":29.2411,"w":-94.2102},{"state":"Maine","code":"ME","n":47.4855,"e":-66.8127,"s":43.1938,"w":-71.1479},{"state":"Maryland","code":"MD","n":39.9085,"e":-74.924,"s":37.8182,"w":-79.5359},{"state":"Massachusetts","code":"MA","n":42.9954,"e":-69.7897,"s":41.0533,"w":-73.6032},{"state":"Michigan","code":"MI","n":47.3684,"e":-82.3288,"s":41.5359,"w":-90.3314},{"state":"Minnesota","code":"MN","n":49.1415,"e":-90.1846,"s":43.3954,"w":-97.143},{"state":"Mississippi","code":"MS","n":35.1788,"e":-87.9661,"s":30.163,"w":-91.4973},{"state":"Missouri","code":"MO","n":40.7402,"e":-89.1597,"s":35.842,"w":-95.5673},{"state":"Montana","code":"MT","n":49.2,"e":-103.8714,"s":44.4884,"w":-116.1035},{"state":"Nebraska","code":"NE","n":43.0567,"e":-95.392,"s":39.8462,"w":-103.8774},{"state":"Nevada","code":"NV","n":42.1758,"e":-113.8559,"s":35.1059,"w":-120.0764},{"state":"New Hampshire","code":"NH","n":45.0875,"e":-70.6233,"s":42.5824,"w":-72.5682},{"state":"New Jersey","code":"NJ","n":41.4002,"e":-73.8608,"s":38.8084,"w":-75.3846},{"state":"New Mexico","code":"NM","n":37.0369,"e":-102.8776,"s":31.6804,"w":-109.1376}
2,{"state":"New York","code":"NY","n":45.1362,"e":-71.7205,"s":40.4399,"w":-79.8859},{"state":"North Carolina","code":"NC","n":36.6614,"e":-75.4178,"s":33.7093,"w":-84.063},{"state":"North Dakota","code":"ND","n":49.1973,"e":-96.4072,"s":45.8149,"w":-104.1821},{"state":"Ohio","code":"OH","n":41.9778,"e":-80.4196,"s":38.2191,"w":-84.9844},{"state":"Oklahoma","code":"OK","n":37.1092,"e":-94.4213,"s":33.7094,"w":-102.7104},{"state":"Oregon","code":"OR","n":46.358,"e":-116.275,"s":41.8011,"w":-124.7178},{"state":"Pennsylvania","code":"PA","n":42.2831,"e":-74.8106,"s":39.557,"w":-80.6134},{"state":"Rhode Island","code":"RI","n":42.1208,"e":-71.0815,"s":40.9681,"w":-72.0034},{"state":"South Carolina","code":"SC","n":35.3573,"e":-78.5239,"s":32.0245,"w":-83.0859},{"state":"South Dakota","code":"SD","n":46.1184,"e":-96.2855,"s":42.3408,"w":-104.0618},{"state":"Tennessee","code":"TN","n":36.8219,"e":-81.6251,"s":34.8158,"w":-90.254},{"state":"Texas","code":"TX","n":36.6129,"e":-93.5425,"s":25.7061,"w":-106.5764},{"state":"Utah","code":"UT","n":41.9918,"e":-108.9675,"s":36.8105,"w":-114.2287},{"state":"Vermont","code":"VT","n":45.1389,"e":-71.6264,"s":42.6913,"w":-73.5587},{"state":"Virginia","code":"VA","n":39.3435,"e":-75.561,"s":36.3725,"w":-83.4178},{"state":"Washington","code":"WA","n":49.1984,"e":-116.8437,"s":45.4205,"w":-124.7626},{"state":"West Virginia","code":"WV","n":40.7331,"e":-77.783,"s":37.0959,"w":-82.7604},{"state":"Wisconsin","code":"WI","n":47.0662,"e":-86.724,"s":42.2978,"w":-92.8899}
2,{"state":"Wyoming","code":"WY","n":45.1117,"e":-103.9347,"s":40.8374,"w":-111.2385}]'),_e=JSON.parse('{"generatedAt":"2026-10-02T18:50:51.854Z","national":1021,"states":{"Alabama":34,"Arizona":44,"Arkansas":35,"California":105,"Colorado":19,"Connecticut":6,"Delaware":6,"District of Columbia":6,"Florida":122,"Georgia":52,"Idaho":33,"Illinois":62,"Indiana":48,"Iowa":35,"Kansas":22,"Kentucky":54,"Louisiana":13,"Maine":11,"Maryland":60,"Massachusetts":34,"Michigan":78,"Minnesota":37,"Mississippi":33,"Missouri":45,"Montana":27,"Nebraska":11,"Nevada":68,"New Hampshire":11,"New Jersey":40,"New Mexico":14,"New York":79,"North Carolina":75,"North Dakota":6,"Ohio":51,"South Carolina":62,"Oklahoma":72,"Oregon":42,"Pennsylvania":51,"Texas":112,"Rhode Island":1,"South Dakota":9,"Tennessee":70,"Utah":22,"Vermont":20,"Virginia":68,"Washington":43,"West Virginia":28,"Wisconsin":46,"Wyoming":19,"Alaska":26,"Hawaii":7},"cities":{"New York, New York":13,"Los Angeles, California":31,"Chicago, Illinois":13,"Houston, Texas":15,"Phoenix, Arizona":21,"Philadelphia, Pennsylvania":7,"San Antonio, Texas":9,"San Diego, California":17,"Dallas, Texas":29,"Austin, Texas":9,"Jacksonville, Florida":5,"Fort Worth, Texas":33,"San Jose, California":3,"Columbus, Ohio":10,"Charlotte, North Carolina":6,"Indianapolis, Indiana":5,"San Francisco, California":3,"Seattle, Washington":15,"Denver, Colorado":11,"Washington, District Of Columbia":12,"Boston, Massachusetts":6,"Nashville, Tennessee":13,"El Paso, Texas":4,"Oklahoma City, Oklahoma":3,"Las Vegas, Nevada":8,"Detroit, Michigan":4,"Memphis, Tennessee":8,"Louisville, Kentucky":5,"Portland, Oregon":14,"Baltimore, Maryland":11,"Milwaukee, Wisconsin":2,"Albuquerque, New Mexico":5,"Tucson, Arizona":3,"Fresno, California":3,"Sacramento, California":8,"Kansas City, Missouri":6,"Atlanta, Georgia":9,"Miami, Florida":23,"Tampa, Florida":14,"Orlando, Florida":28,"Minneapolis, Minnesota":5,"St. Louis, Missouri":8,"Pittsburgh, Pennsylvania":4,"Cleveland, Ohio":6,"Cincinnati, Ohio":5,"New Orleans, Louisiana":3,"Raleigh, North Carolina":5,"Richmond, Virginia":4,"Virginia Beach, Virginia":5,"Salt Lake City, Utah":11,"Boise, Idaho":12,"Omaha, Nebraska":2,"Des Moines, Iowa":2,"Wichita, Kansas":9,"Tulsa, Oklahoma":5,"Little Rock, Arkansas":6,"Birmingham, Alabama":4,"Jackson, Mississippi":1,"Charleston, South Carolina":2,"Columbia, South Carolina":4,"Knoxville, Tennessee":5,"Chattanooga, Tennessee":6,"Huntsville, Alabama":4,"Spokane, Washington":6,"Colorado Springs, Colorado":1,"Reno, Nevada":9,"Bakersfield, California":2,"Buffalo, New York":1,"Rochester, New York":4,"Albany, New York":6,"Hartford, Connecticut":5,"Providence, Rhode Island":1,"Manchester, New Hampshire":5,"Burlington, Vermont":3,"Portland, Maine":3,"Anchorage, Alaska":17,"Honolulu, Hawaii":5,"Billings, Montana":4,"Fargo, North Dakota":2,"Sioux Falls, South Dakota":4,"Cheyenne, Wyoming":0,"Wilmington, Delaware":3,"Charleston, West Virginia":1,"Grand Rapids, Michigan":6,"Madison, Wisconsin":2,"Lexington, Kentucky":3,"Greensboro, North Carolina":4,"Baton Rouge, Louisiana":2,"Fort Lauderdale, Florida":21,"Santa Barbara, California":4,"Ann Arbor, Michigan":9,"Vancouver, Washington":14,"Bend, Oregon":7,"Daytona Beach, Florida":17,"Bolivar, Texas":18,"Riverside, California":30,"Readington, New Jersey":12,"Avalon, California":15,"Aurora, Illinois":17,"Bridgeport, Connecticut":10,"Melbourne, Florida":8,"Greenwood, Illinois":19,"Stanwood, Washington":6,"Fort Collins, Colorado":6,"Fort Pierce, Florida":11,"Fallbrook, California":25,"Englewood, Florida":6,"Wooster, Ohio":7,"Reading, Pennsylvania":10,"Spanish Fork, Utah":6,"Brigham City, Utah":4,"Placerville, California":5,"Inverness, Florida":7,"Lake Wales, Florida":13,"Navarre, Florida":6,"Fairfield, Pennsylvania":6,"Hillsboro, Texas":10,"Olympia, Washington":10,"Newton Falls, Ohio":6,"Ridgeland, South Carolina":4,"Foley, Alabama":6,"Jasper, Georgia":9,"Jefferson, Georgia":7,"Homedale, Idaho":7,"Flushing, Michigan":2,"Carrollton, Ohio":5,"Fort Hood, Texas":7,"Darrington, Washington":4,"Superior, Arizona":8,"Oakdale, California":3,"Archer, Florida":6,"Lagrange, Georgia":3,"Orange, Massachusetts":2,"Moscow Mills, Missouri":4,"Toms River, New Jersey":7,"Greenville, Texas":4,"Immokalee, Florida":5,"Thomaston, Georgia":7,"Hopkinsville, Kentucky":3,"East Hampton, New York":5,"Pinehurst, North Carolina":3,"Dayton, Ohio":5,"Landrum, South Carolina":6,"Laurens, South Carolina":3,"Huntsville, Texas":4,"Berkeley Springs, West Virginia":2,"Wickenburg, Arizona":1,"Statesboro, Georgia":1,"Jackson, Michigan":5,"South Haven, Michigan":4,"Crookston, Minnesota":3,"Aurora, Missouri":4,"Ocean City, New Jersey":2,"Skaneateles, New York":3,"Independence, Oregon":9,"Hurricane, Utah":2,"New Richmond, Wisconsin":1,"Dothan, Alabama":3,"Marina, California":1,"Paso Robles, California":1,"South Lake Tahoe, California":2,"Delphi, Indiana":2,"Knox, Indiana":2,"Lake Village, Indiana":3,"Bogalusa, Louisiana":1,"Albert Lea, Minnesota":4,"Faribault, Minnesota":1,"Maple Lake, Minnesota":7,"Argyle, New York":4,"Rocky Mount, North Carolina":4,"Minto, North Dakota":2,"Lindsay, Oklahoma":0,"Grove City, Pennsylvania":3,"Lewisburg, Tennessee":3,"Gonzales, Texas":2,"Culpeper, Virginia":5,"Palmer, Alaska":8,"Courtland, Alabama":2,"Santa Maria, California":1,"Wyoming, Delaware":3,"Pahokee, Florida":17,"Malad City, Idaho":2,"Mount Morris, Illinois":4,"Clinton, Iowa":1,"Herington, Kansas":0,"Abbeville, Louisiana":1,"Bangor, Maine":1,"Battle Creek, Michigan":7,"Gulfport, Mississippi":1,"Clinton, Missouri":3,"Mesquite, Nevada":2,"Binghamton, New York":2,"Taylorsville, North Carolina":5,"Bellefontaine, Ohio":7,"Marion, Ohio":5,"Cascade Locks, Oregon":5,"Williamsport, Pennsylvania":1,"Anderson, South Carolina":5,"Jamestown, Tennessee":1,"Lafayette, Tennessee":5,"Sinton, Texas":2,"Clarksville, Virginia":1,"Colfax, Washington":0,"Appleton, Wisconsin":6}}'),we={cfi:"pub_categoryLevel1=Flight-Instructors-Schools-Clubs&pub_categoryLevel2=CFI-Flight-Instructors",schools:"pub_categoryLevel1=Flight-Instructors-Schools-Clubs&pub_categoryLevel2=Flight-Schools",training:"pub_categoryLevel1=Specific-Training-In-Person",dpe:"pub_categoryLevel1=dpe-checkride",services:"pub_categoryLevel1=aviation-services",events:"pub_categoryLevel1=aviation-events",aircraft:"pub_categoryLevel1=aircraft_for_sale"},je={...we,online:"pub_categoryLevel1=1-on-1-Live-Session",gear:"pub_categoryLevel1=pilot-gears-accessories"},Ae="pub_categoryLevel1=Flight-Instructors-Schools-Clubs",Ne={discovery:"pub_training_types=has_any%3ADiscovery-Flights",ppl:"pub_Certifications_Training=has_any%3APPL",sport:"pub_Certifications_Training=has_any%3ASport-Pilot-License",ir:"pub_Certifications_Training=has_any%3AIR",cpl:"pub_Certifications_Training=has_any%3ACPL",mer:"pub_Certifications_Training=has_any%3AMER",cfi:"pub_Certifications_Training=has_any%3ACFI",cfii:"pub_Certifications_Training=has_any%3ACFII"},Se=.45,ke=.55,Ie=(e,t)=>e.lat<=t.n&&e.lat>=t.s&&e.lng<=t.e&&e.lng>=t.w,Ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?`/s?${Ae}&${Ne[t]}`:`/s?${je[e]}`},Pe=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const a=i?Ae:we[t],n=i?`&${Ne[i]}`:"";return`/s?address=${encodeURIComponent(`${e.city}, ${e.state}`)}&bounds=${s=e,[(s.lat+Se).toFixed(4),(s.lon+ke).toFixed(4),(s.lat-Se).toFixed(4),(s.lon-ke).toFixed(4)].join("%2C")}&${a}${n}`;var s},Me=(e,t)=>
2{const i=[e.n,e.e,e.s,e.w].map(e=>e.toFixed(4)).join("%2C");return`/s?address=${encodeURIComponent(e.state)}&bounds=${i}&${we[t]}`},Fe=function(e,t){var i;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_e;return"dpe"!==t||((null===a||void 0===a||null===(i=a.cities)||void 0===i?void 0:i[`${e.city}, ${e.state}`])||0)>=1},Te=e=>e*Math.PI/180,Re=(e,t)=>{const i=Math.sin(Te(t.lat-e.lat)/2)**2+Math.cos(Te(e.lat))*Math.cos(Te(t.lat))*Math.sin(Te(t.lng-e.lng)/2)**2;return 7917.6*Math.asin(Math.sqrt(i))},De=e=>String(Array.isArray(e)?e[0]:e||"").replace(/_/g," ").trim().toLowerCase(),Ee=e=>{var t,i;const a=null===e||void 0===e||null===(t=e.attributes)||void 0===t?void 0:t.geolocation;if(a&&Number.isFinite(a.lat)&&Number.isFinite(a.lng))return{lat:a.lat,lng:a.lng};const n=(null===e||void 0===e||null===(i=e.attributes)||void 0===i?void 0:i.publicData)||{},s=De(n.City),l=De(n.State_for_inperson),o=s&&fe.find(e=>De(e.city)===s&&(!l||De(e.state)===l));return o?{lat:o.lat,lng:o.lon}:null},Oe=e=>{var t;const{categoryLevel1:i,categoryLevel2:a}=(null===e||void 0===e||null===(t=e.attributes)||void 0===t?void 0:t.publicData)||{};return"Flight-Instructors-Schools-Clubs"===i?"Flight-Schools"===a?"schools":"cfi":"Specific-Training-In-Person"===i?"training":"dpe-checkride"===i?"dpe":"aviation-services"===i?"services":"aviation-events"===i?"events":"aircraft_for_sale"===i?"aircraft":"1-on-1-Live-Session"===i?"online":"pilot-gears-accessories"===i?"gear":null},We=Object.fromEntries(Le.map(e=>[e.code,e])),Ue=Object.fromEntries(Le.map(e=>[De(e.state),e])),qe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_e;if("dpe"!==Oe(e))return[];const a=Ee(e),n=a?t.filter(e=>Ie(a,(e=>({n:Number((e.lat+Se).toFixed(4)),e:Number((e.lon+ke).toFixed(4)),s:Number((e.lat-Se).toFixed(4)),w:Number((e.lon-ke).toFixed(4))}))(e))).map(e=>({c:e,miles:Re(a,{lat:e.lat,lng:e.lon})})).sort((e,t)=>e.miles-t.miles).map(e=>{let{c:t}=e;return t}):[],s=n.find(e=>Fe(e,"dpe",i)),l=function(e,t){var i,a,n;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const l=(null===e||void 0===e||null===(i=e.attributes)||void 0===i?void 0:i.publicData)||{},o=null===(a=String((null===(n=l.location)||void 0===n?void 0:n.address)||"").match(/,\s*([A-Z]{2}),?\s+\d{5}/))||void 0===a?void 0:a[1];return[We[o],Ue[De(l.State)],Ue[De(l.State_for_inperson)],s&&Ue[De(s.state)]].find(e=>e&&(!t||Ie(t,e)))||null}(e,a,n[0]),o=l&&t.some(e=>De(e.city)===De(l.state)&&De(e.state)===De(l.state))?"ListingPage.skyfarerLinkMoreDpesInState":"ListingPage.skyfarerLinkMoreDpesIn",r=l&&function(e,t){var i;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_e;return"dpe"!==t||((null===a||void 0===a||null===(i=a.states)||void 0===i?void 0:i[e.state])||0)>=1}(l,"dpe",i)?{key:"more-dpe-state",labelId:o,values:{place:l.state},path:Me(l,"dpe")}:{key:"more-dpe-national",labelId:"ListingPage.skyfarerLinkMoreDpes",values:{},path:Ce("dpe")};return s?[{key:"more-dpe-city",labelId:"ListingPage.skyfarerLinkMoreDpesIn",values:{place:s.city},path:Pe(s,"dpe")},r]:[r]},$e=["cfi","schools","events","dpe","aircraft","services","training","online","gear"],Be={cfi:["discovery","ppl","ir","cpl","mer","cfi"],schools:["discovery","ppl","ir","cpl","mer","cfi"],training:["discovery","ppl","ir","cpl","mer","cfi"],dpe:["ir","cpl","cfi","cfii","mer","ppl"]},He=["discovery","ppl","sport","ir","cpl","mer"],Ge=(e,t,i)=>t&&we[e]&&Fe(t,e,i)?{key:`popular-${e}`,labelId:`ListingPage.skyfarerLink.${e}`,values:{city:t.city},path:Pe(t,e)}:{key:`popular-${e}`,labelId:`ListingPage.skyfarerLink.national.${e}`,values:{},path:Ce(e)},Ve=(e,t)=>t?{key:`guide-${e}`,labelId:`ListingPage.skyfarerLink.guide.${e}`,values:{city:t.city},path:Pe(t,null,e)}:{key:`guide-${e}`,labelId:`ListingPage.skyfarerLink.national.guide.${e}`,values:{},path:Ce(null,e)},ze=function(e,t){const i=new Set(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]),a=[];for(const n of e){if(a.length>=t)break;i.has(n.city)||(i.add(n.city),a.push(n))}return a},Ke="SectionListingLinksMaybe_root__KiGL0",Qe="SectionListingLinksMaybe_columns__ElAB6",Je="SectionListingLinksMaybe_column__raRlM",Ye="SectionListingLinksMaybe_title__wR5nT",Ze="SectionListingLinksMaybe_list__CycGf",Xe="SectionListingLinksMaybe_item__M3s0i",et="SectionListingLinksMaybe_link__piNwp",tt=e=>{let{listing:t}=e;const i=(0,d.tz)(),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_e;const a=Oe(e),n=we[a]?a:"cfi",s=$e.filter(e=>e!==a).slice(0,8),l=(Be[a]||He).slice(0,6),o=qe(e,t,i),r=new Set(o.map(e=>e.path)),c=e=>[...o,...e],d=Ee(e),u=d?t.map(e=>({...e,miles:Re(d,{lat:e.lat,lng:e.lon})})).filter(e=>e.miles<=250).sort((e,t)=>
2e.miles-t.miles):[];if(u.length>0){const[e,...t]=u,a=t.filter(e=>Fe(e,n,i)&&!r.has(Pe(e,n))),o=ze(a,5,[e.city]).map(e=>({key:`area-${e.city}-${e.state}`,labelId:`ListingPage.skyfarerLink.${n}`,values:{city:e.city},path:Pe(e,n)}));return{city:{city:e.city,state:e.state},columns:[{key:"popular",titleId:e.miles>25?"ListingPage.skyfarerLinksPopularNear":"ListingPage.skyfarerLinksPopularIn",titleValues:{city:e.city},links:c(s.map(t=>Ge(t,e,i)))},{key:"alsoLike",titleId:"ListingPage.skyfarerLinksAlsoLike",titleValues:{},links:l.map(t=>Ve(t,e))},...o.length>0?[{key:"nearbyAreas",titleId:"ListingPage.skyfarerLinksNearbyAreas",titleValues:{},links:o}]:[]]}}const g=ze(t.filter(e=>Fe(e,n,i)),6).map(e=>({key:`city-${e.city}-${e.state}`,labelId:`ListingPage.skyfarerLink.${n}`,values:{city:e.city},path:Pe(e,n)}));return{city:null,columns:[{key:"popular",titleId:"ListingPage.skyfarerLinksPopularNational",titleValues:{},links:c(s.map(e=>Ge(e,null)))},{key:"alsoLike",titleId:"ListingPage.skyfarerLinksAlsoLike",titleValues:{},links:l.map(e=>Ve(e,null))},...g.length>0?[{key:"popularCities",titleId:"ListingPage.skyfarerLinksPopularCities",titleValues:{},links:g}]:[]]}}(t);return a&&0!==a.columns.length?(0,O.jsx)("nav",{className:Ke,"aria-label":i.formatMessage({id:"ListingPage.skyfarerLinksLabel"}),children:(0,O.jsx)("div",{className:Qe,children:a.columns.map(e=>(0,O.jsxs)("div",{className:Je,children:[(0,O.jsx)("h2",{className:Ye,children:(0,O.jsx)(d.sA,{id:e.titleId,values:e.titleValues})}),(0,O.jsx)("ul",{className:Ze,children:e.links.map(e=>(0,O.jsx)("li",{className:Xe,children:(0,O.jsx)(w.GF,{className:et,name:"SearchPage",to:{search:e.path.slice(2)},children:(0,O.jsx)(d.sA,{id:e.labelId,values:e.values})})},e.key))})]},e.key))})}):null},it={},at=function(){let{margin:e=800,minScroll:t=120,resetKey:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,s]=(0,a.useState)(null),l=(0,a.useCallback)(e=>s(e),[]),[o,r]=(0,a.useState)(it),[c,d]=(0,a.useState)(i);return c!==i&&(d(i),r(it)),(0,a.useEffect)(()=>{if(!n||"undefined"===typeof window)return;let a=null,s=!1;const l=()=>{window.removeEventListener("scroll",d),a&&a.disconnect(),a=null},o=()=>{s||(s=!0,l(),r(i))},c=()=>{"function"===typeof window.IntersectionObserver?(a=new window.IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&o()},{rootMargin:`0px 0px ${e}px 0px`}),a.observe(n)):o()};function d(){(window.scrollY||window.pageYOffset||0)<t||(window.removeEventListener("scroll",d),c())}return window.addEventListener("scroll",d,{passive:!0}),d(),l},[n,e,t,i]),[l,c===i&&o===i]};var nt=i(86928),st=i(15711),lt=i(92382),ot=i(61254),rt=i(41233);const ct="SectionInviteProvidersMaybe_root__t+s2P",dt="SectionInviteProvidersMaybe_toggle__kByu5",ut="SectionInviteProvidersMaybe_toggleOpen__NFS0u",gt="SectionInviteProvidersMaybe_toggleTitle__UgrR4",ht="SectionInviteProvidersMaybe_toggleIcon__W1boh",vt="SectionInviteProvidersMaybe_body__vMAU8",mt="SectionInviteProvidersMaybe_subtitle__a3l0z marketplaceTinyFontStyles",yt="SectionInviteProvidersMaybe_list__EwpjF",pt="SectionInviteProvidersMaybe_row__d0WAM",xt="SectionInviteProvidersMaybe_avatar__L3IDR",bt="SectionInviteProvidersMaybe_info__sSr6m",ft="SectionInviteProvidersMaybe_rowTitle__PCM1q p",Lt="SectionInviteProvidersMaybe_meta__kLFb4 marketplaceTinyFontStyles",_t="SectionInviteProvidersMaybe_metaSep__7+ZeC",wt="SectionInviteProvidersMaybe_action__4o9fd",jt="SectionInviteProvidersMaybe_inviteButton__pdB1m",At="SectionInviteProvidersMaybe_invited__6ICp9 marketplaceTinyFontStyles",Nt="SectionInviteProvidersMaybe_modalContent__abWvz",St="SectionInviteProvidersMaybe_modalForm__AH5PR",kt="SectionInviteProvidersMaybe_modalTitle__hJTmW h3",It="SectionInviteProvidersMaybe_modalListing__EwEaU marketplaceTinyFontStyles",Ct="SectionInviteProvidersMaybe_messageField__O7BGt",Pt="SectionInviteProvidersMaybe_error__oMDz+ marketplaceTinyFontStyles",Mt="SectionInviteProvidersMaybe_modalActions__XZrla",Ft="ListingPage.requestInvite",Tt=e=>{var t,i;const{listing:n,currentUser:s,candidates:l=[],invites:o=[],inProgressId:r=null,error:u=null,onInvite:g,onManageDisableScrolling:h}=e,v=(0,d.tz)(),[y,p]=(0,a.useState)(null),[x,f]=(0,a.useState)(!0);if(!n||!(0,b.hi)(n))return null;if(!l.length&&!o.length)return null;const L=new Set((o||[]).map(e=>
2null===e||void 0===e?void 0:e.listingId).filter(Boolean)),_=Math.max(0,10-L.size),j=null===n||void 0===n||null===(t=n.attributes)||void 0===t?void 0:t.title,A=(0,rt._l)(s,""),N=y?(0,rt._l)(y.author,""):"",S=null===y||void 0===y||null===(i=y.id)||void 0===i?void 0:i.uuid,k=!!S&&r===S;return(0,O.jsxs)("section",{className:ct,children:[(0,O.jsxs)("button",{type:"button",className:c()(dt,{[ut]:x}),onClick:()=>f(e=>!e),"aria-expanded":x,children:[(0,O.jsx)("span",{className:gt,children:(0,O.jsx)(d.sA,{id:"ListingPage.inviteProvidersTitle"})}),x?(0,O.jsx)(st.A,{className:ht,strokeWidth:2}):(0,O.jsx)(lt.A,{className:ht,strokeWidth:2})]}),(0,O.jsxs)("div",{className:vt,style:x?void 0:{display:"none"},children:[(0,O.jsx)("p",{className:mt,children:_>0?(0,O.jsx)(d.sA,{id:"ListingPage.inviteProvidersSubtitle",values:{count:_}}):(0,O.jsx)(d.sA,{id:"ListingPage.inviteProvidersNoneLeft",values:{limit:10}})}),(0,O.jsx)("ul",{className:yt,children:l.map(e=>{var t,i,a,n,s;const l=null===e||void 0===e||null===(t=e.id)||void 0===t?void 0:t.uuid,o=(null===e||void 0===e||null===(i=e.attributes)||void 0===i?void 0:i.title)||"",c=(null===e||void 0===e||null===(a=e.attributes)||void 0===a?void 0:a.publicData)||{},u=null!==e&&void 0!==e&&null!==(n=e.attributes)&&void 0!==n&&n.price?(0,ot.up)(v,e.attributes.price):null,g=(0,rt._l)(null===e||void 0===e?void 0:e.author,""),h="string"===typeof(y=null===(s=c.location)||void 0===s?void 0:s.address)?y.replace(/,\s*(USA|United States)\s*$/i,""):null;var y;const x=L.has(l);return(0,O.jsxs)("li",{className:pt,children:[(0,O.jsx)(w.Bz,{user:e.author,className:xt,disableProfileLink:!0}),(0,O.jsxs)("div",{className:bt,children:[(0,O.jsx)(w.GF,{className:ft,name:"ListingPage",params:{id:l,slug:(0,m.e9)(o)},target:"_blank",rel:"noopener noreferrer",children:o}),(0,O.jsxs)("div",{className:Lt,children:[g?(0,O.jsx)("span",{children:g}):null,u?(0,O.jsxs)("span",{className:_t,children:["\xb7 ",u]}):null,h?(0,O.jsxs)("span",{className:_t,children:["\xb7 ",h]}):null]})]}),(0,O.jsx)("div",{className:wt,children:x?(0,O.jsxs)("span",{className:At,children:["\u2713 ",(0,O.jsx)(d.sA,{id:"ListingPage.invitedLabel"})]}):(0,O.jsx)(w.jn,{type:"button",className:jt,disabled:0===_||!!r,onClick:()=>p(e),children:(0,O.jsx)(d.sA,{id:"ListingPage.inviteButton"})})})]},l)})})]}),(0,O.jsx)(w.aF,{id:Ft,contentClassName:Nt,isOpen:!!y,onClose:()=>p(null),usePortal:!0,onManageDisableScrolling:h,children:y?(0,O.jsx)(nt.lV,{onSubmit:e=>{if(!y||!g)return;const t=((null===e||void 0===e?void 0:e.message)||"").trim();t&&g(n,y,t).then(()=>p(null)).catch(()=>{})},initialValues:{message:(0,b.gr)({providerName:N,requestTitle:j,studentName:A})},render:e=>{var t,i;let{handleSubmit:a,values:n}=e;return(0,O.jsxs)(w.lV,{className:St,onSubmit:a,children:[(0,O.jsx)("h2",{className:kt,children:(0,O.jsx)(d.sA,{id:"ListingPage.inviteModalTitle",values:{name:N||(null===y||void 0===y||null===(t=y.attributes)||void 0===t?void 0:t.title)}})}),(0,O.jsx)("p",{className:It,children:null===y||void 0===y||null===(i=y.attributes)||void 0===i?void 0:i.title}),(0,O.jsx)(w.k7,{className:Ct,type:"textarea",id:`${Ft}.message`,name:"message",label:v.formatMessage({id:"ListingPage.inviteMessageLabel"})}),u?(0,O.jsx)("p",{className:Pt,children:(0,O.jsx)(d.sA,{id:"ListingPage.inviteError"})}):null,(0,O.jsx)("div",{className:Mt,children:(0,O.jsx)(w.jn,{type:"submit",inProgress:k,disabled:k||!((null===n||void 0===n?void 0:n.message)||"").trim(),children:(0,O.jsx)(d.sA,{id:"ListingPage.inviteSendButton"})})})]})}}):null})]})},Rt="SectionScreeningQuestionsMaybe_root__L-IRe",Dt="SectionScreeningQuestionsMaybe_title__Zp03b h5",Et="SectionScreeningQuestionsMaybe_list__Wk1Oo",Ot="SectionScreeningQuestionsMaybe_item__qgKn1 p",Wt=e=>{const{listing:t}=e,i=(0,b._F)(t);return 0===i.length?null:(0,O.jsxs)("section",{className:Rt,children:[(0,O.jsx)("h2",{className:Dt,children:(0,O.jsx)(d.sA,{id:"ListingPage.skyfarerScreeningQuestionsTitle"})}),(0,O.jsx)("ol",{className:Et,children:i.map((e,t)=>(0,O.jsx)("li",{className:Ot,children:e},`${t}-${e}`))})]})},Ut="SectionListingFaqMaybe_root__vDtER",qt="SectionListingFaqMaybe_title__PMVqj h5",$t="SectionListingFaqMaybe_list__+yRwz",Bt="SectionListingFaqMaybe_row__u9Xa1",Ht="SectionListingFaqMaybe_question__2qbPd p",Gt="SectionListingFaqMaybe_answer__0aeWD p",Vt=e=>{const{publicData:t,authorDisplayName:i}=e,a=((null===t||void 0===t?void 0:t.listingFaq)||[]).filter(e=>(null===e||void 0===e?void 0:e.question)&&(null===e||void 0===e?void 0:e.answer));return 0===a.length?null:(0,O.jsxs)("section",{className:Ut,children:[(0,O.jsx)("h2",{className:qt,children:(0,O.jsx)(d.sA,{id:"ListingPage.skyfarerListingFaqTitle",values:{name:i}})}),(0,O.jsx)("dl",{className:$t,children:a.map((e,t)=>(0,O.jsxs)("div",{className:Bt,children:[(0,O.jsx)("dt",{className:Ht,children:e.question}),(0,O.jsx)("dd",{className:Gt,children:e.answer})]},`${t}-${e.question}`))})]})};var zt=i(4289);const Kt="SectionInsuranceQuoteMaybe_root__BdDzW",Qt="SectionInsuranceQuoteMaybe_bar__Rex01",Jt="SectionInsuranceQuoteMaybe_barText__cryCu",Yt="SectionInsuranceQuoteMaybe_title__IONaa h4",Zt="SectionInsuranceQuoteMaybe_partner__XuXst",Xt="SectionInsuranceQuoteMaybe_toggle__2YS4h",ei="SectionInsuranceQuoteMaybe_chevron__6cnGU",ti="SectionInsuranceQuoteMaybe_chevronOpen__NDEsc",ii="SectionInsuranceQuoteMaybe_blurb__-EbmW",ai="SectionInsuranceQuoteMaybe_panel__SG00V",ni="SectionInsuranceQuoteMaybe_loading__gU+Rh",si="SectionInsuranceQuoteMaybe_frame__DPOUC",li="SectionInsuranceQuoteMaybe_frameLoaded__FPBOc",oi="SectionInsuranceQuoteMaybe_footnote__PjkqI",ri="SectionInsuranceQuoteMaybe_newTabLink__yZCvF",ci="https://skyfarer.aviation-renters.us.skywatch.ai/insurance/profile?utm_source=skyfarer&utm_medium=listing-page&utm_campaign=renters-quote",di="insurance_quote_start",ui="insurance_quote_engaged",gi="insurance_quote_open_new_tab",hi=(e,t)=>{const i={partner:"skywatch",placement:"listing-page",...t};try{zt.A.capture(e,i)}catch(a){}"undefined"!==typeof window&&"function"===typeof window.gtag&&window.gtag("event",e,i)},vi=e=>{let{open:t}=e;return(0,O.jsx)("svg",{className:c()(ei,{[ti]:t}),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,O.jsx)("path",{d:"M3 6l5 5 5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mi=e=>{const{publicData:t,listingId:i,className:n}=e,s=(0,d.tz)(),l=(0,a.useId)(),o=(0,a.useRef)(null),r=(0,a.useRef)(!1),[u,g]=(0,a.useState)(!1),[h,v]=(0,a.useState)(!1),m={listingId:i||null,categoryLevel1:(null===t||void 0===t?void 0:t.categoryLevel1)||null,categoryLevel2:(null===t||void 0===t?void 0:t.categoryLevel2)||null};if((0,a.useEffect)(()=>
2{if(!u||"undefined"===typeof window)return;const e=()=>{!r.current&&o.current&&document.activeElement===o.current&&(r.current=!0,hi(ui,m))};return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[u,i]),!(0,b.Np)(t))return null;const y=s.formatMessage({id:"ListingPage.insuranceQuoteFrameTitle"});return(0,O.jsxs)("section",{className:c()(Kt,n),children:[(0,O.jsxs)("div",{className:Qt,children:[(0,O.jsxs)("div",{className:Jt,children:[(0,O.jsx)("h2",{className:Yt,children:(0,O.jsx)(d.sA,{id:"ListingPage.insuranceQuoteTitle"})}),(0,O.jsx)("p",{className:Zt,children:(0,O.jsx)(d.sA,{id:"ListingPage.insuranceQuotePartner"})})]}),(0,O.jsxs)("button",{type:"button",className:Xt,"aria-expanded":u,"aria-controls":l,onClick:()=>{g(e=>(e||hi(di,m),!e))},children:[(0,O.jsx)(d.sA,{id:u?"ListingPage.insuranceQuoteHide":"ListingPage.insuranceQuoteShow"}),(0,O.jsx)(vi,{open:u})]})]}),(0,O.jsx)("p",{className:ii,children:(0,O.jsx)(d.sA,{id:"ListingPage.insuranceQuoteBlurb"})}),u?(0,O.jsxs)("div",{id:l,className:ai,children:[h?null:(0,O.jsx)("p",{className:ni,children:(0,O.jsx)(d.sA,{id:"ListingPage.insuranceQuoteLoading"})}),(0,O.jsx)("iframe",{ref:o,title:y,src:ci,className:c()(si,{[li]:h}),onLoad:()=>v(!0),allow:"payment",referrerPolicy:"strict-origin-when-cross-origin"}),(0,O.jsx)("p",{className:oi,children:(0,O.jsx)("a",{href:ci,target:"_blank",rel:"sponsored nofollow noopener noreferrer",className:ri,onClick:()=>hi(gi,m),children:(0,O.jsx)(d.sA,{id:"ListingPage.insuranceQuoteOpenNewTab"})})})]}):null]})};var yi=i(87569),pi=i(16840),xi=i(75821);const bi=e=>{var t,i,a;const{publicData:n,className:s,listing:l,hideCalendar:o=!1}=e;if(!(0,b.Z4)(n))return null;const r=(0,b.pd)(n.eventStart),c=(0,b.pd)(n.eventEnd),u=(null===(t=b.ml.find(e=>e.value===n.eventTimezone))||void 0===t?void 0:t.label)||n.eventTimezone||"",g="virtual"===n.eventFormat,h=n.virtualMeetingLink;if(!r&&!g)return null;const v=r&&c&&r.date===c.date,m=[null===(i=n.location)||void 0===i?void 0:i.building,null===(a=n.location)||void 0===a?void 0:a.address].filter(Boolean).join(", ");return(0,O.jsxs)("section",{className:s||V.A.eventSection,children:[r?(0,O.jsxs)("div",{className:V.A.eventScheduleRow,children:[(0,O.jsx)("span",{className:V.A.eventScheduleIcon,"aria-hidden":"true",children:"\ud83d\udcc5"}),(0,O.jsxs)("span",{children:[v?(0,O.jsxs)(O.Fragment,{children:[r.date," \xb7 ",r.time," \u2013 ",c.time]}):(0,O.jsxs)(O.Fragment,{children:[r.date," \xb7 ",r.time,c?(0,O.jsxs)(O.Fragment,{children:[" \u2014 ",c.date," \xb7 ",c.time]}):null]}),u?(0,O.jsxs)("span",{className:V.A.eventTimezone,children:[" (",u,")"]}):null]})]}):null,n.inviteOnly?(0,O.jsxs)("div",{className:V.A.eventScheduleRow,children:[(0,O.jsx)("span",{className:V.A.eventScheduleIcon,"aria-hidden":"true",children:"\u2709\ufe0f"}),(0,O.jsx)("span",{children:(0,O.jsx)(d.sA,{id:"ListingPage.eventInviteOnly"})})]}):null,"number"===typeof n.eventSeats?(0,O.jsxs)("div",{className:V.A.eventScheduleRow,children:[(0,O.jsx)("span",{className:V.A.eventScheduleIcon,"aria-hidden":"true",children:"\ud83c\udf9f\ufe0f"}),(0,O.jsx)("span",{children:(0,O.jsx)(d.sA,{id:"ListingPage.eventSeats",values:{count:n.eventSeats}})})]}):null,(0,O.jsxs)("div",{className:V.A.eventScheduleRow,children:[(0,O.jsx)("span",{className:V.A.eventScheduleIcon,"aria-hidden":"true",children:g?"\ud83d\udcbb":"\ud83d\udccd"}),(0,O.jsx)("span",{children:g?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(d.sA,{id:"ListingPage.eventVirtual"}),h?(0,O.jsxs)(O.Fragment,{children:[" \xb7 ",(0,O.jsx)(w.Gr,{href:h,className:V.A.eventMeetingLink,children:(0,O.jsx)(d.sA,{id:"ListingPage.eventJoinLink"})})]}):n.freeEvent&&n.requireRegistration?(0,O.jsxs)(O.Fragment,{children:[" \xb7 ",(0,O.jsx)(d.sA,{id:"ListingPage.eventLinkAfterRegistration"})]}):null]}):m||(0,O.jsx)(d.sA,{id:"ListingPage.eventInPerson"})})]}),l&&!o?(0,O.jsx)("div",{className:V.A.eventCalendarWrapper,children:(0,O.jsx)(xi.A,{listing:l})}):null]})};var fi=i(80057),Li=i(67365);const _i=["pilot-gears-accessories"],wi=(e,t,i)=>"?"+[e&&`pub_categoryLevel1=${e}`,t&&`pub_categoryLevel2=${t}`,i&&`pub_categoryLevel3=${i}
2`].filter(Boolean).join("&"),ji=e=>{const{publicData:t,listingFieldConfigs:i=[],categoryConfiguration:a}=e,{categoryLevel1:n,categoryLevel2:s,categoryLevel3:l}=t||{};if(!n||_i.includes(n))return null;const o=[];[[l,wi(n,s,l)],[s,wi(n,s)],[n,wi(n)]].forEach(e=>{let[t,i]=e;const n=t?(0,Li.t5)(t,a):null;n&&n!==t&&o.push({key:`cat-${t}`,label:n,search:i})});const r=wi(n,s).slice(1);i.filter(e=>{var t;return e.schemaType===u.Pm&&(null===(t=e.filterConfig)||void 0===t?void 0:t.indexForSearch)}).forEach(e=>{const i=null===t||void 0===t?void 0:t[e.key];Array.isArray(i)&&i.forEach(t=>{const i=(e.enumOptions||[]).find(e=>`${e.option}`===`${t}`);null!==i&&void 0!==i&&i.label&&o.push({key:`${e.key}-${t}`,label:i.label,search:`?${r}&pub_${e.key}=has_any%3A${encodeURIComponent(t)}`})})});const c=o.slice(0,8);return 0===c.length?null:(0,O.jsxs)("div",{className:V.A.listingTags,children:[(0,O.jsx)("span",{className:V.A.listingTagsLabel,children:(0,O.jsx)(d.sA,{id:"ListingPage.tagsLabel"})}),c.map(e=>(0,O.jsx)(w.GF,{name:"SearchPage",to:{search:e.search},className:V.A.listingTag,children:e.label},e.key))]})};var Ai=i(72765),Ni=i(63775),Si=(i(77903),i(31586)),ki=i(29789),Ii=i(36433);const Ci=(e,t,i)=>"?"+[e&&`pub_categoryLevel1=${e}`,t&&`pub_categoryLevel2=${t}`,i&&`pub_categoryLevel3=${i}`].filter(Boolean).join("&"),Pi=e=>{var t,i,l,o,r,u,g,h,f,L,_,I,P,M,F;const[T,R]=(0,a.useState)(e.inquiryModalOpenForListingId===e.params.id),D="undefined"!==typeof window?(0,k.ls)(e.params.id):null,E=(0,a.useRef)(!1),q=(0,a.useRef)(null),K=null===(t=e.getListing)||void 0===t||null===(t=t.call(e,new s.gK.UUID(e.params.id)))||void 0===t||null===(t=t.id)||void 0===t?void 0:t.uuid,Q=[].concat((null===D||void 0===D?void 0:D.contactAlso)||[]).length>0&&!e.inquiryNearbyReady;(0,a.useEffect)(()=>{if(e.isAuthenticated&&e.currentUser&&D&&!E.current&&K&&q.current){if(!(0,p.DK)(e.currentUser))return E.current=!0,void R(!0);var t;if(Q)null===(t=e.onFetchInquiryNearby)||void 0===t||t.call(e);else E.current=!0,R(!0),q.current(D)}},[e.isAuthenticated,null===(i=e.currentUser)||void 0===i||null===(i=i.id)||void 0===i?void 0:i.uuid,K,Q]),(0,a.useEffect)(()=>{var t;T&&K&&!e.inquiryNearbyRequested&&(null===(t=e.onFetchInquiryNearby)||void 0===t||t.call(e))},[T,K,e.inquiryNearbyRequested]);const[J,ee]=at({resetKey:K});(0,a.useEffect)(()=>{var t;ee&&K&&!e.nearbyRowsRequested&&(null===(t=e.onLoadNearbyRows)||void 0===t||t.call(e))},[ee,K,e.nearbyRowsRequested]);const se=(0,a.useRef)(e.onLeaveListingPage);se.current=e.onLeaveListingPage,(0,a.useEffect)(()=>()=>{var e;return null===(e=se.current)||void 0===e?void 0:e.call(se)},[]);const[le,oe]=(0,a.useState)(!1),re=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!le)return;const e=e=>{re.current&&re.current.contains(e.target)||oe(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[le]);const[ce,de]=(0,a.useState)(!1);(0,a.useEffect)(()=>{de(!0)},[]);const{isAuthenticated:ue,currentUser:ge,currentUserHasOrders:he,getListing:ve,getOwnListing:me,intl:ye,onManageDisableScrolling:pe,params:xe,location:fe,scrollingDisabled:Le,showListingError:_e,reviews:we=[],fetchReviewsError:je,authorOtherReviews:Ae=[],authorReviewsAggregate:Ne,sendInquiryInProgress:Se,sendInquiryError:ke,history:Ie,callSetInitialValues:Ce,onSendInquiry:Pe,onCreateRequestListing:Me,onInitializeCardPaymentData:Fe,config:Te,routeConfiguration:Re,showOwnListingsOnly:De,onUpdateFavorites:Ee,reschedule:Oe,listing:We,nearbyListings:Ue=[],onlineListings:qe=[],servicesListings:$e=[],cfisNearbyListings:Be=[],schoolsListings:He=[],aircraftListings:Ge=[],nearbyRowsRequested:Ve=!1,similarListings:ze=[],authorListings:Ke=[],inviteCandidates:Qe=[],requestInvites:Je=[],sendRequestInviteInProgressId:Ye=null,sendRequestInviteError:Ze=null,onFetchInviteCandidates:Xe,onSendRequestInvite:et,categoryLevel1:it,...nt}=e,st=(0,k.At)({rawParams:xe,getListing:ve,getOwnListing:me,showOwnListingsOnly:De,currentUser:ge,config:Te,intl:ye,location:fe,longWordMinLength:16,longWordClassName:V.A.longWord,payoutDetailsWarningClassName:V.A.payoutDetailsWarning}),{listingConfig:lt,listingId:ot,isVariant:rt,currentListing:ct,listingSlug:dt,params:ut,listingPathParamType:gt,listingTab:ht,description:vt,geolocation:mt,price:yt,title:pt,publicData:xt,metadata:bt,richTitle:ft,isOwnListing:Lt,showListingImage:_t,showDescription:wt,processType:jt,ensuredAuthor:At,noPayoutDetailsSetWithOwnListing:Nt,payoutDetailsWarning:St,authorDisplayName:kt,facebookImages:It,twitterImages:Ct,schemaImages:Pt,productURL:Mt,availabilityMaybe:Ft,noIndexMaybe:Rt,hasInvalidListingData:Dt}=st,Et=(e,t)=>
2{var i;if(!e)return null;const a=null===(i=t.categories)||void 0===i?void 0:i.find(t=>t.id===e);if(a)return a.name;for(const l of t.categories||[]){var n;const t=null===(n=l.subcategories)||void 0===n?void 0:n.find(t=>t.id===e);if(t)return t.name;for(const i of l.subcategories||[]){var s;const t=null===(s=i.subcategories)||void 0===s?void 0:s.find(t=>t.id===e);if(t)return t.name}}return e},Ot=Te.categoryConfiguration,Ut=[null===xt||void 0===xt?void 0:xt.categoryLevel1,null===xt||void 0===xt?void 0:xt.categoryLevel2,null===xt||void 0===xt?void 0:xt.categoryLevel3].filter(Boolean).map(e=>({id:e,name:Et(e,Ot)})),qt=(0,C.bY)(ct),$t="string"===typeof(null===fe||void 0===fe?void 0:fe.search)&&"1"===new URLSearchParams(fe.search).get("contact"),Bt=(0,a.useRef)(!1);(0,a.useEffect)(()=>{!$t||Bt.current||null===ct||void 0===ct||!ct.id||Lt||qt||(Bt.current=!0,(0,k.I2)({params:ut,history:Ie,routes:Re,currentUser:ge,callSetInitialValues:Ce,setInitialValues:S.x1,location:fe,setInquiryModalOpen:R,replace:!0})())},[$t,null===ct||void 0===ct?void 0:ct.id]);const Ht=!!Lt&&(0,b.hi)(ct),Gt=null===ct||void 0===ct||null===(l=ct.id)||void 0===l?void 0:l.uuid;(0,a.useEffect)(()=>{Ht&&Gt&&Xe&&Xe(ct,Te)},[Ht,Gt]);const zt=(0,pi.Vk)(ct),Kt=(0,pi.X$)({listingId:null===ct||void 0===ct||null===(o=ct.id)||void 0===o?void 0:o.uuid,userId:null===ge||void 0===ge||null===(r=ge.id)||void 0===r?void 0:r.uuid,enabled:zt}),[Qt,Jt]=(0,a.useState)(!1),Yt=(0,b.EA)(ct),[Zt,Xt]=(0,a.useState)(Yt);(0,a.useEffect)(()=>{Xt(Yt)},[Yt]);const[ei,ti]=(0,a.useState)(!1),[ii,ai]=(0,a.useState)(null),{listingType:ni}=xt,si=xt.unitType,li="negotiation"===jt,oi=(0,O.jsx)(j.A,{});if(_e&&404===_e.status)return(0,O.jsx)(N.A,{staticContext:e.staticContext});if(_e)return(0,O.jsx)(k.M,{topbar:oi,scrollingDisabled:Le,intl:ye});if(!ct.id)return(0,O.jsx)(k.AV,{topbar:oi,scrollingDisabled:Le,intl:ye});if(Dt)return(0,O.jsx)(k.M,{topbar:oi,scrollingDisabled:Le,intl:ye,invalidListing:!0});const ri={params:ut,history:Ie,routes:Re,sdk:v.xh},ci=(0,k.I2)({...ri,currentUser:ge,callSetInitialValues:Ce,setInitialValues:S.x1,location:fe,setInquiryModalOpen:R}),di=(0,k.Qb)({...ri,getListing:ve,onSendInquiry:Pe,setInquiryModalOpen:R,onCreateRequestListing:Me,currentUser:ge,location:fe,callSetInitialValues:Ce,setInitialValues:S.x1});q.current=di;const ui=(0,k.Mf)({...ri,currentUser:ge,onUpdateFavorites:Ee,location:fe}),gi=(0,k.$U)({...ri,currentUser:ge,callSetInitialValues:Ce,getListing:ve,onInitializeCardPaymentData:Fe,sdk:v.xh}),hi=xt.State_for_inperson,vi=xt.City,xi=xt.where_i_am,Li=(0,b.xu)(ct),_i=(0,b.s9)(ct),wi=_i.website,Ai=_i.phone,Ni=(0,b.az)(_i).length>0,Pi=(null===xt||void 0===xt?void 0:xt.categoryLevel2)===b.gC.Flight_schools,Mi=Boolean(null===xt||void 0===xt?void 0:xt.Flycore)&&Pi,Fi=ni===b.p_.AircraftSale||(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.A3.SaleAircraft,Ti=Fi||(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.A3.Aviation,Ri=(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.A3.DPE,Di=(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.A3.Online,Ei=(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.p_.Event,Oi=(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.p_.AircraftSale,Wi=(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.A3.Aviation,Ui=Ei?{labelId:"SearchPage.createEvent",search:`?listingType=${b.p_.Event}&categoryLevel1=${b.p_.Event}&categories=${b.p_.Event}`}:Oi?{labelId:"SearchPage.listAircraft",search:`?listingType=${b.p_.AircraftSale}&categoryLevel1=${b.p_.AircraftSale}&categories=${b.p_.AircraftSale}`}:Wi?{labelId:"SearchPage.listService",search:`?listingType=${b.p_.Quote}&listingTypes=${b.p_.Quote},${b.p_.CBookingHourly},${b.p_.CBookingFixed},${b.p_.Course}&categoryLevel1=${b.A3.Aviation}&categories=${b.A3.Aviation}`}:null,qi=Kt.parts,$i=(0,pi.Fg)(Kt.status),Bi=(Li||Fi)&&(wi||Ai||Ni),Hi=Bi||zt,Gi=(0,yi.f)(vi),Vi=(0,yi.f)(hi),zi=(0,yi.f)(xi);let Ki="";Gi&&Vi?Ki=`${Gi}, ${Vi}`:Vi?Ki=Vi:Gi?Ki=Gi:zi&&(Ki=zi);Te.marketplaceName;const Qi=b.Dw.includes(null===xt||void 0===xt?void 0:xt.categoryLevel1),Ji=Qi?Ki?`${pt} - Flight Training near ${Ki} | Skyfarer`:pt:Fi?`${pt} | Aircraft for Sale | Skyfarer`:Ei?`${pt} | Aviation Event | Skyfarer`:`${pt} | Skyfarer`,Yi=(0,b.Lf)(vt,[`${pt}${Ki?` \u2014 flight training near ${Ki}`:""} on Skyfarer.`,"Skyfarer connects student pilots with independent flight instructors, flight schools, DPEs, aviation services, pilot gear and aircraft for sale across the US."]),Zi=(0,b.dg)(ct),Xi=(0,b.yT)(ct)&&Zi?(0,b.ak)(Zi,ye):null,ea=(0,b.yT)(ct),ta=!(null===ge||void 0===ge||null===(u=ge.attributes)||void 0===u||null===(u=u.profile)||void 0===u||null===(u=u.privateData)||void 0===u||null===(u=u.favorites)||void 0===u||!u.includes(null===ct||void 0===ct||null===(g=ct.id)||void 0===g?void 0:g.uuid)),ia=ea?(0,O.jsxs)("div",{className:V.A.requestShare,children:[(0,O.jsxs)("button",{type:"button",className:V.A.requestShareButton,onClick:()=>Jt(!0),children:[(0,O.jsxs)("svg",{className:V.A.requestShareIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,O.jsx)("path",{d:"M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7"}),(0,O.jsx)("path",{d:"M12 15V3"}),(0,O.jsx)("path",{d:"M8 7l4-4 4 4"})]}),(0,O.jsx)(d.sA,{id:"ListingPage.skyfarerShareRequest"})]}),(0,O.jsxs)("button",{type:"button",className:V.A.requestShareButton,onClick:e=>{e.stopPropagation(),ge&&Xt(e=>Math.max(0,e+(ta?-1:1))),"function"===typeof ui&&ui(ta)},"aria-pressed":ta,children:[(0,O.jsx)("svg",{className:V.A.requestShareIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:ta?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:(0,O.jsx)("path",{d:"M12.1 8.64l-.1.1-.11-.1C10.14 6.6 7.4 6.6 5.5 8.5c-1.9 1.9-1.9 4.63 0 6.54l6.6 6.6 6.6-6.6c1.9-1.9 1.9-4.63 0-6.54-1.9-1.9-4.64-1.9-6.54 0z"})}),(0,O.jsx)(d.sA,{id:ta?"ListingPage.skyfarerSavedRequest":"ListingPage.skyfarerSaveRequest"}),Zt>0?(0,O.jsx)("span",{className:V.A.requestSaveCount,children:Zt}):null]}),(0,O.jsx)(te.A,{isOpen:Qt,onClose:()=>Jt(!1),title:(null===ct||void 0===ct||null===(h=ct.attributes)||void 0===h?void 0:h.title)||""})]}):null,aa=Xi?(0,O.jsx)("div",{className:V.A.postedAgo,children:(0,O.jsx)(d.sA,{id:"ListingPage.postedAgo",values:{timeAgo:Xi}})}):null;return(0,O.jsx)(w.YW,{title:Ji,scrollingDisabled:Le,author:qt?void 0:kt,description:Yi,facebookImages:It,twitterImages:Ct,canonicalPath:`/l/${dt}/${ot.uuid}`,...Rt,schema:{"@context":"http://schema.org","@type":"Product",description:vt,name:Ji,image:Pt,offers:{"@type":"Offer",url:Mt,...(0,k.eD)(yt),...Ft}},children:(0,O.jsxs)(w.JI,{className:V.A.pageRoot,topbar:oi,footer:(0,O.jsx)(A.A,{}),children:[(0,O.jsxs)("div",{className:V.A.contentWrapperForProductLayout,children:[(0,O.jsxs)("div",{className:V.A.mainColumnForProductLayout,children:[(0,O.jsx)(B.A,{mounted:ce,listing:ct,isOwnListing:Lt,noPayoutDetailsSetWithOwnListing:Nt&&!qt,currentUser:ge,className:V.A.actionBarForProductLayout,editParams:{id:ot.uuid,slug:dt,type:gt,tab:ht}}),qt?null:(0,O.jsx)($,{isOwnListing:Lt,listingId:ot.uuid,currentUser:ge,isPremium:Li,publicData:xt}),Ht?(0,O.jsx)(Tt,{listing:ct,currentUser:ge,candidates:Qe,invites:Je,inProgressId:Ye,error:Ze,onInvite:(e,t,i)=>(0,p.DK)(ge)?et(e,t,i):((0,y.o3)({history:Ie,routes:Re,currentUser:ge,missingAccessRight:m.Py,from:(0,y.gT)(fe)}),Promise.reject(new Error("no-transaction-rights"))),onManageDisableScrolling:pe}):null,Ut.length>0&&(0,O.jsxs)("div",{className:V.A.breadcrumb,children:[Ut.map((e,t)=>(0,O.jsxs)("span",{children:[(0,O.jsx)(w.GF,{name:"SearchPage",to:{search:Ci(...Ut.slice(0,t+1).map(e=>e.id))},className:V.A.breadcrumbLink,children:e.name}),(0,O.jsx)("span",{className:V.A.breadcrumbSeparator,children:" > "})]},e.id)),(0,O.jsx)("span",{className:V.A.breadcrumbCurrent,children:pt})]}),Ui?(0,O.jsx)("div",{className:V.A.createEventRowMobile,children:Ei?(0,O.jsx)(w.GF,{className:V.A.createEventButton,name:"CreateEventPage",children:(0,O.jsx)(d.sA,{id:Ui.labelId})}):(0,O.jsx)(w.GF,{className:V.A.createEventButton,name:"EditListingPage",params:{slug:"draft",id:"00000000-0000-0000-0000-000000000000",type:"new",tab:"details"},to:{search:Ui.search},children:(0,O.jsx)(d.sA,{id:Ui.labelId})})}):null,_t&&(0,O.jsx)(ie,{listing:ct,variantPrefix:Te.layout.listingImage.variantPrefix,aspectWidth:Te.layout.listingImage.aspectWidth,aspectHeight:Te.layout.listingImage.aspectHeight,currentUser:ge,onToggleFavorites:ui}),(0,O.jsxs)("div",{className:_t?V.A.mobileHeading:V.A.noListingImageHeadingProduct,children:[_t?(0,O.jsx)(w.H2,{as:"h1",className:V.A.orderPanelTitle,children:(0,O.jsx)(d.sA,{id:"ListingPage.orderTitle",values:{title:ft}})}):(0,O.jsx)(w.H3,{as:"h1",className:V.A.orderPanelTitle,children:(0,O.jsx)(d.sA,{id:"ListingPage.orderTitle",values:{title:ft}})}),(0,O.jsx)(W,{listing:ct}),Li&&(wi||Ai||Ni)&&(0,O.jsxs)("div",{className:V.A.premiumLabelMobile,children:["Featured",(0,O.jsxs)("span",{ref:re,className:V.A.premiumInfoIconWrapper,onClick:e=>{e.preventDefault(),e.stopPropagation(),oe(e=>!e)},children:[(0,O.jsxs)("svg",{className:V.A.premiumInfoIcon,viewBox:"0 0 24 24",width:"14",height:"14",children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,O.jsx)("line",{x1:"12",y1:"10",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0,O.jsx)("circle",{cx:"12",cy:"7",r:"1.5",fill:"currentColor"})]}),(0,O.jsx)("span",{className:c()(V.A.premiumTooltipMobile,le&&V.A.tooltipVisible),children:"This listing includes additional contact options as they paid for Skyfarer's visibility features."})]})]}),Hi&&!ge&&!Ti&&(0,O.jsxs)("div",{className:V.A.gatedContactBoxMobile,children:[(0,O.jsxs)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,O.jsx)("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"}),(0,O.jsx)("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]}),(0,O.jsxs)("span",{children:[(0,O.jsx)(w.GF,{name:"SignupPage",to:{state:{from:`${fe.pathname}${fe.search}`}},children:"Sign up"})," ","for free or"," ",(0,O.jsx)(w.GF,{name:"LoginPage",to:{state:{from:`${fe.pathname}${fe.search}`}},children:"log in"})," ","to see"," ",zt?(0,O.jsx)(O.Fragment,{children:"the DPE\u2019s contact information"}):(0,O.jsx)(O.Fragment,{children:"the listing author\u2019s contact details"})]})]}),$i&&ge&&(0,O.jsx)("div",{className:V.A.premiumContactBoxMobile,role:"status",children:$i}),qi.length>0&&(ge||Ti)&&(0,O.jsx)("div",{className:V.A.premiumContactBoxMobile,children:qi.map(e=>e.includes("@")?(0,O.jsx)("a",{href:`mailto:${e}`,className:V.A.premiumWebsite,children:e},e):(0,O.jsx)("a",{href:`tel:${e.replace(/[^+\d]/g,"")}`,className:V.A.premiumPhone,children:e},e))}),Bi&&(ge||Ti)&&(0,O.jsxs)("div",{className:V.A.premiumContactBoxMobile,children:[wi&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("a",{href:wi,target:"_blank",rel:"noopener noreferrer",className:V.A.premiumWebsite,children:[wi.replace(/^https?:\/\//,""),(0,O.jsx)("span",{className:V.A.iconRight,children:(0,O.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",children:[(0,O.jsx)("path",{d:"M19,21H5c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h7v2H5v14h14v-7h2v7C21,20.1,20.1,21,19,21z"}),(0,O.jsx)("path",{d:"M21 10L19 10 19 5 14 5 14 3 21 3z"}),(0,O.jsx)("path",{d:"M6.7 8.5H22.3V10.5H6.7z",transform:"rotate(-45.001 14.5 9.5)"})]})})]}),Ai&&(0,O.jsx)("div",{className:V.A.premiumDivider})]}),Ai&&(0,O.jsxs)("a",{href:`tel:${Ai}`,className:V.A.premiumPhone,children:[Ai,(0,O.jsx)("span",{className:V.A.iconRight,children:(0,O.jsx)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",children:(0,O.jsx)("path",{d:"M6.62 10.79a15.91 15.91 0 006.59 6.59l2.2-2.2a1 1 0 011-.27 11.36 11.36 0 003.58.57 1 1 0 011 1v3.5a1 1 0 01-1 1A17 17 0 013 5a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.58 1 1 0 01-.27 1z",fill:"
2currentColor"})})})]}),Ni&&(wi||Ai)&&(0,O.jsx)("div",{className:V.A.premiumDivider}),(0,O.jsx)(ki.A,{contact:_i})]}),!Lt&&(Li||Fi)&&(0,O.jsx)("div",{className:V.A.premiumInquiryWrapper,children:(0,O.jsx)(Si.A,{listing:ct,hideDivider:!0})}),aa,ia]}),(0,O.jsx)(bi,{publicData:xt,listing:ct,className:V.A.eventSectionMobile,hideCalendar:!(null===xt||void 0===xt||!xt.freeEvent)&&!(null!==xt&&void 0!==xt&&xt.requireRegistration)}),Fi&&null!==xt&&void 0!==xt&&xt.registration_number?(0,O.jsx)("a",{className:V.A.faaInquiryButton,href:`https://registry.faa.gov/aircraftinquiry/Search/NNumberResult?NNumberTxt=${encodeURIComponent(String(xt.registration_number).trim())}`,target:"_blank",rel:"noopener noreferrer",children:"FAA N-Number Inquiry"}):null,wt&&(0,O.jsx)(w.x$,{text:vt,showAsIngress:!0,expandable:!0}),(0,O.jsx)(fi.A,{publicData:xt,metadata:bt,listingFieldConfigs:lt.listingFields,categoryConfiguration:Te.categoryConfiguration,intl:ye}),(0,O.jsx)(Wt,{listing:ct}),(0,O.jsx)(ji,{publicData:xt,listingFieldConfigs:lt.listingFields,categoryConfiguration:Te.categoryConfiguration}),Mi&&!Lt&&(0,O.jsxs)("div",{className:V.A.flycoreMobileDisclaimer,children:[(0,O.jsx)("p",{children:(0,O.jsx)("strong",{children:(0,O.jsx)(d.sA,{id:"OrderPanel.flycoreListingInfoTitle"})})}),(0,O.jsx)("p",{children:(0,O.jsx)(d.sA,{id:"OrderPanel.flycoreListingInfoBody"})}),(0,O.jsx)("p",{children:(0,O.jsx)(d.sA,{id:"OrderPanel.flycoreListingInfoContact",values:{email:(0,O.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})}})})]}),(0,O.jsx)(X.A,{geolocation:mt,publicData:xt,listingId:ct.id,mapsConfig:Te.maps}
2),(0,O.jsx)(mi,{publicData:xt,listingId:null===(f=ct.id)||void 0===f?void 0:f.uuid}),(0,O.jsx)(Vt,{publicData:xt,authorDisplayName:kt}),(0,O.jsx)(H.A,{reviews:we,fetchReviewsError:je,hideWhenEmpty:(0,G.L)(ct)}),(0,O.jsx)(z,{reviews:Ae,aggregate:Ne,authorDisplayName:kt}),(0,O.jsx)(Y,{publicData:xt,metadata:bt,listingId:ot.uuid,currentUser:ge,isOwnListing:Lt}),qt?null:(0,O.jsx)(Z.A,{title:pt,listing:ct,authorDisplayName:kt,onContactUser:ci,isInquiryModalOpen:T,onCloseInquiryModal:()=>{R(!1),(0,k.u5)()},inquiryInitialValues:D||void 0,sendInquiryError:ke,sendInquiryInProgress:Se,onSubmitInquiry:di,currentUser:ge,onManageDisableScrolling:pe,nearbyListings:Ue}),Ri?(0,O.jsx)(ne.A,{categoryLevel1:null===ct||void 0===ct||null===(L=ct.attributes)||void 0===L||null===(L=L.publicData)||void 0===L?void 0:L.categoryLevel1,categoryLevel2:null===ct||void 0===ct||null===(_=ct.attributes)||void 0===_||null===(_=_.publicData)||void 0===_?void 0:_.categoryLevel2}):null,rt?null:(0,O.jsx)("div",{ref:J,className:V.A.nearbyRowsAnchor}),Ve&&null!==ct&&void 0!==ct&&null!==(I=ct.attributes)&&void 0!==I&&I.geolocation&&(Qi||Ri||Ei)?(0,O.jsx)(be,{listings:Ue,titleId:Ri?"ListingPage.moreDpesNearbyTitle":Pi?"ListingPage.moreSchoolsNearbyTitle":Ei?"ListingPage.moreEventsNearbyTitle":"ListingPage.moreProvidersNearbyTitle",titleLink:{name:"SearchPage",to:{search:Ri?Ci(b.A3.DPE):Ei?Ci(b.p_.Event):Ci(null===xt||void 0===xt?void 0:xt.categoryLevel1,null===xt||void 0===xt?void 0:xt.categoryLevel2)}}}):null,Ve&&Pi?(0,O.jsx)(be,{listings:Be,titleId:"ListingPage.schoolCfisNearbyTitle",titleLink:{name:"SearchPage",to:{search:Ci(b.A3.Flight,b.gC.Flight_instructor)}}}):null,Ve?(0,O.jsx)(be,{listings:qe,titleId:Ri?"ListingPage.onlineCheckridePrepTitle":"ListingPage.onlineInstructionTitle",titleLink:{name:"SearchPage",to:{search:Ci(b.A3.Online)}}}):null,Ve&&(Ri||Ei||Di)?(0,O.jsx)(be,{listings:Be,titleId:Ri?"ListingPage.cfisNearbyTitle":"ListingPage.eventCfisNearbyTitle",titleLink:{name:"SearchPage",to:{search:Ci(b.A3.Flight,b.gC.Flight_instructor)}}}):null,Fi||(null===xt||void 0===xt?void 0:xt.categoryLevel1)===b.A3.Gears?(0,O.jsx)(be,{listings:ze,titleId:"ListingPage.similarListingsTitle",titleLink:{name:"SearchPage",to:{search:Ci(null===xt||void 0===xt?void 0:xt.categoryLevel1,null===xt||void 0===xt?void 0:xt.categoryLevel2,null===xt||void 0===xt?void 0:xt.categoryLevel3)}}}):null,Ve&&Fi?(0,O.jsx)(be,{listings:$e,titleId:"ListingPage.skyfarerAlsoLikeServicesTitle",titleLink:{name:"SearchPage",to:{search:Ci(b.A3.Aviation)}}}):null,Ve&&(Ri||Ei||Di)?(0,O.jsx)(be,{listings:He,titleId:Ei||Di?"ListingPage.eventSchoolsNearbyTitle":"ListingPage.schoolsNearbyTitle",titleLink:{name:"SearchPage",to:{search:Ci(b.A3.Flight,b.gC.Flight_schools)}}}):null,Ve&&[b.A3.Flight,b.A3.Training,b.A3.Aviation,b.p_.Event].includes(null===xt||void 0===xt?void 0:xt.categoryLevel1)?(0,O.jsx)(be,{listings:Ge,titleId:"ListingPage.aircraftNearbyTitle",titleLink:{name:"SearchPage",to:{search:Ci(b.A3.SaleAircraft)}}}):null,qt?null:(0,O.jsx)(be,{listings:Ke,titleId:"ListingPage.allFromAuthorTitle",titleValues:{name:kt},titleLink:null!==At&&void 0!==At&&null!==(P=At.id)&&void 0!==P&&P.uuid?{name:"ProfilePage",params:{id:At.id.uuid}}:null}),(0,O.jsx)("div",{className:V.A.mainColumnBanners,children:(0,O.jsx)(Ii.A,{categoryLevel1:null===xt||void 0===xt?void 0:xt.categoryLevel1})}),Ei&&(0,O.jsx)("div",{className:V.A.premiumDisclaimer,children:"Event information is provided by the event organizer or compiled from publicly available sources, and may be formatted or summarized by Skyfarer for presentation purposes. Dates, times, locations, and other details are subject to change or cancellation without notice. Skyfarer makes no representations or warranties regarding accuracy or completeness. Please verify and confirm event details with the organizer before attending \u2014 including through the event website or source link provided in this listing, where available."}),Fi&&(0,O.jsx)("div",{className:V.A.premiumDisclaimer,children:"Listing information is provided by the aircraft or real estate owner, seller, or their authorized representative and may be compiled, formatted, or summarized by Skyfarer for presentation purposes. Information is subject to change or prior sale. Skyfarer makes no representations or warranties regarding accuracy or c
2ompleteness. Some aircraft or real estate displayed on this website may have been sold or may no longer be available. Prospective purchasers are responsible for independent verification and due diligence."}),Ri?null:(0,O.jsx)(ne.A,{categoryLevel1:null===ct||void 0===ct||null===(M=ct.attributes)||void 0===M||null===(M=M.publicData)||void 0===M?void 0:M.categoryLevel1,categoryLevel2:null===ct||void 0===ct||null===(F=ct.attributes)||void 0===F||null===(F=F.publicData)||void 0===F?void 0:F.categoryLevel2}),!1,(0,O.jsx)(ae.A,{})]}),(0,O.jsxs)("div",{className:V.A.orderColumnForProductLayout,children:[Ui?(0,O.jsx)("div",{className:V.A.createEventRowDesktop,children:Ei?(0,O.jsx)(w.GF,{className:V.A.createEventButton,name:"CreateEventPage",children:(0,O.jsx)(d.sA,{id:Ui.labelId})}):(0,O.jsx)(w.GF,{className:V.A.createEventButton,name:"EditListingPage",params:{slug:"draft",id:"00000000-0000-0000-0000-000000000000",type:"new",tab:"details"},to:{search:Ui.search},children:(0,O.jsx)(d.sA,{id:Ui.labelId})})}):null,(0,O.jsx)(w.r6,{currentUser:ge,currentUserHasOrders:he,className:c()(V.A.productOrderPanel,{[V.A.imagesEnabled]:_t}),listing:ct,isOwnListing:Lt,onSubmit:e=>{var t,i;const a=(null===ge||void 0===ge||null===(t=ge.id)||void 0===t?void 0:t.uuid)===(null===(i=At.id)||void 0===i?void 0:i.uuid),n="closed"===ct.attributes.state,s=new URLSearchParams(window.location.search).has("reschedule");if(a&&s)return ai(e),void ti(!0);if(a&&!s||n)window.scrollTo(0,0);else if(li&&si===x.S3){(0,k.eu)({...ri,getListing:ve})(e)}else if(li&&"offer"===si){(0,k.Ns)({...ri,getListing:ve})(e)}else gi(e)},authorLink:(0,O.jsx)(w.GF,{className:V.A.authorNameLink,name:rt?"ListingPageVariant":"ListingPage",params:ut,to:{hash:"#author"},children:kt}),title:(0,O.jsx)("div",{className:V.A.mobileTitleWrapper,children:(0,O.jsx)("div",{className:V.A.mobileTitleText,children:(0,O.jsx)(d.sA,{id:"ListingPage.orderTitle",values:{title:ft}})})}),titleDesktop:(0,O.jsxs)("div",{children:[(0,O.jsx)(w.H4,{as:"h1",className:V.A.orderPanelTitle,children:(0,O.jsx)(d.sA,{id:"ListingPage.orderTitle",values:{title:ft}})}),aa,(0,O.jsx)(W,{listing:ct})]}),sectionHeadingAs:"h2",payoutDetailsWarning:St,eventSchedule:(0,O.jsx)(bi,{publicData:xt,listing:ct,className:V.A.eventSectionDesktop}),author:At,onManageDisableScrolling:pe,onContactUser:ci,...nt,validListingTypes:Te.listing.listingTypes,marketplaceCurrency:Te.currency,dayCountAvailableForBooking:Te.stripe.dayCountAvailableForBooking,marketplaceName:Te.marketplaceName,reschedule:Oe,showListingImage:_t,communityUnclaimed:qt,communityUnclaimedPanel:(0,O.jsx)(U,{listing:ct})})]})]}),rt?null:(0,O.jsx)(tt,{listing:ct}),ei&&"undefined"!==typeof document&&n.createPortal((0,O.jsx)("div",{className:V.A.modalOverlay,children:(0,O.jsxs)("div",{className:V.A.modalWindow,children:[(0,O.jsx)("h3",{children:"Confirm Reschedule"}),(0,O.jsx)("p",{children:"Are you sure you want to reschedule this session?"}),(0,O.jsxs)("div",{className:V.A.modalActions,children:[(0,O.jsx)("button",{className:V.A.modalYes,onClick:()=>{gi(ii),ti(!1),ai(null)},children:"Yes, Reschedule"}),(0,O.jsx)("button",{className:V.A.modalNo,onClick:()=>{ti(!1),ai(null)},children:"No, Cancel"})]})]})}),document.getElementById("portal-root")||document.body)]})})},Mi=e=>{var t,i,n,r,c,d;const u=(0,o.wA)(),m=(0,o.Pj)(),{isAuthenticated:y}=(0,o.d4)(e=>e.auth),{showListingError:p,reviews:x,fetchReviewsError:b,fetchReviewsInProgress:w,reviewsListingId:j,suggestionsListingId:A,authorOtherReviews:N,authorReviewsAggregate:k,monthlyTimeSlots:P,timeSlotsForDate:M,sendInquiryInProgress:F,sendInquiryError:T,lineItems:R,fetchLineItemsInProgress:D,fetchLineItemsError:E,inquiryModalOpenForListingId:W,nearbyListingIds:U,inquiryNearbyListingId:q,inquiryNearbyReadyFor:$,nearbyRowsListingId:B,onlineListingIds:H,servicesListingIds:G,cfisNearbyListingIds:V,schoolsListingIds:z,aircraftListingIds:K,similarListingIds:Q,authorListingIds:J,inviteCandidateIds:Y,requestInvites:Z,sendRequestInviteInProgressId:X,sendRequestInviteError:ee}=(0,o.d4)(e=>e.ListingPage),te=(0,o.d4)(e=>{var t;return null===(t=e.user)||void 0===t?void 0:t.currentUser}),ie=(0,o.d4)(e=>{var t;return null===(t=e.user)||void 0===t?void 0:t.currentUserHasOrders}),ae=(0,o.d4)(e=>(0,L.kl)(e)),ne=null===(t=e.params)||void 0===t?void 0:t.id;(0,a.useEffect)(()=>{!ne||w||p||j!==ne&&u((0,S.MB)(new s.gK.UUID(ne))).catch(()=>{})},[ne,j,w,p,u]);const se=(0,Ni._r)(),le=null!==(i=e.params)&&void 0!==i&&i.variant?null:null===(n=e.params)||void 0===n?void 0:n.id;(0,a.useEffect)(()=>{le&&!p&&A!==le&&u((0,S.gO)(le,se)).catch(()=>{})},[le,A,p,se,u]);const oe=null===(r=e.params)||void 0===r?void 0:r.id,re=(0,a.useCallback)(()=>u((0,S.et)(oe,se)).catch(()=>{}),[oe,se,u]),ce=null!==(c=e.params)&&void 0!==c&&c.variant?null:null===(d=e.params)||void 0===d?void 0:d.id,de=(0,a.useCallback)(()=>{ce&&u((0,S.Pt)(ce,se)).catch(()=>{})},[ce,se,u]),ue=(0,a.useCallback)(()=>u((0,S.cJ)()),[u]),ge=(0,a.useMemo)(()=>(0,f.F4)(m.getState(),(U||[]).map(e=>({id:new s.gK.UUID(e),type:"listing"}))).filter(e=>!(0,C.bY)(e)),[U,m]),he=(0,a.useMemo)(()=>(0,f.F4)(m.getState(),(Y||[]).map(e=>({id:new s.gK.UUID(e),type:"listing"}))).filter(e=>!(0,C.bY)(e)),[Y,m]),ve=(0,a.useMemo)(()=>(0,f.F4)(m.getState(),(Q||[]).map(e=>({id:new s.gK.UUID(e),type:"listing"}))),[Q,m]),me=e=>(0,f.F4)(m.getState(),(e||[]).map(e=>({id:new s.gK.UUID(e),type:"listing"}))),ye=(0,a.useMemo)(()=>me(H),[H,m]),pe=(0,a.useMemo)(()=>me(G),[G,m]),xe=(0,a.useMemo)(()=>me(V),[V,m]),be=(0,a.useMemo)(()=>me(z),[z,m]),fe=(0,a.useMemo)(()=>me(K),[K,m]),Le=(0,a.useMemo)(()=>(0,f.F4)(m.getState(),(J||[]).map(e=>({id:new s.gK.UUID(e),type:"listing"}))).filter(e=>!(0,C.bY)(e)),[J,m]),_e=(0,l.useHistory)(),we=(0,l.useLocation)(),[je,Ae]=(0,a.useState)(null);(0,a.useEffect)(()=>{(async()=>{try{const e=new URLSearchParams(we.search).get("reschedule");if(e){const{data:t}=await v.xh.transactions.show({id:e,include:"booking"});Ae({...t.data,booking:t.included.find(e=>"booking"===e.type)})}}catch(e){console.error("Error fetching transaction:",e),(0,g.N)("Error fetching transaction"),(0,h.z3)(e,"reschedule:error_fetching_transaction",{reschedule:je}),_e.push(`/order/${je}`)}})()},[we.search]);const Ne=(0,a.useCallback)(e=>{const t=m.getState(),i={id:e,type:"listing"},a=(0,f.F4)(t,[i]);return 1===a.length?a[0]:null},[m]),Se=(0,a.useCallback)(e=>{const t=m.getState(),i={id:e,type:"ownListing"},a=(0,f.F4)(t,[i]);return 1===a.length?a[0]:null},[m]),ke=(0,a.useCallback)((e,t)=>u((0,L.l)(e,t)),[u]),Ie=(0,a.useCallback)((e,t,i)=>u(e(t,i)),[u]),Ce=(0,a.useCallback)(e=>u((0,S.Zu)(e)),[u]),Pe=(0,a.useCallback)((e,t,i)=>u((0,S.Zs)(e,t,i)),[u]),Me=(0,a.useCallback)((e,t)=>u((0,S.Pu)(e,t)),[u]),Fe=(0,a.useCallback)((e,t)=>u((0,S.gj)(e,t)),[u]),Te=(0,a.useCallback)((e,t,i)=>u((0,S.PZ)(e,t,i)),[u]),Re=(0,a.useCallback)(()=>u((0,_.vb)()),[u]),De=(0,a.useCallback)((e,t,i,a,n)=>u((0,S.r_)(e,t,i,a,n)),[u]),Ee=(0,a.useCallback)(e=>u((0,I.r7)(e)),[u]);return(0,O.jsx)(Ai.A,{...e,PageComponent:Pi,isAuthenticated:y,currentUser:te,currentUserHasOrders:ie,getListing:Ne,getOwnListing:Se,scrollingDisabled:ae,inquiryModalOpenForListingId:W,showListingError:p,reviews:x,fetchReviewsError:b,authorOtherReviews:N,authorReviewsAggregate:k,monthlyTimeSlots:P,timeSlotsForDate:
2M,lineItems:R,fetchLineItemsInProgress:D,fetchLineItemsError:E,sendInquiryInProgress:F,sendInquiryError:T,onManageDisableScrolling:ke,callSetInitialValues:Ie,onFetchTransactionLineItems:Ce,onSendInquiry:Pe,onCreateRequestListing:Me,onInitializeCardPaymentData:Re,onFetchTimeSlots:De,onUpdateFavorites:Ee,reschedule:je,nearbyListings:ge,inquiryNearbyRequested:!!oe&&q===oe,inquiryNearbyReady:!!oe&&$===oe,onFetchInquiryNearby:re,onlineListings:ye,servicesListings:pe,cfisNearbyListings:xe,schoolsListings:be,aircraftListings:fe,nearbyRowsRequested:!!ce&&B===ce,onLoadNearbyRows:de,onLeaveListingPage:ue,similarListings:ve,authorListings:Le,inviteCandidates:he,requestInvites:Z||[],sendRequestInviteInProgressId:X,sendRequestInviteError:ee,onFetchInviteCandidates:Fe,onSendRequestInvite:Te})}},67365(e,t,i){i.d(t,{qW:()=>A,PV:()=>j,Dx:()=>m,t5:()=>p,UT:()=>y,LO:()=>f,TG:()=>w});var a=i(65043),n=i(32423),s=i(27685);const l="SearchHeading_heading__nH33j",o="SearchHeading_breadcrumb__trbyx",r="SearchHeading_crumbLink__l+5Vp",c="SearchHeading_crumbCurrent__twVen",d="SearchHeading_separator__eqpHd";var u=i(70579);const g=(e,t,i)=>({key:e.toLowerCase(),param:"pub_Certifications_Training",option:e,titlePrefix:t,...i?{assetPath:`content/pages/${i}.json`}:{}}),h="endorsements-currency-training-checkouts",v=[g("PPL","Private Pilot Training","private-pilot-skyfarer-academy"),g("IR","Instrument Rating Training","instrument-rating-skyfarer-academy"),g("CPL","Commercial Pilot Training","commercial-pilot-skyfarer-academy"),g("MER","Multi-Engine Rating Training"),g("CFI","Flight Instructor (CFI) Training"),g("CFII","Instrument Instructor (CFII) Training"),g("MEI","Multi-Engine Instructor (MEI) Training"),g("ATPL","Airline Transport Pilot (ATP) Training"),g("Sport-Pilot-License","Sport Pilot Training"),g("CFIG","Glider Instructor (CFIG) Training"),g("Seaplane","Seaplane Rating Training"),g("UAS","Drone (UAS) Training"),g("Glider-Ratings","Glider Training"),g("Helicopter-Ratings","Helicopter Training"),g("Tailwheel","Tailwheel Endorsement Training",h),g("High-Performance-Endorsement","High-Performance Endorsement Training",h),g("Complex-Airplane-Endorsement","Complex Airplane Endorsement Training",h),g("High-Altitude-Endorsement","High-Altitude Endorsement Training",h),{key:"discovery",param:"pub_training_types",option:"Discovery-Flights",assetPath:"content/pages/take-a-discovery-flight.json",titlePrefix:"Discovery Flights"}],m=e=>v.find(t=>((e,t,i)=>{const a=null===e||void 0===e?void 0:e[t];if("string"!==typeof a)return!1;const n=a.replace(/^has_(any|all):/,"").split(",").filter(Boolean);return 1===n.length&&n[0]===i})(e,t.param,t.option))||null,y=(e,t)=>{const i=m(t);return e&&i?`${i.titlePrefix} \u2014 ${e}`:e},p=(e,t)=>{if(!e)return null;const i=(null===t||void 0===t?void 0:t.categories)||[],a=i.find(t=>t.id===e);if(a)return a.name;for(const l of i){var n;const t=null===(n=l.subcategories)||void 0===n?void 0:n.find(t=>t.id===e);if(t)return t.name;for(const i of l.subcategories||[]){var s;const t=null===(s=i.subcategories)||void 0===s?void 0:s.find(t=>t.id===e);if(t)return t.name}}return e},x=e=>(e||"").replace(/,\s*(USA|United States|United States of America)\s*$/i,"").trim(),b=["pilot-gears-accessories","1-on-1-Live-Session"],f=e=>b.includes(null===e||void 0===e?void 0:e.pub_categoryLevel1),L=e=>{const{address:t,pub_categoryLevel1:i,pub_categoryLevel2:a,pub_categoryLevel3:n}=e||{};return{place:x(t),categoryIds:[i,a,n].filter(Boolean)}},_=new Map,w=e=>{const{place:t}=L(e),i=null===e||void 0===e?void 0:e.bounds,n=i?Math.abs(i.ne.lat-i.sw.lat):null,s=i?Math.abs(i.ne.lng-i.sw.lng):null,l=null!=n&&n<4&&s<4?`${((i.ne.lat+i.sw.lat)/2).toFixed(1)},${((i.ne.lng+i.sw.lng)/2).toFixed(1)}`:null,[o,r]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(t||!l||"undefined"===typeof window)return;const[e,i]=l.split(",").map(parseFloat);let a=!0,n=null;const s=t=>{var l;a&&(null!==(l=window.google)&&void 0!==l&&null!==(l=l.maps)&&void 0!==l&&l.Geocoder?((e,t)=>{const i=`${e.toFixed(1)},${t.toFixed(1)}`;return _.has(i)||_.set(i,new Promise(i=>{(new window.google.maps.Geocoder).geocode({location:{lat:e,lng:t}},(e,t)=>{var a,n,s;if("OK"!==t||null===e||void 0===e||!e.length)return i(null);const l=e.find(e=>e.types.includes("locality"))||e.find(e=>e.types.includes("postal_town"))||e.find(e=>e.types.includes("administrative_area_level_2")),o=(null===l||void 0===l?void 0:l.address_components)||[],r=(null===(a=o.find(e=>e.types.includes("locality")||e.types.includes("postal_town")))||void 0===a?void 0:a.long_name)||(null===(n=o.find(e=>e.types.includes("administrative_area_level_2")))||void 0===n?void 0:n.long_name),c=null===(s=o.find(e=>e.types.includes("administrative_area_level_1")))||void 0===s?void 0:s.long_name;i(r?c?`${r}, ${c}`:r:null)})}
2)),_.get(i)})(e,i).then(e=>{a&&r(e)}):t>0&&(n=setTimeout(()=>s(t-1),500)))};return s(20),()=>{a=!1,n&&clearTimeout(n)}},[t,l]),t||(l?o:null)},j=e=>{const{urlQueryParams:t,categoryConfiguration:i,intl:a}=e,{categoryIds:n}=L(t),s=w(t);if(f(t))return null;const o=n[n.length-1],r=o?{"request-flight-training":"Flight Training Request","request-aviation-services":"Aviation Services Request"}[o]||y(p(o,i),t):a.formatMessage({id:"SearchPage.headingAllListings"}),c=s?a.formatMessage({id:"SearchPage.resultsHeading"},{category:r,place:s}):r;return(0,u.jsx)("h1",{className:l,children:c})},A=e=>{const{urlQueryParams:t,categoryConfiguration:i,intl:l}=e,{categoryIds:g}=L(t),h=w(t);if(f(t)||0===g.length&&!h)return null;const{address:v,bounds:m}=t||{},y={...v?{address:v}:{},...m?{bounds:m}:{}},x=["pub_categoryLevel1","pub_categoryLevel2","pub_categoryLevel3"],b=g.map((e,t)=>{const a={...y};for(let i=0;i<=t;i++)a[x[i]]=g[i];return{key:e,label:p(e,i),search:`?${(0,n.As)(a)}`}});return(0,u.jsxs)("nav",{className:o,"aria-label":l.formatMessage({id:"SearchPage.breadcrumbLabel"}),children:[b.map((e,t)=>(0,u.jsxs)(a.Fragment,{children:[t>0?(0,u.jsx)("span",{className:d,children:"\u203a"}):null,(0,u.jsx)(s.GF,{className:r,name:"SearchPage",to:{search:e.search},children:e.label})]},e.key)),h?(0,u.jsxs)(u.Fragment,{children:[b.length>0?(0,u.jsx)("span",{className:d,children:"\u203a"}):null,(0,u.jsx)("span",{className:c,children:h})]}):null]})}}}]);
3//# sourceMappingURL=ListingPageCarousel.633611e3.chunk.js.map

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.