1(function(){var e={6700:function(e,t,n){var s={"./af":3906,"./af.js":3906,"./ar":902,"./ar-dz":3853,"./ar-dz.js":3853,"./ar-kw":299,"./ar-kw.js":299,"./ar-ly":6825,"./ar-ly.js":6825,"./ar-ma":6379,"./ar-ma.js":6379,"./ar-sa":7700,"./ar-sa.js":7700,"./ar-tn":2059,"./ar-tn.js":2059,"./ar.js":902,"./az":6043,"./az.js":6043,"./be":7936,"./be.js":7936,"./bg":4078,"./bg.js":4078,"./bm":4014,"./bm.js":4014,"./bn":9554,"./bn-bd":7114,"./bn-bd.js":7114,"./bn.js":9554,"./bo":6529,"./bo.js":6529,"./br":5437,"./br.js":5437,"./bs":9647,"./bs.js":9647,"./ca":9951,"./ca.js":9951,"./cs":6113,"./cs.js":6113,"./cv":7965,"./cv.js":7965,"./cy":5858,"./cy.js":5858,"./da":3515,"./da.js":3515,"./de":2831,"./de-at":6263,"./de-at.js":6263,"./de-ch":1127,"./de-ch.js":1127,"./de.js":2831,"./dv":4510,"./dv.js":4510,"./el":8616,"./el.js":8616,"./en-au":4595,"./en-au.js":4595,"./en-ca":3545,"./en-ca.js":3545,"./en-gb":9609,"./en-gb.js":9609,"./en-ie":3727,"./en-ie.js":3727,"./en-il":3302,"./en-il.js":3302,"./en-in":6305,"./en-in.js":6305,"./en-nz":9128,"./en-nz.js":9128,"./en-sg":4569,"./en-sg.js":4569,"./eo":650,"./eo.js":650,"./es":6358,"./es-do":4214,"./es-do.js":4214,"./es-mx":8639,"./es-mx.js":8639,"./es-us":232,"./es-us.js":232,"./es.js":6358,"./et":7279,"./et.js":7279,"./eu":5515,"./eu.js":5515,"./fa":7981,"./fa.js":7981,"./fi":7090,"./fi.js":7090,"./fil":9208,"./fil.js":9208,"./fo":2799,"./fo.js":2799,"./fr":3463,"./fr-ca":2213,"./fr-ca.js":2213,"./fr-ch":2848,"./fr-ch.js":2848,"./fr.js":3463,"./fy":1468,"./fy.js":1468,"./ga":8163,"./ga.js":8163,"./gd":2898,"./gd.js":2898,"./gl":6312,"./gl.js":6312,"./gom-deva":682,"./gom-deva.js":682,"./gom-latn":9178,"./gom-latn.js":9178,"./gu":5009,"./gu.js":5009,"./he":2795,"./he.js":2795,"./hi":7009,"./hi.js":7009,"./hr":6506,"./hr.js":6506,"./hu":9565,"./hu.js":9565,"./hy-am":3864,"./hy-am.js":3864,"./id":5626,"./id.js":5626,"./is":6649,"./is.js":6649,"./it":151,"./it-ch":5348,"./it-ch.js":5348,"./it.js":151,"./ja":9830,"./ja.js":9830,"./jv":3751,"./jv.js":3751,"./ka":3365,"./ka.js":3365,"./kk":5980,"./kk.js":5980,"./km":9571,"./km.js":9571,"./kn":5880,"./kn.js":5880,"./ko":6809,"./ko.js":6809,"./ku":6773,"./ku.js":6773,"./ky":5505,"./ky.js":5505,"./lb":553,"./lb.js":553,"./lo":1237,"./lo.js":1237,"./lt":1563,"./lt.js":1563,"./lv":1057,"./lv.js":1057,"./me":6495,"./me.js":6495,"./mi":3096,"./mi.js":3096,"./mk":3874,"./mk.js":3874,"./ml":6055,"./ml.js":6055,"./mn":7747,"./mn.js":7747,"./mr":7113,"./mr.js":7113,"./ms":8687,"./ms-my":7948,"./ms-my.js":7948,"./ms.js":8687,"./mt":4532,"./mt.js":4532,"./my":4655,"./my.js":4655,"./nb":6961,"./nb.js":6961,"./ne":2512,"./ne.js":2512,"./nl":8448,"./nl-be":2936,"./nl-be.js":2936,"./nl.js":8448,"./nn":9031,"./nn.js":9031,"./oc-lnc":5174,"./oc-lnc.js":5174,"./pa-in":118,"./pa-in.js":118,"./pl":3448,"./pl.js":3448,"./pt":3518,"./pt-br":2447,"./pt-br.js":2447,"./pt.js":3518,"./ro":817,"./ro.js":817,"./ru":262,"./ru.js":262,"./sd":8990,"./sd.js":8990,"./se":3842,"./se.js":3842,"./si":7711,"./si.js":7711,"./sk":756,"./sk.js":756,"./sl":3772,"./sl.js":3772,"./sq":6187,"./sq.js":6187,"./sr":732,"./sr-cyrl":5713,"./sr-cyrl.js":5713,"./sr.js":732,"./ss":9455,"./ss.js":9455,"./sv":9770,"./sv.js":9770,"./sw":959,"./sw.js":959,"./ta":6459,"./ta.js":6459,"./te":5302,"./te.js":5302,"./tet":7975,"./tet.js":7975,"./tg":1294,"./tg.js":1294,"./th":2385,"./th.js":2385,"./tk":4613,"./tk.js":4613,"./tl-ph":8668,"./tl-ph.js":8668,"./tlh":8190,"./tlh.js":8190,"./tr":4506,"./tr.js":4506,"./tzl":3440,"./tzl.js":3440,"./tzm":9852,"./tzm-latn":2350,"./tzm-latn.js":2350,"./tzm.js":9852,"./ug-cn":730,"./ug-cn.js":730,"./uk":99,"./uk.js":99,"./ur":2100,"./ur.js":2100,"./uz":6002,"./uz-latn":6322,"./uz-latn.js":6322,"./uz.js":6002,"./vi":4207,"./vi.js":4207,"./x-pseudo":4674,"./x-pseudo.js":4674,"./yo":570,"./yo.js":570,"./zh-cn":3644,"./zh-cn.js":3644,"./zh-hk":2591,"./zh-hk.js":2591,"./zh-mo":9503,"./zh-mo.js":9503,"./zh-tw":8080,"./zh-tw.js":8080};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=a,e.exports=i,i.id=6700},994:function(e,t,n){"use strict";var s={};n.r(s),n.d(s,{categorylist:function(){return y},currentFilters:function(){return w},date_range:function(){return f},eventlist:function(){return u},filter:function(){return M},isDateManuallySelected:function(){return k},loading:function(){return v},month_events:function(){return _},navigationDirection:function(){return D},page:function(){return p},search:function(){return g},total:function(){return m}});var i={};n.r(i),n.d(i,{wn:function(){return V},PV:function(){return b},Hk:function(){return E},Z1:function(){return z},u1:function(){return j},RF:function(){return Y},YA:function(){return A},cS:function(){return L},SV:function(){return O},mS:function(){return T},PO:function(){return q},Rx:function(){return $},ZS:function(){return C},Qs:function(){return x},dm:function(){return F},LU:function(){return S}});var a={};n.r(a),n.d(a,{openFilter:function(){return Q},setCategoryList:function(){return B},setClearAll:function(){return R},setClearSearch:function(){return U},setDateManuallySelected:function(){return X},setDateRange:function(){return I},setEventList:function(){return P},setFilter:function(){return G},setLoading:function(){return N},setMonthEvents:function(){return W},setNavigationDirection:function(){return ee},setPage:function(){return Z},setSearch:function(){return H},setSelectedMonth:function(){return J},updateSelectedCategories:function(){return K}});var r=n(9242),o=n(7139),l=n(6797),c=n.n(l);const d={eventlist:[],search:"",total:-1,page:1,filter:[],date_range:{type:"",start:"",end:""},month_events:[],categorylist:{},loading:!1,selectedCategories:{},selectedMonth:c()().format("YYYY-MM"),isMonthView:!1,isDateManuallySelected:!1,navigationDirection:""};var h=d;const u=e=>e.eventlist,g=e=>e.search,m=e=>e.total,f=e=>e.date_range,v=e=>e.loading,p=e=>e.page,_=e=>e.month_events,y=e=>e.categorylist,M=e=>e.filter,w=e=>e.filter,k=e=>e.isDateManuallySelected,D=e=>e.navigationDirection,Y="SET_EVENTLIST",C="SET_SEARCH",S="SET_TOTAL",j="SET_DATE_RANGE",b="SET_CLEAR_ALL",E="SET_CLEAR_SEARCH",L="SET_LOADING",$="SET_PAGE",O="SET_MONTH_EVENTS",V="SET_CATEGORY_LIST",A="SET_FILTER",x="SET_SELECTED_CATEGORIES",F="SET_SELECTED_MONTH",T="SET_MONTH_VIEW",z="SET_DATE_MANUALLY_SELECTED",q="SET_NAVIGATION_DIRECTION",P=function({commit:e},{eventlist:t,total:n}){e(Y,t),e(S,n)},H=function({commit:e},{search:t}){e(C,t)},I=function({commit:e},t){e(j,t)},R=function({commit:e}){e(b)},U=function({commit:e}){e(E)},N=function({commit:e},t){e(L,t)},Z=function({commit:e},t){e($,t)},W=function({commit:e},t){e(O,t)},B=function({commit:e},t){e(V,t)},G=function({commit:e},t){e(A,t)},K=function({commit:e},{key:t,terms:n}
1){e("SET_SELECTED_CATEGORIES",{key:t,terms:n})},Q=function({commit:e},t){e("OPEN_FILTER",t)},J=function({commit:e},t){e(F,t)},X=function({commit:e},t){e(z,t)},ee=function({commit:e},t){e(q,t)},te={[Y](e,t){e.eventlist=t},[C](e,t){e.search=t,e.page=1},[S](e,t){e.total=t},[j](e,t){e.date_range=t},[b](e){e.search="",e.page=1,e.date_range={type:"",start:"",end:""},e.page=1},[E](e){e.search=""},[L](e,t){e.loading=t},[$](e,t){e.page=t},[O](e,t){e.month_events=t},[V](e,t){e.categorylist=t},[A](e,t){e.filter=t},[x](e,{key:t,terms:n}){e.selectedCategories||(e.selectedCategories={});const s=n.filter((n=>!Object.keys(e.selectedCategories).some((s=>s!==t&&e.selectedCategories[s].includes(n)))));s.length>0?e.selectedCategories[t]=s:delete e.selectedCategories[t]},[i.OPEN_FILTER](e,t){e.openFilters||(e.openFilters={}),e.openFilters[t]=!0},[F](e,t){e.selectedMonth=t},[T](e,t){e.isMonthView=t},[z](e,t){e.isDateManuallySelected=t},[q](e,t){e.navigationDirection=t}};var ne=te;const se=(0,o.MT)({state:h,getters:s,mutations:ne,actions:a});var ie=se,ae=n(3396);function re(e,t,n,s,i,a){const r=(0,ae.up)("MiniCalendarLoading"),o=(0,ae.up)("router-view");return(0,ae.wg)(),(0,ae.iD)(ae.HY,null,[(0,ae.Wm)(r),(0,ae.Wm)(o)],64)}const oe={key:0,class:"mini-calendar-loading"};function le(e,t,n,s,i,a){return e.loading?((0,ae.wg)(),(0,ae.iD)("div",oe,t[0]||(t[0]=[(0,ae._)("div",{class:"mini-calendar-loading-content"},[(0,ae._)("svg",{class:"circular",viewBox:"25 25 50 50"},[(0,ae._)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})])],-1)]))):(0,ae.kq)("",!0)}var ce={name:"MiniCalendarLoading",computed:{...(0,o.Se)(["loading"])}},de=n(89);const he=(0,de.Z)(ce,[["render",le]]);var ue=he,ge={name:"App",components:{MiniCalendarLoading:ue}};const me=(0,de.Z)(ge,[["render",re]]);var fe=me,ve=n(2483);const pe={class:"mini-calendar"},_e={class:"mini-calendar__search-pool-wrap"},ye={key:0,class:"mini-calendar__view-toggle-wrap"},Me=["aria-current"],we=["aria-current"],ke={class:"mini-calendar__search-filters"},De={key:0},Ye={key:0},Ce={key:0},Se={key:0,class:"mini-calendar__events-no-result"},je={class:"mini-calendar__events-no-result-text"},be={key:1,class:"mini-calendar__mobile-message"},Ee={key:1},Le={key:1},$e={key:0,class:"mini-calendar__events-no-result"},Oe={class:"mini-calendar__events-no-result-text"},Ve={key:2};function Ae(e,t,n,s,i,a){const r=(0,ae.up)("MiniCalenderSearch"),o=(0,ae.up)("MiniCalenderPool"),l=(0,ae.up)("MiniCalendarMonthView"),c=(0,ae.up)("MiniCalenderEvents"),d=(0,ae.up)("MiniCalendarFilterModal");return(0,ae.wg)(),(0,ae.iD)("div",pe,[(0,ae._)("div",_e,[t[11]||(t[11]=(0,ae._)("p",{class:"mini-calendar_time-info"}," All times are shown in North American Central Time. ",-1)),"both"===i.calendarViewMode?((0,ae.wg)(),(0,ae.iD)("div",ye,[(0,ae._)("button",{class:"mini-calendar__view-toggle",onClick:t[0]||(t[0]=e=>a.toggleView("list")),"aria-current":i.isMonthView?void 0:"true"},t[8]||(t[8]=[(0,ae._)("svg",{"aria-hidden":"true",width:"23",height:"23",viewBox:"0 0 34 32"},[(0,ae._)("path",{d:"M34 3.2v2h-22.6v-2zM8.4 16c0 2.2-1.8 4.2-4.2 4.2s-4.2-1.8-4.2-4.2 1.8-4.2 4.2-4.2 4.2 1.8 4.2 4.2zM6.4 16c0-1.2-1-2.2-2.2-2.2s-2.2 1-2.2 2.2 1 2.2 2.2 2.2 2.2-1 2.2-2.2zM11.4 17h22.6v-2h-22.6zM8.4 4.2c0 2.2-1.8 4.2-4.2 4.2s-4.2-2-4.2-4.2 1.8-4.2 4.2-4.2 4.2 1.8 4.2 4.2zM6.4 4.2c0-1.2-1-2.2-2.2-2.2s-2.2 1-2.2 2.2 1 2.2 2.2 2.2 2.2-1 2.2-2.2zM8.4 27.8c0 2.2-1.8 4.2-4.2 4.2s-4.2-1.8-4.2-4.2 1.8-4.2 4.2-4.2 4.2 1.8 4.2 4.2zM6.4 27.8c0-1.2-1-2.2-2.2-2.2s-2.2 1-2.2 2.2 1 2.2 2.2 2.2 2.2-1 2.2-2.2zM11.4 28.8h22.6v-2h-22.6z"})],-1),(0,ae.Uk)(" List ")]),8,Me),(0,ae._)("button",{class:"mini-calendar__view-toggle",onClick:t[1]||(t[1]=e=>a.toggleView("month")),"aria-current":i.isMonthView?"true":void 0},t[9]||(t[9]=[(0,ae._)("svg",{"aria-hidden":"true",width:"23",height:"23",viewBox:"0 0 30 32"},[(0,ae._)("path",{d:"M24.471 3.765v-3.765h-1.882v3.765h-15.059v-3.765h-1.882v3.765h-5.647v28.235h30.118v-28.235zM28.235 5.647v4.329h-26.353v-4.329zM1.882 30.118v-18.259h26.353v18.259zM5.647 17.129h3.765v1.882h-3.765zM5.647 22.776h3.765v1.882h-3.765zM13.176 17.129h3.765v1.882h-3.765zM13.176 22.776h3.765v1.882h-3.765zM20.706 17.129h3.765v1.882h-3.765zM20.706 22.776h3.765v1.882h-3.765z"})],-1),(0,ae.Uk)(" Month ")]),8,we)])):(0,ae.kq)("",!0),(0,ae._)("div",ke,[(0,ae.Wm)(r),t[10]||(t[10]=(0,ae._)("button",{"data-dialog":"mini-calendar-filter-modal",class:"mini-calendar__filter-toggle-button"},[(0,ae._)("svg",{"aria-hidden":"true",width:"25",height:"23",viewBox:"0 0 36 32"},[(0,ae._)("path",{d:"M27.636 10.909c-2.618 0-4.655 1.891-4.945 4.364h-22.691v1.455h22.691c0.291 2.473 2.473 4.364 4.945 4.364s4.655-1.891 5.091-4.364h3.636v-1.455h-3.636c-0.291-2.473-2.473-4.364-5.091-4.364zM27.636 19.636c-2.036 0-3.636-1.6-3.636-3.636s1.6-3.636 3.636-3.636 3.636 1.6 3.636 3.636-1.6 3.636-3.636 3.636zM15.273 21.818c-2.618 0-4.655 1.891-4.945 4.364h-10.327v1.455h10.327c0.291 2.473 2.473 4.364 4.945 4.364s4.655-1.891 4.945-4.364h16.145v-1.455h-16.145c-0.291-2.473-2.473-4.364-4.945-4.364zM15.273 30.545c-2.036 0-3.636-1.6-3.636-3.636s1.6-3.636 3.636-3.636 3.636 1.6 3.636 3.636-1.6 3.636-3.636 3.636zM15.127 4.364c-0.291-2.473-2.473-4.364-4.945-4.364s-4.655 1.891-5.091 4.364h-5.091v1.455h5.091c0.291 2.473 2.473 4.364 5.091 4.364s4.655-1.891 4.945-4.364h21.236v-1.455zM10.182 8.727c-2.036 0-3.636-1.6-3.636-3.636s1.6-3.636 3.636-3.636 3.636 1.6 3.636 3.636-1.6 3.636-3.636 3.636z"})]),(0,ae._)("span",{class:"mini-calendar__filter-toggle-button-label"}," Filter Events ")],-1))]),(0,ae.Wm)(o,{isMonthView:i.isMonthView,onResetallMonthView:a.resetAll,onResetMonthView:a.resetMonthToToday},null,8,["isMonthView","onResetallMonthView","onResetMonthView"])]),"both"===i.calendarViewMode?((0,ae.wg)(),(0,ae.iD)("div",De,[i.isMonthView?((0,ae.wg)(),(0,ae.iD)("div",Ye,[i.isMobile?((0,ae.wg)(),(0,ae.iD)("div",be,t[16]||(t[16]=[(0,ae._)("p",null," Please resize your browser or reload the page to see all upcoming events. ",-1)]))):((0,ae.wg)(),(0,ae.iD)("div",Ce,[((0,ae.wg)(),(0,ae.j4)(l,{key:i.monthViewKey,"show-date":e.date_range.start,"onUpdate:noEvents":t[2]||(t[2]=e=>i.noEventsInMonth=e),ref:"MiniCalendarMonthView"},null,8,["show-date"])),i.noEventsInMonth?((0,ae.wg)(),(0,ae.iD)("div",Se,[(0,ae._)("p",je,["month"===i.calendarViewMode||"both"===i.calendarViewMode&&i.isMonthView?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[a.hasActiveFilters?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[t[12]||(t[12]=(0,ae.Uk)(" Sorry, no matching events were found for this month. ")),(0,ae._)("a",{href:"javascript:void(0);",onClick:t[3]||(t[3]=(...e)=>a.showAllEvents&&a.showAllEvents(...e)),class:"mini-calendar__events-no-result-link"},"Start over"),t[13]||(t[13]=(0,ae.Uk)(", or go to a different month. "))],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[(0,ae.Uk)(" Sorry, no upcoming events for this month. ")],64))],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[a.hasActiveFilters?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[t[14]||(t[14]=(0,ae.Uk)(" Sorry, no matching events were found. ")),(0,ae._)("a",{href:"javascript:void(0);",onClick:t[4]||(t[4]=(...e)=>a.showAllEvents&&a.showAllEvents(...e)),class:"mini-calendar__events-no-result-link"},"Show all events"),t[15]||(t[15]=(0,ae.Uk)(". "))],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[(0,ae.Uk)(" Sorry, no upcoming events this month. ")],64))],64))])])):(0,ae.kq)("",!0)]))])):((0,ae.wg)(),(0,ae.iD)("div",Ee,[(0,ae.Wm)(c,{isMonthView:i.isMonthView,hasFilters:a.hasActiveFilters},null,8,["isMonthView","hasFilters"])]))])):"month"===i.calendarViewMode?((0,ae.wg)(),(0,ae.iD)("div",Le,[((0,ae.wg)(),(0,ae.j4)(l,{key:i.monthViewKey,"show-date":e.date_range.start,"onUpdate:noEvents":t[5]||
1(t[5]=e=>i.noEventsInMonth=e),ref:"MiniCalendarMonthView"},null,8,["show-date"])),i.noEventsInMonth?((0,ae.wg)(),(0,ae.iD)("div",$e,[(0,ae._)("p",Oe,["month"===i.calendarViewMode||"both"===i.calendarViewMode&&i.isMonthView?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[a.hasActiveFilters?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[t[17]||(t[17]=(0,ae.Uk)(" Sorry, no matching events were found for this month. ")),(0,ae._)("a",{href:"javascript:void(0);",onClick:t[6]||(t[6]=(...e)=>a.showAllEvents&&a.showAllEvents(...e)),class:"mini-calendar__events-no-result-link"},"Start over"),t[18]||(t[18]=(0,ae.Uk)(", or go to a different month. "))],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[(0,ae.Uk)(" Sorry, no upcoming events for this month. ")],64))],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[a.hasActiveFilters?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[t[19]||(t[19]=(0,ae.Uk)(" Sorry, no matching events were found. ")),(0,ae._)("a",{href:"javascript:void(0);",onClick:t[7]||(t[7]=(...e)=>a.showAllEvents&&a.showAllEvents(...e)),class:"mini-calendar__events-no-result-link"},"Show all events"),t[20]||(t[20]=(0,ae.Uk)(". "))],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[(0,ae.Uk)(" Sorry, no upcoming events this month. ")],64))],64))])])):(0,ae.kq)("",!0)])):"list"===i.calendarViewMode?((0,ae.wg)(),(0,ae.iD)("div",Ve,[(0,ae.Wm)(c,{isMonthView:i.isMonthView,hasFilters:a.hasActiveFilters},null,8,["isMonthView","hasFilters"])])):(0,ae.kq)("",!0),(0,ae.Wm)(d,{onMonthChanged:a.refreshMonthView,onClose:e.closeModal},null,8,["onMonthChanged","onClose"])])}n(7658);const xe={class:"mini-calendar__events",role:"region","aria-label":"Event List",ref:"events"},Fe={class:"mini-calendar__events-list"},Te={class:"mini-calendar__events-no-result"},ze={class:"mini-calendar__events-no-result-text"};function qe(e,t,n,s,i,a){const o=(0,ae.up)("MiniCalenderEvent"),l=(0,ae.up)("MiniCalenderPager");return(0,ae.wg)(),(0,ae.iD)("div",xe,[(0,ae.wy)((0,ae._)("ul",Fe,[((0,ae.wg)(!0),(0,ae.iD)(ae.HY,null,(0,ae.Ko)(e.eventlist,(e=>((0,ae.wg)(),(0,ae.iD)("li",{key:e.date_id},[(0,ae.Wm)(o,{event:e},null,8,["event"])])))),128))],512),[[r.F8,e.eventlist.length>0]]),(0,ae.wy)((0,ae._)("div",Te,[(0,ae._)("p",ze,[n.hasFilters||n.isMonthView?!n.hasFilters&&n.isMonthView?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[(0,ae.Uk)(" Sorry, no upcoming events for this month. ")],64)):n.hasFilters&&!n.isMonthView?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:2},[t[2]||(t[2]=(0,ae.Uk)(" Sorry, no matching events were found. ")),(0,ae._)("a",{href:"javascript:void(0);",class:"mini-calendar__events-no-result-link",onClick:t[0]||(t[0]=(...e)=>a.showAllEvents&&a.showAllEvents(...e))}," Show All Events ")],64)):n.hasFilters&&n.isMonthView?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:3},[t[3]||(t[3]=(0,ae.Uk)(" Sorry, no matching events were found for this month. ")),(0,ae._)("a",{href:"javascript:void(0);",class:"mini-calendar__events-no-result-link",onClick:t[1]||(t[1]=(...e)=>a.showAllEvents&&a.showAllEvents(...e))}," Start over "),t[4]||(t[4]=(0,ae.Uk)(", or go to a different month. "))],64)):(0,ae.kq)("",!0):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[(0,ae.Uk)(" Sorry, no upcoming events at this time. ")],64))])],512),[[r.F8,0===e.eventlist.length&&e.total>=0]]),(0,ae.Wm)(l,{scroll:a.scrollTo},null,8,["scroll"])],512)}var Pe=n(2268);const He={class:"event-result-list-item"},Ie={class:"event-result-list-item__inner"},Re={class:"event-result-list-item__media-date-wrap"},Ue={class:"event-result-list-item__date"},Ne={class:"event-result-list-item__date--day"},Ze={class:"event-result-list-item__date--month"},We={key:0,class:"event-result-list-item__media"},Be=["alt"],Ge={key:1,class:"event-result-list-item__media"},Ke=["alt"],Qe={class:"event-result-list-item__content"},Je={class:"event-result-list-item__time"},Xe={key:0},et={key:1},tt={class:"event-result-list-item__title"},nt=["href"],st={key:0,class:"event-result-list-item__categories"},it={key:1,class:"event-result-list-item__venue"};function at(e,t,n,s,i,a){const r=(0,ae.Q2)("lazy");return(0,ae.wg)(),(0,ae.iD)("div",He,[(0,ae._)("div",Ie,[(0,ae._)("div",Re,[(0,ae._)("div",Ue,[(0,ae._)("span",Ne,(0,Pe.zw)(a.formatDate(n.event.date.start.date,"DD")),1),(0,ae._)("span",Ze,(0,Pe.zw)(a.formatDate(n.event.date.start.date,"MMM")),1)]),n.event.image.image_sizes?((0,ae.wg)(),(0,ae.iD)("div",We,[(0,ae.wy)((0,ae._)("img",{alt:n.event.summary},null,8,Be),[[r,n.event.image.image_sizes.large]])])):((0,ae.wg)(),(0,ae.iD)("div",Ge,[(0,ae._)("img",{src:"/themes/custom/idfive_accelerator/idfive-component-library/public/images/placeholders/event-placeholder.png",alt:n.event.summary},null,8,Ke)]))]),(0,ae._)("div",Qe,[(0,ae._)("div",Je,["1"===n.event.date.all_day?((0,ae.wg)(),(0,ae.iD)("div",Xe,"All Day")):((0,ae.wg)(),(0,ae.iD)("div",et,(0,Pe.zw)(n.event.date.start.time),1))]),(0,ae._)("h2",tt,[(0,ae._)("a",{class:"event-result-list-item__title-link",href:a.getPath(n.event.url)},(0,Pe.zw)(n.event.title),9,nt)]),n.event.category_1&&n.event.category_1.length>0?((0,ae.wg)(),(0,ae.iD)("div",st,[((0,ae.wg)(!0),(0,ae.iD)(ae.HY,null,(0,ae.Ko)(n.event.category_1,((e,t)=>((0,ae.wg)(),(0,ae.iD)("span",{key:e.id,class:"event-result-list-item__category"},(0,Pe.zw)(e.name)+(0,Pe.zw)(t<n.event.category_1.length-1?", ":""),1)))),128))])):(0,ae.kq)("",!0),n.event.category_2&&n.event.category_2[0]?((0,ae.wg)(),(0,ae.iD)("div",it,(0,Pe.zw)(n.event.category_2[0].name),1)):(0,ae.kq)("",!0)])])])}const rt={title:"Date",list:[{id:"",name:"All"},{id:"today",name:"Today"},{id:"tomorrow",name:"Tomorrow"},{id:"week",name:"This Week"},{id:"month",name:"This Month"}
1]},ot="YYYY-MM-DD",lt="dddd, MMMM DD",ct=10,dt="";var ht={name:"MiniCalenderEvent",props:{event:{type:Object,required:!0}},computed:{...(0,o.Se)(["date_range"])},methods:{getPath(e){return dt+e},formatDate(e,t){return c()(e).format(t)},checkInDate(e){const t=c()();if(!this.date_range||!this.date_range.end)return c()(e).isSameOrAfter(t);const n=c()(this.date_range.end);return c()(e).isSameOrAfter(t)&&c()(e).isSameOrBefore(n)}}};const ut=(0,de.Z)(ht,[["render",at]]);var gt=ut;const mt={class:"mini-calendar__pager"},ft={key:0,class:"pagination-list"},vt={key:0,class:"pagination__control first"},pt={key:1,class:"pagination__control prev"},_t=["onClick","aria-current"],yt={key:2,class:"pagination__control next"},Mt={key:3,class:"pagination__control last"};function wt(e,t,n,s,i,a){return(0,ae.wg)(),(0,ae.iD)("div",mt,[e.total>0?((0,ae.wg)(),(0,ae.iD)("ul",ft,[e.page>1?((0,ae.wg)(),(0,ae.iD)("li",vt,[(0,ae._)("a",{href:"#",onClick:t[0]||(t[0]=(0,r.iM)((e=>a.updateHandler(1)),["prevent"]))},t[4]||(t[4]=[(0,ae._)("span",{class:"visible-for-screen-readers"},"First Page",-1)]))])):(0,ae.kq)("",!0),e.page>1?((0,ae.wg)(),(0,ae.iD)("li",pt,[(0,ae._)("a",{href:"#",onClick:t[1]||(t[1]=(0,r.iM)((t=>a.updateHandler(e.page-1)),["prevent"]))},t[5]||(t[5]=[(0,ae._)("span",{class:"visible-for-screen-readers"},"Previous Page",-1)]))])):(0,ae.kq)("",!0),((0,ae.wg)(!0),(0,ae.iD)(ae.HY,null,(0,ae.Ko)(a.visiblePages,(t=>((0,ae.wg)(),(0,ae.iD)("li",{class:(0,Pe.C_)(["pagination__page-numbers",{"pagination__page-number--current":t===e.page}]),key:t},[(0,ae._)("a",{href:"#",onClick:(0,r.iM)((e=>a.updateHandler(t)),["prevent"]),"aria-current":t===e.page?"page":null},(0,Pe.zw)(t),9,_t)],2)))),128)),e.page<a.getPages?((0,ae.wg)(),(0,ae.iD)("li",yt,[(0,ae._)("a",{href:"#",onClick:t[2]||(t[2]=(0,r.iM)((t=>a.updateHandler(e.page+1)),["prevent"]))},t[6]||(t[6]=[(0,ae._)("span",{class:"visible-for-screen-readers"},"Next Page",-1)]))])):(0,ae.kq)("",!0),e.page<a.getPages?((0,ae.wg)(),(0,ae.iD)("li",Mt,[(0,ae._)("a",{href:"#",onClick:t[3]||(t[3]=(0,r.iM)((e=>a.updateHandler(a.getPages)),["prevent"]))},t[7]||(t[7]=[(0,ae._)("span",{class:"visible-for-screen-readers"},"Last Page",-1)]))])):(0,ae.kq)("",!0)])):(0,ae.kq)("",!0)])}var kt=n(4161);const Dt=kt.Z.create({baseURL:window.drupalSettings.idfive_calendar_client.options.api_url});Dt.interceptors.response.use((e=>(window.response=e,200===e.status?e.data:Promise.reject(e))),(e=>(console.log(e.response?e.response.data.message:e.message),e)));var Yt=Dt;function Ct(e,t=0){return{content:!0,highlight:{class:"mini-calendar-day-highlight",fillMode:"outline"},dates:e,id:t}}function St(e){let t,n;if("today"==e)return t=c()(),t.format(lt);if("tomorrow"==e)return t=c()().add(1,"days"),t.format(lt);if("week"==e)t=c()().startOf("week"),n=c()().endOf("week");else{if("month"!=e)return"";t=c()().startOf("month"),n=c()().endOf("month")}return t.format(lt)+" to "+n.format(lt)}function jt(e=!0){const t=[];let n=window.drupalSettings.idfive_calendar_client.options.taxonomy;return n&&Object.keys(n).forEach((e=>{n[e]&&t.push(e)})),e&&window.drupalSettings.idfive_calendar_client.options.filtered_taxonomy&&t.push(window.drupalSettings.idfive_calendar_client.options.filtered_taxonomy.trim()),t}function bt(){return window.drupalSettings.idfive_calendar_client.options.category?window.drupalSettings.idfive_calendar_client.options.category.trim().split(","):[]}const Et=(new Date).getTime();function Lt(e=ct){return Yt.get("/events",{params:{range_start:0,range_total:e,start_date:c()().format(ot),taxonomy:jt(),category:bt(),tick:Et}})}function $t(e="",t="",n="",s=1,i="",a=ct){let r={range_start:Math.max(0,(s-1)*a),range_total:a,tick:Et};e&&(r.start_date=e),t&&(r.end_date=t);const o=jt();o.length>0&&(r.taxonomy=o),i&&(r.s=i);const l=Object.entries(r).map((([e,t])=>`${e}=${t}`)).join("&"),c=n?`${l}&${n}`:l;return Yt.get(`/events?${c}`)}function Ot(){return Yt.get("/categories",{params:{taxonomy:jt(!1),tick:c()().format("Y-m-d")}})}var Vt={name:"MiniCalendarPager",props:{scroll:{type:Function,required:!0}},data(){return{page_size:ct}},methods:{updateHandler(e){const t=document.querySelector(".mini-calendar__search");if(t){const e=t.getBoundingClientRect().top+window.scrollY-70;window.scrollTo({top:e,behavior:"smooth"})}this.setLoading(!0),this.setPage(e);const n=c()().format("YYYY-MM-DD"),s=this.date_range.start||n,i=this.date_range.end||"",a=this.search||"",r=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),o=r||"";$t(s,i,o,e,a).then((e=>{if(e){let t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},...(0,o.nv)(["setEventList","setLoading","setPage"])},computed:{getPages(){return Math.ceil(this.total/ct)},visiblePages(){const e=[],t=5,n=this.getPages;if(n<=t)for(let s=1;s<=n;s++)e.push(s);else{let s=Math.max(1,this.page-Math.floor(t/2)),i=s+t-1;i>n&&(i=n,s=n-t+1);for(let t=s;t<=i;t++)e.push(t)}return e},...(0,o.Se)(["total","page","search","date_range","filter"])}};const At=(0,de.Z)(Vt,[["render",wt]]);var xt=At,Ft={name:"MiniCalenderEvents",props:{isMonthView:{type:Boolean,default:!1},hasFilters:{type:Boolean,default:!1}},components:{MiniCalenderEvent:gt,MiniCalenderPager:xt},computed:{...(0,o.Se)(["eventlist","date_range","total"])},methods:{showAllEvents(){this.setLoading(!0),Lt().then((e=>{this.setEventList({eventlist:e.data,total:e.query.total}),this.setClearAll(),this.setFilter(""),this.$router.push("/"),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},scrollTo(){this.$refs.events.scrollIntoView()},...(0,o.nv)(["setEventList","setLoading","setClearAll","setFilter"]),...(0,o.Se)(["filter","search","date_range"])}};const Tt=(0,de.Z)(Ft,[["render",qe]]);var zt=Tt;function qt(e,t,n,s,i,a){const o=(0,ae.up)("IconSearch");return(0,ae.wg)(),(0,ae.iD)("form",{class:"mini-calendar__search",role:"search","aria-labelledby":"searchFormLabel",onSubmit:t[3]||(t[3]=(0,r.iM)((()=>{}),["prevent"]))},[t[5]||(t[5]=(0,ae._)("label",{id:"searchFormLabel",for:"searchTerm"},"Search",-1)),(0,ae.wy)((0,ae._)("input",{type:"text",id:"searchTerm","onUpdate:modelValue":t[0]||(t[0]=e=>i.searchValue=e),name:"searchTerm","aria-label":"Enter Search",onKeyup:t[1]||(t[1]=(0,r.D2)(((...e)=>a.onEnter&&a.onEnter(...e)),["enter"]))},null,544),[[r.nr,i.searchValue,void 0,{trim:!0}]]),(0,ae._)("button",{type:"submit",onClick:t[2]||(t[2]=(...e)=>a.onEnter&&a.onEnter(...e))},[(0,ae.Wm)(o),t[4]||(t[4]=(0,ae._)("span",{class:"visible-for-screen-readers"},"Search",-1))])],32)}const Pt={xmlns:"http://www.w3.org/2000/svg",width:"26.86",height:"25"};function Ht(e,t){return(0,ae.wg)(),(0,ae.iD)("svg",Pt,t[0]||(t[0]=[(0,ae._)("path",{"fill-rule":"evenodd",d:"M20.123 10.561A9.561 9.561 0 1 1 10.559 1a9.561 9.561 0 0 1 9.561 9.561Zm-1.54 6.87a10.52 10.52 0 1 1 .62-.8l7.656 7.662-.706.707-7.57-7.57Z","data-name":"Path 1"},null,-1)]))}const It={},Rt=(0,de.Z)(It,[["render",Ht]]);var Ut=Rt,Nt={name:"MiniCalenderSearch",components:{IconSearch:Ut},computed:{...(0,o.Se)(["search"])},data(){return{searchValue:""}},watch:{search(e){e||(this.searchValue="")}},methods:{onEnter(){this.setLoading(!0);const e=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),t=e||"",n=this.searchValue,s=this.$store.getters.date_range||{},i=c()().format("YYYY-MM-DD"),a=s.start||i,r=s.end||"";this.setSearch({search:n}),$t(a,r,t,1,n).then((e=>{e&&this.setEventList({eventlist:e.data?e.data:[],total:e.query.total}),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},...(0,o.nv)(["setSearch","setEventList","setLoading"])}};const Zt=(0,de.Z)(Nt,[["render",qt]]);var Wt=Zt;
1const Bt={key:0,class:"mini-calendar__pool",role:"region","aria-label":"Search Results"},Gt={class:"mini-calendar__pool-filters"},Kt={class:"mini-calendar__pool-filters__items"},Qt=["onClick"],Jt={key:0,class:"mini-calendar__pool-resets"},Xt={key:1,class:"mini-calendar__pool-reset"},en={class:"mini-calendar__pool-result"};function tn(e,t,n,s,i,a){const o=(0,ae.up)("IconClose");return!e.categorylist.keys?(0,ae.kq)("",!0):((0,ae.wg)(),(0,ae.iD)("div",Bt,[(0,ae._)("div",Gt,[(0,ae._)("div",Kt,[(0,ae.wy)((0,ae._)("span",{"aria-hidden":"false",class:"mini-calendar__pool-filters__item",onClick:t[0]||(t[0]=(...e)=>a.onClear&&a.onClear(...e))},[(0,ae.Uk)((0,Pe.zw)(e.search)+" ",1),(0,ae.Wm)(o)],512),[[r.F8,e.search]]),(0,ae.wy)((0,ae._)("span",{"aria-hidden":"false",class:"mini-calendar__pool-filters__item",onClick:t[1]||(t[1]=(...e)=>a.onClearDate&&a.onClearDate(...e))},[(0,ae.Uk)((0,Pe.zw)(a.getDateFilterName)+" ",1),(0,ae.Wm)(o)],512),[[r.F8,!n.isMonthView&&""!=e.date_range.type&&(!e.isDateManuallySelected||e.date_range.start!=e.date_range.end)]]),(0,ae.wy)((0,ae._)("span",{"aria-hidden":"false",class:"mini-calendar__pool-filters__item",onClick:t[2]||(t[2]=(...e)=>a.onClearDate&&a.onClearDate(...e))},[(0,ae.Uk)((0,Pe.zw)(a.getDateFilterName),1),(0,ae.Wm)(o)],512),[[r.F8,!n.isMonthView&&""!=e.date_range.type&&e.isDateManuallySelected&&e.date_range.start==e.date_range.end]]),((0,ae.wg)(!0),(0,ae.iD)(ae.HY,null,(0,ae.Ko)(e.filter,(t=>(0,ae.wy)(((0,ae.wg)(),(0,ae.iD)("span",{class:"mini-calendar__pool-filters__item",onClick:e=>a.onRemoveFilter(t),key:t},[(0,ae.Uk)((0,Pe.zw)(a.getCategoryName(t))+" ",1),(0,ae.Wm)(o)],8,Qt)),[[r.F8,0!=e.filter.length]]))),128))]),n.isMonthView?((0,ae.wg)(),(0,ae.iD)("div",Xt,[""!==e.search||0!==e.filter.length?((0,ae.wg)(),(0,ae.iD)("button",{key:0,class:"mini-calendar__pool-clear-all",onClick:t[4]||(t[4]=e=>a.onClearAll())}," Reset All ")):(0,ae.kq)("",!0)])):((0,ae.wg)(),(0,ae.iD)("div",Jt,[""!==e.search||0!==e.filter.length||""!==e.date_range.type?((0,ae.wg)(),(0,ae.iD)("button",{key:0,class:"mini-calendar__pool-clear-all",onClick:t[3]||(t[3]=e=>a.onClearAll())}," Reset All ")):(0,ae.kq)("",!0)]))]),(0,ae.wy)((0,ae._)("div",en,[t[5]||(t[5]=(0,ae.Uk)(" Showing ")),(0,ae._)("b",null,(0,Pe.zw)(e.eventlist.length),1),t[6]||(t[6]=(0,ae.Uk)(" of ")),(0,ae._)("b",null,(0,Pe.zw)(e.total),1),t[7]||(t[7]=(0,ae.Uk)(" events "))],512),[[r.F8,!n.isMonthView&&e.total>=0&&e.eventlist.length>0]])]))}const nn={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12"};function sn(e,t){return(0,ae.wg)(),(0,ae.iD)("svg",nn,t[0]||(t[0]=[(0,ae._)("path",{d:"M1.333 11.833.166 10.666l4.667-4.667L.166 1.333 1.333.166l4.666 4.667L10.666.166l1.167 1.167-4.667 4.666 4.667 4.667-1.167 1.167-4.667-4.667-4.666 4.667Z"},null,-1)]))}const an={},rn=(0,de.Z)(an,[["render",sn]]);var on=rn;const ln={computed:{...(0,o.Se)(["categorylist"])},methods:{pushurl(e){let t=[];for(let n of this.categorylist.keys){let s=this.categorylist.data[n].terms.filter((t=>e.indexOf(t.id)>=0)),i="";if(s.length){i+=n+"=";for(const e of s)i+=e.id+",";i=i.substring(0,i.length-1),t.push(i)}}t.length?this.$router.push("/?"+t.join("&")):this.$router.push("/")}}};var cn={name:"MiniCalenderPool",components:{IconClose:on},props:{isMonthView:{type:Boolean,default:!1}},mixins:[ln],methods:{getCategoryName(e){for(let t of this.categorylist.keys){let n=this.categorylist.data[t].terms.find((t=>t.id==e));if(n)return n.name}return""},onClearAll(){this.setLoading(!0),this.setSearch({search:""}),this.setFilter([]),this.setSelectedMonth(""),this.$store.state.selectedCategories={},this.setDateRange({type:"",start:"",end:""});const e=c()().format("YYYY-MM-DD");$t(e,"","",1,"").then((e=>{if(e){const t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)})),this.$emit("resetall-month-view"),this.$router.push("/")},onClear(){this.setLoading(!0);const e=c()().format("YYYY-MM-DD"),t=this.date_range||{},n=t.start||e,s=t.end||"",i=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),a=i||"";$t(n,s,a).then((e=>{this.setSearch({search:""}),this.setEventList({eventlist:e.data,total:e.query.total}),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},onClearDate(){this.setLoading(!0);const e=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),t=e||"",n=c()().format("YYYY-MM-DD"),s=c()().format("YYYY-MM"),i=this.search||"";this.setSelectedMonth(s),this.setDateManuallySelected(!1),$t(n,"",t,1,i).then((e=>{if(this.setDateRange({type:"",start:"",end:""}),e){let t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setLoading(!1),this.$emit("reset-month-view")}
1)).catch((()=>{this.setLoading(!1)}))},onRemoveFilter(e){const t=JSON.parse(JSON.stringify(this.$store.state.selectedCategories));Object.keys(t).forEach((n=>{if(t[n]){const s=t[n].indexOf(e);s>-1&&(t[n].splice(s,1),this.filter=[e],0===t[n].length&&delete t[n],t[n]?this.$store.dispatch("updateSelectedCategories",{key:n,terms:t[n]}):this.$store.dispatch("updateSelectedCategories",{key:n,terms:[]}))}}));const n=this.$store.state.selectedCategories?Object.values(this.$store.state.selectedCategories).flat():[],s=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),i=s||"",a=this.search||"",r=c()().format(ot),o=this.date_range.start||r,l=this.date_range.end||"";this.setLoading(!0),$t(o,l,i,1,a).then((e=>{if(e){const t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setFilter(n),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},...(0,o.nv)(["setEventList","setSearch","setClearAll","setLoading","setFilter","setDateRange","setSelectedMonth","setDateManuallySelected"])},computed:{getDateFilterName(){if("custom_range"==this.date_range.type)return this.date_range.start==this.date_range.end?c()(this.date_range.start).format(lt):this.date_range.start?this.date_range.start==this.date_range.end?c()(this.date_range.start).format(lt):c()(this.date_range.start).format(lt)+" to "+c()(this.date_range.end).format(lt):"";let e=rt.list.find((e=>e.id==this.date_range.type));return e?St(e.id):""},...(0,o.Se)(["total","eventlist","search","date_range","filter","categorylist","isDateManuallySelected","isMonthView"])}};const dn=(0,de.Z)(cn,[["render",tn]]);var hn=dn;const un={id:"mini-calendar-filter-modal",class:"mini-calendar-filter-modal",closedby:"any"},gn={class:"mini-calendar-filter-modal__container",role:"dialog","aria-label":"Event Filters"},mn={class:"mini-calendar-filter-modal__content",id:"modal-1-content"},fn={class:"mini-calendar-filter-modal__footer"};function vn(e,t,n,s,i,a){const r=(0,ae.up)("MiniCalendarFilters");return(0,ae.wg)(),(0,ae.iD)("dialog",un,[(0,ae._)("div",gn,[(0,ae._)("button",{href:"#",class:"mini-calendar-filter-modal__close",onClick:t[0]||(t[0]=(...e)=>a.closeModal&&a.closeModal(...e))},t[3]||(t[3]=[(0,ae.Uk)(" Close Filters "),(0,ae._)("span",{class:"mini-calendar-filter-modal__close-icon"},[(0,ae._)("svg",{"aria-hidden":"true",width:"23",height:"23"},[(0,ae._)("use",{"xlink:href":"#icon-close"})])],-1)])),(0,ae._)("div",mn,[(0,ae.Wm)(r,{onMonthChanged:t[1]||(t[1]=t=>e.$emit("month-changed",t)),filters:i.temporaryFilter,onUpdateFilters:a.updateTemporaryFilters},null,8,["filters","onUpdateFilters"])]),(0,ae._)("footer",fn,[(0,ae._)("button",{class:"mini-calendar-filter-modal__btn show-results",onClick:t[2]||(t[2]=(...e)=>a.closeModal&&a.closeModal(...e))}," Show Results ")])])])}const pn={class:"mini-calendar__filters"},_n={class:"mini-calendar__filters",role:"region","aria-label":"Event Filters"};function yn(e,t,n,s,i,a){const r=(0,ae.up)("MiniCalendarCalendar"),o=(0,ae.up)("MiniCalendarCollpase");return(0,ae.wg)(),(0,ae.iD)("div",pn,[a.isMonthView?(0,ae.kq)("",!0):((0,ae.wg)(),(0,ae.j4)(r,{key:0,onMonthChanged:a.handleMonthChange},null,8,["onMonthChanged"])),(0,ae._)("div",_n,[a.isMonthView?(0,ae.kq)("",!0):((0,ae.wg)(),(0,ae.j4)(o,{key:0,title:i.date_filter.title,uuid:"date-acc",categories:i.date_filter.list,option:"radio"},null,8,["title","categories"])),!e.categorylist.keys||e.categorylist.keys?((0,ae.wg)(!0),(0,ae.iD)(ae.HY,{key:1},(0,ae.Ko)(e.categorylist.keys,((t,n)=>((0,ae.wg)(),(0,ae.j4)(o,{key:"category-"+t,title:e.categorylist.data[t].title,uuid:n,categories:e.categorylist.data[t].terms,categoryId:e.categorylist.data[t].vid},null,8,["title","uuid","categories","categoryId"])))),128)):(0,ae.kq)("",!0)])])}const Mn={key:0,class:"mini-calendar__calendar",role:"region","aria-label":"Events Calendar"};function wn(e,t,n,s,i,a){const r=(0,ae.up)("VDatePicker");return e.isMonthView?(0,ae.kq)("",!0):((0,ae.wg)(),(0,ae.iD)("div",Mn,[((0,ae.wg)(),(0,ae.j4)(r,{key:i.range,borderless:"","trim-weeks":"",ref:"datepicker",modelValue:i.range,"onUpdate:modelValue":[t[0]||(t[0]=e=>i.range=e),a.dayclick],"onUpdate:pages":a.popover,attributes:e.month_events},null,8,["modelValue","onUpdate:modelValue","onUpdate:pages","attributes"]))]))}var kn={name:"MiniCalendarCalendar",data(){return{range:c()().format("YYYY-MM-DD"),is_mounted:!1,month:(new Date).getMonth()+1,year:(new Date).getFullYear(),lastPopoverCall:0,isManualDateClick:!1,lastSelectedDayClick:null}},computed:{...(0,o.Se)(["date_range","month_events","navigationDirection"])},mounted(){this.updateDatePicker()},watch:{date_range:function(e){if("custom_range"!=e.type){const t=new Date,n=t.getFullYear(),s=t.getMonth()+1;this.month=s,this.year=n,this.$refs.datepicker.move({month:s,year:n}
1),e.start==c()(this.range).format(ot)&&e.end==c()(this.range).format(ot)||(this.is_mounted=!0,this.range=new Date)}}},methods:{updateDatePicker(){const e=this.$store.state.selectedMonth||c()().format("YYYY-MM"),[t,n]=e.split("-");if(this.$refs.datepicker){const e=c()().year(parseInt(t)).month(parseInt(n)).date(1);this.range=e.format("YYYY-MM-DD"),this.$nextTick((()=>{this.$refs.datepicker.move({month:parseInt(n),year:parseInt(t)}),setTimeout((()=>{this.isManualDateClick||document.querySelectorAll(".vc-highlight-bg-solid, .vc-highlight-content-solid").forEach((e=>e.classList.remove("vc-highlight-bg-solid","vc-highlight-content-solid"))),this.isManualDateClick=!1}),100)}))}},filterEvents(e,t,n=!1){if(this.setLoading(!0),n){const s=e.format(ot),i=n?e.format(ot):t.format(ot),a=this.$store.getters.search||"",r=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),o=r||"";return this.setSelectedMonth(e.format("YYYY-MM")),void $t(s,i,o,1,a).then((e=>{if(e){const t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total}),this.setDateRange({type:"custom_range",start:s,end:i})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))}const s=e.format("YYYY-MM"),i=c()(s).startOf("month").format(ot),a=t.format(ot),r=this.$store.getters.search||"",o=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),l=o||"";if(this.setSelectedMonth(s),i!=a){let e=this.month_events.filter((e=>e.id==i));e.length||$t(i,a,[],0,r).then((e=>{if(e){let t=e.data?e.data:[],n=[];for(let e of t)n.push(c()(e.date.start.date).toDate());this.setMonthEvents([...this.month_events,Ct(n,i)])}}))}$t(i,a,l,1,r).then((e=>{if(e){const t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total}),this.setDateRange({type:"custom_range",start:i,end:a})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},dayclick(e){if(this.isManualDateClick=!0,null===e)return void(this.lastSelectedDayClick&&(this.range=this.lastSelectedDayClick.clone().add(1,"day").format("YYYY-MM-DD"),this.highlightSelectedDay(this.lastSelectedDayClick),this.filterEvents(this.lastSelectedDayClick,this.lastSelectedDayClick,!0)));if(this.is_mounted)return void(this.is_mounted=!1);const t=e?c()(e):c()();this.lastSelectedDayClick=t,this.highlightSelectedDay(t),this.setDateManuallySelected(!0),this.filterEvents(t,t,!0)},highlightSelectedDay(e){this.$nextTick((()=>{setTimeout((()=>{const t=document.querySelectorAll(".vc-day-content");t.forEach((e=>{e.classList.remove("vc-highlight-content-solid","vc-blue")}));const n=document.querySelector(`.vc-day.id-${e.format("YYYY-MM-DD")} .vc-day-content`);n?setTimeout((()=>{n.classList.add("vc-highlight-content-solid","vc-blue")}),100):setTimeout((()=>{const t=document.querySelector(`.vc-day.id-${e.format("YYYY-MM-DD")} .vc-day-content`);t&&t.classList.add("vc-highlight-content-solid","vc-blue")}),100)}),50)}))},popover(e){setTimeout((()=>{this.isManualDateClick||document.querySelectorAll(".vc-highlight-bg-solid, .vc-highlight-content-solid").forEach((e=>e.classList.remove("vc-highlight-bg-solid","vc-highlight-content-solid"))),this.isManualDateClick=!1}),100);const t=Date.now();if(t-this.lastPopoverCall<200)return;if(this.lastPopoverCall=t,e.length>0&&(e=e[0]),e.year==this.year&&e.month==this.month)return;"monthchange"==this.navigationDirection?(this.setDateManuallySelected(!1),this.setNavigationDirection("")):this.setDateManuallySelected(!0),this.year=e.year,this.month=e.month;let n=c()(`${e.year}-${String(e.month).padStart(2,"0")}-01`,"YYYY-MM-DD");const s=n.daysInMonth(),i=c()(`${e.year}-${String(e.month).padStart(2,"0")}-${String(s).padStart(2,"0")}`,"YYYY-MM-DD"),a=n.format("YYYY-MM");this.setSelectedMonth(a),this.setDateRange({type:"custom_range",start:n.format(ot),end:i.format(ot)}),this.$refs.datepicker&&this.$refs.datepicker.move({month:e.month,year:e.year}),this.$emit("month-changed",a),this.filterEvents(n,i)},...(0,o.nv)(["setDateRange","setEventList","setLoading","setMonthEvents","setSelectedMonth","setDateManuallySelected","setNavigationDirection"])}};const Dn=(0,de.Z)(kn,[["render",wn]]);var Yn=Dn;const Cn={class:"mini-calendar__filter-collapse"},Sn=["value"],jn={class:"mini-calendar__filter-collapse-title"},bn=["id","aria-controls","aria-expanded"],En=["id","aria-labelledby","aria-hidden"],Ln={class:"mini-calendar__filter-collapse-content-wrap text-content"},$n=["value","id"],On=["for"],Vn=["id","value","checked"],An=["for"];function xn(e,t,n,s,i,a){return(0,ae.wg)(),(0,ae.iD)("div",Cn,[(0,ae._)("input",{type:"hidden",value:n.categoryId},null,8,Sn),(0,ae._)("h3",jn,[(0,ae._)("button",{id:"mini-calendar__filter-"+n.uuid+"-section-filters-label",class:"mini-calendar__filter-collapse-trigger","aria-controls":"mini-calendar__filter-"+n.uuid+"-section-filter-content","aria-expanded":(!i.isHidden).toString(),onClick:t[0]||(t[0]=(...e)=>a.toggleOpen&&a.toggleOpen(...e))},[(0,ae._)("span",null,(0,Pe.zw)(n.title),1),t[5]||(t[5]=(0,ae._)("span",{class:"mini-calendar__filter-collapse-trigger-icon"}
1,null,-1))],8,bn)]),(0,ae._)("div",{class:"mini-calendar__filter-collapse-content",id:"mini-calendar__filter-"+n.uuid+"-section-filter-content","aria-labelledby":"mini-calendar__filter-"+n.uuid+"-section-filters-label",role:"region","aria-hidden":i.isHidden.toString()},[(0,ae._)("div",Ln,[(0,ae._)("form",{class:"mini-calendar__filter-collapse-content-wrap-inner",onSubmit:t[4]||(t[4]=(0,r.iM)((()=>{}),["prevent"]))},[((0,ae.wg)(!0),(0,ae.iD)(ae.HY,null,(0,ae.Ko)(n.categories,(e=>((0,ae.wg)(),(0,ae.iD)("div",{key:e.id,class:"form-item"},["checkbox"==n.option?((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:0},[(0,ae.wy)((0,ae._)("input",{type:"checkbox",value:e.id,id:"category_"+e.id,"onUpdate:modelValue":t[1]||(t[1]=e=>i.selectedbox=e),tabindex:"-1",onChange:t[2]||(t[2]=e=>a.checkbox(n.categoryId))},null,40,$n),[[r.e8,i.selectedbox]]),(0,ae._)("label",{for:"category_"+e.id},(0,Pe.zw)(e.name),9,On)],64)):((0,ae.wg)(),(0,ae.iD)(ae.HY,{key:1},[(0,ae._)("input",{type:"radio",id:"mini-calendar-"+e.id,value:e.id,tabindex:"-1",checked:e.id==this.date_range.type,name:"mini-calendar-date-filter",onChange:t[3]||(t[3]=(...e)=>a.checkradio&&a.checkradio(...e))},null,40,Vn),(0,ae._)("label",{for:"mini-calendar-"+e.id},(0,Pe.zw)(e.name),9,An)],64))])))),128))],32)])],8,En)])}var Fn={name:"MiniCalendarCollpase",mixins:[ln],props:{title:String,uuid:String,categories:Array,categoryId:String,option:{type:String,default:"checkbox"},opend:{type:Boolean,default:!1}},data(){return{isHidden:!0,is_open:this.opend,selected:"",selectedbox:[],selectedCategories:{}}},created(){const e=this.$route.query;if(this.categoryId){const t=this.categoryId.match(/\d+/);if(t){const n=`category_${t[0]}[]`,s=`category_${t[0]}`;if(e[s]){const t=Array.isArray(e[s])?e[s]:[e[s]];this.isHidden=!1,this.selectedbox=t.map(String),this.$store.dispatch("updateSelectedCategories",{key:n,terms:this.selectedbox})}}else console.warn(`Invalid categoryId format: ${this.categoryId}`)}},watch:{filter:function(e){this.selectedbox=e;const t=this.categories.filter((t=>e.indexOf(t.id)>=0));t.length&&(this.is_open=!0)}},computed:{...(0,o.Se)(["date_range","filter","categorylist"]),...(0,o.rn)(["selectedCategories","categoryKeys"])},methods:{onclick(){this.is_open=!this.is_open},checkradio(e){const t=this.$store.getters.search||"";let n=e.target.value,s="",i="";if("today"==n)s=c()().format(ot),i=c()().format(ot);else if("tomorrow"==n)s=c()().add(1,"days").format(ot),i=c()().add(1,"days").format(ot);else if("week"==n)s=c()().startOf("week").format(ot),i=c()().endOf("week").format(ot);else if("month"==n)s=c()().startOf("month").format(ot),i=c()().endOf("month").format(ot);else{if("custom_range"==n)return void this.setDateRange({type:n,start:"",end:""});s=c()().format(ot)}const a=c()(s).format("YYYY-MM");this.setSelectedMonth(a),this.setDateRange({type:n,start:s,end:i}),this.setLoading(!0),$t(s,i,"",0,t).then((e=>{if(e){let t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},checkbox(e){const t=e.match(/\d+/),n=`category_${t[0]}[]`,s=[...this.selectedbox];this.$store.dispatch("updateSelectedCategories",{key:n,terms:s});const i=Object.entries(this.$store.state.selectedCategories).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&");this.setLoading(!0);const a=this.$store.getters.search||"",r=this.date_range.start||c()().format("YYYY-MM-DD"),o=this.date_range.end||"";$t(r,o,i,1,a).then((e=>{if(this.setFilter(this.selectedbox),e){const t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},applyAllFilters(){this.setLoading(!0);const e=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),t=e||"",n=this.search||"",s=c()().format("YYYY-MM-DD"),i=this.date_range.start||s,a=this.date_range.end||"",r=c()(i).format("YYYY-MM");this.setSelectedMonth(r),$t(i,a,t,1,n).then((e=>{if(e){let t=e.data?e.data:[];this.setEventList({eventlist:t,total:e.query.total})}this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},onEnter(){this.setSearch({search:this.searchValue}),this.applyAllFilters()},toggleOpen(){this.isHidden=!this.isHidden},...(0,o.nv)(["setDateRange","setEventList","setLoading","setFilter","setSearch","updateSelectedCategories","setSelectedMonth"])}};const Tn=(0,de.Z)(Fn,[["render",xn]]);var zn=Tn,qn=n(4806),Pn={name:"MiniCalenderFilters",components:{MiniCalendarCalendar:Yn,MiniCalendarCollpase:zn},computed:{...(0,o.Se)(["categorylist","date_range","selectedMonth","selectedCategories","isMonthView"]),isMonthView(){return this.$store.state.isMonthView}},data(){return{date_filter:rt,isMobile:window.innerWidth<768,isFilterHidden:!0,activeCategories:{}}},methods:{handleMonthChange(e){this.$emit("month-changed",e)},handleResize(){this.isMobile=window.innerWidth<768},initializeSelectedCategories(){this.activeCategories={...this.selectedCategories}},applyFilters(){this.setLoading(!0);const e=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),t=e||"",n=this.search||"",s=this.$store.getters.selectedMonth||c()().format("YYYY-MM");this.setSelectedMonth(s);const i=c()(s,"YYYY-MM").startOf("month").format("YYYY-MM-DD"),a=c()(s,"YYYY-MM").endOf("month").format("YYYY-MM-DD");$t(i,a,t,1,n).then((e=>{this.setEventList({eventlist:e.data?e.data:[],total:e.query.total}),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))},...(0,o.nv)(["setEventList","setFilter","setLoading","setSelectedMonth"]),...(0,o.Se)(["search","filter","date_range"])},updateCategorySelection(e,t){this.activeCategories[e]=t,this.$store.dispatch("updateSelectedCategories",{key:e,terms:t})},mounted(){this.debouncedResize=(0,qn.debounce)(this.handleResize,200),window.addEventListener("resize",this.debouncedResize),this.handleResize()},beforeUnmount(){window.removeEventListener("resize",this.debouncedResize)},watch:{selectedMonth:function(e){if(e){const t=c()(e,"YYYY-MM").startOf("month").format("YYYY-MM-DD"),n=c()(e,"YYYY-MM").endOf("month").format("YYYY-MM-DD");this.setDateRange({type:"custom_range",start:t,end:n})}}}};const Hn=(0,de.Z)(Pn,[["render",yn]]);var In=Hn,Rn={components:{MiniCalendarFilters:In},data(){return{temporaryFilter:{}}},computed:{...(0,o.Se)(["selectedMonth"])},methods:{updateTemporaryFilters(e){this.temporaryFilter=e},closeModal(){const e=document.getElementById("mini-calendar-filter-modal");e&&e.close()}},mounted(){const e=document.querySelector(".show-results");e&&e.addEventListener("click",this.closeModal);const t=document.querySelector(".closeDialog");t&&t.addEventListener("click",this.closeModal)},beforeUnmount(){const e=document.querySelector(".show-results");e&&e.removeEventListener("click",this.closeModal);const t=document.querySelector(".closeDialog");t&&t.removeEventListener("click",this.closeModal)}};const Un=(0,de.Z)(Rn,[["render",vn]]);var Nn=Un;function Zn(e,t,n,s,i,a){const r=(0,ae.up)("FullCalendar");return(0,ae.wg)(),(0,ae.j4)(r,{options:a.calendarOptions,ref:"fullCalendar"},null,8,["options"])}var Wn=n(2415),Bn=n(687),Gn=n(7079),Kn=n(3987),Qn={name:"MiniCalendarMonthView",components:{FullCalendar:Wn.Z},props:{showDate:String},data(){return{events:[],selectedStartDate:null,selectedEndDate:null,expandedDays:new Set,hideCalendarGrid:!1,previousViewStart:null}},computed:{...(0,o.rn)(["date_range","eventlist","navigationDirection"]),formattedEvents(){const e={};return this.eventlist.forEach((t=>{const n=t.date?.start?.date||"",s=t.date?.end?.date||n,i=n!==s,a=i?c()(s).add(1,"day").format("YYYY-MM-DD"):s,r=t.date?.start?.time||"";e[n]||(e[n]={singleDay:[],multiDay:[]});const o={id:t.id||`event-${Math.random()}`,title:t.title,start:n,time:r,end:a,url:t.url||"#",isMultiDay:i,extendedProps:{isMultiDay:i,time:t.date?.start?.time||"",all_day:t.date?.all_day||"0"}};i?e[n].multiDay.push(o):e[n].singleDay.push(o)})),e},calendarOptions(){return{plugins:[Bn.Z,Gn.ZP,Kn.Z],initialView:"dayGridMonth",initialDate:this.showDate||new Date,events:this.getLimitedEvents(),eventClick:this.openEvent,editable:!1,selectable:!1,height:"auto",datesSet:this.handleMonthChange,eventContent:this.renderEventC
1ontent,eventOrder:!0,schedulerLicenseKey:"0966966126-fcs-1742821718",dayHeaderContent:function(e){return{html:`<span class="fc-col-header-cell-cushion">${e.text}</span>`}},eventBackgroundColor:"transparent",eventBorderColor:"transparent",headerToolbar:{left:"prev",center:"title",right:"next"}}}},methods:{...(0,o.nv)(["setEventList","setLoading","setSelectedMonth","setDateRange","setDateManuallySelected","setNavigationDirection"]),ensureCalendarAccessibility(){this.$nextTick((()=>{const e=this.$refs.fullCalendar?.$el;if(!e)return;e.querySelectorAll("[role='presentation']").forEach((e=>{e.removeAttribute("role")}));const t=e.querySelector("table[role='grid']");t&&t.removeAttribute("role")}))},fixToolbarIconsAccessibility(){this.$nextTick((()=>{const e=this.$refs.fullCalendar?.$el;if(!e)return;const t=e.querySelector(".fc-prev-button .fc-icon");t&&t.setAttribute("aria-hidden","true");const n=e.querySelector(".fc-next-button .fc-icon");n&&n.setAttribute("aria-hidden","true")}))},openEvent(e){e.event.url&&(window.open(e.event.url),e.jsEvent.preventDefault())},toggleExpandDay(e){this.expandedDays.has(e)?this.expandedDays.delete(e):this.expandedDays.add(e),this.$nextTick((()=>{this.updateCalendarView()}))},async fetchEventsForMonth(e,t,n=null,s=null){this.setLoading(!0);try{const i=this.getMiddleMonths(e,t),a=[],r=this.$store.getters.search||"",o=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),l=o||"";for(const e of i){const t=await $t(e.start,e.end,l,1,r,1e5);t?.data&&a.push(...t.data)}this.selectedStartDate=e,this.selectedEndDate=t,this.setEventList({eventlist:a}),this.events=a.map((e=>({id:e.id||`event-${Math.random()}`,title:e.title,start:e.date?.start?.date||"",time:e.date?.start?.time||"",end:e.date?.end?.date||e.date?.start?.date||"",url:e.url||"#"}))),this.$nextTick((()=>{this.updateCalendarView()}));const c=n||e,d=s||t;this.checkIfMonthHasEvents(c,d)}catch(i){console.log("error")}finally{this.setLoading(!1)}},checkIfMonthHasEvents(e,t){const n=this.eventlist.filter((n=>{const s=c()(n.date?.start?.date);return s.isSameOrAfter(e)&&s.isSameOrBefore(t)}));this.$emit("update:noEvents",0===n.length);const s=n.length>0;this.hideCalendarGrid=!s,this.$nextTick((()=>{const e=this.$refs.fullCalendar?.$el;if(e){const t=e.querySelector(".fc-daygrid-body"),n=e.querySelector(".fc-col-header");t&&(t.style.display=this.hideCalendarGrid?"none":""),n&&(n.style.display=this.hideCalendarGrid?"none":"");const s=e.querySelector(".fc-scrollgrid");s&&(s.style.border=this.hideCalendarGrid?"none":"")}}))},updateCalendarView(){if(this.$refs.fullCalendar){const e=this.$refs.fullCalendar.getApi();e.removeAllEvents(),e.addEventSource(this.getLimitedEvents());const t=this.selectedStartDate||c()().startOf("month").format("YYYY-MM-DD"),n=this.selectedEndDate||c()().endOf("month").format("YYYY-MM-DD");this.checkIfMonthHasEvents(t,n),this.ensureCalendarAccessibility()}},handleMonthChange(e){const t=c()(e.start).format("YYYY-MM-DD"),n=c()(e.end).format("YYYY-MM-DD"),s=c()(e.start).add(15,"days"),i=s.format("YYYY-MM"),a=s.clone().startOf("month").format("YYYY-MM-DD"),r=s.clone().endOf("month").format("YYYY-MM-DD");if(this.previousViewStart){const e=c()(this.previousViewStart),n=c()(t);(n.isAfter(e)||n.isBefore(e))&&(this.setDateManuallySelected(!1),this.setNavigationDirection("monthchange"))}this.previousViewStart=t,this.setSelectedMonth(i),this.setDateRange({start:t,end:n,type:"custom_range"}),t!==this.selectedStartDate&&this.fetchEventsForMonth(t,n,a,r)},getMiddleMonths(e,t){const n=c()(e),s=c()(t),i=[];while(n.isBefore(s))i.push({start:n.clone().startOf("month").format("YYYY-MM-DD"),end:n.clone().endOf("month").format("YYYY-MM-DD")}),n.add(1,"month");return i},getLimitedEvents(){const e=[];return Object.keys(this.formattedEvents).forEach((t=>{const{singleDay:n,multiDay:s}=this.formattedEvents[t];
1if(e.push(...s),this.expandedDays.has(t))e.push(...n);else{const s=n.slice(0,3);e.push(...s),n.length>3&&e.push({id:`more-${t}`,title:`+${n.length-3} more`,start:t,classNames:["fc-more-events"],extendedProps:{type:"more-events",allEvents:n}})}})),e},renderEventContent(e){const{event:t}=e,n="more-events"===t.extendedProps.type,s=t.extendedProps.isMultiDay,i="1"===t.extendedProps.all_day;if(n){const e=document.createElement("button");return e.className="fc-more-events",e.textContent=t.title,e.addEventListener("click",(()=>this.toggleExpandDay(t.startStr))),{domNodes:[e]}}const a=!s&&!i&&t.extendedProps.time,r=a?`<span class="fc-event-time">${t.extendedProps.time}</span>`:"";return{html:`<span class="fc-event-title">${t.title}</span>${r}`}}},watch:{eventlist(){this.$nextTick((()=>{this.updateCalendarView()}))}},mounted(){const e=c()().startOf("month").format("YYYY-MM-DD"),t=c()().endOf("month").format("YYYY-MM-DD"),n=e,s=t;this.fetchEventsForMonth(e,t,n,s),this.ensureCalendarAccessibility(),this.fixToolbarIconsAccessibility()}};const Jn=(0,de.Z)(Qn,[["render",Zn]]);var Xn=Jn,es={name:"HomePage",components:{MiniCalenderEvents:zt,MiniCalenderSearch:Wt,MiniCalenderPool:hn,MiniCalendarFilterModal:Nn,MiniCalendarMonthView:Xn},created(){const e=this.$route.query;this.LoadEvents(e),Object.keys(e).forEach((t=>{if(t.startsWith("category_")&&e[t]){const n=Array.isArray(e[t])?e[t]:[e[t]];this.$store.dispatch("updateSelectedCategories",{key:`${t}[]`,terms:n}),this.$store.commit("OPEN_FILTER",t)}}))},watch:{openFilters(e){e&&e[this.categoryId]&&(this.isHidden=!1)}},data(){return{isMobile:!1,mobileMQ:null,isMonthView:!1,noEventsInMonth:!1,monthViewKey:0,calendarViewMode:window.drupalSettings?.idfive_calendar_client?.options?.calendar_view_mode||"both"}},computed:{...(0,o.Se)(["eventlist","date_range","total"]),hasActiveFilters(){const e=this.$store.state.selectedCategories||{},t=Object.keys(e).some((t=>e[t].length>0)),n=this.$store.getters.search?.trim()?.length>0;return t||n}},methods:{resetAll(){this.setLoading(!0),this.setClearAll(),this.setFilter([]),this.$store.state.selectedCategories={}},resetMonthToToday(){const e=c()().format("YYYY-MM");this.setDateManuallySelected(!1),this.setSelectedMonth(e),this.monthViewKey+=1},showAllEvents(){this.resetMonthToToday(),this.setLoading(!0),this.setClearAll(),this.setFilter([]),this.$store.state.selectedCategories={}},refreshMonthView(e){this.setSelectedMonth(c()(e,"YYYY-MM").startOf("month").format("YYYY-MM-DD")),this.isMonthView&&(this.isMonthView=!1,this.$nextTick((()=>{this.isMonthView=!0})))},toggleView(e){"both"===this.calendarViewMode&&(this.isMonthView="month"===e),this.isMonthView?this.$store.state.isMonthView=!0:this.$store.state.isMonthView=!1;const t=this.$store.state.selectedMonth||c()().format("YYYY-MM");this.setSelectedMonth(t);const n=c()(t,"YYYY-MM").format("YYYY-MM-DD"),s=c()(t,"YYYY-MM").endOf("month").format("YYYY-MM-DD");this.$store.dispatch("setDateRange",{type:"custom_range",start:n,end:s});const i=this.$store.getters.search||"",a=Object.entries(this.$store.state.selectedCategories).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&");this.isMonthView||this.getLoadFilteredEvents(c()(n),c()(s),a,0,i)},resize(e){this.isMobile=e.matches},CheckFilters(e,t){let n=[];if(e.keys.length)for(let s of e.keys){let i=e.data[s].terms.filter((e=>t.indexOf(e.id)>=0));if(i.length)for(let e of i)n.push(e.id)}return n},LoadEvents(e){this.setLoading(!0);let t=[];const n=this.$store.getters.search||"";e&&Object.keys(e).length&&Object.entries(e).forEach((([e,n])=>{Array.isArray(n)?t.push(...n):t.push(n),this.$store.dispatch("updateSelectedCategories",{key:`${e}[]`,terms:Array.isArray(n)?n:[n]})}));const s=Object.entries(this.$store.state.selectedCategories||{}).flatMap((([e,t])=>t.map((t=>`${e}=${t}`)))).join("&"),i=Object.entries(e||{}).flatMap((([e,t])=>Array.isArray(t)?t.map((t=>`${e}[]=${t}`)):[`${e}[]=${t}`])).join("&"),a=t.length>0?i:s;if(t.length){const e=this.date_range.start||c()().format("YYYY-MM-DD"),s=this.date_range.end||"";$t(e,s,a,0,n).then((e=>{Ot().then((async n=>{this.setEventList({eventlist:e.data,total:e.query.total}),await this.setCategoryList(n);const s=this.CheckFilters(n,t);s.length&&this.setFilter(s),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))})).catch((()=>{this.setLoading(!1)}))}else Lt().then((e=>{Ot().then((t=>{this.setEventList({eventlist:e.data,total:e.query.total}),this.setCategoryList(t),this.setLoading(!1)})).catch((()=>{this.setLoading(!1)}))})).catch((()=>{this.setLoading(!1)}));const r=c()(this.selectedMonth).startOf("month"),o=c()(this.selectedMonth).endOf("month");
1$t(r.format(ot),o.format(ot),a,0,n).then((e=>{let t=[];for(let n of e.data){if(c()(n.date.start.date)>c()().endOf("month"))break;t.push(c()(n.date.start.date).toDate())}this.setMonthEvents([Ct(t,r.format(ot))])}))},getLoadFilteredEvents(e,t,n,s,i){const a=c()(e).format(ot),r=c()(t).format(ot);$t(a,r,n,0,i).then((e=>{this.setEventList({eventlist:e.data,total:e.query.total})}))},...(0,o.nv)(["setEventList","setClearAll","setLoading","setMonthEvents","setCategoryList","setFilter","setSelectedMonth","setDateManuallySelected"])},mounted(){const e=this.$store.state.selectedMonth||c()().format("YYYY-MM");this.selectedMonth=e,this.mobileMQ=window.matchMedia("(max-width: 980px)"),this.isMobile=this.mobileMQ.matches,this.mobileMQ.addEventListener("change",this.resize),this.$nextTick((()=>{if("function"===typeof window.calendarFilterModalInit)window.calendarFilterModalInit();else{const e=document.querySelector('button[data-dialog="mini-calendar-filter-modal"]'),t=document.querySelector("#mini-calendar-filter-modal");e&&t&&(e.addEventListener("click",(()=>{t.showModal()})),t.addEventListener("click",(e=>{e.target===t&&t.close()})))}}))},beforeUnmount(){this.mobileMQ&&this.mobileMQ.removeEventListener("change",this.resize)}};const ts=(0,de.Z)(es,[["render",Ae]]);var ns=ts;const ss=[{path:"/",name:"HomePage",component:ns},{path:"/:taxonomy",name:"Taxonomy",component:ns}],is=(0,ve.p7)({history:(0,ve.PO)(window.location.pathname),routes:ss});var as=n(6112),rs=n(2965);const os=(0,r.ri)(fe);os.use(as.Z),os.use(ie),os.use(is),os.use(rs.OV,{}),os.component("VDatePicker",rs.Mt),os.mount("#app")}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var a=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,function(){var e=[];n.O=function(t,s,i,a){if(!s){var r=1/0;for(d=0;d<e.length;d++){s=e[d][0],i=e[d][1],a=e[d][2];for(var o=!0,l=0;l<s.length;l++)(!1&a||r>=a)&&Object.keys(n.O).every((function(e){return n.O[e](s[l])}))?s.splice(l--,1):(o=!1,a<r&&(r=a));if(o){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[s,i,a]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){var e={826:0};n.O.j=function(t){return 0===e[t]};var t=function(t,s){var i,a,r=s[0],o=s[1],l=s[2],c=0;if(r.some((function(t){return 0!==e[t]}))){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)var d=l(n)}for(t&&t(s);c<r.length;c++)a=r[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},s=self["webpackChunkidfive_calendar"]=self["webpackChunkidfive_calendar"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var s=n.O(void 0,[998],(function(){return n(994)}));s=n.O(s)})(); 2//# sourceMappingURL=index.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.