1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6419],{16419:(e,t,s)=>{s.d(t,{Er:()=>m,OE:()=>o,PJ:()=>i});var a=s(54568),l=s(7620),n=s(69073),r=s(43363);function i(e,t){let s=o(e);return t?{...s,description:t.description?.trim()||s.description,facts:{...s.facts,occasion:t.occasion?.trim()||s.facts.occasion}}:s}function o(e){let t=e.blocks.find(e=>"details"===e.type),s=e.blocks.find(e=>"location"===e.type),a=e.blocks.find(e=>"description"===e.type),l=e.blocks.find(e=>"media"===e.type);return{facts:{...t?.type==="details"?{eventDate:t.eventDate,eventTime:t.eventTime,occasion:t.occasion,format:t.format,guests:t.guests,durationHours:t.durationHours}:{},...s?.type==="location"?{locationLabel:s.freeform,latitude:s.latitude,longitude:s.longitude}:{}},description:a?.type==="description"?a.text:"",photos:l?.type==="media"?l.items.map(e=>e.url):[]}}function c({photos:e,onOpen:t}){if(0===e.length)return null;let s=e.slice(0,3),l=e.length-s.length,n=1===s.length?"grid-cols-1":2===s.length?"grid-cols-2":"grid-cols-3 grid-rows-2";return(0,a.jsxs)("div",{className:`relative grid h-64 gap-sp1 md:h-80 ${n}`,children:[s.map((e,n)=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(n),className:`group relative block overflow-hidden ${0===n&&3===s.length?"col-span-2 row-span-2":""}`,children:[(0,a.jsx)("img",{src:e,alt:"",loading:"lazy",className:"h-full w-full object-cover transition-transform duration-slow ease-standard group-hover:scale-105"}),l>0&&n===s.length-1&&(0,a.jsxs)("span",{className:"absolute inset-0 flex items-center justify-center bg-black/40 font-serif text-title-sm text-white",children:["+",l]})]},`${e}-${n}`)),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-black/20 to-transparent"})]})}function d(){return(0,a.jsxs)("div",{"aria-hidden":"true",className:"flex items-center justify-center gap-sp4",children:[(0,a.jsx)("span",{className:"h-px w-16 bg-strong opacity-40"}),(0,a.jsx)("span",{className:"text-label text-coral",children:"â¦"}),(0,a.jsx)("span",{className:"h-px w-16 bg-strong opacity-40"})]})}function p({label:e,icon:t,value:s}){return(0,a.jsxs)("div",{className:"flex max-w-72 flex-col items-center gap-sp2",children:[(0,a.jsx)("span",{className:"text-overline uppercase tracking-widest text-ink-muted",children:e}),(0,a.jsxs)("span",{className:"font-serif text-serif-md text-ink",children:[(0,a.jsxs)("span",{"aria-hidden":"true",children:[t," "]}),s]})]})}function u({label:e,onClick:t}){return(0,a.jsxs)("button",{type:"button",onClick:t,className:"self-center rounded-pill border border-dashed border-strong px-sp5 py-sp2 text-label text-ink-muted transition-colors duration-fast hover:border-coral hover:text-coral",children:["+ ",e]})}function m({title:e,editable:t=!1,onTitleChange:s,content:i,onEditDetails:o,onEditLocation:x,showWishlistChip:h=!1}){let{t:b,locale:f}=(0,n.s9)(),{facts:g,description:w,photos:k}=i,[j,v]=(0,l.useState)(null),y=(()=>{if(!g.eventDate)return null;let e=new Date(`${g.eventDate}T12:00:00`);return Number.isNaN(e.getTime())?g.eventDate:new Intl.DateTimeFormat(f,{weekday:"short",day:"numeric",month:"long",year:"numeric"}).format(e)})(),N=(()=>{if(!g.eventTime)return null;let e=new Date(`2000-01-01T${g.eventTime}:00`);return Number.isNaN(e.getTime())?g.eventTime:new Intl.DateTimeFormat(f,{hour:"numeric",minute:"2-digit"}).format(e)})(),$=[g.format,g.guests?b("workspace.hero.guests",{n:String(g.guests)}):null,g.durationHours?b("workspace.hero.hours",{n:String(g.durationHours)}):null].filter(Boolean).join(" \xb7 "),C="number"==typeof g.latitude&&"number"==typeof g.longitude,_=g.latitude??0,T=g.longitude??0,D=`https://www.openstreetmap.org/export/embed.html?bbox=${T-.005},${_-.005},${T+.005},${_+.005}&layer=mapnik&marker=${_},${T}`,E=`https://www.openstreetmap.org/?mlat=${_}&mlon=${T}#map=16/${_}/${T}`,L=w.trim();return(0,a.jsxs)("section",{"aria-label":e,className:"mt-sp5 animate-fade-in overflow-hidden rounded-xl border border-subtle bg-surface shadow-soft",children:[(0,a.jsx)(c,{photos:k,onOpen:v}),null!==j&&(0,a.jsx)(r.k,{items:k.map(e=>({url:e,kind:"image"})),index:j,onClose:()=>v(null),onNavigate:v}),(0,a.jsxs)("div",{className:"px-sp6 py-sp8 text-center md:px-sp11 md:py-sp9",children:[g.occasion?(0,a.jsx)("p",{className:"text-overline uppercase tracking-widest text-coral",children:g.occasion}):t&&o?(0,a.jsx)(u,{label:b("workspace.hero.add_occasion"),onClick:o}
1):null,t&&s?(0,a.jsx)("input",{value:e,onChange:e=>s(e.target.value),"aria-label":b("workspace.title_aria"),className:"mt-sp3 w-full bg-transparent text-center font-serif text-title-sm text-ink outline-none md:text-title"}):(0,a.jsx)("h1",{className:"mt-sp3 font-serif text-title-sm text-ink md:text-title",children:e}),$?(0,a.jsx)("p",{className:"mt-sp3 text-label text-ink-secondary",children:$}):null,L?(0,a.jsx)("p",{className:"mx-auto mt-sp6 max-w-narrow whitespace-pre-wrap text-lead text-ink-secondary",children:L}):null,(0,a.jsx)("div",{className:"mt-sp7",children:(0,a.jsx)(d,{})}),(0,a.jsxs)("div",{className:"mt-sp7 flex flex-wrap items-start justify-center gap-x-sp10 gap-y-sp5",children:[y?(0,a.jsx)(p,{label:b("workspace.details.event_date"),icon:"\uD83D\uDCC5",value:y}):t&&o?(0,a.jsx)(u,{label:b("workspace.hero.add_date"),onClick:o}):null,N?(0,a.jsx)(p,{label:b("workspace.details.event_time"),icon:"\uD83D\uDD50",value:N}):t&&o?(0,a.jsx)(u,{label:b("workspace.hero.add_time"),onClick:o}):null,g.locationLabel?(0,a.jsx)(p,{label:b("workspace.block.location"),icon:"\uD83D\uDCCD",value:g.locationLabel}):t&&x?(0,a.jsx)(u,{label:b("workspace.hero.add_location"),onClick:x}):null]}),h&&(0,a.jsxs)("a",{href:"#event-wishlist",className:"mt-sp7 inline-flex items-center gap-sp2 rounded-pill bg-coral px-sp5 py-sp3 text-label font-semibold text-on-accent",children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"\uD83C\uDF81"}),b("workspace.wishlist.title")]})]}),C&&(0,a.jsxs)("div",{className:"border-t border-subtle",children:[(0,a.jsx)("iframe",{src:D,title:b("workspace.summary.map_aria"),loading:"lazy",className:"block h-56 w-full"}),(0,a.jsx)("div",{className:"flex justify-end px-sp5 py-sp3",children:(0,a.jsxs)("a",{href:E,target:"_blank",rel:"noreferrer",className:"text-label text-coral underline-offset-4 hover:underline",children:[b("workspace.summary.open_map")," â"]})})]})]})}},43363:(e,t,s)=>{s.d(t,{k:()=>i,s:()=>r});var a=s(54568),l=s(7620),n=s(69073);function r({photos:e,alt:t,thumbClass:s="h-20 w-20"}){let[n,o]=(0,l.useState)(null);return 0===e.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-sp2",children:e.map((e,l)=>(0,a.jsxs)("button",{type:"button",onClick:()=>o(l),className:"block overflow-hidden rounded-md border border-subtle",children:[(0,a.jsx)("img",{src:e.thumbUrl??e.url,alt:e.alt??t,loading:"lazy",className:`${s} object-cover`}),e.credit?(0,a.jsxs)("span",{className:"block max-w-40 px-sp1 text-caption text-muted",children:["\xa9 ",e.credit]}):null]},e.id??e.url))}),null!==n&&(0,a.jsx)(i,{items:e.map(e=>({url:e.url,kind:"image",alt:e.alt??t,credit:e.credit??void 0})),index:n,onClose:()=>o(null),onNavigate:o})]})}function i({items:e,index:t,onClose:s,onNavigate:r}){let{t:o}=(0,n.s9)(),c=e.length,d=e[t];if((0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&s(),c>1&&"ArrowLeft"===e.key&&r((t-1+c)%c),c>1&&"ArrowRight"===e.key&&r((t+1)%c)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[c,t,s,r]),!d)return null;let p="absolute top-1/2 flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-pill bg-surface text-serif-md text-ink shadow-elev-2 transition-colors duration-fast hover:text-coral";return(0,a.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":d.alt??"",onClick:s,className:"fixed inset-0 z-modal flex items-center justify-center bg-[rgba(20,12,10,0.75)] p-sp6",children:["video"===d.kind?(0,a.jsx)("video",{src:d.url,controls:!0,playsInline:!0,onClick:e=>e.stopPropagation(),className:"max-h-[90vh] max-w-[94vw] rounded-lg shadow-elev-2"}):(0,a.jsx)("img",{src:d.url,alt:d.alt??"",onClick:e=>e.stopPropagation(),className:"max-h-[90vh] max-w-[94vw] rounded-lg object-contain shadow-elev-2"}),d.credit?(0,a.jsxs)("span",{className:"absolute bottom-sp12 left-1/2 -translate-x-1/2 rounded-md bg-surface px-sp3 py-sp1 text-caption text-ink",children:["\xa9 ",d.credit]}):null,c>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":o("workspace.lightbox.prev"),onClick:e=>{e.stopPropagation(),r((t-1+c)%c)},className:`${p} left-sp4`,children:"â¹"}),(0,a.jsx)("button",{type:"button","aria-label":o("workspace.lightbox.next"),onClick:e=>{e.stopPropagation(),r((t+1)%c)},className:`${p} right-sp4`,children:"âº"}),(0,a.jsxs)("span",{className:"absolute bottom-sp5 left-1/2 -translate-x-1/2 roun
1ded-pill bg-surface px-sp4 py-sp1 text-caption tabular-nums text-ink shadow-elev-1",children:[t+1," / ",c]})]}),(0,a.jsx)("button",{type:"button","aria-label":o("workspace.lightbox.close"),onClick:s,className:"absolute right-sp6 top-sp6 rounded-pill bg-surface px-sp5 py-sp3 text-label font-semibold text-ink shadow-elev-2",children:"â"})]})}}}]);
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.