1import{o as e}from"./rolldown-runtime-DAXXjFlN.js";/* empty css *//* empty css */import{n as t,t as n}from"./jsx-runtime-D9DEgV4S.js";import{m as r}from"./preferences-B-nqaI8H.js";import{ut as i}from"./utils-BEnLUBV9.js";import{t as a}from"./useTranslation-BjqtdquH.js";import{i as o,o as s,t as c}from"./Button-DPvwhvkx.js";import{s as l}from"./ModalComponent-DP96Sws9.js";import{O as ee,i as te,l as u,n as d,r as f}from"./typography-9TbiHUfQ.js";import{user as p}from"./index-DrMyG82H.js";import{g as m}from"./Header-BHB5jomY.js";import{t as h}from"./Rocket-C0dNojYq.js";import{r as g}from"./Toggle-DJT3DIYh.js";import{t as _}from"./Play-CJ6ixS5g.js";var v=e(t(),1),y=`_10vc9o60`,b=`_10vc9o61`,x=`_10vc9o62`,S=`_10vc9o63`,C=`_10vc9o64`,w=`_10vc9o65`,T=`_10vc9o67`,E=`_10vc9o68`,D=`_10vc9o69`,ne=`_10vc9o6a`,re=`_10vc9o6b`,ie=`_10vc9o6c`,O=`_10vc9o6d`,k=`_10vc9o6e`,A=`_10vc9o6f`,j=`_10vc9o6h`,M=`_10vc9o6i`,N=`_10vc9o6j`,P=`_10vc9o6k`,F=`_10vc9o6l`,ae=`_10vc9o6n`,I=`_10vc9o6o`,L=`_10vc9o6p`,R=`_10vc9o6q`,z=`_10vc9o6r`,B=`_10vc9o6s`,V=n(),H=e=>/\.(mp4|webm|mov)$/i.test(e||``),U=({src:e,alt:t=``,hoverPlay:n=!1,natural:r=!1})=>{let i=(0,v.useRef)(null),[a,o]=(0,v.useState)(!1);if(!e)return null;let s=r?ae:P;return H(e)?(0,V.jsxs)(`div`,{className:n?`${s} ${F}${a?` playing`:``}`:s,onMouseEnter:n?()=>{let e=i.current;e&&e.play().catch(()=>{})}:void 0,onMouseLeave:n?()=>{let e=i.current;e&&(e.pause(),e.currentTime=0)}:void 0,children:[(0,V.jsx)(`video`,{ref:i,src:e,muted:!0,loop:!0,playsInline:!0,preload:`metadata`,autoPlay:!n,disablePictureInPicture:!0,disableRemotePlayback:!0,controlsList:`nodownload nofullscreen noremoteplayback`,onPlaying:n?()=>o(!0):void 0,onPause:n?()=>o(!1):void 0}),n&&(0,V.jsx)(`span`,{className:`_10vc9o6m`,"aria-hidden":`true`,children:(0,V.jsx)(_,{})})]}):(0,V.jsx)(`div`,{className:s,children:(0,V.jsx)(`img`,{src:e,alt:t,loading:`lazy`})})},W=()=>r()?`maplibre`:`openlayers`,G=e=>e?e===`premium`?p.type!==`basic`:e===`pilot`?!!(p.type.match(/pilot|business/)||p.spotter_before_august):!0:!0,K=e=>Array.isArray(e)&&e.every(e=>(!e?.engine||e.engine===W())&&G(e?.plan)),q=e=>!!(e?.cta_label&&K(e?.cta_steps)),oe=[`flyTo`,`selectFlight`,`selectAirport`,`openPanel`,`scrollTo`],se=e=>Array.isArray(e)&&e.some(e=>oe.includes(e?.do)),J=!1,Y=new Set,ce=e=>{J!==!!e&&(J=!!e,Y.forEach(e=>e()))},le=e=>(Y.add(e),()=>Y.delete(e)),X=()=>(0,v.useSyncExternalStore)(le,()=>J),Z=({feature:e,onOpenDetail:t,onTryIt:n})=>{let{t:r}=a(),i=X();return(0,V.jsxs)(`div`,{className:L,children:[(0,V.jsx)(d,{className:N,children:e.title}),(0,V.jsx)(U,{src:e.media,alt:e.title,hoverPlay:!0}),(0,V.jsx)(f,{className:I,children:e.preview_text}),(0,V.jsxs)(`div`,{className:R,children:[q(e)&&(0,V.jsx)(c,{variant:`outline`,color:`green`,textColor:`green`,size:3,text:e.cta_label,disabled:i,onClick:()=>n(e)}),(0,V.jsx)(c,{variant:`text`,mono:!0,size:3,className:z,text:r(`whatsNew.knowMore`),onClick:()=>t(e)})]})]})},ue=({feature:e,onBack:t,onTryIt:n})=>{let{t:r}=a(),i=X(),o=e.how_to_image||e.how_to_text;return(0,V.jsxs)(`div`,{className:B,children:[(0,V.jsxs)(`button`,{type:`button`,className:M,onClick:t,children:[(0,V.jsx)(m,{}),(0,V.jsx)(u,{children:r(`whatsNew.back`)})]}),(0,V.jsxs)(`div`,{className:L,children:[(0,V.jsx)(d,{className:N,children:e.title}),(0,V.jsx)(U,{src:e.media,alt:e.title}),(0,V.jsx)(f,{className:I,children:e.text_1}),o&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(f,{className:`_10vc9o6t`,children:r(`whatsNew.howToUse`)}),e.how_to_image&&(0,V.jsx)(U,{src:e.how_to_image,alt:``,natural:!0}),e.how_to_text&&(0,V.jsx)(f,{className:`_10vc9o6o`,children:e.how_to_text})]}),q(e)&&(0,V.jsx)(c,{variant:`outline`,color:`green`,textColor:`green`,size:3,text:e.cta_label,disabled:i,onClick:()=>n(e),style:{width:`100%`}})]})]})},Q=`overview`,$={height:32,padding:`0 12px`,textTransform:`none`,flexShrink:0},de=({newFeatures:e,olderFeatures:t,newCount:n,dontShowAgain:r,setDontShowAgain:u,onClose:d,onTryIt:p})=>{let{t:m}=a(),[_,y]=(0,v.useState)(Q),[b,x]=(0,v.useState)(!1),S=(0,v.useMemo)(()=>b?[...e,...t]:e,[e,t,b]),C=_===Q?null:[...e,...t].find(e=>e.id===_),w=(0,v.useRef)(null),[T,E]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=w.current;if(!e)return;let t=()=>E(e.scrollLeft+e.clientWidth<e.scrollWidth-4);return t(),e.addEventListener(`scroll`,t),window.addEventListener(`resize`,t),()=>{e.removeEventListener(`scroll`,t),window.removeEventListener(`resize`,t)}},[S.length]);let M=()=>w.current?.scrollBy({left:160,behavior:`smooth`}),N=e=>y(e.id),P=()=>y(Q),F=t.length>0&&!b;return(0,V.jsxs)(`div`,{className:D,children:[(0,V.jsxs)(`div`,{className:ne,children:[(0,V.jsxs)(`div`,{className:re,children:[(0,V.jsx)(h,{}),(0,V.jsx)(ee,{children:m(`whatsNew.title`)})]}),(0,V.jsx)(c,{Icon:l,variant:`filled`,mono:!0,toggleShape:`circle`,onClick:d,title:m(`close`)})]}),(0,V.jsx)(f,{className:ie,children:(0,V.jsx)(i,{i18nKey:`whatsNew.discover`,count:n,components:{b:(0,V.jsx)(`span`,{className:O})}})}),(0,V.jsxs)(`div`,{className:k,children:[(0,V.jsxs)(`div`,{className:A,ref:w,children:[(0,V.jsx)(o,{label:m(`whatsNew.overview`),active:_===Q,setActive:P,mono:_!==Q,style:$}),S.map(e=>(0,V.jsx)(o,{label:e.title,active:_===e.id,setActive:()=>N(e),mono:_!==e.id,style:$},e.id))]}),T&&(0,V.jsx)(`button`,{type:`button`,className:`_10vc9o6g`,onClick:M,"aria-label":m(`whatsNew.scroll`),children:(0,V.jsx)(s,{direction:`right`})})]}
1),(0,V.jsx)(`div`,{className:j,children:_===Q?(0,V.jsxs)(V.Fragment,{children:[e.map(e=>(0,V.jsx)(Z,{feature:e,onOpenDetail:N,onTryIt:p},e.id)),b&&t.map(e=>(0,V.jsx)(Z,{feature:e,onOpenDetail:N,onTryIt:p},e.id))]}):C&&(0,V.jsx)(ue,{feature:C,onBack:P,onTryIt:p})}),_===Q&&(0,V.jsxs)(`div`,{className:`_10vc9o6u`,children:[F&&(0,V.jsx)(c,{variant:`text`,color:`green`,text:m(`whatsNew.seeMoreFeatures`),onClick:()=>x(!0)}),(0,V.jsxs)(`label`,{className:`_10vc9o6v`,children:[(0,V.jsx)(g,{checked:r,onChange:()=>u(!r)}),(0,V.jsx)(te,{children:m(`whatsNew.dontShowAgain`)})]})]})]})},fe={"map-options.map-types":{panel:`mapOptions`,label:`Map Options â Map types`},"map-options.brightness":{panel:`mapOptions`,label:`Map Options â Brightness`},"map-options.overlays":{panel:`mapOptions`,label:`Map Options â Overlays`},"map-options.navaids":{panel:`mapOptions`,label:`Map Options â Navaids & waypoints`},"map-options.airports":{panel:`mapOptions`,label:`Map Options â Airports`},"map-options.aircraft":{panel:`mapOptions`,label:`Map Options â Aircraft`},"map-options.aircraft-labels":{panel:`mapOptions`,label:`Map Options â Aircraft labels`},"map-options.labels-units":{panel:`mapOptions`,label:`Map Options â Labels & units`},"weather.layers":{panel:`weather`,label:`Weather â Layer list`}};export{K as a,y as c,x as d,C as f,se as i,E as l,T as m,de as n,U as o,w as p,ce as r,b as s,fe as t,S as u};
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.