PageSourceSearch

https://www.nemosciencemuseum.nl/_next/static/chunks/763-c20bc68898428195.js

js nemosciencemuseum.nl collected 2026-10-02 03:58:12 UTC 15,364 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[763],{88979:function(e,t,n){n.d(t,{Ff:function(){return i},ce:function(){return o},mE:function(){return c},mI:function(){return d}});let a=e=>{let t=e.event_type.length>0||e.theme.length>0,n=null!=e.date;return t||n?"":"(!defined($highlightedActivityId) || _id != $highlightedActivityId) &&"},c=e=>{let t=new Date(e),n=String(t.getDate()).padStart(2,"0"),a=String(t.getMonth()+1).padStart(2,"0"),c=t.getFullYear();return"".concat(c,"-").concat(a,"-").concat(n)},d='\n    _id,\n    slug,\n    title,\n    is_highlight,\n    "eventDate": select(\n      header.date_choice.choice == "free_format" => null,\n      header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n      header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n      header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n      null\n    ),\n    "image": {\n      "image": header.header_image.image,\n      "alt": header.header_image.alt\n    },\n    "date_choice": header.date_choice,\n    "description": header.description,\n    "excerpt": header.excerpt,\n    "location": header.location->name,\n    "event_type": event_type->{\n        name,\n        "slug": slug.current,\n    },\n    "price": header.price,\n    "partners": header.partners,',i=e=>{let t=new Date;t.setFullYear(t.getFullYear()+100);let n=t.toISOString().split("T")[0],i="".concat(e.event_type.length>0?"event_type->slug.current in ".concat(JSON.stringify(e.event_type)," &&"):""),o="".concat(e.theme.length>0?"("+e.theme.map(e=>'"'.concat(e,'" in themes[]->slug.current')).join(" || ")+") &&":""),h=a(e),r=c(e.date),l="".concat(e.date?'\n              (\n                (\n                  header.date_choice.choice == "free_format"\n                  && !("'.concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n                )\n                \n                || \n                (header.date_choice.choice == "day_time" \n                 && header.date_choice.day_time.day == "').concat(r,'") && !("').concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n            \n                || \n                (header.date_choice.choice == "continuous"\n                 && header.date_choice.continuous_from <= "').concat(r,'"\n                 && header.date_choice.continuous_to >= "').concat(r,'") && !("').concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n            \n                || \n                (header.date_choice.choice == "multiple_days"\n                 && "').concat(r,'" in header.date_choice.multiple_days.dates[].day) && !("').concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n              ) && \n                '):"");return'{\n        "closed_at": *[_type == "site_config"][0] {\n            dates_closed\n        },\n        "items": *[\n          _type == "activity_page" &&\n          !(_id in path("drafts.**")) &&\n          '.concat(h,'\n          (\n              select(\n                header.date_choice.choice == "free_format" => "').concat(n,'",\n                header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n                header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n                header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n                null\n              ) >= $lastEventDate\n            ) && !(_id in $currentIds) &&\n            ').concat(i,"\n            ").concat(o,"\n            ").concat(l,'\n          language == $language\n        ]{\n          "eventDate": select(\n            header.date_choice.choice == "free_format" => "').concat(n,'",\n            header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n            header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n            header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n            null\n          ),\n          ...\n        } | order(eventDate asc)[0...$itemsPerPage]{\n          ').concat(d,"\n        }\n    }")},o=e=>{let t=new Date;t.setFullYear(t.getFullYear()+100);let n=t.toISOString().split("T")[0],i="".concat(e.event_type.length>0?"event_type->slug.current in ".concat(JSON.stringify(e.event_type)," &&"):""),o="".concat(e.theme.length>0?"("+e.theme.map(e=>'"'.concat(e,'" in themes[]->slug.current')).join(" || ")+") &&":""),h=a(e),r=c(e.date),l="".concat(e.date?'\n          (\n            (\n              header.date_choice.choice == "free_format"\n              && !("'.concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n            )\n            \n            || \n            (header.date_choice.choice == "day_time" \n             && header.date_choice.day_time.day == "').concat(r,'") && !("').concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n        \n            || \n            (header.date_choice.choice == "continuous"\n             && header.date_choice.continuous_from <= "').concat(r,'"\n             && header.date_choice.continuous_to >= "').concat(r,'") && !("').concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n        \n            || \n            (header.date_choice.choice == "multiple_days"\n             && "').concat(r,'" in header.date_choice.multiple_days.dates[].day) && !("').concat(r,'" in *[_type == "site_config"][0].dates_closed[].date)\n          ) && \n        '):"");return'{\n        "closed_at": *[_type == "site_config"][0] {\n            dates_closed\n        },\n        "show_closed_banner": "'.concat(r,'" in *[_type == "site_config"][0].dates_closed[].date,\n        "total_amount": count(*[\n          _type == "activity_page" &&\n          !(_i
1d in path("drafts.**")) &&\n          ').concat(h,'\n          !(_id in $currentIds) &&\n          (\n            select(\n              header.date_choice.choice == "free_format" => "').concat(n,'",\n              header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n              header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n              header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n              null\n            ) >= $lastEventDate\n          ) &&\n          ').concat(i,"\n          ").concat(o,"\n          ").concat(l,'\n          language == $language\n        ]),\n        "items": *[\n          _type == "activity_page" &&\n          !(_id in path("drafts.**")) &&\n          ').concat(h,'\n          (\n              select(\n                header.date_choice.choice == "free_format" => "').concat(n,'",\n                header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n                header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n                header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n                null\n              ) >= $lastEventDate\n          ) && !(_id in $currentIds) &&\n          ').concat(i,"\n          ").concat(o,"\n          ").concat(l,'\n          language == $language\n        ]{\n          "eventDate": select(\n            header.date_choice.choice == "free_format" => "').concat(n,'",\n            header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n            header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n            header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n            null\n          ),\n          "isHighlight": is_highlight == true,\n          ...\n        } | order(isHighlight desc, eventDate asc)[0...$itemsPerPage]{\n          ').concat(d,"\n        }\n    }")}},86316:function(e,t,n){n.d(t,{Z:function(){return r}});var a=n(57437),c=n(2265),d=n(39939);let i={[d.O.block_accordion]:c.lazy(()=>n.e(6811).then(n.bind(n,6811))),[d.O.block_embed]:c.lazy(()=>n.e(7889).then(n.bind(n,57889))),[d.O.block_file_list]:c.lazy(()=>Promise.all([n.e(3145),n.e(5749)]).then(n.bind(n,75749))),[d.O.block_media_carousel]:c.lazy(()=>Promise.all([n.e(5064),n.e(7725),n.e(7588)]).then(n.bind(n,57588))),[d.O.block_highlight]:c.lazy(()=>Promise.all([n.e(5064),n.e(7725),n.e(8216)]).then(n.bind(n,8216))),[d.O.block_activities]:c.lazy(()=>Promise.resolve().then(n.bind(n,43745))),[d.O.block_rooftop_teaser]:c.lazy(()=>Promise.all([n.e(3145),n.e(5064),n.e(2806),n.e(3733)]).then(n.bind(n,5939))),[d.O.block_usp_list]:c.lazy(()=>n.e(4007).then(n.bind(n,84007))),[d.O.block_paragraph]:c.lazy(()=>n.e(893).then(n.bind(n,60893))),[d.O.block_anchor]:c.lazy(()=>n.e(5547).then(n.bind(n,5547))),[d.O.block_quote]:c.lazy(()=>n.e(7344).then(n.bind(n,97344))),[d.O.block_related_pages]:c.lazy(()=>Promise.all([n.e(3145),n.e(5064),n.e(8101)]).then(n.bind(n,68101))),[d.O.block_discovery_teaser]:c.lazy(()=>Promise.all([n.e(8083),n.e(2331),n.e(3145),n.e(5064),n.e(2859),n.e(873),n.e(1116),n.e(6926),n.e(587)]).then(n.bind(n,40587))),[d.O.block_text_with_image]:c.lazy(()=>n.e(7753).then(n.bind(n,57753))),[d.O.block_external_text_with_image]:c.lazy(()=>n.e(2643).then(n.bind(n,22643))),[d.O.block_partners]:c.lazy(()=>n.e(8325).then(n.bind(n,58325))),[d.O.block_floors]:c.lazy(()=>n.e(4268).then(n.bind(n,74268)))};var o=n(88979),h=n(43745),r=e=>{let{blocks:t,slug:n,page_type:c,previewToken:r,extraDataLayerData:l}=e,_=null==t?void 0:t.map((e,_)=>{let{_type:s,...u}=e;if(Object.keys(i).includes(s)){let e=i[s],y=_<t.length-1?t[_+1]._type:void 0;if(s===d.O.block_activities){let e=new Date().toISOString().split("T")[0],t=new Date;t.setFullYear(t.getFullYear()+100);let d=t.toISOString().split("T")[0],i='select(\n                  header.date_choice.choice == "free_format" => "'.concat(d,'",\n                  header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n                  header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n                  header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n                  null\n                ) >= "').concat(e,'"'),l='*[_type == "'.concat(c,'" && slug.current == "').concat(n,'" && language == $locale][0]{\n                    "filteredItems": blocks[').concat(_,'].items[]-> | order((is_highlight == true) desc, select(\n                        header.date_choice.choice == "free_format" => "').concat(d,'",\n                        header.date_choice.choice == "day_time" && defined(header.date_choice.day_time.day) => header.date_choice.day_time.day,\n                        header.date_choice.choice == "continuous" && defined(header.date_choice.continuous_to) => header.date_choice.continuous_to,\n                        header.date_choice.choice == "multiple_days" && defined(header.date_choice.multiple_days.dates[-1].day) => header.date_choice.multiple_days.dates[-1].day,\n                        null\n                    ) asc)[').concat(i,"]{\n                        ").concat(o.mI,"\n                    }\n                }.filteredItems");return(0,a.jsx)("div",{className:"block",children:(0,a.jsx)(h.default,{...u,_type:s,nextBlockType:y,itemsGroqQuery:l,previewToken:r})},u._key)}return(0,a.jsx)("div",{className:"block",children:(0,a.jsx)(e,{...u,_type:s,nextBlockType:y,extraDataLayerData:l})},u._key)}});return(0,a.jsx)(a.Fragment,{children:_})}},69145:function(e,t,n){var a=n(34043),c=n(58237);let d=a.zo.div.withConfig({componentId:"sc-b5fadc03-0"})(["span.query-highlight{background-color:#ffff00;color:",";box-decoration-break:clone;-webkit-box-decoration-break:clone;}"],c.ZP.colors.black);t.Z=d},85802:function(e,t,n){n.d(t,{w:function(){return o}});var a=n(2265),c=n(99376);function d(e){e.querySelectorAll("span.query-highlight").forEach(e
1=>{var t;let n=e.parentNode;if(!n)return;let a=document.createTextNode(null!==(t=e.textContent)&&void 0!==t?t:"");n.replaceChild(a,e),n.normalize()})}let i=["wheel","touchmove","keydown"];function o(e,t,n){var o,h,r,l;let _=null!==(o=null==n?void 0:n.paramName)&&void 0!==o?o:"search_query",s=null===(h=null==n?void 0:n.scrollToFirstMatch)||void 0===h||h,u=null!==(r=null==n?void 0:n.scrollMargin)&&void 0!==r?r:164,y=null!==(l=(0,c.useSearchParams)().get(_))&&void 0!==l?l:"",m=(0,a.useRef)(null);(0,a.useLayoutEffect)(()=>{let t=e.current;if(!t)return;d(t);let n=y.trim();if(!n)return;if(!function(e,t){let n;let a=t.trim();if(!a)return;let c=[],d=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);for(;n=d.nextNode();){if(n.nodeType!==Node.TEXT_NODE)continue;let e=n;if(function(e){let t=e.parentElement;if(!t||t.closest("[data-no-search-highlight]")||t.closest(".query-highlight"))return!0;let n=t.tagName;return"SCRIPT"===n||"STYLE"===n||"NOSCRIPT"===n}(e))continue;let t=e.nodeValue;t&&t.length>0&&c.push(e)}for(let e of c){var i;let t;let n=null!==(i=e.nodeValue)&&void 0!==i?i:"",c=e.parentNode;if(!c||!n)continue;let d=document.createDocumentFragment(),o=0,h=RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"),r=!1;for(;null!==(t=h.exec(n));){r=!0,t.index>o&&d.appendChild(document.createTextNode(n.slice(o,t.index)));let e=document.createElement("span");e.className="query-highlight",e.textContent=t[0],d.appendChild(e),o=t.index+t[0].length}r&&(o<n.length&&d.appendChild(document.createTextNode(n.slice(o))),c.replaceChild(d,e))}}(t,n),!s||m.current===n)return()=>{d(t)};let a=!1,c=()=>{a=!0};i.forEach(e=>window.addEventListener(e,c,{passive:!0}));let o=window.setTimeout(()=>{!a&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:164,n=e.querySelector("span.query-highlight");if(!n)return!1;let a=n.getBoundingClientRect().top+window.scrollY-function(){let e=document.querySelector(".nav-bar");if(!e)return 0;for(let t=e;t;t=t.parentElement){let{position:n}=window.getComputedStyle(t);if("fixed"===n||"sticky"===n)return e.getBoundingClientRect().height}return 0}()-t;return window.scrollTo({top:Math.max(a,0),behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}),!0}(t,u)&&(m.current=n)},350);return()=>{window.clearTimeout(o),i.forEach(e=>window.removeEventListener(e,c)),d(t)}},[y,_,s,u,...t])}}}]);

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.