PageSourceSearch

https://www.lenzing.com/_nuxt/BgGX2Lv_.js

js lenzing.com collected 2026-10-02 03:30:43 UTC 4,244 bytes, 1 lines download raw bytes

1import{_ as G}from"./32mbEFsV.js";import{_ as J}from"./C6uVSBCv.js";import{a as K,b as O,_ as Z}from"./DPujSxKJ.js";import{_ as j}from"./CJAKLUPr.js";import{K as Q,C as X,z as D,R as S,d as Y}from"./26piHi_H.js";import{_ as tt}from"./DRQ_wV5p.js";import{k as et,b as v,l as nt,q as at,al as lt,ac as $,I as s,J as c,Z as C,u as e,a2 as m,$ as b,W as y,F,a8 as ot,z as B,ad as st}from"./CSYEA54b.js";import"./BSrxFlAI.js";import"./vSkwUKhM.js";import"./CN-s-WuJ.js";import"./CERZD3Zc.js";import"./B_D7Fgpc.js";import"./B65w1KRU.js";import"./BIuJvOAI.js";import"./DAb_2-JJ.js";import"./BhgYZHNx.js";import"./F_WQHJkQ.js";const it={class:"xs:grid-cols-2 mt-10 grid grid-cols-1 gap-3 sm:grid-cols-3 md:grid-cols-4"},rt={class:"flex flex-row flex-wrap items-center gap-x-4 gap-y-0"},ct={key:1,class:"mt-12 flex flex-col items-center"},dt={class:"w-48"},ut=["innerHTML"],x=12,Pt=et({__name:"FilterableNewsGrid",props:{blok:{}},setup(mt){const d=v(!1);let o=0,l=x,p="all";const P=Q(),u=v([]),i=v([]),_=v([]),{locale:A,t:g}=X(),{currentFolder:L}=D(),f=nt(()=>D().isFiltrationSite).value,T={content_type:f?"blog-post-filtration":"blog-post",starts_with:`${A.value}/${L}`,sort_by:"content.startDate:desc",version:"published"},E=n=>Array.isArray(n)?n.map(a=>({label:g(a)})):n?[{label:g(n)}]:[],M=async()=>await P.getAll("cdn/stories",{...T}),w=n=>{var a;n!==void 0&&(p=((a=_.value[n])==null?void 0:a.key)||"all",l=x);try{p==="all"?i.value=u.value?[...u.value]:[]:i.value=u.value?u.value.filter(r=>r.content.tag&&String(r.content.tag).split(",").map(h=>h.trim()).includes(p)):[],o=i.value.length,i.value=i.value.slice(0,l)}catch{}finally{d.value=!1}},N=async()=>{d.value=!0,await z(),w()},z=async()=>{l=l+x,l>o&&(l=o),await Promise.resolve()};return at(async()=>{const n=await M();u.value=n,i.value=n?[...n].slice(0,l):[],o=n.length,_.value=n?[...new Set(n.map(a=>a.content.tag).filter(a=>a!=="").filter(Boolean))].map(a=>({key:String(a),label:g(String(a))})).sort((a,r)=>a.label.localeCompare(r.label)):[]}),(n,a)=>{const r=G,h=J,I=K,U=O,V=Z,q=j,H=Y,R=tt,W=lt("editable");return $((s(),c(R,{class:"container"},{default:C(()=>[e(_).length>1?(s(),c(r,{key:0,items:[{label:n.$t("all")},...e(_)],"default-index":0,ui:{list:{width:"w-full sm:w-fit"}},onChange:a[0]||(a[0]=t=>w(t-1))},null,8,["items"])):m("",!0),b("div",it,[(s(!0),y(F,null,ot(e(i),t=>{var k;return s(),y(F,null,[t.content.tag!=="events"?(s(),c(h,{key:t.full_slug+"-"+t.content.tag+"-post",tag:e(g)(String(t.content.tag)),image:t.content.thumbnail,date:(k=t==null?void 0:t.content)!=null&&k.startDate?new Date(String(t.content.startDate)):void 0,slug:e(S)(t.full_slug),title:String(t.content.title),"headline-extra-classes":"min-h-[4.2em]",dark:!1},null,8,["tag","image","date","slug","title"])):t.content.tag==="events"&&t.content.thumbnail?(s(),c(V,{key:t.full_slug+"-"+t.content.tag+"-event",image:t.content.thumbnail,"start-date":new Date(t.content.startDate),"end-date":t.content.endDate?new Date(t.content.endDate):void 0,slug:e(S)(t.full_slug),title:t.content.title,dark:!1,badges:E(t.content.tag),location:t.content.location},{"date-and-location":C(()=>[b("div",rt,[t.content.startDate?(s(),c(I,{key:0,class:"text-text-secondary filtration:text-text-on-color","start-date":new Date(t.content.startDate),"end-date":t.content.endDate?new Date(t.content.endDate):void 0,"use-icon":!!e(f)}
1,null,8,["start-date","end-date","use-icon"])):m("",!0),t.content.locationField&&e(f)?(s(),c(U,{key:1,class:"text-text-on-color",location:t.content.locationField},null,8,["location"])):m("",!0)])]),_:2},1032,["image","start-date","end-date","slug","title","badges","location"])):m("",!0)],64)}),256))]),e(i).length?(s(),y("div",ct,[b("div",dt,[b("div",{class:"text-body-compact-xs-regular mb-2 text-center text-neutral-500",innerHTML:n.$t("results",{limit:e(l)>=e(o)?e(o):e(l),total:e(o)})},null,8,ut),B(q,{value:e(l),max:e(o),style:{height:"4px",width:"100%"},ui:e(f)?{progress:{color:"text-accent-dustyPlum"}}:void 0},null,8,["value","max","ui"])]),$(B(H,{class:"mt-4",size:"lg",variant:"solid",disabled:e(d),loading:e(d),label:n.$t("loadmore"),onClick:a[1]||(a[1]=t=>N())},null,8,["disabled","loading","label"]),[[st,e(d)||e(l)<e(o)]])])):m("",!0)]),_:1})),[[W,n.blok]])}}});export{Pt 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.