1import g from"./B1txo7YM.js";import{e as v,n as h,s as u}from"./Dr7cYL1O.js";import{e as w,E as D,b as a,F as C,z as k,s as x,u as o,d as P,t as S,B as T,r as V,X as L,c as l,o as i}from"./CfW-WSa8.js";function M(e){return v(e,Date.now())}function O(e,s,r){const[n,t]=h(r?.in,e,s);return+u(n)==+u(t)}function j(e,s){return O(v(e,e),M(e))}const z={ref:"day-list",class:"events-calendar__day-events-list spacing spacing--is-mb-small"},B={class:"events-calendar__day-events-list-item"},F={key:0},N=w({__name:"PrivateEventsDayList",props:{listViewHiddenEventsText:{type:String,default:"View # More"},day:{type:Object,default:()=>({events:[]})}},emits:["openModal"],setup(e,{emit:s}){const r=s,n=V(!1),t=e,p=L("day-list");D(async()=>{j(new Date(t.day.date))&&p.value.scrollIntoView({behavior:"instant",block:"center"})});const m=l(()=>n.value===!0?t.day.events:t.day.events.slice(0,3)),c=l(()=>t.day.events.length-3),f=l(()=>t.listViewHiddenEventsText.replace("#",c.value.toString()).toUpperCase());function y(){n.value=!0}function _(d){r("openModal",d)}return(d,A)=>(i(),a("ul",z,[(i(!0),a(C,null,k(o(m),(E,H)=>(i(),a("li",B,[x(g,{event:E,onEventClicked:b=>_(b)},null,8,["event","onEventClicked"])]))),256)),o(c)>0&&!o(n)?(i(),a("li",F,[P("button",{type:"button",class:"button button--is-neutral-light radius radius--is-large button--is-size-small spacing spacing--is-mt-xsmall",onClick:y},S(o(f)),1)])):T("",!0)],512))}}),R=Object.assign(N,{__name:"EventsCalendarPrivateEventsDayList"}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{R as P,O as a,$ as b,j as i};
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.