PageSourceSearch

https://www.denhaagdoet.nl/assets/index-B0uD-A4s.js

js denhaagdoet.nl collected 2026-10-07 21:21:43 UTC 3,749 bytes, 2 lines download raw bytes

1import{dC as N,iV as P,j as s,b as p,I as H,aK as R,en as h,iW as _,dd as V,d as C,e as T,a as W,av as $,h as A,ay as q,ip as G,bz as M,B as O,S as y}from"./index-CLautiso.js";import{g as F,r as c,F as x,aB as L,b5 as U}from"./vendor-BFrzAml_.js";import{S as K}from"./Section-DNC4BvhP.js";import{E as j}from"./EmptyState-BJ0yb4bH.js";import{dC as o}from"./app-0SgohmKS.js";import{u as Y}from"./usePermission-CRDVtmdu.js";import"./dayjs-timezone-iana-plugin-B-UFEDqf.js";import"./useAccess-cF6ANmaJ.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a4d637e5-b678-4162-906e-573b29aa9c1b",e._sentryDebugIdIdentifier="sentry-dbid-a4d637e5-b678-4162-906e-573b29aa9c1b")}catch{}var b,v;function J(){if(v)return b;v=1;var e=N();function a(n,r){return e(r,function(l){return n[l]})}return b=a,b}var m,w;function Q(){if(w)return m;w=1;var e=J(),a=P();function n(r){return r==null?[]:e(r,a(r))}return m=n,m}var X=Q();const d=F(X),D=350,E=196,I=({organization:e,id:a,cover_photo:n,name:r,albumPhotos:l})=>{const i=`/o/${e.slug}/albums/${a}`;return s.jsxs("article",{className:o.card,style:{"--album-card-width":D,"--album-card-height":E},children:[s.jsxs(p,{rel:"bookmark",to:i,children:[s.jsx(H,{src:typeof n=="object"&&n&&n.url||e.image,width:D,height:E,className:o.cardImage,alt:r??"",lazy:!0,fit:"crop"}),l!==void 0&&l>0&&s.jsx(R,{value:l})]}),s.jsxs("div",{children:[s.jsx("div",{className:o.albumName,children:s.jsx(p,{to:i,rel:"bookmark",children:r})}),s.jsx("span",{className:o.organizationName,children:e.name})]})]})},Z=[],S=h((e,a)=>e.albums.organizationAlbums[a]??Z,e=>e.albums.albums,(e,a)=>V(a,e)),ee=h(e=>e,e=>_(e,a=>!a.published)),se=h(e=>e,e=>_(e,a=>!!a.published)),ae={en:"Add Album",nl:"Album toevoegen"},re={en:"When created, draft albums will appear here",nl:"Wanneer gecreeerd, verschijnen de ontwerp-albums hier"},ne={en:"Drafts",nl:"Concept"},te={en:"No Draft Albums",nl:"Geen ontwerp-albums"},le={en:"No Published Albums",nl:"Geen gepubliceerde albums"},ie={en:"Published",nl:"Gepubliceerd"},ue={en:"When published, albums will appear here",nl:"Wanneer gepubliceerd verschijnen de albums hier"},oe={en:"Photos",nl:"Foto's"},de={create:ae,draftAlbumsAppearHere:re,drafts:ne,noDraftAlbums:te,noPublishedAlbums:le,published:ie,publishedAlbumsAppearHere:ue,title:oe},ye=()=>{if(!C().organizationSlug)throw new Error("organizationSlug param not found in route");const a=T(),n=W(de),r=$(),l=A(t=>se(S(t,r.id))),i=A(t=>ee(S(t,r.id))),f=Y({resource:q.albums,action:"update",organizationId:r.id,organization:r});c.useEffect(()=>{a(G({organization_id:r.id})).catch(()=>null)},[a,r.id]);const g=()=>{const t=d(l);return t.length===0?s.jsx(j,{src:"butterfly",header:n("noPublishedAlbums"),secondary:n("publishedAlbumsAppearHere")}):s.jsx(y,{cols:{base:1,sm:2,md:3},children:t.map(u=>c.createElement(I,{...u,key:u.id,organization:r}))})},k=()=>{const t=d(i);return t.length===0?s.jsx(j,{src:"butterfly",header:n("noDraftAlbums"),secondary:n("draftAlbumsAppearHere")}):s.jsx(y,{cols:{base:1,sm:2,md:3},children:t.map(u=>c.createElement(I,{...u,key:u.id,organization:r}))})},z=d(l),B=d(i);return s.jsx(K,{heading:n("title"),isH2:!0,buttons:f?s.jsx(O,{component:p,to:`/o/${r.slug}/albums/new`,leftSection:s.jsx(x,{icon:U}),children:n("create")}):void 0,children:f?s.jsxs(M,{tabs:[`${n("published")} (${z.length})`,{text:s.jsxs("span",{children:[s.jsx(x,{icon:L,className:"margin-right-5"}),`${n("drafts")} (${B.length})`]})}],children:[s.jsx("div",{children:g()}),s.jsx("div",{children:k()})]}):s.jsx("div",{children:g()})})};export{ye as default};
2//# sourceMappingURL=index-B0uD-A4s.js.map

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.