PageSourceSearch

https://omroepvenlo.nl/_nuxt/Duenpu9A.js

js omroepvenlo.nl collected 2026-09-24 23:35:27 UTC 181,871 bytes, 71 lines download raw bytes

1import{O as e,l as t,r as n,u as r}from"./D8U7wizL.js";import{$ as i,A as a,D as o,E as s,Ft as c,G as l,H as u,K as d,M as f,Mt as p,O as m,P as h,Rt as g,T as _,Tt as v,U as y,Ut as b,Vt as x,Wt as S,X as C,Z as w,_ as T,_t as E,a as D,dt as O,ft as k,g as A,gt as j,h as M,ht as ee,i as te,j as N,kt as P,n as F,nt as I,o as ne,ot as re,pt as ie,rt as L,s as R,vt as ae,w as z,wt as oe,y as B}from"./B9pVQlp5.js";import{m as V,p as H}from"./CMCoJfna.js";import{n as U,t as W}from"./DgGrykIH.js";import{n as G,r as se}from"./C8bFDToN.js";import{n as ce,t as K}from"./xaJxWC07.js";import{t as q}from"./BfdpBBYp.js";import{A as J,C as le,D as ue,E as de,F as fe,G as pe,H as me,I as he,J as ge,L as _e,M as ve,O as ye,P as be,R as xe,S as Se,T as Y,V as Ce,W as we,_ as Te,a as Ee,b as De,c as Oe,d as ke,f as Ae,i as je,j as Me,k as Ne,l as Pe,m as Fe,n as Ie,p as Le,r as Re,s as ze,t as Be,w as Ve,x as He,y as Ue}from"./C8B4ThWv.js";import{r as We,t as Ge}from"./B8W9wAXV.js";import{t as Ke}from"./DW5ZRZNu.js";import{b as qe,c as Je,d as Ye,m as Xe,n as Ze,p as Qe,s as $e,t as et}from"./CrIOJY-o.js";import{l as tt,n as nt,o as rt,r as it,t as at}from"./DFZI3Xpw.js";import{a as ot,c as st,i as ct,m as lt,n as ut,o as dt,r as ft,s as pt,u as mt}from"./V7c2OqFr.js";import{t as ht}from"./Btotmjor.js";import{t as X}from"./BDNMzG2s.js";import{t as gt}from"./BaZiZcn7.js";import{d as _t,g as vt,p as yt}from"./Dx1VHM5c.js";import{t as bt}from"./BOmbJiFl.js";import{t as xt}from"./C5yRBEDv.js";import{t as St}from"./DpPqhE2n.js";import{t as Ct}from"./Bs6UfkdN.js";import{t as wt}from"./z2vuobL6.js";import{t as Tt}from"./YhPBmQlM.js";import{t as Et}from"./f8xvykFC.js";import{t as Dt}from"./Bfa6WU1u.js";import{t as Ot}from"./BQaY2ubF.js";import{t as kt}from"./l2KkBNe4.js";import{t as At}from"./C_KppSqz.js";import{t as jt}from"./DFQazZhe.js";import{n as Mt,r as Nt,t as Pt}from"./Bs8vhbcP.js";import{t as Ft}from"./C-SwA7KI.js";import{a as It,i as Lt,n as Rt,r as zt,t as Bt}from"./Cus221VV.js";import{n as Vt,t as Ht}from"./BTikENBW.js";import{t as Ut}from"./BHWoDLRU.js";import{t as Wt}from"./DC2Zu0Qi.js";import{t as Gt}from"./CrXv25pI.js";import{t as Kt}from"./DOcAA0fa.js";import{t as qt}from"./CMFoZZv0.js";import{n as Jt,r as Yt,t as Xt}from"./Bg8bh3nI.js";import{t as Zt}from"./C1XWWLeZ.js";import{t as Qt}from"./avpr6jQ8.js";var $t=`rovingFocusGroup.onEntryFocus`,en={bubbles:!1,cancelable:!0},tn={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function nn(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function rn(e,t,n){let r=nn(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return tn[r]}function an(e,t=!1){let n=lt();for(let r of e)if(r===n||(r.focus({preventScroll:t}),lt()!==n))return}function on(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[sn,cn]=tt(`RovingFocusGroup`),ln=h({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,a=n,{loop:o,orientation:l,dir:u}=c(r),d=ht(u),p=Xe(r,`currentTabStopId`,a,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),m=P(!1),h=P(!1),_=P(0),{getItems:v,CollectionSlot:y}=yt({isProvider:!0});function b(e){let t=!h.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!m.value){let t=new CustomEvent($t,en);if(e.currentTarget.dispatchEvent(t),a(`entryFocus`,t),!t.defaultPrevented){let e=v().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);an([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===p.value),...e].filter(Boolean),r.preventScrollOnEntryFocus)}}h.value=!1}function x(){setTimeout(()=>{h.value=!1},1)}return t({getItems:v}),cn({loop:o,dir:d,orientation:l,currentTabStopId:p,onItemFocus:e=>{p.value=e},onItemShiftTab:()=>{m.value=!0},onFocusableItemAdd:()=>{_.value++},onFocusableItemRemove:()=>{_.value--}}),(e,t)=>(i(),s(g(y),null,{default:E(()=>[f(g(rt),{tabindex:m.value||_.value===0?-1:0,"data-orientation":g(l),as:e.as,"as-child":e.asChild,dir:g(d),style:{outline:`none`},onMousedown:t[0]||(t[0]=e=>h.value=!0),onMouseup:x,onFocus:b,onBlur:t[1]||(t[1]=e=>m.value=!1)},{default:E(()=>[L(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),un=h({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=sn(),r=st(),a=z(()=>t.tabStopId||r),o=z(()=>n.currentTabStopId.value===a.value),{getItems:c,CollectionItem:l}=yt();C(()=>{t.focusable&&n.onFocusableItemAdd()}),w(()=>{t.focusable&&n.onFocusableItemRemove()}),ie(()=>t.focusable,(e,t)=>{e!==t&&(e?n.onFocusableItemAdd():n.onFocusableItemRemove())});function u(e){if(e.key===`Tab`&&e.shiftKey){n.onItemShiftTab();return}if(e.target!==e.currentTarget)return;
1let r=rn(e,n.orientation.value,n.dir.value);if(r!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!t.allowShiftKey&&e.shiftKey)return;e.preventDefault();let i=[...c().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)i.reverse();else if(r===`prev`||r===`next`){r===`prev`&&i.reverse();let t=i.indexOf(e.currentTarget);i=n.loop.value?on(i,t+1):i.slice(t+1)}y(()=>an(i))}}return(e,t)=>(i(),s(g(l),null,{default:E(()=>[f(g(rt),{tabindex:o.value?0:-1,"data-orientation":g(n).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||(t[0]=t=>{e.focusable?g(n).onItemFocus(a.value):t.preventDefault()}),onFocus:t[1]||(t[1]=e=>g(n).onItemFocus(a.value)),onKeydown:u},{default:E(()=>[L(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[dn,fn]=tt(`TabsRoot`),pn=h({__name:`TabsRoot`,props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:`automatic`},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{orientation:a,unmountOnHide:o,dir:l}=c(n),u=ht(l);mt();let d=Xe(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),f=P(),m=p(new Set);return fn({modelValue:d,changeModelValue:e=>{d.value=e},orientation:a,dir:u,unmountOnHide:o,activationMode:n.activationMode,baseId:st(void 0,`reka-tabs`),tabsList:f,contentIds:m,registerContent:e=>{m.value=new Set([...m.value,e])},unregisterContent:e=>{let t=new Set(m.value);t.delete(e),m.value=t}}),(e,t)=>(i(),s(g(rt),{dir:g(u),"data-orientation":g(a),"as-child":e.asChild,as:e.as},{default:E(()=>[L(e.$slots,`default`,{modelValue:g(d)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function mn(e,t){return`${e}-trigger-${t}`}function hn(e,t){return`${e}-content-${t}`}var gn=h({__name:`TabsContent`,props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=mt(),r=dn(),a=z(()=>mn(r.baseId,t.value)),c=z(()=>hn(r.baseId,t.value)),l=z(()=>t.value===r.modelValue.value),u=P(l.value);return C(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{u.value=!1})}),d(()=>{r.unregisterContent(t.value)}),(e,t)=>(i(),s(g(pt),{present:e.forceMount||l.value,"force-mount":``},{default:E(({present:t})=>[f(g(rt),{id:c.value,ref:g(n),"as-child":e.asChild,as:e.as,role:`tabpanel`,"data-state":l.value?`active`:`inactive`,"data-orientation":g(r).orientation.value,"aria-labelledby":a.value,hidden:!t,tabindex:`0`,style:b({animationDuration:u.value?`0s`:void 0})},{default:E(()=>[!g(r).unmountOnHide.value||t?L(e.$slots,`default`,{key:0}):o(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),_n=h({__name:`TabsIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=dn();t({updateIndicatorStyle:d}),mt();let a=Ye(),c=P({size:null,thickness:null,position:null}),l=P([]);ie(()=>[r.modelValue.value,r==null?void 0:r.dir.value],()=>{d()},{immediate:!0,flush:`post`}),ee(()=>{var e;l.value=Array.from(((e=r.tabsList.value)==null?void 0:e.querySelectorAll(`[role="tab"]`))||[])}),Qe(z(()=>[r.tabsList.value,...l.value]),d);function d(){var e;let t=(e=r.tabsList.value)==null?void 0:e.querySelector(`[role="tab"][data-state="active"]`);t&&(r.orientation.value===`horizontal`?c.value={size:t.offsetWidth,thickness:t.offsetHeight,position:t.offsetLeft}:c.value={size:t.offsetHeight,thickness:t.offsetWidth,position:t.offsetTop})}return(e,t)=>g(a)&&typeof c.value.size==`number`?(i(),s(g(rt),u({key:0},n,{style:{"--reka-tabs-indicator-size":`${c.value.size}px`,"--reka-tabs-indicator-thickness":`${c.value.thickness}px`,"--reka-tabs-indicator-position":`${c.value.position}px`}}),{default:E(()=>[L(e.$slots,`default`)]),_:3},16,[`style`])):o(`v-if`,!0)}}),vn=h({__name:`TabsList`,props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{loop:t}=c(e),{forwardRef:n,currentElement:r}=mt(),a=dn();return a.tabsList=r,(e,r)=>
1(i(),s(g(ln),{"as-child":``,orientation:g(a).orientation.value,dir:g(a).dir.value,loop:g(t)},{default:E(()=>[f(g(rt),{ref:g(n),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":g(a).orientation.value},{default:E(()=>[L(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),yn=h({__name:`TabsTrigger`,props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n}=mt(),r=dn(),a=z(()=>mn(r.baseId,t.value)),o=z(()=>r.contentIds.value.has(t.value)?hn(r.baseId,t.value):void 0),c=z(()=>t.value===r.modelValue.value);return(e,t)=>(i(),s(g(un),{"as-child":``,focusable:!e.disabled,active:c.value},{default:E(()=>[f(g(rt),{id:a.value,ref:g(n),role:`tab`,type:e.as===`button`?`button`:void 0,as:e.as,"as-child":e.asChild,"aria-selected":c.value?`true`:`false`,"aria-controls":o.value,"data-state":c.value?`active`:`inactive`,disabled:e.disabled,"data-disabled":e.disabled?``:void 0,"data-orientation":g(r).orientation.value,onMousedown:t[0]||(t[0]=T(t=>{!e.disabled&&t.ctrlKey===!1?g(r).changeModelValue(e.value):t.preventDefault()},[`left`])),onKeydown:t[1]||(t[1]=A(t=>g(r).changeModelValue(e.value),[`enter`,`space`])),onFocus:t[2]||(t[2]=()=>{let t=g(r).activationMode!==`manual`;!c.value&&!e.disabled&&t&&g(r).changeModelValue(e.value)})},{default:E(()=>[L(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as`,`as-child`,`aria-selected`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`data-orientation`])]),_:3},8,[`focusable`,`active`]))}}),bn={class:`relative w-full lg:w-full rounded-lg lg:rounded-2xl overflow-hidden flex-none`},xn={class:`w-full h-full relative`},Sn={class:`absolute hidden lg:block top-0 left-0 right-0 p-[15px]`},Cn={class:`flex flex-row flex-wrap gap-1 text-white`},wn={class:`absolute lg:hidden top-0 left-0 right-0 p-[15px]`},Tn={class:`flex flex-row flex-wrap gap-1 text-white`},En={class:`absolute bottom-0 left-0 right-0 p-4 text-white`},Dn={class:`text-sm font-heading lg:text-1.3xl font-bold break-words`},On={class:`text-sm line-clamp-1`},kn=Object.assign(h({__name:`DossierHorizontal`,props:{item:{}},async setup(e){let n,r,a=e,{$engine:c}=t(),l=([n,r]=j(()=>{var e;return c.getArticleCountForDossier((e=a.item.dossier)==null?void 0:e.id)}),n=await n,r(),n);return(t,n)=>{var r,a;let c=U,u=Nt,d=q;return i(),s(d,{to:(r=(a=e.item.dossier)==null?void 0:a.slug)==null?`#`:r,type:`ArticleWebPage`,class:`flex flex-row gap-2 lg:gap-4 group`},{default:E(()=>{var t,r,a,d,p,m,h;return[_(`div`,bn,[_(`div`,xn,[(t=e.item)!=null&&(t=t.dossier)!=null&&t.headerImage?(i(),s(c,{key:0,class:`w-full h-full object-cover aspect-[2/1] lg:aspect-[45/13] transition-transform duration-[2s] group-hover:scale-[1.1]`,alt:(r=(a=(d=e.item)==null||(d=d.dossier)==null||(d=d.headerImage)==null?void 0:d.description)==null?(p=e.item)==null||(p=p.dossier)==null||(p=p.headerImage)==null?void 0:p.name:a)==null?`Dossier cover`:r,src:(m=e.item)==null||(m=m.dossier)==null||(m=m.headerImage)==null?void 0:m.thumbnailUrl},null,8,[`alt`,`src`])):o(``,!0),n[0]||(n[0]=_(`div`,{class:`absolute inset-0 top-1/2 transition-all bg-gradient-to-t from-black`},null,-1)),_(`div`,Sn,[_(`div`,Cn,[f(u,{extraClasses:`!bg-surface-accent !text-text-invert !text-xxs lg:px-3 border-none`},{default:E(()=>[N(S(g(l))+` items`,1)]),_:1})])]),_(`div`,wn,[_(`div`,Tn,[f(u,{extraClasses:`!bg-surface-accent !text-text-invert !text-xxs lg:px-3 border-none py-2`},{default:E(()=>[N(S(g(l))+` items`,1)]),_:1})])]),_(`div`,En,[_(`h3`,Dn,S(e.item.title),1),_(`p`,On,S((h=e.item.dossier)==null?void 0:h.subtitle),1)])])])]}),_:1},8,[`to`])}}}),{__name:`CardDossierHorizontal`}),An={data(){return{items:[],popup:!1,modules:[F,D,te],shortsFunctionality:!0}},props:{sectionClasses:String,containerClasses:String},methods:{async getPopularVideos(){let{$engine:e}=t(),n=await e.getKijkenVideos(0,20,Vt.popularVideos());n&&(this.items=n.items)},handleClick:function(e){let t=e.id;this.shortsFunctionality?(this.$globalStore.setShorts(this.items),this.$router.push({path:`/shorts/${t}`})):this.$router.push({path:`/${e.slug}`})}
1,type:function(e){if(e.type.name==`EPISODE`)return`EpisodeWebPage`;if(e.type.name==`FRAGMENT`)return`FragmentWebPage`}},mounted(){this.getPopularVideos()}},jn={class:`relative`},Mn={class:`flex flex-row items-center gap-2 mb-4`},Nn={class:`w-2`},Pn={class:`relative`},Fn={class:`flex flex-row absolute left-2 top-2 lg:left-4 lg:top-4`},In={class:`absolute w-full bottom-0 p-2 lg:p-4 bg-gradient-to-t from-black`},Ln={class:`flex flex-col h-full justify-between`},Rn={class:`text-xxs heading font-bold lg:text-base text-text-invert line-clamp-5`},zn={class:`!hidden lg:!flex swiper-button-next !w-16 !h-16 !right-0 translate-x-1/2 rounded-full bg-white !text-black after:!content-none`},Bn={class:`w-[18px] h-[18px]`},Vn={class:`!hidden lg:!flex swiper-button-prev !w-16 !h-16 !left-0 -translate-x-1/2 rounded-full bg-white !text-black after:!content-none`},Hn={class:`w-[18px] h-[18px]`};function Un(e,t,n,r,a,c){let l=Ct,u=U,d=Nt,p=q,h=R,g=ne,v=Et;return a.items.length?(i(),m(`section`,{key:0,class:x(n.sectionClasses),"data-section":`popularVideos`},[_(`div`,{class:x(n.containerClasses)},[_(`div`,jn,[_(`div`,Mn,[_(`div`,Nn,[f(l)]),t[0]||(t[0]=_(`h3`,{class:`font-heading lg:text-[21px] font-bold`},`Kijken`,-1))]),_(`div`,Pn,[f(g,{class:`!overflow-visible lg:!overflow-clip`,modules:a.modules,autoplay:!1,navigation:{enabled:!0,nextEl:`.swiper-button-next`,prevEl:`.swiper-button-prev`},loop:!1,"slides-per-view":3,"space-between":16,breakpoints:{640:{slidesPerView:5}}},{default:E(()=>[(i(!0),m(B,null,I(a.items.length?a.items:10,(e,t)=>(i(),s(h,null,{default:E(()=>[f(p,{onClick:T(t=>c.handleClick(e),[`prevent`]),type:c.type(e),class:`block aspect-[2/3] relative rounded-lg lg:rounded-2xl overflow-hidden bg-black cursor-pointer`},{default:E(()=>{var t,n,r,i;return[f(u,{class:`w-full h-full object-cover object-left-bottom`,alt:(t=e==null||(n=e.broadcast)==null?void 0:n.description)==null?e==null||(r=e.broadcast)==null?void 0:r.name:t,src:e==null||(i=e.broadcast)==null?void 0:i.cover},null,8,[`alt`,`src`]),_(`div`,Fn,[f(d,{icon:`playArrow`,extraIconClasses:`w-[6px]`,extraClasses:`!bg-surface-accent !text-xxs !py-1 !px-2 !border-none !text-text-invert`},{default:E(()=>{var t;return[N(S(e==null||(t=e.broadcast)==null?void 0:t.durationFormatted),1)]}),_:2},1024)]),_(`div`,In,[_(`div`,Ln,[_(`h3`,Rn,S(e.title),1)])])]}),_:2},1032,[`onClick`,`type`])]),_:2},1024))),256)),t[1]||(t[1]=_(`div`,{class:`absolute top-0 -right-4 lg:right-0 bottom-0 w-20 bg-gradient-to-l from-surface-primary-darker z-10`},null,-1))]),_:1},8,[`modules`]),_(`div`,zn,[_(`div`,Bn,[f(v)])]),_(`div`,Vn,[_(`div`,Hn,[f(v,{class:`rotate-180`})])])])])],2)],2)):o(``,!0)}var Wn=Object.assign(X(An,[[`render`,Un]]),{__name:`PopularVideos`}),Gn={key:0,class:`page`},Kn={class:`lg:hidden`},qn={class:`boxed pt-0`},Jn={key:0},Yn={class:`boxed`},Xn={class:`grid grid-cols-1 gap-4`},Zn={class:`flex flex-col widget`},Qn={class:`flex flex-row justify-between items-center mb-3`},$n={class:`flex flex-row items-center gap-2`},er={class:`w-6`},tr={class:`boxed`},nr={class:`grid gap-4`},rr={key:1},ir={class:`boxed`},ar={class:`grid grid-cols-1 gap-4`},or={class:`flex flex-col widget`},sr={class:`flex flex-row justify-between items-center mb-3`},cr={class:`flex flex-row items-center gap-2`},lr={class:`w-6`},ur={class:`boxed`},dr={class:`boxed`},fr={class:`grid gap-4`},pr={class:`boxed`},mr={class:`grid gap-4`},hr={key:2},gr={class:`boxed`},_r={class:`flex flex-col`},vr={class:`boxed`},yr={class:`grid gap-4`},br={class:`boxed`},xr={key:3},Sr={class:`boxed`},Cr={class:`flex flex-col`},wr={class:`boxed`},Tr={class:`grid grid-cols-1 gap-4`},Er={class:`flex flex-row justify-between items-center mb-3`},Dr={class:`flex flex-row items-center gap-2`},Or={class:`w-6`},kr={class:`boxed`},Ar={class:`boxed`},jr={class:`flex flex-row justify-center`},Mr={key:4},Nr={class:`boxed`},Pr={class:`hidden lg:block`},Fr={class:`boxed pt-0`},Ir={class:`grid grid-cols-2 gap-10`},Lr={class:`boxed`},Rr={class:`flex flex-row gap-16`},zr={class:`flex-grow min-w-0`},Br={key:0},Vr={class:`grid grid-cols-3 gap-6 mb-10`},Hr={class:`flex flex-col col-span-3 border-t border-b border-border-primary py-8`},Ur={class:`flex flex-row justify-between items-center mb-7`},Wr={class:`flex flex-row items-center gap-2`},Gr={class:`w-6`},Kr={class:`grid grid-cols-3 gap-6`},qr={key:1},Jr={class:`grid grid-cols-3 gap-6 my-10`},Yr={class:`flex flex-col col-span-3 border-t border-b border-border-primary py-8`},Xr={class:`flex flex-row justify-between items-center mb-7`},Zr={class:`flex flex-row items-center gap-2`},Qr={class:`w-6`},$r={class:`mt-10`},ei={class:`boxed`},ti={class:`grid grid-cols-3 gap-6`},ni={class:`mt-10`},ri={class:`boxed`},ii={class:`grid grid-cols-3 gap-6`},ai={class:`flex flex-row justify-between items-center mb-7`},oi={class:`flex flex-row items-center gap-2`},si={class:`w-6`},ci={class:`flex justify-center my-4`},li={class:`flex-none lg:w-[400px] relative`},ui={class:`flex flex-col gap-10`},di=6,fi=2,pi=20,mi=Object.assign(h({__name:`Home`,setup(e){let{$engine:n,$logStore:r}=t();G({title:`Nieuws`});let a=P(),c=P(),u=P(),d=P(0),p=z(()=>pi+d.value*di),h=z(()=>3+d.value*fi);async function v(){let e=await n.getConfiguration();if(!e){r.log(`failed to load configuration!`,`warn`,`warn`);return}a.value=e}async function y(){let e=await n.getHomePageArticlePreviews(0,p.value);if(!e)throw Error(`No API result`);c.value=e.items}async function b(){var e;let t=await n.getContentBlocksForTypeAndLocationByPositionRange(0,h.value,0,99,Ae.DOSSIER,ke.NEWS_FEED);
1if(!t)throw Error(`No content blocks found.`);u.value=(e=t.items.sort((e,t)=>e.position-t.position))==null?[]:e}function x(e,t){return c.value?c.value.slice(e,t):[]}function S(e){var t;return u.value?(t=u.value.find(t=>t.position===e+1))==null?null:t:null}let w=z(()=>{if(!c.value)return[];let e=c.value.slice(14),t=[];for(let n=0;n<e.length;n+=3)t.push(e.slice(n,n+3));return t}),T=z(()=>u.value?u.value.filter(e=>e.position>2):[]);function D(e){let t=T.value.find(t=>t.position===e+3);return t?[t]:[]}async function O(){d.value+=1,await y(),await b()}return l(async()=>{await v()}),C(()=>{y(),b()}),(e,t)=>{var n,r,l,u,d,p,h,v,y,b,C,T,k,A,j,M,ee,te,P,F,ne,re;let ie=Ft,L=xt,R=jt,ae=q,z=kn,oe=Mt,V=It,H=Wn,U=Ht,W=Wt,G=zt,se=et,ce=Rt,K=Bt,J=Pt;return g(c)?(i(),m(`div`,Gn,[_(`div`,Kn,[_(`section`,null,[_(`div`,qn,[f(ie,{article:g(c)[0]},null,8,[`article`])])]),S(0)?(i(),m(`section`,Jn,[_(`div`,Yn,[_(`div`,Xn,[_(`div`,Zn,[_(`div`,Qn,[_(`div`,$n,[_(`div`,er,[f(L,{class:`text-surface-primary`})]),f(R,{class:`text-base`},{default:E(()=>[...t[0]||(t[0]=[N(`Dossier`,-1)])]),_:1})]),f(ae,{to:(n=(r=S(0).dossier)==null?void 0:r.slug)==null?`#`:n,class:`text-text-light text-xs`},{default:E(()=>[...t[1]||(t[1]=[N(` Bekijk het dossier`,-1)])]),_:1},8,[`to`])]),f(z,{item:S(0)},null,8,[`item`])])])])])):o(``,!0),_(`section`,null,[_(`div`,tr,[_(`div`,nr,[(i(!0),m(B,null,I(x(1,3),(e,t)=>(i(),s(oe,{key:t,article:e},null,8,[`article`]))),128))])])]),S(1)?(i(),m(`section`,rr,[_(`div`,ir,[_(`div`,ar,[_(`div`,or,[_(`div`,sr,[_(`div`,cr,[_(`div`,lr,[f(L,{class:`text-surface-primary`})]),f(R,{class:`text-base`},{default:E(()=>[...t[2]||(t[2]=[N(`Dossier`,-1)])]),_:1})]),f(ae,{to:(l=(u=S(1).dossier)==null?void 0:u.slug)==null?`#`:l,class:`text-text-light text-xs`},{default:E(()=>[...t[3]||(t[3]=[N(` Bekijk het dossier`,-1)])]),_:1},8,[`to`])]),f(z,{item:S(1)},null,8,[`item`])])])])])):o(``,!0),_(`section`,null,[_(`div`,ur,[f(V,{location:`WEBSITE_SIDE`,position:1,mobile:``})])]),_(`section`,null,[_(`div`,dr,[_(`div`,fr,[(i(!0),m(B,null,I(x(3,5),(e,t)=>(i(),s(oe,{key:t,article:e},null,8,[`article`]))),128))])])]),f(H,{"section-classes":`relative overflow-hidden`,"container-classes":`boxed before:bg-surface-primary before:absolute before:inset-0 before:left-[-9999px] before:right-[-9999px] text-white`}),_(`section`,null,[_(`div`,pr,[_(`div`,mr,[(i(!0),m(B,null,I(x(5,7),(e,t)=>(i(),s(oe,{key:t,article:e},null,8,[`article`]))),128))])])]),(d=g(a))!=null&&d.showMostRead?(i(),m(`section`,hr,[_(`div`,gr,[_(`div`,_r,[f(U)])])])):o(``,!0),_(`section`,null,[_(`div`,vr,[_(`div`,yr,[(i(!0),m(B,null,I(x(7,14),(e,t)=>(i(),s(oe,{key:t,article:e},null,8,[`article`]))),128))])])]),_(`section`,null,[_(`div`,br,[f(V,{location:`WEBSITE_SIDE`,position:2,mobile:``})])]),(p=g(a))!=null&&p.showJustIn||(h=g(a))!=null&&h.showLive?(i(),m(`section`,xr,[_(`div`,Sr,[_(`div`,Cr,[(v=g(a))!=null&&v.showJustIn?(i(),s(W,{key:0})):o(``,!0),(y=g(a))!=null&&y.showLive?(i(),s(G,{key:1})):o(``,!0)])])])):o(``,!0),(i(!0),m(B,null,I(g(w),(e,n)=>(i(),m(B,{key:n},[_(`section`,null,[_(`div`,wr,[_(`div`,Tr,[(i(!0),m(B,null,I(e,(e,t)=>(i(),s(oe,{key:t,article:e},null,8,[`article`]))),128)),(i(!0),m(B,null,I(D(n),(e,n)=>{var r,a;return i(),m(`div`,{key:n,class:`flex flex-col widget`},[_(`div`,Er,[_(`div`,Dr,[_(`div`,Or,[f(L,{class:`text-surface-primary`})]),f(R,{class:`text-base`},{default:E(()=>[...t[4]||(t[4]=[N(`Dossier`,-1)])]),_:1})]),f(ae,{to:(r=(a=e.dossier)==null?void 0:a.slug)==null?`#`:r,class:`text-text-light text-xs`},{default:E(()=>[...t[5]||(t[5]=[N(`Bekijk het dossier `,-1)])]),_:1},8,[`to`])]),f(z,{item:e},null,8,[`item`])])}),128))])])]),_(`section`,null,[_(`div`,kr,[f(V,{location:`WEBSITE_SIDE`,position:3,mobile:``})])])],64))),128)),_(`section`,null,[_(`div`,Ar,[_(`div`,jr,[f(se,{onClick:O},{default:E(()=>[...t[6]||(t[6]=[N(`Toon meer`,-1)])]),_:1})])])]),(b=g(a))!=null&&b.showWeather||(C=g(a))!=null&&C.showLatestEpisodes?(i(),m(`section`,Mr,[_(`div`,Nr,[(T=g(a))!=null&&T.showWeather?(i(),s(ce,{key:0})):o(``,!0),(k=g(a))!=null&&k.showLatestEpisodes?(i(),s(K,{key:1,class:`border-b-0`})):o(``,!0)])])):o(``,!0)]),_(`div`,Pr,[_(`section`,null,[_(`div`,Fr,[_(`div`,Ir,[(i(!0),m(B,null,I(x(0,2),(e,t)=>(i(),s(ie,{key:t,article:e},null,8,[`article`]))),128))])])]),_(`section`,null,[_(`div`,Lr,[_(`div`,Rr,[_(`div`,zr,[S(0)?(i(),m(`section`,Br,[_(`div`,Vr,[_(`div`,Hr,[_(`div`,Ur,[_(`div`,Wr,[_(`div`,Gr,[f(L,{class:`text-surface-primary`})]),f(R,{class:`text-[21px]`},{default:E(()=>[...t[7]||(t[7]=[N(`Dossier`,-1)])]),_:1})]),f(ae,{to:(A=(j=S(0).dossier)==null?void 0:j.slug)==null?`#`:A,class:`text-text-light text-base hover:underline`},{default:E(()=>[...t[8]||(t[8]=[N(`Bekijk het dossier`,-1)])]),_:1},8,[`to`])]),f(z,{item:S(0)},null,8,[`item`])])])])):o(``,!0),_(`section`,null,[_(`div`,Kr,[(i(!0),m(B,null,I(x(2,8),(e,t)=>(i(),s(J,{key:t,article:e},null,8,[`article`]))),128))])]),S(1)?(i(),m(`section`,qr,[_(`div`,Jr,[_(`div`,Yr,[_(`div`,Xr,[_(`div`,Zr,[_(`div`,Qr,[f(L,{class:`text-surface-primary`})]),f(R,{class:`text-[21px]`},{default:E(()=>[...t[9]||(t[9]=[N(`Dossier`,-1)])]),_:1})]),f(ae,{to:(M=(ee=S(1).dossier)==null?void 0:ee.slug)==null?`#`:M,class:`text-text-light text-base hover:underline`},{default:E(()=>[...t[10]||(t[10]=[N(`Bekijk het dossier`,-1)])]),_:1},8,[`to`])]),f(z,{item:S(1)},null,8,[`item`])])])])):o(``,!0),_(`section`,$r,[_(`div`,ei,[f(V,{location:`WEBSITE_CENTER`}
1)])]),_(`section`,null,[_(`div`,ti,[(i(!0),m(B,null,I(x(8,14),(e,t)=>(i(),s(J,{key:t,article:e},null,8,[`article`]))),128))])]),_(`section`,ni,[_(`div`,ri,[f(V,{location:`WEBSITE_CENTER`})])]),f(H,{"section-classes":`relative mb-10`,"container-classes":`boxed px-0 py-10 before:bg-surface-primary/10 text-primary before:absolute before:inset-0 before:left-[-9999px] before:right-[-9999px]`}),_(`section`,null,[(i(!0),m(B,null,I(g(w),(e,n)=>(i(),m(`div`,{key:n,class:`mb-8`},[_(`div`,ii,[(i(!0),m(B,null,I(e,(e,t)=>(i(),s(J,{key:t,article:e},null,8,[`article`]))),128)),(i(!0),m(B,null,I(D(n),(e,n)=>{var r,a;return i(),m(`div`,{key:n,class:`flex flex-col col-span-3 border-t border-b border-border-primary py-8`},[_(`div`,ai,[_(`div`,oi,[_(`div`,si,[f(L,{class:`text-surface-primary`})]),f(R,{class:`text-[21px]`},{default:E(()=>[...t[11]||(t[11]=[N(`Dossier`,-1)])]),_:1})]),f(ae,{to:(r=(a=e.dossier)==null?void 0:a.slug)==null?`#`:r,class:`text-text-light text-base hover:underline`},{default:E(()=>[...t[12]||(t[12]=[N(`Bekijk het dossier`,-1)])]),_:1},8,[`to`])]),f(z,{item:e},null,8,[`item`])])}),128))])]))),128)),_(`div`,ci,[f(se,{onClick:O},{default:E(()=>[...t[13]||(t[13]=[N(`Toon meer`,-1)])]),_:1})])])]),_(`aside`,li,[_(`div`,ui,[f(V,{location:`WEBSITE_SIDE`,position:1}),(te=g(a))!=null&&te.showLive?(i(),s(G,{key:0})):o(``,!0),(P=g(a))!=null&&P.showMostRead?(i(),s(U,{key:1})):o(``,!0),f(V,{location:`WEBSITE_SIDE`,position:2}),(F=g(a))!=null&&F.showWeather?(i(),s(ce,{key:2})):o(``,!0),(ne=g(a))!=null&&ne.showLatestEpisodes?(i(),s(K,{key:3})):o(``,!0),f(V,{location:`WEBSITE_SIDE`,position:3}),(re=g(a))!=null&&re.showJustIn?(i(),s(W,{key:4})):o(``,!0)])])])])])])])):o(``,!0)}}}),{__name:`PagesDynamicHome`}),hi={props:{author:String,externalUrl:String,publishedOn:Object,changedOn:Object},mixins:[Ut]},gi={class:`border-t border-b border-border-primary`},_i={class:`-mx-4 lg:mx-0 flex items-center justify-between`},vi={class:`px-4 lg:px-0 overflow-auto flex flex-row gap-4 flex-no-wrap list-none py-4 text-sm text-text-light font-medium`},yi={key:0,class:`flex-none flex flex-row gap-2 items-center`,title:`Auteur`},bi={class:`w-4`},xi=[`title`],Si={class:`w-[14px]`},Ci={class:`capitalize-first`},wi=[`title`],Ti={class:`w-4`};function Ei(e,t,n,r,a,c){let l=St,u=bt,d=At;return i(),m(`div`,gi,[_(`div`,_i,[_(`div`,vi,[n.author?(i(),m(`div`,yi,[_(`div`,bi,[f(l)]),(i(),s(re(n.externalUrl&&n.externalUrl!==``?`a`:`div`),{href:n.externalUrl},{default:E(()=>[N(S(n.author),1)]),_:1},8,[`href`]))])):o(``,!0),n.publishedOn?(i(),m(`div`,{key:1,class:`flex-none flex flex-row gap-2 items-center`,title:`Bericht gepubliceerd op ${n.publishedOn}`},[_(`div`,Si,[f(u)]),_(`p`,Ci,S(e.showRelative(n.publishedOn)),1)],8,xi)):o(``,!0),n.changedOn?(i(),m(`div`,{key:2,class:`flex-none flex flex-row gap-2 items-center`,title:`Bericht bijgewerkt op ${n.changedOn}`},[_(`div`,Ti,[f(d)]),N(S(e.showTimePast(n.changedOn)),1)],8,wi)):o(``,!0)]),L(e.$slots,`default`,{},void 0,!0)])])}var Di=Object.assign(X(hi,[[`render`,Ei],[`__scopeId`,`data-v-1e6af26d`]]),{__name:`AuthorAndDate`}),Oi={props:{image:String,author:String,name:String,description:String}},ki={class:`-mx-4 lg:mx-0`,"data-block":`image-with-caption`},Ai={class:`bg-surface-button-bg`},ji={key:0,class:`px-4 lg:px-0 flex flex-col justify-end text-right gap-2 md:flex-row md:justify-between md:items-center text-sm border-b border-border-primary py-4 text-text-light font-medium`},Mi={key:0,class:`ml-auto md:ml-0 flex flex-row gap-2 items-center`},Ni={class:`w-4`},Pi={key:1,class:`ml-auto`};function Fi(e,t,n,r,a,s){var c;let l=U,u=gt;return i(),m(`div`,ki,[_(`div`,Ai,[f(l,{class:`w-full max-h-[600px] object-contain lg:rounded-2xl`,alt:(c=n.description)==null?n.name:c,src:n.image},null,8,[`alt`,`src`])]),n.author||n.description?(i(),m(`div`,ji,[n.author?(i(),m(`div`,Mi,[_(`div`,Ni,[f(u)]),_(`div`,null,S(n.author),1)])):o(``,!0),n.description?(i(),m(`div`,Pi,S(n.description),1)):o(``,!0)])):o(``,!0)])}var Ii=Object.assign(X(Oi,[[`render`,Fi]]),{__name:`ImageWithCaption`}),Li={props:{icon:String,href:String,extraClasses:String,extraIconClasses:String,type:String},computed:{dynamicComponent:function(){return`svgo-${this.icon}`}}};function Ri(e,t,n,r,a,c){let l=q;return i(),s(l,{to:`/${n.href}`,type:n.type,class:x([`text-sm lg:text-sm py-1 px-3 border border-border-primary hover:bg-surface-accent hover:text-text-invert hover:border-transparent lg:py-1.5 lg:px-4 roun
1ded-full flex flex-row items-center gap-2 font-normal`,n.extraClasses])},{default:E(()=>[n.icon&&n.icon.length?(i(),m(`span`,{key:0,class:x([`w-3`,n.extraIconClasses])},[(i(),s(re(c.dynamicComponent)))],2)):o(``,!0),_(`span`,null,[L(e.$slots,`default`)])]),_:3},8,[`to`,`type`,`class`])}var zi=Object.assign(X(Li,[[`render`,Ri]]),{__name:`TagAnchor`}),Bi={mixins:[Ge],computed:{dynamicClasses:function(){if(this.mode==`dark`)return`dark`},pageUrl:function(){return window.location.href}},mounted(){typeof FB<`u`&&FB.XFBML.parse()}},Vi=[`data-href`];function Hi(e,t,n,r,a,o){return i(),m(`div`,{class:x([`fb-comments`,o.dynamicClasses]),"data-href":o.pageUrl,"data-width":``,"data-numposts":`5`},null,10,Vi)}var Ui=Object.assign(X(Bi,[[`render`,Hi],[`__scopeId`,`data-v-bc5097f4`]]),{__name:`FacebookComments`}),Wi={async setup(){let{$engine:e,$globalStore:n}=t(),i=H(),a=r(),o=P({title:a.public.OMROEP.replace(`WOS Media`,`WOS`),meta:[{property:`og:title`,content:a.public.OMROEP.replace(`WOS Media`,`WOS`)},{name:`description`},{property:`og:description`},{property:`og:image`},{name:`twitter:card`,content:`summary_large_image`}]});G(o);let s=i.path.substring(1),c=await e.getArticle(s).catch(e=>{throw Error(e)});if(c)n.setCurrentArticleMeta({tags:c.tags.map(e=>e.body),categories:c.categories.map(e=>e.body)}),o.value.title=o.value.meta[0].content=c.title,o.value.meta[1].content=o.value.meta[2].content=c.summary,c.headerImage&&(o.value.meta[3].content=c.headerImage.thumbnailUrl);else throw Error(`No API result at all.`)},data(){return{article:null,relatedArticles:[],justInArticles:[],tags:``,categories:``}},mixins:[Ut],methods:{async getArticle(){let{$engine:e,$device:r,$logStore:i}=t(),a=(this._.provides[n]||this.$route).path.substring(1),o=await e.getArticle(a).catch(e=>{throw Error(e)});if(o){var s;this.article=o,this.tags=o.tags.map(e=>e.body).join(`, `),this.categories=o.categories.map(e=>e.body).join(`, `),this.getMoreArticles();try{await e.trackPreprView(this.article.id)}catch(e){i.log(`Tracking failed, is an adblocker enabled?`,`error`,`error`,e)}if((s=window.dataLayer)==null||s.push({event:`article_view`,tags:this.tags,categories:this.categories}),window._ain){var c,l;window._ain.article_type=`article`,window._ain.access_level=`free`,window._ain.channel=r.isIos?`iOS`:r.isAndroid?`Android`:`Web`,window._ain.authors=this.article.author,window._ain.url=window.location.href,window._ain.postid=o.id,window._ain.maincontent=`#main-article`,window._ain.title=o.title,window._ain.pubdate=o.publishedOn.toString(),!o.categories[1]||!o.categories[1].body||!o.categories[1].body.match(/[A-Za-z0-9]/)?window._ain.sections=`News`:window._ain.sections=`News>${o.categories[1].body}`,window._ain.tags=this.tags,(c=(l=window._ain).track)==null||c.call(l)}}else throw Error(`No API result at all.`)},async getMoreArticles(){let{$engine:e}=t();this.relatedArticles=await e.getRelatedArticlePreviews(this.article,3);let n=await e.getArticlePreviews(0,9);this.justInArticles=n.items},setupTolkieListener(){let e=r(),t=k(`tolkieButtons`),n=()=>{var e;let n=document.querySelector(`#tolkie-separate-container`);return n?((e=t.value)==null||e.appendChild(n),!0):!1};new MutationObserver((e,t)=>{n()&&t.disconnect()}).observe(document.head,{attributes:!0,childList:!0,subtree:!0});let i=ie(t,()=>{if(t.value){if(e.public.ENV===`OMROEP_VENLO`||e.public.OMROEP===`Omroep Venlo`){t.value.remove(),i();return}n(),i()}})}},async mounted(){this.getArticle(),this.setupTolkieListener()},unmounted(){var e,t;window._ain&&((e=(t=window._ain).stop)==null||e.call(t))}},Gi=[`data-tags`,`data-categories`],Ki=[`data-prepr-item-id`],qi={class:`boxed`},Ji={class:`centered-1 mt-2 lg:mt-0`},Yi={class:`flex flex-col gap-6 justify-between mb-6`},Xi=[`innerHTML`],Zi={key:0,class:`centered-2`},Qi={class:`centered-1`},$i={ref:`tolkieButtons`,class:`mb-6`},ea={class:`article-content`},ta={class:`mb-10`},na={class:`mb-8 flex flex-row flex-wrap gap-1 txt-sm`},ra={key:0,class:`mb-10`},ia={key:1,class:`mb-10`},aa={key:2,class:`mb-10`},oa={class:`my-10`},sa={class:`overflow-hidden`},ca={class:`boxed pb-12`},la={class:`flex flex-col lg:flex-row gap-10 lg:gap-16 border-t border-border-primary pt-8`},ua={class:`flex-grow min-w-0`},da={key:0,class:`mb-8`},fa={class:`mb-8`},pa={class:`grid lg:hidden lg:grid-cols-3 gap-6`},ma={class:`hidden lg:grid lg:grid-cols-3 gap-6`},ha={key:1},ga={class:`mb-8`},_a={class:`grid lg:hidden lg:grid-cols-3 gap-6`},va={class:`hidden lg:grid lg:grid-cols-3 gap-6`},ya={class:`flex-none max-w-[400px] relative`},ba={class:`flex flex-col gap-10`},xa={key:1};function Sa(e,t,n,r,c,l){var u,d,p,h,g;let v=W,y=Di,b=Ii,x=K,C=zi,w=Kt,T=_t,D=Ui,O=It,k=jt,A=Mt,j=Pt;return c.article?(i(),m(`div`,{key:0,id:`main-article tolkie-main`,"data-tags":c.tags,"data-categories":c.categories}
1,[_(`section`,{"data-prepr-item-id":c.article.id},[_(`div`,qi,[_(`div`,Ji,[_(`div`,Yi,[_(`div`,null,[f(v,null,{default:E(()=>[N(S(c.article.title),1)]),_:1})]),_(`p`,{id:`articleSummary`,class:`lg:text-lg text-text-primary font-medium`,innerHTML:c.article.summary},null,8,Xi),f(y,{author:c.article.author,"external-url":c.article.externalUrl,publishedOn:c.article.publishedOn,changedOn:c.article.changedOn},null,8,[`author`,`external-url`,`publishedOn`,`changedOn`])])]),(u=c.article)!=null&&u.headerImage?(i(),m(`div`,Zi,[f(b,{name:(d=c.article)==null||(d=d.headerImage)==null?void 0:d.name,image:(p=c.article)==null||(p=p.headerImage)==null?void 0:p.thumbnailUrl,author:(h=c.article)==null||(h=h.headerImage)==null?void 0:h.author,description:(g=c.article.headerImage)==null?void 0:g.description},null,8,[`name`,`image`,`author`,`description`])])):o(``,!0),t[2]||(t[2]=_(`div`,{class:`self-start tolkie-buttons-afterbegin`},null,-1)),_(`div`,Qi,[_(`div`,$i,null,512),_(`div`,ea,[(i(!0),m(B,null,I(c.article.elements,e=>(i(),s(x,{element:e,"block-prerolls":c.article.blockPreroll},null,8,[`element`,`block-prerolls`]))),256))]),_(`div`,ta,[_(`div`,na,[c.article.tags.length?(i(!0),m(B,{key:0},I(c.article.tags,e=>(i(),s(C,{href:e.slug,type:`ArticlesTagWebPage`},{default:E(()=>[N(S(e.body),1)]),_:2},1032,[`href`]))),256)):c.article.categories.length?(i(!0),m(B,{key:1},I(c.article.categories,e=>(i(),s(C,{href:e.slug,type:`ArticlesTagWebPage`},{default:E(()=>[N(S(e.body),1)]),_:2},1032,[`href`]))),256)):o(``,!0)])]),e.$globalStore.isMobile?o(``,!0):(i(),m(`div`,ra,[t[0]||(t[0]=_(`h3`,{class:`font-bold text-text-primary text-lg mb-3`},`Delen`,-1)),f(w)])),!e.$globalStore.isMobile&&e.$config.public.REDACTIE_MAIL?(i(),m(`div`,ia,[f(T,{extraClasses:`bg-surface-primary text-text-invert! w-fit !text-base lg:!text-lg !font-bold font-heading py-[10px] px-5`,iconClasses:`!size-[18px]`,icon:`email`,href:`mailto:`+e.$config.public.REDACTIE_MAIL+`?subject=Ik heb een opmerking over bericht:`+c.article.title},{default:E(()=>[...t[1]||(t[1]=[N(` Opmerkingen? Mail ons! `,-1)])]),_:1},8,[`href`])])):o(``,!0),e.$globalStore.isMobile?o(``,!0):(i(),m(`div`,aa,[f(D)])),_(`div`,oa,[f(O,{location:`WEBSITE_CENTER`})])])])],8,Ki),_(`section`,sa,[_(`div`,ca,[_(`div`,la,[_(`div`,ua,[c.relatedArticles.length?(i(),m(`div`,da,[_(`div`,fa,[f(k,null,{default:E(()=>[...t[3]||(t[3]=[N(`Gerelateerde artikelen`,-1)])]),_:1})]),_(`div`,pa,[(i(!0),m(B,null,I(c.relatedArticles,e=>(i(),s(A,{article:e},null,8,[`article`]))),256))]),_(`div`,ma,[(i(!0),m(B,null,I(c.relatedArticles,e=>(i(),s(j,{article:e},null,8,[`article`]))),256))])])):o(``,!0),c.justInArticles.length?(i(),m(`div`,ha,[_(`div`,ga,[f(k,null,{default:E(()=>[...t[4]||(t[4]=[N(`Net binnen`,-1)])]),_:1})]),_(`div`,_a,[(i(!0),m(B,null,I(c.justInArticles,e=>(i(),s(A,{article:e},null,8,[`article`]))),256))]),_(`div`,va,[(i(!0),m(B,null,I(c.justInArticles,e=>(i(),s(j,{article:e},null,8,[`article`]))),256))])])):o(``,!0)]),_(`div`,ya,[_(`div`,ba,[f(O,{location:`WEBSITE_SIDE`,position:1})])])])])])],8,Gi)):(i(),m(`div`,xa,[...t[5]||(t[5]=[a(`<section><div class="boxed"><div class="centered-1"><div class="mb-4 flex flex-col flex-wrap gap-4 text-sm"><div class="isLoading w-full h-16"></div><div class="isLoading w-2/3 h-16"></div></div><div class="mb-4 flex flex-col flex-wrap gap-4 text-sm"><div class="isLoading w-full h-8"></div><div class="isLoading w-full h-8"></div></div></div><div class="centered-2 mb-4"><div class="isLoading aspect-[16/9]"></div></div></div></section>`,1)])]))}var Ca=Object.assign(X(Wi,[[`render`,Sa]]),{__name:`PagesDynamicArticle`}),wa={setup(e){G({title:e.dynamicProps.categoryBody.toString()})},data(){return{config:null,articles:null,chunks:3,articlesPerChunk:6,maxItems:20}},props:{dynamicProps:null},methods:{async getArticles(){let{$engine:e}=t(),n=await e.getArticlePreviewsByTag(0,this.maxItems,this.dynamicProps.categoryBody,Vt.overview());if(n)this.articles=n;else throw Error(`No API result at all.`)},async loadMoreArticles(){this.chunks+=1,this.maxItems+=6,this.getArticles()}},async beforeMount(){let{$engine:e,$logStore:n}=t(),r=await e.getConfiguration();if(!r){n.log(`failed to load configuration!`,`warn`,`warn`);return}this.config=r},mounted(){this.getArticles()}},Ta={class:`page`},Ea={class:`lg:hidden`},Da={class:`boxed flex flex-row lg:flex-row gap-4 justify-between items-center`},Oa={class:`flex align-center`},ka={class:`boxed`},Aa={class:`boxed`},ja={class:`grid gap-4`},Ma={class:`boxed`},Na={class:`grid gap-4`},Pa={key:0},Fa={class:`boxed`},Ia={class:`grid gap-4`},La={key:1},Ra={class:`boxed`},za={class:`grid gap-4`},Ba={key:2},Va={class:`boxed`},Ha={class:`flex flex-col`},Ua={class:`boxed`},Wa={class:`grid gap-4`},Ga={class:`boxed`},Ka={class:`grid gap-4`},qa={key:3},Ja={class:`boxed`},Ya={class:`flex flex-col`},Xa={class:`boxed`},Za={class:`grid grid-cols-1 gap-4`},Qa={class:`boxed`},$a={class:`boxed`},eo={class:`flex flex-row justify-center`},to={key:4},no={class:`boxed`},ro={class:`hidden lg:block`},io={class:`boxed`},ao={class:`flex flex-col lg:flex-row gap-4 justify-between mb-6 items-center`},oo={class:`grid grid-cols-2 gap-6 mb-10`},so={class:`boxed`},co={class:`flex flex-row gap-16`},lo={class:`flex-grow min-w-0`},uo={class:`grid grid-cols-3 gap-6`},fo={class:`my-10`},po={class:`flex flex-row justify-center my-4`},mo={class:`flex-none max-w-[400px] relative`},ho={class:`flex flex-col gap-10`};function go(e,t,n,r,a,c){var l,u,d,p,h,g,v,y,b,x,C,w,T,D,O,k,A,j,M,ee,te,P,F,ne,re,ie,L,R,ae,z,oe,V,H;let G=qt,se=W,ce=U,K=Ft,q=Mt,J=It,le=Ht,ue=Wt,de=zt,fe=et,pe=Rt,me=Bt,he=Pt;return i(),m(B,null,[f(G,{title:n.dynamicProps.categoryBody},null,8,[`title`]),_(`div`,Ta,[_(`div`,Ea,[_(`section`,null,[_(`div`,Da,[_(`div`,Oa,[f(se,null,{default:E(()=>[N(S(n.dynamicProps.categoryBody),1)]),_:1})]),f(ce,{class:`max-h-12`,src:`/logos/categories/${(l=e.$config.public.OMROEP)==null?void 0:l.replaceAll(` `,`_`).toLowerCase()}${n.dynamicProps.categorySlug}.png`,onerror:`this.style.display = 'none'`},null,8,[`src`])])]),_(`section`,null,[_(`div`,ka,[f(K,{article:(u=a.articles)==null?void 0:u.items[0]},null,8,[`article`])])]),_(`section`,null,[_(`div`,Aa,[_(`div`,ja,[(i(!0),m(B,null,I((d=a.articles)!=null&&d.items.length?(p=a.articles)==null?void 0:p.items.slice(1,3):2,e=>(i(),s(q,{article:e},null,8,[`article`]))),256))])])]),_(`section`,null,[_(`div`,Ma,[_(`div`,Na,[f(J,{location:`WEBSITE_SIDE`,position:1,mobile:``})])])]),(h=a.articles)!=null&&h.items[3]?(i(),m(`section`,Pa,[_(`div`,Fa,[_(`div`,Ia,[(i(!0),m(B,null,I((g=a.articles)!=null&&g.items.length?(v=a.articles)==null?void 0:v.items.slice(3,5):2,e=>(i(),s(q,{article:e},null,8,[`article`]))),256))])])])):o(``,!0),(y=a.articles)!=null&&y.items[5]?(i(),m(`section`,La,[_(`div`,Ra,[_(`div`,za,[(i(!0),m(B,null,I((b=a.articles)!=null&&b.items.length?(x=a.articles)==null?void 0:x.items.slice(5,7):2,e=>(i(),s(q,{article:e},null,8,[`article`]))),256))])])])):o(``,!0),(C=a.config)!=null&&C.showMostRead?(i(),m(`section`,Ba,[_(`div`,Va,[_(`div`,Ha,[f(le)])])])):o(``,!0),_(`section`,null,[_(`div`,Ua,[_(`div`,Wa,[(i(!0),m(B,null,I((w=a.articles)!=null&&w.items.length?(T=a.articles)==null?void 0:T.items.slice(7,14):7,e=>(i(),s(q,{article:e},null,8,[`article`]))),256))])])]),_(`section`,null,[_(`div`,Ga,[_(`div`,Ka,[f(J,{location:`WEBSITE_SIDE`,position:2,mobile:``}
1)])])]),(D=a.config)!=null&&D.showJustIn||(O=a.config)!=null&&O.showLive?(i(),m(`section`,qa,[_(`div`,Ja,[_(`div`,Ya,[(k=a.config)!=null&&k.showJustIn?(i(),s(ue,{key:0})):o(``,!0),(A=a.config)!=null&&A.showLive?(i(),s(de,{key:1})):o(``,!0)])])])):o(``,!0),(i(!0),m(B,null,I(a.chunks-2,(e,t)=>{var n;return i(),m(B,null,[_(`section`,null,[_(`div`,Xa,[_(`div`,null,[_(`div`,Za,[(i(!0),m(B,null,I((n=a.articles)==null?void 0:n.items.slice(14).slice(a.articlesPerChunk*t,e*a.articlesPerChunk),e=>(i(),s(q,{article:e},null,8,[`article`]))),256))])])])]),_(`section`,null,[_(`div`,Qa,[f(J,{location:`WEBSITE_SIDE`,position:3,mobile:``})])])],64)}),256)),_(`section`,null,[_(`div`,$a,[_(`div`,eo,[((j=a.articles)==null?void 0:j.items.length)===((M=a.articles)==null?void 0:M.totalItems)?o(``,!0):(i(),s(fe,{key:0,onClick:t[0]||(t[0]=e=>c.loadMoreArticles()),extraClasses:`mb-4 px-8`},{default:E(()=>[...t[2]||(t[2]=[N(`Toon meer`,-1)])]),_:1}))])])]),(ee=a.config)!=null&&ee.showWeather||(te=a.config)!=null&&te.showLatestEpisodes?(i(),m(`section`,to,[_(`div`,no,[(P=a.config)!=null&&P.showWeather?(i(),s(pe,{key:0})):o(``,!0),(F=a.config)!=null&&F.showLatestEpisodes?(i(),s(me,{key:1,class:`border-b-0`})):o(``,!0)])])):o(``,!0)]),_(`div`,ro,[_(`section`,null,[_(`div`,io,[_(`div`,ao,[_(`div`,null,[f(se,null,{default:E(()=>[N(S(n.dynamicProps.categoryBody),1)]),_:1})]),f(ce,{class:`max-h-16`,src:`/logos/categories/${(ne=e.$config.public.OMROEP)==null?void 0:ne.replaceAll(` `,`_`).toLowerCase()}${n.dynamicProps.categorySlug}.png`,onerror:`this.style.display = 'none'`},null,8,[`src`])]),_(`section`,null,[_(`div`,oo,[(i(!0),m(B,null,I((re=a.articles)!=null&&re.items.length?(ie=a.articles)==null?void 0:ie.items.slice(0,2):2,e=>(i(),s(K,{article:e},null,8,[`article`]))),256))])])])]),_(`section`,null,[_(`div`,so,[_(`div`,co,[_(`div`,lo,[_(`section`,null,[(i(!0),m(B,null,I(a.chunks,(e,t)=>{var n,r,c;return i(),m(B,null,[_(`div`,uo,[(i(!0),m(B,null,I((n=a.articles)!=null&&n.items.length?(r=a.articles)==null?void 0:r.items.slice(2).slice(a.articlesPerChunk*t,e*a.articlesPerChunk):6,e=>(i(),s(he,{article:e},null,8,[`article`]))),256))]),_(`div`,fo,[(c=a.articles)!=null&&c.items[2+a.articlesPerChunk*t]?(i(),s(J,{key:0,location:`WEBSITE_CENTER`})):o(``,!0)])],64)}),256)),_(`div`,po,[((L=a.articles)==null?void 0:L.items.length)===((R=a.articles)==null?void 0:R.totalItems)?o(``,!0):(i(),s(fe,{key:0,onClick:t[1]||(t[1]=e=>c.loadMoreArticles()),extraClasses:`mb-4 px-8`},{default:E(()=>[...t[3]||(t[3]=[N(`Toon meer`,-1)])]),_:1}))])])]),_(`div`,mo,[_(`div`,ho,[f(J,{location:`WEBSITE_SIDE`,position:1}),(ae=a.config)!=null&&ae.showLive?(i(),s(de,{key:0})):o(``,!0),(z=a.config)!=null&&z.showMostRead?(i(),s(le,{key:1})):o(``,!0),f(J,{location:`WEBSITE_SIDE`,position:2}),(oe=a.config)!=null&&oe.showWeather?(i(),s(pe,{key:2})):o(``,!0),(V=a.config)!=null&&V.showLatestEpisodes?(i(),s(me,{key:3})):o(``,!0),f(J,{location:`WEBSITE_SIDE`,position:3}),(H=a.config)!=null&&H.showJustIn?(i(),s(ue,{key:4})):o(``,!0)])])])])])])])],64)}var _o=Object.assign(X(wa,[[`render`,go]]),{__name:`PagesDynamicArticlesCategory`}),vo={setup(e){G({title:e.dynamicProps.tagBody.toString()})},data(){return{config:null,articles:null,chunks:3,articlesPerChunk:6,maxItems:20}},props:{dynamicProps:null},methods:{async getArticles(){let{$engine:e}=t(),n=await e.getArticlePreviewsByTag(0,this.maxItems,this.dynamicProps.tagBody,Vt.overview());if(n)this.articles=n;else throw Error(`No API result at all.`)},async loadMoreArticles(){this.chunks+=1,this.maxItems+=6,this.getArticles()}},async beforeMount(){let{$engine:e,$logStore:n}=t(),r=await e.getConfiguration();if(!r){n.log(`failed to load configuration!`,`warn`,`warn`);return}this.config=r},mounted(){this.getArticles()}},yo={class:`overflow-hidden`},bo={class:`lg:hidden`},xo={class:`boxed flex flex-row lg:flex-row gap-4 justify-between items-center`},So={class:`flex align-center`},Co={class:`boxed pt-0`},wo={class:`boxed`},To={class:`grid gap-4`},Eo={class:`boxed`},Do={class:`grid gap-4`},Oo={key:0},ko={class:`boxed`},Ao={class:`grid gap-4`},jo={key:1},Mo={class:`boxed`},No={class:`grid gap-4`},Po={key:2},Fo={class:`boxed`},Io={class:`flex flex-col`},Lo={class:`boxed`},Ro={class:`grid gap-4`},zo={class:`boxed`},Bo={class:`grid gap-4`},Vo={key:3},Ho={class:`boxed`},Uo={class:`flex flex-col`},Wo={class:`boxed`},Go={class:`grid grid-cols-1 gap-4`},Ko={class:`boxed`},qo={class:`boxed`},Jo={class:`flex flex-row justify-center`},Yo={key:4},Xo={class:`boxed`},Zo={class:`hidden lg:block`},Qo={class:`boxed`},$o={class:`flex flex-col lg:flex-row gap-4 justify-between mb-6 items-center`},es={class:`grid grid-cols-2 gap-6 mb-10`},ts={class:`boxed`},ns={class:`flex flex-row gap-16`},rs={class:`flex-grow min-w-0`},is={class:`grid grid-cols-3 gap-6`},as={class:`my-10`},os={class:`flex flex-row justify-center my-4`},ss={class:`flex-none max-w-[400px] relative`},cs={class:`flex flex-col gap-10`};function ls(e,t,n,r,a,c){var l,u,d,p,h,g,v,y,b,x,C,w,T,D,O,k,A,j,M,ee,te,P,F,ne,re,ie,L,R,ae,z,oe,V;let H=qt,G=W,se=U,ce=Ft,K=Mt,q=It,J=Ht,le=Wt,ue=zt,de=et,fe=Rt,pe=Bt,me=Pt;return i(),m(B,null,[f(H,{title:n.dynamicProps.tagBody}
1,null,8,[`title`]),_(`div`,yo,[_(`div`,bo,[_(`section`,null,[_(`div`,xo,[_(`div`,So,[f(G,null,{default:E(()=>[N(S(n.dynamicProps.tagBody),1)]),_:1})]),f(se,{class:`max-h-12`,src:`/logos/tags/${(l=e.$config.public.OMROEP)==null?void 0:l.replaceAll(` `,`_`).toLowerCase()}/${n.dynamicProps.tagSlug}.png`,onerror:`this.style.display = 'none'`},null,8,[`src`])])]),_(`section`,null,[_(`div`,Co,[f(ce,{article:(u=a.articles)==null?void 0:u.items[0]},null,8,[`article`])])]),_(`section`,null,[_(`div`,wo,[_(`div`,To,[(i(!0),m(B,null,I((d=a.articles)!=null&&d.items.length?(p=a.articles)==null?void 0:p.items.slice(1,3):2,e=>(i(),s(K,{article:e},null,8,[`article`]))),256))])])]),_(`section`,null,[_(`div`,Eo,[_(`div`,Do,[f(q,{location:`WEBSITE_SIDE`,position:1,mobile:``})])])]),(h=a.articles)!=null&&h.items[3]?(i(),m(`section`,Oo,[_(`div`,ko,[_(`div`,Ao,[(i(!0),m(B,null,I((g=a.articles)!=null&&g.items.length?(v=a.articles)==null?void 0:v.items.slice(3,5):2,e=>(i(),s(K,{article:e},null,8,[`article`]))),256))])])])):o(``,!0),(y=a.articles)!=null&&y.items[5]?(i(),m(`section`,jo,[_(`div`,Mo,[_(`div`,No,[(i(!0),m(B,null,I((b=a.articles)!=null&&b.items.length?(x=a.articles)==null?void 0:x.items.slice(5,7):2,e=>(i(),s(K,{article:e},null,8,[`article`]))),256))])])])):o(``,!0),(C=a.config)!=null&&C.showMostRead?(i(),m(`section`,Po,[_(`div`,Fo,[_(`div`,Io,[f(J)])])])):o(``,!0),_(`section`,null,[_(`div`,Lo,[_(`div`,Ro,[(i(!0),m(B,null,I((w=a.articles)!=null&&w.items.length?(T=a.articles)==null?void 0:T.items.slice(7,14):7,e=>(i(),s(K,{article:e},null,8,[`article`]))),256))])])]),_(`section`,null,[_(`div`,zo,[_(`div`,Bo,[f(q,{location:`WEBSITE_SIDE`,position:2,mobile:``})])])]),(D=a.config)!=null&&D.showJustIn||(O=a.config)!=null&&O.showLive?(i(),m(`section`,Vo,[_(`div`,Ho,[_(`div`,Uo,[(k=a.config)!=null&&k.showJustIn?(i(),s(le,{key:0})):o(``,!0),a.config.showLive?(i(),s(ue,{key:1})):o(``,!0)])])])):o(``,!0),(i(!0),m(B,null,I(a.chunks-2,(e,t)=>{var n;return i(),m(B,null,[_(`section`,null,[_(`div`,Wo,[_(`div`,null,[_(`div`,Go,[(i(!0),m(B,null,I((n=a.articles)==null?void 0:n.items.slice(14).slice(a.articlesPerChunk*t,e*a.articlesPerChunk),e=>(i(),s(K,{article:e},null,8,[`article`]))),256))])])])]),_(`section`,null,[_(`div`,Ko,[f(q,{location:`WEBSITE_SIDE`,position:3,mobile:``})])])],64)}),256)),_(`section`,null,[_(`div`,qo,[_(`div`,Jo,[((A=a.articles)==null?void 0:A.items.length)===((j=a.articles)==null?void 0:j.totalItems)?o(``,!0):(i(),s(de,{key:0,onClick:t[0]||(t[0]=e=>c.loadMoreArticles()),extraClasses:`mb-4 px-8`},{default:E(()=>[...t[2]||(t[2]=[N(`Toon meer`,-1)])]),_:1}))])])]),(M=a.config)!=null&&M.showWeather||(ee=a.config)!=null&&ee.showLatestEpisodes?(i(),m(`section`,Yo,[_(`div`,Xo,[(te=a.config)!=null&&te.showWeather?(i(),s(fe,{key:0})):o(``,!0),(P=a.config)!=null&&P.showLatestEpisodes?(i(),s(pe,{key:1,class:`border-b-0`})):o(``,!0)])])):o(``,!0)]),_(`div`,Zo,[_(`section`,null,[_(`div`,Qo,[_(`div`,$o,[_(`div`,null,[f(G,null,{default:E(()=>[N(S(n.dynamicProps.tagBody),1)]),_:1})]),f(se,{class:`max-h-16`,src:`/logos/tags/${(F=e.$config.public.OMROEP)==null?void 0:F.replaceAll(` `,`_`).toLowerCase()}/${n.dynamicProps.tagSlug}.png`,onerror:`this.style.display = 'none'`},null,8,[`src`])]),_(`section`,null,[_(`div`,es,[(i(!0),m(B,null,I((ne=a.articles)!=null&&ne.items.length?(re=a.articles)==null?void 0:re.items.slice(0,2):2,e=>(i(),s(ce,{article:e},null,8,[`article`]))),256))])])])]),_(`section`,null,[_(`div`,ts,[_(`div`,ns,[_(`div`,rs,[_(`section`,null,[(i(!0),m(B,null,I(a.chunks,(e,t)=>{var n,r,c;return i(),m(B,null,[_(`div`,is,[(i(!0),m(B,null,I((n=a.articles)!=null&&n.items.length?(r=a.articles)==null?void 0:r.items.slice(2).slice(a.articlesPerChunk*t,e*a.articlesPerChunk):6,e=>(i(),s(me,{article:e},null,8,[`article`]))),256))]),_(`div`,as,[(c=a.articles)!=null&&c.items[2+a.articlesPerChunk*t]?(i(),s(q,{key:0,location:`WEBSITE_CENTER`})):o(``,!0)])],64)}),256)),_(`div`,os,[((ie=a.articles)==null?void 0:ie.items.length)===((L=a.articles)==null?void 0:L.totalItems)?o(``,!0):(i(),s(de,{key:0,onClick:t[1]||(t[1]=e=>
1c.loadMoreArticles()),extraClasses:`mb-4 px-8`},{default:E(()=>[...t[3]||(t[3]=[N(`Toon meer`,-1)])]),_:1}))])])]),_(`div`,ss,[_(`div`,cs,[f(q,{location:`WEBSITE_SIDE`,position:1}),(R=a.config)!=null&&R.showLive?(i(),s(ue,{key:0})):o(``,!0),(ae=a.config)!=null&&ae.showMostRead?(i(),s(J,{key:1})):o(``,!0),f(q,{location:`WEBSITE_SIDE`,position:2}),(z=a.config)!=null&&z.showWeather?(i(),s(fe,{key:2})):o(``,!0),(oe=a.config)!=null&&oe.showLatestEpisodes?(i(),s(pe,{key:3})):o(``,!0),f(q,{location:`WEBSITE_SIDE`,position:3}),(V=a.config)!=null&&V.showJustIn?(i(),s(le,{key:4})):o(``,!0)])])])])])])])],64)}var us=Object.assign(X(vo,[[`render`,ls]]),{__name:`PagesDynamicArticlesTag`}),ds={async setup(e){let n=H(`slug`),{$engine:r}=t(),i=P(``);G({title:i});let a,[o,s]=n.params.slug;a=o&&s?`${o}/${s}`:o;let c=await r.getStaticPage(a);if(c)i.value=c.title;else throw Error(`No API result at all.`)},data(){return{config:null,data:null}},props:{heading:String},methods:{async getData(){let e=H(`slug`),{$engine:n}=t(),r,[i,a]=e.params.slug;r=i&&a?`${i}/${a}`:i;let o=await n.getStaticPage(r);o&&(this.data=o)},setupContactForm(){setTimeout(()=>{if(this.$el.querySelector(`#contact-form`)){G({script:[{src:`https://www.google.com/recaptcha/api.js`}]});let e=document.querySelectorAll(`#contact-form .upload a`),t=document.querySelectorAll(`#contact-form .submit`);e.forEach(e=>{e.setAttribute(`onclick`,null),e.addEventListener(`click`,this.addFields)}),t.forEach(e=>{e.setAttribute(`onclick`,null),e.addEventListener(`click`,this.checkBeforeSubmit)})}},1e3)},addFields(e){let t=e.currentTarget.closest(`#contact-form`);var n=t.querySelector(`#uploads`),r=n.childElementCount,i=[`.jpg`,`.jpeg`,`.bmp`,`.gif`,`.png`,`.pdf`,`.mp3`,`.mp4`,`.mpg`,`.mov`,`.doc`,`.docx`];if(r<3){var a=document.createElement(`input`);a.type=`file`,a.name=`upload`+r,a.id=`fileupload`+r,n.appendChild(a)}setTimeout(function(){t.querySelector(`#fileupload`+r).addEventListener(`change`,function(){if(this.files[0].name.length>0){for(var e=!1,t=0;t<i.length;t++){var n=i[t];if(this.files[0].name.substr(this.files[0].name.length-n.length,n.length).toLowerCase()==n.toLowerCase()){e=!0;break}}e||(alert(`Helaas, `+this.files[0].name+` kan niet worden verstuurd. Stuur een `+i.join(`, `)+` van maximaal 30 MB.`),this.value=``)}this.files[0].size>31981568&&(alert(`Helaas, je bestand mag maximaal 30M zijn. Dit bestand is `+(this.files[0].size/1024/1024).toFixed(1)+`MB!`),this.value=``)}),t.querySelector(`#fileupload`+r).click()},200)},checkBeforeSubmit(e){var t=``,n=0;let r=e.currentTarget.closest(`#contact-form`);r.querySelectorAll(`.field`).forEach(function(e){e.value.trim().length==0&&(e.getAttribute(`name`)==`naam`&&(t+=` - Uw naam
2`),e.getAttribute(`name`)==`email`&&(n=1),e.getAttribute(`name`)==`phone`&&n==1&&(t+=` - Telefoonnummer of E-mail adres
3`),e.getAttribute(`name`)==`subject`&&(t+=` - Een onderwerp
4`),e.getAttribute(`name`)==`message`&&(t+=` - Het bericht
5`))}),t==``?r.submit():alert(`Vul in ieder geval in: 
6`+t)}},async beforeMount(){let{$engine:e,$logStore:n}=t(),r=await e.getConfiguration();if(!r){n.log(`failed to load configuration!`,`warn`,`warn`);return}this.config=r},mounted(){this.getData(),this.setupContactForm()}},fs={class:`page`},ps={key:0,class:`tolkie-main`},ms={class:`boxed`},hs={class:`flex flex-col lg:flex-row gap-4 lg:gap-16`},gs={class:`flex-grow min-w-0`},_s={class:`flex flex-col lg:flex-row gap-4 justify-between mb-4`},vs={class:`article-content`},ys={key:0,class:`flex-none lg:max-w-[400px] relative`},bs={class:`flex flex-col gap-10`};function xs(e,t,n,r,a,c){var l,u,d,p,h;let g=W,v=K,y=It,b=zt,x=Ht,C=Rt,w=Bt,T=Wt;return i(),m(`div`,fs,[a.data?(i(),m(`section`,ps,[_(`div`,ms,[_(`div`,hs,[_(`div`,gs,[_(`div`,_s,[_(`div`,null,[f(g,null,{default:E(()=>[N(S(a.data.title),1)]),_:1})])]),_(`div`,vs,[(i(!0),m(B,null,I(a.data.elements,e=>(i(),s(v,{element:e},null,8,[`element`]))),256))])]),e.$globalStore.isMobile?o(``,!0):(i(),m(`div`,ys,[_(`div`,bs,[f(y,{location:`WEBSITE_SIDE`,position:1,mobile:e.$globalStore.isMobile},null,8,[`mobile`]),(l=a.config)!=null&&l.showLive?(i(),s(b,{key:0})):o(``,!0),(u=a.config)!=null&&u.showMostRead?(i(),s(x,{key:1})):o(``,!0),f(y,{location:`WEBSITE_SIDE`,position:2,mobile:e.$globalStore.isMobile},null,8,[`mobile`]),(d=a.config)!=null&&d.showWeather?(i(),s(C,{key:2})):o(``,!0),(p=a.config)!=null&&p.showLatestEpisodes?(i(),s(w,{key:3})):o(``,!0),(h=a.config)!=null&&h.showJustIn?(i(),s(T,{key:4})):o(``,!0),f(y,{location:`WEBSITE_SIDE`,position:3,mobile:e.$globalStore.isMobile},null,8,[`mobile`])])]))])])])):o(``,!0)])}var Ss=Object.assign(X(ds,[[`render`,xs]]),{__name:`PagesDynamicStatic`}),Cs={class:`flex justify-start mb-4 md:mb-10 gap-1 md:gap-2 flex-wrap`},ws=Object.assign(h({__name:`Filters`,props:{availableCategories:{},availableCities:{},selectedCategories:{},selectedCities:{}},emits:[`categories-change`,`cities-change`,`date-change`,`categories-reset`,`cities-reset`],setup(e,{emit:t}){let n=e,r=t,a=e=>{let t=n.selectedCategories.includes(e.label)?n.selectedCategories.filter(t=>t!==e.label):[...n.selectedCategories,e.label];r(`categories-change`,t)},c=e=>{let t=n.selectedCities.includes(e.label)?n.selectedCities.filter(t=>t!==e.label):[...n.selectedCities,e.label];r(`cities-change`,t)},l=e=>{e.some(e=>e.selected)||r(`categories-reset`)},u=e=>{e.some(e=>e.selected)||r(`cities-reset`)},d=e=>{r(`date-change`,e)};return(t,n)=>{var r,p;let h=Yt;return i(),m(`div`,Cs,[(r=e.availableCategories)!=null&&r.length?(i(),s(h,{key:0,position:`left`,items:e.availableCategories,multiple:!0,onSelect:a,onItemsUpdated:l},{default:E(()=>[...n[0]||(n[0]=[N(` Categorieën `,-1)])]),_:1},8,[`items`])):o(``,!0),(p=e.availableCities)!=null&&p.length?(i(),s(h,{key:1,position:`left`,items:e.availableCities,multiple:!0,onSelect:c,onItemsUpdated:u},{default:E(()=>[...n[1]||(n[1]=[N(` Regio `,-1)])]),_:1},8,[`items`])):o(``,!0),f(h,{"show-date-picker":``,"min-date":``,icon:`clock`,hideIconMobile:!0,onDateSelected:d,position:`left`},{default:E(()=>[...n[2]||(n[2]=[N(` Periode `,-1)])]),_:1})])}}}),{__name:`CalendarFilters`}),Ts={props:{event:Object},mixins:[Ut]}
6,Es={class:`aspect-[3/2] rounded-lg lg:rounded-2xl overflow-hidden flex-none mb-4 image-container relative`},Ds={class:`flex flex-row flex-wrap gap-1 mb-2 absolute top-2 left-2 md:top-4 md:left-4 z-10`},Os={class:`content`},ks={key:0,class:`text-text-brand uppercase text-sm mb-2`},As={key:1,class:`text-text-brand font-semibold text-sm mb-1`},js={class:`font-heading text-1xl md:text-1.3xl font-bold mb-2 transition-colors group-hover:text-text-brand break-words`},Ms=[`innerHTML`];function Ns(e,t,n,r,a,c){var l,u;let d=Nt,p=U,h=q;return i(),m(`div`,{class:x([`rounded-lg lg:rounded-2xl`,{"overflow-hidden isHighlight":(l=n.event)==null?void 0:l.highlight}])},[f(h,{to:`/${(u=n.event)==null?void 0:u.slug}`,type:`AgendaItemWebPage`,class:`group`},{default:E(()=>{var t,r,a,c,l,u,h,g,v,y,b;return[_(`div`,Es,[_(`div`,Ds,[(i(!0),m(B,null,I((t=n.event)==null?void 0:t.categories,e=>(i(),s(d,{extraClasses:`!bg-surface-accent !text-text-invert border-none`},{default:E(()=>[N(S(e==null?void 0:e.body),1)]),_:2},1024))),256))]),f(p,{class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1]`,alt:(r=(a=n.event)==null||(a=a.image)==null?void 0:a.description)==null?(c=n.event)==null||(c=c.image)==null?void 0:c.name:r,src:(l=n.event)==null||(l=l.image)==null?void 0:l.thumbnailUrl},null,8,[`alt`,`src`])]),_(`div`,Os,[(u=n.event)!=null&&u.highlight?(i(),m(`p`,ks,`Highlight`)):o(``,!0),(h=n.event)!=null&&h.starts?(i(),m(`p`,As,S(e.showDateRange((g=n.event)==null?void 0:g.starts,(v=n.event)==null?void 0:v.ends)),1)):o(``,!0),_(`h3`,js,S((y=n.event)==null?void 0:y.title),1),_(`p`,{class:`line-clamp-3 mb-4 text-sm sm:text-base`,innerHTML:(b=n.event)==null?void 0:b.summary},null,8,Ms)])]}),_:1},8,[`to`])],2)}var Ps=Object.assign(X(Ts,[[`render`,Ns]]),{__name:`CardEventMedium`}),Fs={key:0,class:`mb-8 p-4 bg-red-50 border border-red-200 rounded-md`},Is={class:`text-red-700`},Ls={class:`grid grid-cols-2 lg:grid-cols-4 gap-y-6 gap-x-4 mb-10 relative z-0`},Rs={key:0,class:`flex flex-row justify-center`},zs={key:0,class:`inline-flex items-center gap-2`},Bs={key:2,class:`text-center py-12`},Vs=Object.assign(h({__name:`Results`,props:{events:{},hasMoreResults:{type:Boolean},isLoadingMore:{type:Boolean},error:{}},emits:[`load-more`],setup(e,{emit:t}){let n=t,r=()=>{n(`load-more`)};return(t,n)=>{var a;let c=Ps,l=et;return i(),m(`div`,null,[e.error?(i(),m(`div`,Fs,[_(`p`,Is,S(e.error),1)])):(a=e.events)!=null&&a.length?(i(),m(B,{key:1},[_(`div`,Ls,[(i(!0),m(B,null,I(e.events,e=>(i(),s(c,{key:e.id||e.preprId,event:e},null,8,[`event`]))),128))]),e.hasMoreResults?(i(),m(`div`,Rs,[f(l,{disabled:e.isLoadingMore,onClick:r,extraClasses:`mb-4`},{default:E(()=>[e.isLoadingMore?(i(),m(`div`,zs,[...n[0]||(n[0]=[_(`div`,{class:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`},null,-1),N(` Laden... `,-1)])])):(i(),m(B,{key:1},[N(` Toon meer `)],64))]),_:1},8,[`disabled`])])):o(``,!0)],64)):(i(),m(`div`,Bs,[...n[1]||(n[1]=[_(`p`,{class:`text-lg text-secondary`},`Geen evenementen gevonden voor de geselecteerde filters.`,-1)])]))])}}}),{__name:`CalendarResults`}),Hs={class:`boxed mb-0 md:mb-4`},Us={class:`boxed`},Ws=16,Gs=Object.assign(h({__name:`Agenda`,async setup(e){let n,r,{$engine:a,$loadingStore:o,$logStore:s}=t();G({title:`Agenda`});let c=P([]),l=P(null),u=P([]),d=P([]),p=P([]),h=P(0),v=P(0),y=P(!1),b=P(!1),[x,S]=([n,r]=j(()=>Promise.all([a.getEventCities(),a.getEventCategories()])),n=await n,r(),n),w=z(()=>x==null?[]:x),T=z(()=>S==null?[]:S),D=z(()=>T.value.filter(e=>e.body).map(e=>({label:e.body,selected:u.value.includes(e.body)}))),O=z(()=>w.value.filter(e=>e.body).map(e=>({label:e.body,selected:d.value.includes(e.body)}))),k=z(()=>!b.value&&v.value>=Ws),A=e=>new Fe(e.getFullYear(),e.getMonth()+1,e.getDate(),0,0,0),M=async(e=0,t=!1)=>{try{e===0?o.setLoading(!0):y.value=!0,l.value=null;let r=p.value[0]?A(p.value[0]):A(new Date),i=p.value[1]?A(p.value[1]):null,f=await a.getEvents(e,Ws,r,i,u.value.length>0?ge.fromJsArray(u.value):void 0,d.value.length>0?ge.fromJsArray(d.value):void 0);if(!f)t||(c.value=[],v.value=0),b.value=!0,s.log(`No events found!`,`load`);else{var n;let r=(n=f.items)==null?[]:n;t?c.value=[...c.value,...r]:c.value=r,v.value=r.length,h.value=e,r.length<Ws&&(b.value=!0),s.log(`Loaded agenda page ${e}, showing ${c.value.length} events`,`load`,`info`,f)}}catch(e){console.error(`Failed to load events:`,e),l.value=`Er ging iets mis bij het laden van evenementen. Probeer het opnieuw.`,t||(c.value=[],v.value=0)}finally{o.setLoading(!1),y.value=!1}},ee=()=>{let e=h.value+1;M(e,!0)},te=e=>{u.value=e,h.value=0,b.value=!1,M(0,!1)},F=e=>{d.value=e,h.value=0,b.value=!1,M(0,!1)},I=e=>{p.value=e,h.value=0,b.value=!1,M(0,!1)},ne=()=>{u.value=[],h.value=0,b.value=!1,M(0,!1)},re=()=>{d.value=[],h.value=0,b.value=!1,M(0,!1)};return C(()=>{M(0,!1)}),(e,t)=>{let n=qt,r=W,a=ws,o=Vs;return i(),m(B,null,[f(n,{title:`Agenda`}),_(`div`,null,[_(`section`,null,[_(`div`,Hs,[f(r,null,{default:E(()=>[...t[0]||(t[0]=[N(`Agenda`,-1)])]),_:1})])]),_(`section`,null,[_(`div`,Us,[f(a,{"available-categories":g(D),"available-cities":g(O),"selected-categories":g(u),"selected-cities":g(d),onCategoriesChange:te,onCitiesChange:F,onDateChange:I,onCategoriesReset:ne,onCitiesReset:re},null,8,[`available-categories`,`available-cities`,`selected-categories`,`selected-cities`]),f(o,{events:g(c),"has-more-results":g(k),"is-loading-more":g(y),error:g(l),onLoadMore:ee},null,8,[`events`,`has-more-results`,`is-loading-more`,`error`])])])])],64)}}}),{__name:`PagesDynamicAgenda`}),Ks={async setup(){let{$engine:e}=t(),n=H().path.substring(1),r=P({title:``,meta:[{property:`og:title`},{name:`description`},{property:`og:description`},{property:`og:image`},{name:`twitter:card`,content:`summary_large_image`}]});G(r);let i=await e.getEvent(n);if(i)r.value.title=r.value.meta[0].content=i.title,r.value.meta[1].content=r.value.meta[2].content=i.summary,r.value.meta[3].content=i.image.url;else throw Error(`No API result at all.`)},data(){return{event:null,relatedEvents:[]}},computed:{eventDateSpan:function(){return this.showDateRange(this.event.starts,this.event.ends,!0)}},mixins:[Ut],methods:{async getEvent(){let{$engine:e,$logStore:r}=t(),i=(this._.provides[n]||this.$route).path.substring(1),a=await e.getEvent(i);if(a){this.event=a;try{await e.trackPreprView(this.event.id)}catch(e){r.log(`Tracking failed, is an adblocker enabled?`,`error`,`error`,e)}}else throw Error(`No API result at all.`)},async getRelatedEvents(){let{$engine:e}=t(),n=new Fe(new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate(),0,0,0),r=await e.getEvents(0,3,n,null);if(r)this.relatedEvents=r.items;else throw Error(`No API result at all.`)}},async mounted(){await this.getEvent(),this.getRelatedEvents()}},qs={key:0},Js={class:`tolkie-main`},Ys={class:`boxed`},Xs={class:`centered-1 mt-2 lg:mt-0`},Zs={class:`flex mb-4`},Qs={class:`flex flex-col gap-6 justify-between mb-6`},$s=[`innerHTML`],ec={key:0,class:`centered-2`},tc={class:`centered-1`},nc={class:`article-content`},rc={class:`mb-10`},ic={class:`mb-10`},ac={class:`my-10`},oc={key:0,class:`boxed pb-12`},sc={class:`flex flex-col lg:flex-row gap-10 lg:gap-16 border-t border-border-primary pt-8`},cc={class:`flex-grow min-w-0`},lc={class:`mb-8`},uc={class:`mb-8`},dc={class:`grid lg:hidden lg:grid-cols-3 gap-6`},fc={class:`hidden lg:grid lg:grid-cols-3 gap-6`},pc={class:`flex-none max-w-[400px] relative`},mc={class:`flex flex-col gap-10`};function hc(e,t,n,r,a,c){var l,u,d,p;let h=Nt,g=W,v=Ii,y=K,b=Kt,x=Ui,C=It,w=jt,T=Ps;return a.event?(i(),m(`div`,qs,[_(`section`,Js,[_(`div`,Ys,[_(`div`,Xs,[_(`div`,Zs,[f(h,{extraClasse
6s:`bg-surface-accent border-transparent !text-text-invert`},{default:E(()=>[N(S(c.eventDateSpan),1)]),_:1})]),_(`div`,Qs,[_(`div`,null,[f(g,null,{default:E(()=>[N(S(a.event.title),1)]),_:1})]),_(`p`,{class:`lg:text-lg text-text-primary font-medium`,innerHTML:a.event.summary},null,8,$s)])]),(l=a.event)!=null&&l.image?(i(),m(`div`,ec,[f(v,{image:(u=a.event)==null||(u=u.image)==null?void 0:u.url,author:(d=a.event)==null||(d=d.image)==null?void 0:d.author,description:(p=a.event.image)==null?void 0:p.description},null,8,[`image`,`author`,`description`])])):o(``,!0),_(`div`,tc,[_(`div`,nc,[(i(!0),m(B,null,I(a.event.elements,e=>(i(),s(y,{element:e},null,8,[`element`]))),256))]),_(`div`,rc,[t[0]||(t[0]=_(`h3`,{class:`font-bold text-text-primary text-lg mb-3`},`Delen`,-1)),f(b)]),_(`div`,ic,[f(x)]),_(`div`,ac,[f(C,{location:`WEBSITE_CENTER`})])])])]),_(`section`,null,[a.relatedEvents.length?(i(),m(`div`,oc,[_(`div`,sc,[_(`div`,cc,[_(`div`,lc,[_(`div`,uc,[f(w,null,{default:E(()=>[...t[1]||(t[1]=[N(`Meer uit de agenda`,-1)])]),_:1})]),_(`div`,dc,[(i(!0),m(B,null,I(a.relatedEvents,e=>(i(),s(T,{event:e},null,8,[`event`]))),256))]),_(`div`,fc,[(i(!0),m(B,null,I(a.relatedEvents,e=>(i(),s(T,{event:e},null,8,[`event`]))),256))])])]),_(`div`,pc,[_(`div`,mc,[f(C,{location:`WEBSITE_SIDE`,position:1})])])])])):o(``,!0)])])):o(``,!0)}var gc=Object.assign(X(Ks,[[`render`,hc]]),{__name:`PagesDynamicAgendaItem`}),_c=Object.assign(h({__name:`WatchAndListenNav`,props:{nav:{}},setup(e){return H().path,(e,t)=>null}}),{__name:`WatchAndListenNav`}),vc;function yc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var bc=yc();function xc(e){bc=e}var Sc={exec:()=>null};function Cc(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Z(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Q.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var wc=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Cc(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:Cc(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Cc(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Cc(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Cc(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:Cc(e=>RegExp(`^ {0,${e}}>`))},Tc=/^(?:[ \t]*(?:\n|$))+/,Ec=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Dc=/^ {0,3}(`{3,}
vendor: 21,317 bytes, lines 6-37
6(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Oc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,kc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ac=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,jc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mc=Z(jc).replace(/bull/g,Ac).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Nc=Z(jc).replace(/bull/g,Ac).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Fc=/^[^\n]+/,Ic=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lc=Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Ic).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rc=Z(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ac).getRegex(),zc=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Bc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Vc=Z(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))`,`i`).replace(`comment`,Bc).replace(`tag`,zc).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hc=e=>Z(Pc).replace(`hr`,Oc).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,zc).getRegex(),Uc=Hc(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Wc=Hc(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Gc={blockquote:Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Wc).getRegex(),code:Ec,def:Lc,fences:Dc,heading:kc,hr:Oc,html:Vc,lheading:Mc,list:Rc,newline:Tc,paragraph:Uc,table:Sc,text:Fc},Kc=Z(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Oc).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3}	)[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,zc).getRegex(),qc={...Gc,lheading:Nc,table:Kc,paragraph:Z(Pc).replace(`hr`,Oc).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Kc).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,zc).getRegex()},Jc={...Gc,html:Z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Bc).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Z(Pc).replace(`hr`,Oc).replace(`heading`,` *#{1,6} *[^
7]`).replace(`lheading`,Mc).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Yc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xc=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Zc=/^( {2,}|\\)\n(?!\s*$)/,Qc=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$c=/[\p{P}\p{S}]/u,el=/[\s\p{P}\p{S}]/u,tl=/[^\s\p{P}\p{S}]/u,nl=Z(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,el).getRegex(),rl=/[\p{Pi}\p{Ps}"']/u,il=/(?!~)[\p{P}\p{S}]/u,al=/(?!~)[\s\p{P}\p{S}]/u,ol=/(?:[^\s\p{P}\p{S}]|~)/u,sl=Z(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,wc?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),cl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ll=Z(cl,`u`).replace(/punct/g,$c).getRegex(),ul=Z(cl,`u`).replace(/punct/g,il).getRegex(),dl=Z(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,rl).replace(/punct/g,$c).getRegex(),fl=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,pl=Z(fl,`gu`).replace(/notPunctSpace/g,tl).replace(/punctSpace/g,el).replace(/punct/g,$c).getRegex(),ml=Z(fl,`gu`).replace(/notPunctSpace/g,ol).replace(/punctSpace/g,al).replace(/punct/g,il).getRegex(),hl=Z(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,tl).replace(/punctSpace/g,el).replace(/punct/g,$c).getRegex(),gl=Z(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,tl).replace(/punctSpace/g,el).replace(/punct/g,$c).getRegex(),_l=Z(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,tl).replace(/punctSpace/g,el).replace(/punct/g,$c).getRegex(),vl=Z(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,$c).getRegex(),yl=Z(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,tl).replace(/punctSpace/g,el).replace(/punct/g,$c).getRegex(),bl=Z(/\\(punct)/,`gu`).replace(/punct/g,$c).getRegex(),xl=Z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Sl=Z(Bc).replace(`(?:-->|$)`,`-->`).getRegex(),Cl=Z(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Sl).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wl=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Tl=Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,wl).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),El=Z(/^!?\[(label)\]\[(ref)\]/).replace(`label`,wl).replace(`ref`,Ic).getRegex(),Dl=Z(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Ic).getRegex(),Ol=Z(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,El).replace(`nolink`,Dl).getRegex(),kl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Al={_backpedal:Sc,anyPunctuation:bl,autolink:xl,blockSkip:sl,br:Zc,code:Xc,del:Sc,delLDelim:Sc,delRDelim:Sc,emStrongLDelim:ll,emStrongRDelimAst:pl,emStrongRDelimUnd:gl,escape:Yc,link:Tl,nolink:Dl,punctuation:nl,reflink:El,reflinkSearch:Ol,tag:Cl,text:Qc,url:Sc},jl={...Al,emStrongLDelim:dl,emStrongRDelimAst:hl,emStrongRDelimUnd:_l,link:Z(/^!?\[(label)\]\((.*?)\)/).replace(`label`,wl).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,wl).getRegex()},Ml={...Al,emStrongRDelimAst:ml,emStrongLDelim:ul,delLDelim:vl,delRDelim:yl,url:Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,kl).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Z(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,kl).getRegex()},Nl={...Ml,br:Z(Zc).replace(`{2,}`,`*`).getRegex(),text:Z(Ml.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Pl={normal:Gc,gfm:qc,pedantic:Jc},Fl={normal:Al,gfm:Ml,breaks:Nl,pedantic:jl},Il={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Ll=e=>Il[e];function Rl(e,t){if(t){if(Q.escapeTest.test(e))return e.replace(Q.escapeReplace,Ll)}else if(Q.escapeTestNoEncode.test(e))return e.replace(Q.escapeReplaceNoEncode,Ll);return e}function zl(e){try{e=encodeURI(e).replace(Q.percentDecode,`%`)}catch{return null}return e}function Bl(e,t){var n;let r=e.replace(Q.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Q.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((n=r.at(-1))!=null&&n.trim())&&r.pop(),t){if(r.length>t)r.splice(t);else for(;r.length<t;)r.push(``)}for(;i<r.length;i++)r[i]=r[i].trim().replace(Q.slashPipe,`|`);return r}function Vl(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Hl(e){let t=e.split(`
8`),n=t.length-1;for(;n>=0&&Q.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
9`)}function Ul(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Wl(e,t=0){let n=t,r=``;for(let t of e)if(t===`	`){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Gl(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function Kl(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
10`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
11`)}var ql=class{constructor(t){e(this,`options`,void 0),e(this,`rules`,void 0),e(this,`lexer`,void 0),this.options=t||bc}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Hl(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Kl(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Vl(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Vl(t[0],`
12`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Vl(t[0],`
13`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Vl(t[0],`
14`).split(`
15`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
16`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
17    $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
18${s}`:s,r=r?`${r}
19${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if((u==null?void 0:u.type)===`code`)break;if((u==null?void 0:u.type)===`blockquote`){let t=u,a=e.join(`
20`),o=t.raw+`
21`+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s,n=`${n}
22${a}`,r=r.substring(0,r.length-t.text.length)+s.text;break}if((u==null?void 0:u.type)===`list`){let t=u,a=t.raw+`
23`+e.join(`
24`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
25`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Wl(t[2].split(`
26`,1)[0],t[1].length),l=e.split(`
27`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
28`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
29`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,`  `),m=l):m=l.replace(this.rules.other.tabCharGlobal,`    `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
30`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,`    `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
31`+l}u=!l.trim(),r+=p+`
32`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&((t==null?void 0:t.type)===`text`||(t==null?void 0:t.type)===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&(e.task=!1)}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Hl(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Vl(t[0],`
33`),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=Bl(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,``).split(`|`),a=(t=n[3])!=null&&t.trim()?n[3].replace(this.rules.other.tableRowBlankLine,``).split(`
34`):[],o={type:`table`,raw:Vl(n[0],`
35`),header:[],align:[],rows:[]};if(r.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?o.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?o.align.push(`left`):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push(Bl(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Vl(t[0],`
36`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
37`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Vl(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Ul(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Gl(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}
37return Gl(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if(t[2]===`@`)e=t[0],i=`mailto:`+e;else{var n,r;let a;do a=t[0],t[0]=(n=(r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])==null?``:n;while(a!==t[0]);e=t[0],i=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:i,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Jl=class t{constructor(t){e(this,`tokens`,void 0),e(this,`options`,void 0),e(this,`state`,void 0),e(this,`inlineQueue`,void 0),e(this,`tokenizer`,void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||bc,this.options.tokenizer=this.options.tokenizer||new ql,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let n={other:Q,block:Pl.normal,inline:Fl.normal};this.options.pedantic?(n.block=Pl.pedantic,n.inline=Fl.pedantic):this.options.gfm&&(n.block=Pl.gfm,n.inline=this.options.breaks?Fl.breaks:Fl.gfm),this.tokenizer.rules=n}static get rules(){return{block:Pl,inline:Fl}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(e){e=e.replace(Q.carriageReturn,`
38`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Q.tabCharGlobal,`    `).replace(Q.spaceLine,``));let r=1/0;for(;e;){var i,a;if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let o;if((i=this.options.extensions)!=null&&(i=i.block)!=null&&i.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=t.at(-1);o.raw.length===1&&n!==void 0?n.raw+=`
39`:t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=t.at(-1);(n==null?void 0:n.type)===`paragraph`||(n==null?void 0:n.type)===`text`?(n.raw+=(n.raw.endsWith(`
40`)?``:`
41`)+o.raw,n.text+=`
42`+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=t.at(-1);(n==null?void 0:n.type)===`paragraph`||(n==null?void 0:n.type)===`text`?(n.raw+=(n.raw.endsWith(`
43`)?``:`
44`)+o.raw,n.text+=`
45`+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title}
45,t.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if((a=this.options.extensions)!=null&&a.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&(r==null?void 0:r.type)===`paragraph`?(r.raw+=(r.raw.endsWith(`
46`)?``:`
47`)+o.raw,r.text+=`
48`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o),n=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=t.at(-1);(n==null?void 0:n.type)===`text`?(n.raw+=(n.raw.endsWith(`
49`)?``:`
50`)+o.raw,n.text+=`
51`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(!(e.charAt(0)===`!`||!Object.hasOwn(this.tokens.links,e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){var n,r;this.tokenizer.lexer=this;let i=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};i=i.replace(e,t)}i=i.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),i=i.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),i=(n=(r=this.options.hooks)==null||(r=r.emStrongMask)==null?void 0:r.call({lexer:this},i))==null?i:n;let a=!1,o=``,s=1/0;for(;e;){var c,l;if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let n;if((c=this.options.extensions)!=null&&(c=c.inline)!=null&&c.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);n.type===`text`&&(r==null?void 0:r.type)===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,i,o)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,i,o)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if((l=this.options.extensions)!=null&&l.startInline){let t=1/0,n=e.slice(1),i;this.options.extensions.startInline.forEach(e=>{i=e.call({lexer:this},n),typeof i==`number`&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),n.raw.slice(-1)!==`_`&&(o=n.raw.slice(-1)),a=!0;let r=t.at(-1);(r==null?void 0:r.type)===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Yl=class{constructor(t){e(this,`options`,void 0),e(this,`parser`,void 0),this.options=t||bc}space(e){return``}code({text:e,lang:t,escaped:n}){var r;let i=(r=(t||``).match(Q.notSpaceStart))==null?void 0:r[0],a=e.replace(Q.endingNewline,``)+`
52`;return i?`<pre><code class="language-`+Rl(i)+`">`+(n?a:Rl(a,!0))+`</code></pre>
53`:`<pre><code>`+(n?a:Rl(a,!0))+`</code></pre>
54`}blockquote({tokens:e}){return`<blockquote>
55${this.parser.parse(e)}</blockquote>
56`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
57`}hr(e){return`<hr>
58`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
59`+r+`</`+i+`>
60`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
61`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
62`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
63<thead>
64`+t+`</thead>
65`+r+`</table>
66`}tablerow({text:e}){return`<tr>
67${e}</tr>
68`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
69`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Rl(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=zl(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;
69return t&&(a+=` title="`+Rl(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=zl(e);if(i===null)return Rl(n);e=i;let a=`<img v-lazy-load  data-src="${e}" alt="${Rl(n)}"`;return t&&(a+=` title="${Rl(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Rl(e.text)}},Xl=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Zl=class t{constructor(t){e(this,`options`,void 0),e(this,`renderer`,void 0),e(this,`textRenderer`,void 0),this.options=t||bc,this.options.renderer=this.options.renderer||new Yl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Xl}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(e){this.renderer.parser=this;let t=``;for(let r=0;r<e.length;r++){var n;let i=e[r];if((n=this.options.extensions)!=null&&(n=n.renderers)!=null&&n[i.type]){let e=i,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let a=i;switch(a.type){case`space`:t+=this.renderer.space(a);break;case`hr`:t+=this.renderer.hr(a);break;case`heading`:t+=this.renderer.heading(a);break;case`code`:t+=this.renderer.code(a);break;case`table`:t+=this.renderer.table(a);break;case`blockquote`:t+=this.renderer.blockquote(a);break;case`list`:t+=this.renderer.list(a);break;case`checkbox`:t+=this.renderer.checkbox(a);break;case`html`:t+=this.renderer.html(a);break;case`def`:t+=this.renderer.def(a);break;case`paragraph`:t+=this.renderer.paragraph(a);break;case`text`:t+=this.renderer.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let i=0;i<e.length;i++){var r;let a=e[i];if((r=this.options.extensions)!=null&&(r=r.renderers)!=null&&r[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(a.type)){n+=e||``;continue}}let o=a;switch(o.type){case`escape`:n+=t.text(o);break;case`html`:n+=t.html(o);break;case`link`:n+=t.link(o);break;case`image`:n+=t.image(o);break;case`checkbox`:n+=t.checkbox(o);break;case`strong`:n+=t.strong(o);break;case`em`:n+=t.em(o);break;case`codespan`:n+=t.codespan(o);break;case`br`:n+=t.br(o);break;case`del`:n+=t.del(o);break;case`text`:n+=t.text(o);break;default:{let e=`Token with "`+o.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Ql=(vc=class{constructor(t){e(this,`options`,void 0),e(this,`block`,void 0),this.options=t||bc}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Jl.lex:Jl.lexInline}provideParser(e=this.block){return e?Zl.parse:Zl.parseInline}},e(vc,`passThroughHooks`,new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`])),e(vc,`passThroughHooksRespectAsync`,new Set([`preprocess`,`postprocess`,`processAllTokens`])),vc),$l=class{constructor(...t){e(this,`defaults`,yc()),e(this,`options`,this.setOptions),e(this,`parse`,this.parseMarkdown(!0)),e(this,`parseInline`,this.parseMarkdown(!1)),e(this,`Parser`,Zl),e(this,`Renderer`,Yl),e(this,`TextRenderer`,Xl),e(this,`Lexer`,Jl),e(this,`Tokenizer`,ql),e(this,`Hooks`,Ql),this.use(...t)}walkTokens(e,t){let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case`table`:{let e=i;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=i;
vendor: 5,610 bytes, lines 69-70
69n=n.concat(this.walkTokens(e.items,t));break}default:{var r;let e=i;(r=this.defaults.extensions)!=null&&(r=r.childTokens)!=null&&r[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Yl(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ql(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Ql;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Ql.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Ql.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Jl.lex(e,t==null?this.defaults:t)}parser(e,t){return Zl.parse(e,t==null?this.defaults:t)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Jl.lex:Jl.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Zl.parse:Zl.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Jl.lex:Jl.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Zl.parse:Zl.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
70Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Rl(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},eu=new $l;function $(e,t){return eu.parse(e,t)}$.options=$.setOptions=function(e){return eu.setOptions(e),$.defaults=eu.defaults,xc($.defaults),$},$.getDefaults=yc,$.defaults=bc;function tu(...e){return eu.use(...e),$.defaults=eu.defaults,xc($.defaults),$}$.use=tu,$.walkTokens=function(e,t){return eu.walkTokens(e,t)},$.parseInline=eu.parseInline,$.Parser=Zl,$.parser=Zl.parse,$.Renderer=Yl,$.TextRenderer=Xl,$.Lexer=Jl,$.lexer=Jl.lex,$.Tokenizer=ql,$.Hooks=Ql,$.parse=$,$.options,$.setOptions,$.walkTokens,$.parseInline,Zl.parse,Jl.lex;var nu={class:`flex flex-col gap-5 lg:gap-10`},ru={class:`mb-4 pl-[6px] relative`},iu={class:`flex flex-row gap-4 lg:gap-14 relative pl-4 border-l border-dashed border-border-primary pb-8 lg:pb-16 last:pb-0`},au={class:`translate-y-[-5px]`},ou={key:0,class:`w-[90px] flex-none font-heading font-semibold`},su={class:`flex flex-row items-center gap-2 justify-start text-text-brand`},cu={class:`w-4`},lu={key:1,class:`w-[90px] flex-none font-heading font-semibold`},uu=[`innerHTML`],du=[`innerHTML`],fu=Object.assign(X(h({__name:`Schedule`,props:{guide:{},schedule:{},livestream:{}},setup(e){let n=Ut.newMethods.showDay,a=Ut.newMethods.isLive,{$logStore:c}=t();r();let l=e,u=l.guide.slug.split(`/`),d=`/kijk-en-luister/nu-live/${u[u.length-1]}
70`,p=l.livestream?l.livestream.type.name===ve.VIDEO.name?`Kijk live`:l.livestream.type.name===ve.AUDIO.name?`Luister live`:null:null,h=new $l;h.use({tokenizer:{blockquote(){},br(){},code(){},codespan(){},emStrong(){},escape(){},fences(){},heading(){},hr(){},lheading(){},list(){},paragraph(){},reflink(){},space(){},table(){},tag(){}}});let v=e=>{let t;try{t=h.parse(e,{async:!1})}catch(t){return c.log(`Something went wrong parsing Markdown`,`error`,`error`,e,t),e}return t};return(t,r)=>{let c=Zt,l=Tt,u=_t;return i(!0),m(B,null,I(e.schedule,(t,h)=>(i(),m(`div`,nu,[f(c,{class:`capitalize text-2xl! mb-0!`},{default:E(()=>[N(S(g(n)(t.day)),1)]),_:2},1024),_(`div`,ru,[(i(!0),m(B,null,I(t.shows,n=>(i(),m(`div`,iu,[r[1]||(r[1]=_(`span`,{class:`size-[13px] bg-surface-primary-darker rounded-full absolute left-0 top-0 -translate-x-1/2`},null,-1)),_(`div`,au,[g(a)(t.day,n.start,n.end)?(i(),m(`div`,ou,[_(`div`,su,[_(`span`,cu,[f(l)]),r[0]||(r[0]=_(`span`,null,`Nu live`,-1))])])):(i(),m(`div`,lu,S(n.start.hour)+`:`+S((n.start.minute<10?`0`:``)+n.start.minute)+`uur `,1))]),_(`div`,{class:x(g(a)(t.day,n.start,n.end)?`bg-surface-tone/10 dark:bg-surface-tone-invert/40 p-4 lg:p-4.5 rounded-lg lg:rounded-2xl grow`:``)},[_(`h2`,{class:x([`show-name font-heading text-text-primary font-bold text-1.3xl`,n.body.length?`mb-4`:``]),innerHTML:v(n.name)},null,10,uu),_(`p`,{class:x([`show-desc text-text-secondary`,(e.livestream,``)]),innerHTML:v(n.body)},null,10,du),e.livestream?ae((i(),s(u,{key:0,icon:`playArrow`,class:`bg-text-brand! font-bold! font-heading! text-text-invert max-w-fit p-2! px-4! mt-4`,href:d},{default:E(()=>[N(S(g(p)),1)]),_:1},8,[`href`])),[[M,g(a)(t.day,n.start,n.end)&&d]]):o(``,!0)],2)]))),256))])]))),256)}}}),[[`__scopeId`,`data-v-b082b500`]]),{__name:`GuideSchedule`}),pu={slots:{base:`font-medium inline-flex items-center`,label:`truncate`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailingIcon:`shrink-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``},size:{xs:{base:`text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm`,leadingIcon:`size-3`,leadingAvatarSize:`3xs`,trailingIcon:`size-3`},sm:{base:`text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm`,leadingIcon:`size-3`,leadingAvatarSize:`3xs`,trailingIcon:`size-3`},md:{base:`text-xs px-2 py-1 gap-1 rounded-md`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},lg:{base:`text-sm px-2 py-1 gap-1.5 rounded-md`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`text-base px-2.5 py-1 gap-1.5 rounded-md`,leadingIcon:`size-6`,leadingAvatarSize:`2xs`,trailingIcon:`size-6`}},square:{true:``}},compoundVariants:[{color:`primary`,variant:`solid`,class:`bg-primary text-inverted`},{color:`secondary`,variant:`solid`,class:`bg-secondary text-inverted`},{color:`success`,variant:`solid`,class:`bg-success text-inverted`},{color:`info`,variant:`solid`,class:`bg-info text-inverted`},{color:`warning`,variant:`solid`,class:`bg-warning text-inverted`},{color:`error`,variant:`solid`,class:`bg-error text-inverted`},{color:`primary`,variant:`outline`,class:`text-primary ring ring-inset ring-primary/50`},{color:`secondary`,variant:`outline`,class:`text-secondary ring ring-inset ring-secondary/50`},{color:`success`,variant:`outline`,class:`text-success ring ring-inset ring-success/50`},{color:`info`,variant:`outline`,class:`text-info ring ring-inset ring-info/50`},{color:`warning`,variant:`outline`,class:`text-warning ring ring-inset ring-warning/50`},{color:`error`,variant:`outline`,class:`text-error ring ring-inset ring-error/50`},{color:`primary`,variant:`soft`,class:`bg-primary/10 text-primary`},{color:`secondary`,variant:`soft`,class:`bg-secondary/10 text-secondary`},{color:`success`,variant:`soft`,class:`bg-success/10 text-success`},{color:`info`,variant:`soft`,class:`bg-info/10 text-info`},{color:`warning`,variant:`soft`,class:`bg-warning/10 text-warning`},{color:`error`,variant:`soft`,class:`bg-error/10 text-error`},{color:`primary`,variant:`subtle`,class:`bg-primary/10 text-primary ring ring-inset ring-primary/25`},{color:`secondary`,variant:`subtle`,class:`bg-secondary/10 text-secondary ring ring-inset ring-secondary/25`},{color:`success`,variant:`subtle`,class:`bg-success/10 text-success ring ring-inset ring-success/25`},{color:`info`,variant:`subtle`,class:`bg-info/10 text-info ring ring-inset ring-info/25`},{color:`warning`,variant:`subtle`,class:`bg-warning/10 text-warning ring ring-inset ring-warning/25`},{color:`error`,variant:`subtle`,class:`bg-error/10 text-error ring ring-inset ring-error/25`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated`},{size:`xs`,square:!0,class:`p-0.5`},{size:`sm`,square:!0,class:`p-1`},{size:`md`,square:!0,class:`p-1`},{size:`lg`,square:!0,class:`p-1`},{size:`xl`,square:!0,class:`p-1`}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`}},mu={__name:`UBadge`,props:{as:{type:null,required:!1,default:`span`},label:{type:[String,Number],required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1}},setup(e){let t=e,n=O(),r=nt(`badge`,t),a=Ke(),{orientation:c,size:l}=ut(t),{isLeading:d,isTrailing:f,leadingIconName:p,trailingIconName:h}=ft(r),_=z(()=>{var e,t;return at({extend:pu,...((e=a.ui)==null?void 0:e.badge)||{}})({color:r.color,variant:r.variant,size:(t=l.value)==null?r.size:t,square:r.square||!n.default&&!r.label,fieldGroup:c.value})});return(e,t)=>{var n;return i(),s(g(rt),{as:g(r).as,"data-slot":`base`,class:x(_.value.base({class:[(n=g(r).ui)==null?void 0:n.base,g(r).class]}))},{default:E(()=>[L(e.$slots,`leading`,{ui:_.value},()=>{var e,t,n;return[g(d)&&g(p)?(i(),s(ot,{key:0,name:g(p),"data-slot":`leadingIcon`,class:x(_.value.leadingIcon({class:(e=g(r).ui)==null?void 0:e.leadingIcon}))},null,8,[`name`,`class`])):g(r).avatar?(i(),s(ct,u({key:1,size:((t=g(r).ui)==null?void 0:t.leadingAvatarSize)||_.value.leadingAvatarSize()},g(r).avatar,{"data-slot":`leadingAvatar`,class:_.value.leadingAvatar({class:(n=g(r).ui)==null?void 0:n.leadingAvatar})}),null,16,[`size`,`class`])):o(``,!0)]}),L(e.$slots,`default`,{ui:_.value},()=>{var e;return[g(r).label!==void 0&&g(r).label!==null?(i(),m(`span`,{key:0,"data-slot":`label`,class:x(_.value.label({class:(e=g(r).ui)==null?void 0:e.label}))},S(g(r).label),3)):o(``,!0)]}),L(e.$slots,`trailing`,{ui:_.value},()=>{var e;return[g(f)&&g(h)?(i(),s(ot,{key:0,name:g(h),"data-slot":`trailingIcon`,class:x(_.value.trailingIcon({class:(e=g(r).ui)==null?void 0:e.trailingIcon}))},null,8,[`name`,`class`])):o(``,!0)]})]),_:3},8,[`as`,`class`])}}}
70,hu={slots:{root:`flex items-center gap-2`,list:`relative flex p-1 group`,indicator:`absolute transition-[translate,width] duration-200 ease-out motion-reduce:transition-none`,trigger:[`group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,label:`truncate`,trailingBadge:`shrink-0`,trailingBadgeSize:`sm`,content:`w-full rounded-md focus-visible:outline-3`},variants:{color:{primary:{content:`outline-primary/25`},secondary:{content:`outline-secondary/25`},success:{content:`outline-success/25`},info:{content:`outline-info/25`},warning:{content:`outline-warning/25`},error:{content:`outline-error/25`},neutral:{content:`outline-inverted/25`}},variant:{pill:{list:`bg-elevated rounded-lg`,trigger:[`grow`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:inset-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:rounded-md in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:shadow-xs in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:-z-10 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:isolate`],indicator:`rounded-md shadow-xs`},link:{list:`border-default`,indicator:`rounded-full`,trigger:`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:content-[''] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:absolute in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:rounded-full`}},orientation:{horizontal:{root:`flex-col`,list:`w-full`,indicator:`left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)`,trigger:`justify-center`},vertical:{list:`flex-col`,indicator:`top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)`}},size:{xs:{trigger:`px-2 py-1 text-xs gap-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`},sm:{trigger:`px-2.5 py-1.5 text-xs gap-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`},md:{trigger:`px-3 py-1.5 text-sm gap-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`},lg:{trigger:`px-3 py-2 text-sm gap-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`},xl:{trigger:`px-3 py-2 text-base gap-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`}}},compoundVariants:[{orientation:`horizontal`,variant:`pill`,class:{indicator:`inset-y-1`}},{orientation:`horizontal`,variant:`link`,class:{list:`border-b -mb-px`,indicator:`-bottom-px h-px`,trigger:`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-x-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-bottom-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:h-px`}},{orientation:`vertical`,variant:`pill`,class:{indicator:`inset-x-1`,list:`items-center`,trigger:`w-full justify-center`}},{orientation:`vertical`,variant:`link`,class:{list:`border-s -ms-px`,indicator:`-start-px w-px`,trigger:`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:inset-y-0 in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:-start-[calc(var(--spacing)+1px)] in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:w-px`}},{color:`primary`,variant:`pill`,class:{indicator:`bg-primary`,trigger:[`data-[state=active]:text-inverted outline-primary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-primary`]}},{color:`secondary`,variant:`pill`,class:{indicator:`bg-secondary`,trigger:[`data-[state=active]:text-inverted outline-secondary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-secondary`]}},{color:`success`,variant:`pill`,class:{indicator:`bg-success`,trigger:[`data-[state=active]:text-inverted outline-success/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-success`]}},{color:`info`,variant:`pill`,class:{indicator:`bg-info`,trigger:[`data-[state=active]:text-inverted outline-info/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-info`]}},{color:`warning`,variant:`pill`,class:{indicator:`bg-warning`,trigger:[`data-[state=active]:text-inverted outline-warning/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-warning`]}},{color:`error`,variant:`pill`,class:{indicator:`bg-error`,trigger:[`data-[state=active]:text-inverted outline-error/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-error`]}},{color:`neutral`,variant:`pill`,class:{indicator:`bg-inverted`,trigger:[`data-[state=active]:text-inverted outline-inverted/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:before:bg-inverted`]}},{color:`primary`,variant:`link`,class:{indicator:`bg-primary`,trigger:[`data-[state=active]:text-primary outline-primary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-primary`]}},{color:`secondary`,variant:`link`,class:{indicator:`bg-secondary`,trigger:[`data-[state=active]:text-secondary outline-secondary/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-secondary`]}},{color:`success`,variant:`link`,class:{indicator:`bg-success`,trigger:[`data-[state=active]:text-success outline-success/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-success`]}},{color:`info`,variant:`link`,class:{indicator:`bg-info`,trigger:[`data-[state=active]:text-info outline-info/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-info`]}},{color:`warning`,variant:`link`,class:{indicator:`bg-warning`,trigger:[`data-[state=active]:text-warning outline-warning/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-warning`]}},{color:`error`,variant:`link`,class:{indicator:`bg-error`,trigger:[`data-[state=active]:text-error outline-error/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-error`]}},{color:`neutral`,variant:`link`,class:{indicator:`bg-inverted`,trigger:[`data-[state=active]:text-highlighted outline-inverted/25 focus-visible:outline-3`,`in-[[data-slot=list]:not(:has([data-slot=indicator]))]:data-[state=active]:after:bg-inverted`]}}],defaultVariants:{color:`primary`,variant:`pill`,size:`md`}},gu={__name:`UTabs`,props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},content:{type:Boolean,required:!1,default:!0},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultValue:{type:[String,Number],required:!1,default:`0`},modelValue:{type:[String,Number],required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:modelValue`],setup(e,{expose:t,emit:n}
70){let r=e,a=n,c=O(),l=nt(`tabs`,r),d=Ke(),p=dt(qe(l,`as`,`unmountOnHide`),a),h=z(()=>{var e;return at({extend:hu,...((e=d.ui)==null?void 0:e.tabs)||{}})({color:l.color,variant:l.variant,size:l.size,orientation:l.orientation})}),_=P([]);function v(e,t){_.value[e]=t}return t({triggersRef:_}),(e,t)=>{var n;return i(),s(g(pn),u(g(p),{"model-value":g(l).modelValue,"default-value":g(l).defaultValue,orientation:g(l).orientation,"activation-mode":g(l).activationMode,"data-slot":`root`,class:h.value.root({class:[(n=g(l).ui)==null?void 0:n.root,g(l).class]})}),{default:E(()=>{var t;return[f(g(vn),{"data-slot":`list`,class:x(h.value.list({class:(t=g(l).ui)==null?void 0:t.list}))},{default:E(()=>{var t;return[f(g(_n),{"data-slot":`indicator`,class:x(h.value.indicator({class:(t=g(l).ui)==null?void 0:t.indicator}))},null,8,[`class`]),L(e.$slots,`list-leading`),(i(!0),m(B,null,I(g(l).items,(t,n)=>{var r,a,d,f;return i(),s(g(yn),{key:(r=g(it)(t,g(l).valueKey))==null?n:r,ref_for:!0,ref:e=>v(n,e),value:(a=g(it)(t,g(l).valueKey))==null?String(n):a,disabled:t.disabled,"data-slot":`trigger`,class:x(h.value.trigger({class:[(d=g(l).ui)==null?void 0:d.trigger,(f=t.ui)==null?void 0:f.trigger]}))},{default:E(()=>{var r,a;return[L(e.$slots,`leading`,{item:t,index:n,ui:h.value},()=>{var e,n,r,a,c,d;return[t.icon?(i(),s(ot,{key:0,name:t.icon,"data-slot":`leadingIcon`,class:x(h.value.leadingIcon({class:[(e=g(l).ui)==null?void 0:e.leadingIcon,(n=t.ui)==null?void 0:n.leadingIcon]}))},null,8,[`name`,`class`])):t.avatar?(i(),s(ct,u({key:1,size:((r=t.ui)==null?void 0:r.leadingAvatarSize)||((a=g(l).ui)==null?void 0:a.leadingAvatarSize)||h.value.leadingAvatarSize()},{ref_for:!0},t.avatar,{"data-slot":`leadingAvatar`,class:h.value.leadingAvatar({class:[(c=g(l).ui)==null?void 0:c.leadingAvatar,(d=t.ui)==null?void 0:d.leadingAvatar]})}),null,16,[`size`,`class`])):o(``,!0)]}),g(it)(t,g(l).labelKey)||c.default?(i(),m(`span`,{key:0,"data-slot":`label`,class:x(h.value.label({class:[(r=g(l).ui)==null?void 0:r.label,(a=t.ui)==null?void 0:a.label]}))},[L(e.$slots,`default`,{item:t,index:n},()=>[N(S(g(it)(t,g(l).labelKey)),1)])],2)):o(``,!0),L(e.$slots,`trailing`,{item:t,index:n,ui:h.value},()=>{var e,n,r,a;return[t.badge||t.badge===0?(i(),s(mu,u({key:0,color:`neutral`,variant:`outline`,size:((e=t.ui)==null?void 0:e.trailingBadgeSize)||((n=g(l).ui)==null?void 0:n.trailingBadgeSize)||h.value.trailingBadgeSize()},{ref_for:!0},typeof t.badge==`string`||typeof t.badge==`number`?{label:t.badge}:t.badge,{"data-slot":`trailingBadge`,class:h.value.trailingBadge({class:[(r=g(l).ui)==null?void 0:r.trailingBadge,(a=t.ui)==null?void 0:a.trailingBadge]})}),null,16,[`size`,`class`])):o(``,!0)]})]}),_:2},1032,[`value`,`disabled`,`class`])}),128)),L(e.$slots,`list-trailing`)]}),_:3},8,[`class`]),g(l).content?(i(!0),m(B,{key:0},I(g(l).items,(t,n)=>{var r,a,o,c;return i(),s(g(gn),{key:(r=g(it)(t,g(l).valueKey))==null?n:r,value:(a=g(it)(t,g(l).valueKey))==null?String(n):a,"data-slot":`content`,class:x(h.value.content({class:[(o=g(l).ui)==null?void 0:o.content,(c=t.ui)==null?void 0:c.content,t.class]}))},{default:E(()=>[L(e.$slots,t.slot||`content`,{item:t,index:n,ui:h.value},()=>[N(S(t.content),1)])]),_:2},1032,[`value`,`class`])}),128)):o(``,!0)]}),_:3},16,[`model-value`,`default-value`,`orientation`,`activation-mode`,`class`])}}},_u={class:`page boxed flex flex-col gap-12.5 lg:gap-8`},vu={key:2},yu=Object.assign(h({__name:`Guides`,props:{dynamicProps:{}},async setup(e){var n,r,a;let c,l,{$engine:u}=t(),d=e,p=(n=d.dynamicProps.slug)==null||(n=n.split(`/`))==null?void 0:n[2],h=P([]),v=P([]),y=P(`0`),b=P([]),x=P([]),S=$e(Ze).smaller(`lg`),w=([c,l]=j(()=>u.getKijkLuister()),c=await c,l(),c);return h.value=(r=w==null||(a=w.submenu)==null?void 0:a.asJsReadonlyArrayView())==null?null:r,C(async()=>{let e=await u.getGuides(d.dynamicProps.guideType);for(let n of e){var t;let e=Le.Companion.now(),r=await u.getGuideSchedule(n,e,e.plusDays(6));v.value.push({label:(t=n.title)==null?`Kanaal zonder titel`:t,slug:n.slug,guide:n}),b.value.push(n.livestream),x.value.push(r)}if(p){let e=v.value.findIndex(e=>{let t=e.slug.split(`/`);return t[t.length-1]===p});e!==-1&&(y.value=String(e))}}),(e,t)=>{let n=qt,r=_c,a=fu,c=gu;return i(),m(B,null,[f(n,{title:`Gidsen`}
70),_(`div`,_u,[g(h)?(i(),s(r,{key:0,nav:g(h)},null,8,[`nav`])):o(``,!0),g(b).length?(i(),s(c,{key:1,modelValue:g(y),"onUpdate:modelValue":t[0]||(t[0]=e=>oe(y)?y.value=e:null),orientation:g(S)?`horizontal`:`vertical`,items:g(v)},{content:E(({index:e,item:t})=>[f(a,{guide:t.guide,schedule:g(x)[e],livestream:g(b)[e]},null,8,[`guide`,`schedule`,`livestream`])]),_:1},8,[`modelValue`,`orientation`,`items`])):(i(),m(`p`,vu,`Gidsen aan het laden...`))])],64)}}}),{__name:`PagesDynamicGuides`}),bu={class:`absolute top-0 left-0 m-4`},xu={class:`absolute bottom-0 mx-auto w-full block text-center mb-4`},Su={key:0,class:`flex justify-center p-4 aspect-[188/109]`},Cu={class:`text-xs md:text-tiny text-text-invert-2`},wu=Object.assign(h({__name:`NewTvPortrait`,props:{program:{}},setup(e){let{$engine:n}=t(),r=e,a=P(0),c=P(!0);return C(async()=>{a.value=(await n.getEpisodesForProgram(r.program)).totalItems,c.value=!1}),(t,n)=>{let r=U,l=Gt,u=Zt,d=q;return i(),s(d,{to:`/${e.program.slug}`,type:`ProgramWebPage`,class:`block relative rounded-lg lg:rounded-2xl overflow-hidden group aspect-[7/10] mask-black translate-z-0 will-change-transform`},{default:E(()=>{var t,d,p,h;return[((t=e.program.backgroundImage)==null?e.program.image:t)?(i(),s(r,{key:0,class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1]`,src:(d=(p=e.program.backgroundImage)==null?void 0:p.imageUrl)==null?(h=e.program.image)==null?void 0:h.url:d},null,8,[`src`])):o(``,!0),n[0]||(n[0]=_(`div`,{class:`absolute inset-x-0 h-1/2 -bottom-px bg-gradient-to-t from-black via-black/75 to-transparent`},null,-1)),_(`div`,bu,[f(l,{class:`w-[33px] md:w-13.5!`,svgClass:`w-[11px] md:w-[14px]`})]),_(`div`,xu,[e.program.logo&&e.program.logo.imageUrl?(i(),m(`figure`,Su,[f(r,{src:e.program.logo.imageUrl,class:`object-contain`},null,8,[`src`])])):(i(),s(u,{key:1,class:`lg:text-2.5xl! text-text-invert text-center`},{default:E(()=>[N(S(e.program.title),1)]),_:1})),_(`p`,Cu,S(g(c)?`...`:g(a))+` afleveringen`,1)])]}),_:1},8,[`to`])}}}),{__name:`CardNewTvPortrait`}),Tu={class:`page boxed pt-0 lg:pt-10 flex flex-col gap-14`},Eu={class:`flex flex-col gap-8`},Du={key:0},Ou={key:1},ku={class:`grid grid-cols-12 gap-4 lg:gap-8`},Au={class:`col-span-6 lg:col-span-3`},ju=Object.assign(h({__name:`Programs`,props:{dynamicProps:{}},setup(e){let{$engine:n,$logStore:r}=t(),a=e;se({title:(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())(a.dynamicProps.programType.name)});let c=P([]),l=P([]),u=P(!1),d=P(0),p=P(!1),h=new Ve(new Y(960,1515),new Y(960,1515),new Y(960,1515)),v=async()=>{d.value++;let e=await n.getPrograms(a.dynamicProps.programType,d.value,20,h,h);e?(e.lastPage&&(p.value=!0),l.value.push(...e.items)):u.value=!0};return C(async()=>{r.log(`fetching kijk en luister data`,`page structure`);let e;try{e=await n.getKijkLuister()}catch(e){u.value=!0,r.log(`exception thrown while fetching knl data, does the content item exist?`,`error`,`error`,e);return}if(!e){u.value=!0,r.log(`no knl data returned, does the content item exist?`,`error`,`error`);return}let t=await n.getPrograms(a.dynamicProps.programType,0,20,h,h);if(!t)u.value=!0;else{var i,o;t.lastPage&&(p.value=!0),c.value=(i=(o=e.submenu)==null?void 0:o.asJsReadonlyArrayView())==null?[]:i,l.value=t.items}}),(e,t)=>{let n=qt,r=_c,a=W,d=Jt,h=wu,y=et;return i(),m(B,null,[f(n,{title:`Programma's`}),_(`div`,Tu,[g(c)?(i(),s(r,{key:0,nav:g(c)},null,8,[`nav`])):o(``,!0),_(`div`,Eu,[f(a,null,{default:E(()=>[...t[0]||(t[0]=[N(`Programma's`,-1)])]),_:1}),g(u)?(i(),m(`section`,Du,[f(d,null,{default:E(()=>[...t[1]||(t[1]=[N(`Er ging iets fout bij het ophalen van de programma's.`,-1)])]),_:1})])):g(l)?(i(),m(`section`,Ou,[_(`div`,ku,[(i(!0),m(B,null,I(g(l),e=>(i(),m(`div`,Au,[f(h,{program:e},null,8,[`program`])]))),256))])])):o(``,!0),g(p)?o(``,!0):(i(),s(y,{key:2,class:`grow-0 self-center`,onClick:v},{default:E(()=>[...t[2]||(t[2]=[N(`Laad meer`,-1)])]),_:1}))])])],64)}}}),{__name:`PagesDynamicPrograms`}),Mu={class:`text-black font-semibold leading-none`},Nu=Object.assign(h({__name:`VideoDuration`,props:{size:{default:`md`},duration:{}},setup(e){return(t,n)=>(i(),m(`div`,{class:x([`flex flex-row items-center rounded-full bg-white`,{"text-xxs gap-1 py-0.5 pl-[3px] pr-1.5":e.size===`xs`,"text-tiny gap-1 py-1 pl-[5px] pr-2":e.size===`md`,"text-base gap-1.5 py-1.5 pl-[7px] pr-2.5":e.size===`lg`}])},[_(`span`,{class:x([`bg-primary text-black rounded-full grid place-items-center`,{"size-[14px]":e.size===`xs`,"size-5":e.size===`md`,"size-6":e.size===`lg`}])},[(i(),m(`svg`,{class:x([`mx-auto text-white fill-current`,{"w-1.5 translate-x-[0.5px]":e.size===`xs`,"w-2 translate-x-[1px]":e.size===`md`||e.size===`lg`}]),viewBox:`0 0 8 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...n[0]||(n[0]=[_(`path`,{d:`M0.333008 10.1668V0.833496L7.66634 5.50016L0.333008 10.1668Z`},null,-1)])],2))],2),_(`span`,Mu,S(e.duration),1)],2))}}),{__name:`TagVideoDuration`}),Pu={class:`content`},Fu={class:`flex flex-col gap-1`},Iu={class:`text-base md:text-lg font-bold break-words`},Lu={class:`text-xs lg:text-sm text-text-light`},Ru=Object.assign(h({__name:`NewMediaItem`,props:{item:{},alwaysVertical:{type:Boolean,default:!0}},setup(e){let t=H(),n=e,r=z(()=>{var e,t,r,i,a;
70return(e=(t=(r=(i=n.item.posterBackground)==null?void 0:i.imageUrl)==null?(a=n.item.program)==null||(a=a.posterBackground)==null?void 0:a.imageUrl:r)==null?n.item.broadcast.cover:t)==null?void 0:e}),a=z(()=>n.item.type.name===Pe.EPISODE.name?`EpisodeWebPage`:n.item.type.name===Pe.FRAGMENT.name?`FragmentWebPage`:`UNKWebPage`);return(n,o)=>{let s=U,c=Nu,l=q;return i(),m(`div`,{class:x([`gap-4 rounded-lg lg:rounded-2xl`,{isActive:g(t).path.substring(1)==e.item.slug,"flex flex-col":e.alwaysVertical,"grid grid-cols-2 md:flex md:flex-col":!e.alwaysVertical}])},[f(l,{to:`/${e.item.slug}`,type:g(a),class:`block relative rounded-lg lg:rounded-2xl overflow-hidden group w-full`},{default:E(()=>[f(s,{class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1] aspect-[8/5]`,src:g(r)},null,8,[`src`]),o[0]||(o[0]=_(`div`,{class:`absolute inset-[-1px] transition-all bg-gradient-to-t from-black to-black/50 opacity-25 group-hover:opacity-50`},null,-1)),f(c,{class:`absolute top-3 right-3 md:top-4 md:right-4`,size:`md`,duration:e.item.broadcast.durationFormatted},null,8,[`duration`])]),_:1},8,[`to`,`type`]),_(`div`,Pu,[_(`div`,Fu,[_(`h3`,Iu,S(e.item.title),1),_(`p`,Lu,S(e.item.program&&`${e.item.program.title} ‧ `)+S(e.item.publishedOnFormattedShort),1)])])],2)}}}),{__name:`CardNewMediaItem`}),zu={class:`boxed flex flex-col gap-14 mt-8`},Bu={class:`grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4`},Vu={class:`boxed flex flex-col gap-14 mt-8`},Hu={class:`grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4`},Uu={class:`boxed grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4 mt-8`},Wu={class:`boxed grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4 mt-8`},Gu=Object.assign(h({__name:`FragmentsAndEpisodes`,props:{program:{},currentBroadcast:{}},setup(e,{expose:n}){let{$engine:r}=t(),a=V(),c=e;n({openLatestBroadcast(){l.value.length&&a.push(`/${l.value[0].slug}`)}});let l=P([]),u=P([]),d=P([]),f=P([]),p=P(0),h=P(!1),v=P(0),y=P(!1),b=P(!1),x=!!c.program,S=z(()=>x?[{label:`Andere afleveringen`,slot:`episodes`},{label:`Fragmenten`,slot:`fragments`}]:[{label:`Video`,slot:`video`},{label:`Audio`,slot:`audio`}]),w=new xe(new Y(1920,1080)),T=async()=>{p.value++;let e=await r.getEpisodesForProgram(c.program,p.value,void 0,void 0,w);e?(e.lastPage&&(h.value=!0),l.value.push(...e.items)):b.value=!0},D=async()=>{v.value++;let e=await r.getFragmentsForProgram(c.program,v.value,void 0,void 0,w);e?(e.lastPage&&(y.value=!0),u.value.push(...e.items)):b.value=!0};return C(async()=>{if(x){let e=await r.getEpisodesForProgram(c.program,void 0,void 0,void 0,w),t=await r.getFragmentsForProgram(c.program,void 0,void 0,void 0,w);h.value=e.lastPage,y.value=t.lastPage,l.value=e.items,u.value=t.items}else{let e=await r.getLatestVideoFragments(),t=await r.getLatestAudioFragments();d.value=e.items,f.value=t.items}c.currentBroadcast&&[l,u,d,f].forEach(e=>{e.value=e.value.filter(e=>e.id!==c.currentBroadcast.id)})}),(e,t)=>{let n=Ru,r=et,a=gu;return i(),s(a,{variant:`link`,items:g(S),color:`primary`,ui:{root:`relative`,label:`font-heading font-bold text-base`,trigger:`cursor-pointer`,list:`border-0! boxed before:absolute before:w-lvw before:h-[3px] before:bg-[#E0E0E0] dark:before:bg-[#424242] before:-bottom-[3px] before:left-1/2 before:-translate-x-1/2`}},{episodes:E(()=>[_(`div`,zu,[_(`div`,Bu,[(i(!0),m(B,null,I(g(l),e=>(i(),s(n,{item:e,"always-vertical":!1}
70,null,8,[`item`]))),256))]),g(h)?o(``,!0):(i(),s(r,{key:0,class:`grow-0 self-center`,onClick:T},{default:E(()=>[...t[0]||(t[0]=[N(`Laad meer`,-1)])]),_:1}))])]),fragments:E(()=>[_(`div`,Vu,[_(`div`,Hu,[(i(!0),m(B,null,I(g(u),e=>(i(),s(n,{item:e,"always-vertical":!1},null,8,[`item`]))),256))]),g(y)?o(``,!0):(i(),s(r,{key:0,class:`grow-0 self-center`,onClick:D},{default:E(()=>[...t[1]||(t[1]=[N(`Laad meer`,-1)])]),_:1}))])]),video:E(()=>[_(`div`,Uu,[(i(!0),m(B,null,I(g(d),e=>(i(),s(n,{item:e,"always-vertical":!1},null,8,[`item`]))),256))])]),audio:E(()=>[_(`div`,Wu,[(i(!0),m(B,null,I(g(f),e=>(i(),s(n,{item:e,"always-vertical":!1},null,8,[`item`]))),256))])]),_:1},8,[`items`])}}}),{__name:`FragmentsAndEpisodes`}),Ku={class:`page boxed pt-0 lg:pt-10 flex flex-col gap-6`},qu={key:1},Ju={key:2},Yu={class:`flex flex-col lg:flex-row gap-12`},Xu={class:`flex flex-col grow gap-6 items-start`},Zu={class:`max-w-3xl`},Qu={class:`flex-col gap-3 hidden lg:flex`},$u=Object.assign(h({__name:`Program`,props:{dynamicProps:{}},setup(e){let{$engine:n,$logStore:r}=t(),a=e,c=H(),l=Je(),u=P([]),d=k(`mediaList`),p=P(),h=P(!1),v=z(()=>{var e,t,n;return l.value?(e=p.value)==null||(e=e.logo)==null?void 0:e.imageUrl:(t=p.value)!=null&&t.logoBright?p.value.logoBright.imageUrl:(n=p.value)==null||(n=n.logo)==null?void 0:n.imageUrl}),y=z(()=>c.path.substring(1)),b=()=>{var e;d.value&&((e=d.value)==null||e.openLatestBroadcast())};return C(async()=>{r.log(`fetching kijk en luister data`,`page structure`);let e;try{e=await n.getKijkLuister()}catch(e){h.value=!0,r.log(`exception thrown while fetching knl data, does the content item exist?`,`error`,`error`,e);return}if(!e){h.value=!0,r.log(`no knl data returned, does the content item exist?`,`error`,`error`);return}let t=await n.getProgram(a.dynamicProps.programType,y.value);if(!t)h.value=!0;else{var i,o;u.value=(i=(o=e.submenu)==null?void 0:o.asJsReadonlyArrayView())==null?[]:i,p.value=t}}),(e,t)=>{var n;let r=_c,a=Jt,c=qt,l=U,y=W,x=_t,C=Zt,w=Kt,T=Gu;return i(),m(B,null,[_(`div`,Ku,[g(u)?(i(),s(r,{key:0,nav:g(u)},null,8,[`nav`])):o(``,!0),g(h)?(i(),m(`section`,qu,[f(a,null,{default:E(()=>[...t[1]||(t[1]=[N(`Er ging iets mis bij het ophalen van dit programma.`,-1)])]),_:1})])):g(p)?(i(),m(`section`,Ju,[f(c,{title:(n=g(p).title)==null?`Programma`:n},null,8,[`title`]),_(`div`,Yu,[_(`div`,Xu,[g(v)?(i(),s(l,{key:0,src:g(v),class:`w-1/6`},null,8,[`src`])):(i(),s(y,{key:1},{default:E(()=>[N(S(g(p).title),1)]),_:1})),_(`div`,Zu,[_(`p`,null,S(g(p).summary),1)]),f(x,{icon:`play-arrow`,class:`bg-text-brand! font-bold! text-lg! font-heading text-text-invert px-6! py-2!`,href:`#`,onClick:t[0]||(t[0]=e=>b())},{default:E(()=>[...t[2]||(t[2]=[N(` Laatste uitzending `,-1)])]),_:1})]),_(`div`,Qu,[f(C,{class:`text-lg mb-0!`},{default:E(()=>[...t[3]||(t[3]=[N(`Delen`,-1)])]),_:1}),f(w)])])])):o(``,!0)]),g(p)?(i(),s(T,{key:0,ref_key:`mediaList`,ref:d,program:g(p)},null,8,[`program`])):o(``,!0)],64)}}}),{__name:`PagesDynamicProgram`}),ed={class:`page boxed -mt-2 md:mt-4 lg:mt-0 pt-0 lg:pt-4 fragment-content`},td={key:0},nd={key:1},rd={class:`flex flex-col gap-8`},id={class:`md:rounded-2xl overflow-auto -mx-4 md:mx-0`},ad={class:`flex flex-col lg:flex-row gap-12`},od={class:`flex flex-col grow gap-6 items-start w-full lg:w-8/12`},sd={class:`text-text-light text-sm`},cd=[`innerHTML`],ld={class:`flex md:flex-col items-center md:items-start gap-4 md:gap-3`},ud={key:0,class:`flex-col gap-3 lg:flex w-full md:w-1/2 lg:w-4/12`},dd={key:0,class:`bg-surface-tone/10 rounded-2xl p-4 flex flex-col gap-3`},fd={class:`aspect-[3/2] rounded-lg lg:rounded-2xl overflow-hidden flex-none image-container relative w-[150px]`},pd={class:`w-full h-full relative`},md={class:`px-3 pb-3 grow`},hd={class:`text-base font-heading font-bold text-text-primary group-hover:text-text-brand break-words`},gd=Object.assign(X(h({__name:`FragmentOrEpisode`,props:{dynamicProps:{}},setup(e){let{$engine:n,$nl2br:r}=t(),a=e,c=H(),l=z(()=>c.path.substring(1)),u=e=>e.constructor.name===fe.name,d=P(),p=P(``),h=P(``),v=P(),y=z(()=>d.value?d.value.type.name===Pe.EPISODE.name?`Deze aflevering`:`Dit fragment`:`Dit item`),b=P(!1);return C(async()=>{let e=await n.getFragment(a.dynamicProps.programType,l.value,void 0,new xe(new Y(1920,1080)));if(!e)b.value=!0;else{var t,r,i,o,s,c;d.value=e,p.value=(t=d.value.summary)==null?void 0:t.replace(/(<a href=['"])(?!https|\/)(\w+)/g,`$1/$2`),h.value=(r=(i=(o=(s=d.value.posterBackgroun
70d)==null?void 0:s.imageUrl)==null?(c=d.value.program)==null||(c=c.posterBackground)==null?void 0:c.imageUrl:o)==null?d.value.broadcast.cover:i)==null?``:r}u(a.dynamicProps)&&a.dynamicProps.articleId!==``&&(v.value=await n.getArticleById(a.dynamicProps.articleId))}),(t,n)=>{var a,c,l,x;let C=Jt,w=qt,T=ce,D=W,O=Zt,k=Kt,A=U,j=Nu,M=q,ee=Gu;return i(),m(B,null,[_(`div`,ed,[g(b)?(i(),m(`section`,td,[f(C,null,{default:E(()=>[N(` Er ging iets mis bij het ophalen van `+S(g(y).toLowerCase())+`. `,1)]),_:1})])):g(d)?(i(),m(`section`,nd,[f(w,{title:(a=g(d).title)==null?`Fragment`:a,description:(c=g(d).summary)==null?``:c},null,8,[`title`,`description`]),_(`div`,rd,[_(`div`,id,[g(d).broadcast.url?(i(),s(T,{key:0,poster:(l=g(h))==null?``:l,source:g(d).broadcast.url,duration:g(d).broadcast.duration?Math.floor(g(d).broadcast.duration/1e3):0,prerolls:!((x=g(d).program)!=null&&x.blockPreroll)&&!g(d).blockPreroll},null,8,[`poster`,`source`,`duration`,`prerolls`])):(i(),s(C,{key:1},{default:E(()=>[N(S(g(y))+` heeft geen video!`,1)]),_:1}))]),_(`div`,ad,[_(`div`,od,[_(`span`,sd,S(g(d).program&&`${g(d).program.title} ‧ `)+` `+S(g(d).publishedOnFormattedShort)+` ‧ `+S(g(d).broadcast.durationFormatted),1),f(D,null,{default:E(()=>[N(S(g(d).title),1)]),_:1}),g(d).summary?(i(),m(`div`,{key:0,id:`summary`,innerHTML:g(r)(g(p)),class:`max-w-3xl lg:text-lg`},null,8,cd)):o(``,!0),_(`div`,ld,[f(O,{class:`text-lg mb-0!`},{default:E(()=>[...n[0]||(n[0]=[N(`Delen`,-1)])]),_:1}),f(k)])]),g(v)?(i(),m(`aside`,ud,[u(e.dynamicProps)&&e.dynamicProps.articleId!==``?(i(),m(`div`,dd,[n[1]||(n[1]=_(`p`,{class:`text-text-brand font-bold font-heading text-lg`},`Deze video komt voor in`,-1)),f(M,{to:`/${g(v).slug}`,type:`ArticleWebPage`,class:`group rounded-xl overflow-hidden flex`},{default:E(()=>{var e,t,n,r,a;return[_(`div`,fd,[_(`div`,pd,[(e=g(v).headerImage)!=null&&e.thumbnailUrl?(i(),s(A,{key:0,class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1] lazyLoad`,alt:(t=(n=(r=g(v).headerImage)==null?void 0:r.description)==null?(a=g(v).headerImage)==null?void 0:a.name:n)==null?``:t,src:g(v).headerImage.thumbnailUrl},null,8,[`alt`,`src`])):o(``,!0)]),f(j,{class:`absolute bottom-2 left-2`,size:`xs`,duration:g(d).broadcast.durationFormatted},null,8,[`duration`])]),_(`div`,md,[_(`h3`,hd,S(g(v).title),1)])]}),_:1},8,[`to`])])):o(``,!0)])):o(``,!0)])])])):o(``,!0)]),g(d)&&g(d).program?(i(),s(ee,{key:0,program:g(d).program,currentBroadcast:g(d)},null,8,[`program`,`currentBroadcast`])):o(``,!0)],64)}}}),[[`__scopeId`,`data-v-1829eb20`]]),{__name:`PagesDynamicFragmentOrEpisode`}),_d={key:0,class:`page`},vd={class:`boxed pt-0 lg:pt-10`},yd={class:`grid grid-cols-12 gap-4 lg:gap-8`},bd={class:`col-span-12 lg:col-span-7`},xd={class:`relative flex flex-col gap-6 -mx-4 lg:mx-0`},Sd={class:`absolute hidden lg:block top-0 left-0 right-0 p-[15px]`},Cd={class:`flex flex-row flex-wrap gap-1 text-white text-sm`},wd={class:`col-span-12 lg:col-span-5`},Td={class:`flex flex-col gap-4 lg:mb-8`},Ed=[`innerHTML`],Dd={class:`overflow-hidden`},Od={class:`boxed pb-12`},kd={class:`flex flex-col lg:flex-row gap-10 lg:gap-16 border-t border-border-primary pt-8`},Ad={class:`flex-grow min-w-0`},jd={class:`grid lg:hidden lg:grid-cols-3 gap-6`},Md={key:0,class:`col-span-full`},Nd={class:`hidden lg:grid lg:grid-cols-4 gap-6`},Pd={key:0,class:`col-span-full`},Fd={key:0,class:`flex flex-row justify-center`},Id={key:1},Ld=Object.assign(h({__name:`Dossier`,props:{dynamicProps:{}},async setup(e){let n,r,a=e,{$engine:s,$positionCache:c,$dateFns:l}=t(),u=24,d=([n,r]=j(()=>s.getDossierById(a.dynamicProps.dossierId)),n=await n,r(),n);if(!d)throw Error(`Failed to fetch dossier`);let p=([n,r]=j(()=>s.getArticleCountForDossier(a.dynamicProps.dossierId)),n=await n,r(),n),h=P(([n,r]=j(()=>s.getArticlePreviewsForDossier(d,c,0,u)),n=await n,r(),n));G({title:d==null?void 0:d.title});let v=async()=>{let e=await s.getArticlePreviewsForDossier(d,c,0,u+=4);h.value=e};return(e,t)=>{var n,r,a,s,c,l;let u=qt,y=U,b=Nt,x=W,C=Mt,w=It,T=Pt,D=et;return g(d)?(i(),m(`div`,_d,[f(u,{title:(n=g(d).title)==null?`Dossier`:n,description:(r=g(d).summary)==null?``:r},null,8,[`title`,`description`]),_(`section`,null,[_(`div`,vd,[_(`div`,yd,[_(`div`,bd,[_(`div`,xd,[f(y,{class:`lg:rounded-2xl`,alt:(a=(s=g(d).headerImage)==null?void 0:s.description)==null?(c=g(d).headerImage)==null?void 0:c.name:a,src:(l=g(d).headerImage)==null?void 0:l.url},null,8,[`alt`,`src`]),_(`div`,Sd,[_(`div`,Cd,[f(b,{icon:`document`,extraClasse
70s:`!bg-surface-accent text-xxs !text-text-invert border-none`,extraIconClasses:`w-4`},{default:E(()=>[N(S(g(p))+` items`,1)]),_:1})])])])]),_(`div`,wd,[_(`div`,Td,[f(x,null,{default:E(()=>[N(S(g(d).title),1)]),_:1}),_(`div`,{class:`lg:text-lg`,innerHTML:g(d).summary},null,8,Ed)])])])])]),_(`section`,Dd,[_(`div`,Od,[_(`div`,kd,[_(`div`,Ad,[g(h)?(i(),m(B,{key:0},[_(`div`,jd,[(i(!0),m(B,null,I(g(h).items,(e,t)=>(i(),m(B,null,[f(C,{article:e},null,8,[`article`]),t>1&&t%7==0?(i(),m(`div`,Md,[f(w,{location:`WEBSITE_CENTER`,mobile:``})])):o(``,!0)],64))),256))]),_(`div`,Nd,[(i(!0),m(B,null,I(g(h).items,(e,t)=>(i(),m(B,null,[f(T,{article:e},null,8,[`article`]),t>1&&t%7==0?(i(),m(`div`,Pd,[f(w,{location:`WEBSITE_CENTER`})])):o(``,!0)],64))),256))]),g(h).items.length===g(h).totalItems?o(``,!0):(i(),m(`div`,Fd,[f(D,{onClick:v},{default:E(()=>[...t[0]||(t[0]=[N(`Toon meer`,-1)])]),_:1})]))],64)):(i(),m(`div`,Id,`Er zijn geen artikelen gevonden.`))])])])])])):o(``,!0)}}}),{__name:`PagesDynamicDossier`}),Rd={class:`boxed`},zd={key:0},Bd={class:`centered-1 mt-2 lg:mt-0`},Vd={class:`flex flex-col gap-6 justify-between mb-6`},Hd=[`innerHTML`],Ud={class:`flex flex-row gap-4 py-4 justify-between items-center border-t border-b border-border-primary`},Wd={class:`flex flex-row gap-4`},Gd={class:`flex flex-row gap-2 items-center`},Kd={class:`w-4`},qd={class:`flex flex-row gap-2 items-center`},Jd={class:`w-4`},Yd={class:`flex flex-row gap-2`},Xd={key:0,class:`centered-2 border-b border-border-primary`},Zd={class:`centered-1 mt-6 flex flex-col`},Qd={class:`flex flex-row gap-4 self-center`},$d={key:1},ef={class:`flex flex-col gap-4 items-center centered-1`},tf={key:2},nf=Object.assign(h({__name:`Job`,props:{dynamicProps:{}},setup(e){let{$engine:n,$logStore:r,$router:c}=t(),l=e,u=P(),d=P(!1),p=()=>c.push(`/`);return C(async()=>{let e=await n.getJobVacancy(l.dynamicProps.jobSlug);if(e){u.value=e;try{var t;await n.trackPreprView(e.id),(t=window.dataLayer)==null||t.push({event:`job_view`,title:e.title})}catch(e){r.log(`Tracking failed, is an adblocker enabled?`,`error`,`error`,e)}}else{d.value=!0;return}}),(e,t)=>{var n;let r=W,c=bt,l=wt,h=_t,v=Ii,y=K;return i(),m(`div`,Rd,[g(u)?(i(),m(`div`,zd,[_(`div`,Bd,[_(`div`,Vd,[f(r,null,{default:E(()=>[N(S(g(u).title),1)]),_:1}),_(`p`,{id:`articleSummary`,class:`lg:text-lg text-text-primary font-medium`,innerHTML:g(u).summary},null,8,Hd),_(`div`,Ud,[_(`div`,Wd,[_(`div`,Gd,[_(`div`,Kd,[f(c)]),_(`span`,null,S(g(u).tags.map(e=>e.body).join(`, `)),1)]),_(`div`,qd,[_(`div`,Jd,[f(l)]),_(`span`,null,S(g(u).cities.map(e=>e.body).join(`, `)),1)])]),_(`div`,Yd,[f(h,{href:g(u).externalUrl,external:!0,icon:`website`},{default:E(()=>[...t[0]||(t[0]=[N(`Naar website`,-1)])]),_:1},8,[`href`]),g(u).email?(i(),s(h,{key:0,href:g(u).email,external:!0,icon:`email`},{default:E(()=>[...t[1]||(t[1]=[N(`Direct contact`,-1)])]),_:1},8,[`href`])):o(``,!0)])])])]),g(u).image&&g(u).image.thumbnailUrl?(i(),m(`div`,Xd,[f(v,{image:(n=g(u).image)==null?void 0:n.thumbnailUrl},null,8,[`image`])])):o(``,!0),_(`div`,Zd,[(i(!0),m(B,null,I(g(u).elements,e=>(i(),s(y,{element:e},null,8,[`element`]))),256)),_(`div`,Qd,[f(h,{href:g(u).externalUrl,external:!0,class:`mt-6`,icon:`website`},{default:E(()=>[...t[2]||(t[2]=[N(`Solliciteren via website`,-1)])]),_:1},8,[`href`]),g(u).email&&g(u).email!==``?(i(),s(h,{key:0,href:g(u).email,external:!0,class:`mt-6`,icon:`email`},{default:E(()=>[...t[3]||(t[3]=[N(`Solliciteer direct`,-1)])]),_:1},8,[`href`])):o(``,!0)])])])):g(d)?(i(),m(`div`,$d,[_(`div`,ef,[t[5]||(t[5]=_(`h1`,{class:`text-primary font-bold text-4xl`},`Er ging iets mis!`,-1)),t[6]||(t[6]=_(`p`,null,`Er ging iets mis bij het ophalen van deze pagina.`,-1)),f(h,{icon:`arrow-down`,"text-classes":`mr-4`,"icon-classes":`rotate-90 size-8`,onClick:p},{default:E(()=>[...t[4]||(t[4]=[N(` Terug naar de homepagina `,-1)])]),_:1})])])):(i(),m(`div`,tf,[...t[7]||(t[7]=[a(`<section><div><div class="centered-1"><div class="mb-4 flex flex-col flex-wrap gap-4 text-sm"><div class="isLoading w-full h-16"></div><div class="isLoading w-2/3 h-16"></div></div><div class="mb-4 flex flex-col flex-wrap gap-4 text-sm"><div class="isLoading w-full h-8"></div><div class="isLoading w-full h-8"></div></div></div><div class="centered-2 mb-4"><div class="isLoading aspect-[16/9]"></div></div></div></section>`,1)])]))])}}}),{__name:`PagesDynamicJob`}),rf={class:`flex justify-start mb-4 md:mb-10 gap-1 md:gap-2 flex-wrap`},af=Object.assign(h({__name:`Filters`,props:{availableTypes:{},availableCities:{},selectedTypes:{},selectedCities:{}},emits:[`types-change`,`cities-change`,`types-reset`,`cities-reset`],setup(e,{emit:t}){let n=e,r=t,a=e=>{let t=n.selectedTypes.includes(e.label)?n.selectedTypes.filter(t=>t!==e.label):[...n.selectedTypes,e.label];r(`types-change`,t)},c=e=>{let t=n.selectedCities.includes(e.label)?n.selectedCities.filter(t=>t!==e.label):[...n.selectedCities,e.label];r(`cities-change`,t)},l=e=>{e.some(e=>e.selected)||r(`types-reset`)},u=e=>{e.some(e=>e.selected)||r(`cities-reset`)};return(t,n)=>{let r=Yt;
70return i(),m(`div`,rf,[e.availableCities.length?(i(),s(r,{key:0,position:`left`,items:e.availableCities,multiple:!0,onSelect:c,onItemsUpdated:u},{default:E(()=>[...n[0]||(n[0]=[N(` Regio `,-1)])]),_:1},8,[`items`])):o(``,!0),e.availableTypes.length?(i(),s(r,{key:1,position:`left`,items:e.availableTypes,multiple:!0,onSelect:a,onItemsUpdated:l},{default:E(()=>[...n[1]||(n[1]=[N(` Types `,-1)])]),_:1},8,[`items`])):o(``,!0)])}}}),{__name:`JobFilters`}),of={class:`rounded-lg lg:rounded-2xl`},sf={class:`aspect-3/2 rounded-lg lg:rounded-2xl overflow-hidden flex-none mb-4 image-container relative`},cf={class:`flex flex-row flex-wrap gap-1 mb-2 absolute top-2 left-2 md:top-4 md:left-4 z-10`},lf={class:`content`},uf={class:`font-heading text-1xl md:text-1.3xl font-bold mb-2 transition-colors group-hover:text-text-brand wrap-break-word`},df={class:`line-clamp-3 mb-4 text-sm sm:text-base`},ff=Object.assign(h({__name:`Job`,props:{job:{}},setup(e){return(t,n)=>{let r=Nt,a=U,o=q;return i(),m(`div`,of,[f(o,{to:`/${e.job.slug}`,class:`group`},{default:E(()=>{var t,n,o,c;return[_(`div`,sf,[_(`div`,cf,[(i(!0),m(B,null,I(e.job.tags,e=>(i(),s(r,{extraClasses:`bg-surface-accent! text-text-invert! border-none`},{default:E(()=>[N(S(e.body),1)]),_:2},1024))),256)),(i(!0),m(B,null,I(e.job.cities,e=>(i(),s(r,{extraClasses:`bg-surface-accent! text-text-invert! border-none`},{default:E(()=>[N(S(e.body),1)]),_:2},1024))),256))]),f(a,{class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1]`,alt:(t=(n=e.job.image)==null?void 0:n.description)==null?(o=e.job.image)==null?void 0:o.name:t,src:(c=e.job.image)==null?void 0:c.thumbnailUrl},null,8,[`alt`,`src`])]),_(`div`,lf,[_(`h3`,uf,S(e.job.title),1),_(`p`,df,S(e.job.summary),1)])]}),_:1},8,[`to`])])}}}),{__name:`CardJob`}),pf={key:0,class:`mb-8 p-4 bg-red-50 border border-red-200 rounded-md`},mf={class:`text-red-700`},hf={class:`grid grid-cols-2 lg:grid-cols-4 gap-y-6 gap-x-4 mb-10 relative z-0`},gf={key:0,class:`flex flex-row justify-center`},_f={key:0,class:`inline-flex items-center gap-2`},vf={key:2,class:`text-center py-12`},yf=Object.assign(h({__name:`Results`,props:{jobs:{},hasMoreResults:{type:Boolean},isLoadingMore:{type:Boolean},error:{}},emits:[`load-more`],setup(e,{emit:t}){let n=t,r=()=>{n(`load-more`)};return(t,n)=>{let a=ff,c=et;return i(),m(`div`,null,[e.error?(i(),m(B,{key:0},[e.error?(i(),m(`div`,pf,[_(`p`,mf,S(e.error),1)])):o(``,!0)],64)):e.jobs.length?(i(),m(B,{key:1},[_(`div`,hf,[(i(!0),m(B,null,I(e.jobs,e=>(i(),s(a,{key:e.id,job:e},null,8,[`job`]))),128))]),e.hasMoreResults?(i(),m(`div`,gf,[f(c,{disabled:e.isLoadingMore,onClick:r,extraClasses:`mb-4`},{default:E(()=>[e.isLoadingMore?(i(),m(`div`,_f,[...n[0]||(n[0]=[_(`div`,{class:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`},null,-1),N(` Laden... `,-1)])])):(i(),m(B,{key:1},[N(` Toon meer `)],64))]),_:1},8,[`disabled`])])):o(``,!0)],64)):(i(),m(`div`,vf,[...n[1]||(n[1]=[_(`p`,{class:`text-lg text-secondary`},`Geen vacatures gevonden.`,-1)])]))])}}}),{__name:`JobResults`}),bf={class:`boxed mb-0 md:mb-4`},xf={class:`boxed`},Sf=12,Cf=Object.assign(h({__name:`Jobs`,async setup(e){let n,r,{$engine:a,$loadingStore:o,$logStore:s}=t();G({title:`Vacatures`});let c=P([]),l=P(null),u=P([]),d=P([]),p=P(0),h=P(0),v=P(!1),y=P(!1);s.log(`Loading vacancy cities and types`,`load`);let[b,x]=([n,r]=j(()=>Promise.all([a.getJobCities(),a.getJobTypes()])),n=await n,r(),n),S=z(()=>b==null?[]:b),w=z(()=>x==null?[]:x),T=z(()=>S.value.filter(e=>e.body).map(e=>({label:e.body,selected:d.value.includes(e.body)}))),D=z(()=>w.value.filter(e=>e.body).map(e=>({label:e.body,selected:u.value.includes(e.body)}))),O=z(()=>!y.value&&h.value>=Sf),k=async(e=0,t=!1)=>{try{e===0?o.setLoading(!0):v.value=!0,l.value=null;let n=await a.getJobVacancies(e,Sf,u.value.length>0?u.value:void 0,d.value.length>0?d.value:void 0);console.log(e,n.items,Sf,u.value.length>0?u.value:void 0,d.value.length>0?d.value:void 0),t?c.value.push(...n.items):c.value=n.items,h.value=n.length,p.value=e,n.length<Sf&&(y.value=!0),s.log(`Loaded vacancies page ${e}, showing ${n.items.length} vacancies\n`,`load`,`info`,n)}catch(e){s.log(`Failed to load vacancies
71`,`error`,`error`,e),l.value=`Er ging iets mis bij het laden van de vacatures. Probeer het opnieuw.`,t||(c.value=[],h.value=0)}finally{o.setLoading(!1),v.value=!1}},A=()=>{let e=p.value+1;k(e,!0)},M=e=>{u.value=e,p.value=0,y.value=!1,k(0,!1)},ee=e=>{d.value=e,p.value=0,y.value=!1,k(0,!1)},te=()=>{u.value=[],p.value=0,y.value=!1,k(0,!1)},F=()=>{d.value=[],p.value=0,y.value=!1,k(0,!1)};return C(()=>{k(0,!1)}),(e,t)=>{let n=qt,r=W,a=af,o=yf;return i(),m(B,null,[f(n,{title:`Vacatures`}),_(`section`,null,[_(`div`,bf,[f(r,null,{default:E(()=>[...t[0]||(t[0]=[N(`Vacatures`,-1)])]),_:1})])]),_(`section`,null,[_(`div`,xf,[f(a,{"available-cities":g(T),"available-types":g(D),"selected-cities":g(d),"selected-types":g(u),onCitiesChange:ee,onTypesChange:M,onCitiesReset:F,onTypesReset:te},null,8,[`available-cities`,`available-types`,`selected-cities`,`selected-types`]),f(o,{jobs:g(c),"has-more-results":g(O),"is-loading-more":g(v),error:g(l),onLoadMore:A},null,8,[`jobs`,`has-more-results`,`is-loading-more`,`error`])])])],64)}}}),{__name:`PagesDynamicJobs`}),wf={async setup(){let{$engine:e,$globalStore:n}=t(),i=H(),a=r(),o=P({title:a.public.OMROEP.replace(`WOS Media`,`WOS`),meta:[{property:`og:title`,content:a.public.OMROEP.replace(`WOS Media`,`WOS`)},{name:`description`},{property:`og:description`},{property:`og:image`},{name:`twitter:card`,content:`summary_large_image`}]});G(o);let s=i.path.substring(1),c=await e.getLiveblog(s).catch(e=>{throw Error(e)});if(c)n.setCurrentArticleMeta({tags:c.tags.map(e=>e.body),categories:c.categories.map(e=>e.body)}),o.value.title=o.value.meta[0].content=c.title,o.value.meta[1].content=o.value.meta[2].content=c.summary,c.headerImage&&(o.value.meta[3].content=c.headerImage.thumbnailUrl);else throw Error(`No API result at all.`)},data(){return{article:null,liveblogItems:[],relatedArticles:[],justInArticles:[]}},mixins:[Ut],methods:{async getArticle(){let{$engine:e,$logStore:r}=t(),i=(this._.provides[n]||this.$route).path.substring(1),a=await e.getLiveblog(i).catch(e=>{throw Error(e)});if(a){this.article=a,this.getContent(),this.getMoreArticles();
71try{await e.trackPreprView(this.article.id)}catch(e){r.log(`Tracking failed, is an adblocker enabled?`,`error`,`error`,e)}}else throw Error(`No API result at all.`)},async getContent(){let{$engine:e}=t(),r=(this._.provides[n]||this.$route).path.substring(1),i=await e.getLiveblogItems(r,0,999);this.liveblogItems=i.items},async getMoreArticles(){let{$engine:e}=t();this.relatedArticles=await e.getRelatedArticlePreviews(this.article,3);let n=await e.getArticlePreviews(0,9);this.justInArticles=n.items}},async mounted(){this.getArticle()}},Tf={key:0},Ef=[`data-prepr-item-id`],Df={class:`boxed`},Of={class:`centered-1 mt-2 lg:mt-0`},kf={class:`flex mb-4`},Af={class:`flex flex-col gap-6 justify-between mb-6`},jf={class:`lg:text-lg text-text-primary font-medium`},Mf={key:0,class:`centered-2`},Nf={class:`centered-1`},Pf={class:`article-content`},Ff={class:`liveblogItem`},If={class:`flex flex-row gap-4 lg:gap-8`},Lf={class:`elements w-11/12 m:w-full`},Rf={class:`text-text-brand font-bold -mt-[8px] mb-2 font-heading`},zf={class:`mb-10`},Bf={class:`mb-8 flex flex-row flex-wrap gap-1 txt-sm`},Vf={class:`mb-10`},Hf={class:`mb-10`},Uf={class:`my-10`},Wf={class:`boxed pb-12`},Gf={class:`flex flex-col lg:flex-row gap-10 lg:gap-16 border-t border-border-primary pt-8`},Kf={class:`flex-grow min-w-0`},qf={key:0,class:`mb-8`},Jf={class:`mb-8`},Yf={class:`grid lg:hidden lg:grid-cols-3 gap-6`},Xf={class:`hidden lg:grid lg:grid-cols-3 gap-6`},Zf={key:1},Qf={class:`mb-8`},$f={class:`grid lg:hidden lg:grid-cols-3 gap-6`},ep={class:`hidden lg:grid lg:grid-cols-3 gap-6`},tp={class:`flex-none max-w-[400px] relative`},np={class:`flex flex-col gap-10`},rp={key:1};function ip(e,t,n,r,c,l){var u,d,p,h;let g=Nt,v=W,y=Di,b=Ii,x=K,C=zi,w=Kt,T=Ui,D=It,O=jt,k=Mt,A=Pt;return c.article?(i(),m(`div`,Tf,[_(`section`,{class:`tolkie-main`,"data-prepr-item-id":c.article.id},[_(`div`,Df,[_(`div`,Of,[_(`div`,kf,[f(g,{icon:`sensors`,extraIconClasses:`!w-[14px]`,extraClasses:`bg-surface-accent border-transparent !text-text-invert`},{default:E(()=>[...t[0]||(t[0]=[N(`Liveblog`,-1)])]),_:1})]),_(`div`,Af,[_(`div`,null,[f(v,null,{default:E(()=>[N(S(c.article.title),1)]),_:1})]),_(`p`,jf,S(c.article.summary),1),f(y,{author:c.article.author,publishedOn:c.article.publishedOn,changedOn:c.article.changedOn},null,8,[`author`,`publishedOn`,`changedOn`])])]),(u=c.article)!=null&&u.headerImage?(i(),m(`div`,Mf,[f(b,{image:(d=c.article)==null||(d=d.headerImage)==null?void 0:d.thumbnailUrl,author:(p=c.article)==null||(p=p.headerImage)==null?void 0:p.author,description:(h=c.article.headerImage)==null?void 0:h.description},null,8,[`image`,`author`,`description`])])):o(``,!0),_(`div`,Nf,[_(`div`,Pf,[(i(!0),m(B,null,I(c.liveblogItems,(n,r)=>(i(),m(`div`,Ff,[_(`div`,If,[t[1]||(t[1]=_(`div`,{class:`flex-none relative after:absolute after:w-[8px] after:top-4 after:left-[5px] after:bottom-[4px] after:content[''] after:border-surface-secondary after:border-l-2 after:border-dotted`},[_(`div`,{class:`w-[12px] h-[12px] bg-surface-primary rounded-full relative z-[1]`})],-1)),_(`div`,Lf,[_(`p`,Rf,S(e.showRelative(n.publishedOn)),1),(i(!0),m(B,null,I(n.elements,e=>(i(),s(x,{element:e},null,8,[`element`]))),256))])])]))),256))]),_(`div`,zf,[_(`div`,Bf,[c.article.tags.length?(i(!0),m(B,{key:0},I(c.article.tags,e=>(i(),s(C,{href:e.slug,type:`ArticlesTagWebPage`},{default:E(()=>[N(S(e.body),1)]),_:2},1032,[`href`]))),256)):c.article.categories.length?(i(!0),m(B,{key:1},I(c.article.categories,e=>(i(),s(C,{href:e.slug,type:`ArticlesTagWebPage`},{default:E(()=>[N(S(e.body),1)]),_:2},1032,[`href`]))),256)):o(``,!0)])]),_(`div`,Vf,[t[2]||(t[2]=_(`h3`,{class:`font-bold text-text-primary text-lg mb-3`},`Delen`,-1)),f(w)]),_(`div`,Hf,[f(T)]),_(`div`,Uf,[f(D,{location:`WEBSITE_CENTER`})])])])],8,Ef),_(`section`,null,[_(`div`,Wf,[_(`div`,Gf,[_(`div`,Kf,[c.relatedArticles.length?(i(),m(`div`,qf,[_(`div`,Jf,[f(O,null,{default:E(()=>[...t[3]||(t[3]=[N(`Gerelateerde artikelen`,-1)])]),_:1})]),_(`div`,Yf,[(i(!0),m(B,null,I(c.relatedArticles,e=>(i(),s(k,{article:e},null,8,[`article`]))),256))]),_(`div`,Xf,[(i(!0),m(B,null,I(c.relatedArticles,e=>(i(),s(A,{article:e},null,8,[`article`]))),256))])])):o(``,!0),c.justInArticles.length?(i(),m(`div`,Zf,[_(`div`,Qf,[f(O,null,{default:E(()=>[...t[4]||(t[4]=[N(`Net binnen`,-1)])]),_:1})]),_(`div`,$f,[(i(!0),m(B,null,I(c.justInArticles,e=>(i(),s(k,{article:e},null,8,[`article`]))),256))]),_(`div`,ep,[(i(!0),m(B,null,I(c.justInArticles,e=>(i(),s(A,{article:e},null,8,[`article`]))),256))])])):o(``,!0)]),_(`div`,tp,[_(`div`,np,[f(D,{location:`WEBSITE_SIDE`})])])])])])])):(i(),m(`div`,rp,[...t[5]||(t[5]=[a(`<section><div class="boxed"><div class="centered-1"><div class="mb-4 flex flex-col flex-wrap gap-4 text-sm"><div class="isLoading w-full h-16"></div><div class="isLoading w-2/3 h-16"></div></div><div class="mb-4 flex flex-col flex-wrap gap-4 text-sm"><div class="isLoading w-full h-8"></div><div class="isLoading w-full h-8"></div></div></div><div class="centered-2 mb-4"><div class="isLoading aspect-[16/9]"></div></div></div></section>`,1)])]))}var ap=Object.assign(X(wf,[[`render`,ip]]),{__name:`PagesDynamicLiveBlog`}),op={key:0,class:`mb-8 md:mb-16`},sp={class:`flex flex-row justify-between items-center mb-6`}
71,cp={class:`flex flex-row gap-4 text-tiny md:text-base`},lp=Object.assign(h({__name:`ProgramRow`,props:{row:{},data:{}},setup(e){let t=P([]),n=e,r=z(()=>n.row.navigation.asJsReadonlyArrayView());return C(async()=>{t.value=n.data}),(n,a)=>{let c=Zt,l=q,u=wu,d=R,p=ne;return g(t).length?(i(),m(`div`,op,[_(`div`,sp,[f(c,{class:`mb-0! md:text-xl!`},{default:E(()=>[N(S(e.row.title),1)]),_:1}),_(`div`,cp,[(i(!0),m(B,null,I(g(r),e=>(i(),s(l,{to:e.slug},{default:E(()=>[N(S(e.body),1)]),_:2},1032,[`to`]))),256))])]),f(p,{class:``,modules:[g(F),g(D),g(te)],"slides-per-view":1.8,"round-lengths":!0,breakpoints:{640:{slidesPerView:2.4,roundLengths:!0},768:{slidesPerView:3.4,roundLengths:!0},1024:{slidesPerView:4.3,roundLengths:!0}},"space-between":16,navigation:{enabled:!0}},{default:E(()=>[(i(!0),m(B,null,I(g(t),(e,t)=>(i(),s(d,null,{default:E(()=>[f(u,{program:e,img:t%5==0},null,8,[`program`,`img`])]),_:2},1024))),256))]),_:1},8,[`modules`])])):o(``,!0)}}}),{__name:`KijkEnLuisterProgramRow`}),up={key:0,class:`mb-8 md:mb-16`},dp={class:`flex flex-row justify-between items-center gap-2 mb-4 md:mb-6`},fp={class:`flex flex-row items-center gap-2`},pp={class:`size-4 md:size-6 grid place-items-center`},mp={class:`flex flex-row gap-4 text-tiny md:text-base`},hp=Object.assign(h({__name:`Episodes`,props:{row:{},broadcasts:{}},setup(e){let t=e,n=z(()=>t.row.navigation.asJsReadonlyArrayView()),r=z(()=>t.row.broadcastContentType.name===ze.EpisodeOrFragment.name),a=z(()=>r.value?kt:Ct);return(t,c)=>{let l=Zt,u=q,d=Ru,p=R,h=ne;return e.broadcasts.length?(i(),m(`div`,up,[_(`div`,dp,[_(`div`,fp,[_(`div`,pp,[(i(),s(re(g(a)),{class:x([`size-4!`,{"md:size-4!":!g(r),"md:size-6!":g(r)}])},null,8,[`class`]))]),f(l,{class:`mb-0! text-lg! md:text-xl!`},{default:E(()=>[N(S(e.row.title),1)]),_:1})]),_(`div`,mp,[(i(!0),m(B,null,I(g(n),e=>(i(),s(u,{to:e.slug},{default:E(()=>[N(S(e.body),1)]),_:2},1032,[`to`]))),256))])]),f(h,{class:``,modules:[g(F),g(D),g(te)],"slides-per-view":1.4,breakpoints:{640:{slidesPerView:2.4},768:{slidesPerView:3.4},1024:{slidesPerView:4.3}},"space-between":12,navigation:{enabled:!0}},{default:E(()=>[(i(!0),m(B,null,I(e.broadcasts,e=>(i(),s(p,null,{default:E(()=>[f(d,{item:e},null,8,[`item`])]),_:2},1024))),256))]),_:1},8,[`modules`])])):o(``,!0)}}}),{__name:`KijkEnLuisterBroadcastRowEpisodes`}),gp={class:`rounded-lg lg:rounded-2xl overflow-hidden relative aspect-[35/41] lg:aspect-[3/2]`},_p={class:`absolute bottom-0 left-0 m-4 lg:m-8 flex flex-col gap-4 lg:max-w-4/7`},vp={key:0,class:`flex w-1/2 aspect-[188/109]`},yp=[`innerHTML`],bp={class:`text-text-invert-2 opacity-80 text-tiny md:text-base`},xp=Object.assign(h({__name:`NewTvBig`,props:{episode:{}},setup(e){let{showRelativeWithReadableOther:t}=Ut.newMethods,n=e=>`${e[0].toUpperCase()}${e.slice(1)}`;return(r,a)=>{var c;let l=U,u=Nu,d=Zt,p=q;return i(),s(p,{to:(c=e.episode.slug)==null?`#`:c},{default:E(()=>{var r,c;return[_(`div`,gp,[f(l,{class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1]`,src:(r=e.episode.broadcast.cover)==null?`#`:r},null,8,[`src`]),a[0]||(a[0]=_(`div`,{class:`absolute inset-[-1px] transition-all bg-linear-(--tv-big) group-hover:opacity-50`},null,-1)),f(u,{class:`absolute top-4 right-4 lg:top-8 lg:right-8`,size:`lg`,duration:e.episode.broadcast.durationFormatted},null,8,[`duration`]),_(`div`,_p,[(c=e.episode.program)!=null&&c.logo&&e.episode.program.logo.imageUrl?(i(),m(`figure`,vp,[f(l,{src:e.episode.program.logo.imageUrl,class:`object-contain`},null,8,[`src`])])):(i(),s(d,{key:1,class:`text-text-invert text-xl! lg:text-3.5xl! mb-0!`},{default:E(()=>[N(S(e.episode.title),1)]),_:1})),e.episode.summary?(i(),m(`p`,{key:2,innerHTML:e.episode.summary,class:`text-text-invert line-clamp-3 text-tiny md:text-base`},null,8,yp)):o(``,!0),_(`p`,bp,S(e.episode.program&&`${e.episode.program.title} ‧ `)+S(n(g(t)(e.episode.publishedOn))),1)])])]}),_:1},8,[`to`])}}}),{__name:`CardNewTvBig`}),Sp={key:0,class:`swiperContainer above mb-8 md:mb-12`},Cp=Object.assign(h({__name:`Highlights`,props:{broadcasts:{}},setup(e){return(t,n)=>{let r=xp,a=R,c=ne;return e.broadcasts.length?(i(),m(`div`,Sp,[f(c,{modules:[g(F),g(D),g(te)],"slides-per-view":1.1,breakpoints:{640:{slidesPerView:1.8}},"space-between":16,navigation:{enabled:!0}},{default:E(()=>[(i(!0),m(B,null,I(e.broadcasts,e=>(i(),s(a,null,{default:E(()=>[f(r,{episode:e},null,8,[`episode`])]),_:2},1024))),256))]),_:1},8,[`modules`])])):o(``,!0)}}}),{__name:`KijkEnLuisterBroadcastRowHighlights`}),wp={class:`absolute w-full bottom-0 p-2 lg:p-4 bg-gradient-to-t from-black`},Tp={class:`flex flex-col h-full justify-between`},Ep={class:`text-xxs sm:text-tiny font-heading font-bold lg:text-base text-text-invert line-clamp-5`},Dp=Object.assign(h({__name:`Short`,props:{video:{}},setup(e){let t=V(),n=e=>{t.push({path:`/shorts/${e.id}`})};return(t,r)=>{let a=U,c=Nu,l=q;return i(),s(l,{onClick:r[0]||(r[0]=T(t=>n(e.video),[`prevent`])),type:e.video.type.name,class:`block aspect-[2/3] relative rounded-lg lg:rou
71nded-2xl overflow-hidden bg-black cursor-pointer`},{default:E(()=>{var t,n,r;return[e.video.broadcast.cover?(i(),s(a,{key:0,class:`w-full h-full object-cover transition-transform duration-[2s] group-hover:scale-[1.1] lazyLoad`,alt:(t=(n=e.video.broadcast.description)==null?(r=e.video)==null||(r=r.broadcast)==null?void 0:r.name:n)==null?``:t,src:e.video.broadcast.cover},null,8,[`alt`,`src`])):o(``,!0),f(c,{class:`absolute left-2 top-2 lg:left-4 lg:top-4`,size:`xs`,duration:e.video.broadcast.durationFormatted},null,8,[`duration`]),_(`div`,wp,[_(`div`,Tp,[_(`h3`,Ep,S(e.video.title),1)])])]}),_:1},8,[`type`])}}}),{__name:`CardShort`}),Op={key:0,class:`mb-8 md:mb-16`},kp={class:`flex flex-row justify-start items-center gap-2 mb-6`},Ap={class:`w-6 h-6`},jp=Object.assign(h({__name:`Shorts`,props:{row:{},broadcasts:{}},setup(e){let t=e,n=z(()=>t.row.navigation.asJsReadonlyArrayView());return(t,r)=>{let a=Ot,c=Zt,l=q,u=Dp,d=R,p=ne;return e.broadcasts.length?(i(),m(`div`,Op,[_(`div`,kp,[_(`div`,Ap,[f(a)]),f(c,{class:`mb-0! md:text-xl!`},{default:E(()=>[...r[0]||(r[0]=[N(` Stories `,-1)])]),_:1}),g(n).length?(i(),s(l,{key:0,to:g(n)[0].slug,class:`ml-auto text-tiny md:text-base`},{default:E(()=>[N(S(g(n)[0].body),1)]),_:1},8,[`to`])):o(``,!0)]),f(p,{class:``,modules:[g(F),g(D),g(te)],"slides-per-view":3.2,"space-between":8,breakpoints:{640:{slidesPerView:3.4},768:{slidesPerView:5.4,spaceBetween:16},1024:{slidesPerView:7,spaceBetween:16}},navigation:{enabled:!0}},{default:E(()=>[(i(!0),m(B,null,I(e.broadcasts,e=>(i(),s(d,null,{default:E(()=>[f(u,{video:e},null,8,[`video`])]),_:2},1024))),256))]),_:1},8,[`modules`])])):o(``,!0)}}}),{__name:`KijkEnLuisterBroadcastRowShorts`}),Mp=Object.assign(h({__name:`BroadcastRow`,props:{row:{},data:{}},setup(e){let t=P([]),n=e;C(async()=>{t.value=n.data});let r=e=>e.type.name===Oe.NewEpisodes.name?hp:e.type.name===Oe.Highlights.name?Cp:e.type.name===Oe.VerticalVideos.name?jp:f(Jt,null,{default:()=>[N(`Er is geen ondersteuning voor dit type rij.`)]});return(n,a)=>(i(),s(re(r(e.row)),{row:e.row,broadcasts:g(t)},null,8,[`row`,`broadcasts`]))}}),{__name:`KijkEnLuisterBroadcastRow`}),Np={class:`hidden md:flex flex-col md:flex-row md:gap-10 mb-8 md:mb-16`},Pp={class:`flex flex-col shrink-0`},Fp={class:`flex flex-row justify-start items-center gap-2 mb-4`},Ip={class:`w-4 text-text-brand`},Lp={class:`grow w-full [clip-path:inset(0_-9999px_0_0)]`},Rp={class:`w-full flex flex-col gap-2`},zp=Object.assign(h({__name:`GuidesRow`,props:{row:{},data:{}},setup(e){let{$engine:n}=t(),r=e,a=P(!0),c=P([]),l=z(()=>{let e=r.row.navigation.asJsReadonlyArrayView();return e.length?e[0]:null});return C(async()=>{for(let t of r.data){var e;let r={guide:t},i=Le.Companion.now();r.show=(e=(await n.getGuideSchedule(t,i,i.plusDays(6)))[0])==null?void 0:e.currentShow,c.value.push(r)}a.value=!1}),(t,n)=>{let r=Tt,u=W,d=q,p=Xt,h=R,v=Lt,y=ne;return i(),m(`div`,Np,[_(`div`,Pp,[_(`div`,Fp,[_(`div`,Ip,[f(r)]),f(u,{class:`mb-0! text-lg!`},{default:E(()=>[N(S(e.row.title),1)]),_:1})]),g(l)?(i(),s(d,{key:0,to:g(l).slug},{default:E(()=>[N(S(g(l).body),1)]),_:1},8,[`to`])):o(``,!0)]),_(`div`,Lp,[f(y,{class:`!overflow-visible`,modules:[g(F),g(D),g(te)],"slides-per-view":1.2,"space-between":16,breakpoints:{640:{slidesPerView:2.1},1024:{slidesPerView:2.8}},navigation:{enabled:!0,nextEl:`.swiper-button-next.live`,prevEl:`.swiper-button-prev.live`}},{default:E(()=>[g(a)?(i(!0),m(B,{key:0},I(e.data,e=>(i(),s(h,{class:`h-auto!`},{default:E(()=>[f(p,{class:`h-full g-surface-tone/10 dark:bg-surface-tone-invert/40 flex flex-row gap-3 rounded-2xl p-4`},{default:E(()=>[_(`div`,null,[f(p,{class:`p-4.5 rounded-full`})]),_(`div`,Rp,[f(p,{class:`w-1/3 p-2`}),f(p,{class:`w-full p-2`}),f(p,{class:`w-1/4 p-2`})])]),_:1})]),_:1}))),256)):(i(!0),m(B,{key:1},I(g(c),e=>(i(),m(B,null,[e.guide?(i(),s(h,{key:0,class:`h-auto!`},{default:E(()=>[f(v,{slug:e.guide.slug,livestream:e.guide.livestream,show:e.show},null,8,[`slug`,`livestream`,`show`])]),_:2},1024)):o(``,!0)],64))),256))]),_:1},8,[`modules`])])])}}}),{__name:`KijkEnLuisterGuidesRow`}),Bp={key:0,class:`page boxed flex flex-col gap-4 justify-center items-center`},Vp={class:`w-8 h-8 animate-spin`},Hp={key:1,class:`page boxed`},Up={key:2,class:`page boxed flex flex-col pt-0`},Wp=Object.assign(h({__name:`WatchAndListen`,setup(e){let{$engine:n,$logStore:r}=t(),a=P(!0),c=P(!1),l=P([]),u=P([]),d=P([]),p=e=>e instanceof J?lp:e instanceof ye?Mp:e instanceof Ne?zp:f(Jt,null,{default:()=>[N(`Er is geen ondersteuning voor dit type rij.`)]});return C(async()=>{var e,t,i,o;r.log(`fetching kijk en luister data`,`page structure`);let s;try{s=await n.getKijkLuister(new Ve(new Y(960,1515),new Y(960,1515),new Y(960,1515)),new Ve(new Y(960,1515),new Y(960,1515),new Y(960,1515)))}catch(e){a.value=!1,c.value=!0,r.log(`exception thrown while fetching knl data, does the content item exist?`,`error`,`error`,e);return}if(!s){a.value=!1,c.value=!0,r.log(`no knl data returned, does the content item exist?`,`error`,`error`);return}l.value=(e=(t=s.submenu)==null?void 0:t.asJsReadonlyArrayView())==null?[]:e,u.value=(i=s.rows.asJsReadonlyArrayView())==null?[]:i;for(let e of(o=s.rows.asJsReadonlyArrayView())==null?[]:o){let t=[],r=new Y(960,1515);if(e instanceof J&&(t=await n.getKijkLuisterProgramRow(e,void 0,void 0,new Ve(r,r,r),new xe(r,r,r))),e instanceof ye){let r=e.type.n
71ame===Oe.VerticalVideos.name?new Y(270,405):new Y(1920,1080);t=await n.getKijkLuisterBroadcastRow(e,void 0,void 0,new Ve(r,r,r),new xe(r,r,r))}e instanceof Ne&&(t=(await n.getKijkLuisterGuidesRow(e)).filter(e=>!!e.livestream)),d.value.push({component:p(e),row:e,data:t})}a.value=!1}),(e,t)=>{let n=qt,r=W,u=Dt,p=_c;return i(),m(B,null,[f(n,{title:`Kijk en Luister`}),g(a)?(i(),m(`div`,Bp,[f(r,null,{default:E(()=>[...t[0]||(t[0]=[N(`We halen de nieuwste data voor je op...`,-1)])]),_:1}),_(`div`,Vp,[f(u)])])):g(c)?(i(),m(`div`,Hp,[f(r,null,{default:E(()=>[...t[1]||(t[1]=[N(`Er ging iets mis!`,-1)])]),_:1}),t[2]||(t[2]=_(`p`,null,`Er is geen Kijk en Luister informatie gevonden.`,-1))])):(i(),m(`div`,Up,[g(l)?(i(),s(p,{key:0,nav:g(l)},null,8,[`nav`])):o(``,!0),(i(!0),m(B,null,I(g(d),e=>(i(),s(re(e.component),{row:e.row,data:e.data},null,8,[`row`,`data`]))),256))]))],64)}}}),{__name:`PagesDynamicWatchAndListen`}),Gp={class:`page boxed flex flex-col gap-12.5 lg:gap-8`},Kp={class:`flex flex-col gap-8`},qp={class:`grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-6`},Jp=Object.assign(h({__name:`NewEpisodes`,setup(e){let{$engine:n,$logStore:r}=t(),a=P([]),c=P([]),l=P(!1),u=P(0),d=async()=>{u.value++;let e=(await n.getLatestVideoEpisodes(u.value)).items;a.value.push(...e)};return C(async()=>{var e,t;let i;try{i=await n.getKijkLuister()}catch(e){l.value=!0,r.log(`exception thrown while fetching knl data, does the content item exist?`,`error`,`error`,e);return}if(!i){l.value=!0,r.log(`no knl data returned, does the content item exist?`,`error`,`error`);return}c.value=(e=i==null||(t=i.submenu)==null?void 0:t.asJsReadonlyArrayView())==null?null:e;let o=(await n.getLatestVideoEpisodes()).items;a.value.push(...o)}),(e,t)=>{let n=qt,r=_c,l=W,u=Ru,p=et;return i(),m(B,null,[f(n,{title:`Nieuwe afleveringen`}),_(`div`,Gp,[g(c)?(i(),s(r,{key:0,nav:g(c)},null,8,[`nav`])):o(``,!0),_(`div`,Kp,[f(l,{class:`lg:text-3.5xl!`},{default:E(()=>[...t[0]||(t[0]=[N(`Nieuwe afleveringen`,-1)])]),_:1}),_(`div`,qp,[(i(!0),m(B,null,I(g(a),e=>(i(),s(u,{item:e,"always-vertical":!1},null,8,[`item`]))),256))]),f(p,{class:`grow-0 self-center`,onClick:d},{default:E(()=>[...t[1]||(t[1]=[N(`Laad meer`,-1)])]),_:1})])])],64)}}}),{__name:`PagesDynamicNewEpisodes`}),Yp={class:`page boxed flex flex-col gap-12.5 lg:gap-8`},Xp={class:`flex flex-col gap-8`},Zp={class:`grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-6`},Qp=Object.assign(h({__name:`NewsFragments`,setup(e){let{$engine:n,$logStore:r}=t(),a=P([]),c=P([]),l=P(!1),u=P(0),d=async()=>{u.value++;let e=(await n.getVideoNewsFragment(u.value)).items;a.value.push(...e)};return C(async()=>{var e,t;let i;try{i=await n.getKijkLuister()}catch(e){l.value=!0,r.log(`exception thrown while fetching knl data, does the content item exist?`,`error`,`error`,e);return}if(!i){l.value=!0,r.log(`no knl data returned, does the content item exist?`,`error`,`error`);return}c.value=(e=i==null||(t=i.submenu)==null?void 0:t.asJsReadonlyArrayView())==null?null:e;let o=(await n.getVideoNewsFragment()).items;a.value.push(...o)}),(e,t)=>{let n=qt,r=_c,l=W,u=Ru,p=et;return i(),m(B,null,[f(n,{title:`Nieuwsfragmenten`}),_(`div`,Yp,[g(c)?(i(),s(r,{key:0,nav:g(c)},null,8,[`nav`])):o(``,!0),_(`div`,Xp,[f(l,null,{default:E(()=>[...t[0]||(t[0]=[N(`Nieuws fragmenten`,-1)])]),_:1}),_(`div`,Zp,[(i(!0),m(B,null,I(g(a),e=>(i(),s(u,{item:e,"always-vertical":!1},null,8,[`item`]))),256))]),f(p,{class:`grow-0 self-center`,onClick:d},{default:E(()=>[...t[1]||(t[1]=[N(`Laad meer`,-1)])]),_:1})])])],64)}}}),{__name:`PagesDynamicNewsFragments`}),$p={class:`page boxed flex flex-col pt-0`},em={class:`hidden lg:flex flex-row justify-start items-center gap-2 mb-4 self-start text-text-brand`},tm={class:`w-4`},nm={class:`flex flex-col gap-4 lg:gap-20 lg:pr-15`},rm=[`innerHTML`],im=Object.assign(h({__name:`NowLive`,props:{dynamicProps:{}},setup(e){var n;let{$engine:r}=t(),a=(n=e.dynamicProps.slug)==null||(n=n.split(`/`))==null?void 0:n[2],c=P([]),l=P(`0`),u=$e(Ze).smaller(`lg`);return C(async()=>{let[e,t]=await Promise.all([r.getGuides(He.Tv),r.getGuides(He.Radio)]),n=[...e,...t];for(let e of n){let t={guide:e},n=Le.Companion.now();t.schedule=await r.getGuideSchedule(e,n,n.plusDays(6)),e.livestream&&(t.stream=e.livestream,c.value.push(t))}a&&(await new Promise(e=>setTimeout(e,250)),l.value=String(c.value.findIndex(e=>{let t=e.guide.slug.split(`/`);return t[t.length-1]===a})))}),(e,t)=>{let n=qt,r=Tt,a=Zt,d=Lt,p=ce,h=fu,v=gu;return i(),m(B,null,[f(n,{title:`Nu Live`}),_(`div`,$p,[f(v,{modelValue:g(l),"onUpdate:modelValue":t[0]||(t[0]=e=>oe(l)?l.value=e:null),variant:`pill`,orientation:g(u)?`horizontal`:`vertical`,items:g(c),ui:{trigger:`cursor-pointer`}},{"list-leading":E(()=>[_(`div`,em,[_(`div`,tm,[f(r)]),f(a,{class:`!mb-0 lg:text-1.3xl`},{default:E(()=>[...t[1]||(t[1]=[N(`Nu Live`,-1)])]),_:1})])]),default:E(({item:e})=>{var t;return[f(d,{livestream:e.stream,show:(t=e.schedule[0])==null?void 0:t.currentShow,noninteractive:!0},null,8,[`livestream`,`show`])]}),content:E(({item:e,index:t})=>
71[_(`div`,nm,[e.stream.type.name===g(ve).VIDEO.name?(i(),s(p,{key:0,source:e.stream.streamUrl,autoplay:!0,prerolls:!1,class:`-mx-4 md:mx-0 md:rounded-2xl md:overflow-hidden`},null,8,[`source`])):o(``,!0),e.stream.type.name===g(ve).AUDIO.name?(i(),m(`div`,{key:1,innerHTML:e.stream.streamEmbed},null,8,rm)):o(``,!0),f(h,{guide:e.guide,schedule:e.schedule,livestream:e.stream},null,8,[`guide`,`schedule`,`livestream`])])]),_:1},8,[`modelValue`,`orientation`,`items`])])],64)}}}),{__name:`PagesDynamicNowLive`}),am=h({__name:`[...slug]`,async setup(e){let n,r,a=H(),o=We(),c=vt(),l,u,{$engine:d,$logStore:f}=t(),p=a.path.substring(1);return[n,r]=j(()=>d.getWebsitePage(p).then(e=>{let t=e.constructor.$metadata$.simpleName;switch(o.setPageType(t),f.log(`Detected page type ${t}`,`page structure`),e.constructor!==Re&&(c.query.length||c.page!==0||c.total!==0||c.items.length)&&c.$reset(),e.constructor){case le:l=v(mi);break;case pe:l=v(Wp);break;case be:l=v(Jp);break;case he:l=v(Qp);break;case _e:l=v(im);break;case Re:l=v(Ca);break;case je:l=v(_o);break;case Ee:l=v(us);break;case we:l=v(Ss);break;case Se:l=v(yu);break;case me:l=v(ju);break;case Ce:l=v($u);break;case fe:case De:case Ue:l=v(gd);break;case Ie:l=v(Gs);break;case Be:l=v(gc);break;case Te:l=v(Ld);break;case de:l=v(nf);break;case ue:l=v(Cf);break;case Me:l=v(ap)}u=e}).catch(e=>{console.log(e),l=v(Qt),u={errorName:e.name,errorMessage:e.message}})),await n,r(),(e,t)=>(i(),m(`div`,null,[(i(),s(re(g(l)),{markRaw:``,dynamicProps:g(u)},null,8,[`dynamicProps`]))]))}});export{am 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.