PageSourceSearch

https://medischescholing.nl/_nuxt/CpMjHJmU.js

js medischescholing.nl collected 2026-10-02 14:33:03 UTC 2,352 bytes, 1 lines download raw bytes

1import{af as N,J as O,r as i,n as l,aV as Y,dm as D,dn as G,dp as B,dq as F,dr as U,ds as q,dt as x,du as z,s as H,Y as J}from"./8yE1kzwR.js";import{u as V}from"./BBuY3x1I.js";const d={id:"",title:"",subtitle:"",url:"",is_published:0,is_sponsored:0,theme_name:"",end:new Date,position:"",style_effect:"",style_size:"",theme_id:"",image_original:"",image_cropped:"",content:"",media:[]},k=N("articles",()=>{const{$api:n}=O();function r(e){const{currentCompanyId:t}=H(J());return e||t.value}const u=i([]),o=i([]),m=i([]),A=i([]),y=i([]),c=i({...d}),f=l(()=>u.value),L=l(()=>c.value),E=l(()=>o.value),T=l(()=>{const e=Y(o.value),t=V(e,"theme_name");return t.sort((s,a)=>s.theme_position-a.theme_position),t.map(s=>s.theme_name)}),C=l(()=>e=>o.value.filter(t=>t.theme_name===e));async function v(e){const t=D.replace("{company_id}",e),{data:s}=await n.get(t);return u.value=s.articles,s}async function P(e,t){const s=G.replace("{company_id}",r(t));return await n.post(s,e)}async function I(e){const{data:t,article_id:s,companyId:a}=e,p=B.replace("{company_id}",r(a||t.company_id)).replace("{article_id}",s);return await n.put(p,t)}async function g(e,t){const s=F.replace("{company_id}",r(t)).replace("{article_id}",e);return await n.delete(s)}async function h(e,t){const s=U.replace("{company_id}",r(t)).replace("{article_id}",e),{data:a}=await n.get(s);return c.value={...c.value,...a},a}async function S(e){const t=q.replace("{company_id}",e),{data:s}=await n.get(t);return o.value=s.articles,s}async function R({companyId:e,articleId:t,mediaId:s}){const a=x.replace("{company_id}",e).replace("{article_id}",t).replace("{media_id}",s),p=await n.delete(a);return c.value.media=c.value.media.filter(_=>_.id!==s&&_.parent_id!==s),p}async function w(e,t){const s=z.replace("{company_id}",r(t)).replace("{article_id}",e),{data:a}=await n.put(s);return a}function M(){c.value={...d}}function b(e){c.value={...c.value,...e}}return{articlesList:u,publicArticlesList:o,effectsList:m,positionsList:A,themesList:y,articleFormStates:c,getArticlesList:f,getArticleState:L,getPublicArticleList:E,getPublicArticleThemes:T,getPublicArticlesByTheme:C,setArticlesList:v,createArticle:P,updateArticle:I,deleteArticle:g,setArticleState:h,setPublicArticlesList:S,deleteArticleMedia:R,togglePublishArticle:w,resetArticlesFormStates:M,setArticleFormStates:b}});export{k as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.