1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,667585,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let n=e.r(132061);function r({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},652157,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(843476),r=e.r(174080),s=e.r(563599),l=e.r(309885),i=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let a=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;a.push(...e)}}if(0===a.length)return null;let o=(0,i.getDeploymentIdQueryOrEmptyString)();return(0,n.jsx)(n.Fragment,{children:a.map(e=>{let a=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${o}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:a,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(a,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return d}});let n=e.r(843476),r=e.r(271645),s=e.r(667585),l=e.r(652157);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let t={...o,...e},a=(0,r.lazy)(()=>t.loader().then(i)),d=t.loading;function c(e){let i=d?(0,n.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?r.Suspense:r.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(a,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(a,{...e})});return(0,n.jsx)(c,{...o?{fallback:i}:{},children:u})}return c.displayName="LoadableComponent",c}},770703,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return r}});let n=e.r(555682)._(e.r(869093));function r(e,t){let a={};"function"==typeof e&&(a.loader=e);let r={...a,...t};return(0,n.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},412758,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(770703),r=e.i(375679),s=e.i(618071);let l=(0,n.default)(()=>e.A(322147),{loadableGenerated:{modules:[896710]},ssr:!1}),i={en:{close:"Close",closeDialog:"Close dialog"},nl:{close:"Sluiten",closeDialog:"Dialoog sluiten"}};function o({open:e,onClose:n,locale:o=s.DEFAULT_LOCALE,trigger:d,prefill:c}){let u=i[o],m=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),(0,a.useEffect)(()=>{if(e)return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t);function t(e){"Escape"===e.key&&n()}},[e,n]),(0,a.useEffect)(()=>{e&&(0,r.track)("booking_popup_opened",{trigger:d,locale:o,path:window.location.pathname})},[e,d,o]),(0,a.useEffect)(()=>{if(e)return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t);function t(e){if("Tab"!==e.key||!m.current)return;let t=m.current.querySelectorAll('button, a[href], iframe, [tabindex]:not([tabindex="-1"])');if(0===t.length)return;let a=t[0],n=t[t.length-1],r=document.activeElement;e.shiftKey&&r===a?(e.preventDefault(),n.focus()):e.shiftKey||r!==n||(e.preventDefault(),a.focus())}},[e]),e)?(0,t.jsxs)("div",{className:"fixed inset-0 h-[100dvh] z-[100] flex items-start md:items-center justify-center px-4 py-6 md:py-8",role:"dialog","aria-modal":"true","aria-label":"nl"===o?"Kennismaking inplannen":"Book a get-to-know call",children:[(0,t.jsx)("button",{type:"button","aria-label":u.closeDialog,className:"absolute inset-0 bg-black/60 backdrop-blur-sm cursor-default",onClick:n}),(0,t.jsxs)("div",{ref:m,className:"relative bg-surface rounded-lg shadow-lg w-full max-w-[640px] lg:max-w-[1080px] max-h-full overflow-y-auto overflow-x-hidden",children:[(0,t.jsx)("button",{type:"button","aria-label":u.close,onClick:n,className:"absolute top-3 right-3 z-10 w-9 h-9 rounded-full bg-gray-100 hover:bg-gray-200 text-gray-600 hover:text-dark flex items-center justify-center text-xl leading-none transition-colors",children:"Ã"}),(0,t.jsx)(l,{locale:o,variant:"popup",trigger:d,prefill:c})]})]}):null}e.s(["default",()=>o])},965254,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(618566),r=e.i(412758),s=e.i(618071),l=e.i(375679);let i={en:{defaultTitle:"Let's do a 1-on-1 discovery call",defaultSubtitle:"What we'll discuss in this call:",bullets:["See if there's a good fit between us","Your current situation & desired outcome","Discuss together how I can best help you"],nameLabel:"Name",emailLabel:"Email",helpTypeLabel:"How can I help you?",helpOptions:["Coaching / Consultancy","Speaking / Training","Interim Growth position","Other"],messageLabel:"Please, elaborate on your request:",messagePlaceholder:"Type your message here...",submitLabel:"Send my message to Ward  âº",submittingLabel:"Sending...",successTitle:"Message sent!",successBody:"Thanks for reaching out. I'll get back to you within 48 hours (except weekends).",successAgain:"Send another message",successBookCta:"Pick a time in my calendar âº",successBookHint:"Rather not wait 48 hours? Book our get-to-know call right now â I've already filled in your details.",validation:{nameRequired:"Please enter your name.",emailRequired:"Please enter your email.",emailInvalid:"Please enter a valid email address.",messageRequired:"Please add a short message.",generic:"Something went wrong. Please try again."}},nl:{defaultTitle:"Laten we een 1-op-1 discovery call doen",defaultSubtitle:"Wat we in deze call bespreken:",bullets:["Kijken of er een goede match is tussen ons","Jouw huidige situatie & gewenste resultaat","Samen bepalen hoe ik je het best kan helpen"],nameLabel:"Naam",emailLabel:"E-mail",helpTypeLabel:"Hoe kan ik je helpen?",helpOptions:["Coaching / Consultancy","Spreken / Training","Interim Growth-positie","Anders"],messageLabel:"Licht jouw verzoek toe:",messagePlaceholder:"Schrijf hier je bericht...",submitLabel:"Stuur mijn ber
1icht naar Ward  âº",submittingLabel:"Versturen...",successTitle:"Bericht verstuurd!",successBody:"Bedankt voor je bericht. Ik reageer binnen 48 uur (behalve in het weekend).",successAgain:"Nog een bericht sturen",successBookCta:"Kies een moment in mijn agenda âº",successBookHint:"Liever niet 48 uur wachten? Plan onze kennismaking nu direct in â je gegevens staan er al in.",validation:{nameRequired:"Vul je naam in.",emailRequired:"Vul je e-mailadres in.",emailInvalid:"Vul een geldig e-mailadres in.",messageRequired:"Schrijf een kort bericht.",generic:"Er ging iets mis. Probeer het opnieuw."}}},o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,d=["coaching-consultancy","speaking-training","interim-growth","other"];function c({locale:e,title:c,subtitle:u,compact:m=!1,className:g="",header:x,submitLabel:b,offerBooking:p=!0}){let f=(0,n.usePathname)()||"/",h=e??(0,s.getCurrentLocale)(f),y=i[h],[j,v]=(0,a.useState)(""),[w,k]=(0,a.useState)(""),[N,C]=(0,a.useState)(y.helpOptions[0]),[E,S]=(0,a.useState)(""),[_,T]=(0,a.useState)("idle"),[L,P]=(0,a.useState)(""),[O,M]=(0,a.useState)(!1),I=c??y.defaultTitle,R=u??y.defaultSubtitle,D={name:j.trim(),email:w.trim(),message:`${N} â ${E.trim()}`.slice(0,600)};function B(){v(""),k(""),C(y.helpOptions[0]),S(""),T("idle"),P(""),M(!1)}async function A(e){if(e.preventDefault(),"submitting"!==_){if(!j.trim()){T("error"),P(y.validation.nameRequired);return}if(!w.trim()){T("error"),P(y.validation.emailRequired);return}if(!o.test(w.trim())){T("error"),P(y.validation.emailInvalid);return}if(!E.trim()){T("error"),P(y.validation.messageRequired);return}T("submitting"),P("");try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:j.trim(),email:w.trim(),helpType:N,message:E.trim()})});if(!e.ok){let t=y.validation.generic;try{let a=await e.json();a?.error&&(t=a.error)}catch{}throw Error(t)}T("success"),p&&M(!0),(0,l.track)("contact_form_submitted",{help_type:d[y.helpOptions.indexOf(N)]??"other",locale:h,path:f})}catch(e){T("error"),P(e instanceof Error?e.message:y.validation.generic)}}}return"success"===_?(0,t.jsxs)("div",{className:`glow border-2 border-orange rounded-xl p-8 lg:p-10 text-center ${g}`,children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-full bg-orange-tint mx-auto mb-4 flex items-center justify-center text-orange text-3xl",children:"â"}),(0,t.jsx)("h2",{className:"text-3xl lg:text-4xl font-bold mb-3",children:y.successTitle}),(0,t.jsx)("p",{className:"text-base text-gray-600 leading-relaxed mb-6",children:y.successBody}),p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed mb-4 max-w-[420px] mx-auto",children:y.successBookHint}),(0,t.jsx)("button",{type:"button",onClick:()=>M(!0),className:"inline-block rounded-[8px] font-medium px-[30px] py-[18px] text-[17px] cursor-pointer bg-gradient-to-b from-[#ff811b] to-[#f86800] text-white shadow-[0_2px_20px_-10px_rgba(34,34,34,0.13)] hover:shadow-[0_3px_25px_-5px_rgba(34,34,34,0.2)] transition-all duration-300",children:y.successBookCta}),(0,t.jsx)("p",{className:"mt-4",children:(0,t.jsx)("button",{type:"button",onClick:B,className:"text-sm text-gray-500 hover:text-dark underline cursor-pointer",children:y.successAgain})}),(0,t.jsx)(r.default,{open:O,onClose:()=>M(!1),locale:h,trigger:"contact-form",prefill:D})]}):(0,t.jsx)("button",{type:"button",onClick:B,className:"rounded-[8px] font-medium px-[30px] py-[14px] text-[16px] bg-orange-tint text-orange hover:bg-peach-hover transition-colors",children:y.successAgain})]}):(0,t.jsxs)("form",{onSubmit:A,noValidate:!0,className:`glow border-2 border-orange rounded-xl p-8 lg:p-10 ${g}`,children:[x??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-3xl lg:text-4xl font-bold text-center mb-2",children:I}),R&&(0,t.jsx)("p",{className:"text-center text-gray-500 mb-6",children:R}),!m&&(0,t.jsx)("div",{className:"space-y-3 mb-8",children:y.bullets.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"w-6 h-6 rounded-full bg-orange text-white flex items-center justify-center text-xs shrink-0",children:"â"}),(0,t.jsx)("span",{className:"text-base",children:e})]},e))})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"contact-name",className:"block font-bold text-sm mb-1",children:y.nameLabel}),(0,t.jsx)("input",{id:"contact-name",name:"name",type:"text",required:!0,autoComplete:"name",value:j,onChange:e=>v(e.target.value),disabled:"submitting"===_,className:"w-full bg-gray-25 border border-gray-300 rounded px-4 py-3 text-base focus:outline-none focus:border-orange focus:bg-surface transition-colors disabled:opacity-60"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"contact-email",className:"block font-bold text-sm mb-1",children:y.emailLabel}),(0,t.jsx)("input",{id:"contact-email",name:"email",type:"email",required:!0,autoComplete:"email",value:w,onChange:e=>k(e.target.value),disabled:"submitting"===_,className:"w-full bg-gray-25 border border-gray-300 rounded px-4 py-3 text-base focus:outline-none focus:border-orange focus:bg-surface transition-colors disabled:opacity-60"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-bold text-sm mb-2",children:y.helpTypeLabel}),(0,t.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:y.helpOptions.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,t.jsx)("input",{type:"radio",name:"helpType",value:e,checked:N===e,onChange:()=>C(e),disabled:"submitting"===_,className:"w-4 h-4 accent-orange"}),(0,t.jsx)("span",{className:"text-sm",children:e})]},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"contact-message",className:"block font-bold text-sm mb-1",children:y.messageLabel}),(0,t.jsx)("textarea",{id:"contact-message",name:"message",rows:4,required:!0,value:E,onChange:e=>S(e.target.value),placeholder:y.messagePlaceholder,disabled:"submitting"===_,className:"w-full bg-gray-25 border border-gray-300 rounded px-4 py-3 text-base focus:outline-none focus:border-orange focus:bg-surface transition-colors resize-y disabled:opacity-60"})]}),"error"===_&&L&&(0,t.jsx)("p",{role:"alert",className:"text-sm text-red-600 bg-red-50 border border-red-200 rounded-md px-3 py-2",children:L}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===_,className:"w-full inline-block rounded-[8px] font-medium no-underline transition-all duration-300 text-center cursor-pointer bg-gradient-to-b from-[#ff811b] to-[#f86800] text-white shadow-[0_2px_20px_-10px_rgba(34,34,34,0.13)] hover:shadow-[0_3px_25px_-5px_rgba(34,34,34,0.2)] px-3 sm:px-[30px] py-[20px] text-[17px] sm:text-[18px] disabled:opacity-60 disabled:cursor-not-allowed",children:"submitting"===_?y.submittingLabel:b??y.submitLabel})]})]})}e.s(["default",()=>c])},375679,e=>{"use strict";var t=e.i(604570);function a(e,a,n){try{if(!t.default.__loaded)return;t.default.capture(e,a,n)}catch{}}e.s(["track",()=>a])},196738,e=>{"use strict";e.s(["INLINE_EDITOR_ENABLED",0,!1])},852548,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(196738);let r="gww:editMode",s=(0,a.createContext)(null);function l(e){return"object"==typeof e&&null!==e&&"en"in e}function i(e,t){return t.split(".").reduce((e,t)=>
1{if(e&&"object"==typeof e&&t in e)return e[t]},e)}function o({pageId:e,locale:o,initialContent:d,children:c}){let[u,m]=(0,a.useState)(d),[g,x]=(0,a.useState)(!1),[b,p]=(0,a.useState)(!1),[f,h]=(0,a.useState)({}),[y,j]=(0,a.useState)(!1),[v,w]=(0,a.useState)(null),[k,N]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!n.INLINE_EDITOR_ENABLED)return;let e=!1;return fetch("/api/auth/session",{credentials:"same-origin"}).then(t=>{!e&&t.ok&&(x(!0),"1"===window.localStorage.getItem(r)&&p(!0))}).catch(()=>{}),()=>{e=!0}},[]);let C=(0,a.useCallback)(e=>{p(e),e?window.localStorage.setItem(r,"1"):window.localStorage.removeItem(r)},[]),E=(0,a.useCallback)(()=>C(!b),[b,C]),S=(0,a.useCallback)((e,t)=>{h(a=>({...a,[e]:t})),N(!1),w(null)},[]),_=(0,a.useCallback)(e=>{let t=f[e];if(void 0!==t){if("string"==typeof t){let a=i(u,e);return l(a)?{...a,[o]:t}:{en:t}}return t}let a=i(u,e);return l(a)?a:"string"==typeof a?{en:a}:null},[u,f,o]),T=(0,a.useCallback)((e,t)=>{let a=_(e);return a?a[t??o]??a.en??"":""},[_,o]),L=(0,a.useCallback)(()=>{h({}),w(null),N(!1)},[]),P=(0,a.useCallback)(async()=>{if(0!==Object.keys(f).length){j(!0),w(null),N(!1);try{let t=await fetch(`/api/page-content/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({updates:f})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||`Save failed (${t.status})`)}let a=await t.json();m(a.content),h({}),N(!0),setTimeout(()=>N(!1),3e3)}catch(e){w(e instanceof Error?e.message:"Save failed")}finally{j(!1)}}},[f,e]),O=(0,a.useCallback)(async e=>{let t=_(e),a=t?.en;if(!a)throw Error("No English text to translate");let n=await fetch("/api/translate",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({text:a,source:"en",target:"nl"})});if(!n.ok)throw Error((await n.json().catch(()=>({}))).error||`Translate failed (${n.status})`);let r=await n.json();S(e,{...t??{en:""},nl:r.translated})},[_,S]),M=(0,a.useMemo)(()=>({pageId:e,locale:o,content:u,isAdmin:g,editMode:b,dirty:f,hasDirty:Object.keys(f).length>0,saving:y,saveError:v,saveOk:k,setEditMode:C,toggleEditMode:E,setField:S,getValue:T,getRaw:_,save:P,discard:L,translateField:O}),[e,o,u,g,b,f,y,v,k,C,E,S,T,_,P,L,O]);return(0,t.jsx)(s.Provider,{value:M,children:c})}function d(){let e=(0,a.useContext)(s);return e||{pageId:null,locale:"en",content:null,isAdmin:!1,editMode:!1,dirty:{},hasDirty:!1,saving:!1,saveError:null,saveOk:!1,setEditMode:()=>{},toggleEditMode:()=>{},setField:()=>{},getValue:()=>"",getRaw:()=>null,save:async()=>{},discard:()=>{},translateField:async()=>{}}}e.s(["EditModeProvider",()=>o,"useEditMode",()=>d])},167851,e=>{"use strict";var t=e.i(843476),a=e.i(852548),n=e.i(271645),r=e.i(618566);function s({onClose:e}){let r=(0,a.useEditMode)(),s=(0,n.useMemo)(()=>(function(e){if(!e)return[];let t=[];return function e(t,a,n){if(null!=t&&"object"==typeof t){if(Array.isArray(t))return void t.forEach((t,r)=>e(t,`${a}.${r}`,n));if("object"==typeof t&&null!==t&&"en"in t&&"string"==typeof t.en)return void n.push(a.replace(/^\./,""));for(let[r,s]of Object.entries(t))e(s,a?`${a}.${r}`:r,n)}}(e,"",t),t})(r.content),[r.content]),[l,i]=(0,n.useState)("all"),[o,d]=(0,n.useState)(null),[c,u]=(0,n.use
1State)(null),m=s.filter(e=>{if("all"===l)return!0;let t=r.getRaw(e);return!t?.nl||""===t.nl.trim()}),g=async e=>{d(e),u(null);try{await r.translateField(e)}catch(e){u(e instanceof Error?e.message:"Translation failed")}finally{d(null)}};return(0,t.jsx)("div",{className:"fixed inset-0 z-[1100] flex justify-end bg-black/30",children:(0,t.jsxs)("div",{className:"w-full sm:max-w-2xl bg-surface shadow-2xl overflow-y-auto",role:"dialog","aria-label":"Translations editor",children:[(0,t.jsxs)("div",{className:"sticky top-0 z-10 bg-surface border-b border-gray-200 px-6 py-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-bold text-dark",children:"Translations"}),(0,t.jsxs)("p",{className:"text-xs text-gray-500",children:[m.length," of ",s.length," fields"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("select",{value:l,onChange:e=>i(e.target.value),className:"border border-gray-300 rounded px-2 py-1 text-sm",children:[(0,t.jsx)("option",{value:"all",children:"All fields"}),(0,t.jsx)("option",{value:"missing",children:"Missing NL only"})]}),(0,t.jsx)("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-sm rounded-lg border border-gray-300 hover:bg-gray-50",children:"Close"})]})]}),c&&(0,t.jsx)("div",{className:"mx-6 mt-4 p-3 bg-red-50 border border-red-200 rounded text-sm text-red-700",children:c}),(0,t.jsxs)("div",{className:"px-6 py-4 space-y-6",children:[0===m.length&&(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"No translatable fields on this page."}),m.map(e=>{let a=r.getRaw(e),n=a?.en??"",s=a?.nl??"",l=!s||""===s.trim();return(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("code",{className:"text-xs text-gray-500",children:e}),l&&(0,t.jsx)("span",{className:"text-xs px-2 py-0.5 rounded bg-orange/15 text-orange-hover",children:"Missing NL"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"English"}),(0,t.jsx)("textarea",{value:n,onChange:t=>r.setField(e,{en:t.target.value,...a?.nl!==void 0?{nl:a.nl}:{}}),rows:Math.min(8,Math.max(2,n.split("\n").length)),className:"w-full border border-gray-300 rounded px-2 py-1.5 text-sm font-mono"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("label",{className:"block text-xs font-medium text-gray-600",children:"Dutch"}),(0,t.jsx)("button",{type:"button",onClick:()=>g(e),disabled:!n.trim()||o===e,className:"text-xs text-orange hover:underline disabled:opacity-40 disabled:no-underline",children:o===e?"Translatingâ¦":"Translate from EN"})]}),(0,t.jsx)("textarea",{value:s,onChange:t=>r.setField(e,{en:a?.en??"",nl:t.target.value}),rows:Math.min(8,Math.max(2,s.split("\n").length)),placeholder:l?"(missing â click Translate)":"",className:"w-full border border-gray-300 rounded px-2 py-1.5 text-sm font-mono"})]})]})]},e)})]})]})})}function l(){let e=(0,a.useEditMode)(),l=(0,r.useRouter)(),[i,o]=(0,n.useState)(!1);if(!e.isAdmin)return null;if(!e.editMode)return(0,t.jsx)("button",{type:"button",onClick:()=>e.setEditMode(!0),className:"fixed bottom-4 right-4 z-[1000] px-4 py-2 bg-night text-white rounded-full shadow-lg hover:bg-orange transition-colors text-sm font-medium",children:"Edit page"});let d=async()=>{await fetch("/api/auth/logout",{method:"POST"}),e.setEditMode(!1),l.refresh()},c="en"===e.locale?"nl":"en";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"fixed bottom-4 right-4 z-[1000] bg-surface border-2 border-orange rounded-xl shadow-xl p-3 flex items-center gap-2",role:"toolbar","aria-label":"Page editor",children:[(0,t.jsxs)("span",{className:"text-xs text-gray-500 px-2 hidden sm:inline",children:["Editing ",(0,t.jsx)("strong",{children:e.pageId})," in ",(0,t.jsx)("strong",{children:e.locale.toUpperCase()})]}),e.saveOk&&(0,t.jsx)("span",{className:"text-xs text-green-600 px-2",children:"Saved"}),e.saveError&&(0,t.jsx)("span",{className:"text-xs text-red-600 px-2 max-w-[200px] truncate",title:e.s
1aveError,children:e.saveError}),(0,t.jsx)("button",{type:"button",onClick:()=>o(!0),className:"px-3 py-1.5 text-sm rounded-lg border border-gray-300 hover:bg-gray-50",title:`Side-by-side translations (EN â ${c.toUpperCase()})`,children:"Translations"}),(0,t.jsx)("button",{type:"button",onClick:e.discard,disabled:!e.hasDirty||e.saving,className:"px-3 py-1.5 text-sm rounded-lg border border-gray-300 hover:bg-gray-50 disabled:opacity-40",children:"Discard"}),(0,t.jsx)("button",{type:"button",onClick:e.save,disabled:!e.hasDirty||e.saving,className:"px-3 py-1.5 text-sm rounded-lg bg-orange text-white hover:bg-orange-hover disabled:opacity-40",children:e.saving?"Savingâ¦":e.hasDirty?`Save (${Object.keys(e.dirty).length})`:"Save"}),(0,t.jsx)("button",{type:"button",onClick:()=>e.setEditMode(!1),disabled:e.hasDirty,className:"px-3 py-1.5 text-sm rounded-lg border border-gray-300 hover:bg-gray-50 disabled:opacity-40",title:e.hasDirty?"Save or discard first":"Exit edit mode",children:"Exit"}),(0,t.jsx)("button",{type:"button",onClick:d,className:"px-3 py-1.5 text-sm rounded-lg border border-gray-300 text-gray-500 hover:bg-gray-50",children:"Logout"})]}),i&&(0,t.jsx)(s,{onClose:()=>o(!1)})]})}function i({pageId:e,locale:n,content:r,children:s}){return(0,t.jsxs)(a.EditModeProvider,{pageId:e,locale:n,initialContent:r,children:[s,(0,t.jsx)(l,{})]})}e.s(["PageEditor",()=>i],167851)},405997,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(852548);function r({tKey:e,as:r="span",rich:s=!1,className:l,fallback:i}){let o=(0,n.useEditMode)(),d=o.getValue(e)||i||"",c=o.editMode&&o.isAdmin,u=(0,a.useRef)(null);if((0,a.useEffect)(()=>{if(!c||!u.current)return;let e=u.current;(s?e.innerHTML:e.textContent??"")===d||document.activeElement!==e&&(s?e.innerHTML=d:e.textContent=d)},[c,s,d]),!c)return s?(0,t.jsx)(r,{className:l,dangerouslySetInnerHTML:{__html:d}}):(0,t.jsx)(r,{className:l,children:d});return(0,t.jsx)(r,{ref:u,className:[l,"outline-2 outline-dashed outline-orange/40 outline-offset-2 hover:outline-orange focus:outline-orange focus:bg-orange-tint/40 transition-colors rounded-sm cursor-text"].filter(Boolean).join(" "),contentEditable:!0,suppressContentEditableWarning:!0,"data-tkey":e,onBlur:t=>{let a=t.currentTarget,n=s?a.innerHTML:a.textContent??"";n!==d&&o.setField(e,n)},onPaste:e=>{if(s)return;e.preventDefault();let t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},dangerouslySetInnerHTML:{__html:s?d:d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}})}e.s(["T",()=>r])},309885,(e,t,a)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"encodeURIPath",{enumerable:!0,get:function(){return n}})},322147,e=>{e.v(t=>Promise.all(["static/chunks/7303fb6a6bea4ba6.js"].map(t=>e.l(t))).then(()=>t(896710)))}]);
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.