PageSourceSearch

https://www.avrotros.nl/_nuxt/Cwp-SA8J.js

js avrotros.nl collected 2026-09-24 08:30:57 UTC 2,440 bytes, 1 lines download raw bytes

1import{_ as R}from"./Dug0XmAZ.js";import{aa as k,u as v,ab as y,B as C,s as _,ac as h,d as B,z as M,ad as I,D as L,E as T,o as b,f as j,w as f,a as A,j as N,ae as E}from"./CmQ1EJKF.js";import{p as m}from"./C1wqazOG.js";import{u as O}from"./sz1KK2pV.js";import{j as U}from"./DhJqvrCv.js";import{u as q}from"./BzlgVQNF.js";import{u as z}from"./vGhvlJta.js";const F=k("domains",{state:()=>({domain:void 0}),actions:{setCurrentDomain(e){this.$state.domain=e.domain&&e.domain.color?e.domain.color.name:void 0}},getters:{getCurrentDomain:e=>e.domain},persist:!1}),H=async(e,o,s=!1,u=void 0)=>{const i=v(),t={collection:e,...m[e]};s&&(o||(o={}),o.status&&delete o.status,o.secret=u),o&&(t.filter=JSON.stringify(o)),t.singleton||(t.uri=i.path.endsWith("/")?i.path.slice(0,-1):i.path);const{data:r,pending:c,error:l}=await y(t);return{data:r,pending:c,error:l}},J=e=>{"to"in e&&(e=e,console.info(`ℹ Redirecting to: ${e.to}`),C(e.to,{replace:!0,redirectCode:e.permanent?301:302,external:!0}))},V=(e,o,s)=>{var t,r,c,l,a,d;const u=O(),i=v();if(s.value&&!o.value||!e.value)if(_(async()=>{await u.logout()}),((t=s.value)==null?void 0:t.statusCode)===401)C(`/authenticate?redirect=${encodeURI(i.path)}&error=${(r=s.value)==null?void 0:r.statusCode}: ${(c=s.value)==null?void 0:c.statusMessage}`,{redirectCode:(l=s.value)==null?void 0:l.statusCode,external:!1,replace:!0});else throw h({statusCode:(a=s.value)==null?void 0:a.statusCode,statusMessage:(d=s.value)==null?void 0:d.statusMessage,fatal:!0});else e.value&&J(e.value)},te=B({__name:"PageLoader",props:{collection:{},filter:{}},emits:["loaded"],async setup(e,{emit:o}){var g,p;let s,u;const i=F(),t=M(),{$preview:r,$secret:c}=I(),l=o,a=e,d=()=>{},w=()=>{},P=()=>{};if(!m[a.collection])throw h({statusCode:500,statusMessage:`Page collection "${a.collection}" not found.`,fatal:!0});const{data:n,pending:$,error:x}=([s,u]=L(()=>H(a.collection,a.filter,r,c)),s=await s,u(),s);return V(n,$,x),n.value&&((g=n.value)!=null&&g.slug&&((p=n.value)!=null&&p.id)&&(n.value.slugId=U(n.value)),t.setCurrentPage(n.value),t.setShowProgressBar(m[a.collection].showProgressBar||!1),i.setCurrentDomain(t==null?void 0:t.getCurrentPage),q(t.getCurrentPage),l("loaded",n.value)),_(()=>{T(t.getCurrentPage),window.setTimeout(()=>{z()},1500)}),(D,W)=>{const S=R;return b(),j(E,{timeout:"0",onPending:d,onResolve:w,onFallback:P},{fallback:f(()=>[A(S)]),default:f(()=>[N(D.$slots,"default")]),_:3})}}});export{te as _};

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.