PageSourceSearch

https://polynion.edu.pl/_nuxt/qABgTjw0.js

js polynion.edu.pl collected 2026-10-04 00:49:37 UTC 4,500 bytes, 1 lines download raw bytes

1import{d as I,u as N,g as d,h as f,j as b,w as C,ay as T,i as e,t as n,k as l,M as H,N as k,n as B,r as v,L as F,m as A,s as E,aB as x,a8 as D,D as S,a5 as w,c as $,G as O,o as P,O as R,_ as U}from"./BrZplLHz.js";import{_ as G}from"./BcoYjcoB.js";const V={class:"history-shell"},Y=["aria-busy"],K={class:"table-heading"},M={id:"history-title"},W={class:"history-head","aria-hidden":"true"},j={key:0,class:"loading-rows","aria-hidden":"true"},q=["datetime"],z=["data-status"],Q={key:1,class:"empty"},X=I({__name:"FlightHistory",props:{flights:{default:()=>[]},loading:{type:Boolean,default:!1},eyebrow:{default:"POLYFLIGHT ARCHIVE · UTC"},title:{default:"FLIGHT HISTORY"},description:{default:"Landed flights leave the live board and move here with their public Black Box records."},rowTo:{}},setup(a){const r=a,{t:o}=N(),c=D,h=v(()=>r.flights.filter(t=>t.status==="landed"||t.status==="void"||t.status==="cancelled").map(t=>({flight:t,to:r.rowTo?.(t)||null})));function y(t){const i=new Date(t);return Number.isFinite(i.valueOf())?`${i.toISOString().slice(0,16).replace("T"," ")} UTC`:"--"}function _(t){return t?t.toUpperCase():"--"}function m(t){return typeof t=="number"&&Number.isInteger(t)&&t>=0?String(t):"--"}function u(t){return t?t.replaceAll("_"," ").toUpperCase():""}function L(t,i){if(t.status==="landed")return i?o("polyflight.openBlackBox","OPEN BLACK BOX →"):o("polyflight.landed","LANDED");const p=u(t.financialStatus),g=p?`${o("polyflight.cancelled","CANCELLED")} · ${p}`:o("polyflight.cancelled","CANCELLED");return i?`${g} →`:g}return(t,i)=>{const p=G,g=F;return d(),f("main",V,[b(p,{eyebrow:a.eyebrow,title:a.title,description:a.description},{actions:C(()=>[T(t.$slots,"actions",{},void 0,!0)]),_:3},8,["eyebrow","title","description"]),T(t.$slots,"notice",{},void 0,!0),e("section",{class:"history-table","aria-labelledby":"history-title","aria-busy":a.loading},[e("div",K,[e("h2",M,n(l(o)("polyflight.completedFlights","LANDED FLIGHTS / CANCELLATIONS")),1),e("span",null,n(l(h).length),1)]),e("div",W,[e("span",null,n(l(o)("polyflight.flight","FLIGHT")),1),e("span",null,n(l(o)("polyflight.landed","LANDED")),1),e("span",null,n(l(o)("polyflight.tickets","TICKETS")),1),e("span",null,n(l(o)("polyflight.weather","WEATHER")),1),i[0]||(i[0]=e("span",null,null,-1))]),a.loading&&l(h).length===0?(d(),f("div",j,[(d(),f(H,null,k(5,s=>b(g,{key:s,class:"h-14 rounded-none"})),64))])):B("",!0),(d(!0),f(H,null,k(l(h),s=>(d(),A(x(s.to?l(c):"div"),{key:s.flight.id,to:s.to||void 0,class:"history-row","data-linked":s.to?"true":"false"},{default:C(()=>[e("span",null,[e("small",null,n(l(o)("polyflight.flight","FLIGHT")),1),e("b",null,n(s.flight.flightCode),1)]),e("span",null,[e("small",null,n(l(o)("polyflight.landed","LANDED")),1),e("time",{datetime:s.flight.landsAt},n(y(s.flight.landsAt)),9,q)]),e("span",null,[e("small",null,n(l(o)("polyflight.tickets","TICKETS")),1),E(n(m(s.flight.ticketCount)),1)]),e("span",null,[e("small",null,n(l(o)("polyflight.weather","WEATHER")),1),E(n(_(s.flight.weather)),1)]),e("span",{class:"state","data-status":s.flight.status},n(L(s.flight,!!s.to)),9,z)]),_:2},1032,["to","data-linked"]))),128)),!a.loading&&l(h).length===0?(d(),f("p",Q,n(l(o)("polyflight.noCompletedFlights","No completed flights yet.")),1)):B("",!0)],8,Y)])}}}),J=Object.assign(S(X,[["__scopeId","data-v-013da42e"]]),{__name:"PolyflightFlightHistory"}),et=I({__name:"history",async setup(a){let r,o;const{t:c}=N(),{trackViewContent:h}=w();$(()=>({title:`${c("polyflight.flightHistory","Flight History")} & Black Box | Polynion`}));const{data:y,status:_}=([r,o]=O(()=>R("/api/polyflight/flights",{query:{limit:60}},"$2aQSNcds4z")),r=await r,o(),r);function m(u){return u.status!=="landed"?null:`/polyflight/black-box/${encodeURIComponent(u.flightCode)}`}return P(()=>h("polyflight-history",{content_ids:["polyflight","history"],content_name:"Polyflight History",content_category:"polyflight"})),(u,L)=>{const t=U,i=J;return d(),A(i,{flights:l(y)?.flights,loading:l(_)==="pending",eyebrow:l(c)("polyflight.archive","POLYFLIGHT ARCHIVE · UTC"),title:l(c)("polyflight.flightHistory","FLIGHT HISTORY"),description:l(c)("polyflight.historyDescription","
1Landed flights leave the live board and move here with their public Black Box records."),"row-to":m},{actions:C(()=>[b(t,{to:"/polyflight",color:"neutral",variant:"soft",label:l(c)("polyflight.liveBoard","Live board")},null,8,["label"])]),_:1},8,["flights","loading","eyebrow","title","description"])}}});export{et 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.