PageSourceSearch

https://www.genoahealthcare.com/etc.clientlibs/dmp/clientlibs/clie…/o5calendarcenters.2ae4fedbf16d2a22bfce.js

js genoahealthcare.com collected 2026-09-28 06:55:00 UTC 54,706 bytes, 2 lines download raw bytes

1/*! For license information please see o5calendarcenters.2ae4fedbf16d2a22bfce.js.LICENSE.txt */
2(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[8629],{22747(e,t,r){"use strict";var n=r(77963),a=r(99750),i=r(14258),o=r(63736),s=r(19952),l=r(17777),c=r(56639);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function f(e,t,r){return t=p(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}const b=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h(r=f(this,t,[e]),"uieName","aem-calender"),h(r,"modifiers",{active:""}),r.componentName=e.componentName||r.uieName,r.ui={calendar:"calendar-aem-activity__calendar",calendarBtn:"calendar-aem-activity__button",heading:"calendar-aem-activity__heading",noEvents:"calendar-aem-activity__no-events",resultsHeading:"#results-heading"},r.modifiers={active:"is--active"},r.init(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),r=t,(n=[{key:"updateCalendarAlly",value:function(){var e=$
2(".ui-datepicker-next"),t=$('.ui-datepicker-prev:not(".ui-state-disabled")');t.attr("href","javascript:void(0);").attr("aria-label","Previous month ".concat(t.attr("title"))),e.attr("href","javascript:void(0);").attr("aria-label","Next month ".concat(e.attr("title"))),$(".ui-datepicker-calendar td").each(function(e,t){var r=$(t),n=(0,a.Yk)(r.data("month")),i=r.data("year"),o="".concat(n," ").concat(r.find(".ui-state-default").text()," ").concat(i);r.hasClass("day-has-event")?(o+=" Events Present",r.find(".ui-state-default").attr("aria-label",o),r.find(".ui-state-default").attr("href","javascript:void(0);")):(r.find("a").attr("tabindex","-1").attr("aria-disabled","true"),r.addClass("ui-state-disabled"))}),$(".ui-datepicker-calendar th").each(function(e,t){var r=$(t).find("span").attr("title");if(r){var n=l.default.sanitize(r);$(t).find("span").attr("aria-label",n).attr("aria-hidden","true"),$(t).append("<span class='sr-only'>".concat(n,"</span>")),$(t).find("span").removeAttr("title")}});var r="".concat($(".ui-datepicker-month").text(),", ").concat($(".ui-datepicker-year").text());$(".ui-datepicker-calendar").attr("aria-label",r),$(".ui-state-disabled").each(function(e,t){void 0===$(t).attr("aria-disabled")&&$(t).attr("aria-disabled","true")})}},{key:"createCalendar",value:function(){var e=new Date,t="";c(this.store.selectedDate,"MM/DD/YYYY").isValid()&&(t=this.store.selectedDate,this.store.selectedEventsView="Custom",$("#search-views").val("Custom")),$("#calendar-aem").datepicker({dayNamesMin:["S","M","T","W","T","F","S"],dayNamesShort:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],prevText:"",navigationAsDateFormat:!0,nextText:"",minDate:e,beforeShowDay:this.beforeShowDay.bind(this),onSelect:this.onSelect.bind(this),onChangeMonthYear:this.onChangeMonthYear.bind(this),defaultDate:t})}},{key:"beforeShowDay",value:function(e){return e=(0,a.Yq)(e),this.store.listOfEventDates.indexOf(e)>-1?this.store.selectedDate==e?[!0,"day-has-event selected-date-custom",""]:[!0,"day-has-event",""]:[!0,"",""]}},{key:"onSelect",value:function(e){var t=this;this.store.selectedEventsView="Custom",this.store.selectedDate=(0,a.Yq)(e),(0,o.A)(document).trigger("filter-results"),$("#search-views").val("Custom"),$(".".concat(this.ui.calendarBtn)).addClass(this.modifiers.active),setTimeout(function(){t.updateCalendarAlly()},0)}},{key:"onChangeMonthYear",value:function(){var e=this;setTimeout(function(){e.updateCalendarAlly()},0)}},{key:"afterRender",value:function(){this.createCalendar(),this.updateCalendarAlly()}},{key:"template",value:function(){return'<h2 class="'.concat(this.ui.heading,'">\n            <span>Calendar</span>\n        </h2>')}}])&&d(r.prototype,n),i&&d(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(n.uA);var g=r(56639);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function _(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function O(e,t,r){return t=P(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,r||[],P(e).constructor):t.apply(e,r))}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}
2function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function S(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}var D='<svg class="calendar-aem-results__icon" role="img" aria-label="Recurring Event" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440h80q0 117 81.5 198.5T480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l62 62-56 58-160-160 160-160 56 58-62 62h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80Z"/></svg>',E='<svg role="img" aria-label="Calendar" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Z"/></svg>',A='<svg role="img" aria-label="Time" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>',x='<svg role="img" aria-label="Virtual event" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M80-120v-80h80v-520q0-33 23.5-56.5T240-800h480q33 0 56.5 23.5T800-720v520h80v80H80Zm160-80h480v-520H240v520Z"/></svg>',F='<svg role="img" aria-label="Location" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-320q33 0 56.5-23.5T560-400q0-33-23.5-56.5T480-480q-33 0-56.5 23.5T400-400q0 33 23.5 56.5T480-320Zm0 240Q339-186 259.5-313.5T180-552q0-150 96.5-239T480-880q107 0 203.5 89T780-552q0 111-79.5 238.5T480-80ZM200-80v-80h560v80H200Z"/></svg>',q=function(e){function t(e){var r,n,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=O(this,t,[e]),n=r,i="calendar-aem-results-component",(a=S(a="uieName"))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,r.ui={pagination:".calendar-aem-pagination",jsEventsView:"js-aem-results-views",jsEventLink:".js-aem-results-link-btn"},r.init(),(0,o.A)(document).on("filter-results",r.filterEventList.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}
2(t,e),r=t,n=[{key:"afterRender",value:function(){var e=$(".".concat(this.ui.jsEventsView)),t=$(this.ui.jsEventLink),r=$(".address-link");if(e.on("change",this.onChangeSelectEventsView.bind(this)),t.on("click keypress",this.onClickRoute.bind(this)),r.on("click",this.onClickAddressLink.bind(this)),this.store.focusFirstResult){var n=$(this.ui.jsEventLink).eq(0).children("a");if(n.length>0){var a=n.offset().top,i=void 0===a?"":a;i&&$("html, body").animate({scrollTop:i-90},300),n.focus()}}var o=$('[data-aem-module="o5-calendar-centers"]'),l=new s.A({element:this.element});l.parentSelector=o,l.start(),$(l.element).find(".js-uib-customselect-selected-value").html($(l.element).find(".js-uib-customselect-option.is--selected").html().trim()),$(l.element).find(".js-uib-customselect-option.is--selected").attr("aria-selected","true")}},{key:"beforeRender",value:function(){this.store.numOfPages=Math.ceil(this.store.filteredResults.length/this.store.resultsPerPage)}},{key:"onClickAddressLink",value:function(e){e.stopImmediatePropagation()}},{key:"onChangeSelectEventsView",value:function(e){var t=this,r=$(e.currentTarget).val(),n=this.store.selectedEventsView;if(this.store.selectedEventsView=r,this.store.currPageNum=1,this.filterEventList(),(0,o.A)(document).trigger("filter-results-paginate"),"Custom"===n){var a=new Date,i=$("#calendar-aem");this.store.selectedDate="",i.datepicker("setDate",new Date(a.getFullYear(),a.getMonth()+1,1)),i.datepicker("setDate",a)}setTimeout(function(){$(".".concat(t.ui.jsEventsView)).focus()},300)}},{key:"onClickRoute",value:function(e){if(e.preventDefault(),"keypress"===e.type&&13!==e.which)return!1;var t=e.currentTarget.dataset.route;window.location.href=t}},{key:"serializeData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{events:this.store.filteredResults,views:this.store.eventsView,isFiltered:e,allDDValues:["All events","This week","This month","Today","Custom"]}}},{key:"template",value:function(e){var t=this,r=this.ui;return'<div class="calendar-aem-results__top-content">\n\n            <div class="calendar-aem-results__sorter calendar-aem__col">\n                <div class="calendar-aem-results__sorter-inner-container">\n                    <div>\n                        <label class="events-views" id="events-search-views" for="search-views">View events by</label>\n                        \n                        \n                        <select label-id="events-search-views" id="search-views" name="views" class="search-views '.concat(r.jsEventsView,' js-field" data-uib-custom-select>\n                            ').concat(e.allDDValues.map(function(r){var n=t.store.selectedEventsView===r?" selected":"Custom"!==r&&e.views.includes(r)?"":' aria-disabled="true" disabled="disabled"';return'<option value="'.concat(r,'"').concat(n,">").concat(r,"</option>")}).join(""),'\n                        </select>\n                    </div>\n                </div>\n\n                <div class="calendar-aem-results__recurring calendar-aem__col"> \n                    <div class="calendar-aem-results__recurring-title">Recurring event</div> \n                    ').concat(D,'\n                </div>\n            </div>\n        </div>\n        \n        <div class="calendar-aem-results__list" qa-handles="O5-CalendarAEM-ResultsList">\n            ').concat(e.events.length?'<div class="calendar-section__inner">\n                <div class="calendar-section__item">\n                    <ul class="calendar-aem-results__cards" tabindex="-1" qa-handles="O5-CalendarAEM-ResultsCards">\n                        '.concat(this.eventTemplate(e.events),"\n                    </ul>\n                    </div>  \n                </div>\n            </div>"):'<div><h2 class="noresultMsg" id="noResultMsg-aem" aria-live="polite" aria-atomic="true">'.concat("Sorry, No results based on your search..","</h2></div>"),"\n        </div>")}},{key:"eventTemplate",value:function(e){var t="",r=0,n=this.store.resultsPerPage;this.store.numOfPages<this.store.currPageNum&&(this.store.currPageNum=1);var a=this.store.currPageNum;a>1&&(r=(n=this.store.resultsPerPage*a)-this.store.resultsPerPage);for(var i=r;i<n&&void 0!==e[i]&&e[i];i++){var o=e[i],s=o.title,l=o.description,c=o.displayDate,u=o.displayTime,d=o.link,f=o.recurring,v=o.IsThisVirtualEvent,p=o.address,m=$.parseHTML(l)[0].data,h=encodeURIComponent(p),y="https://www.google.com/maps/dir/?api=1&zoom=15&destination=".concat(h);t+='<li class="calendar-aem-results__card">\n                <div class="calendar-aem-results__link" id="calendar-aem-results__link-'.concat(i,'">\n                    <div class="calendar-aem-results__details calendar-aem__col">\n                        <div class="calendar-aem__flex"> \n                            <h2 id="calendar-aem-results__name-').concat(i,'" class="calendar-aem-results__name js-aem-results-link-btn" data-route="').
2concat(d,'">\n                                <a href="javscript:void();">').concat(s,"</a>\n                            </h2> \n                            ").concat(f?'<span class="calendar-aem-results__referesh">'.concat(D,"</span>"):"",' \n                        </div>\n                        <div class="calendar-aem-results__personal calendar-aem__flex">\n                            <ul class="calendar-aem__col calendar-aem-results__left">\n                                <li class="calendar-aem__flex">\n                                    <div class="calendar-aem__colauto">\n                                    ').concat(E,'\n                                    </div>\n                                    <div class="calendar-aem__col">\n                                        <div class="calendar-aem-results__date" id="calendar-aem-results__date-').concat(i,'">\n                                            ').concat(c,'\n                                        </div>\n                                    </div>\n                                </li>\n                                <li class="calendar-aem__flex">\n                                    <div class="calendar-aem__colauto">\n                                    ').concat(A,'\n                                    </div>\n                                    <div class="calendar-aem__col">\n                                        <div class="calendar-aem-results__time">\n                                            ').concat(u,"\n                                        </div>\n                                    </div>\n                                </li>\n                                ").concat(v?'<li class="calendar-aem__flex">\n                                    <div class="calendar-aem__colauto">\n                                    '.concat(x,'</div>\n                                    <div class="calendar-aem__col">\n                                        <div class="calendar-aem-results__virtual">\n                                            Virtual event\n                                        </div>\n                                    </div>\n                                </li>'):"","  \n                                ").concat(!v&&p?'<li>\n                                    <div class="calendar-aem-results-address calendar-aem-results__address">\n                                        '.concat(F,'\n                                        <div class="calendar-aem-results__address-link">\n                                            <a class="address-link" id="address-link-').concat(i,'" target="_self" tabindex="0" href="').concat(y,'" aria-labelledby="address-link-').concat(i," calendar-aem-results__name-").concat(i," calendar-aem-results__date-").concat(i,'">').concat(p,"</a> \n                                        </div>\n                                    </div>\n                                </li>"):"",'                             \n                            </ul>\n                            <div class="calendar-aem-results__description calendar-aem__col">\n                                <div>\n                                ').concat(m,"\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </li>")}return t}},{key:"filterEventList",value:function(){var e=_(this.store.allEvents),t=this.store.selectedFilters,r=this.store.selectedEventsView;if(t&&t.length>0||"All events"!==r){var n=this.categorizeListIntoObject(t);n.view=[r],e=this.multiVariantFiltering(e,n,r)}this.store.filteredResults=e,this.render(),$(document).trigger("updateSFPills")}},{key:"categorizeListIntoObject",value:function(e){var t={};return e.forEach(function(e){e=e.split("/"),void 0===t[e[0]]&&(t[e[0]]=[]),t[e[0]].push(e[1])}),t}},{key:"multiVariantFiltering",value:function(e,t,r){var n=this,a=Object.keys(t);return e.filter(function(e){var i={};return i=n.categorizeListIntoObject(e.tags),a.every(function(a){return!t[a].length||void 0!==i[a]&&("view"===a?n.determineViewType(e,r):i[a].some(function(e){return t[a].includes(e)}))})})}},{key:"determineViewType",value:function(e,t){var r=e.views;if("All events"===t)return!0;var n=g(),a=g(e.date.startDate,"dddd, MMMM DD, YYYY"),i=n.year()===a.year();switch(t){case"Today":return i&&a.isSame(n,"day");case"This week":return i&&n.week()===a.week();case"This month":return i&&n.month()===a.month();
2case"Custom":return a.isSame(g(this.store.selectedDate,"MM/DD/YYYY"));default:var o=r[r.indexOf(t)];if(void 0!==o){var s=o.split("/");return n[s[0]]()===parseInt(s[1])}}return!1}}],n&&k(r.prototype,n),a&&k(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.uA);const R=q;function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function L(e,t,r){return t=z(t),function(e,t){if(t&&("object"==M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,r||[],z(e).constructor):t.apply(e,r))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function I(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}const Z=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),I(r=L(this,t,[e]),"uieName","calendar-aem-pills-component"),I(r,"pills",[]),r.ui={jsBtn:"js-toggle-pill-btn",jsClear:"js-clear-pills"},r.selector=".calendar-aem-pills",r.init(),r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),r=t,n=[{key:"setup",value:function(){(0,o.A)(document).on("updateSFPills",this.render.bind(this))}},{key:"beforeRender",value:function(){this.pills=this.store.selectedFilters}},{key:"afterRender",value:function(){$(this.selector).off(),$(this.selector).on("click keypress",".".concat(this.ui.jsBtn),this.onClickRemovePill.bind(this)),$(this.selector).on("click keypress",".".concat(this.ui.jsClear),this.onClickClearFilters.bind(this))}},{key:"onClickRemovePill",value:function(e){e.stopPropagation();var t=$(e.currentTarget),r=t.attr("data-id"),n=parseInt(r)-1,a=t.data("value")||t.val(),i=$(".ui-datepicker-calendar").find(".day-has-event a").last();if("keypress"===e.type&&13!==e.keyCode)return!1;(a.includes("radius")?$(".js-clear-btn"):$(".calendar-aem-filter-tray").find('[value="'.concat(a,'"]'))).trigger("click"),0==parseInt(r)?$(".calendar-aem-filter-tray").find("#filter-0").focus():$(".calendar-aem-filter-tray").find("#filter-"+n).focus(),0==document.querySelectorAll(".calendar-aem-pills__btn").length&&i.focus()}},{key:"onClickClearFilters",value:function(e){e.preventDefault();for(var t=$(".calendar-aem-filter-tray__checkbox"),r=$(".ui-datepicker-calendar").find(".day-has-event a").last(),n=0;n<t.length;n++)t[n].checked=!1;Object.keys(this.store.filterData).forEach(function(e){var t=$("#event-".concat(e));t.hasClass("is--expanded")&&t.trigger("click")}),this.store.selectedFilters=[],this.store.savedFilters=[],this.store.selectedAction="clear",$(".js-location-field").val(""),$(".js-remove-location").hide(),$(".js-apply-btn").prop("disabled",!0),(0,o.A)(document).trigger("updateQueryParamsWithFilters"),(0,o.A)(document).trigger("filter-results"),this.render(),r.focus()}},{key:"serializeData",value:function(){return{selectedFilters:this.pills}}},{key:"template",value:function(e){var t=this,r=e.selectedFilters.length>=1;return'<div class="calendar-aem__flex">\n            '.concat(e.selectedFilters.map(function(e,r){var n=e.split("/"),a=n[0];n.shift();var i=n.join("/").replaceAll("-"," ");return'<div class="calendar-aem-pills__pill calendar-aem__colauto">\n                    <div class="calendar-aem-pills__inner">\n                        <button id="filter-'.concat(r,'" \n                            class="calendar-aem-pills__btn ').concat(t.ui.jsBtn,'"\n                            tabindex="0"\n                            data-category="').concat(a,'"\n                            data-value="').concat(e,'"\n                            data-id="').concat(r,'"\n                            aria-label="').concat(i.includes("|")?i.split("|")[0]:i,' remove filter">\n                            ').concat(i,'\n                            <svg class="icon icon--cancel" aria-hidden="true" width="18" height="18" viewBox="0 -960 960 960" fill="currentColor"><path d="m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q
2-54 54-127 85.5T480-80Z"/></svg></button>\n                    </div>\n                </div>')}).join(""),"\n\n            ").concat(r?'<div class="calendar-aem-pills__pill calendar-aem__colauto align-self-center">\n                <div class="calendar-aem-pills__inner">\n                    <button class="calendar-aem-pills__clear '.concat(this.ui.jsClear,'">\n                        Clear all\n                    </button>\n                </div>\n            </div>'):"","\n        </div>")}}],n&&V(r.prototype,n),a&&V(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.uA);var H=r(67206);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function Q(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,re(n.key),n)}}function J(e,t,r){return t=X(t),function(e,t){if(t&&("object"==U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,K()?Reflect.construct(t,r||[],X(e).constructor):t.apply(e,r))}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K=function(){return!!e})()}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e,t,r){return(t=re(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}const ne=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(r=J(this,t,[e]),"uieName","calendar-aem-filter-tray"),te(r,"categories",[]),r.ui={jsCheckbox:".js-checkbox-input",jsLocationField:".js-location-field",jsGetZipcodeBtn:".js-get-zipcode-btn",jsApplyLocationBtn:".js-apply-btn",jsClearLocationBtn:".js-clear-btn",jsSuggestions:".js-suggestions",jsSuggestionsItem:".js-suggestions-item",jsRemoveLocation:".js-remove-location",trigger:".js-accordion-trigger",expanded:".is--expanded"},r.selector=".calendar-aem-filter-tray",r.shouldRender=r.store.filterData&&Object.keys(r.store.filterData).length>0,r.init(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(t,e),r=t,n=[{key:"afterRender",value:function(){var e={element:this.element,selector:"",store:this.store};$(this.selector).on("change",this.ui.jsCheckbox,this.onChangeSelectFilter.bind(this)),$(this.selector).on("click keyup keydown",this.ui.trigger,this.onClickToggleAccordion.bind(this)),(0,o.A)(document).trigger("filter-results"),this.expandAccordions(),new Z(Object.assign(e,{selector:"calendar-aem-pills"})),Object.keys(this.store.filterData).length>0&&new H.A({ui:this.ui,element:this.element})}},{key:"beforeRender",value:function(){this.store.numOfPages=Math.ceil(this.store.filteredResults.length/this.store.resultsPerPage)}},{key:"onChangeSelectFilter",value:function(e){var t=e.currentTarget,r=t.value;t.checked?this.store.selectedFilters.push(r):this.store.selectedFilters=this.store.selectedFilters.filter(function(e){return e!==r}),this.store.selectedFilters=this.store.selectedFilters.filter(function(e,t,r){return r.indexOf(e)==t}),this.store.savedFilters=Q(this.store.selectedFilters),this.store.currPageNum=1,(0,o.A)(document).trigger("updateQueryParamsWithFilters"),(0,o.A)(document).trigger("updateSFPills"),(0,o.A)(document).trigger("filter-results")}},{key:"expandAccordions",value:function(){var e=this;
2this.categories.forEach(function(t){var r=!1;t.data.forEach(function(t){e.store.selectedFilters.some(function(e){return e.includes(t)})&&(r=!0)}),r&&$("#".concat(t.id)).trigger("click")})}},{key:"serializeData",value:function(){var e=this,t=Object.keys(this.store.filterData).map(function(t){return{label:t,show:!0,data:e.store.filterData[t],method:"createCategoryList",id:"event-".concat(t),filterLabel:t}});return this.categories=t,{collection:t,heading:"Filtered by",filterHeading:"Filter your results",info:"Selecting a filter will change the results immediately.",closeBtn:"Done"}}},{key:"template",value:function(e){var t=this;return'<div class="calendar-aem-popover">\n        <button id="filters-popover-btn"\n            class="calendar-aem-popover-btn calendar-aem-popover__btn uib-mobile-popover__btn dmp-btn dmp-btn--md dmp-btn--2 is--inactive js-ui-b-mobile-popover-toggle"\n            aria-controls="filters-popover-content"\n            data-focus-element=".calendar-aem-popover__heading">\n            <svg class="icon icon--filter-list" aria-hidden="true" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>\n                '.concat(e.filterHeading,'\n            <svg class="icon icon--chevron-right" aria-hidden="true" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>\n        </button> \n        <div role="region" id="filters-popover-content" \n            class="uib-mobile-popover__content js-ui-b-mobile-popover-content"\n            aria-labelledby="filters-popover-btn"\n            aria-modal="true">\n            <div class="uib-mobile-popover__scroller">\n                <div class="calendar-aem-filter-tray__container">\n                    <h2 id="search-heading" class="calendar-aem-filter-tray__heading calendar-aem-filter-tray__heading--mobile">Filter your results</h2>\n                    <div class="dmp-col-2 uib-mobile-popover__close">\n                        <button id="filters-popover-close-btn" \n                            class="uib-mobile-popover__close-btn js-ui-b-mobile-popover-close-btn material-no"\n                            aria-label="close filters dialog">\n                            <svg class="icon icon--close" aria-hidden="true" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>\n                            <span class="dmp-util-assist__text">').concat(e.closeBtn,'</span>\n                        </button>\n                    </div>\n                        </div>\n                    </div>\n                    <p class="calendar-aem-filter-tray__heading" id="calendar-aem-filter-tray__heading_id">').concat(e.heading,'</p> \n                <div class="calendar-aem-filter-tray__header" role="group" aria-labelledby="calendar-aem-filter-tray__heading_id">\n                    <div class="calendar-aem-filter-tray__info">').concat(e.info,'</div>\n                    <div class="calendar-aem-pills">\n                        <div class="calendar-aem-pills-data" data-optum-library-cmp="calendar-aem-pills"></div>\n                    </div>\n                </div>\n                <div class="calendar-aem-filter-tray__filters-container" qa-handles="O5-CalendarAEM-filterContainer">\n                    ').concat(e.collection.map(function(e){var r=e.show,n=e.label,a=e.method,i=e.data,o=e.id,s=e.filterLabel;return r?t.accordionTemplate(n,t[a](i,s,t.store.selectedFilters),o):""}).join(""),"\n                </div>\n            </div>\n        </div>\n        </div>")}},{key:"accordionTemplate",value:function(e,t,r){var n=e.split("-");n[0]=n[0].charAt(0).toUpperCase()+n[0].slice(1);var a=n.join(" ");return'<div class="calendar-aem-filter-tray__filters-categories">\n            <div class="calendar-aem-filter-tray__filters js-accordion-trigger" id="'.concat(r,'" role="button" aria-expanded="false" aria-controls="calendar-aem-filter-tray__category-').concat(e,'" tabindex="0">\n               \n                <div class="calendar-aem-filter-tray__icon-container">\n                    <div class="calendar-aem-filter-tray__icon-bg">\n                    <svg class="careticon" xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">\n                        <path\n                            d="M13.95 10.05C13.35 10.65 13.35 11.55 13.95 12.15L19.8 18L13.95 23.85C13.35 24.45 13.35 25.35 13.95 25.95C14.55 26.55 15.45 26.55 16.05 25.95L22.95 19.05C23.5
25 18.45 23.55 17.55 22.95 16.95L16.05 10.05C15.45 9.44998 14.55 9.44998 13.95 10.05Z"\n                            fill="#3D3C38" />\n                    </svg>\n                    </div>\n                </div>\n                <strong class="calendar-aem-filter-tray__category-heading">').concat(a,"</strong>\n            </div>\n            ").concat(t,"\n        </div>")}},{key:"createCategoryList",value:function(e,t,r){var n=this;e.sort();var a=e.map(function(e){var t="topic/".concat(e);return n.checkboxTemplate({id:e,label:e.replaceAll("-"," "),value:t,isChecked:r.includes(t)})}).join("");return'<div class="calendar-aem-filter-tray__category" id="calendar-aem-filter-tray__category-'.concat(t,'" role="region" aria-labelledby="event-').concat(t,'">').concat(a,"</div>")}},{key:"checkboxTemplate",value:function(e){var t=e.id,r=e.label,n=e.value,a=e.isChecked,i=e.isSubGroup,o=e.modifierClass,s=void 0===o?"":o,l=i?" calendar-aem-filter-tray__subgroup":"",c=t.replace(/\s/g,"-").toLowerCase();return'<div class="calendar-aem-filter-tray__group'.concat(l,'">\n            <input id="').concat(c,'"\n                class="calendar-aem-filter-tray__checkbox js-checkbox-input ').concat(s,'" \n                type="checkbox" \n                tabindex="0"\n                ').concat(a?"checked":"",'\n                value="').concat(n,'" />\n            <label for="').concat(t,'" class="calendar-aem-filter-tray__checkbox-label">').concat(r,"</label>\n        </div>")}},{key:"onClickToggleAccordion",value:function(e){if(32===e.keyCode&&e.preventDefault(),!(16===e.ke
2yCode||9===e.keyCode||"keypress"===e.type&&13!==e.keyCode||"keydown"===e.type&&27!==e.keyCode)){e.preventDefault();var t=$(e.currentTarget),r=t.next(),n=this.ui.expanded.slice(1);t.hasClass(n)?(t.attr("aria-expanded","false"),t.removeClass(n),r.slideUp()):(t.attr("aria-expanded","true"),t.addClass(n),r.slideDown(),setTimeout(function(){r.find('[name="firstName"]').focus()},200))}}}],n&&W(r.prototype,n),a&&W(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.uA);var ae=r(92359),ie=r(56639);function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function se(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ce(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(r,n,a,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return ue(c,"_invoke",function(r,n,a){var i,s,l,c=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,o}};function v(r,n){for(s=r,l=n,t=0;!d&&c&&!a&&t<u.length;t++){var a,i=u[t],v=f.p,p=i[2];r>3?(a=p===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=v&&((a=r<2&&v<i[1])?(s=0,f.v=n,f.n=i[1]):v<p&&(a=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,f.n=p,s=0))}if(a||r>1)return o;throw d=!0,n}return function(a,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),v(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==o)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,a,i),!0),c}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ue(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ue(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ue(d,"constructor",c),ue(c,"constructor",l),l.displayName="GeneratorFunction",ue(c,a,"GeneratorFunction"),ue(d),ue(d,a,"Generator"),ue(d,n,function(){return this}),ue(d,"toString",function(){return"[object Generator]"}),(ce=function(){return{w:i,m:f}})()}function ue(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}ue=function(e,t,r,n){function i(t,r){ue(e,t,function(e){return this._invoke(t,r,e)})}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ue(e,t,r,n)}function de(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ye(n.key),n)}}function ve(e,t,r){return t=me(t),function(e,t){if(t&&("object"==oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pe()?Reflect.construct(t,r||[],me(e).constructor):t.apply(e,r))}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pe=function(){return!!e})()}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(e,t)}function ye(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oe(t)?t:t+""}var be=function(e){function t(e){var r,n,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=ve(this,t,[e]),n=r,i="05-calendar-centers",(a=ye(a="uieName"))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,r.store={uri:"",listOfEventDates:[],allEvents:[],filteredResults:[],filterData:{},eventsView:[],selectedDate:"upcomingEvents",selectedEventsView:"All events",eventTags:"",selectedFilters:[],filters:{},savedFilters:[],selectedEvent:{},notifyUser:!1,stopScroll:!1,queryParameters:{},selectedAction:"",currentResultsCount:0,numOfPages:0,resultsPerPage:24,currPageNum:1,focusFirstResult:!1},r.setup(),(0,o.A)(document).on("updateQueryParamsWithFilters",r.updateQueryParamsWithFilters.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(t,e),r=t,n=[{key:"setup",value:(u=ce().m(function e(){var t,r,n,a=this;return ce().w(function(e){for(;;)switch(e.n){case 0:t=$("#center-details-page").data("page-path"),r=$("#center-details-page").data("page-template"),n="/bin/dmp/fetchevents?path=".concat(t,"&template=").concat(r),(0,i.Jt)(n).then(function(e){a.getCalendarData(e.parsedBody),a.init(),a.store.stopScroll=!1,a.store.selectedFilters=a.store.savedFilters,0===a.store.selectedFilters.length&&(a.store.filteredResults=a.store.allEvents)}).catch(function(e){a.init(),console.error("Error "+e)});case 1:return e.a(2)}},e)}),d=function(){var e=this,t=arguments;return new Promise(function(r,n){var a=u.apply(e,t);function i(e){de(a,r,n,i,o,"next",e)}function o(e){de(a,r,n,i,o,"throw",e)}i(void 0)})},function(){return d.apply(this,arguments)})},{key:"getCalendarData",value:function(e){var t=this.transformDataForUI(e);0===this.store.filteredResults.length&&(this.store.filteredResults=t),this.store.allEvents=t,this.store.listOfEventDates=t.reduce(function(e,t){var r=(0,a.Yq)(t.date.startDate.replace(".",""));return-1===e.indexOf(r)&&e.push(r),e},[]),this.generateFiltersFromQueryParams()}},{key:"transformDataForUI",value:function(e){var t=this;if(e){var r,n=[];this.store.filterData={},n=e.resources,r=e.centerAddress||"",this.store.eventsView=["All events"];var a=[];
2return n&&n.forEach(function(e){e.dates.forEach(function(n,i){var o=[],s=[],l=[],c=void 0!==e.description?decodeURIComponent(e.description):"",u=e.dates||[],d=n.displayDate.split("|"),f=d[0],v=d[1],p=ie(n.startDate).format("dddd, MMM. DD YYYY"),m=ie(n.endDate).format("dddd, MMM. DD YYYY");e.productTags&&e.productTags.length>0&&(l=e.productTags.map(function(e){var t=e.split("/"),r=t.splice(t.length-2);return o.includes(r[0])||o.push(r[0]),s.includes(r[1])||s.push(r[1]),r.join("/")}));var h={title:e.title,recurring:e.recurring||!1,description:c,dates:u,displayDate:f,displayTime:v,link:"".concat(e.link,"?eventid=").concat(i)||"",tags:["view/All events"],date:{startDate:p,endDate:m},startDate:ie(n.startDate),endDate:ie(n.endDate),IsThisVirtualEvent:"true"===e.virtualEvent,address:e.eventAddress||r};t.populateEventsView(h),t.createFilterTrayData(h,l),a.push(h)})}),n=a,this.store.eventsView.push("Custom"),n.sort(function(e,t){return new Date(e.startDate).getDate()-new Date(t.startDate).getDate()}),n}}},{key:"generateFiltersFromQueryParams",value:function(){var e=(0,a.vA)(),t=se(this.store.selectedFilters),r=!1;if(e){var n=["_mr","wcmmode","shell_domain"];for(var i in e){var o=!n.some(function(e){return i.indexOf(e)>-1});"v"!==i&&o&&("changeLocation"===i?r="true"===e[i]:(0,a.lF)(e[i],"decode").split("|").forEach(function(e){t.push("".concat(i,"/").concat(e))}))}}r&&(this.store.selectedDate="upcomingEvents",this.store.selectedEventsView="All events",this.updateQueryParamsWithFilters()),this.store.selectedFilters=se(t),this.store.savedFilters=se(this.store.selectedFilters),this.store.selectedFilters=this.store.selectedFilters.filter(function(e,t,r){return r.indexOf(e)==t})}},{key:"updateQueryParamsWithFilters",value:function(){var e=this.getSelectedFiltersObj(),t=window.location.origin+window.location.pathname,r=Object.keys(e);r.length>0&&(t+="?",t+=r.map(function(t){return"".concat(t,"=").concat(e[t].join("|"))}).join("&"));var n=(0,a.vA)();n&&void 0!==n.v&&t.indexOf("v")>1&&(t=t+"&v="+n.v),history.replaceState("","",t)}},{key:"getSelectedFiltersObj",value:function(){var e={};return this.store.selectedFilters.forEach(function(t){var r=t.split("/"),n=r[0];r.shift(),e[n]||(e[n]=[]),e[n].push((0,a.lF)(r.join("/"),"encode"))}),e}},{key:"populateEventsView",value:function(e){var t=ie(),r=ie(e.date.startDate),n=[];t.year()===r.year()&&(t.week()===r.week()&&this.addViewsToList("This week",n,!!r.week()),t.month()===r.month()&&this.addViewsToList("This month",n,!!r.month()),r.isSame(t,"day")&&this.addViewsToList("Today",n,!!r.month())),e.views=n}},{key:"addViewsToList",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.store.eventsView.includes(e)||this.store.eventsView.push(e),e=e.replace(/\w+\s/,""),r&&(e="".concat(e,"/").concat(r)),t.push(e)}},{key:"createFilterTrayData",value:function(e,t){var r=this;t.forEach(function(t){var n=t.split("/"),a=n[0],i=n[1];e.tags.includes("topic/".concat(i))||e.tags.push("topic/".concat(i)),r.store.filterData[a]?r.store.filterData[a].includes(i)||r.store.filterData[a].push(i):r.store.filterData[a]=[i]})}},{key:"afterRender",value:function(){var e={element:this.element,selector:"",store:this.store};$(".js-different-locations-select").on("change",this.changeLocationHrefOnClick.bind(this)),new b(Object.assign(e,{selector:"calendar-aem-activity__categories"})),new R(Object.assign(e,{selector:"calendar-aem-results"})),new ne(Object.assign(e,{selector:"calendar-aem-filter-tray"})),new ae.A(Object.assign(e,{selector:"o5-pagination"}));var t=$('[data-aem-module="o5-calendar-aem-dropdown"]'),r=new s.A({element:this.element});r.parentSelector=t,r.start(),$(r.element).find(".js-uib-customselect-selected-value").html($(r.element).find(".js-uib-customselect-option.is--selected").html().trim()),$(r.element).find(".js-uib-customselect-option.is--selected").attr("aria-selected","true")}},{key:"beforeRender",value:function(){null!==sessionStorage.getItem("resultsPerPage")&&(this.store.resultsPerPage=JSON.parse(sessionStorage.getItem("resultsPerPage"))),JSON.parse(sessionStorage.getItem("currPageNum"))>1&&null!=sessionStorage.getItem("currPageNum")&&(this.store.currPageNum=JSON.parse(sessionStorage.getItem("currPageNum")))}},{key:"changeLocationHrefOnClick",value:function(e){var t;if("click"===e.type&&32!==e.which)return!1;if("#"===$(".js-different-locations-select :selected")[0].value)return!1;t=window.location.origin+$(".js-different-locations-select :selected")[0].value,$(".js-clear-pills").trigger("click");var r=l.default.sanitize(t);window.location.href=r}},{key:"template",value:function(){return'<div class="calendar-aem-region calendar-aem__flex">\n                    <div class="calendar-aem-sidepanel dmp-col-12" qa-handles="O5-CalendarAEM-SidePanel">\n                        <div  data-optum-library-cmp="calendar-aem-activity__categories"></div>
2\n                        <div id="calendar-aem" class="calendar-aem-activity__calendar"></div> <section class="calendar-aem-filter-tray" qa-handles="O5-CalendarAEM-Filter"><div data-optum-library-cmp="calendar-aem-filter-tray"></div></section></div>\n                        <div class="dmp-col-12 dmp-col-lg">\n                            <div class="calendar-aem-activity-results">\n                                <div data-optum-library-cmp="calendar-aem-results" class="calendar-aem-results" qa-handles="O5-CalendarAEM-ResultsSection"></div>       \n                                <div>\n                                    <div data-optum-library-cmp="o5-pagination" qa_handles="o5-calendar-sf-pagination"></div>\n                                </div>      \n                            </div>\n                        </div>\n                    </div>\n                </div>'}}],n&&fe(r.prototype,n),c&&fe(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,c,u,d}(n.uA);(0,n.fe)({componentName:"o5-calendar-centers",component:be})},35358(e,t,r){var n={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function a(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=i,e.exports=a,a.id=35358}}]);

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.