PageSourceSearch

https://ahlcoalition.netlify.app/_next/static/chunks/pages/calendar-d8c54bd17420e0dc.js

js ahlcoalition.netlify.app collected 2026-10-03 10:26:40 UTC 51,003 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[930],{369:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>N});var a=l(6045),s=l(6690),n=l(8946),r=l(7876),i=l(4232),o=l(9966),c=l(9573),d=l(5784),m=l(2221),u=l(1517),x=l(8668),h=l(4616),p=l(9675),f=l(4538);let g=e=>{let{id:t,className:l,contentClassName:a,title:s,startExpanded:n=!1,allowHiding:o=!0,showPeek:u=!0,moreLabel:g="More",closeLabel:N="Close",mobileLabel:w=null!=s?s:g,children:A}=e,[M,C]=(0,i.useState)(n),{setHeadroomIsDisabled:Y}=(0,f.XH)();return(0,r.jsxs)(x.A,{id:t,className:"\n				".concat(null!=l?l:"","\n			"),children:[(0,r.jsxs)("div",{className:"relative hidden md:block",children:[s&&(0,r.jsx)(x.A.Title,{className:"p-4 text-center !text-4xl mt-10",children:s}),o&&(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsx)(d.N,{mode:"popLayout",children:(0,r.jsx)(m.P.div,{className:"bg-gradient-to-t from-white to-transparent z-30 h-28 absolute bottom-16 left-0 right-0 pointer-events-none",initial:{opacity:1},animate:{opacity:+!M},exit:{opacity:0}})}),(0,r.jsx)("div",{className:"bg-white z-30 h-16 absolute bottom-0 left-0 right-0 text-center",children:(0,r.jsx)(h.Ay.Btn,{variant:"secondary",size:"sm",onClick:()=>{C(!M),Y(!0),setTimeout(()=>Y(!1),500),(0,p.A)("Engagement",M?"Open Collapsible Section":"Close Collapsible Section",null!=s?s:g)},children:(0,r.jsxs)(h.Ay.Body,{onClick:()=>C(!M),children:[M?N:g,M?(0,r.jsx)(h.Ay.Icon,{icon:"mdi:chevron-up"}):(0,r.jsx)(h.Ay.Icon,{icon:"mdi:chevron-down"})]})})})]}),(0,r.jsx)(m.P.div,{className:(0,c.QP)("container lg:max-w-5xl px-4 mt-10 overflow-hidden",a),initial:o?{maxHeight:u?"50vh":0,paddingBottom:64*!u}:null,animate:o?{maxHeight:M?"900vh":u?"50vh":0,paddingBottom:M?80:64*!u}:null,transition:{ease:"easeInOut",duration:.5},children:A})]}),(0,r.jsx)(b,{className:"md:hidden",children:(0,r.jsxs)(v,{id:t,children:[(0,r.jsx)(j,{children:w}),(0,r.jsx)(y,{children:(0,r.jsx)("div",{className:"container px-4",children:A})})]})})]})},b=e=>{let{className:t,type:l="single",defaultValue:a,collapsible:s=!0,children:n}=e;return(0,r.jsx)(o.bL,{type:l,defaultValue:null!=a?a:null,collapsible:s,className:null!=t?t:"",onValueChange:e=>(0,p.A)("Engagement","Open Accordion",e),children:n})},v=(0,i.forwardRef)((e,t)=>{var{id:l,children:i,className:c}=e,d=(0,n._)(e,["id","children","className"]);return(0,r.jsx)(o.q7,(0,s._)((0,a._)({ref:t,value:l,className:null!=c?c:""},d),{children:i}))}),j=(0,i.forwardRef)((e,t)=>{var{children:l,className:i}=e,d=(0,n._)(e,["children","className"]);return(0,r.jsx)(o.Y9,{asChild:!0,children:(0,r.jsxs)(o.l9,(0,s._)((0,a._)({ref:t,className:(0,c.QP)("group flex justify-center gap-3 w-full p-4 font-serif text-xl md:text-2xl font-bold text-pretty text-left text-white focus:outline-none focus-visible:ring focus-visible:ring-purple-500 focus-visible:ring-opacity-75 hover:bg-gray-200 focus:bg-gray-200 transition-colors border-b border-white data-[state=closed]:bg-orange-450 data-[state=open]:bg-orange-550",null!=i?i:"")},d),{children:[l,(0,r.jsx)(u.A,{icon:"mdi:chevron-down",size:"size-5",className:"transition-transform !transform !translate-y-1 group-data-[state=open]:!rotate-180","aria-hidden":"true"})]}))})}),y=(0,i.forwardRef)((e,t)=>{var{children:l,className:i,bodyClassName:d}=e,m=(0,n._)(e,["children","className","bodyClassName"]);return(0,r.jsx)(o.UC,(0,s._)((0,a._)({ref:t,className:(0,c.QP)("data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden",null!=i?i:"")},m),{children:(0,r.jsx)("div",{className:(0,c.QP)("px-4 py-2 border border-gray-200",null!=d?d:""),children:l})}))});g.Item=v,g.Trigger=j,g.Content=y,g.displayName="AccordionItem",g.displayName="AccordionTrigger",g.displayName="AccordionContent";let N=g},1437:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>ti,default:()=>to});var a=l(7876),s=l(6314),n=l(7369),r=l(8342),i=l(6045),o=l(4232),c=l(9099),d=l(6557),m=l.n(d),u=l(8668),x=l(369),h=l(9573),p=l(4616),f=l(1517),g=l(6690),b=l(1576),v=l.n(b),j=l(4301),y=l.n(j);m().extend(v()),m().extend(y());
1let N="America/New_York",w={UPCOMING:"upcoming-events",PAST:"past-events",MEETINGS:"meetings"},A={MONTH:"month",WEEK:"week",AGENDA:"agenda"},M=Object.values(w),C=Object.values(A),Y=e=>C.includes(e)?e:A.MONTH,k=e=>Array.isArray(e)?e[0]:e,D=e=>e?"string"==typeof e&&e.includes("T")?m()(e).tz(N):m()(e):null,_=(e,t)=>e.localeCompare(t),P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m()(),l=T(e);return!!l&&l.isBefore(t)},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m()(),l=T(e);return!!l&&!l.isBefore(t)},E=function(e){var t;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m()(),a=O(null!=(t=null==e?void 0:e.end)?t:null==e?void 0:e.start);return null!=a&&!!a.isValid()&&!a.isBefore(l)},z={event:"Attendance required for event series.",meeting:"Attendance required for committee members."},I=e=>{var t;return null!=(t=z[null==e?void 0:e._modelApiKey])?t:null},T=e=>{var t;return((null==e?void 0:e.instances)&&e.instances.length>0?e.instances.map(e=>{var t;return O(null!=(t=e.end)?t:e.start)}):[O(null!=(t=null==e?void 0:e.end)?t:null==e?void 0:e.start)]).filter(e=>null==e?void 0:e.isValid()).reduce((e,t)=>!e||t.isAfter(e)?t:e,null)},O=e=>e?"string"!=typeof e||e.includes("T")?m()(e):m().tz(e,N).endOf("day"):null,K=e=>{if((null==e?void 0:e._modelApiKey)==="meeting"||(null==e?void 0:e.eventType)==="Webinar"){var t,l;return null!=(l=null==e||null==(t=e.committee)?void 0:t.color)?l:"green-350"}return(null==e?void 0:e.featured)?"yellow-550":"orange-450"},Q=e=>{var t;return(null==e?void 0:e._modelApiKey)==="meeting"?"Meeting":null!=(t=null==e?void 0:e.eventType)?t:"Event"},L=e=>{var t;return(null==e||null==(t=e.committee)?void 0:t.name)?e.committee.name.replace(/\s+Committee$/i,""):null},G=(e,t)=>{let l=m()(e);if(t===A.WEEK){let e=l.startOf("week");return{start:e,end:e.add(6,"day"),days:H(e,e.add(6,"day")),unit:"week"}}if(t===A.AGENDA){let e=l.startOf("month"),t=l.endOf("month");return{start:e,end:t,days:H(e,t),unit:"month"}}let a=l.startOf("month").startOf("week"),s=l.endOf("month").endOf("week");return{start:a,end:s,days:H(a,s),unit:"month"}},H=(e,t)=>{let l=[],a=e.startOf("day"),s=t.startOf("day");for(;a.isBefore(s)||a.isSame(s,"day");)l.push(a),a=a.add(1,"day");return l},B=e=>e.flatMap(e=>"meeting"===e._modelApiKey?U(e,e.start,e.end,e.id):e.instances&&e.instances.length>0?e.instances.map(t=>(0,g._)((0,i._)({},U(e,t.start,t.end,"".concat(e.id,"-").concat(t.id))),{note:t.note})):R(e)).sort(V),R=e=>{var t,l;let a=D(e.start),s=D(null!=(t=e.end)?t:e.start),n=!F(e.start,null!=(l=e.end)?l:e.start);if(!a||!s)return[];let r=H(a,s);return r.map((t,l)=>(0,g._)((0,i._)({},U(e,0===l?e.start:t.startOf("day").format(),l===r.length-1?e.end:t.endOf("day").format(),"".concat(e.id,"-").concat(t.format("YYYY-MM-DD")),n)),{isContinuation:l>0}))},U=function(e,t,l,a){var s;let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:!F(t,l);return{id:a,item:e,start:t,end:l,dateKey:null==(s=D(t))?void 0:s.format("YYYY-MM-DD"),accent:K(e),allDay:n}},F=(e,t)=>{if(!e||!t||"string"==typeof e&&"string"==typeof t&&(!e.includes("T")||!t.includes("T")))return!1;let l=D(e),a=D(t);return(null==l?void 0:l.format("HH:mm"))!=="00:00"||(null==a?void 0:a.format("HH:mm"))!=="00:00"},V=(e,t)=>{let l=_(e.dateKey,t.dateKey);return 0!==l?l:new Date(e.start)-new Date(t.start)},W=(e,t)=>{let l=t.start.format("YYYY-MM-DD"),a=t.end.format("YYYY-MM-DD");return e.filter(e=>_(e.dateKey,l)>=0&&0>=_(e.dateKey,a))},q=e=>e.reduce((e,t)=>(e[t.dateKey]||(e[t.dateKey]=[]),e[t.dateKey].push(t),e),{}),X=e=>{var t,l,a;let{mode:s,view:n,upcomingOccurrences:r,meetingOccurrences:i}=e,o=m()().format("YYYY-MM-DD");if(s===w.MEETINGS){let e=[...i].sort((e,t)=>_(t.dateKey,e.dateKey))[0];return null!=(l=null==e?void 0:e.dateKey)?l:o}return s===w.PAST||W(r,G(o,n)).some(e=>_(e.dateKey,o)>=0)?o:null!=(a=null==(t=r.find(e=>_(e.dateKey,o)>=0))?void 0:t.dateKey)?a:o},$=(e,t,l)=>{let a=t===A.WEEK?"week":"month";return m()(e).add(l,a).format("YYYY-MM-DD")},J=[{value:w.UPCOMING,label:"Upcoming Events",icon:"mdi:calendar"},{value:w.PAST,label:"Past Events",icon:"mdi:calendar-end"},{value:w.MEETINGS,label:"Meetings",icon:"mdi:users"}],Z=[{value:A.MONTH,label:"Month",icon:"mdi:calendar-month"}
1,{value:A.WEEK,label:"Week",icon:"mdi:calendar-week"},{value:A.AGENDA,label:"Agenda",icon:"mdi:format-list-bulleted"}],ee=e=>{let{className:t,mode:l,onModeChange:s}=e;return(0,a.jsx)("div",{className:(0,h.QP)("flex flex-wrap items-center justify-center gap-3",t),children:J.map(e=>(0,a.jsx)(et,{active:l===e.value,icon:e.icon,onClick:()=>s(e.value),children:e.label},e.value))})},et=e=>{let{active:t,children:l,icon:s,onClick:n}=e;return(0,a.jsxs)("button",{type:"button",onClick:n,className:(0,h.QP)("inline-flex items-center gap-2 rounded-full px-5 py-2.5 text-sm font-bold uppercase transition focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",t?"bg-orange-450 text-white shadow-md":"bg-gray-100 text-yellow-850 hover:bg-orange-150"),children:[(0,a.jsx)(f.A,{icon:s,size:"size-5"}),l]})},el=e=>{let{active:t,children:l,disabled:s=!1,icon:n,onClick:r}=e;return(0,a.jsxs)("button",{type:"button",disabled:s,onClick:r,className:(0,h.QP)("inline-flex items-center gap-2 rounded-md px-3 py-2 text-sm font-bold transition focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",s?"cursor-not-allowed bg-gray-100 text-yellow-850/40":t?"bg-yellow-750 text-orange-150":"bg-white text-yellow-850 hover:bg-orange-150"),children:[(0,a.jsx)(f.A,{icon:n,size:"size-4"}),l]})},ea=e=>{let{disabled:t=!1,icon:l,label:s,onClick:n}=e;return(0,a.jsx)("button",{type:"button","aria-label":s,disabled:t,onClick:n,className:(0,h.QP)("inline-flex size-10 items-center justify-center rounded-full transition focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",t?"cursor-not-allowed bg-gray-100 text-yellow-850/40":"bg-white text-yellow-850 hover:bg-orange-450 hover:text-white"),children:(0,a.jsx)(f.A,{icon:l,size:"size-5"})})},es=e=>{let{committee:t,committees:l,disabled:s=!1,onCommitteeChange:n}=e,r=[{value:"all",color:"gray-400",label:"All",useCommitteeColor:!1},...l.map(e=>({value:e.slug,color:e.color,label:e.name,useCommitteeColor:!0}))],i=Math.floor(r.length/2),o=[r.slice(0,i),r.slice(i)].filter(e=>e.length>0);return(0,a.jsxs)("div",{className:"mt-4 border-t border-black/10 pt-4",children:[(0,a.jsx)("div",{id:"calendar-committee-label",className:"sr-only",children:"Committee"}),(0,a.jsx)("div",{role:"radiogroup","aria-labelledby":"calendar-committee-label",className:"flex flex-wrap gap-2 md:hidden",children:(0,a.jsx)(en,{committee:t,disabled:s,options:r,onCommitteeChange:n})}),(0,a.jsx)("div",{role:"radiogroup","aria-labelledby":"calendar-committee-label",className:"hidden md:flex md:flex-col md:items-center md:gap-2",children:o.map((e,l)=>(0,a.jsx)("div",{className:"flex flex-wrap justify-center gap-2",children:(0,a.jsx)(en,{committee:t,disabled:s,options:e,onCommitteeChange:n})},l))})]})},en=e=>{let{committee:t,disabled:l,onCommitteeChange:s,options:n}=e;return n.map(e=>(0,a.jsx)(er,{active:t===e.value,color:e.color,disabled:l,label:e.label,useCommitteeColor:e.useCommitteeColor,onClick:()=>s(e.value)},e.value))},er=e=>{let{active:t,color:l,disabled:s=!1,label:n,onClick:r,useCommitteeColor:i=!0}=e;return(0,a.jsxs)("button",{type:"button",role:"radio","aria-checked":t,disabled:s,onClick:r,className:(0,h.QP)("inline-flex items-center gap-2 rounded-full border px-3 py-2 text-sm font-bold transition focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",s?"cursor-not-allowed border-black/10 bg-gray-100 text-yellow-850/40":t?i?"border-".concat(l," bg-").concat(l," text-white shadow-md ring-2 ring-black/10"):"border-yellow-750 bg-yellow-750 text-orange-150 shadow-md ring-2 ring-yellow-750/25":"border-black/10 bg-white/70 text-yellow-850/75 hover:bg-white hover:text-yellow-850"),children:[(0,a.jsx)("span",{className:(0,h.QP)("size-2.5 shrink-0 rounded-full bg-".concat(null!=l?l:"gray-400"),s?"opacity-40":t?"ring-2 ring-white/80":"")}),(0,a.jsx)("span",{children:n.replace(/\s+Committee$/i,"")})]})},ei=e=>{let{activeDate:t,className:l,committee:s,committees:n,disableCommitteeSelection:r=!1,disableNextDate:i=!1,disableViewControls:o=!1,mode:c,onBackToLatest:d,onCommitteeChange:u,onDateChange:x,onResetDate:f,onViewChange:g,title:b,view:v}=e,j=c!==w.PAST;return(0,a.jsx)("div",{className:(0,h.QP)("",l),children:j&&(0,a.jsxs)("div",{className:"rounded-md border border-black/10 bg-orange-150/35 p-3 md:p-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(ea,{label:"Previous range",icon:"mdi:chevron-left",onClick:()=>x($(t,v,-1))}),(0,a.jsx)(ea,{disabled:i,label:"Next range",icon:"mdi:chevron-right",onClick:()=>x($(t,v,1))}),(0,a.jsx)(p.Ay.Btn,{variant:"white",size:"sm",className:"normal-case",onClick:f,children:c===w.MEETINGS?"Latest":"Today"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[d&&(0,a.jsx)(ea,{label:"Back to latest meetings",icon:"mdi:arrow-left",onClick:d}),(0,a.jsx)("h2",{className:"font-serif text-xl font-bold text-pretty md:text-2xl",children:null!=b?b:((e,t)=>{let l=m()(e);if(t===A.WEEK){let e=l.startOf("week"),t=e.add(6,"day");return e.format("YYYY")!==t.format("YYYY")?"".concat(e.format("MMM. D, YYYY")," - ").concat(t.format("MMM. D, YYYY")):e.format("MMMM")!==t.format("MMMM")?"".concat(e.format("MMM. D")," - ").concat(t.format("MMM. D, YYYY")):"".concat(e.format("MMMM D")," - ").concat(t.format("D, YYYY"))}return l.format("MMMM YYYY")})(t,v)})]}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:Z.map(e=>(0,a.jsx)(el,{active:v===e.value,disabled:o,icon:e.icon,onClick:()=>g(e.value),children:e.label},e.value))})]}),c===w.MEETINGS&&n.length>0&&(0,a.jsx)(es,{committee:s,committees:n,disabled:r,onCommitteeChange:u})]})})};var eo=l(8230),ec=l.n(eo),ed=l(4421),em=l(9909),eu=l(332),ex=l(5521),eh=l(6014),ep=l(5302),ef=l(2014),eg=l(8404);let eb=e=>{let{className:t,compact:l=!1,occurrence:s}=e;return((e,t)=>{var l;return(null==e||null==(l=e.item)?void 0:l.attendanceRequired)===!0&&!!I(e.item)&&E(e,t)})(s)?(0,a.jsxs)("span",{role:"note",className:"flex items-start gap-2 font-semibold text-yellow-850 ".concat(l?"text-xs":"rounded-md border border-orange-450/35 bg-orange-150/70 p-3 text-sm"," ").concat(null!=t?t:""),children:[(0,a.jsx)(f.A,{icon:"mdi:account-alert-outline",size:l?"size-4":"size-5",className:"mt-px shrink-0 text-orange-450","aria-hidden":"true"}),(0,a.jsx)("span",{children:I(s.item)})]}):null};var ev=l(8946),ej=l(6303),ey=l(3470),eN=l.n(ey),ew=l(2978),eA=l.n(ew);let eM=ej.bL;ej.l9,ej.bm;let eC=e=>{var{className:t}=e,l=(0,ev._)(e,["className"]);return(0,a.jsx)(ej.ZL,(0,i._)({className:t},l))},eY=(0,o.forwardRef)((e,t)=>{var{className:l}=e,s=(0,ev._)(e,["className"]);return(0,a.jsx)(ej.hJ,(0,i._)({ref:t,className:(0,h.QP)("fixed inset-0 z-40 bg-yellow-850/45 backdrop-blur-[1px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",l)},s))}),ek=(0,o.forwardRef)((e,t)=>{var{side:l="right",className:s,children:n}=e,r=(0,ev._)(e,["side","className","children"]);return(0,a.jsxs)(eC,{children:[(0,a.jsx)(eY,{}),(0,a.jsxs)(ej.UC,(0,g._)((0,i._)({ref:t,className:(0,h.QP)("fixed z-50 flex flex-col gap-4 bg-white text-yellow-850 shadow-xl transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-full max-w-xl border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",right:"inset-y-0 right-0 h-full w-full max-w-xl border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right"}[l],eN().className,eA().variable,s)},r),{children:[n,(0,a.jsxs)(ej.bm,{className:"absolute right-4 top-4 roun
1ded-full p-2 text-yellow-850/70 transition hover:bg-orange-150 hover:text-yellow-850 focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",children:[(0,a.jsx)(f.A,{icon:"mdi:close",size:"size-5"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}),eD=e=>{var{className:t}=e,l=(0,ev._)(e,["className"]);return(0,a.jsx)("div",(0,i._)({className:(0,h.QP)("space-y-2 pr-10",t)},l))},e_=(0,o.forwardRef)((e,t)=>{var{className:l}=e,s=(0,ev._)(e,["className"]);return(0,a.jsx)(ej.hE,(0,i._)({ref:t,className:(0,h.QP)("font-serif text-2xl font-bold text-pretty",l)},s))}),eP=(0,o.forwardRef)((e,t)=>{var{className:l}=e,s=(0,ev._)(e,["className"]);return(0,a.jsx)(ej.VY,(0,i._)({ref:t,className:(0,h.QP)("text-sm text-yellow-850/75 text-pretty",l)},s))});eY.displayName=ej.hJ.displayName,ek.displayName=ej.UC.displayName,e_.displayName=ej.hE.displayName,eP.displayName=ej.VY.displayName;let eS=e=>{var t,l,s;let{occurrence:n}=e,r=n.item,i=P(r),o=K(r),c=L(r),d=Q(r);return(0,a.jsxs)("article",{className:"flex h-full min-h-0 flex-col",children:[(0,a.jsx)("header",{className:"shrink-0 border-t-[12px] border-".concat(o," bg-orange-150/45 p-6"),children:(0,a.jsxs)(eD,{children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-".concat(o," px-3 py-1 text-xs font-bold uppercase text-white"),children:[(0,a.jsx)(f.A,{icon:"meeting"===r._modelApiKey?"mdi:users":"mdi:calendar",size:"size-4"}),d]}),c&&(0,a.jsx)(ec(),{href:"/committees/".concat(r.committee.slug),className:"text-sm font-bold text-".concat(o," hover:underline"),children:c})]}),(0,a.jsx)(e_,{children:r.title}),r.subtitle&&(0,a.jsx)(eP,{children:r.subtitle})]})}),(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,a.jsxs)("div",{className:"space-y-6 p-6",children:[(0,a.jsx)(eb,{occurrence:n}),r.featuredImage&&(0,a.jsx)(ed.Ay.DatoImage,{includeAspect:!1,image:null!=(s=null!=(l=null==(t=r.featuredImageFull)?void 0:t.responsiveImage)?l:r.featuredImage.responsiveImage)?s:r.featuredImage,imageClassName:"h-auto w-full object-contain"}),(0,a.jsx)(eE,{icon:"mdi:calendar-clock",title:"Date & Time",children:(0,a.jsx)(ex.A,{id:r.id,instances:r.instances,start:r.start,end:r.end})}),r.location&&r.location.name&&(0,a.jsx)(eE,{icon:"tdesign:location",title:"Location",children:(0,a.jsx)(ef.A,{location:r.location,isPast:i,showIcon:!1})}),r.shortDescription&&(0,a.jsx)(eE,{icon:"mdi:information-outline",title:"Overview",children:(0,a.jsx)(em.A,{content:r.shortDescription,proseClassName:"prose prose-sm !max-w-none text-pretty"})}),r.additionalDescription&&(0,a.jsx)(eE,{icon:"mdi:text-box-outline",title:"More Info",children:(0,a.jsx)(em.A,{content:r.additionalDescription,proseClassName:"prose prose-sm !max-w-none text-pretty"})}),r.contacts&&r.contacts.length>0&&(0,a.jsx)(eE,{icon:"ri:contacts-book-3-line",title:"Contacts",children:(0,a.jsx)(eu.A,{contacts:r.contacts,isPast:i,showTitle:!1})}),r.phoneNumbers&&r.phoneNumbers.length>0&&(0,a.jsx)(eE,{icon:"fluent:phone-12-regular",title:"Phone Numbers",children:(0,a.jsx)(eg.A,{phoneNumbers:r.phoneNumbers,isPast:i,showTitle:!1})}),r.links&&r.links.length>0&&(0,a.jsx)(eE,{icon:"mdi:link",title:"Links",children:(0,a.jsx)(ep.A,{links:r.links,isPast:i})}),r.downloads&&r.downloads.length>0&&(0,a.jsx)(eE,{icon:"mingcute:download-line",title:"Downloads",children:(0,a.jsx)(eh.A,{downloads:r.downloads,isPast:i})})]})}),r.callsToAction&&r.callsToAction.length>0&&(0,a.jsx)("footer",{className:"shrink-0 border-t border-black/10 bg-white p-6",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-3",children:r.callsToAction.map((e,t)=>e.url.startsWith("http")?(0,a.jsx)(p.Ay.Anchor,{href:e.url,variant:0===t?"primary":"hollowPrimary",size:"sm",children:e.title},"".concat(e.title,"-").concat(e.url)):(0,a.jsx)(p.Ay.Link,{href:e.url,variant:0===t?"primary":"hollowPrimary",size:"sm",children:e.title},"".concat(e.title,"-").concat(e.url)))})})]})},eE=e=>{let{children:t,icon:l,title:s}=e;return(0,a.jsxs)("section",{className:"rounded-md border border-black/10 bg-white p-4",children:[(0,a.jsxs)("h3",{className:"mb-3 flex items-center gap-2 font-sans text-sm font-bold uppercase text-yellow-850/75",children:[(0,a.jsx)(f.A,{icon:l,size:"size-5",className:"text-orange-450"}),s]}),t]})},ez=e=>{let{occurrence:t,onOpenChange:l}=e,s=null==t?void 0:t.item;return(0,a.jsx)(eM,{open:!!s,onOpenChange:l,children:(0,a.jsx)(ek,{className:"gap-0 overflow-hidden p-0",children:s&&(0,a.jsx)(eS,{occurrence:t})})})};var eI=l(5784),eT=l(2221),eO=l(7033),eK=l(9535),eQ=l(4768);let eL=eQ.bL,eG=eQ.l9;eQ.Mz;let eH=(0,o.forwardRef)((e,t)=>{var{className:l,align:s="center",sideOffset:n=8}=e,r=(0,ev._)(e,["className","align","sideOffset"]);return(0,a.jsx)(eQ.ZL,{children:(0,a.jsx)(eQ.UC,(0,i._)({ref:t,align:s,sideOffset:n,className:(0,h.QP)("z-50 w-72 rounded-md border border-black/10 bg-white p-4 text-yellow-850 shadow-lg outline-none data-[state=open]:animate-slideUpAndFade",eN().className,eA().variable,l)},r))})});eH.displayName=eQ.UC.displayName;let eB=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eR=e=>{var t;let{occurrence:l,onSelect:s,label:n="Next Event"}=e,r=null==l?void 0:l.item;if(!r)return null;let i=K(r),o=l.start,c=e3(r);return(0,a.jsx)("section",{className:"mb-8",children:(0,a.jsx)(ed.Ay.Default,{variant:"white",borderPosition:"top",hasShadow:!1,className:"overflow-hidden border-t-8 border-x border-b border-black/10 border-".concat(i),children:(0,a.jsxs)("div",{className:"grid gap-0 md:grid-cols-[1.15fr_0.85fr]",children:[(0,a.jsxs)("div",{className:"flex h-full flex-col p-5 md:p-6",children:[(0,a.jsx)("div",{className:"mb-3",children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-".concat(i," px-3 py-1 text-xs font-bold uppercase text-white"),children:[(0,a.jsx)(f.A,{icon:"mdi:star",size:"size-4"}),n]})}),(0,a.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-4",children:[(0,a.jsx)("span",{className:"text-sm font-bold uppercase text-yellow-850/70",children:(0,a.jsx)(eO.A,{date:o,format:"MMM. D, YYYY"})}),(0,a.jsx)(eU,{icon:"mdi:tag",children:Q(r)})]}),(0,a.jsx)("h2",{className:"mb-2 font-serif text-xl font-bold leading-tight text-pretty md:text-2xl",children:r.title}),r.subtitle&&(0,a.jsx)("p",{className:"mb-3 text-base text-yellow-850/85 text-pretty",children:r.subtitle}
1),r.shortDescription&&(0,a.jsx)(em.A,{content:r.shortDescription,proseClassName:"prose prose-sm !max-w-none text-pretty [&>p]:my-0"}),(0,a.jsxs)("div",{className:"mt-auto flex flex-wrap gap-3 pt-4",children:[(0,a.jsx)(p.Ay.Btn,{variant:"primary",size:"sm",onClick:()=>s(l),children:"View Details"}),r.dedicatedPage&&r.slug&&(0,a.jsx)(p.Ay.Link,{href:"/calendar/events/".concat(r.slug),variant:"hollowPrimary",size:"sm",children:"Event Page"})]})]}),(0,a.jsxs)("div",{className:"border-t border-black/10 bg-orange-150/45 md:border-l md:border-t-0",children:[c&&(0,a.jsx)(ed.Ay.DatoImage,{includeAspect:!1,image:c,alt:r.title,className:"aspect-[2/1] w-full",imageClassName:"size-full object-cover"}),(0,a.jsxs)("div",{className:"space-y-3 p-5 md:p-6",children:[(0,a.jsx)(eU,{icon:"mdi:calendar",children:(0,a.jsx)(eO.A,{date:o,format:"dddd, MMMM D, YYYY"})}),(null==(t=r.location)?void 0:t.name)&&(0,a.jsxs)(eU,{icon:"tdesign:location",children:[(0,a.jsx)("span",{className:"font-bold",children:r.location.name}),r.location.address&&"Virtual"!==r.location.name&&(0,a.jsx)("span",{className:"block text-sm font-normal",children:r.location.address})]})]})]})]})})})},eU=e=>{let{children:t,icon:l}=e;return(0,a.jsxs)("div",{className:"flex gap-3 text-sm font-semibold text-yellow-850",children:[(0,a.jsx)(f.A,{icon:l,size:"size-5",className:"mt-0.5 text-orange-450"}),(0,a.jsx)("div",{children:t})]})},eF=e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eV,(0,i._)({},e)),(0,a.jsx)(eW,(0,i._)({},e))]}),eV=e=>{let{activeDate:t,occurrences:l,onSelect:s,range:n}=e,[r,i]=(0,o.useState)(null),c=q(l),d=m()(t).month(),u=eq(n.days);return(0,o.useEffect)(()=>{i(null)},[t]),(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsxs)("div",{className:"overflow-hidden rounded-md border border-black/10 bg-white",children:[(0,a.jsx)("div",{className:"grid grid-cols-7 border-b border-black/10 bg-yellow-750 text-center text-2xs font-bold uppercase text-orange-150",children:eB.map(e=>(0,a.jsx)("div",{className:"px-1 py-2",children:e.slice(0,1)},e))}),(0,a.jsx)("div",{children:u.map((e,t)=>{var l;let n=e.find(e=>e.format("YYYY-MM-DD")===r),o=n&&null!=(l=c[r])?l:[];return(0,a.jsxs)("div",{className:(0,h.QP)("border-b border-black/10",t===u.length-1?"border-b-0":""),children:[(0,a.jsx)("div",{className:"grid grid-cols-7",children:e.map(e=>{var t;let l=e.format("YYYY-MM-DD"),s=null!=(t=c[l])?t:[],n=s.length>0,o=r===l;return(0,a.jsxs)("button",{type:"button",disabled:!n,"aria-expanded":n?o:void 0,"aria-controls":n?"month-day-".concat(l):void 0,onClick:()=>i(e=>e===l?null:l),className:(0,h.QP)("relative flex min-h-12 flex-col items-center justify-between border-r border-black/10 px-1 py-1.5 text-xs last:border-r-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-orange-450",e.month()!==d?"bg-gray-50 text-yellow-850/45":"text-yellow-850",n?"cursor-pointer hover:bg-orange-150/55":"cursor-default",o?"bg-orange-150/70 ring-2 ring-inset ring-orange-450":"",e.isSame(m()(),"day")?"font-bold text-orange-450":""),children:[(0,a.jsx)("time",{children:e.format("D")}),n&&(0,a.jsx)("span",{className:"flex h-2 items-center gap-0.5",children:s.slice(0,3).map(e=>(0,a.jsx)("span",{className:"size-1.5 rounded-full bg-".concat(e.accent)},e.id))})]},l)})}),(0,a.jsx)(eI.N,{initial:!1,mode:"wait",children:n&&o.length>0&&(0,a.jsx)(eT.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeOut"},className:"overflow-hidden",children:(0,a.jsxs)("div",{id:"month-day-".concat(r),className:"border-t border-black/10 bg-orange-150/35 p-3",children:[(0,a.jsx)("h3",{className:"mb-3 font-serif text-lg font-bold text-yellow-850",children:n.format("dddd, MMMM D")}),(0,a.jsx)("div",{className:"space-y-3",children:o.map(e=>(0,a.jsx)(e4,{occurrence:e,onSelect:s},e.id))})]})},r)})]},e[0].format("YYYY-MM-DD"))})})]})})},eW=e=>{let{activeDate:t,occurrences:l,onSelect:s,range:n}=e,[r,i]=(0,o.useState)(null),c=q(l),d=m()(t).month();return(0,a.jsx)("div",{className:"hidden overflow-x-auto pb-2 md:block",children:(0,a.jsxs)("div",{className:"min-w-[760px] rounded-md border border-black/10 bg-white",children:[(0,a.jsx)("div",{className:"grid grid-cols-7 border-b border-black/10 bg-yellow-750 text-center text-xs font-bold uppercase text-orange-150",children:eB.map(e=>(0,a.jsx)("div",{className:"px-2 py-3",children:e},e))}),(0,a.jsx)("div",{className:"grid grid-cols-7",children:n.days.map(e=>{var t;let l=e.format("YYYY-MM-DD"),n=null!=(t=c[l])?t:[],o=n.slice(0,3),u=n.slice(3);return(0,a.jsxs)("div",{className:(0,h.QP)("min-h-24 border-b border-r border-black/10 p-2 last:border-r-0",e.month()!==d?"bg-gray-50 text-yellow-850/45":"",e.isSame(m()(),"day")?"bg-orange-150/45":""),children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-bold",children:e.format("D")}),e.isSame(m()(),"day")&&(0,a.jsx)("span",{className:"rounded-full bg-orange-450 px-2 py-0.5 text-2xs font-bold uppercase text-white",children:"Today"})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[o.map(e=>(0,a.jsx)(eX,{occurrence:e,open:r===e.id,onSelect:s,setOpen:t=>{i(t?e.id:null)}},e.id)),u.length>0&&(0,a.jsx)(e$,{count:u.length,occurrences:u,onSelect:s})]})]},l)})})]})})},eq=e=>{let t=[];for(let l=0;l<e.length;l+=7)t.push(e.slice(l,l+7));return t},eX=e=>{let{occurrence:t,onSelect:l,open:s,setOpen:n}=e,{item:r}=t,i=K(r),o=L(r),c="meeting"===r._modelApiKey?o:null;return(0,a.jsxs)(eL,{open:s,onOpenChange:n,children:[(0,a.jsx)(eG,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",onClick:()=>{n(!1),l(t)},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),className:"block w-full truncate rounded border-l-4 border-".concat(i," bg-orange-150/60 px-2 py-1 text-left text-xs font-bold text-yellow-850 transition hover:bg-orange-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450"),children:[c&&(0,a.jsx)("span",{className:"mr-1 font-semibold text-yellow-850/65",children:c}),r.title]})}),(0,a.jsx)(eH,{align:"start",onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),onMouseEnter:()=>n(!1),children:(0,a.jsx)(te,{occurrence:t})})]})},e$=e=>{let{count:t,occurrences:l,onSelect:s}=e,[n,r]=(0,o.useState)(!1);return(0,a.jsxs)(eL,{open:n,onOpenChange:r,children:[(0,a.jsx)(eG,{asChild:!0,children:(0,a.jsxs)("button",{type:"button",className:"w-full rounded bg-gray-100 px-2 py-1 text-left text-xs font-bold text-yellow-850 transition hover:bg-orange-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",children:["+",t," more"]})}),(0,a.jsxs)(eH,{align:"start",className:"space-y-2",children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase text-yellow-850/60",children:"More items"}),(0,a.jsx)("div",{className:"space-y-1",children:l.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{r(!1),s(e)},className:"w-full rounded px-2 py-1.5 text-left text-sm font-semibold transition hover:bg-orange-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450",children:[e.item.title,(0,a.jsx)(eb,{occurrence:e,compact:!0,className:"mt-1.5"})]},e.id))})]})]})},eJ=e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eZ,(0,i._)({},e)),(0,a.jsx)(e0,(0,i._)({},e))]}),eZ=e=>{let{occurrences:t,onSelect:l,range:s}=e,n=q(t),r=s.days.filter(e=>{var t;return(null!=(t=n[e.format("YYYY-MM-DD")])?t:[]).length>0});return(0,a.jsx)("div",{className:"space-y-3 lg:hidden",children:r.map(e=>{let t=e.format("YYYY-MM-DD"),s=n[t];return(0,a.jsxs)("section",{className:"overflow-hidden rounded-md border border-black/10 bg-white",children:[(0,a.jsxs)("div",{className:(0,h.QP)("flex items-center gap-3 bg-yellow-750 px-4 py-3 text-orange-150",e.isSame(m()(),"day")?"bg-orange-450 text-white":""),children:[(0,a.jsx)("span",{className:"font-serif text-2xl font-bold",children:e.format("D")}),(0,a.jsx)("span",{className:"text-sm font-bold uppercase",children:e.format("dddd, MMMM")})]}),(0,a.jsx)("div",{className:"space-y-2 p-3",children:s.map(e=>(0,a.jsx)(e1,{occurrence:e,onSelect:l},e.id))})]},t)})})},e0=e=>{let{occurrences:t,onSelect:l,range:s}=e,n=q(t);return(0,a.jsx)("div",{className:"hidden overflow-x-auto pb-2 lg:block",children:(0,a.jsxs)("div",{className:"min-w-[900px] rounded-md border border-black/10 bg-white",children:[(0,a.jsx)("div",{className:"grid grid-cols-7 border-b border-black/10",children:s.days.map(e=>(0,a.jsxs)("div",{className:(0,h.QP)("border-r border-black/10 bg-yellow-750 px-3 py-3 text-center text-orange-150 last:border-r-0",e.isSame(m()(),"day")?"bg-orange-450 text-white":""),children:[(0,a.jsx)("div",{className:"text-xs font-bold uppercase",children:e.format("ddd")}),(0,a.jsx)("div",{className:"font-serif text-2xl font-bold",children:e.format("D")})]},e.format("YYYY-MM-DD")))}),(0,a.jsx)("div",{className:"grid grid-cols-7",children:s.days.map(e=>{var t;let s=e.format("YYYY-MM-DD"),r=null!=(t=n[s])?t:[];return(0,a.jsx)("div",{className:"min-h-96 border-r border-black/10 p-2 last:border-r-0",children:(0,a.jsx)("div",{className:"space-y-2",children:r.map(e=>(0,a.jsx)(e5,{occurrence:e,onSelect:l},e.id))})},s)})})]})})},e5=e=>{let{occurrence:t,onSelect:l}=e,[s,n]=(0,o.useState)(!1),r=e8(t.item);return r?(0,a.jsxs)(eL,{open:s,onOpenChange:n,children:[(0,a.jsx)(eG,{asChild:!0,children:(0,a.jsx)(e1,{occurrence:t,onSelect:l,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)})}),(0,a.jsxs)(eH,{align:"start",side:"right",className:"w-96 max-w-[calc(100vw-2rem)] overflow-hidden p-0",onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),children:[(0,a.jsx)(ed.Ay.DatoImage,{includeAspect:!1,image:r,alt:t.item.title,className:"w-full",imageClassName:"h-auto w-full"}),(0,a.jsx)(eb,{occurrence:t,compact:!0,className:"m-3"})]})]}):(0,a.jsx)(e1,{occurrence:t,onSelect:l})},e1=(0,o.forwardRef)((e,t)=>{var l,{occurrence:s,onClick:n,onMouseEnter:r,onMouseLeave:o,onSelect:c}=e,d=(0,ev._)(e,["occurrence","onClick","onMouseEnter","onMouseLeave","onSelect"]);let{item:m}=s,u=K(m),x=L(m),h=tt(s),p="meeting"===m._modelApiKey;return(0,a.jsxs)("button",(0,g._)((0,i._)({ref:t,type:"button",onClick:e=>{null==n||n(e),e.defaultPrevented||c(s)},onMouseEnter:r,onMouseLeave:o,className:"w-full rounded-md border border-black/10 border-l-4 border-l-".concat(u," bg-white p-3 text-left shadow-sm transition hover:-translate-y-
1px hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450")},d),{children:[(0,a.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-1.5",children:["meeting"!==m._modelApiKey&&(0,a.jsx)("span",{className:"rounded-full bg-".concat(u," px-2 py-0.5 text-2xs font-bold uppercase text-white"),children:Q(m)}),p&&x&&(0,a.jsx)("span",{className:"text-xs font-bold text-".concat(u),children:x}),h&&(0,a.jsx)("span",{className:"text-xs font-bold text-yellow-850/65",children:h})]}),(0,a.jsx)("h3",{className:"text-sm font-bold leading-tight text-pretty",children:m.title}),!p&&x&&(0,a.jsx)("p",{className:"mt-1 text-xs font-semibold text-".concat(u),children:x}),(null==(l=m.location)?void 0:l.name)&&(0,a.jsx)("p",{className:"mt-2 line-clamp-2 text-xs text-yellow-850/70",children:m.location.name})]}))});e1.displayName="WeekCard";let e2=e=>{let{occurrences:t,onSelect:l}=e,s=q(t),n=Object.keys(s).sort();return(0,a.jsx)("div",{className:"space-y-6",children:n.map(e=>(0,a.jsxs)("section",{children:[(0,a.jsxs)("h3",{className:"mb-3 flex items-center gap-3 font-serif text-xl font-bold",children:[(0,a.jsxs)("span",{className:"flex size-12 shrink-0 flex-col items-center justify-center rounded bg-yellow-750 text-center leading-none text-orange-150",children:[(0,a.jsx)("span",{className:"text-2xs font-bold uppercase",children:m()(e).format("MMM")}),(0,a.jsx)("span",{className:"text-xl",children:m()(e).format("D")})]}),(0,a.jsx)("span",{children:m()(e).format("dddd")})]}),(0,a.jsx)("div",{className:"space-y-3",children:s[e].map(e=>(0,a.jsx)(e4,{occurrence:e,onSelect:l},e.id))})]},e))})},e4=e=>{var t;let{occurrence:l,onSelect:s}=e,{item:n}=l,r=K(n),i=L(n),o=e3(n),c=tt(l),d="meeting"===n._modelApiKey;return(0,a.jsx)(ed.Ay.Default,{as:"article",variant:"white",hasShadow:!1,className:"border border-l-8 border-black/10 border-l-".concat(r),children:(0,a.jsx)(ed.Ay.Body,{className:"!p-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row",children:[(0,a.jsx)("div",{className:"aspect-[2/1] w-full shrink-0 overflow-hidden rounded-md bg-orange-150 sm:size-24 sm:aspect-auto md:h-24 md:w-48",children:o?(0,a.jsx)(ed.Ay.DatoImage,{includeAspect:!1,image:o,className:"size-full",imageClassName:"size-full object-cover"}):(0,a.jsx)("div",{className:"flex size-full items-center justify-center",children:(0,a.jsx)(f.A,{icon:"meeting"===n._modelApiKey?"mdi:users":"mdi:calendar-star",size:"size-9",className:"text-".concat(r)})})}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start gap-3 sm:flex-row sm:flex-wrap sm:justify-between sm:gap-4",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-2",children:["meeting"!==n._modelApiKey&&(0,a.jsx)("span",{className:"rounded-full bg-".concat(r," px-2.5 py-1 text-2xs font-bold uppercase text-white"),children:Q(n)}),d&&i&&(0,a.jsx)("span",{className:"text-sm font-bold text-".concat(r),children:i}),c&&(0,a.jsx)("span",{className:"text-sm font-bold text-yellow-850/70",children:c}),!d&&i&&(0,a.jsx)("span",{className:"text-sm font-bold text-".concat(r),children:i})]}),(0,a.jsx)("h3",{className:"font-serif text-xl font-bold text-pretty",children:n.title}),(null==(t=n.location)?void 0:t.name)&&(0,a.jsx)("p",{className:"mt-1 text-sm text-yellow-850/75",children:n.location.name}),(0,a.jsx)(eb,{occurrence:l,compact:!0,className:"mt-3"})]}),(0,a.jsx)(p.Ay.Btn,{variant:"hollowPrimary",size:"sm",className:"stretched-link self-start",onClick:()=>s(l),children:"Details"})]})]})})})},e3=e=>e.featuredImageCallout?""!==e.featuredImageCallout.responsiveImage?e.featuredImageCallout.responsiveImage:e.featuredImageCallout:(e=>e.featuredImage?""!==e.featuredImage.responsiveImage?e.featuredImage.responsiveImage:e.featuredImage:null)(e),e8=e=>{var t;let l=null!=(t=e.featuredImageFull)?t:e.featuredImage;return l?""!==l.responsiveImage?l.responsiveImage:l:null},e6=e=>{let{events:t}=e;return 0===t.length?(0,a.jsx)(e7,{icon:"mdi:calendar-remove",message:"No past events are available yet."}):(0,a.jsx)("ol",{className:"space-y-12",children:(0,a.jsx)(eI.N,{mode:"popLayout",children:t.map(e=>(0,a.jsx)(eT.P.div,{initial:{opacity:0,y:10,scale:.98}
1,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.98},children:(0,a.jsx)(eK.A,{item:e,isPast:!0,overrideFeatured:!0})},e.id))})})},e7=e=>{let{icon:t="mdi:calendar-remove",message:l="No items match this calendar range."}=e;return(0,a.jsx)(ed.Ay.Default,{variant:"gray",hasShadow:!1,children:(0,a.jsxs)(ed.Ay.Body,{className:"flex flex-col items-center justify-center gap-3",children:[(0,a.jsx)("div",{className:"rounded-full bg-white/80 p-5",children:(0,a.jsx)(f.A,{icon:t,size:"size-10",className:"text-gray-500"})}),(0,a.jsx)("p",{className:"text-center text-lg font-bold",children:l})]})})},e9=e=>{let{committees:t}=e;return t&&0!==t.length?(0,a.jsx)(ed.Ay.Default,{variant:"gray",hasShadow:!1,children:(0,a.jsxs)(ed.Ay.Body,{className:"space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-2 inline-flex items-center gap-2 rounded-full bg-white px-3 py-1 text-xs font-bold uppercase text-yellow-850/70",children:[(0,a.jsx)(f.A,{icon:"mdi:calendar-sync",size:"size-4",className:"text-orange-450"}),"Meeting Cadence"]}),(0,a.jsx)("h3",{className:"font-serif text-2xl font-bold text-yellow-850 text-pretty",children:"Committee meetings follow regular schedules."})]})}),(0,a.jsx)("div",{className:"grid gap-3 md:grid-cols-2",children:t.map(e=>{var t,l;return(0,a.jsxs)(ec(),{href:"/committees/".concat(e.slug),className:"group border-l-4 border-".concat(null!=(t=e.color)?t:"gray-400"," bg-white p-4 transition hover:-translate-y-0.5 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-orange-450"),children:[(0,a.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)("span",{className:"mt-1 size-2.5 shrink-0 rounded-full bg-".concat(null!=(l=e.color)?l:"gray-400")}),(0,a.jsx)("h4",{className:"text-base font-bold leading-tight text-yellow-850 group-hover:underline",children:e.name})]}),(0,a.jsx)(f.A,{icon:"mdi:arrow-right",size:"size-5",className:"shrink-0 text-yellow-850/40 transition group-hover:text-orange-450"})]}),e.meetingCadence?(0,a.jsx)(em.A,{content:e.meetingCadence,proseClassName:"prose prose-sm !max-w-none text-yellow-850/80"}):(0,a.jsx)("p",{className:"text-sm font-semibold text-yellow-850/60",children:"Meeting cadence coming soon."})]},e.id)})})]})}):(0,a.jsx)(e7,{icon:"mdi:calendar-clock",message:"Meeting cadence details are not available yet."})},te=e=>{var t;let{occurrence:l}=e,{item:s}=l,n=K(s),r=L(s),i=e3(s);return(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-1.5",children:["meeting"!==s._modelApiKey&&(0,a.jsx)("span",{className:"rounded-full bg-".concat(n," px-2 py-0.5 text-2xs font-bold uppercase text-white"),children:Q(s)}),r&&(0,a.jsx)(ec(),{href:"/committees/".concat(s.committee.slug),className:"text-xs font-bold text-".concat(n," hover:underline"),children:r})]}),(0,a.jsx)("h3",{className:"font-serif text-lg font-bold leading-tight text-pretty",children:s.title}),(0,a.jsx)(eb,{occurrence:l,compact:!0,className:"mt-3"}),i&&(0,a.jsx)(ed.Ay.DatoImage,{includeAspect:!1,image:i,alt:s.title,className:"mt-3 aspect-[2/1] w-full rounded-md border border-gray-200",imageClassName:"h-full w-full object-cover"})]}),(0,a.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(f.A,{icon:"mdi:calendar",size:"size-5",className:"text-orange-450"}),(0,a.jsxs)("span",{children:[(0,a.jsx)(eO.A,{date:l.start,format:"dddd, MMM. D, YYYY"}),tt(l)&&(0,a.jsx)("span",{className:"block font-bold",children:tt(l)})]})]}),(null==(t=s.location)?void 0:t.name)&&(0,a.jsx)(ef.A,{location:s.location,isPast:P(s),showIcon:!0})]})]})},tt=e=>{if(e.allDay)return null;let t=D(e.start),l=D(e.end);return t&&l&&("00:00"!==t.format("HH:mm")||"00:00"!==l.format("HH:mm"))?"".concat(t.format("h:mm a").replace("am","a.m.").replace("pm","p.m.")," - ").concat(l.format("h:mm a").replace("am","a.m.").replace("pm","p.m.")):null};var tl=l(4538);let ta=(e,t)=>{var l,a;return"all"===e?null==(a=[...t].sort((e,t)=>
1t.dateKey.localeCompare(e.dateKey))[0])?void 0:a.dateKey:null==(l=[...t].filter(t=>{var l;return(null==(l=t.item.committee)?void 0:l.slug)===e}).sort((e,t)=>t.dateKey.localeCompare(e.dateKey))[0])?void 0:l.dateKey},ts=e=>{let{activeDate:t,committee:l,mode:a,view:s}=e;return a===w.PAST?{type:w.PAST}:(0,i._)({type:a,view:s,date:t},a===w.MEETINGS&&"all"!==l?{committee:l}:{})},tn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,l=m()();return[...e].sort((e,t)=>D(e.start).valueOf()-D(t.start).valueOf()).reduce((e,a)=>{var s,n;let r=D(a.start),i="".concat(null==(s=a.item)?void 0:s._modelApiKey,":").concat(null==(n=a.item)?void 0:n.id);return e.length===t||!(null==r?void 0:r.isValid())||r.isBefore(l)||e.some(e=>{let t=e.item;return"".concat(null==t?void 0:t._modelApiKey,":").concat(null==t?void 0:t.id)===i})||e.push(a),e},[])},tr=e=>{var t,l;let{className:s,calendar:n,committees:r=[]}=e,i=(0,c.useRouter)(),[d,h]=(0,o.useState)(null),{setHeadroomIsDisabled:p}=(0,tl.XH)();(0,o.useEffect)(()=>{p(!0)},[p]);let{upcomingItems:f,pastEventItems:g,meetingItems:b,futureMeetingItems:v,committees:j}=(0,o.useMemo)(()=>{let e=m()(),t=n.filter(e=>"event"===e._modelApiKey||"webinar"===e._modelApiKey),l=n.filter(e=>"meeting"===e._modelApiKey),a=l.filter(t=>P(t,e)).sort((e,t)=>new Date(t.start)-new Date(e.start)),s=l.filter(t=>S(t,e)).sort((e,t)=>new Date(e.start)-new Date(t.start));return{upcomingItems:t.filter(t=>S(t,e)).sort((e,t)=>new Date(e.start)-new Date(t.start)),pastEventItems:n.filter(t=>"event"===t._modelApiKey&&t.dedicatedPage&&P(t,e)).sort((e,t)=>new Date(t.start)-new Date(e.start)),meetingItems:a,futureMeetingItems:s,committees:r.length>0?r.filter(e=>!e.archive).sort((e,t)=>e.name.localeCompare(t.name)):(e=>{let t=new Map;return e.forEach(e=>{var l;(null==(l=e.committee)?void 0:l.slug)&&t.set(e.committee.slug,e.committee)}),[...t.values()].sort((e,t)=>e.name.localeCompare(t.name))})(l)}},[r,n]),y=(0,o.useMemo)(()=>B(f),[f]),N=(0,o.useMemo)(()=>B(b),[b]),C=(0,o.useMemo)(()=>B(v),[v]),D=(0,o.useMemo)(()=>tn(y),[y]),_=i.query,E=(e=>"true"===k(e.meetings)?w.MEETINGS:"true"===k(e.past)?w.PAST:w.UPCOMING)(_),z=(e=>M.includes(e)?e:w.UPCOMING)(null!=(t=k(_.type))?t:E),I=z===w.PAST?A.MONTH:Y(k(_.view)),T=((e,t)=>{let l=k(e);return l&&t.some(e=>e.slug===l)?l:"all"})(_.committee,j),O=X({mode:z,view:I,upcomingOccurrences:y,meetingOccurrences:N}),K=(e=>"string"==typeof e&&/^\d{4}-\d{2}-\d{2}$/.test(e))(k(_.date))?k(_.date):O,Q=(0,o.useMemo)(()=>ts({activeDate:K,committee:T,mode:z,view:I}),[K,T,z,I]);(0,o.useEffect)(()=>{i.isReady&&(((e,t)=>{let l=Object.keys(e).filter(e=>!["meetings","past"].includes(e)),a=Object.keys(t);return l.length===a.length&&a.every(l=>k(e[l])===t[l])})(i.query,Q)||i.replace({pathname:i.pathname,query:Q},void 0,{shallow:!0,scroll:!1}))},[Q,i]);let L=(0,o.useMemo)(()=>"all"===T?N:N.filter(e=>{var t;return(null==(t=e.item.committee)?void 0:t.slug)===T}),[T,N]),H=(0,o.useMemo)(()=>z===w.PAST?[]:W(z===w.MEETINGS?L:y,G(K,I)),[K,L,z,y,I]),R=null!=(l=D[0])?l:null,U=G(K,I),F=ta(T,N),V=ta("all",N),q=null!=F?F:V,$=z===w.MEETINGS&&0===H.length&&(!q||U.start.isAfter(m()(q),"day")),J=$&&"all"!==T,Z=e=>{var t,l,a,s;let n=null!=(t=e.mode)?t:z,r=n===w.PAST?A.MONTH:Y(null!=(l=e.view)?l:I),o=n===w.MEETINGS?null!=(a=e.committee)?a:T:"all",c=null!=(s=e.date)?s:e.mode&&e.mode!==z?X({mode:n,view:r,upcomingOccurrences:y,meetingOccurrences:N}):K;i.push({pathname:i.pathname,query:ts({activeDate:c,committee:o,mode:n,view:r})},void 0,{shallow:!0,scroll:!1})},et=()=>{var e;Z({date:z===w.MEETINGS&&null!=(e=null!=F?F:V)?e:m()().format("YYYY-MM-DD")})};return(0,a.jsxs)(u.A,{id:"calendar",className:"container px-4 min-h-[100vh] ".concat(null!=s?s:""),children:[(0,a.jsx)(ee,{mode:z,onModeChange:e=>Z({mode:e}),className:"mb-10"}),z===w.UPCOMING&&(0,a.jsxs)("div",{className:"mb-10",children:[(0,a.jsx)(eR,{occurrence:R,onSelect:h}),D.length>1&&(0,a.jsx)(x.Ay,{id:"more-upcoming-events",moreLabel:"More upcoming...",showPeek:!1,contentClassName:"mt-0",children:(0,a.jsx)("div",{children:D.slice(1).map(e=>(0,a.jsx)(eR,{occurrence:e,label:"Upcoming Event",onSelect:h},e.id))})})]}),(0,a.jsx)(ei,{activeDate:K,committee:T,committees:j,mode:z,view:I,disableCommitteeSelection:$,disableNextDate:$,disableViewControl
1s:$,title:$?"Upcoming":null,onBackToLatest:$?et:null,onCommitteeChange:e=>{var t;return Z({committee:e,date:null!=(t=ta(e,N))?t:V})},onDateChange:e=>Z({date:e}),onResetDate:et,onViewChange:e=>Z({view:e}),className:"mb-10"}),z===w.PAST?(0,a.jsx)(e6,{events:g}):$?(0,a.jsxs)("div",{className:"space-y-10",children:[J&&(0,a.jsx)(e9,{committees:j}),C.length>0&&(0,a.jsx)(e2,{occurrences:C,onSelect:h}),!J&&(0,a.jsx)(e9,{committees:j})]}):0===H.length?(0,a.jsx)(e7,{message:z===w.MEETINGS?"No meetings match this calendar range.":"No upcoming events match this calendar range."}):I===A.WEEK?(0,a.jsx)(eJ,{occurrences:H,onSelect:h,range:U}):I===A.AGENDA?(0,a.jsx)(e2,{occurrences:H,onSelect:h}):(0,a.jsx)(eF,{activeDate:K,occurrences:H,onSelect:h,range:U}),(0,a.jsx)(ez,{occurrence:d,onOpenChange:e=>{e||h(null)}})]})};var ti=!0;let to=e=>{let{calendar:t,committees:l}=e;return(0,a.jsxs)(s.A,{children:[(0,a.jsx)(n.A,{title:"Calendar",description:"A calendar of events and meetings for the members of the Advancing Healthy Lifestyles (AHL) Coalition."}),(0,a.jsxs)(r.Ay,{className:"text-center",children:[(0,a.jsx)(r.Ay.Title,{children:"Calendar"}),(0,a.jsx)("p",{className:"sr-only text-pretty",children:"See below for upcoming partner and community events and meeting information for the Advancing Healthy Lifestyles Coalition."})]}),(0,a.jsxs)("div",{className:"container max-w-5xl mb-12",children:[(0,a.jsx)(tr,{calendar:t,committees:l}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(p.Ay.Link,{href:"/calendar/add",variant:"primary",className:"mt-4",children:"Submit an Event"})})]})]})}},8342:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>x});var a=l(6045),s=l(6690),n=l(8946),r=l(7876),i=l(4587),o=l.n(i),c=l(9573);let d={none:"",tan:"bg-orange-150",white:"bg-white"},m={brown:"border-yellow-750",green:"border-green-350",orange:"border-orange-450",yellow:"border-yellow-550"},u=e=>{var{variant:t="white",hasBorder:l=!0,borderColor:i,className:o,contentClasses:u,overlayClasses:x,noContainer:h=!1,children:p}=e,f=(0,n._)(e,["variant","hasBorder","borderColor","className","contentClasses","overlayClasses","noContainer","children"]);return(0,r.jsxs)("section",(0,s._)((0,a._)({className:(0,c.QP)("relative py-8 md:py-12 overflow-hidden",d[t],l&&"border-t-[12px]",i?m[i]:m.brown,null!=o?o:"")},f),{children:[x&&(0,r.jsx)("div",{className:"\n					absolute inset-0 z-0\n					".concat(x,"\n				")}),(0,r.jsx)("div",{className:(0,c.QP)("relative z-10",h?"":"container mx-auto px-4",null!=u?u:""),children:p})]}))};u.Title=e=>{let{className:t,children:l,subTitle:a}=e;return(0,r.jsxs)(r.Fragment,{children:[a&&a,(0,r.jsx)("h1",{className:(0,c.QP)("mb-4 text-2xl sm:text-3xl md:text-4xl font-medium text-balance",null!=t?t:""),children:l})]})},u.Subtitle=e=>{let{className:t,children:l}=e;return(0,r.jsx)("h2",{className:t,children:l})},u.Content=e=>{let{className:t,children:l}=e;return(0,r.jsx)("div",{className:t,children:l})},u.Image=e=>{var{responsiveImage:t,className:l,containerClassName:s}=e,i=(0,n._)(e,["responsiveImage","className","containerClassName"]);let{src:d,alt:m,title:u,sizes:x,srcSet:h,base64:p,width:f,height:g}=t;return(0,r.jsx)("div",{className:(0,c.QP)("relative order-first md:order-last row-span-full col-span-full",null!=s?s:""),children:(0,r.jsx)(o(),(0,a._)({src:d,alt:null!=m?m:"",title:u,sizes:x,srcSet:h,placeholder:"blur",blurDataURL:p,width:f,height:g,className:(0,c.QP)("md:col-start-1 w-full",null!=l?l:"")},i))})};let x=u},8581:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/calendar",function(){return l(1437)}])},8668:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var a=l(6045),s=l(6690),n=l(8946),r=l(6427),i=l(7876),o=l(625),c=l(9573),d=l(4232),m=l(9675),u=l(7122);let x=["intro"];function h(){let e=(0,r._)(["\n				scroll-mt-20\n				","\n			"]);return h=function(){return e},e}function p(){let e=(0,r._)(["\n				mb-4 text-xl md:text-2xl font-bold text-pretty\n				","\n			"]);return p=function(){return e},e}let f=e=>{var{children:t,className:l}=e,r=(0,n._)(e,["children","className"]);let p=(()=>{let{setCurrentSection:e}=(0,d.useContext)(u.Ay),[t,l]=(0,d.useState)(""),[a,s]=(0,d.useState)([]),n=null,r=e=>{" "!==e&&-1===e.indexOf("#")&&(e="#".concat(e)),window.history.replaceState?window.history.replaceState(window.history.state,null,e):window.location.replace(e)};return(i,o,c)=>{if(-1!==x.indexOf(i))return;let d=!1;
1a.forEach(e=>{e.id===i&&(c<.33?e.active=!1:e.active=!0,e.threshold=c,d=!0)}),d||s(e=>(e.push({id:i,threshold:c,active:!(c<.33)}),e));let u=0,h="";clearTimeout(n),n=setTimeout(()=>{a.forEach(e=>{e.active&&e.threshold>u&&(u=e.threshold,h=e.id)}),h&&h!==t?(r(x.some(e=>e===h)?" ":h),(0,m.A)("Engagement","View Section",h),e(h)):window.scrollY<100&&(e(" "),r(" ")),l(h)},500)}})();return(0,i.jsx)(o.pL,(0,s._)((0,a._)({as:"section",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],onChange:(e,t)=>{e&&t.intersectionRatio>0&&p&&p(t.target.id,t.intersectionRatio,t.intersectionRatio*t.boundingClientRect.height/window.innerHeight)},className:(0,c.QP)(h(),null!=l?l:"")},r),{children:t}))};f.Title=e=>{let{as:t="h2",children:l,className:a}=e;return(0,i.jsx)(t,{className:(0,c.QP)(p(),null!=a?a:""),children:l})};let g=f}},e=>{e.O(0,[6701,2154,7725,4587,8457,5869,2598,9966,529,2656,3722,9909,4787,9535,636,6593,8792],()=>e(e.s=8581)),_N_E=e.O()}]);

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.