PageSourceSearch

https://positive-play-zone.vercel.app/_next/static/chunks/4506.46158ef055a5b36d.js

js positive-play-zone.vercel.app collected 2026-10-03 07:32:29 UTC 9,705 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{2841:(e,n,t)=>{t.d(n,{t:()=>s});var l=t(3939),r=t(8160),i=t(4892);let a=!1,o=null;function u(e){return!!(0,l.Ut)(e)&&"function"==typeof e.map&&"function"==typeof e.tileLayer&&"function"==typeof e.marker}let s=({location:e,label:n,className:t="",height:l=200,zoom:s=15})=>{let c=(0,r.useRef)(null),d=(0,r.useRef)(null),f=(0,r.useRef)(null),[m,p]=(0,r.useState)(!0),[h,g]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let t=!0;return async function(){try{if(await (a?Promise.resolve():o||(o=new Promise((e,n)=>{if("u">typeof window&&u(Reflect.get(window,"L"))){a=!0,e();return}let t=document.createElement("link");t.rel="stylesheet",t.href="https://unpkg.com/[email protected]/dist/leaflet.css",t.integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=",t.crossOrigin="anonymous",document.head.appendChild(t);let l=document.createElement("script");l.src="https://unpkg.com/[email protected]/dist/leaflet.js",l.integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=",l.crossOrigin="anonymous",l.async=!0,l.onload=()=>{a=!0,e()},l.onerror=()=>{o=null,n(Error("Failed to load Leaflet"))},document.head.appendChild(l)}))),!t||!c.current)return;let l=Reflect.get(window,"L");if(!u(l))throw Error("Leaflet not available");if(!d.current){let t=l.map(c.current,{scrollWheelZoom:!1,dragging:!0,zoomControl:!0});l.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(t);let r=l.marker([e.lat,e.lng]);r.addTo(t),t.setView([e.lat,e.lng],s),n&&r.bindPopup(n),d.current=t,f.current={bindPopup(e){return r.bindPopup(e),this},setLatLng(e){return r.setLatLng(e),this}}}p(!1)}catch(e){t&&(g(e instanceof Error?e.message:"Failed to load map"),p(!1))}}(),()=>{t=!1,d.current&&(d.current.remove(),d.current=null,f.current=null)}},[]),(0,r.useEffect)(()=>{d.current&&f.current&&(d.current.setView([e.lat,e.lng],s),f.current.setLatLng([e.lat,e.lng]),n&&f.current.bindPopup(n))},[e.lat,e.lng,n,s]),h)?null:(0,i.jsx)("div",{ref:c,className:`leaflet-static-map ${t}`,style:{height:l,width:"100%",borderRadius:"0.5rem",overflow:"hidden",backgroundColor:m?"rgb(var(--tb-surface))":void 0},"aria-label":n?`Map showing ${n}`:"Location map"})}},4674:(e,n,t)=>{t.d(n,{a:()=>b,c:()=>k,d:()=>u,f:()=>o,i:()=>y,l:()=>p,n:()=>h,o:()=>m,p:()=>a,r:()=>w,s:()=>g,t:()=>f,u:()=>s});var l=t(3939),r=t(6502);function i(e){let n=(0,l.dt)(e);return"external"===n.kind?n.url:n.path}function a(e){let n=i(e);return"external"===(0,l.dt)(e).kind?{href:n,target:"_blank",rel:"noopener noreferrer"}:{href:n}}function o(e,n){let t=(0,r.p)(e),a=(0,l.dt)(e),o="external"===a.kind,u=o?a.label:"whole_series"===e.bookingScope?"Book now":"Book",s=i(e);if("closed"===e.bookingAvailability.kind){let n="enrollment_closed"===e.bookingAvailability.reason&&!o;return{label:function(e){switch(e){case"occurrence_cancelled":case"series_cancelled":return"Cancelled";case"occurrence_completed":case"series_completed":return"Completed";case"series_draft":case"series_archived":case"parent_archived":case"parent_inconsistent":case"already_started":case"enrollment_closed":return"Registration closed";default:return(0,l.Tn)(e)}}(e.bookingAvailability.reason),href:s,external:o,hidden:!n}}return!o&&t?(0,r.a)(e)?{label:"Join waitlist",href:s,external:!1,hidden:!1}:{label:"Sold out",href:s,external:!1,hidden:!0}:{label:n??u,href:s,external:o,hidden:!1}}function u(e,n){let t=new Date(e);if(Number.isNaN(t.getTime())||!d(n))return NaN;let l=new Intl.DateTimeFormat("en-GB",{timeZone:n,hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(t),r=Number(l.find(e=>"hour"===e.type)?.value),i=Number(l.find(e=>"minute"===e.type)?.value),a=24===r?0:r;return Number.isNaN(a)||Number.isNaN(i)?NaN:60*a+i}function s(e,n){let t=new Date(e);if(Number.isNaN(t.getTime())||!d(n))return null;let l=new Intl.DateTimeFormat("en-CA",{timeZone:n,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),r=l.find(e=>"year"===e.type)?.value,i=l.find(e=>"month"===e.type)?.value,a=l.find(e=>"day"===e.type)?.value;return void 0===r||0===r.length||void 0===i||0===i.length||void 0===a||0===a.length?null:`${r}-${i}-${a}`}let c=new Map;function d(e){if("string"!=typeof e||0===e.length)return!1;let n=c.get(e);if(void 0!==n)return n;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),c.set(e,!0),!0}catch{return c.set(e,!1),!1}}function f(e){var n;return{timeZone:e.timeZone??null,locale:(n=e.siteTimeZone??e.timeZone)?"Europe/Dublin"===n?"en-IE":n.startsWith("Europe/")?"en-GB":n.startsWith("Australia/")?"en-AU":"Pacific/Auckland"===n||"Pacific/Chatham"===n?"en-NZ":"en-US":"en-US"}}function m(e,n){return`${g(e.startsAt,n)} to ${g(e.endsAt,n)}`}function p(e,n){return e.timeZone||n}function h(e,n){return(0,l.nn)((0,l.mn)({startsAt:e,timeZone:(0,l.fn)(n?.timeZone??"UTC"),locale:n?.locale??"en-US"}),{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function g(e,n){let t=n?.locale??"en-US";return(0,l.on)((0,l.mn)({startsAt:e,timeZone:(0,l.fn)(n?.timeZone??"UTC"),locale:t}),{hour:!1===new Intl.DateTimeFormat(t,{hour:"numeric"}).resolvedOptions().hour12?"2-digit":"numeric",minute:"2-digit"})}function y(e){let n=(0,l.pn)({startsAt:e.startsAt,endsAt:e.endsAt,timeZone:(0,l.fn)(e.timeZone??"UTC"),locale:e.locale??"en-US"}),{date:t,time:r}=(0,l.rn)(n,{dateFormat:{weekday:"long",year:"numeric",month:"long",day:"numeric"}});return{date:t,timeRange:`${r} – ${(0,l.on)((0,l.mn)({startsAt:e.endsAt,timeZone:n.timeZone,locale:e.locale??"en-US"}))}`}}function w(e,n){let t=(0,l.mn)({startsAt:e,timeZone:(0,l.fn)(n?.timeZone??"UTC"),locale:n?.locale??"en-US"}),r=(0,l.nn)(t,{weekday:"short"}).toLocaleUpperCase(n?.locale??"en-US"),i=(0,l.nn)(t,{month:"short"}).slice(0,3).toLocaleUpperCase(n?.locale??"en-US");return{weekday:r,day:(0,l.nn)(t,{day:"numeric"}),month:i,label:(0,l.nn)(t,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}function b(e){let n=w(e.startsAt,f(e));return{dateTime:e.startsAt,value:`${n.weekday} ${n.day} ${n.month}`,label:n.label}}function k(e,n){let t=function(e,n){let t=new Map;for(let l of e){let e=s(n.getStartsAt(l),n.getTimeZone(l));if(null==e)continue;let r=t.get(e);void 0!==r?r.push(l):t.set(e,[l])}return t}(e,{getStartsAt:e=>e.startsAt,getTimeZone:()=>n}),l=new Map;for(let[e,n]of t)l.set(e,[...n]);return l}},6502:(e,n,t)=>{t.d(n,{a:()=>w,c:()=>c,d:()=>f,f:()=>o,h:()=>g,i:()=>a,l:()=>d,m:()=>i,n:()=>Z,o:()=>k,p:()=>y,r:()=>A,s:()=>u,t:()=>_,u:()=>r});
1var l=t(3939);function r(e){if(null==e.capacity)return{available:null,isFull:!1};let n=e.availableSpots??e.capacity-e.registeredCount;return n<=0?{available:0,isFull:!0}:{available:n,isFull:!1}}function i(e,n){return n?(e.attendanceModes??[]).find(e=>e.mode===n)??e:e}function a(e,n){let t=i(e,n?.attendanceMode);return r(t).isFull&&!0===t.waitlistEnabled}function o(e){var n;let{available:t,isFull:l}=r(e);return null===t||null===e.capacity?{kind:"unlimited"}:l?{kind:"full",waitlist:a(e)}:t<=Math.max(Math.min(3,Math.ceil(.25*(n=e.capacity))),Math.ceil(.05*n))?{kind:"low",remaining:t}:{kind:"open"}}function u(e,n={}){let t=o(e);switch(t.kind){case"unlimited":case"open":return null;case"low":return s(t.remaining,!0===n.compact);case"full":return t.waitlist?n.waitlist??"Waitlist":n.full??"Full"}}function s(e,n){return n?`${e} left`:1===e?"1 place left":`${e} places left`}function c(e){return null===e||e>3?null:e<=0?"None left for this ticket type":`${s(e,!1)} for this ticket type`}function d(e){return null===e?null:1===e?"1 place":`${e} places`}function f(e){let n=g(e),t=o(n),l=k(e,{compact:!0});switch(t.kind){case"unlimited":return{status:"available",available:null,isFull:!1,label:l};case"open":return{status:"available",available:r(n).available,isFull:!1,label:l};case"low":return{status:"filling",available:t.remaining,isFull:!1,label:l};case"full":return{status:"waitlist",available:0,isFull:!0,label:l}}}function m(e){if("hybrid"!==e.deliveryMode)return null;let n=e.attendanceModes??[],t=n.find(e=>"in_person"===e.mode),l=n.find(e=>"online"===e.mode);return t&&l?{inPerson:t,online:l}:null}function p(e){switch(e.kind){case"unlimited":return 4;case"open":return 3;case"low":return 2;case"full":return+!!e.waitlist}}function h(e,n){let t=p(e),l=p(n);return t!==l?t>l:"low"===e.kind&&"low"===n.kind&&e.remaining>n.remaining}function g(e){let n=m(e);return n?h(o(n.online),o(n.inPerson))?n.online:n.inPerson:e}function y(e){return r(g(e)).isFull}function w(e){return a(g(e))}let b={in_person:"In person",online:"Online"};function k(e,n={}){var t,l;let r=m(e);if(!r)return u(e,n);let i=u(r.inPerson,n),a=u(r.online,n);return i===a?i:!0===n.compact?function(e,n){let t=o(e.inPerson),l=o(e.online);if("full"===t.kind&&"full"===l.kind)return u(t.waitlist?e.inPerson:e.online,n);if("full"===t.kind||"full"===l.kind){let l="full"===t.kind?"in_person":"online",r="full"===t.kind?"online":"in_person",i=u(N(e,r),n);return null!==i?v(r,i):v(l,u(N(e,l),n))}let r=h(t,l)?"online":"in_person";return v(r,u(N(e,r),n))}(r,n):(t=r,l={inPerson:i,online:a},(h(o(t.online),o(t.inPerson))?[["online",l.online],["in_person",l.inPerson]]:[["in_person",l.inPerson],["online",l.online]]).map(([e,n])=>v(e,n)).join(" \xb7 "))}function v(e,n){return`${b[e]}: ${n??"Places available"}`}function N(e,n){return"online"===n?e.online:e.inPerson}function _(e){let n=(0,l.gn)(e.pricing,{decimals:"auto"});return"whole_series"!==e.bookingScope?n:"free"===(0,l.yn)(e.pricing).kind?"Course":`Course (${n})`}function A(e){return(0,l.gn)(e,{decimals:"auto"})}function Z(e,n,t){return(0,l.hn)(e>0?{kind:"exact",amount:e,currency:n}:{kind:"free",currency:n},{decimals:"exact",locale: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.