PageSourceSearch

https://www.flyingbulls.at/_nuxt/BS1Jo_VH.js

js flyingbulls.at collected 2026-09-24 23:19:53 UTC 3,831 bytes, 1 lines download raw bytes

1import{u as B}from"./CQ5jA6M6.js";import{u as N}from"./BrrG4z_F.js";import{d as $,r as I,w as H,g as K,A as D,o as O,x as U,j as W,i as n,c as i,l as t,k as b,t as f,F as S,E as z,f as y,b as l}from"./D7u2dyT6.js";import"./kRkgPswe.js";const G={ref:"countercontainer",class:"container-10 rounded sm:py-48px"},J={class:"counter-item w-full text-center sm:text-right flex-basis-1/3 flex-shrink"},Q={class:"summary !text-nowrap"},R={class:"h1 !text-primary !<sm:text-32px !text-nowrap"},X=["data-to"],Z={key:0},tt={key:0,class:"flex justify-end w-full"},et=t("span",{class:"i-custom-spinner text-primary text-7xl"},null,-1),st=[et],ot={class:"counter-item w-full text-center sm:text-right flex-basis-1/3 flex-shrink"},at={class:"summary !text-nowrap"},rt=["data-to"],nt={key:0,class:"flex justify-end w-full"},it=t("span",{class:"i-custom-spinner text-primary text-7xl"},null,-1),ct=[it],lt={class:"counter-item w-full text-center sm:text-right flex-basis-1/3 flex-shrink"},ut={class:"summary !text-nowrap"},dt=["data-to"],mt={key:0,class:"flex justify-end w-full"},pt=t("span",{class:"i-custom-spinner text-primary text-7xl"},null,-1),ft=[pt],yt=$({__name:"T3CeMaskCounterAircraft",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},summary:{},aircraft:{}},async setup(T){let h,A;const{kilogramsToPounds:M,kilometersPerHourToKnots:j}=B(),q=T,E=I([]),C=I(!1),{data:c,isLoading:g,fetchData:L}=N(),{pageData:Y}=([h,A]=H(()=>K()),h=await h,A(),h),_=D(()=>{var e;return((e=Y.value)==null?void 0:e.i18n.find(a=>a.active===1)).twoLetterIsoCode});L({path:"/items/fleet/"+q.aircraft,query:{fields:["*"]}});const F=D(()=>{if(!c.value||!c.value.registrations)return[];const o=new Set;c==null||c.value.registrations.forEach(s=>{o.add(s.construction_year)});const e=Array.from(o).sort();return e.map((s,r)=>r===0||Math.floor(s/10)!==Math.floor(e[r-1]/10)?s:s%100)});function P(o,e,a="en",s=!0){const r=parseInt(o.textContent||"0"),u=2e3;let d=null;const p=new Intl.NumberFormat(a,{minimumFractionDigits:0,maximumFractionDigits:0});function m(v){d||(d=v);const w=v-d,V=Math.min(w/u,1),k=Math.floor(V*(e-r)+r);o.textContent=s?p.format(k):k.toString(),k<e&&requestAnimationFrame(m)}requestAnimationFrame(m)}let x;return O(()=>{x=new IntersectionObserver((e,a)=>{e.forEach((s,r)=>{if(s.isIntersecting){const u=s.target;u.querySelectorAll("[data-to]").forEach((p,m)=>{const v=parseInt(p.getAttribute("data-to")||"0"),w=!(r===0&&m===0);P(p,v,_.value,w)}),a.unobserve(u),setTimeout(()=>{C.value=!0},2e3)}})}),E.value.querySelectorAll(".counter-item").forEach(e=>{x.observe(e)})}),U(()=>{x&&x.disconnect()}),(o,e)=>{var s,r,u,d;const a=W("in-viewport");return n(),i("div",G,[t("div",{ref_key:"counterItems",ref:E,class:"flex justify-end gap <sm:flex-col"},[t("div",J,[b((n(),i("div",null,[t("div",Q,f(o.$t("specs.year")),1),t("div",R,[t("span",{"data-to":F.value[0]},"0",8,X),(n(!0),i(S,null,z(F.value,(p,m)=>(n(),i(S,{key:m},[m>0&&C.value?(n(),i("span",Z,"/"+f(p),1)):y("",!0)],64))),128))]),l(g)?(n(),i("div",tt,st)):y("",!0)])),[[a]])]),t("div",ot,[b((n(),i("div",null,[t("div",at,f(o.$t("specs.operatingEmptyWeight"))+" - "+f(_.value=="en"?"lbs":"kg"),1),t("div",{class:"h1 !text-primary !<sm:text-32px !text-nowrap","data-to":_.value=="en"?l(M)((s=l(c))==null?void 0:s.operating_empty_weight,0):(r=l(c))==null?void 0:r.operating_empty_weight},"0",8,rt),l(g)?(n(),i("div",nt,ct)):y("",!0)])),[[a,{delay:200}]])]),t("div",lt,[b((n(),i("div",null,[t("div",ut,f(o.$t("specs.maxSpeed"))+" - "+f(_.value=="en"?"kts":"km/h"),1),t("div",{class:"h1 !text-primary !<sm:text-32px !text-nowrap","data-to":_.value=="en"?l(j)((u=l(c))==null?void 0:u.max_speed,0):(d=l(c))==null?void 0:d.max_speed},"0",8,dt),l(g)?(n(),i("div",mt,ft)):y("",!0)])),[[a,{delay:400}]])])],512)],512)}}});export{yt as default};

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.