PageSourceSearch

https://doorbraak.be/nuxt/BOZ52AhN.js

js doorbraak.be collected 2026-10-02 03:44:02 UTC 11,434 bytes, 1 lines download raw bytes

1import{_ as R}from"./BNlK60JQ.js";import{d as w,N as I,j as S,c as g,p as l,w as v,b as y,P as Q,o as r,a as _,F as Y,r as X,f as h,t as L,a2 as $,s as Z,T as ee,U as W,ab as te,A as b,e as A,D as k,ac as oe,g as J,a1 as se,m as j,ad as ne,ae,af as M,K as re,ag as T,Q as ie,ah as le,q as ce}from"#entry";import{u as P,C as ue,W as F,b as de,c as pe}from"./B6EvXMr-.js";import me from"./XpQi1tJj.js";import _e from"./mz2eQYPh.js";import{_ as V}from"./DlAUqK2U.js";import fe from"./BK-TvWgE.js";import ge from"./B-8Ca5Lw.js";import he from"./40svLHTJ.js";import ve from"./BEyplvvW.js";const ye=["innerHTML"],$e=w({__name:"MetaCategoryItem",props:{category:{default:void 0},post:{},replace:{type:Boolean,default:!0}},setup(t){const e=t,{post:o,category:a,replace:s}=I(e),{reviewTypes:i}=P(o),u=S(()=>s.value&&o.value.redTitle?o.value.redTitle:a.value?a.value.name:Array.isArray(o.value.type)?i.value?.[0]?.name??ue.RECENSIE:o.value.type),n=S(()=>s.value&&o.value.redTitle?void 0:a.value?.slug?{name:Q.OVERVIEW,params:{taxonomy:"onderwerp",slug:a.value.slug}}:Array.isArray(o.value.type)||o.value.type===F.post||o.value.type===F.page?void 0:`/${o.value?.type}`);return(d,m)=>{const p=R;return r(),g(p,{to:l(n)},{default:v(()=>[y("span",{innerHTML:l(u)},null,8,ye)]),_:1},8,["to"])}}}),we={key:0,class:"meta-category"},be={key:2},ke={class:"m-0 list-none p-0"},q=w({__name:"MetaCategory",props:{post:{default:void 0},showAll:{type:Boolean,default:!1}},setup(t){const e=t,{post:o}=I(e),{categories:a}=P(o),s=S(()=>a.value?.[0]);return(i,u)=>{const n=$e;return l(o)?i.showAll?(r(),_("div",be,[y("ul",ke,[(r(!0),_(Y,null,X(l(a),d=>(r(),_("li",{key:d.id,class:"meta-category float-left [&:not(:last-child)]:after:mr-1 [&:not(:last-child)]:after:content-[',']"},[h(n,{category:d,post:l(o),replace:!1},null,8,["category","post"])]))),128))])])):(r(),g(n,{key:1,replace:!0,class:"meta-category",category:l(s),post:l(o)},null,8,["category","post"])):(r(),_("span",we,"Categorie"))}}}),Ae={class:"hover:underline"},Se=w({__name:"MetaAuthor",props:{post:{}},setup(t){const e=t,{post:o}=I(e),{authorName:a,authorLink:s}=P(o);return(i,u)=>{const n=R;return r(),g(n,{to:l(s)},{default:v(()=>[y("span",Ae,L(l(a)),1)]),_:1},8,["to"])}}}),ze={class:"text-gray-500"},Ce=w({__name:"MetaDate",props:{post:{}},setup(t){const{dateToShortString:e}=de();return(o,a)=>(r(),_("span",ze,L(l(e)(o.post?.date)),1))}}),Me={class:"[&>*:not(:last-child)]:after:mx-1 [&>*:not(:last-child)]:after:text-gray-500 [&>*:not(:last-child)]:after:content-['–']"},H=w({__name:"Meta",props:{post:{}},setup(t){return(e,o)=>{const a=q,s=Se,i=Ce;return r(),_("div",Me,[$(e.$slots,"default",{post:e.post},()=>[h(a,{post:e.post},null,8,["post"]),h(s,{post:e.post},null,8,["post"]),h(i,{post:e.post},null,8,["post"])])])}}}),Ie={key:2},Pe=w({__name:"ActionsReadLater",props:{post:{},isSmall:{type:Boolean,default:!1}},setup(t){const e=t,o=Z(),a=ee(),{isAuthenticated:s}=W(a),i=te(),{add:u,remove:n}=i,{posts:d,isLoading:m}=W(i),p=S(()=>d.value.filter(c=>c.id===e.post.id).length>0),f=async()=>{try{let c;s.value?m.value?k().$toast.info("Je leeslaterlijst wordt ingeladen. Probeer later opnieuw."):p.value?(c=k().$toast.success("Artikel wordt verwijderd uit leeslaterlijst"),await n(e.post),k().$toast.remove(c)):(c=k().$toast.success("Artikel wordt toegevoegd aan leeslaterlijst"),await u(e.post),k().$toast.remove(c)):k().$toast.error("Je dient ingelogd te zijn.")}catch(c){k().$toast.error("Er is iets misgegaan met de leeslaterlijst"),o.error("ReadLater toggle error",{error:c})}};return(c,B)=>{const z=me,E=_e;return r(),_("button",{class:b(["btn btn-ghost btn-sm",{"btn-square ":c.isSmall}]),onClick:f},[l(p)?(r(),g(E,{key:1,class:b({"size-5":c.isSmall,"size-6":!c.isSmall})},null,8,["class"])):(r(),g(z,{key:0,class:b({"size-5 ":c.isSmall,"size-6":!c.isSmall})},null,8,["class"])),c.isSmall?A("",!0):(r(),_("span",Ie,"Lees later"))],2)}}}),Le={},Te={class:"text-sm"};function Be(t,e){return r(),_("p",Te,[$(t.$slots,"default")])}const Ee=V(Le,[["render",Be]]),xe=["src","alt"],Ne=w({__name:"Image",props:{media:{default:void 0},size:{default:"small"},fit:{default:"cover"},isCropped:{type:Boolean,default:!1},alt:{default:void 0}},setup(t){const e=t,o=oe({"w-20 h-14":e.size==="small","w-36 h-24":e.size==="medium","w-full":e.size==="auto","object-contain":e.fit==="contain","object-cover":e.fit!=="contain"}),a=S(()=>e.isCropped?e.media?.media_details.sizes["thumbnail-900-600"]?.s
1ource_url??e.media?.media_details.sizes["thumbnail-640-360"]?.source_url:e.media?.source_url);return(s,i)=>s.media?(r(),_("img",{key:1,src:l(a),class:b(l(o)),alt:s.alt},null,10,xe)):(r(),_("div",{key:0,class:b(["skeleton rounded-none",l(o)])},null,2))}}),Oe={key:1,class:"inline-flex"},Re=w({__name:"Icon",props:{post:{}},setup(t){const e=t,{post:o}=I(e),{isPremium:a,layout:s,hasVideo:i,hasAudio:u}=P(o);return(n,d)=>{const m=fe,p=ge,f=he,c=ve;return l(a)?(r(),g(m,{key:0,class:"fill-current"})):l(s)==="media"?(r(),_("div",Oe,[l(i)?(r(),g(p,{key:0})):A("",!0),l(u)?(r(),g(f,{key:1,class:"[&:nth-child(2)]:ml-1"})):A("",!0)])):l(s)==="audio"?(r(),g(f,{key:2})):l(s)==="video"?(r(),g(p,{key:3})):l(s)==="reizen"?(r(),g(c,{key:4})):A("",!0)}}}),je={key:0,class:"flex-none"},Ve={class:"flex-1"},De=w({__name:"CardBase",props:{direction:{default:"horizontal"},imagePosition:{default:"start"}},setup(t){return(e,o)=>(r(),_("div",{class:b(["flex gap-2",{"gap-y-2":e.direction==="vertical","flex-row":e.direction==="horizontal"&&e.imagePosition==="start","flex-col":e.direction==="vertical"&&e.imagePosition==="start","flex-row-reverse":e.direction==="horizontal"&&e.imagePosition==="end","flex-col-reverse":e.direction==="vertical"&&e.imagePosition==="end"}])},[e.imagePosition!=="none"?(r(),_("div",je,[$(e.$slots,"image")])):A("",!0),y("div",Ve,[$(e.$slots,"default")])],2))}}),Ue={class:"flex flex-col"},We=w({__name:"Card",props:{post:{},imageSize:{default:"small"},titleSize:{default:"normal"},direction:{},imagePosition:{}},setup(t){const e=t,{post:o}=I(e),{link:a}=P(o);return(s,i)=>{const u=Ne,n=R,d=q,m=H,p=Re,f=De;return r(),g(f,{direction:s.direction,"image-position":s.imagePosition,"wp-post-id":l(o).id},{image:v(()=>[h(n,{to:l(a)},{default:v(()=>[$(s.$slots,"image",{},()=>[h(u,{"is-cropped":!0,media:l(o)?.featured,size:s.imageSize},null,8,["media","size"])])]),_:3},8,["to"])]),default:v(()=>[y("div",Ue,[y("div",{class:b({"text-sm":s.titleSize!=="large"})},[$(s.$slots,"meta",{},()=>[h(m,{post:l(o)},{default:v(({post:c})=>[h(d,{class:"mb-1",post:c},null,8,["post"])]),_:1},8,["post"])])],2),y("div",{class:b({"order-first":s.direction==="vertical"})},[h(n,{to:l(a)},{default:v(()=>[y("h2",{class:b(["font-serif font-bold dark:text-gray-300",{"line-clamp-3 text-sm":s.titleSize==="normal","line-clamp-none text-xl":s.titleSize==="large","line-clamp-none text-lg":s.titleSize==="medium"}])},[h(p,{post:l(o),class:"mr-px inline-flex fill-current"},null,8,["post"]),J(" "+L(l(o)?.title),1)],2)]),_:1},8,["to"])],2),y("div",null,[$(s.$slots,"default")])])]),_:3},8,["direction","image-position","wp-post-id"])}}}),Fe={class:"inline-flex items-center"},yt=w({__name:"CardFeatured",props:{withExcerpt:{type:Boolean,default:!0},post:{},imageSize:{},titleSize:{},direction:{},imagePosition:{}},setup(t){const e=t;return(o,a)=>{const s=H,i=Pe,u=Ee,n=We;return r(),g(n,se(e,{"image-size":"auto",direction:"vertical","title-size":"medium"}),{meta:v(()=>[$(o.$slots,"meta",{},()=>[y("div",Fe,[h(s,{post:o.post},null,8,["post"]),h(i,{post:o.post,"is-small":!0},null,8,["post"])])])]),default:v(()=>[o.withExcerpt?(r(),g(u,{key:0,class:"mt-2 line-clamp-3"},{default:v(()=>[J(L(o.post?.excerpt),1)]),_:1})):A("",!0)]),_:3},16)}}});function Je(t){return ne()?(ae(t),!0):!1}const G=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qe=t=>t!=null,x=()=>{};function He(t){return Array.isArray(t)?t:[t]}function Ge(t,e,o){return j(t,e,{...o,once:!0})}const K=G?window:void 0;function N(t){var e;const o=T(t);return(e=o?.$el)!=null?e:o}function Ke(){const t=M(!1),e=le();return e&&ie(()=>{t.value=!0},e),t}function Qe(t){const e=Ke();return S(()=>(e.value,!!t()))}const C={array:t=>JSON.stringify(t),object:t=>JSON.stringify(t),set:t=>JSON.stringify(Array.from(t)),map:t=>JSON.stringify(Object.fromEntries(t)),null:()=>""};function Ye(t){return t?t instanceof Map?C.map:t instanceof Set?C.set:Array.isArray(t)?C.array:C.object:C.null}function $t(t,e){const o=M(""),a=M();function s(){if(G)return a.value=new Promise((i,u)=>{try{const n=T(t);if(n==null)i("");else if(typeof n=="string")i(O(new Blob([n],{type:"text/plain"})));else if(n instanceof Blob)i(O(n));else if(n instanceof ArrayBuffer)i(window.btoa(String.fromCharCode(...new Uint8Array(n))));else if(n instanceof HTMLCanvasElement)i(n.toDataURL(e?.type,e?.quality));else if(n instanceof HTMLImageElement){const d=n.cloneNode(!1);d.crossOrigin="Anonymous",Xe(d).then(()=>
1{const m=document.createElement("canvas"),p=m.getContext("2d");m.width=d.width,m.height=d.height,p.drawImage(d,0,0,m.width,m.height),i(m.toDataURL(e?.type,e?.quality))}).catch(u)}else if(typeof n=="object"){const m=(e?.serializer||Ye(n))(n);return i(O(new Blob([m],{type:"application/json"})))}else u(new Error("target is unsupported types"))}catch(n){u(n)}}),a.value.then(i=>{o.value=i}),a.value}return re(t)||typeof t=="function"?j(t,s,{immediate:!0}):s(),{base64:o,promise:a,execute:s}}function Xe(t){return new Promise((e,o)=>{t.complete?e():(t.onload=()=>{e()},t.onerror=o)})}function O(t){return new Promise((e,o)=>{const a=new FileReader;a.onload=s=>{e(s.target.result)},a.onerror=o,a.readAsDataURL(t)})}function Ze(t,e,o={}){const{root:a,rootMargin:s="0px",threshold:i=0,window:u=K,immediate:n=!0}=o,d=Qe(()=>u&&"IntersectionObserver"in u),m=S(()=>{const z=T(t);return He(z).map(N).filter(qe)});let p=x;const f=M(n),c=d.value?j(()=>[m.value,N(a),f.value],([z,E])=>{if(p(),!f.value||!z.length)return;const D=new IntersectionObserver(e,{root:N(E),rootMargin:s,threshold:i});z.forEach(U=>U&&D.observe(U)),p=()=>{D.disconnect(),p=x}},{immediate:n,flush:"post"}):x,B=()=>{p(),c(),f.value=!1};return Je(B),{isSupported:d,isActive:f,pause(){p(),f.value=!1},resume(){f.value=!0},stop:B}}function wt(t,e={}){const{window:o=K,scrollTarget:a,threshold:s=0,rootMargin:i,once:u=!1}=e,n=M(!1),{stop:d}=Ze(t,m=>{let p=n.value,f=0;for(const c of m)c.time>=f&&(f=c.time,p=c.isIntersecting);n.value=p,u&&Ge(n,()=>{d()})},{root:a,window:o,threshold:s,rootMargin:T(i)});return n}const et={},tt={class:"px-1 sm:px-2 md:px-4"};function ot(t,e){return r(),_("div",tt,[$(t.$slots,"default")])}const st=V(et,[["render",ot]]),nt={class:"grid grid-cols-4 gap-y-4 divide-gray-200 dark:divide-gray-500 lg:divide-x"},at={key:0,class:"hidden lg:col-span-1 lg:block print:hidden"},bt=w({__name:"MainSidebar",setup(t){const{isAppTarget:e}=ce();return(o,a)=>{const s=st,i=pe;return r(),g(i,null,{default:v(()=>[y("div",nt,[y("div",{class:b(["col-span-4",{"lg:col-span-3 print:col-span-4":!l(e)}])},[h(s,null,{default:v(()=>[$(o.$slots,"default")]),_:3})],2),l(e)?A("",!0):(r(),_("div",at,[h(s,null,{default:v(()=>[$(o.$slots,"sidebar")]),_:3})]))])]),_:3})}}}),rt={},it={class:"mt-2 last:mb-2 md:mt-4 md:last:mb-4"};function lt(t,e){return r(),_("div",it,[$(t.$slots,"default")])}const kt=V(rt,[["render",lt]]);export{H as _,Se as a,Ce as b,Pe as c,We as d,kt as e,bt as f,$t as g,q as h,Re as i,Ne as j,$e as k,yt as l,De as m,wt as u};

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.