PageSourceSearch

https://frontiersnorth.com/_nuxt/Bda_bI70.js

js frontiersnorth.com collected 2026-09-24 19:33:23 UTC 4,798 bytes, 1 lines download raw bytes

1import{B as E,b as L,w as $,e as r,f as b,M as j,i as a,j as F,F as d,l as h,a3 as Q,_ as R,Q as C,c as A,o as l,a5 as X,h as M,k as s,m as G,t as g,v as B,x as N,r as V,X as y,a8 as q,g as T,z as J}from"./ClacqbRY.js";import{_ as K}from"./1oQZJejQ.js";import{_ as W}from"./Cbzbj3jC.js";import{_ as Z}from"./B-5Qp_ed.js";import{u as ee}from"./ClNVASDZ.js";import"./C2r6ZntD.js";const te={key:0,class:"text-center font-normal text-7.5xl"},se={key:0,class:"mx-auto block font-script text-green dark:text-white text-6xl"},ae={class:"grid gap-13 grid-cols-12"},le={class:"pt-2 col-span-4 border-t-2 border-t-dkblue dark:border-t-white"},oe={class:"w-full / flex gap-13 items-center justify-between focus-within:ring-4 focus-within:ring-blue rounded-md"},re=["value"],ie={class:"pt-2 col-span-4 border-t-2 border-t-dkblue dark:border-t-white"},ne={class:"w-full / flex gap-13 items-center justify-between focus-within:ring-4 focus-within:ring-blue rounded-md"},ue={class:"pt-2 col-span-4 border-t-2 border-t-dkblue dark:border-t-white"},de={class:"w-full / flex gap-13 items-center justify-between focus-within:ring-4 focus-within:ring-blue rounded-md"},ce=["value"],pe={key:0,class:"grid lg:grid-cols-4 gap-x-13 gap-y-24"},xe={__name:"index",async setup(ge){let o,n;const z=E("darkmode",()=>!1),_=C("globals"),{$directus:m,$readItems:f}=L(),D=C("navHeight");let{data:w,status:_e,error:me}=([o,n]=$(()=>h("media_articles",()=>m.request(f("media_articles",{filter:{status:A()},sort:["sort","-post_date"],fields:["id","title","slug","description","category.*","media_outlet.*","media_outlet.logo.*","url","image.*","post_date"]})))),o=await o,n(),o);const{data:I}=([o,n]=$(()=>h("media_outlets",()=>m.request(f("media_outlets",{fields:["title","slug","logo.id","logo.title","logo.description","logo.type","logo.width","logo.height"]})))),o=await o,n(),o);async function v(){const i={status:A()};u.value!==""&&(i.post_date={_gte:`${u.value}-01-01T00:00:00`,_lt:`${u.value}-12-31T23:59:59`}),c.value!==""&&(i.category={slug:{_eq:c.value}}),p.value!==""&&(i.media_outlet={slug:{_eq:p.value}}),w.value=await m.request(f("media_articles",{filter:i,fields:["id","title","slug","description","category.*","media_outlet.*","media_outlet.logo.*","url","image.*","post_date"]}))}const{data:P}=([o,n]=$(()=>h("media-years",()=>m.request(f("media_articles",{filter:{status:A()},fields:["date_created"],sort:["sort","-date_created"]})),{transform:i=>[...new Set(i.map(e=>e.date_created.substring(0,4)))].sort((e,k)=>k-e)})),o=await o,n(),o),U=C("categories"),c=V(""),u=V(""),p=V("");return ee({title:"Media Articles",seo:{meta_description:"Media Articles about Frontiers Travel"}}),(i,e)=>{const k=Q,H=K,S=R,O=W,Y=Z;return l(),r(d,null,[b(k,{style:j(a(z)?null:`background: url(${a(X)("56233210-351a-4204-b5bb-3e526b0682ad")}) no-repeat top center; background-size: contain;`)},null,8,["style"]),b(H),b(S,{class:"text-2lg font-bold",style:j(`padding-top:${a(D)}px`)},{default:F(()=>[a(_).media_article_title?(l(),r("h1",te,[G(g(a(_).media_article_title),1),a(_).media_article_title?(l(),r("span",se,g(a(_).media_article_subtitle),1)):M("",!0)])):M("",!0),e[12]||(e[12]=s("p",{class:"uppercase my-2"},"Filter by:",-1)),s("div",ae,[s("section",le,[s("label",oe,[e[7]||(e[7]=s("span",{class:"uppercase"},"Category",-1)),B(s("select",{class:"pl-4 pr-6 grow outline-none text-right",onCh
1ange:e[0]||(e[0]=t=>v()),"onUpdate:modelValue":e[1]||(e[1]=t=>N(c)?c.value=t:null)},[e[6]||(e[6]=s("option",{value:""},"All",-1)),(l(!0),r(d,null,y(a(U),t=>(l(),r("option",{key:`category-${t.slug}`,value:t.slug},g(t.title),9,re))),128))],544),[[q,a(c)]])])]),s("section",ie,[s("label",ne,[e[9]||(e[9]=s("span",{class:"uppercase"},"Year / Archive",-1)),B(s("select",{class:"pl-4 pr-6 grow outline-none text-right",onChange:e[2]||(e[2]=t=>v()),"onUpdate:modelValue":e[3]||(e[3]=t=>N(u)?u.value=t:null)},[e[8]||(e[8]=s("option",{value:""},"All",-1)),(l(!0),r(d,null,y(a(P),t=>(l(),r("option",{key:`post-date-year${t}`},g(t),1))),128))],544),[[q,a(u)]])])]),s("section",ue,[s("label",de,[e[11]||(e[11]=s("span",{class:"uppercase"},"Media Outlet",-1)),B(s("select",{class:"pl-4 pr-6 grow outline-none text-right",onChange:e[4]||(e[4]=t=>v()),"onUpdate:modelValue":e[5]||(e[5]=t=>N(p)?p.value=t:null)},[e[10]||(e[10]=s("option",{value:""},"All",-1)),(l(!0),r(d,null,y(a(I),t=>(l(),r("option",{key:`media-outlet-${t.slug}`,value:t.slug},g(t.title),9,ce))),128))],544),[[q,a(p)]])])])])]),_:1},8,["style"]),b(S,{class:"my-24"},{default:F(()=>[a(w)?(l(),r("div",pe,[(l(!0),r(d,null,y(a(w),(t,x)=>(l(),r(d,{key:`media_article_${x}`},[x<3?(l(),T(O,{key:0,block:t,class:J(x==0?"col-span-2":"")},null,8,["block","class"])):(l(),T(Y,{key:1,block:t,class:"col-span-2"},null,8,["block"]))],64))),128))])):M("",!0)]),_:1})],64)}}};export{xe 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.