1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3243],{63243:(e,t,a)=>{a.d(t,{b:()=>I});var n=a(37876),i=a(27964),r=a(14232),s=a(77328),l=a.n(s),o=a(7010),d=a(65798),c=a(74302),p=a(75784),x=a(97778),v=a(40625),h=a(42512),m=a(33084),g=a(32516),u=a(67093),f=a(1437),j=a(4294),b=a(45254);class w extends b.S{async fetchEventActor(e){return await this.get(`/api/event_actors/${e}`)}async fetchDetailedEventActor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{page:1,per_page:12},a=new URLSearchParams;void 0!==t.page&&a.append("page",t.page.toString()),void 0!==t.per_page&&a.append("per_page",t.per_page.toString()),void 0!==t.at&&a.append("at",t.at.toString()),void 0!==t.from&&a.append("from",t.from.toString()),void 0!==t.to&&a.append("to",t.to.toString());let n=`/api/event_actors/${e}/detailed?${a.toString()}`;return await this.get(n)}async fetchEventsForEventActor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{page:1,per_page:12},a=new URLSearchParams;return void 0!==t.page&&a.append("page",t.page.toString()),void 0!==t.per_page&&a.append("per_page",t.per_page.toString()),void 0!==t.at&&a.append("at",t.at.toString()),void 0!==t.from&&a.append("from",t.from.toString()),void 0!==t.to&&a.append("to",t.to.toString()),(await this.get(`/api/event_actors/${e}/events?${a.toString()}`)).events}}var _=a(56292);function y(e){let t,a,s,l=(0,i.c)(13),{eventActor:o,scrollRef:d}=e;l[0]!==o.detailed||l[1]!==o.events?(t=o.detailed?o.events.data:[],l[0]=o.detailed,l[1]=o.events,l[2]=t):t=l[2];let[c,p]=(0,r.useState)(t),[x,v]=(0,r.useState)(o.detailed?o.events.meta:null),[h,m]=(0,r.useState)(!1);l[3]!==o.entity_ref||l[4]!==h||l[5]!==x?(a=async()=>{if(h||!x?.next_page)return;m(!0);let e=new w((0,j.Q)()),t=await e.fetchEventsForEventActor(o.entity_ref,{page:x.next_page,per_page:12});p(e=>[...e,...t.data]),v(t.meta),m(!1)},l[3]=o.entity_ref,l[4]=h,l[5]=x,l[6]=a):a=l[6];let g=a,u=!!x?.next_page;return l[7]!==c||l[8]!==h||l[9]!==g||l[10]!==d||l[11]!==u?(s=(0,n.jsx)(_.O,{places:c,scrollRef:d,onLoadMore:g,hasMore:u,isLoading:h,showXSCarousel:!1,entitySheetTrackingContext:"EventActorDetailEvents"}),l[7]=c,l[8]=h,l[9]=g,l[10]=d,l[11]=u,l[12]=s):s=l[12],s}var N=a(62400),S=a(20658),k=a(50436),E=a(5528),$=a(90982),A=a(11786),V=a(93797),F=a(75175);function I(e){let{eventActor:t,actionsPortal:a,isLargeUI:i,sheetHeader:s,scrollRef:j,contentRef:b,expanded:w}=e,_=(0,g.GV)(h.YN),S=(0,g.GV)(h.Qi),I=(0,d.U)(o.qs.xl),M=(0,g.GV)(h.tB),R=(0,g.GV)(m.Ae),[C,U]=(0,r.useState)(!1),G=(0,F.M)();(0,r.useEffect)(()=>{if(!t.detailed){let e=setTimeout(()=>U(!0),300);return()=>clearTimeout(e)}},[t.detailed]);let D=(0,r.useId)(),O=(0,r.useId)(),P=(0,r.useRef)(null),Z=(0,r.useRef)(null),q=(0,r.useMemo)(()=>({overview:P,events:Z}),[]),z=(0,r.useMemo)(()=>({overview:{ref:q.overview,id:D},events:{ref:q.events,id:O}}),[q,D,O]),[T,Y]=(0,v.Wx)({root:j?.current??document,initialInView:!0}),[K,Q]=(0,v.Wx)({root:j?.current??document,initialInView:!0,rootMargin:`-${o.uF}px 0px 0px 0px`}),W=_?"md":(!G||G&&w)&&I?"2xl":"xl",B=t.detailed&&t.events.data.length>0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{children:(0,n.jsx)("link",{rel:"canonical",href:t.canonical_url},"canonical")}),(0,n.jsx)("div",{id:z.overview.id,className:(0,c.cn)("mb-3",s?"-mx-(--sheet-pad)":"-mx-(--container-pad)"),children:(0,n.jsxs)("div",{className:"relative h-[60vh] overflow-hidden rounded-b-2xl bg-black outline-hidden sm:h-[68vh]",children:[(0,n.jsx)(E.$,{src:t.image_url,className:"absolute inset-0 size-full",width:W,alt:""}),(0,n.jsx)("div",{ref:K,className:"absolute inset-x-0 bottom-0 rounded-[inherit] bg-linear-to-b from-black/0 to-black-a-9 px-(--sheet-pad) pt-14 pb-6 leading-tight text-white @xl/detail:pb-9",children:(0,n.jsx)("div",{className:"flex items-end",children:(0,n.jsxs)("div",{className:"flex flex-1 flex-col gap-2.5",children:[(0,n.jsx)(s?"h2":"h1",{className:"no-translate text-2xl leading-tight font-semibold text-pretty wrap-anywhere [text-shadow:0_0_6px_rgb(0_0_0/30%)] @xl/detail:text-4xl",children:t.name}),(0,n.jsx)("div",{className:"[text-shadow:0_0_6px_rgb(0_0_0/30%)]",children:t.category_label})]})})}),s,(0,n.jsx)("div",{ref:T,className:"absolute inset-x-0 top-(--header-height)"})]})}),(0,n.jsx)($.Z,{container:j?j.current:b?.current,children:(0,n.jsx)(p.N,{children:!Y&&(0,n.jsxs)(x.PY1.div,{initial:{y:"-100%",opacity:0}
1,animate:{y:0,opacity:1,transition:{type:"tween",duration:.15}},exit:{y:"-100%",opacity:0},className:(0,c.cn)("inset-x-0 top-0 z-2 flex h-(--header-height) gap-2.5 border-b bg-background leading-tight",G?"absolute px-(--sheet-pad)":"@container/detail fixed px-(--container-pad) sm:left-(--nav-width) sm:px-7",!G&&M&&"pr-(--embed-close-spacer)! pl-(--nav-width-collapsed)"),children:[G&&(0,n.jsxs)(n.Fragment,{children:[(!R||S)&&(0,n.jsx)(V.kN,{}),R&&(0,n.jsx)(f.s,{})]}),(0,n.jsx)("div",{className:"flex min-w-0 flex-1 items-center",children:(0,n.jsx)(p.N,{children:!Q&&(0,n.jsx)(x.PY1.div,{initial:{y:"-12px",opacity:0},animate:{y:0,opacity:1},exit:{y:"-12px",opacity:0},className:"no-translate truncate font-semibold",children:t.name})})}),(0,n.jsx)("div",{className:"flex items-center gap-0.5 sm:-mr-2",children:(0,n.jsx)(N.D,{entity:t,size:"md",variant:"none",className:"transition-transform will-change-transform hover:scale-110 data-popup-open:scale-110",iconClassName:"text-[1.875em]"})})]})})}),t.detailed?(0,n.jsxs)("div",{className:"mx-auto w-full max-w-6xl [&_[data-slot=scroll-nav-content]:last-child]:pb-16",children:[(0,n.jsxs)(A.vj,{scrollingElement:j,navOffset:o.uF,children:[(0,n.jsxs)(A.FG,{sheet:G,children:[(0,n.jsx)(A.uZ,{children:(0,n.jsx)(A.qK,{value:z.overview.id,children:"Overview"})}),B&&(0,n.jsx)(A.uZ,{children:(0,n.jsx)(A.qK,{value:z.events.id,children:"Events"})})]}),(0,n.jsxs)(A.mv,{ref:z.overview.ref,value:`${z.overview.id}-content`,className:"flex items-start gap-7",children:[(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(u.g,{numberOfLines:6,isMarkdown:!0,content:t.description,className:"no-translate"})}),i&&(0,n.jsx)(L,{eventActor:t,sections:z,isLargeUI:!0})]}),B&&(0,n.jsxs)(A.mv,{ref:z.events.ref,value:z.events.id,children:[(0,n.jsx)(s?"h3":"h2",{className:"mb-6 text-lg leading-tight font-semibold",children:"Upcoming events"}),(0,n.jsx)(y,{eventActor:t,scrollRef:j})]})]}),!i&&(0,n.jsx)($.Z,{container:a,className:"rounded-t-2xl bg-background/95 px-4 py-3 shadow-xl backdrop-blur-md",children:(0,n.jsx)(L,{eventActor:t,sections:z,isLargeUI:!1})})]}):C&&(0,n.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,n.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2",children:(0,n.jsx)(k.R,{})})})]})}function L(e){let t,a,r,s,l,o=(0,i.c)(13),{eventActor:d,sections:p,isLargeUI:x}=e,v=x&&"sticky top-[calc(var(--header-height)*2+theme(space.4))] w-[max(14.25rem,35%)] flex-col gap-2.5 rounded-2xl p-4 shadow-xl";o[0]!==v?(t=(0,c.cn)("flex gap-2.5",v),o[0]=v,o[1]=t):t=o[1];let h=`#${p.events.id}`;return o[2]!==p.events.ref.current?(a=e=>{e.preventDefault(),p.events.ref.current?.scrollIntoView({behavior:"smooth"})},o[2]=p.events.ref.current,o[3]=a):a=o[3],o[4]!==h||o[5]!==a?(r=(0,n.jsx)(S.$,{variant:"primary",block:!0,href:h,onClick:a,children:"View events"}),o[4]=h,o[5]=a,o[6]=r):r=o[6],o[7]!==d.primary_url?(s=d.primary_url&&(0,n.jsx)(S.$,{variant:"outline",block:!0,href:d.primary_url,target:"_blank",rel:"noopener noreferrer",iconAfter:{name:"goto"},children:"Visit website"}),o[7]=d.primary_url,o[8]=s):s=o[8],o[9]!==t||o[10]!==r||o[11]!==s?(l=(0,n.jsxs)("div",{className:t,children:[r,s]}),o[9]=t,o[10]=r,o[11]=s,o[12]=l):l=o[12],l}}}]); 2//# sourceMappingURL=3243-1e49cc62f8e4662e.js.map
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.