PageSourceSearch

https://www.denhaagdoet.nl/assets/index-4vrp8pGC.js

js denhaagdoet.nl collected 2026-10-07 21:20:46 UTC 7,019 bytes, 2 lines download raw bytes

1import{e as M,a as k,c as C,g as y,y as E,z as A,j as r,B as g,b as j,P as I,A as v,C as N,D as _,E as $,H as B,d as F,h as R,p as q,r as W,J as U,K as G,M as K,N as x,O as b,Q as L,R as V,U as Y}from"./index-CLautiso.js";import{F as m,a$ as H,b0 as J,a9 as Q,b1 as X,b2 as Z,r as h}from"./vendor-BFrzAml_.js";import{f as S,O as ee,S as P}from"./OrganizationPage-DgT5JRZI.js";import{S as te,L as oe}from"./StatusToolbar-hoCc1mJp.js";import{u as z}from"./useWhitelabelLanguage-DoBAgXaF.js";import{l as ae}from"./loadOrganizationPageSections--QKRK6Xv.js";import{u as re}from"./useAccess-cF6ANmaJ.js";import{u as se,P as ne}from"./usePreload-I8hLvnFb.js";import"./app-0SgohmKS.js";import"./dayjs-timezone-iana-plugin-B-UFEDqf.js";import"./page-sections-BE6g0x0m.js";import"./Section-DNC4BvhP.js";import"./CallToAction-DgF4D6_u.js";import"./LazyFAIcon-TnpHdMYw.js";import"./RichText-s_0zfP9t.js";import"./collapseNbsp-1D4QOpzu.js";import"./BlogPostAuthor-CqrV3hu1.js";import"./DynamicBlogSection-C371u-h8.js";import"./EmptyState-BJ0yb4bH.js";import"./index-B0a7vLjU.js";import"./useBlogSegments-B7_VyOXk.js";import"./DeedCard-CYc3ZNqd.js";import"./postcode-groups-E8v98LYQ.js";import"./getDeedCommitment-BVHAxarU.js";import"./Badge-B6UD8mPn.js";import"./usePostcodeGroups-DzdJIKq7.js";import"./CustomForm-D3hBBZfk.js";import"./nl2br-MOlb471b.js";import"./RadioBoxGroup-B-7Luc5H.js";import"./Radio-C1TrTjeo.js";import"./index-mAQe6DTd.js";import"./NoBadgeReCAPTCHA-CNPC_bvq.js";import"./recaptcha-wrapper-DIUPyvoC.js";import"./S3UploadButton-BgksjDV8.js";import"./FileTable-CbvzZt1q.js";import"./index-DXVuZe7f.js";import"./Table-B6G7dejx.js";import"./use-local-storage-Z1JqULrU.js";import"./Flex-Dje6wnRj.js";import"./Pagination-3XQMrmwn.js";import"./use-timeout-DCBauWyK.js";import"./useCopyToClipboard-DmpIaiJP.js";import"./escapeHtml-CrQbv9kd.js";import"./PageSections-B7Tk00JP.js";import"./useFreshWhitelabel-BkaiAZsk.js";import"./placeholders-BjTw1A31.js";import"./useClusteredMap-C8H17jm8.js";import"./searchDeeds-BYH9gZZk.js";import"./deedFormats-BiP1C0Dn.js";import"./useLatestRef-DjKyzWrF.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]="ffc90533-83a6-46d1-a11e-d9886aa92296",e._sentryDebugIdIdentifier="sentry-dbid-ffc90533-83a6-46d1-a11e-d9886aa92296")}catch{}const ie={en:"Are you sure you want to delete this blog post? This action is irreversible",nl:"Weet je zeker dat je deze blogpost wilt verwijderen? Deze actie is onomkeerbaar"},le={en:"Edit your post and change the visibility to 'public' in order to share the post",nl:"Bewerk je blogpost en verander de zichtbaarheid in 'openbaar' om de blogpost te delen"},ce={en:"Draft",nl:"Concept"},pe={en:"Duplicate",nl:"Dupliceren"},de={en:"Edit",nl:"Bewerk"},ue={en:"Print",nl:"Afdrukken"},ge={en:"This post will be shown on your blogs overview page and can be reached with the current url",nl:"Deze post wordt weergegeven op de algemene blog pagina en is te bereiken met via de huidige url"},me={en:"Published",nl:"Gepubliceerd"},fe={en:"Successfully deleted!",nl:"Met succes verwijderd!"},be={areYouSureDelete:ie,delete:{en:"Delete",nl:"Verwijderen"},draftModeMessage:le,draftModeTitle:ce,duplicate:pe,edit:de,print:ue,publishedModeMessage:ge,publishedModeTitle:me,successMessageDelete:fe},he=({meta:e,slug:a,published:s})=>{const n=M(),t=k(be),c=z({locale:t.locale,fallbackToUnsupportedLanguages:!0}).translate(e.title),p=C(),l=y(),i=E(),d=A(),u=async()=>{await n($({organization_id:l.whitelabel.organization_id,slug:a})).then(i({message:t("successMessageDelete")}),d()),p("/blog")};return r.jsx(te,{sectionOffset:!1,color:s?"green":"gray",title:t(`${s?"published":"draft"}ModeTitle`),message:t(`${s?"published":"draft"}ModeMessage`),children:r.jsx(oe,{items:[r.jsx(g,{component:j,size:"compact-sm",to:`/admin/${a}`,variant:"subtle",leftSection:r.jsx(m,{icon:H}),children:t("edit")},"edit"),r.jsx(g,{component:j,size:"compact-sm",variant:"subtle",to:`/admin/blog/new?duplicateFrom=${encodeURIComponent(a)}`,leftSection:r.jsx(m,{icon:J}),children:t("duplicate")},"duplicate"),r.jsx(I,{title:t("areYouSureDelete"),onConfirm:u,okButtonProps:{...v("blog-organizer-toolbar-button-delete-confirm"),color:"danger"},children:r.jsx(g,{size:"compact-sm",...v("blog-organizer-toolbar-button-delete"),variant:"subtle",color:"danger",leftSection:r.jsx(m,{icon:Q}),children:t("delete")},"delete")},"delete"),s&&r.jsx(N,{popover:()=>r.jsx(_,{url:`${l.httpsUrl}/${a}`,message:c||""}),children:r.jsx(g,{size:"compact-sm",variant:"subtle",leftSection:r.jsx(m,{icon:X}),children:t.g("share")})},"share"),(typeof window>"u"||window.hasOwnProperty("print"))&&r.jsx(g,{size:"compact-sm",variant:"subtle",leftSection:r.jsx(m,{icon:Z}),onClick:()=>window.print(),children:t("print")})].filter(f=>!!f)})})};function w(e,a,s){if(Array.isArray(e))return e.map(n=>w(n,a,s)).find(n=>n)??null;if(typeof e=="object"&&e)for(const[n,t]of Object.entries(e)){if(n==="src"&&typeof t=="object"&&t&&t.hasOwnProperty(a)&&t[a]&&t[a].value)return t[a].value;if(n==="src"&&typeof t=="object"&&t&&t.hasOwnProperty(s)&&t[s]&&t[s].value)return t[s].value;if(typeof t=="object"&&t!==null){const o=w(t,a,s);if(o)return o}}return null}function T(e){return e.slug?e.slug:e.blogSlug?`blog/${e.blogSlug}`:"index"}function D(e){return e.sections.length>0&&P[e.sections[0].type]===P.blogpost}const we=e=>{const a=y(),s=re();return Y(s,a.whitelabel.organization_id)?r.jsx(he,{...e}):null},ye=()=>{const e=h.useContext(B),a=F(),s=y(),n=z({fallbackToUnsupportedLanguages:!1}),t=T(a),o=R(i=>S(t,i.organizations.pages[s.whitelabel.organization_id])),{loading:c,error:p}=se(O);if(q(o?n.translate(o.meta.title):""),W(()=>{const i=o?n.translate(o.meta.image)||w(o.sections,n.current,n.default):void 0,d=o&&n.translate(o.meta.description),u=o?n.translate(o.meta.title):void 0;return{"og:type":"article",...d&&{"og:description":d},...U(i),"og:title":u}}),p)throw p;const l=o?.meta.transparentNav??!1;return h.useEffect(()=>{o&&e.transparentNav!==l&&h.startTransition(()=>{e.setTransparentNav(l)})},[o,e,l]),c<ne.Loaded&&!o?r.jsx(G,{}):o?r.jsxs(r.Fragment,{children:[D(o)&&r.jsx(we,{meta:o.meta,published:o.published,slug:o.slug}),r.jsx(ee,{page:o})]}):null},O=async({store:e,params:a,initialState:s,site:n,trpcUtils:t})=>{const o=n.whitelabel.organization_id,c=e.getState(),p=a.slug||a.blogSlug||"index",l=T(a);if(!K(p))throw new x(b.Page);let i=S(l,c.organizations.pages[o]);const d=c.organizations.relatedPages[`${o}/${l}`];if(!i||!d){try{i=await e.dispatch(L({organization_id:o,slug:l}))}catch(f){throw V(f,{entity:b.Page})}if(!i)throw new x(b.Page)}s&&(s.pageContext={...s.pageContext,setTransparentNav:()=>{},transparentNav:!!i.meta.transparentNav});const u=[ae(i,{store:e,trpcUtils:t},o)];D(i)&&u.push(t.me.access.fetch().catch(()=>t.me.access.reset())),await Promise.all(u)};ye.preload=O;export{ye as default};
2//# sourceMappingURL=index-4vrp8pGC.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.