1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4933b01f-1a97-4dc3-a2d9-d1aff9f04281",e._sentryDebugIdIdentifier="sentry-dbid-4933b01f-1a97-4dc3-a2d9-d1aff9f04281")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4585],{22477:(e,t,i)=>{"use strict";i.d(t,{Am:()=>l,JW:()=>c,N:()=>r,X2:()=>o});let n=RegExp("^((?:https?:)?\\/\\/)?((?:www|m)\\.)?((?:youtube(-nocookie)?\\.com|youtu.be))(\\/(?:[\\w\\-]+\\?v=|embed\\/|live\\/|v\\/)?)([\\w\\-]+)(\\S+)?$"),o=e=>{var t;return null==(t=e.match(n))?void 0:t[6]},a=RegExp("^((?:https?:)?\\/\\/)?((?:www|player)\\.)?vimeo\\.com\\/(?:[\\w-]+\\/)*(\\d+)(?:\\/[\\w-]+)?(\\?.*)?$"),l=e=>{var t;return null==(t=e.match(a))?void 0:t[3]},r=[{title:"Youtube",value:"youtube"},{title:"Vimeo",value:"vimeo"}],s={youtube:n,vimeo:a},c=(e,t)=>s[t].test(e)},42634:()=>{},48734:(e,t,i)=>{"use strict";let n;i.r(t),i.d(t,{Studio:()=>n0});var o,a,l,r,s,c=i(95155),d=i(38126),u=i.n(d),p=i(10993),m=i(12115),g=i(81323),h=i(92355),y=i(64509);let v=e=>{let t=(()=>{let e=(0,h.FO)().sanity.dataset;return"acceptance"===e?{color:"white",backgroundColor:"#6B5B00",text:"Acceptance environment (ACC)"}:(e=>"production"===e&&/staging/.test("https://teylersmuseum.nl"))(e)?{color:"white",backgroundColor:"#d62724",text:"Staging environment",warning:"- WARNING: this CMS uses production data. Do NOT edit content here."}:void 0})();return t?(0,c.jsxs)(y.BJ,{space:1,children:[(0,c.jsx)(y.Zp,{padding:3,style:{backgroundColor:t.backgroundColor},children:(0,c.jsxs)(y.EY,{weight:"semibold",style:{color:t.color},children:[t.text," ",t.warning]})}),(0,c.jsx)(c.Fragment,{children:e.renderDefault(e)})]}):(0,c.jsx)(c.Fragment,{children:e.renderDefault(e)})};var b=i(46412),f=i(8944),I=i(93051),k=i(5339),w=i.n(k),j=i(51790),M=i(68262),T=i(64750),O=i(75852),x=i(53844);let C=e=>{let{schemaType:t}=e;return(0,c.jsx)(y.Ex,{mode:"outline",children:t.title})},L=()=>(0,c.jsx)("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"1em",height:"1em",children:(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{d:"M14.8,128.2C52.3,90.7,90.5,52.5,128.2,14.8c37.8,37.8,76,76,114,114c-37.5,37.5-75.6,75.6-113.4,113.3 C91,204.3,52.8,166.1,14.8,128.2z M128.4,215.6c29.1-29.1,58.3-58.3,87-87c-28.9-28.9-58.2-58.1-86.8-86.7 c-28.8,28.8-58.1,58.1-87,87C70.4,157.6,99.5,186.7,128.4,215.6z"}),(0,c.jsx)("path",{d:"M128.9,85.9c14,14.1,28.3,28.3,42.3,42.3c-14.2,14.2-28.6,28.6-42.7,42.7c-13.9-14-28.2-28.3-42.2-42.4 C100.2,114.6,114.5,100.3,128.9,85.9z"})]})});var Q=i(3648),F=i(17854),P=i(20031);let S="2023-10-03";function B(){let e=(0,Q._)(["\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return B=function(){return e},e}function A(){let e=(0,Q._)(["\n padding: 1rem;\n text-align: center;\n"]);return A=function(){return e},e}function _(){let e=(0,Q._)(["\n height: 100%;\n overflow: hidden;\n"]);return _=function(){return e},e}function U(){let e=(0,Q._)(["\n width: 100%;\n height: 100%;\n border: 0;\n"]);return U=function(){return e},e}let D=P.I4.div(B()),q=P.I4.p(A()),V=P.I4.div(_()),E=P.I4.iframe(U()),N=()=>{var e;let t=(0,g.iZK)(),i=(0,g.tH7)({apiVersion:S}),n=(0,g.hA9)(),[o,a]=(0,m.useState)(null);(0,m.useEffect)(()=>{var e,t;let o=null==(e=n.auth)?void 0:e.token;if(o){let e=o.subscribe({next:e=>a(e)});return()=>e.unsubscribe()}a(null!=(t=i.config().token)?t:null)},[null==(e=n.auth)?void 0:e.token,i]);let{value:l,error:r}=(0,F.A)(async()=>{if(!t)return;if(!o)throw Error("Could not authenticate with Sanity. Please sign out of the Studio and sign in again.");let e=await fetch("/api/cms/micrio-embed",{method:"GET",headers:{Authorization:"Bearer ".concat(o)},credentials:"include"}),i=await e.json().catch(()=>({}));if(!e.ok||!i.sessionUrl){var n;throw console.error("[MicrioTool] Micrio embed endpoint failed",e.status,i),Error("Failed to initialise Micrio session (".concat(e.status," ").concat(null!=(n=i.error)?n:"unknown_error",")"))}return i.sessionUrl},[null==t?void 0:t.email,o]);return r?(0,c.jsx)(D,{children:(0,c.jsxs)(q,{children:["Failed to load Micrio: ",r.message]})}):t&&l?(0,c.jsx)(V,{children:(0,c.jsx)(E,{src:l,title:"Micrio dashboard",allow:"clipboard-write"})}):(0,c.jsx)(D,{children:(0,c.jsx)(y.y$,{})})};var G=i(94307),R=i(2884),z=i(81444);let H=(0,h.FO)().settings.supportedLanguages,W={rootSchemaType:x.QI.homePage,pageSchemaTypes:x.Tb,apiVersion:S,titleFieldName:"title",documentInternationalization:{supportedLanguages:Object.keys(H)},baseUrl:"https://teylersmuseum.nl"};({...W,filter:""});let $={...W,filter:"isArchived != true"};var Y=i(3401);let K=async(e,t)=>{let i=(0,z.d)({client:e,config:$}),n=(await i.getAllPageMetadata()).find(e=>e._id===t._id.replace("drafts.",""));if(!n)return"";let o=await Z(e);return"".concat(window.location.origin,"/api/draft?url=").concat(n.path,"&secret=").concat(o)},Z=async e=>{let t="preview.secret",i=await e.fetch("*[_id == $id && dateTime(_updatedAt) > dateTime(now()) - ".concat(1800,"][0].secret"),{id:t});if(!i){let i=Math.random().toString(36).slice(2);try{let n=e.patch(t).set({secret:i});return await e.transaction().createIfNotExists({_id:t,_type:t}).patch(n).commit({tag:t}),i}catch(e){Y.v.error("Failed to create a new preview secret. Ensure the 'client' has a 'token' specified that has 'write' permissions. ".concat(e))}}return i};var J=i(59752);let X=new Set([x.QI.strings,x.QI.layout,x.QI.navigation,x.QI.footer,x.QI.redirect,x.QI.collectionSettings,x.QI.notFoundContent,x.QI.newsletter,x.QI.componentTheme,x.QI.globalObjectEnrichment,x.QI.objectEnrichment,x.QI.tag,x.QI.artObject]);var ee=i(97753);let et=(0,ee.MI)({name:"language",type:"string",readOnly:!0,hidden:!0}),ei=(0,ee.U8)({name:x.QI.audience,title:"Audience",type:"document",fields:[et,(0,ee.MI)({name:"title",type:"string",title:"Title",validation:e=>e.required()})]});var en=i(96241);let eo=e=>{var t,i;let n=(0,h.FO)(),o=null!=(t=n.featureFlags)?t:[],a=null!=(i=n.isolatedFeatureFlags)?i:[];return e.every(e=>{if(Object.values(J.K).includes(e)){let t=e.split("-")[0];return!!t&&!!h.vz.includes(t)&&"teylers"===t&&a.includes(e)}return o.includes(e)})},ea=function(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=e.regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,{name:"hex color",invert:!1});return i?n.required().error("Enter a valid hex color code for ".concat(t," (e.g. #FFFFFF)")):n.error("Enter a valid hex color code for ".concat(t," (e.g. #FFFFFF)"))},el=e=>[(0,ee.MI)({name:"foregroundColor",title:"Foreground Color",description:"Hex color code (e.g. #FFFFFF)",type:"string",validation:t=>ea(t,"Foreground Color",e)}
1),(0,ee.MI)({name:"backgroundColor",title:"Background Color",description:"Hex color code (e.g. #000000)",type:"string",validation:t=>ea(t,"Background Color",e)}),(0,ee.MI)({name:"buttonColor",title:"Button Color",description:"Hex color code for button background (e.g. #007AFF)",type:"string",validation:t=>ea(t,"Button Color",e)}),(0,ee.MI)({name:"buttonTextColor",title:"Button Text Color",description:"Hex color code for button text (e.g. #FFFFFF)",type:"string",validation:t=>ea(t,"Button Text Color",e)})],er=(0,ee.U8)({name:"componentTheme",title:"Component Theme",type:"document",icon:en.IOt,fields:[(0,ee.MI)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"lightMode",title:"Light Mode",type:"object",fields:el(!0),options:{collapsible:!0,collapsed:!1}}),...eo([J.T.DisableDarkMode])?[]:[(0,ee.MI)({name:"darkMode",title:"Dark Mode",type:"object",fields:el(!1),options:{collapsible:!0,collapsed:!0}})]],preview:{select:{title:"name",lightForeground:"lightMode.foregroundColor",lightBackgroun
1d:"lightMode.backgroundColor"},prepare:e=>{let{title:t,lightForeground:i,lightBackground:n}=e;return{title:t,subtitle:"Light - FG: ".concat(i," | BG: ").concat(n)}}}}),es=(0,ee.U8)({name:x.QI.eventCategory,title:"Event category",type:"document",fields:[et,(0,ee.MI)({name:"title",type:"string",title:"Title",validation:e=>e.required()})]}),ec=(0,ee.U8)({name:x.QI.location,title:"Location",type:"document",fields:[et,(0,ee.MI)({name:"title",type:"string",title:"Title",validation:e=>e.required()})]}),ed=(0,ee.U8)({name:x.QI.locationAddition,title:"Location addition",type:"document",fields:[et,(0,ee.MI)({name:"title",type:"string",title:"Title",validation:e=>e.required()})]}),eu=(0,ee.U8)({name:x.QI.mpImage,title:"Image with media",type:"document",fields:[{name:"image",title:"Image",type:"image",validation:e=>e.required()},(0,ee.MI)({name:"alt",title:"Alt text",type:x.QI.localeString,validation:e=>e.required()}),(0,ee.MI)({name:"title",title:"Title",description:"For example used as the image caption. Use *bold* for bold and _italic_ for italic text.",type:x.QI.localeString}),(0,ee.MI)({name:"description",title:"Description",description:"For example used as the image source. Use *bold* for bold and _italic_ for italic text.",type:x.QI.localeString})],preview:{select:{title:"title.nl",alt:"alt.nl",subtitle:"description.nl",media:"image"},prepare:e=>{let{title:t,alt:i,subtitle:n,media:o}=e;return{title:t||i,subtitle:n,media:o||en.xfq}}}}),ep=(0,h.FO)().settings.defaultLanguageCode,em=(0,h.FO)().settings.supportedLanguages,eg=(0,ee.U8)({name:x.QI.tag,title:"Tag",type:"document",fields:[(0,ee.MI)({name:"name",type:"string",title:"Name (OLD)",description:"This field will be removed in the future. Please add name and translations below.",validation:e=>e.required()}),...Object.entries(em).map(e=>{let[t,i]=e;return(0,ee.MI)({name:t,title:i.englishLabel,type:"object",fields:[(0,ee.MI)({name:"name",type:"string",title:"Name",validation:e=>e.required()})]})})],preview:{select:{title:"".concat(ep,".name"),fallbackTitle:"name"},prepare:e=>{let{title:t,fallbackTitle:i}=e;return{title:t||i}}}});var eh=i(86144),ey=i.n(eh);let ev=e=>(0,ee.MI)({name:"content",title:"Content",type:"array",of:[(0,ee.dO)({type:"block",styles:[{title:"Normal",value:"normal"},{title:"H2",value:"h2"},{title:"H3",value:"h3"},{title:"H4",value:"h4"},{title:"Body Small",value:"bodySmall"}],marks:{decorators:[{title:"Bold",value:"strong"},{title:"Italic",value:"em"},{title:"Strike-through",value:"strike-through"}],annotations:null!=e?e:[{name:"link",title:"Link",type:x.QI.linkWithoutName,icon:en.qYV},{name:"cta",title:"CTA",type:x.QI.linkWithoutName,icon:en.XFE}]}}),(0,ee.dO)({type:x.QI.readMoreDivider})]}),eb=(0,h.FO)().artObjects,ef=(0,ee.U8)({name:x.QI.artObject,title:"Art object",type:"document",fields:[et,(0,ee.MI)({title:"Title",name:"title",type:"string",validation:e=>e.required()}),(0,ee.MI)({...ev(),title:"Description",name:"description"}),(0,ee.MI)({name:"label",type:"string",title:"Label"}),...eb.fields.filter(e=>"title"!==e&&"description"!==e).map(e=>(0,ee.MI)({type:"string",name:e,title:ey()(e)})),(0,ee.MI)({name:"micrio",title:"Micrio image",type:x.QI.micrio}),(0,ee.MI)({title:"On view",name:"onView",type:"boolean",validation:e=>e.required(),initialValue:!1})],preview:{select:{title:"title"}}}),eI=(e,t)=>{let i=new Set;return Object.values(null!=t?t:e.fields).forEach(t=>{var n,o;(null==(o=t.type.components)||null==(n=o.input)?void 0:n.name)==="ObjectInput"&&i.add(t.type.name),("fields"in t.type&&t.type.fields?eI(e,t.type.fields):[]).forEach(e=>i.add(e))}),i},ek=(e,t)=>"object"!=typeof e||null===e?e:Object.fromEntries(Object.entries(e).filter(e=>{let[i,n]=e;return!t.has(n._type)}).map(e=>{let[i,n]=e;return[i,"object"==typeof n?ek(n,t):n]})),ew=e=>{let t=(0,g.m_H)(),[i,n]=(0,m.useState)(!1),o=!!e.value,a=async()=>{let i=ek(await t(e.schemaType,{}),eI(e.schemaType));i&&Object.keys(i).length>0?e.onChange((0,g.hZp)(i)):n(!0)};return o||i?(0,c.jsxs)(y.so,{direction:"column",align:"stretch",gap:4,children:[e.children?e.children:e.renderDefault(e),(0,c.jsx)(y.$n,{icon:en.USm,mode:"ghost",text:"Remove ".concat(e.schemaType.title),onClick:()=>
1{i?n(!1):e.onChange((0,g.wCX)())}})]}):(0,c.jsx)(y.so,{justify:"flex-start",children:(0,c.jsx)(y.$n,{mode:"ghost",onClick:a,icon:en.REV,text:"Add ".concat(e.schemaType.title)})})};var ej=i(43734),eM=i(79020);function eT(){let e=(0,Q._)(["\n position: relative;\n"]);return eT=function(){return e},e}function eO(){let e=(0,Q._)(["\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 0.5rem;\n background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 255, 255, 0) 100%);\n z-index: 10;\n"]);return eO=function(){return e},e}let ex=(0,h.FO)().settings.defaultLanguageCode,eC='*[_type == "'.concat(x.QI.mpImage,'" && image.asset._ref == $assetRef && !(_id in path("drafts.**"))][0] {\n _id,\n _type,\n "alt": alt[$languageCode],\n "title": title[$languageCode],\n "description": description[$languageCode]\n}'),eL=(0,P.I4)(y.so)(eT()),eQ=(0,P.I4)(y.so)(eO()),eF=(e,t)=>(null==e?void 0:e.asset)?eP(e,t):"Please select an image",eP=async(e,t)=>{var i;let n=t.getClient({apiVersion:S});return null==e||null==(i=e.asset)||!i._ref||!!(await n.fetch('*[_type == "'.concat(x.QI.mpImage,'" && image.asset._ref == "').concat(e.asset._ref,'"]'))).find(e=>!e._id.startsWith("drafts."))||"Please create a image document for this image with an alt text."},eS=(0,ee.U8)({name:x.QI.baseImage,title:"Image",type:"image",options:{hotspot:!0},components:{input:e=>{var t,i,n,o;let a=(0,g.tH7)({apiVersion:S}),l=(()=>{let e=(0,m.useContext)(ej.zA),{routerPanesState:t,groupIndex:i}=(0,j.Dg)();return(0,m.useCallback)((n,o)=>{if(!e||!n||!o)return;if(!t.length)return void e.navigateIntent("edit",{id:n,type:o});let a=[...t];a.splice(i+1,0,[{id:n,params:{type:o}}]);let l=e.resolvePathFromState({panes:a});e.navigateUrl({path:l})},[e,t,i])})(),r=null==(i=e.value)||null==(t=i.asset)?void 0:t._ref,[s,d]=(0,m.useState)();(0,m.useEffect)(()=>{if(!r)return void d(void 0);let e=(0,g.skK)(a,eC,{assetRef:r,languageCode:ex},{apiVersion:S}).subscribe(e=>{d(null!=e?e:void 0)});return()=>e.unsubscribe()},[a,r]);let u=(0,m.useRef)(!1);(0,m.useEffect)(()=>{if(!u.current){u.current=!0;return}e.readOnly||e.onChange(e.value?(0,g.hZp)({...e.value}):(0,g.wCX)())},[s]);let p=async()=>{var t;if(!(null==(t=e.value)?void 0:t.asset))return;let i=await a.create({_id:"drafts.".concat((0,eM.A)()),_type:x.QI.mpImage,image:{asset:e.value.asset}});l(null==i?void 0:i._id,x.QI.mpImage)},h=null!=(o=null!=(n=null==s?void 0:s.title)?n:null==s?void 0:s.alt)?o:null==s?void 0:s.description;return(0,c.jsx)(ew,{...e,children:e.value?(0,c.jsxs)(eL,{direction:"column",justify:"flex-end",gap:3,children:[e.renderDefault(e),(0,c.jsxs)(eQ,{justify:"space-between",align:"flex-end",children:[(0,c.jsx)(y.EY,{size:2,style:{color:h?void 0:"#f77769"},children:null!=h?h:"Missing title"}),s?(0,c.jsx)(y.$n,{mode:"ghost",text:"Edit texts",onClick:()=>{l(null==s?void 0:s._id,x.QI.mpImage)}}):(0,c.jsx)(y.$n,{mode:"ghost",text:"Create texts",onClick:p})]})]}):e.renderDefault(e)})}},validation:e=>e.custom(eP)}),eB={cmsOnlyTitle:"This title is only used as content title in the CMS. It is not shown on the website"},eA=(0,h.FO)().theme.global.colors.theme.colors,e_=(0,ee.MI)({name:"themeColor",title:"Theme color",type:"simplerColor",description:"The theme color of the page may be used by different elements on the page, like the background",options:{colorList:eA.map(e=>({label:e.title,value:e.color}))},initialValue:null==(o=eA[0])?void 0:o.color,hidden:()=>!eA.length}),eU={name:"title",title:"Title",options:{collapsible:!0,collapsed:!1}},eD=function(e){let{required:t=!1,hidden:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[(0,ee.MI)({name:"title",title:"Title",type:"string",description:eq(e),validation:t?e=>e.required():void 0,hidden:i,fieldset:"title"}),..."toggleable"===e?[(0,ee.MI)({name:"showTitle",title:"Show title on website?",type:"boolean",initialValue:!1,fieldset:"title",hidden:i})]:[]]},eq=e=>{switch(e){case"websiteOnly":return"This title will always be visible on the website";case"cmsOnly":return"This title is only visible in the CMS and will not appear on the website";case"toggleable":return"Use the toggle show or hide this title on the website"}},eV=(0,h.FO)().settings.defaultLanguageCode,eE=e=>{let t=(0,g.tH7)({apiVersion:S}),{value:i}=(0,F.A)(()=>{var i;return t.fetch('*[_type == "'.concat(x.QI.mpImage,'" && image.asset._ref == "').concat(null==(i=e.asset)?void 0:i._ref,'"][0] {\n "title": title[$languageCode],\n }.title'),{languageCode:eV})},[e.asset]);return e.renderDefault({...e,title:i,subtitle:"Image",media:e.asset})},eN=(e,t)=>(0,ee.MI)({name:"layoutKey",title:"Layout",type:"string",components:{input:t=>(e=>{var t,i;return((0,m.useEffect)(()=>
1{if(!e.value){var t;e.onChange((0,g.hZp)(null==(t=e.theme.layouts[0])?void 0:t.metadata.key))}},[e]),null==(t=e.theme)?void 0:t.layouts)?(e.schemaType.hidden=e.theme.layouts.length<2,e.schemaType.initialValue=null==(i=e.theme.layouts[0])?void 0:i.metadata.key,e.schemaType.options={...e.schemaType.options,layout:"radio",list:e.theme.layouts.map((e,t)=>({value:e.metadata.key,title:e.metadata.title,default:0===t}))},e.renderDefault(e)):(Y.v.error("Failed to resolve theme layouts radio input. theme.layouts is undefined."),null)})({...t,theme:e})},validation:e=>{let i=e.required();return(null==t?void 0:t.customValidation)&&(i=i.custom(t.customValidation)),i}});var eG=i(36241);let eR=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,ee.U8)({name:x.QI.image,title:"Image block",type:"object",fields:[eN(e?(0,eG.f)("imageBlock").block:(0,eG.f)("imageBlock").image),(0,ee.MI)({name:"image",title:"Image",type:eS.name,validation:e=>e.custom(eF)})],components:{preview:eE},preview:{select:{asset:"image.asset"}}})},ez=()=>(0,ee.U8)({name:x.QI.richText,title:"Text block",type:"object",fields:[ev()],preview:{select:{content:"content"},prepare:e=>{let{content:t}=e;return Array.isArray(t)?{title:(t||[]).find(e=>"block"===e._type).children.filter(e=>"span"===e._type).map(e=>e.text).join(""),subtitle:"Rich text block"}:{title:"Rich text block"}}}});var eH=i(22477);let eW=()=>{let e=(0,h.FO)().videoProviders;return(0,ee.U8)({name:x.QI.video,title:"Video block",type:"object",fieldsets:[eU],fields:[...eD("toggleable"),(0,ee.MI)({name:"provider",title:"Provider",type:"string",hidden:e.length<=1,options:{list:eH.N.filter(t=>e.includes(t.value)),layout:"radio"},initialValue:e[0]}),(0,ee.MI)({name:"url",title:"Video url",type:"string",validation:e=>e.required().custom((e,t)=>{var i,n;let o=null!=(n=null==(i=t.parent)?void 0:i.provider)?n:"youtube";return!e||!!(0,eH.JW)(e,o)||"Invalid ".concat(o," url")})}),(0,ee.MI)({name:"thumbnail",title:"Thumbnail",type:eS.name,validation:e=>e.custom(eF)}),(0,ee.MI)({name:"caption",title:"Caption",type:"string"}),(0,ee.MI)({name:"source",title:"Source",type:"string"})],preview:{select:{title:"title",url:"url",caption:"caption",media:"thumbnail.asset"},prepare:e=>{let{title:t,url:i,caption:n,media:o}=e;return{title:t||n||i,media:o||en.udU,subtitle:"Video"}}}})};var e$=i(27883);let eY=e=>{var t;if(!(null==e||null==(t=e.asset)?void 0:t._ref))return"Please select an audio file";let i=(0,e$.uQ)(e.asset._ref),n=["mp3","wav","ogg"];return!!n.includes(i)||"Please select a valid audio file. Allowed file types are ".concat(n.join(", "),".")},eK=()=>(0,ee.U8)({name:x.QI.audioBlock,title:"Audio block",type:"object",fieldsets:[eU],fields:[...eD("websiteOnly",{required:!0}),(0,ee.MI)({name:"audioFile",title:"Audio file",description:"Allowed file types: mp3, wav, ogg.",type:"file",options:{accept:"audio/*"},validation:e=>e.custom(eY)}),(0,ee.MI)({name:"description",title:"Description",type:"text",description:"Accessibility description for the audio content",validation:e=>e.required()})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,media:en.C1C,subtitle:"Audio block"}}}}),eZ="This field is required.",eJ=(e,t)=>
1(i,n)=>!e0(e,t,i,n)||eZ,eX=e=>(t,i)=>!e.map(e=>{let{parentField:n,parentFieldValue:o}=e;return e0(n,o,t,i)}).every(e=>!0===e)||eZ,e0=(e,t,i,n)=>n.parent[e]===t&&(Array.isArray(i)?!(null==i?void 0:i.length):void 0===i),e1=()=>(0,ee.U8)({name:x.QI.download,title:"Download block",type:"object",fieldsets:[eU],fields:[...eD("websiteOnly",{required:!0}),(0,ee.MI)({name:"description",title:"Description",type:"text"}),(0,ee.MI)({name:"items",title:"Download files",type:"array",of:[(0,ee.dO)({type:"object",name:"download",fields:[(0,ee.MI)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"isImageFile",title:"Is image file?",type:"boolean"}),(0,ee.MI)({name:"imageFile",title:"Image file",type:"image",hidden:e=>{let{parent:t}=e;return!(null==t?void 0:t.isImageFile)},validation:e=>e.custom(eJ("isImageFile",!0))}),(0,ee.MI)({name:"file",title:"File",type:"file",hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.isImageFile)},validation:e=>e.custom(eJ("isImageFile",!1))})]})],validation:e=>e.required().min(1)})],preview:{select:{title:"title",subtitle:"name"},prepare:e=>({title:e.title,subtitle:"Download block"})}}),e8=[i(54003).hv];var e2=i(96302);let e4=(e,t)=>{let i=t.parent,n=null==i?void 0:i.formBuilderTool;return e?"wufoo"!==n&&n||(0,e2.z)(e)?"jot"!==n||!!(0,e2.o)(e)||"Invalid form URL. Please provide a valid JotForm link like https://form.jotform.com/jsform/123.":"Invalid form URL. Please provide a valid wufoo link like https://âmuseumâplatformâ.wufooâ.comâ/formsâ/12345678.":"This field can't be empty."},e5={openLanguageSwitch:"Open language switch",closeLanguageSwitch:"Close language switch",openMenu:"Open menu",closeMenu:"Close menu",navigationMenuLabel:"Menu",goToHome:"Go to home",search:"Search",siteSearch:"Start search",loading:"Loading...",videoLoading:"Loading video...",videoPlay:"Play video",embedCookieMessage:"Cookies are required to view this embedded content.",embedCookieAccept:"Accept and view",pauseVideo:"Pause video",audioPlay:"Play audio",audioPause:"Pause audio",audioMute:"Mute audio",audioUnmute:"Unmute audio",audioVolumeControl:"Volume control",audioTimeControl:"Time control",carousel:"Carousel",carouselSlide:"Slide",carouselPrevious:"Previous slide",carouselNext:"Next slide",carouselOf:"of",carouselGoto:"Go to ",mainNavigationLinks:"Main",secondaryNavigationLinks:"Secondary",bottomNavigationLinks:"Bottom",footerNavigationLinks:"Footer",footerPartnerLinks:"Partners",eventAlways:"Always on",eventOnRequest:"On request",eventCategory:"Event type",eventDate:"Date",eventLocation:"Location",eventPrice:"Price",eventAudience:"Audience",eventAvailableDates:"View available dates",eventNoDates:"Past",eventMoreDates:"More dates",eventMultipleDates:"Multiple dates",eventOverviewEmpty:"No events found",eventOverviewError:"Error loading events. Please try again later.",filter:"Filter",filters:"Filters",activeFilters:"Active filters",removeFilter:"Remove filter",clearFilters:"Clear filters",dateFilterSubmit:"Select",result:"Result",results:"Results",viewResults:"View results",page:"Page",pageOf:"of",close:"Close",loadMore:"Load more",goToPage:"Go to page",today:"Today",thisWeekend:"This weekend",nextWeek:"Next week",previousMonth:"Previous month",nextMonth:"Next month",tagBasedListEmpty:"No results",tagBasedListError:"Error while loading results",tagBasedListDateFilter:"Date",masterpiece:"Masterpiece",onView:"Now on display in the museum",moreDetails:"More details",lessDetails:"Less details",toggleFullscreen:"Toggle fullscreen",zoomIn:"Zoom in",zoomOut:"Zoom out",scrollToLeft:"Scroll to left",scrollToRight:"Scroll to right",searchInputPlaceholder:"Search",searchSubmitButtonAriaLabel:"Search",searchClearButtonAriaLabel:"Clear search field",searchEmpty:"No results found",searchError:"Error loading search results. Please try again later.",searchSuggestionsTitle:"Quick links",notFoundSuggestionsTitle:"Quick links",newsletterTitle:"Stay Informed",newsletterInputLabel:"Email address",newsletterInputPlaceholder:"[email protected]",newsletterConfirmationMessage:"Thank you! Note: your subscription is only confirmed if you click the confirmation link. This may appear in your spam folder.",newsletterErrorMessage:"Oops! It was not possible to subscribe to our newsletter.",newsletterSubmitButtonLabel:"Subscribe",newsletterRetryButtonButtonLabel:"Try Again",skipToContent:"Skip to main content",errorPageTitle:"Something went wrong",errorPageDescription:"We are sorry, but something went wrong. Please try again later.",objectOverviewEmpty:"No objects found",objectOverviewError:"Error loading objects. Please try again later.",object:"object",objects:"objects",downloadLink:"Download as image",downloadModalTitle:"Thank y
1ou for your download!",downloadModalDescription:"Please mention the following data when publishing:",downloadModalSubtext:"Thank you for your interest",objectCollectionLink:"View our entire collection",artObjectFieldListTitle:"Details",artObjectDescriptionTitle:"About the artwork",showMore:"Show more",showLess:"Show less",readLess:"Read less",noImageAvailable:"No image available",micrioAlbumNextImage:"Next image",micrioAlbumPreviousImage:"Previous image",artObjectCta:"More information",artObjectFields:{title:"Title",description:"Description",type:"Type",creator:"Creator",creatorFilter:"Creator",creatorBirthDeath:"Creator year of birth and death",date:"Date",format:"Format",identifier:"Identifier",subject:"Subject",location:"Location",material:"Material",source:"Source",rights:"Rights",language:"Language",publisher:"Publisher",relation:"Theme",contributor:"Contributor",coverage:"Coverage",technique:"Technique",extent:"Dimensions",collection:"Collection",author:"Author",subtitle:"Subtitle",dateFilter:"Period",dateFilterArray:"Period",additionalInformationUrl:"More information",scientificName:"Scientific name",ctaUrl:"More information"}},e3={nl:{openLanguageSwitch:"Open taal kiezer",closeLanguageSwitch:"Sluit taal kiezer",openMenu:"Open navigatie",closeMenu:"Sluit navigatie",navigationMenuLabel:"Menu",goToHome:"Ga naar home",search:"Zoeken",siteSearch:"Begin met zoeken",loading:"Laden...",videoLoading:"Video laden...",videoPlay:"Video afspelen",embedCookieMessage:"Cookies zijn nodig om deze inhoud te bekijken.",embedCookieAccept:"Accepteren en bekijken",pauseVideo:"Video pauzeren",audioPlay:"Audio afspelen",audioPause:"Audio pauzeren",audioMute:"Audio uit",audioUnmute:"Audio aan",audioVolumeControl:"Volume aanpassen",audioTimeControl:"Doorspoelen",carousel:"Carousel",carouselSlide:"Slide",carouselPrevious:"Vorige slide",carouselNext:"Volgende slide",carouselOf:"van",carouselGoto:"Ga naar",mainNavigationLinks:"Hoofd",secondaryNavigationLinks:"Secundair",bottomNavigationLinks:"Onderaan",footerNavigationLinks:"Footer",footerPartnerLinks:"Partners",eventAlways:"Altijd te zien",eventOnRequest:"Op aanvraag",eventDate:"Datum",eventCategory:"Type evenement",eventLocation:"Locatie",eventPrice:"Prijs",eventAudience:"Doelgroep",eventAvailableDates:"Bekijk beschikbare data",eventNoDates:"Afgelopen",eventMoreDates:"Meer data",eventMultipleDates:"Meerdere data",eventOverviewEmpty:"Geen activiteiten gevonden",eventOverviewError:"Fout bij het laden van activiteiten. Probeer het later opnieuw.",tagBasedListEmpty:"Geen pagina's gevonden",tagBasedListError:"Fout bij het laden van pagina's. Probeer het later opnieuw.",tagBasedListDateFilter:"Datum",filter:"Filter",filters:"Filters",activeFilters:"Actieve filters",removeFilter:"Verwijder filter",clearFilters:"Verwijder alle filters",dateFilterSubmit:"Selecteren",result:"Resultaat",results:"Resultaten",viewResults:"Bekijk resultaten",page:"Pagina",pageOf:"van",close:"Sluit",loadMore:"Laad meer",goToPage:"Bekijk pagina",today:"Vandaag",thisWeekend:"Dit weekend",nextWeek:"Volgende week",previousMonth:"Vorige maand",nextMonth:"Volgende maand",masterpiece:"Topstuk",onView:"Nu te zien in het museum",moreDetails:"Meer details",lessDetails:"Minder details",toggleFullscreen:"Wissel tussen volledig scherm",zoomIn:"Inzoomen",zoomOut:"Uitzoomen",scrollToLeft:"Scroll naar links",scrollToRight:"Scroll naar rechts",searchInputPlaceholder:"Zoeken",searchSubmitButtonAriaLabel:"Zoeken",searchClearButtonAriaLabel:"Zoekveld legen",searchEmpty:"Geen resultaten gevonden",searchError:"Fout bij het laden van zoekresulten. Probeer het later opnieuw.",searchSuggestionsTitle:"Direct naar",notFoundSuggestionsTitle:"Direct naar",newsletterTitle:"Blijf op de hoogte",newsletterInputLabel:"E-mailadres",newsletterInputPlaceholder:"[email protected]",newsletterConfirmationMessage:"Dank! Let op: je aanmelding is pas gelukt als je op de bevestigingslink hebt geklikt. Deze kan in de ongewenste e-mails terechtkomen.",newsletterErrorMessage:"Oeps! Het is niet gelukt je aan te melden voor onze nieuwsbrief.",newsletterSubmitButtonLabel:"Aanmelden",newsletterRetryButtonButtonLabel:"Opnieuw proberen",skipToContent:"Ga naar hoofdinhoud",errorPageTitle:"Er is iets misgegaan",errorPageDescription:"Sorry, er is iets misgegaan. Probeer het later opnieuw.",objectOverviewEmpty:"Geen objecten gevonden",objectOverviewError:"Fout bij het laden van objecten. Probeer het later opnieuw.",object:"object",objects:"objecten",downloadLink:"Download als afbeelding",downloadModalTitle:"Bedankt voor je download!",downloadModalDescription:"Vermeld de volgende gegevens bij publicatie:",downloadModalSubtext:"Bedankt voor je interesse",objectCollectionLink:"Bekijk onze hele collectie",artObjectFieldListTitle:"Details",artObjectDescriptionTitle:"Over het kunstwerk",showMore:"Meer tonen",showLess:"Minder tonen",readLess:"Lees minder",noImageAvailable:"Geen afbeelding beschikbaar",micrioAlbumNextImage:"Volgende afbeelding",micrioAlbumPreviousImage:"Vorige afbeelding",artObjectCta:"Meer informatie",artObjectFields:{title:"Titel",description:"Beschrijving",type:"Objecttype",creator:"Maker",creatorFilter:"Maker",creatorBirthDeath:"Maker jaar van geboorte en overlijden",date:"Periode",format:"Formaat",identifier:"Identificatie",subject:"Onderwerp",location:"Vindplaats",material:"Materiaal",source:"Credit line",rights:"Copyright",language:"Taal",publisher:"Uitgever",relation:"Thema",contributor:"Maker(s)",coverage:"Dekking",technique:"Techniek",extent:"Dimensies",collection:"Collectie",author:"Auteur",subtitle:"Subtitel",dateFilter:"Periode",dateFilterArray:"Perio
1de",additionalInformationUrl:"Meer informatie",scientificName:"Wetenschappelijke naam",ctaUrl:"Meer informatie"}},en:e5},e9=(0,h.FO)(),e7=(0,eG.f)("highlightedPageCards");var e6=i(4125),te=i(59452);function tt(){let e=(0,Q._)(["\n width: 200px;\n"]);return tt=function(){return e},e}function ti(){let e=(0,Q._)(["\n aspect-ratio: 1/1;\n width: 50px;\n object-fit: cover;\n"]);return ti=function(){return e},e}function tn(){let e=(0,Q._)(["\n & > span {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n }\n"]);return tn=function(){return e},e}let to=(0,h.FO)().settings.defaultLanguageCode,ta=P.I4.img(tt()),tl=P.I4.img(ti()),tr=(0,P.I4)(y.EY)(tn()),ts=(0,ee.MI)({type:"object",name:"artObjectLink",title:"Art object link",fields:[(0,ee.MI)({title:"Identifier",name:"identifier",type:"string",readOnly:!0})],components:{input:e=>{let[t,i]=(0,m.useState)(!1),[n,o]=(0,m.useState)(!1),[a,l]=(0,m.useState)(""),[r,s]=(0,m.useState)(null),{value:d}=(0,F.A)(async()=>{var t;if(!(null==(t=e.value)?void 0:t.identifier))return;let i=new URLSearchParams({id:e.value.identifier,languageCode:to}),n=await fetch("/api/cms/objects?".concat(i));return await n.json()},[e.value]),u=async()=>{try{o(!0);let e=new URLSearchParams({query:a,languageCode:to}),t=await fetch("/api/cms/objects/search?".concat(e)),i=await t.json();s(null!=i?i:[])}finally{o(!1)}};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(y.so,{gap:4,direction:"column",children:[e.renderDefault(e),d&&(0,c.jsxs)(y.so,{gap:4,children:[d.image&&(0,c.jsx)(ta,{alt:d.title,src:d.image}),(0,c.jsxs)(y.so,{direction:"column",gap:4,children:[(0,c.jsx)(y.DZ,{as:"h2",size:1,children:d.title}),d.description&&(0,c.jsx)(tr,{size:1,children:d.description})]})]}),(0,c.jsx)(y.$n,{icon:en.WIv,mode:"default",type:"submit",text:"Search art objects",loading:n,onClick:()=>i(!0)})]}),t&&(0,c.jsx)(te.lG,{header:"Generate dates",id:"art-objects-dialog",width:1,onClose:()=>i(!1),children:(0,c.jsxs)(y.so,{padding:3,direction:"column",gap:3,children:[(0,c.jsxs)(y.so,{as:"form",gap:3,onSubmit:u,children:[(0,c.jsx)(y.ks,{icon:en.WIv,placeholder:"Search",value:a,onChange:e=>l(e.currentTarget.value)}),(0,c.jsx)(y.$n,{icon:en.WIv,mode:"ghost",type:"submit",text:"Search",loading:n})]}),(0,c.jsxs)(y.so,{direction:"column",gap:2,children:[r&&!r.length&&(0,c.jsx)(y.az,{padding:5,children:(0,c.jsx)(y.EY,{align:"center",children:"No art objects found"})}),null==r?void 0:r.map(t=>(0,c.jsx)(y.Zp,{as:"button",padding:3,shadow:1,radius:2,onClick:()=>{e.onChange((0,g.hZp)({...e.value,identifier:t.identifier})),l(""),s(null),i(!1)},children:(0,c.jsxs)(y.so,{gap:2,align:"center",children:[t.image&&(0,c.jsx)(tl,{alt:t.title,src:t.image}),(0,c.jsxs)(y.so,{direction:"column",gap:2,children:[(0,c.jsx)(y.EY,{size:2,children:t.title}),(0,c.jsx)(y.EY,{size:1,children:t.creator})]})]})},t.identifier))]})]})})]})},preview:e=>{var t;let{value:i}=(0,F.A)(async()=>{let t=await fetch("/api/cms/objects?id=".concat(e.identifier));return await t.json()},[e.identifier]);return e.renderDefault({...e,title:null!=(t=null==i?void 0:i.title)?t:e.identifier,subtitle:null==i?void 0:i.creator,media:()=>(null==i?void 0:i.image)?(0,c.jsx)("img",{alt:i.title,src:i.image}):null})}},preview:{select:{identifier:"identifier"}}});var tc=i(85812);let td=(0,h.FO)(),tu=(0,eG.f)("highlightedPageCards"),tp=()=>(0,ee.U8)({name:x.QI.newsletterBlock,title:"Newsletter block",type:"object",fieldsets:[eU],fields:[...eD("toggleable"),(0,ee.MI)({name:"text",title:"Text",type:"text"}),(0,ee.MI)({name:"newsletter",title:"Newsletter",type:"reference",to:[{type:"newsletter"}],validation:e=>e.required()})]}),tm=[{title:"Info",value:"info"},{title:"Time",value:"clock"}],tg=(0,h.FO)(),th=[(0,ee.MI)({name:"external",title:"External link?",description:"Check this box if the link should go to an external website",type:"boolean",initialValue:!1,validation:e=>e.required()}),...tg.modules.collection?[(0,ee.MI)({name:"artObject",title:"Art object link?",description:"Check this box if the link should go to an art object from the collection",type:"boolean",initialValue:!1,hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)}}),(0,ee.MI)({...ts,options:{collapsed:!1},hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)||!(null==t?void 0:t.artObject)}})]:[],(0,ee.MI)({name:"page",title:"Internal page",description:"Pick a page from the list to link to",type:"reference",to:x.Tb.map(e=>({type:e})),components:{field:e=>(0,e6.oY)({...e,config:$})},hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)||!!(null==t?void 0:t.artObject)}}),(0,ee.MI)({name:"url",title:"External URL",type:"url",hidden:e=>{let{parent:t}=e;return!(null==t?void 0:t.external)},validation:e=>e.uri({scheme:["http","https","mailto","tel"]})}),(0,ee.MI)({name:"openInNewTab",title:"Open in new tab?",type:"boolean",initialValue:!0,hidden:e=>{let{parent:t}=e;return!(null==t?void 0:t.external)}}),(0,ee.MI)({name:"params",title:"URL query parameters",description:'Use extra query parameters like "?q=zoeken" or "#section" to add extra information to the url of the link',type:"string",validation:e=>e.custom(e=>!e||!!/(\?|\&)([^=]+)\=([^&]+)/gm.test(e)||"Invalid URL parameters. Example: ?page=1&type=workshop"),hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)}})],ty=()=>(0,ee.U8)({name:x.QI.table,title:"Table block",type:"object",fieldsets:[eU],fields:[eN((0,eG.f)("tableBlock")),...eD("toggleable"),(0,ee.MI)({name:"caption",title:"Caption",description:"Shown inside the table as an accessible <caption> (always visible when filled).",type:"string"}),(0,ee.MI)({name:"table",title:"Table",type:"table",validation:e=>e.required()})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"Table"}}}}),tv=(0,h.FO)(),tb=(()=>
1{if(e9.modules.collection)return(0,ee.U8)({name:x.QI.highlightedObjectCards,title:"Highlighted object cards",type:"object",initialValue:()=>({linkToAll:void 0}),fieldsets:[eU],fields:[eN(e7),...eD("toggleable",{hidden:e=>{var t;let{parent:i}=e;return!(null==(t=e7.layouts.find(e=>e.metadata.key===(null==i?void 0:i.layoutKey)))?void 0:t.title.enable)}}),(0,ee.MI)({name:"intro",title:"Intro text",type:"string",hidden:e=>{var t;let{parent:i}=e;return!(null==(t=e7.layouts.find(e=>e.metadata.key===(null==i?void 0:i.layoutKey)))?void 0:t.intro.enable)}}),(0,ee.MI)({name:"linkToAll",title:"CTA button",description:"Add a CTA button which links to a page (with more info / more cards)",type:x.QI.link,hidden:e=>{var t;let{parent:i}=e;return!(null==(t=e7.layouts.find(e=>e.metadata.key===(null==i?void 0:i.layoutKey)))?void 0:t.linkToAllButton.enable)}}),(0,ee.MI)({name:"filters",title:"Order filter values",description:"Add filters to highlight specifcic art objects. Filters can be combined. When no filters are present the full collection will be loaded. Maximum of 10 items will be loaded.",type:"array",of:[{type:"object",fields:[(0,ee.MI)({name:"key",title:"Filter",type:"string",options:{list:e9.artObjects.filters.map(e=>{var t,i;return{value:e,title:null!=(i=null==(t=e3.nl)?void 0:t.artObjectFields[e])?i:e}})},validation:e=>e.required()}),(0,ee.MI)({name:"values",title:"Filter values",description:"The filter value you enter must be exactly the same as the filter value on the website in the collection filters.",type:"array",of:[{type:"string"}],validation:e=>e.required().min(1)})]}]})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"Highlighted object cards"}}}})})(),tf=(0,ee.U8)({name:x.QI.contentGroup,title:"Content group",type:"object",fields:[(0,ee.MI)({title:"CMS title",name:"cmsTitle",type:"string",description:eB.cmsOnlyTitle}),...eo([J.T.DisableContentGroupTitles])?[]:[(0,ee.MI)({title:"Title",name:"title",type:"string"})],...tv.theme.global.colors.theme.levels.group?[e_]:[],(0,ee.MI)({title:"Content",name:"content",type:"array",of:w()([(0,ee.dO)(eR(!0)),(0,ee.dO)(ez()),(0,ee.dO)(eW()),(0,ee.dO)((()=>{var e;let t=(0,eG.f)("twoColumnBlock"),i=null!=(e=t.removeOptions)?e:[];return(0,ee.U8)({name:x.QI.twoColumn,title:"2-column block",type:"object",fieldsets:[eU],fields:[eN(t,{customValidation:(e,t)=>{let i=t.parent;if(!e||!(null==i?void 0:i.componentTheme))return!0;let n=(0,eG.f)("twoColumnBlock").layouts.find(t=>t.metadata.key===e);return null!=n&&!!n.metadata.hasThemeOption||"The selected layout does not support themes. Switch back to a layout that supports themes, remove the theme, then you can switch to this layout again."}}),...eD("cmsOnly"),...eo([J.T.ComponentThemes])?[(0,ee.MI)({name:"componentTheme",title:"Theme",description:"Select a theme for this block",type:"reference",to:[{type:x.QI.componentTheme}],hidden:e=>{let{parent:t}=e,i=(0,eG.f)("twoColumnBlock").layouts.find(e=>e.metadata.key===(null==t?void 0:t.layoutKey));return!i||!0!==i.metadata.hasThemeOption},validation:e=>e.custom((e,t)=>{let i=t.parent,n=null==i?void 0:i.layoutKey;if(!n)return!0;let o=(0,eG.f)("twoColumnBlock").layouts.find(e=>e.metadata.key===n);return null==o||!o.metadata.themeIsRequired||!!e||"This layout requires a theme. Please select a theme."})})]:[],(0,ee.MI)({name:"items",title:"Content",type:"array",of:[{key:"image",member:(0,ee.dO)(eR())},{key:"richText",member:(0,ee.dO)(ez())},{key:"video",member:(0,ee.dO)(eW())},{key:"table",member:(0,ee.dO)(ty())},{key:"download",member:(0,ee.dO)(e1())},{key:"audio",member:(0,ee.dO)(eK())},{key:"newsletter",member:(0,ee.dO)(tp())}].filter(e=>!i.includes(e.key)).map(e=>e.member),validation:e=>[e.required(),e.length(2)]})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"2-column block"}}}})})()),(0,ee.dO)((0,ee.U8)({name:x.QI.accordion,title:"FAQ block",type:"object",fieldsets:[eU],fields:[...eD("toggleable"),(0,ee.MI)({name:"items",title:"Content",type:"array",of:[{name:"accordionItem",title:"FAQ item",type:"object",fields:[(0,ee.MI)({name:"title",title:"Subject or question",description:"The text that is always shown, also when the faq item is collapsed.",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"items",title:"Information or answer",type:"array",of:[(0,ee.dO)(eR()),(0,ee.dO)(ez()),(0,ee.dO)(eW()
1)],validation:e=>e.required()})]}],validation:e=>e.required()})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"FAQ block"}}}})),(0,ee.dO)((0,ee.U8)({name:x.QI.quote,title:"Quote block",type:"object",fields:[(0,ee.MI)({name:"quote",title:"Quote",description:"Use *bold* for bold and _italic_ for italic text.",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"credits",title:"Credits",description:"Use *bold* for bold and _italic_ for italic text.",type:"string"})],preview:{select:{title:"quote"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"Quote block"}}}})),(0,ee.dO)((0,ee.U8)({name:x.QI.carousel,title:"Carousel block",type:"object",fieldsets:[eU],fields:[eN((0,eG.f)("carouselBlock")),...eD("cmsOnly"),(0,ee.MI)({name:"items",title:"Carousel items",type:"array",of:[{name:"item",title:"Carousel item",type:"object",fields:[(0,ee.MI)({title:"Image",name:"image",type:x.QI.baseImage,validation:e=>e.custom(eF)})],preview:{select:{media:"image"},prepare:e=>{let{media:t}=e;return{title:"Carousel item",media:null!=t?t:en.sYc,subtitle:t?"Image":"No image"}}}}],validation:e=>e.required()})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,media:en.sYc,subtitle:"Carousel block"}}}})),(0,ee.dO)(ty()),(0,ee.dO)((0,ee.U8)({name:x.QI.highlightedPageCards,title:"Highlighted page cards",type:"object",initialValue:()=>({linkToAll:void 0}),fieldsets:[eU],fields:[eN(tu),...eD("toggleable",{hidden:e=>{var t;let{parent:i}=e;return!(null==(t=tu.layouts.find(e=>e.metadata.key===(null==i?void 0:i.layoutKey)))?void 0:t.title.enable)}}),(0,ee.MI)({name:"intro",title:"Intro text",type:"string",hidden:e=>{var t;let{parent:i}=e;return!(null==(t=tu.layouts.find(e=>e.metadata.key===(null==i?void 0:i.layoutKey)))?void 0:t.intro.enable)}}),(0,ee.MI)({name:"linkToAll",title:"CTA button",description:"Add a CTA button which links to a page (with more info / more cards)",type:x.QI.link,hidden:e=>{var t;let{parent:i}=e;return!(null==(t=tu.layouts.find(e=>e.metadata.key===(null==i?void 0:i.layoutKey)))?void 0:t.linkToAllButton.enable)}}),(0,ee.MI)({name:"cardLinks",title:"Pinned page cards",description:"Pinned cards will be shown first. Can be left empty.",type:"array",validation:e=>e.custom((e,t)=>{var i;let n=null==(i=tu.layouts.find(e=>{var i;return e.metadata.key===(null==(i=t.parent)?void 0:i.layoutKey)}))?void 0:i.maxNumberOfCards;return!n||!e||!(e.length>n)||"This layout can only have ".concat(n," card links")}),of:[(0,ee.dO)({type:"object",fields:[...td.modules.collection?[(0,ee.MI)({name:"artObject",title:"Art object link?",type:"boolean",initialValue:!1}),(0,ee.MI)({...ts,hidden:e=>{let{parent:t}=e;return!(null==t?void 0:t.artObject)},validation:e=>e.custom(eJ("artObject",!0))})]:[],(0,ee.MI)({name:"link",title:"Link to",description:"Pick a page from the list to link to",type:"reference",hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.artObject)},to:[{type:x.QI.contentPage},{type:x.QI.eventPage},{type:x.QI.eventOverviewPage},{type:x.QI.objectPage},{type:x.QI.objectOverviewPage},{type:x.QI.tagBasedListPage},{type:x.QI.overviewPage}],components:{field:e=>(0,e6.oY)({...e,config:$})},validation:e=>td.modules.collection?e.custom(eJ("artObject",!1)):[]}),(0,ee.MI)({name:"title",title:"Title override",description:"Optional override of the title, defaults to title of page",type:"string"}),(0,ee.MI)({name:"description",title:"Description override",description:"Optional override of the description (intro text) shown on the card",type:"string"}),(0,ee.MI)({name:"ctaText",title:"CTA text override",description:'Optional override of the CTA text, defaults to "Bekijk pagina". Note: only if the page card has a CTA button, you can override its text here',type:"string",hidden:()=>tu.layouts.every(e=>{let t=(0,eG.f)("pageCard",null==e?void 0:e.cards.card);return(0,tc.NI)(t.layout,"ctaButton")})}),(0,ee.MI)({name:"cardImageOverride",title:"Card image override",description:"Optional override of the image, defaults to the hero image of the page",type:x.QI.baseImage})],preview:{select:{linkTitle:"link.title",artObjectIdentifier:"artObjectLink.identifier"},prepare:e=>{let{linkTitle:t,artObjectIdentifier:i}=e;return{title:i||t}}}})]}),(0,ee.MI)({name:"isFilterOr",type:"boolean",title:"Filter OR?",description:"If true, the filter will be an OR filter instead of an AND filter.",initialValue:!1}),(0,ee.MI)({name:"tagsToInclude",type:"array",of:[(0,ee.MI)({name:"tag",type:"reference",title:"Tag",to:[{type:x.QI.tag}]})],title:"Include pages with these tags",description:"Pages with at least one of these tags will be added to the cards. Can be left empty."})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"Highlighted page cards"}}}})),tb&&(0,ee.dO)(tb),(0,ee.dO)(e1()),(0,ee.dO)((0,ee.U8)({name:x.QI.form,title:"Form block",type:"object",fieldsets:[eU],fields:[...eD("cmsOnly"),(0,ee.MI)({name:"formBuilderTool",title:"Form Builder Tool",type:"string",description:"We support several form builder tools. Choose the desired one below.",options:{list:[{title:"Wufoo",value:"wufoo"},{title:"JotForm",value:"jot"}]}}),(0,ee.MI)({name:"formUrl",title:"Form URL",type:"url",description:"Paste here the 'permanent link' of the form like: museumplatform.wufoo.com/forms/12345678. You can find this by clicking on the share icon button of the form. For JotForm, always copy the link from the script tag.",validation:e=>e.custom(e4)})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t,subtitle:"Form"}}}}
1)),(0,ee.dO)((0,ee.U8)({name:x.QI.comparisonSlider,title:"Comparison Slider",type:"object",fieldsets:[eU],fields:[...eD("cmsOnly"),(0,ee.MI)({name:"leftImage",title:"Left Image",description:"Both images must have the same aspect ratio.",type:eS.name,validation:e=>e.custom(eF)}),(0,ee.MI)({name:"rightImage",title:"Right Image",description:"Both images must have the same aspect ratio.",type:eS.name,validation:e=>e.custom(eF)})]})),(0,ee.dO)((0,ee.U8)({name:x.QI.micrioBlock,title:"Micrio block",type:"object",fieldsets:[eU],fields:[...eD("cmsOnly"),(0,ee.MI)({name:"micrio",title:"Micrio image",type:x.QI.micrio,validation:e=>e.required()})]})),...tv.embedProviders.length>0?[(0,ee.dO)((()=>{let e,t=(e=(0,h.FO)().embedProviders,e8.filter(t=>e.includes(t.id)));return(0,ee.U8)({name:x.QI.embedBlock,title:"Embed block",type:"object",fieldsets:[eU],fields:[...eD("toggleable"),(0,ee.MI)({name:"provider",title:"Provider",type:"string",options:{layout:"dropdown",list:t.map(e=>({title:e.title,value:e.id}))},validation:e=>e.required()}),...t.flatMap(e=>e.fields.map(t=>(0,ee.MI)({...(e=>{if("string"===e.type){let{validation:t,...i}=e;return(0,ee.MI)({...i,validation:e=>e.custom(e=>{var i;return null==(i=null==t?void 0:t(String(null!=e?e:"")))||i})})}return e})(t),hidden:t=>{let{parent:i}=t;return(null==i?void 0:i.provider)!==e.id}})))],preview:{select:{title:"title",provider:"provider"},prepare:e=>{let{title:t,provider:i}=e;return{title:t||i||"Embed",subtitle:"Embed",media:en.I5t}}}})})())]:[],(0,ee.dO)(eK()),(0,ee.dO)(tp()),(0,ee.dO)((0,ee.U8)({name:x.QI.partnerLinksBlock,type:"object",title:"Partner links block",fieldsets:[eU],fields:[...eD("toggleable"),(0,ee.MI)({name:"partners",title:"Partners",type:"array",of:[(0,ee.dO)({type:"object",name:"partner",title:"Partner",fields:[(0,ee.MI)({name:"title",title:"CMS Title",type:"string",description:"This title is only visible in the CMS and will not appear on the website"}),(0,ee.MI)({name:"link",title:"Link",description:"Optional. Leave the URL or internal page empty to show the logo without a link.",type:"object",fields:th}),(0,ee.MI)({name:"image",title:"Partner logo",type:x.QI.baseImage,validation:e=>e.required()})]})],validation:e=>e.required()})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:null!=t?t:"Partner links block",subtitle:"Partner links block"}}}})),(0,ee.dO)((0,ee.U8)({name:x.QI.linkListBlock,type:"object",title:"Link list block",fieldsets:[eU],fields:[...eD("toggleable"),(0,ee.MI)({name:"items",title:"Items",type:"array",of:[(0,ee.dO)({type:"object",name:"item",title:"Item",fields:[(0,ee.MI)({name:"link",title:"Link",type:x.QI.link,validation:e=>e.required()}),(0,ee.MI)({name:"description",title:"Description",description:"Use *bold* for bold and _italic_ for italic text.",type:"text",validation:e=>e.required()})],preview:{select:{title:"link.name"},prepare:e=>{let{title:t}=e;return{title:null!=t?t:"Item"}}}})],validation:e=>e.required().min(1)})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:null!=t?t:"Link list block",subtitle:"Link list block"}}}})),(0,ee.dO)((()=>(0,ee.U8)({name:x.QI.notificationBlock,title:"Notification block",type:"object",fields:[(0,ee.MI)({name:"icon",title:"Icon",type:"string",options:{list:tm,layout:"radio"},validation:e=>e.required()}),(0,ee.MI)({name:"text",title:"Text",description:"Use *bold* for bold and _italic_ for italic text.",type:"text",validation:e=>e.required()})],preview:{select:{text:"text",icon:"icon"},prepare:e=>{let{text:t,icon:i}=e;return{title:null!=t?t:"Notification block",subtitle:i?"Icon: ".concat(i):"Notification block"}}}}))()),...eo([J.K.KmmRawHtml])?[(0,ee.dO)((0,ee.U8)({name:x.QI.rawHtmlBlock,title:"Raw HTML block",type:"object",icon:en.I5t,fields:[(0,ee.MI)({name:"html",title:"HTML",type:"text",description:'Plak hier de embed code (bijv. Spotify, SoundCloud, YouTube, Twitter/X, Instagram, TikTok). Verander "width" naar "100%" voor een responsive breedte.',validation:e=>e.required().custom(e=>!e||(/<script(?![^>]*\bsrc\s*=)[^>]*>/i.test(e)?"Inline script tags zijn niet toegestaan. Gebruik alleen embed codes met een extern script (src=).":/\bon\w+\s*=/i.test(e)?"Event handlers (bijv. onclick=) zijn niet toegestaan.":!/javascript\s*:/i.test(e)||"javascript: URL's zijn niet toegestaan."))})],preview:{select:{html:"html"},prepare:e=>{let{html:t}=e;return{title:"Raw HTML block",subtitle:t?t.slice(0,60):void 0}}}}))]:[]])})],preview:{select:{title:"cmsTitle"}}}),tI=async(e,t)=>{var i;let n=null==e||null==(i=e.asset)?void 0:i._ref;if(!n)return!0;let o=t.getClient({apiVersion:S}),a=await o.fetch("*[_id == $ref][0].size",{ref:n});if("number"==typeof a&&a>0x1400000){let e=(a/1048576).toFixed(1);return"This video is ".concat(e," MB. Large files can use a lot of mobile data when visitors are not on Wi-Fi. Keep video files under ").concat(20," MB. Compress the video and upload again.")}return!0},tk={[x.QI.contentPage]:"contentPage",[x.QI.homePage]:"homePage",[x.QI.eventPage]:"eventPage",[x.QI.eventOverviewPage]:"eventOverviewPage",[x.QI.overviewPage]:"overviewPage",[x.QI.tagBasedListPage]:"tagBasedListPage"},tw=(0,ee.MI)({name:"componentTheme",title:"Theme",description:"Select a theme for this header",type:"reference",to:[{type:x.QI.componentTheme}],hidden:e=>{let{document:t}=e;if(!eo([J.T.ComponentThemes]))return!0;let i=null==t?void 0:t._type;if(!i)return!0;let n=tk[i];return!n||!(0,eG.f)(n).allowThemedHero}}),tj=(0,ee.MI)({name:"splitBlockTheme",title:"Split block theme",description:"Color theme for the left block of the 50/50 split header",type:"reference",to:[{type:x.QI.componentTheme}],hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="split"}}),tM=function(){let{includeVideo:e=!1,includeSplit:t=!1,includeSlideshow:i=!1}
1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ee.MI)({name:"type",title:"Type",type:"string",options:{list:[...i?[{title:"Slideshow",value:"slideshow"}]:[],{title:"Default (image)",value:"default"},...e?[{title:"Video",value:"video"}]:[],...t?[{title:"50/50 split",value:"split"}]:[]],layout:"radio"},initialValue:i?"slideshow":"default",validation:e=>e.custom((e,t)=>{let i=t.parent,n=!!((null==i?void 0:i.videoDesktop)||(null==i?void 0:i.videoMobile));return"video"===e||!n||"Clear the video files before changing the hero type from video."})})},tT="Header background image. When using video headers, this image serves as a fallback for users with reduced motion preferences or when video playback fails. This image is also displayed in page cards and previews.",tO=[(0,ee.MI)({title:"Subtitle",name:"subtitle",type:"string"}),(0,ee.MI)({name:"backgroundImage",title:"Background image",description:tT,type:x.QI.baseImage})],tx=[(0,ee.MI)({name:"primaryCta",title:"Primary call to action",type:x.QI.link}),(0,ee.MI)({name:"secondaryCta",title:"Secondary call to action",type:x.QI.link})],tC=(0,ee.MI)({name:"hideImageOnPage",description:"This hides hero image on the page. But for example in page cards we still show the image.",title:"Hide image on page",type:"boolean",hidden:e=>{let{parent:t}=e,i=null==t?void 0:t.type;return void 0!==i&&"default"!==i}}),tL=[tM({includeSplit:eo([J.T.SplitHero])}),...tO,...tx,tC],tQ=(0,ee.U8)({name:x.QI.hero,title:"Header",type:"object",fields:[...tL,...eo([J.T.SplitHero])&&eo([J.T.ComponentThemes])?[tj]:[],...eo([J.T.ComponentThemes])?[tw]:[]]}),tF="Max ".concat(20," MB. Supported formats: .webm preferred, mp4 possible"),tP=[(0,ee.MI)({name:"videoDesktop",title:"Video (Desktop)",description:"Video for desktop screens. ".concat(tF),type:"file",options:{accept:"video/mp4,video/webm"},validation:e=>e.custom(tI),hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="video"}}),(0,ee.MI)({name:"videoMobile",title:"Video (Mobile)",description:"Video for mobile screens. ".concat(tF),type:"file",options:{accept:"video/mp4,video/webm"},validation:e=>e.custom(tI),hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="video"}})],tS=(0,ee.U8)({name:x.QI.heroWithVideo,title:"Header",type:"object",fields:[tM({includeVideo:!0,includeSplit:eo([J.T.SplitHero])}),...tO,...tP,...tx,tC,...eo([J.T.SplitHero])&&eo([J.T.ComponentThemes])?[tj]:[],...eo([J.T.ComponentThemes])?[tw]:[]]}),tB=(0,ee.U8)({name:x.QI.heroWithVideoAndSlideshow,title:"Header",type:"object",fields:[tM({includeSlideshow:!0,includeVideo:!0}),(0,ee.MI)({title:"Subtitle",name:"subtitle",type:"string",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)==="slideshow"}}),(0,ee.MI)({name:"backgroundImage",title:"Background image",description:tT,type:x.QI.baseImage,hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)==="slideshow"}}),...tP,(0,ee.MI)({name:"primaryCta",title:"Primary call to action",type:x.QI.link,hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)==="slideshow"}}),(0,ee.MI)({name:"secondaryCta",title:"Secondary call to action",type:x.QI.link,hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)==="slideshow"}}),tC,...eo([J.T.ComponentThemes])?[tw]:[]]}),tA=(0,h.FO)(),t_=[(0,ee.MI)({name:"external",title:"External link?",description:"Check this box if the link should go to an external website",type:"boolean",initialValue:!1,validation:e=>e.required()}),...tA.modules.collection?[(0,ee.MI)({name:"artObject",title:"Art object link?",description:"Check this box if the link should go to an art object from the collection",type:"boolean",initialValue:!1,hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)}}),(0,ee.MI)({...ts,options:{collapsed:!1},hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)||!(null==t?void 0:t.artObject)},validation:e=>e.custom(eX([{parentField:"external",parentFieldValue:!1},{parentField:"artObject",parentFieldValue:!0}]))})]:[],(0,ee.MI)({name:"page",title:"Internal page",description:"Pick a page from the list to link to",type:"reference",to:x.Tb.map(e=>({type:e})),components:{field:e=>(0,e6.oY)({...e,config:$})},validation:e=>e.custom(eX([{parentField:"external",parentFieldValue:!1},...tA.modules.collection?[{parentField:"artObject",parentFieldValue:!1}]:[]])),hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)||!!(null==t?void 0:t.artObject)}}),(0,ee.MI)({name:"url",title:"External URL",type:"url",hidden:e=>{let{parent:t}=e;return!(null==t?void 0:t.external)},validation:e=>e.uri({scheme:["http","https","mailto","tel"]}).custom(eJ("external",!0))}),(0,ee.MI)({name:"openInNewTab",title:"Open in new tab?",type:"boolean",initialValue:!0,hidden:e=>{let{parent:t}=e;return!(null==t?void 0:t.external)}}),(0,ee.MI)({name:"params",title:"URL query parameters",description:'Use extra query parameters like "?q=zoeken" or "#section" to add extra information to the url of the link',type:"string",validation:e=>e.custom(e=>!e||!!/(\?|\&)([^=]+)\=([^&]+)/gm.test(e)||"Invalid URL parameters. Example: ?page=1&type=workshop"),hidden:e=>{let{parent:t}=e;return!!(null==t?void 0:t.external)}})],tU=(0,ee.MI)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),tD=(0,ee.U8)({name:x.QI.link,title:"Link",type:"object",fields:[tU,...t_],components:{input:ew},preview:{select:{title:"name",external:"external",url:"url",page:"page.title"},prepare:e=>{let{title:t,external:i,url:n,page:o}=e;return{title:t,subtitle:i?"External link - ".concat(n):"Internal link - ".concat(o),media:en.qYV}}}}),tq=(0,ee.U8)({name:x.QI.linkWithoutName,title:"Inline link",type:"object",fields:t_}),tV=(0,ee.U8)({title:"Localized string",name:x.QI.localeString,type:"object",options:{aiAssist:{translateAction:!0}
1},fieldsets:[{title:"Translations",name:"translations",options:{collapsible:!0}}],fields:Object.entries((0,h.FO)().settings.supportedLanguages).map(e=>{let[t,i]=e;return{title:i.englishLabel,name:t,type:"string"}})});var tE=i(17826),tN=i(83896);function tG(){let e=(0,Q._)(["\n position: relative;\n height: 300px;\n"]);return tG=function(){return e},e}function tR(){let e=(0,Q._)(["\n width: 100%;\n height: 100%;\n object-fit: contain;\n aspect-ratio: ",";\n"]);return tR=function(){return e},e}let tz=(0,P.I4)(y.Zp)(tG()),tH=P.I4.img(tR(),e=>{let{width:t,height:i}=e;return"".concat(t,"/").concat(i)}),tW=(0,ee.U8)({name:x.QI.micrio,type:"object",components:{input:e=>{var t;let{onChange:i,value:n}=e,o=(0,y.DP)(),{navigateUrl:a}=(0,tN.rd)(),[l,r]=(0,m.useState)(!1),[s,d]=(0,m.useState)(!1),[u,p]=(0,m.useState)(""),[h,v]=(0,m.useState)(""),b=(0,m.useCallback)(async e=>{d(!0);try{let t=await I(e),o=await k(e);if(n&&e===n.id)return void d(!1);i((0,g.hZp)({...n,id:e,width:o.width,height:o.height,aspectRatio:o.width/o.height,lqip:t}))}catch(e){throw e}finally{d(!1)}},[i,n]);(0,tE.A)(()=>{(null==n?void 0:n.id)&&b(n.id)});let f=async()=>{if(!h)return void p("Please enter a Micrio ID");try{await b(h),r(!1)}catch(e){p("Could not find Micrio image")}},I=async e=>{let t=await fetch("https://iiif.micr.io/".concat(e,"/full/20,/0/default.jpg")),i=await t.arrayBuffer();return"data:".concat(t.headers.get("content-type"),";base64,").concat(btoa(String.fromCharCode.apply(null,[...new Uint8Array(i)])))},k=async e=>(await fetch("https://iiif.micr.io/".concat(e,"/info.json"))).json();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(y.so,{direction:"column",gap:4,children:[(0,c.jsx)(y.EY,{muted:!0,size:1,children:"Copy your Micrio image identifier from the Micrio dashboard"}),(0,c.jsxs)(y.cV,{space:3,children:[(0,c.jsx)(y.$n,{mode:"ghost",text:(null==n?void 0:n.id)?"Replace image":"Select image",onClick:()=>{r(!0),p(""),v("")}}),(0,c.jsx)(y.$n,{mode:"ghost",icon:L,text:"Open Micrio",onClick:()=>a({path:"/cms/micrio"})})]}),n&&(0,c.jsx)(tz,{radius:2,shadow:1,tone:"transparent",children:(0,c.jsx)(tH,{src:"https://iiif.micr.io/".concat(n.id,"/full/400,/0/default.jpg"),width:n.width,height:n.width})}),(0,c.jsx)(g.G3P,{...e})]}),l&&(0,c.jsx)(te.lG,{header:"Enter Micrio ID",id:"micrio-dialog",onClose:()=>{r(!1)},zOffset:1e3,children:(0,c.jsxs)(y.BJ,{space:4,padding:4,children:[(0,c.jsxs)(y.BJ,{space:2,children:[(0,c.jsx)(y.ks,{onChange:e=>{v(e.currentTarget.value),p("")},placeholder:null!=(t=null==n?void 0:n.id)?t:"Micrio ID",value:h}),u&&(0,c.jsx)(y.EY,{style:{color:o.sanity.color.solid.critical.enabled.bg},children:u})]}),(0,c.jsx)(y.$n,{mode:"ghost",text:s?"Loading...":"Confirm",onClick:f,disabled:s})]})})]})}},fields:[(0,ee.MI)({name:"id",type:"string",title:"Micrio identifier",readOnly:!0,validation:e=>e.required()}),(0,ee.MI)({name:"width",type:"number",title:"Width in pixels",readOnly:!0,hidden:!0,validation:e=>e.required()}),(0,ee.MI)({name:"height",type:"number",title:"Height in pixels",readOnly:!0,hidden:!0,validation:e=>e.required()}),(0,ee.MI)({name:"aspectRatio",type:"number",title:"Aspect ratio",readOnly:!0,hidden:!0,validation:e=>e.required()}),(0,ee.MI)({name:"lqip",type:"string",readOnly:!0,hidden:!0,validation:e=>e.required()})]}),t$=(0,ee.U8)({name:x.QI.readMoreDivider,title:"Lees meer",type:"object",icon:en.V$C,fields:[(0,ee.MI)({name:"label",title:"Knoplabel",type:"string",description:'Tekst op de uitklap-knop, bijv. "Meer over de rondleiding" (max. 28 tekens).',initialValue:"Lees meer",validation:e=>e.required().max(28)})],preview:{select:{label:"label"},prepare:e=>{let{label:t}=e;return{title:t?"â ".concat(t):"â Lees meer (knoplabel ontbreekt)",subtitle:'Tekst hieronder wordt verborgen achter een "Lees meer" knop'}}}}),tY=(0,h.FO)(),tK=[(0,ee.MI)({name:"title",type:"string",title:"Title",group:"content",validation:e=>e.required()}),(0,ee.MI)({name:"seoTitle",type:"string",title:"SEO title",description:"This title shows up on search engine results and in the tab of the browser",group:"seo"}),(0,ee.MI)({name:"isArchived",type:"boolean",title:"Is archived?",description:'When checked, this page is hidden from the page tree in the Studio and moved to the "Archived pages" list. The page and its URL remain fully accessible on the website.',group:"content",initialValue:!1,components:{input:e=>{let t=(0,g.tH7)({apiVersion:S}),i=(0,g.FlV)(["_id"]),{value:n}=(0,F.A)(()=>t.fetch("*[_type in [".concat(Object.values(x.Tb).map(e=>'"'.concat(e,'"')).join(", "),"] && parent._ref == $id] {\n _id,\n isArchived\n }"),{id:i}),[e.value]),o=null==n?void 0:n.some(e=>!e.isArchived);return(0,c.jsx)(y.m_,{content:o?(0,c.jsx)(y.az,{padding:1,children:(0,c.jsx)(y.EY,{muted:!0,size:1,children:"Archive all child pages before archiving this page."})}):void 0,fallbackPlacements:["right","left"],placement:"top",portal:!0,children:(0,c.jsx)(y.az,{children:e.renderDefault({...e,readOnly:o})})})}}}),...tY.theme.global.colors.theme.levels.page?[(0,ee.MI)({...e_,group:"content"})]:[],(0,ee.MI)({name:"description",type:"text",title:"Description",description:"This description populates meta-tags on the webpage",group:"seo"}),(0,ee.MI)({name:"socialMediaImage",type:"image",title:"Social media image",description:"Image shown when this url is shared on Facebook, Twitter etc.",group:"seo"}),(0,ee.MI)({name:"noIndex",title:"No index?",description:"Exclude page from indexing by search engines",type:"boolean",group:"seo",initialValue:!1}),(0,ee.MI)({name:"searchTags",type:"string",title:"Content search tags",description:"Here you can add relevant tags. These can be used to improve the search results on the website. These tags won't be visible on the website.",group:"search"}),(0,ee.MI)({name:"hideFromSearch",type:"boolean",title:"Hide page from search results",description:"When checked, this page won't show up in the search results on the website",initialValue:!1,group:"search"}),(0,ee.MI)({name:"tags",type:"array",of:[(0,ee.MI)({name:"tag",type:"reference",title:"Tag",to:[{type:x.QI.tag}]})],title:"Tags",description:"These custom tags can be used to retrieve pages based on tags",group:"tags"}),...tY.thirdPartyIntegrationProviders.length?[(0,ee.MI)({name:"thirdPartyIntegrations",type:"array",of:[(0,ee.MI)({name:"pageWideIntegration",type:"reference",title:"Third-party integration",to:[{type:x.QI.thirdPartyIntegration}],options:{filter:"global != true"}})],title:"Third-party integrations",description:'Third-party integrations to load on this page. Integrations marked "Show on every page" load on all pages and are not listed here.',group:"integrations"})]:[],et],tZ=[{name:"content",title:"Content",default:!0},{name:"seo",title:"SEO"},{name:"tags",title:"Tags"},{name:"search",title:"Content search"},...tY.thirdPartyIntegrationProviders.length?[{name:"integrations",title:"Third-party integrations"}
1]:[]],tJ=(0,ee.U8)({name:x.QI.contentPage,type:"document",title:"Content page",icon:en.pyG,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.heroWithVideo,group:"content"}),(0,ee.MI)({name:"publishedDate",title:"Publication date",description:"Add a publicitation date if you want to show a date on this page. E.g. in a news item",type:"date",group:"content"}),(0,ee.MI)({name:"intro",title:"Intro",description:"Use *bold* for bold and _italic_ for italic text.",type:"text",group:"content"}),(0,ee.MI)({name:"label",type:"string",title:"Label",description:"Visible in page cards",group:"content"}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"})],groups:tZ}),tX=(0,e6.bl)(tJ,$,{fieldsGroupName:"content"}),t0=(0,ee.U8)({name:x.QI.eventOverviewPage,type:"document",title:"Event overview page",icon:en.CTc,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.hero,group:"content"}),(0,ee.MI)({title:"Pinned events",name:"pinnedEvents",type:"array",of:[(0,ee.dO)({type:"reference",to:[{type:x.QI.eventPage}]})],group:"content"}),(0,ee.MI)({title:"Locked categories",description:"When set, only events matching these categories are shown and the category filter is hidden. Use this to create a category-specific overview (e.g. exhibitions only).",name:"lockedCategories",type:"array",of:[(0,ee.dO)({type:"reference",to:[{type:x.QI.eventCategory}]})],group:"content"}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"})],groups:tZ}),t1=(0,e6.bl)(t0,$,{fieldsGroupName:"content"});var t8=i(36117),t2=i.n(t8),t4=i(1180),t5=i(65211),t3=i.n(t5);let t9=RegExp("^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"),t7=e=>!e||!!t9.test(e)||"Time should be valid and in the format HH:MM.",t6=[{value:"day",label:"day",pluralLabel:"days"},{value:"week",label:"week",pluralLabel:"weeks"},{value:"month",label:"month",pluralLabel:"months"}],ie=[{level:"error",message:"End date should be after start date",path:[]}],it=[{level:"error",message:"Time should be valid and in the format HH:MM.",path:[]}],ii=e=>(0,ee.MI)({name:"times",type:"object",title:"Times",hidden:e,fields:[(0,ee.MI)({name:"start",type:"string",title:"Start (hh:mm)",placeholder:"e.g. 10:30",validation:e=>e.required().custom(t7)}),(0,ee.MI)({name:"end",type:"string",title:"End (hh:mm)",placeholder:"e.g. 10:30",validation:e=>e.required().custom(t7)})],components:{input:ew}}),io=(0,ee.U8)({name:x.QI.eventPage,type:"document",title:"Event page",icon:en.CTc,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.heroWithVideo,group:"content"}),(0,ee.MI)({name:"category",type:"reference",title:"Category",to:[{type:x.QI.eventCategory}],validation:e=>e.required(),group:"content"}),(0,ee.MI)({name:"location",type:"reference",title:"Location",to:[{type:x.QI.location}],group:"content"}),(0,ee.MI)({name:"locationAddition",type:"reference",title:"Location addition",to:[{type:x.QI.locationAddition}],group:"content"}),(0,ee.MI)({name:"audiences",title:"Audiences",type:"array",of:[{type:"reference",to:[{type:x.QI.audience}]}],group:"content"}),(0,ee.MI)({name:"price",type:"string",title:"Price",group:"content"}),(0,ee.MI)({name:"label",type:"string",title:"Label",group:"content"}),(0,ee.MI)({name:"dateSettings",type:"object",title:"Date settings",group:"content",fields:[(0,ee.MI)({name:"type",type:"string",options:{list:[{title:"Single",value:"single"},{title:"Multiple",value:"multiple"},{title:"Period",value:"period"},{title:"Always",value:"always"},{title:"On request",value:"onRequest"}],layout:"radio"},initialValue:"single",validation:e=>e.required()}),(0,ee.MI)({name:"date",type:"date",title:"Date",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="single"},validation:e=>e.custom(eJ("type","single"))}),(0,ee.MI)({name:"description",type:"string",title:"Description",description:"Description for multiple dates e.g. every monday",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="multiple"}}),(0,ee.MI)({name:"dates",type:"array",title:"Dates",of:[{name:"item",title:"Date",type:"object",fields:[(0,ee.MI)({name:"date",type:"date",title:"Date",validation:e=>e.required()}),ii()],preview:{select:{date:"date",start:"times.start",end:"times.end"},prepare:e=>{let{date:t,start:i,end:n}=e;return{title:t2()(t).format("dddd D MMMM YYYY"),subtitle:i&&n?"".concat(i," - ").concat(n):void 0}}}}],hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="multiple"},validation:e=>e.custom(eJ("type","multiple")),components:{input:e=>{var t;let[i,n]=(0,m.useState)(!1),[o,a]=(0,m.useState)(1),[l,r]=(0,m.useState)(null==(t=t6[0])?void 0:t.value),[s,d]=(0,m.useState)(),[u,p]=(0,m.useState)(),[h,v]=(0,m.useState)(),[b,f]=(0,m.useState)(),I=s&&u&&t2()(s).isAfter(t2()(u)),
1k=h&&!t9.test(h),w=b&&!t9.test(b);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(y.so,{direction:"column",gap:4,children:[(0,c.jsxs)(y.so,{direction:"column",gap:2,children:[(0,c.jsxs)(y.so,{gap:3,children:[(0,c.jsx)(y.$n,{style:{alignSelf:"start"},icon:en.KJo,mode:"ghost",onClick:()=>{var e;a(1),r(null==(e=t6[0])?void 0:e.value),d(void 0),p(void 0),v(void 0),f(void 0),n(!0)},text:"Generate dates"}),(0,c.jsx)(y.$n,{style:{alignSelf:"start"},icon:en.ucK,mode:"ghost",onClick:()=>{e.onChange((0,g.hZp)([]))},text:"Clear dates"})]}),(0,c.jsx)(y.EY,{muted:!0,size:1,children:"Quickly generate a list of dates between a start and end date."})]}),e.renderDefault(e)]}),i&&(0,c.jsx)(te.lG,{header:"Generate dates",id:"event-dates-dialog",onClose:()=>n(!1),children:(0,c.jsxs)(y.so,{padding:3,direction:"column",gap:3,children:[(0,c.jsx)(g.zBI,{title:"Repeat every",children:(0,c.jsxs)(y.so,{gap:2,children:[(0,c.jsx)(y.ks,{type:"number",value:o,onChange:e=>a(parseInt(e.currentTarget.value))}),(0,c.jsx)(y.l6,{value:l,onChange:e=>r(e.currentTarget.value),children:t6.map(e=>(0,c.jsx)("option",{value:e.value,children:1===o?e.label:e.pluralLabel},e.value))})]})}),(0,c.jsx)(g.zBI,{title:"Start date",children:(0,c.jsx)(y.ks,{type:"date",value:s,onChange:e=>d(e.currentTarget.value)})}),(0,c.jsx)(g.zBI,{title:"End date",validation:I?ie:[],children:(0,c.jsx)(y.ks,{type:"date",value:u,onChange:e=>p(e.currentTarget.value)})}),(0,c.jsx)(g.zBI,{title:"Start time (hh:mm)",validation:k?it:[],children:(0,c.jsx)(y.ks,{type:"text",placeholder:"e.g. 10:30",value:h,onChange:e=>v(e.currentTarget.value)})}),(0,c.jsx)(g.zBI,{title:"End time (hh:mm)",validation:w?it:[],children:(0,c.jsx)(y.ks,{type:"text",placeholder:"e.g. 11:30",value:b,onChange:e=>f(e.currentTarget.value)})}),(0,c.jsx)(y.$n,{mode:"ghost",textAlign:"center",disabled:!o||!l||!s||!u||!!h&&!b||!!k||!!w,onClick:()=>{var t;if(!s||!u||!l)return;let i=((e,t,i)=>t3()(0,(1+t.diff(e,i))/o).map(t=>{let n;return n=e.add(t*o,i),{_key:(0,t4.Xp)(12),date:n.format("YYYY-MM-DD"),times:h&&b?{start:h,end:b}:void 0}}))(t2()(s),t2()(u),l),a=[...null!=(t=e.value)?t:[],...i].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime());e.onChange((0,g.hZp)(a)),n(!1)},text:"Generate"})]})})]})}}}),(0,ee.MI)({name:"startDate",type:"date",title:"Start date",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="period"},validation:e=>e.custom(eJ("type","period"))}),(0,ee.MI)({name:"endDate",type:"date",title:"End date",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="period"},validation:e=>e.custom(eJ("type","period"))}),(0,ee.MI)({name:"exceptions",type:"text",title:"Exceptions",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.type)!=="period"}}),ii(e=>{let{parent:t}=e;return["multiple","onRequest"].includes(null==t?void 0:t.type)})],validation:e=>e.required()}),(0,ee.MI)({name:"intro",title:"Intro",description:"Use *bold* for bold and _italic_ for italic text.",type:"text",group:"content"}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"})],groups:tZ}),ia=(0,e6.bl)(io,$,{fieldsGroupName:"content"}),il=(0,ee.U8)({name:x.QI.homePage,type:"document",title:"Home Page",icon:en.fAJ,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.heroWithVideoAndSlideshow,group:"content"}),...eo([J.T.HomePageIntro])?[(0,ee.MI)({name:"intro",title:"Intro",description:"Use *bold* for bold and _italic_ for italic text.",type:"text",group:"content"})]:[],(0,ee.MI)({name:"slides",type:"array",group:"content",title:"Slides",description:"Add the slides to display. If only one, display it as a static header instead",hidden:e=>{var t;let{parent:i}=e,n=null==i||null==(t=i.hero)?void 0:t.type;return void 0!==n&&"slideshow"!==n},validation:e=>e.custom((e,t)=>{var i;let n=t.parent,o=null==n||null==(i=n.hero)?void 0:i.type;return!!o&&"slideshow"!==o||!!e&&!(e.length<1)||"At least one slide is required"}),of:[(0,ee.dO)({type:"object",fields:[(0,ee.MI)({name:"title",type:"string",title:"Title"}),(0,ee.MI)({name:"subtitle",type:"string",title:"Subtitle"}),(0,ee.MI)({name:"extraInfo",type:"string",title:"Label"}),(0,ee.MI)({name:"link",type:x.QI.link,title:"Link to page"}
1),(0,ee.MI)({name:"image",type:x.QI.baseImage,title:"Background image",validation:e=>e.custom(eF)})]})]}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"})],groups:tZ}),ir=(0,e6.bl)(il,$,{isRoot:!0,fieldsGroupName:"content"}),is=(0,ee.U8)({name:x.QI.objectOverviewPage,type:"document",title:"Object overview page",icon:en.vP6,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.hero,group:"content"}),(0,ee.MI)({title:"Pinned art objects",description:"Top pieces or other highlighted art objects that will be shown before all other art objects. Note: any filters applied by the user will override these.",name:"pinnedArtObjects",type:"array",of:[(0,ee.dO)({...ts,name:"item"})],validation:e=>e.unique(),group:"content"})],groups:tZ}),ic=(0,e6.bl)(is,$,{fieldsGroupName:"content"}),id=(0,ee.U8)({name:x.QI.objectPage,type:"document",title:"Object page",icon:en.N5q,fields:[...tK,(0,ee.MI)({name:"artObject",title:"Art object",type:"reference",to:[{type:x.QI.artObject}],validation:e=>e.required(),group:"content"}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"})],groups:tZ}),iu=(0,e6.bl)(id,$,{fieldsGroupName:"content"}),ip=(0,ee.U8)({name:x.QI.overviewPage,type:"document",title:"Overview page",icon:en.Ss4,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.heroWithVideo,group:"content"}),(0,ee.MI)({name:"label",type:"string",title:"Label",description:"Visible in page cards",group:"content"}),(0,ee.MI)({name:"intro",title:"Intro",description:"Use *bold* for bold and _italic_ for italic text.",type:"text",group:"content"}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"})],groups:tZ}),im=(0,e6.bl)(ip,$,{fieldsGroupName:"content"}),ig=(0,ee.U8)({name:x.QI.searchPage,type:"document",title:"Search page",icon:en.WIv,fields:[(0,ee.MI)({title:"Header",name:"hero",type:x.QI.hero,group:"content"}),(0,ee.MI)({name:"suggestedPages",title:"Suggested pages",description:"These pages will be shown when the user hasn't searched for anything yet or when the search doesn't return any results.",type:"array",of:[(0,ee.dO)({name:"link",title:"Link",type:x.QI.link})],group:"content"}),...tK],groups:tZ}),ih=(0,e6.bl)(ig,$,{fieldsGroupName:"content"}),iy=function(){let{initialValue:e,cmsOnly:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cmsOnly:!0};return(0,ee.MI)({name:"title",title:"Title",type:"string",initialValue:e,description:t?eB.cmsOnlyTitle:void 0,validation:t?void 0:e=>e.required()})},iv=(0,ee.U8)({name:x.QI.tagBasedListPage,type:"document",title:"Generated list page",icon:en.Ss4,fields:[...tK,(0,ee.MI)({title:"Header",name:"hero",type:x.QI.hero,group:"content"}),(0,ee.MI)({name:"label",type:"string",title:"Label",description:"Visible in page cards",group:"content"}),(0,ee.MI)({title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})],group:"content"}),(0,ee.MI)({name:"tagsToInclude",type:"array",of:[(0,ee.MI)({name:"tag",type:"reference",title:"Tag",to:[{type:x.QI.tag}]})],group:"content",title:"Include pages with these tags",validation:e=>e.required().min(1),description:"Pages with at least one of these tags will be added to the list."}),(0,ee.MI)({title:"Pinned pages",name:"pinnedPages",type:"array",of:[(0,ee.dO)({type:"reference",to:[{type:x.QI.contentPage},{type:x.QI.eventPage},{type:x.QI.eventOverviewPage},{type:x.QI.objectPage},{type:x.QI.objectOverviewPage},{type:x.QI.tagBasedListPage},{type:x.QI.overviewPage}],validation:e=>e.required(),components:{input:e=>(0,e6.i7)({...e,config:$})}})],group:"content"}),(0,ee.MI)({name:"hasCalendarFilter",title:"Calendar filter?",description:"Add a calendar filter to the page to enable users to filter listed pages by publication date.",type:"boolean",group:"content",initialValue:!1}),(0,ee.MI)({name:"isFilterOr",type:"boolean",title:"Filter OR?",initialValue:!1,group:"content"}),(0,ee.MI)({name:"tagFilters",title:"Tag filters",description:"Add filters to the page to enable users to filter the listed pages by tags. You can create a filter by choosing a title and selecting tags.",type:"array",of:[(0,ee.dO)({name:"filter",title:"Filter",type:"object",fields:[iy({cmsOnly:!1}),(0,ee.MI)({name:"values",title:"Filter values (tags)",type:"array",of:[(0,ee.MI)({name:"tag",type:"reference",title:"Tag",to:[{type:x.QI.tag}
1],validation:e=>e.required()})],validation:e=>e.required().min(1)})]})],group:"content"})],groups:tZ}),ib=(0,e6.bl)(iv,$,{fieldsGroupName:"content"}),iI=(0,h.FO)(),ik=(0,ee.U8)({name:x.QI.collectionSettings,title:"Collection settings",type:"document",fields:iI.artObjects.languageCodes.map(e=>{var t,i;return(0,ee.MI)({name:e,title:null!=(i=null==(t=iI.settings.supportedLanguages[e])?void 0:t.englishLabel)?i:e,type:"object",group:e,fields:[(0,ee.MI)({name:"filters",title:"Order filter values",description:"Add filter values and arrange them in the desired order so that these filter values are always displayed in a fixed order on the website. Filter values that do not need to be displayed in a fixed order will always be placed below the filter values set in a fixed order. An existing filter value will always be displayed.",type:"array",of:[{type:"object",fields:[(0,ee.MI)({name:"key",title:"Filter",type:"string",options:{list:iI.artObjects.filters.map(t=>{var i,n;return{value:t,title:null!=(n=null==(i=e3[e])?void 0:i.artObjectFields[t])?n:t}})},validation:e=>e.required()}),(0,ee.MI)({name:"values",title:"Filter values",description:"The filter value you enter must be exactly the same as the filter value on the website.",type:"array",of:[{type:"string"}],validation:e=>e.required().min(1)})]}]})]})}),groups:iI.artObjects.languageCodes.map((e,t)=>{var i,n;return{name:"".concat(e),title:null!=(n=null==(i=iI.settings.supportedLanguages[e])?void 0:i.englishLabel)?n:e,default:0==t}}),preview:{prepare:()=>({title:"Collection settings"})}}),iw=null==(l=null==(a=(0,eG.f)("footer").buttonsFooterBlock)?void 0:a.hasTitle)||l,ij=(0,ee.U8)({name:x.OM.buttonsFooterBlock,type:"object",title:"Buttons",fields:[iy({cmsOnly:!iw}),(0,ee.MI)({name:"buttons",title:"Buttons",type:"array",of:[(0,ee.dO)({type:x.QI.link})],validation:e=>e.required()})]}),iM=(0,eG.f)("footer"),iT=e=>{let t=iM.linkListFooterBlock[e].hasTitle;return(0,ee.U8)({name:x.OM.linkListFooterBlock,type:"object",title:"Link list",fields:[iy({cmsOnly:t}),(0,ee.MI)({name:"links",title:"Links",type:"array",of:[(0,ee.dO)({type:x.QI.link})],validation:e=>e.required()})]})},iO=(0,ee.U8)({name:x.OM.logoFooterBlock,type:"object",title:"Logo",fields:[iy({cmsOnly:!0,initialValue:"Logo"})]}),ix=(0,ee.U8)({name:x.OM.newsletterFooterBlock,type:"object",title:"Newsletter",fields:[iy(),(0,ee.MI)({name:"text",type:"text",title:"Text"}),(0,ee.MI)({name:"newsletter",title:"Newsletter",type:"reference",to:[{type:"newsletter"}],validation:e=>e.required()})]}),iC=(0,eG.f)("partnerLinksBlock"),iL=(0,ee.U8)({name:x.OM.partnerLinksFooterBlock,type:"object",title:"Partners list",fields:[iy({cmsOnly:!iC.showFooterTitle}),(0,ee.MI)({name:"partners",title:"Partners",type:"array",of:[(0,ee.dO)({type:"object",name:"partner",title:"Partner",fields:[iy({cmsOnly:!1}),(0,ee.MI)({name:"link",title:"Link",type:x.QI.linkWithoutName}),(0,ee.MI)({name:"image",title:"Partner logo",type:x.QI.baseImage,validation:e=>e.required()})]})],validation:e=>e.required()})]}),iQ=(0,ee.U8)({name:x.OM.richTextFooterBlock,type:"object",title:"Text block",fields:[iy({cmsOnly:!1}),ev()]}),iF=(0,eG.f)("footer"),iP="X / Twitter",iS="Facebook",iB="Instagram",iA="Youtube",i_="TikTok",iU="LinkedIn",iD={x:iP,twitter:iP,facebook:iS,instagram:iB,youtube:iA,tiktok:i_,linkedIn:iU},iq=(0,ee.U8)({name:x.OM.socialMediaLinksFooterBlock,type:"object",title:"Social media links",fields:[(0,ee.MI)({name:"title",title:"Title",type:"string",initialValue:"Social media links",description:iF.socialMediaLinksFooterBlock.hasTitle?void 0:eB.cmsOnlyTitle,validation:iF.socialMediaLinksFooterBlock.hasTitle?e=>e.required():void 0}),(0,ee.MI)({name:"links",type:"array",title:"Links",of:[(0,ee.dO)({type:"object",name:"socialMediaLink",title:"Social media link",fields:[(0,ee.MI)({name:"platform",type:"string",title:"Platform",options:{list:[{title:iP,value:"x"},{title:iS,value:"facebook"},{title:iB,value:"instagram"},{title:iA,value:"youtube"},{title:i_,value:"tiktok"},{title:iU,value:"linkedIn"}],layout:"radio"}}),(0,ee.MI)({type:x.QI.linkWithoutName,name:"link",title:"link"})],preview:{select:{platform:"platform"},prepare:e=>{var t;let{platform:i}=e;return{title:null!=(t=iD[i])?t:i}}}})]})]}),iV=(0,eG.f)("footer"),iE=iV.primary.enabledBlocks,iN=iV.secondary.enabledBlocks,iG=null!=(s=null==iV||null==(r=iV.tertiary)?void 0:r.enabledBlocks)?s:{},iR=(0,h.FO)(),iz=(0,ee.U8)({name:x.QI.footer,title:"Footer",type:"document",groups:Object.keys(iR.settings.supportedLanguages).map((e,t)=>{var i,n;return{name:e,title:null!=(n=null==(i=iR.settings.supportedLanguages[e])?void 0:i.englishLabel)?n:e,default:0==t}}),fields:Object.keys(iR.settings.supportedLanguages).map(e=>{var t,i;return(0,ee.MI)({name:e,title:null!=(i=null==(t=iR.settings.supportedLanguages[e])?void 0:t.englishLabel)?i:e,type:"object",fields:[(0,ee.MI)({name:"primaryFooterBlocks",title:"Primary footer blocks",de
1scription:"These links are shown in the top part of the footer",type:"array",of:w()([!!iE.richTextFooterBlock&&iQ,!!iE.logoFooterBlock&&iO,!!iE.newsletterFooterBlock&&ix,!!iE.socialMediaLinksFooterBlock&&iq,!!iE.linkListFooterBlock&&iT(iE.linkListFooterBlock),!!iE.partnerLinksFooterBlock&&iL,!!iE.buttonsFooterBlock&&ij]).map(e=>(0,ee.dO)(e)),validation:e=>[e.required(),e.length(iV.primary.gridPlacements.length)]}),(0,ee.MI)({name:"secondaryFooterBlocks",title:"Secondary footer blocks",description:"",type:"array",of:w()([!!iN.richTextFooterBlock&&iQ,!!iN.logoFooterBlock&&iO,!!iN.newsletterFooterBlock&&ix,!!iN.socialMediaLinksFooterBlock&&iq,!!iN.linkListFooterBlock&&iT(iN.linkListFooterBlock),!!iN.partnerLinksFooterBlock&&iL,!!iN.buttonsFooterBlock&&ij]).map(e=>(0,ee.dO)(e)),validation:e=>[e.required(),e.length(iV.secondary.gridPlacements.length)]}),...iV.tertiary?[(0,ee.MI)({name:"tertiaryFooterBlocks",title:"Tertiary footer blocks",description:"",type:"array",of:w()([!!iG.richTextFooterBlock&&iQ,!!iG.logoFooterBlock&&iO,!!iG.newsletterFooterBlock&&ix,!!iG.socialMediaLinksFooterBlock&&iq,!!iG.linkListFooterBlock&&iT(iG.linkListFooterBlock),!!iG.partnerLinksFooterBlock&&iL,!!iG.buttonsFooterBlock&&ij]).map(e=>(0,ee.dO)(e)),validation:e=>{var t,i,n;return[e.required(),e.length(null!=(n=null==iV||null==(i=iV.tertiary)||null==(t=i.gridPlacements)?void 0:t.length)?n:0)]}})]:[]],group:e})}),preview:{prepare:()=>({title:"Footer"})}}),iH=(0,h.FO)(),iW=(0,ee.U8)({name:x.QI.globalObjectEnrichment,title:"Global object enrichment",type:"document",icon:en.qDL,fields:iH.artObjects.languageCodes.map(e=>{var t,i;return(0,ee.MI)({name:e,title:null!=(i=null==(t=iH.settings.supportedLanguages[e])?void 0:t.englishLabel)?i:e,type:"object",group:e,fields:[(0,ee.MI)({description:"Global enrichment is only used for objects that do not have any of their own enrichment",title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})]})]})}),groups:iH.artObjects.languageCodes.map((e,t)=>{var i,n;return{name:e,title:null!=(n=null==(i=iH.settings.supportedLanguages[e])?void 0:i.englishLabel)?n:e,default:0===t}}),preview:{prepare:()=>({title:"Global object enrichment"})}}),i$=(0,h.FO)().settings.supportedLanguages,iY=(0,ee.U8)({name:x.QI.layout,title:"Layout",type:"document",groups:Object.entries(i$).map((e,t)=>{let[i,n]=e;return{name:i,title:n.englishLabel,default:0==t}}),fields:Object.entries(i$).map(e=>{let[t,i]=e;return(0,ee.MI)({name:t,title:i.englishLabel,type:"object",initialValue:()=>({cookieBar:void 0,emergencyBanner:void 0}),fields:[(0,ee.MI)({name:"cookieBar",title:"Cookie bar",type:"object",fields:[(0,ee.MI)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,ee.MI)({...ev(),name:"text",title:"Text",validation:e=>e.required()}),(0,ee.MI)({name:"acceptBtnText",title:"Accept button text",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"declineBtnText",title:"Decline button text",type:"string",validation:e=>e.required()})],components:{input:ew}}),(0,ee.MI)({name:"emergencyBanner",title:"Emergency banner",type:"object",initialValue:{link:void 0},fields:[(0,ee.MI)({name:"text",title:"Text",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"link",title:"Link",type:x.QI.link})],components:{input:ew}})],group:t})}),preview:{prepare:()=>({title:"Layout"})}}),iK=(0,eG.f)("navigationMenu"),iZ=(0,h.FO)().settings.supportedLanguages,iJ=(0,ee.U8)({name:x.QI.navigation,title:"Navigation",type:"document",groups:Object.entries(iZ).map((e,t)=>{let[i,n]=e;return{name:i,title:n.englishLabel,default:0==t}}),fields:Object.entries(iZ).map(e=>{var t,i;let[n,o]=e;return(0,ee.MI)({name:n,title:o.englishLabel,type:"object",fields:[(0,ee.MI)({name:"highlightedLinks",title:"Highlighted links",type:"array",of:[(0,ee.dO)({type:x.QI.link})]}),(0,ee.MI)({name:"callToAction",type:x.QI.link,title:"Navigation call to action"}),...iK.enableOverlayImage?[(0,ee.MI)({name:"overlayImage",type:x.QI.baseImage,title:"Overlay image",description:"Image that is shown as an overlay on top of the page if the navigation menu is opened",validation:e=>e.required()})]:[],(0,ee.MI)({name:"searchPageLink",type:x.QI.linkWithoutName,title:"Search page"}),(0,ee.MI)({name:"mainLinkGroups",title:"Main link groups",type:"array",of:[{type:"object",fields:[(0,ee.MI)({name:"title",title:"Title",type:"string"}),(0,ee.MI)({name:"links",title:"Links",type:"array",of:[{type:x.QI.link}]})]}]}
1),(0,ee.MI)({name:"secondaryLinksTitle",title:"Secondary links title",type:"string"}),(0,ee.MI)({name:"secondaryLinks",title:"Secondary links",type:"array",hidden:!iK.secondaryLinks&&!(null==(t=iK.desktop)?void 0:t.secondaryLinks),of:[{type:x.QI.link}]}),(0,ee.MI)({...ev(),name:"text",title:"Text"}),(0,ee.MI)({name:"bottomLinks",title:"Bottom links",type:"array",hidden:!iK.bottomLinks&&!(null==(i=iK.desktop)?void 0:i.bottomLinks),of:[{type:x.QI.link}]})],group:n})}),preview:{prepare:()=>({title:"Navigation"})}}),iX=(0,ee.U8)({name:x.QI.newsletter,title:"Newsletter",type:"document",icon:en.u6c,fields:[(0,ee.MI)({type:"string",name:"title",validation:e=>e.required()}),(0,ee.MI)({type:"string",name:"audienceId",title:"Audience ID",validation:e=>e.required()})],preview:{select:{title:"title"},prepare:e=>{let{title:t}=e;return{title:t||"Newsletter"}}}}),i0=(0,h.FO)(),i1=(0,ee.U8)({name:x.QI.notFoundContent,title:"404 page content",type:"document",icon:en.YZv,fields:Object.keys(i0.settings.supportedLanguages).map(e=>{var t,i;return(0,ee.MI)({name:e,title:null!=(i=null==(t=i0.settings.supportedLanguages[e])?void 0:t.englishLabel)?i:e,type:"object",fields:[iy({cmsOnly:!1}),(0,ee.MI)({title:"Header",name:"hero",type:x.QI.hero}),(0,ee.MI)({name:"intro",title:"Intro",type:"text"}),...i0.theme.global.colors.theme.levels.page?[e_]:[],(0,ee.MI)({name:"suggestedPages",title:"Suggested pages",type:"array",of:[(0,ee.dO)({name:"link",title:"Link",type:x.QI.link})]})],group:e})}),groups:Object.keys(i0.settings.supportedLanguages).map((e,t)=>{var i,n;return{name:"".concat(e),title:null!=(n=null==(i=i0.settings.supportedLanguages[e])?void 0:i.englishLabel)?n:e,default:0==t}}),preview:{prepare:()=>({title:"404 page content"})}}),i8=()=>(0,h.FO)(),i2=(e,t)=>{let i=e.trim(),n=/^https?:\/\//i.test(i)?(()=>{try{return new URL(i).pathname}catch(e){return}})():i;if(n)return((e,t)=>{let i=t?[t]:Object.keys(i8().artObjects.collectionSlugs),n=e.startsWith("/")?e:"/".concat(e);for(let e of i){let t=i8().artObjects.collectionSlugs[e];if(!t)continue;let i="/".concat(e,"/").concat(t,"/");if(n.startsWith(i))return n.slice(i.length).split(/[?#]/)[0]||void 0}})(n,t)},i4=(0,h.FO)(),i5=e=>{let t=i4.artObjects.collectionSlugs[e];return t?"â¦/".concat(e,"/").concat(t,"/"):"â¦/object-path/"},i3=/^[a-z0-9]+(?:-[a-z0-9]+)*(?:\/[a-z0-9]+(?:-[a-z0-9]+)*)*$/,i9=(0,ee.U8)({name:x.QI.objectEnrichment,title:"Object enrichment",type:"document",icon:en.qDL,fields:i4.artObjects.languageCodes.map(e=>{var t,i;return(0,ee.MI)({name:e,title:null!=(i=null==(t=i4.settings.supportedLanguages[e])?void 0:t.englishLabel)?i:e,type:"object",group:e,fields:[iy({cmsOnly:!0}),(0,ee.MI)({name:"slug",title:"Slug",type:"string",description:"Must match the art object's path (without language and collection prefix) to associate this enrichment with that object â for Teylers this includes the category segment (e.g. kunst/object-id/object-slug). You can paste a full object URL (e.g. ".concat(i5(e),"kunst/naam-van-het-kunstwerk) and we'll suggest the correct slug."),validation:t=>t.required().custom(t=>{let i=null==t?void 0:t.trim();if(!i)return"Slug is required.";let n=i2(i,e);if(n&&n!==i)return'You entered a full URL or path. Use only the object slug: "'.concat(n,'" (the part after ').concat(i5(e),").");let o=(e=>{let t=new Set;for(let e of Object.values(i8().artObjects.collectionSlugs)){let i=e.split("/");for(let e=0;e<i.length;e++)t.add(i.slice(e).join("/"))}for(let i of[...t].sort((e,t)=>t.length-e.length)){if(e===i)return"";let t="".concat(i,"/");if(e.startsWith(t))return e.slice(t.length)}})(i);return void 0!==o?o?'Do not include the collection prefix. Use only the object slug: "'.concat(o,'" (the part after ').concat(i5(e),")."):"Do not include the collection prefix. Use only the object slug (the part after ".concat(i5(e),")."):i2(i)&&!n?"This URL is for another language. Use a ".concat(e," collection URL (e.g. ").concat(i5(e),"object-slug)."):i.startsWith("/")||i.endsWith("/")?"Slugs must not start or end with a slash.":i.startsWith("-")||i.endsWith("-")||i.includes("//")?"Use a valid object path (e.g. naam-van-het-kunstwerk or instrumenten/fk-0624-01/naam-van-het-kunstwerk).":!!i3.test(i)||"
1Use only lowercase letters, numbers, hyphens and slashes (e.g. naam-van-het-kunstwerk). No spaces or special characters."})}),(0,ee.MI)({description:"Enrichment content for this language",title:"Content groups",name:"contentGroups",type:"array",of:[(0,ee.dO)({type:x.QI.contentGroup})]})]})}),groups:i4.artObjects.languageCodes.map((e,t)=>{var i,n;return{name:e,title:null!=(n=null==(i=i4.settings.supportedLanguages[e])?void 0:i.englishLabel)?n:e,default:0===t}}),preview:{select:{title:"".concat(Object.keys(i4.settings.supportedLanguages)[0],".title"),slug:"".concat(Object.keys(i4.settings.supportedLanguages)[0],".slug")},prepare:e=>{let{title:t,slug:i}=e;return{title:t||(i?"".concat(i):"Object enrichment")}}}}),i7="\n componentTheme-> {\n lightMode {\n foregroundColor,\n backgroundColor,\n buttonColor,\n buttonTextColor\n },\n darkMode {\n foregroundColor,\n backgroundColor,\n buttonColor,\n buttonTextColor\n }\n }\n",i6='\n "title": select(\n showTitle == true => title,\n undefined\n )\n',ne='\n external,\n artObject,\n name,\n ...select(\n external == true => {\n url,\n openInNewTab\n },\n external != true => {\n ...select(\n artObject == true => {\n "identifier": artObjectLink.identifier\n },\n artObject != true => {\n page,\n params\n } \n )\n }\n )\n',nt='\n external,\n artObject,\n ...select(\n external == true => {\n url,\n openInNewTab\n },\n external != true => {\n ...select(\n artObject == true => {\n "identifier": artObjectLink.identifier\n },\n artObject != true => {\n page\n }\n )\n }\n )\n',ni="\n _id,\n from,\n to {\n ".concat(ne,"\n }\n"),nn='\n assetId,\n url,\n metadata {\n lqip,\n dimensions {\n width,\n height,\n aspectRatio\n },\n "backgroundColor": palette.dominant.background\n },\n ...*[_type == "'.concat(x.QI.mpImage,'" && image.asset._ref == ^._id][0] {\n "altText": coalesce(alt[$languageCode], alt["nl"]),\n "title": coalesce(title[$languageCode], title["nl"]),\n "description": coalesce(description[$languageCode], description["nl"])\n }\n'),no='\n hotspot,\n crop {\n ...,\n "width": round(^.asset->metadata.dimensions.width - (left + right) * ^.asset->metadata.dimensions.width),\n "height": round(^.asset->metadata.dimensions.height - (top + bottom) * ^.asset->metadata.dimensions.height),\n },\n asset-> {\n '.concat(nn,"\n }\n"),na='\n ...,\n markDefs[] {\n ...,\n _type == "link" => {\n '.concat(nt,'\n },\n _type == "cta" => {\n ').concat(nt,"\n }\n }\n"),nl="\n title,\n type,\n subtitle,\n backgroundImage {\n ".concat(no,'\n },\n ...select(type == "video" => {\n "videoDesktop": videoDesktop.asset->url,\n "videoMobile": videoMobile.asset->url,\n }),\n primaryCta {\n ').concat(ne,"\n },\n secondaryCta {\n ").concat(ne,"\n },\n hideImageOnPage,\n ").concat(i7,',\n ...select(type == "split" => {\n "splitBlockTheme": splitBlockTheme-> {\n lightMode {\n foregroundColor,\n backgroundColor,\n buttonColor,\n buttonTextColor\n },\n darkMode {\n foregroundColor,\n backgroundColor,\n buttonColor,\n buttonTextColor\n }\n }\n })\n'),nr="\n _type,\n _key\n",ns="\n ".concat(nr,',\n title,\n description,\n "audioFile": audioFile.asset->\n'),nc="\n ".concat(nr,",\n title,\n text,\n newsletter->\n"),nd="\n ".concat(nr,",\n content[] {\n ").concat(na,"\n }\n"),nu="\n ".concat(nr,',\n title,\n description,\n items[] {\n _key,\n title,\n ...select(\n isImageFile == true => {\n "url": imageFile.asset->url\n },\n isImageFile != true => {\n "url": file.asset->url\n }\n )\n }\n'),np="\n ".concat(nr,",\n layoutKey,\n image {\n ").concat(no,"\n },\n"),nm="\n ".concat(nr,",\n ").concat(i6,",\n url,\n provider,\n thumbnail {\n ").concat(no,"\n },\n caption,\n source\n"),ng="\n ".concat(nr,",\n formUrl,\n formBuilderTool\n"),nh="\n ...,\n ".concat(nr,",\n ").concat(i6,",\n provider\n"),ny="\n ".concat(nr,",\n leftImage {\n ").concat(no,"\n },\n rightImage {\n ").concat(no,"\n }\n"),nv="\n start,\n end\n",nb="\n ".concat(nr,",\n layoutKey,\n ").concat(i7,',\n items[] {\n _type == "').concat(x.QI.richText,'" => {\n ').concat(nd,'\n },\n _type == "').concat(x.QI.image,'" => {\n ').concat(np,'\n },\n _type == "').concat(x.QI.video,'" => {\n ').concat(nm,'\n },\n _type == "').concat(x.QI.download,'" => {\n ').concat(nu,'\n },\n _type == "').concat(x.QI.audioBlock,'" => {\n ').concat(ns,'\n },\n _type == "').concat(x.QI.newsletterBlock,'" => {\n ').concat(nc,"\n }\n }\n"),nf='\n type,\n ...select(\n type == "single" =>
1 {\n date,\n times {\n '.concat(nv,'\n }\n },\n type == "multiple" => {\n description,\n dates[] {\n date,\n times {\n ').concat(nv,'\n }\n }\n },\n type == "period" => {\n startDate,\n endDate,\n exceptions,\n times {\n ').concat(nv,'\n }\n },\n type == "always" => {\n times {\n ').concat(nv,"\n }\n }\n )\n"),nI="\n ".concat(nr,",\n ").concat(i6,',\n items[] {\n _key,\n title,\n items[] {\n _type == "').concat(x.QI.richText,'" => {\n ').concat(nd,'\n },\n _type == "').concat(x.QI.image,'" => {\n ').concat(np,'\n },\n _type == "').concat(x.QI.video,'" => {\n ').concat(nm,"\n },\n }\n }\n"),nk="\n ".concat(nr,",\n quote,\n credits\n"),nw="\n ".concat(nr,",\n layoutKey,\n items[] {\n _key,\n caption,\n source,\n image {\n ").concat(no,"\n }\n }\n"),nj="\n ".concat(nr,",\n ").concat(i6,",\n caption,\n layoutKey,\n table,\n"),nM="\n title, \n description,\n label,\n hero {\n ".concat(nl,",\n }\n"),nT="\n ".concat(nr,",\n _id,\n title,\n description,\n hero {\n ").concat(nl,',\n },\n "category": category->title,\n "location": location->title,\n "locationAddition": locationAddition->title,\n "audience": audience->title,\n price,\n label,\n dateSettings {\n ').concat(nf,"\n },\n intro\n"),nO=(0,h.FO)().artObjects.fields,nx='\n description,\n "title": artObject->title,\n "artObjectDescription": artObject->description,\n "label": artObject->label,\n '.concat(nO.map(e=>'"'.concat(e,'": artObject->').concat(e)).join(","),',\n "micrio": artObject->micrio,\n'),nC="\n _id,\n _updatedAt,\n _type,\n ".concat('\n _id,\n _type,\n title, \n "themeColor": themeColor.label,\n thirdPartyIntegrations[]-> {\n '.concat("\n ...,\n _id,\n _type,\n title,\n global,\n provider\n","\n }\n"),',\n _type == "').concat(x.QI.tagBasedListPage,'" => {\n ').concat(nM,'\n },\n _type == "').concat(x.QI.overviewPage,'" => {\n ').concat(nM,'\n },\n _type == "').concat(x.QI.contentPage,'" => {\n ').concat("\n title, \n description,\n label,\n publishedDate,\n intro,\n hero {\n ".concat(nl,",\n }\n"),'\n },\n _type == "').concat(x.QI.eventPage,'" => {\n ').concat(nT,'\n },\n _type == "').concat(x.QI.eventOverviewPage,'" => {\n ').concat(nM,'\n },\n _type == "').concat(x.QI.objectPage,'" => {\n ').concat(nx,'\n },\n _type == "').concat(x.QI.objectOverviewPage,'" => {\n ').concat(nM,"\n },\n"),nL="\n ".concat(nr,",\n layoutKey,\n ").concat(i6,",\n intro,\n linkToAll {\n ").concat(ne,"\n },\n ").concat("\n filters[] {\n key,\n values\n }\n","\n"),nQ="\n ".concat(nr,",\n ").concat(i6,",\n intro,\n linkToAll {\n ").concat(ne,'\n },\n layoutKey,\n cardLinks[] {\n artObject,\n ...select(\n artObject == true => {\n "identifier": artObjectLink.identifier\n },\n artObject != true => {\n link,\n "data": link-> {\n ').concat(nC,"\n }\n }\n ),\n title,\n description,\n ctaText,\n cardImageOverride {\n ").concat(no,"\n }\n },\n isFilterOr,\n tagsToInclude[]\n"),nF="\n ".concat(nr,",\n micrio {\n ").concat("\n id,\n width,\n height,\n aspectRatio,\n lqip\n","\n }\n"),nP="\n ".concat(nr,",\n html\n"),nS="\n ".concat(nr,",\n title,\n showTitle,\n items[] {\n ").concat(nr,",\n description,\n link {\n ").concat(ne,"\n }\n }\n"),nB="\n ".concat(nr,",\n title,\n showTitle,\n partners[] {\n ").concat(nr,",\n title,\n link {\n ").concat(ne,"\n },\n image {\n ").concat(no,"\n }\n }\n"),nA="\n ".concat(nr,",\n icon,\n text\n");'\n _key,\n _type,\n title,\n "themeColor": themeColor.label,\n content[] {\n _type == "'.concat(x.QI.richText,'" => {\n ').concat(nd,'\n },\n _type == "').concat(x.QI.image,'" => {\n ').concat(np,'\n },\n _type == "').concat(x.QI.video,'" => {\n ').concat(nm,'\n },\n _type == "').concat(x.QI.twoColumn,'" => {\n ').concat(nb,'\n },\n _type == "').concat(x.QI.accordion,'" => {\n ').concat(nI,'\n },\n _type == "').concat(x.QI.quote,'" => {\n ').concat(nk,'\n },\n _type == "').concat(x.QI.carousel,'" => {\n ').concat(nw,'\n },\n _type == "').concat(x.QI.table,'" => {\n ').concat(nj,'\n },\n _type == "').concat(x.QI.highlightedPageCards,'" => {\n ').concat(nQ,'\n },\n _type == "').concat(x.QI.highlightedObjectCards,'" => {\n ').concat(nL,'\n },\n _type == "').concat(x.QI.download,'" => {\n ').concat(nu,'\n },\n _type == "').concat(x.QI.form,'" => {\n ').concat(ng,'\n },\n _type == "').concat(x.QI.micrioBlock,'" => {\n ').concat(nF,'\n },\n _type == "').concat(x.QI.comparisonSlider,'" => {\n ').concat(ny,'\n },\n _type == "').concat(x.QI.audioBlock,'" => {\n ').concat(ns,'\n },\n _type == "').concat(x.QI.newsletterBlock,'" => {\n ').concat(nc,'\n },\n _type == "').concat(x.QI.rawHtmlBlock,'" => {\n ').concat(nP,'\n },\n _type == "').concat(x.QI.embedBlock,'" => {\n ').concat(nh,'\n },\n _type == "').concat(x.QI.partnerLinksBlock,'" => {\n ').concat(nB,'\n },\n _type == "').concat(x.QI.linkListBlock,'" => {\n ').concat(nS,'\n },\n _type == "').concat(x.QI.notificationBlock,'" => {\n ').concat(nA,"\n }\n }\n");let n_=async(e,t)=>{if(!e)return!0;
1if(!e.startsWith("/"))return'Redirect from URL must start with a "/"';if(e.includes("*")&&!(e=>{if(!e.endsWith("/*"))return!1;let t=e.slice(0,-2);return!!t.startsWith("/")&&!(t.length<=1)&&!t.includes("*")})(e))return'Wildcard redirects must end with "/*", e.g. "/nl/collectie-online/*"';let i=t.document,n=t.getClient({apiVersion:S}),o=await n.fetch('*[_type == "'.concat(x.QI.redirect,'"] {\n ').concat(ni,"\n }"));return!o||!o.filter(e=>e._id.replace("drafts.","")!==(null==i?void 0:i._id.replace("drafts.",""))).some(t=>t.from===e)||"There is already a redirect for this URL."},nU=(0,ee.U8)({name:x.QI.redirect,title:"Redirect",type:"document",icon:en.yBO,fields:[(0,ee.MI)({name:"from",title:"From url",description:'The url to redirect from. Must start with a "/". Add "/*" at the end to redirect an entire section, e.g. "/nl/collectie-online/*".',type:"string",validation:e=>e.required().custom(n_)}),(0,ee.MI)({name:"to",title:"To",type:x.QI.linkWithoutName,validation:e=>e.required()})],preview:{select:{from:"from",toPage:"to.page.title",toUrl:"to.url"},prepare:e=>{let{from:t,toPage:i,toUrl:n}=e;return{title:"".concat(t," to ").concat(null!=i?i:n)}}}});var nD=i(78411),nq=i.n(nD),nV=i(58179),nE=i.n(nV);let nN=(0,h.FO)().settings.supportedLanguages,nG=(0,h.FO)().artObjects,nR=(0,ee.U8)({name:x.QI.strings,title:"Strings",type:"document",groups:Object.entries(nN).map((e,t)=>{let[i,n]=e;return{name:i,title:n.englishLabel,default:0==t}}),fields:Object.entries(nN).map(e=>{let[t,i]=e;return(0,ee.MI)({name:t,title:i.englishLabel,type:"object",fields:[...Object.keys(nq()(e5,["artObjectFields"])).map(e=>{var i,n;return(0,ee.MI)({name:e,type:"string",title:e,initialValue:null!=(n=null==(i=e3[t])?void 0:i[e])?n:""})}),(0,ee.MI)({title:"Art object fields",name:"artObjectFields",type:"object",fields:nE()(nG.fields.concat(["title","description"])).map(e=>(0,ee.MI)({name:e,type:"string",title:ey()(e),initialValue:e}))})],group:t})}),preview:{prepare:()=>({title:"Translations"})}}),nz=[i(84455).xO],nH=(n=(0,h.FO)().thirdPartyIntegrationProviders,nz.filter(e=>n.includes(e.id))),nW=(0,ee.U8)({name:x.QI.thirdPartyIntegration,title:"Third-party integration",type:"document",icon:en.gP2,fields:[(0,ee.MI)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,ee.MI)({name:"provider",title:"Provider",type:"string",options:{list:nH.map(e=>({title:e.title,value:e.id})),layout:"dropdown"},validation:e=>e.required()}),...nH.flatMap(e=>e.fields.map(t=>(0,ee.MI)({...(e=>{if("string"===e.type){let{validation:t,...i}=e;return(0,ee.MI)({...i,validation:e=>e.custom(e=>{var i;return null==(i=null==t?void 0:t(String(null!=e?e:"")))||i})})}return e})(t),hidden:t=>{let{document:i}=t;return(null==i?void 0:i.provider)!==e.id}}))),(0,ee.MI)({name:"global",title:"Global",type:"boolean",initialValue:!1,description:'When checked, this integration loads on every page. Otherwise select the pages that should include it under "Third-party integrations" in a pageâs settings.'})],preview:{select:{title:"title",provider:"provider",global:"global"},prepare:e=>{var t,i;let{title:n,provider:o,global:a}=e,l=null!=(i=null==(t=nH.find(e=>e.id===o))?void 0:t.title)?i:o;return{title:n,subtitle:"".concat(l).concat(a?" \xb7 Show on every page":"")}}}}),n$=[ir,tX,ia,t1,im,ib,iu,ic,ih,tD,tq,eS,tQ,tS,tB,tf,tW,tV,t$,...[nR,iJ,nU,iY,iz,ik,iW,i9,es,ec,ed,ei,eg,ef,i1,iX,eu,...eo([J.T.ComponentThemes])?[er]:[],nW].map(e=>X.has(e.name)?(e=>{var t;return{...e,options:{...e.options,aiAssist:{...null==(t=e.options)?void 0:t.aiAssist,exclude:!0}}}})(e):e)],nY=(0,h.FO)(),nK=new Set(["strings"]),nZ=new Set(["publish","discardChanges","restore"]),nJ=(0,h.FO)().settings.supportedLanguages,nX={basePath:"/cms",auth:{loginMethod:"token"},schema:{types:n$,templates:e=>e.filter(e=>!x.bw.includes(e.id))},document:{actions:(e,t)=>{let{schemaType:i}=t;return nK.has(i)?e.filter(e=>{let{action:t}=e;return t&&nZ.has(t)}):x.bw.includes(i)?[...e,b.VD].filter(e=>"DeleteAction"!==e.name):e},unstable_languageFilter:e=>[C,...e]},plugins:[(0,j.Cw)({structure:e=>e.list().title("Website").items([e.listItem().title("Pages").child((0,e6.Vr)(e,{config:$,extendDocumentList:e=>e.id("pages").title("Pages").apiVersion(S)})),e.listItem().title("Archived pages").child(e.documentList().id("archivedPages").apiVersion(S).filter("_type in [".concat(Object.values(x.Tb).map(e=>'"'.concat(e,'"')).join(", "),"] && isArchived == true")).title("Archived pages")),...nY.modules.collection?[e.listItem().title("Collection").id("collection").icon(en.qDL).child(e.list().id("collection").title("Collection").items([e.listItem().title("Collection settings").id("collectionSettings").icon(en.qDL).child(e.document().schemaType(x.QI.c
1ollectionSettings).title("Collection settings").documentId(x.QI.collectionSettings)),e.listItem().title("Global object enrichment").id("globalObjectEnrichment").icon(en.qDL).child(e.document().schemaType(x.QI.globalObjectEnrichment).title("Global object enrichment").documentId(x.QI.globalObjectEnrichment)),e.listItem().title("Object enrichment").id("objectEnrichment").icon(en.qDL).child(e.documentTypeList(x.QI.objectEnrichment).title("Object enrichment"))]))]:[],e.listItem().title("Images").id("images").icon(en.xfq).child(e.documentTypeList(x.QI.mpImage)),e.divider(),e.listItem().title("Site settings").id("siteSettings").icon(en.DP5).child(e.list().id("siteSettings").title("Site settings").items([e.listItem().title("Translations").id("strings").icon(en.H3M).child(e.document().schemaType("strings").title("Translations").documentId("strings").initialValueTemplate("strings")),e.divider(),e.listItem().title("Layout").id("layout").icon(en.aL$).child(e.document().schemaType("layout").title("Layout").documentId(x.QI.layout)),e.listItem().title("Main navigation").id("navigation").icon(en.ZB$).child(e.document().schemaType("navigation").title("Main navigation").documentId(x.QI.navigation)),e.listItem().title("Footer").id("footer").icon(en.ZB$).child(e.document().schemaType("footer").title("Footer").documentId(x.QI.footer)),e.listItem().title("Newsletters").id("newslettersSettings").icon(en.u6c).child(e.documentTypeList(x.QI.newsletter).title("Newsletters")),e.listItem().title("Redirects").id("redirects").icon(en.yBO).child(e.documentTypeList(x.QI.redirect)),e.listItem().title("404 page").id("404PageContent").icon(en.YZv).child(e.document().schemaType(x.QI.notFoundContent).title("Not found page").documentId(x.QI.notFoundContent)),...eo([J.T.ComponentThemes])?[e.listItem().title("Component Themes").id("componentThemes").icon(en.IOt).child(e.documentTypeList(x.QI.componentTheme).title("Component Themes"))]:[],...nY.thirdPartyIntegrationProviders.length?[e.listItem().title("Third-party integrations").id("thirdPartyIntegrations").icon(en.gP2).child(e.documentTypeList(x.QI.thirdPartyIntegration).title("Third-party integrations"))]:[],e.listItem().title("AI instructions").id("aiInstructions").icon(en.BZI).child(e.documentTypeList(O.uv).title("AI instructions"))])),e.listItem().id("eventData").title("Event data").icon(en.CTc).child(e.list().id("eventData").title("Event data").items([e.listItem().title("Event categories").id("eventCategories").icon(en.VEy).child(e.documentTypeList(x.QI.eventCategory)),e.listItem().title("Locations").id("locations").icon(en.tsw).child(e.documentTypeList(x.QI.location)),e.listItem().title("Location additions").id("locationAdditions").icon(en.tsw).child(e.documentTypeList(x.QI.locationAddition)),e.listItem().title("Audiences").id("audiences").icon(en.c2u).child(e.documentTypeList(x.QI.audience))])),e.listItem().title("Tags").id("tags").icon(en.gqV).child(e.documentTypeList(x.QI.tag)),...nY.modules.collection?[]:[e.listItem().title("Art objects").id("artobjects").icon(en.vP6).child(e.documentTypeList(x.QI.artObject))]]),defaultDocumentNode:(e,t)=>{let{schemaType:i,getClient:n}=t,o=n({apiVersion:S});return x.Tb.includes(i)?e.document().views([e.view.form(),e.view.component(R.v).options({url:e=>K(o,e),showDisplayUrl:!1}).title("Preview")]):i===x.QI.tag?e.document().views([e.view.form(),e.view.component(G.A).options({params:{id:"_id"},query:"*[defined(tags) && count(tags[_ref == $id]) > 0]"}).title("Tagged pages")]):e.document().views([e.view.form()])}}),(e=>{let t=Object.keys(e),i=Object.entries(e).map(e=>{let[t,i]=e;return{id:t,title:i.englishLabel}});return(0,O.Cn)({assist:{maxPathDepth:6,localeSettings:e=>{let{defaultSettings:t}=e;return{...t,locale:"nl-NL",timeZone:"Europe/Amsterdam"}}},translate:{styleguide:"Use formal but accessible museum website language. Preserve proper nouns (museum name, artwork titles, artist names, place names) unless a well-known translation exists. Do not translate URLs, IDs, product names, or technical identifiers. Keep the same meaning and tone as the source text.",document:{languageField:"language",documentTypes:x.bw},field:{documentTypes:[x.QI.mpImage],languages:i,translationOutputs:(e,i,n,o)=>
1{if(!("object"===i.jsonType&&i.name===x.QI.localeString&&n===e.name&&t.includes(e.name)))return;let a=e.path.slice(0,-1);return o.map(e=>({id:e,outputPath:[...a,e]}))}}}})})(nJ),(0,I.$)({defaultApiVersion:S}),(0,M.$_)(),(0,f.tp)(),(0,T.g)(),(0,b.KY)({supportedLanguages:Object.entries(nJ).map(e=>{let[t,i]=e;return{id:t,title:i.englishLabel}}),weakReferences:!0,schemaTypes:x.bw,callback:async e=>{let{newDocument:t,destinationLanguageId:i,client:n}=e;if(x.Tb.includes(t._type)){var o,a;let e=null==(o=t.parent)?void 0:o._ref,l=e?await n.fetch('*[_type == "translation.metadata" && references($ref)][0].translations',{ref:e}):[],r=null==l||null==(a=l.find(e=>e._key===i))?void 0:a.value._ref;await n.patch(t._id).set({slug:{current:null},...r&&{parent:{_type:"reference",_ref:r}}}).commit()}}})],tools:(e,t)=>{var i;let n=null==(i=t.currentUser)?void 0:i.roles.some(e=>"administrator"===e.name||"developer"===e.name);return w()([...e.filter(e=>"vision"!==e.name||n).map(e=>{let t=e.component;return"media"===e.name?{...e,component:()=>(0,c.jsx)(y.so,{id:"media-plugin",height:"fill",flex:1,direction:"column",children:(0,c.jsx)(t,{tool:e})})}:e}),{title:"Micrio",name:"micrio",icon:L,component:N}])},form:{image:{assetSources:()=>[M.yO]}}},n0=()=>{var e;let t=(0,h.FO)(),i=u()({},nX,t.sanity),n=(0,g.C8j)({...i,studio:{...i.studio,components:{...null==(e=i.studio)?void 0:e.components,navbar:v}}});return(0,c.jsx)(p.EQ,{config:n})}},53844:(e,t,i)=>{"use strict";i.d(t,{OM:()=>a,QI:()=>r,Tb:()=>s,bw:()=>c});let n=(0,i(92355).FO)(),o={homePage:"homePage",contentPage:"contentPage",eventPage:"eventPage",eventOverviewPage:"eventOverviewPage",overviewPage:"overviewPage",tagBasedListPage:"tagBasedListPage",objectPage:"objectPage",objectOverviewPage:"objectOverviewPage",searchPage:"searchPage"},a={richTextFooterBlock:"richTextFooterBlock",logoFooterBlock:"logoFooterBlock",newsletterFooterBlock:"newsletterFooterBlock",linkListFooterBlock:"linkListFooterBlock",socialMediaLinksFooterBlock:"socialMediaLinksFooterBlock",partnerLinksFooterBlock:"partnerLinksFooterBlock",buttonsFooterBlock:"buttonsFooterBlock"},l={objectEnrichment:"objectEnrichment",eventCategory:"eventCategory",location:"location",locationAddition:"locationAddition",audience:"audience",artObject:"artObject",mpImage:"mpImage",componentTheme:"componentTheme",thirdPartyIntegration:"thirdPartyIntegration"},r={...o,link:"object:link",linkWithoutName:"object:linkWithoutName",baseImage:"object:baseImage",image:"object:image",hero:"object:hero",heroWithVideo:"object:heroWithVideo",heroWithVideoAndSlideshow:"object:heroWithVideoAndSlideshow",contentGroup:"object:contentGroup",richText:"object:richText",accordion:"object:accordion",download:"object:download",twoColumn:"object:twoColumn",form:"object:form",quote:"object:quote",video:"object:video",carousel:"object:carousel",table:"object:table",highlightedPageCards:"object:highlightedPageCards",highlightedObjectCards:"object:highlightedObjectCards",micrio:"object:micrio",micrioBlock:"object:micrioBlock",localeString:"object:localeString",comparisonSlider:"object:comparisonSlider",audioBlock:"object:audioBlock",newsletterBlock:"object:newsletterBlock",embedBlock:"object:embedBlock",rawHtmlBlock:"object:rawHtmlBlock",readMoreDivider:"object:readMoreDivider",partnerLinksBlock:"object:partnerLinksBlock",notificationBlock:"object:notificationBlock",linkListBlock:"object:linkListBlock",strings:"strings",navigation:"navigation",redirect:"redirect",footer:"footer",notFoundContent:"notFoundContent",settings:"settings",collectionSettings:"collectionSettings",globalObjectEnrichment:"globalObjectEnrichment",layout:"layout",newsletter:"newsletter",...l,tag:"tag"},s=Object.values(o).filter(e=>{let t=[];return n.modules.collection?t.push(o.objectPage):t.push(o.objectOverviewPage),!t.includes(e)}),c=[...s,l.eventCategory,l.location,l.locationAddition,l.audience,...n.modules.collection?[]:[l.artObject]]},54003:(e,t,i)=>{"use strict";i.d(t,{QB:()=>c,cv:()=>u,hv:()=>p});var n=i(95155),o=i(96241),a=i(64509),l=i(59452),r=i(12115);let s=e=>{let{url:t}=e,i=(0,l.dj)(),[s,c]=(0,r.useState)(!1),d=async()=>{await navigator.clipboard.writeText(t),c(!0),i.push({status:"success",title:"Embed URL copied"})};return(0,n.jsx)(a.Zp,{padding:2,radius:2,tone:"caution",children:(0,n.jsxs)(a.so,{align:"center",gap:2,children:[(0,n.jsx)(a.az,{flex:1,overflow:"hidden",children:(0,n.jsx)(a.Cy,{size:2,muted:!0,style:{lineHeight:2,textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})}),(0,n.jsx)(a.$n,{fontSize:1,icon:s?o.Nrt:o.TdU,mode:"ghost",onClick:d,text:s?"Copied":"Copy",tone:s?"positive":"default"})]})})},c=/^https:\/\/www\.google\.com\/maps\/embed\?pb=[^\s"']+$/,d=/<iframe[\s\S]*?\bsrc=["']?(https:\/\/www\.google\.com\/maps\/embed\?pb=[^"'\s>]+)["']?[\s\S]*?>/i,u=e=>{var t;return null==(t=e.match(d))?void 0:t[1]},p={id:"googleMaps",title:"Google Maps",fields:[{name:"mapsEmbedUrl",title:"Embed URL",type:"string",description:"Paste the Google Maps embed source URL.",components:{input:e=>{let{value:t,renderDefault:i}
1=e,o="string"==typeof t?u(t):void 0;return(0,n.jsxs)(a.BJ,{gap:2,children:[i(e),o&&(0,n.jsx)(s,{url:o})]})}},validation:e=>{if(!e)return"Required";if(c.test(e))return;let t=u(e);return t&&c.test(t)?"Use the embed URL shown below.":"Invalid Google Maps embed URL."}}]}},84455:(e,t,i)=>{"use strict";i.d(t,{WD:()=>o,xO:()=>a});let n=/^GTM-[A-Z0-9]+$/,o=e=>e?n.test(e)?void 0:"Enter a valid Google Tag Manager ID (e.g. GTM-ABC1234)":"Required",a={id:"googleAnalytics",title:"Google Analytics (GTM)",fields:[{name:"gtmId",title:"Google Tag Manager ID",description:"The ID of the Google Tag Manager container",type:"string",validation:o},{name:"gtmUrl",title:"Google Tag Manager url",description:"Override of the GTM container url. Defaults to the official GTM url https://www.googletagmanager.com/gtm.js?id=",type:"string",validation:e=>{if(e&&!/^https:\/\/.+/.test(e))return"The Google Tag Manager url must start with https://"}}]}},85812:(e,t,i)=>{"use strict";i.d(t,{IO:()=>n,Iy:()=>o,NI:()=>l,_y:()=>a});let n=e=>"object"==typeof e&&"rows"in e,o=e=>"object"==typeof e&&"columns"in e,a=e=>"object"!=typeof e||"name"in e,l=(e,t)=>{let i=e=>n(e)?e.rows.some(i):o(e)?e.columns.some(i):("object"==typeof e?e.name:e)===t;return e.rows.some(i)}},96302:(e,t,i)=>{"use strict";i.d(t,{o:()=>o,z:()=>n});let n=e=>{let t=e.match(/.wufoo.com\/forms\/([a-zA-Z0-9]+)/);return t?t[1]:null},o=e=>{let t=e.match(/.jotform.com\/jsform\/(\d+)/);return t?t[1]:null}}}]);
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.