1/*! For license information please see o5-hubs.29a0b7f87c90e27130ff.js.LICENSE.txt */ 2"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[6752],{3585(e,t,r){r.r(t),r.d(t,{default:()=>ke});var o=r(77963),n=r(99750),i=r(63736);function a(e){return a="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},a(e)}function s(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function c(e,t,r){return t=u(t),function(e,t){if(t&&("object"==a(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,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}const h=function(e){function t(e){var r,o,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=c(this,t,[e]),o=r,i="uib-accordian",(n=p(n="behaviorName"))in o?Object.defineProperty(o,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[n]=i,r.ui={accordion:".ui-b-accordion",drawer:".ui-b-accordion__drawer",jsTrigger:".js-ui-b-accordion-toggle",jsWrapper:".js-ui-b-accordion-wrapper"},r.modifiers={active:"is--active",collapsed:"is--collapsed",overlay:"has--overlay"},r.setup(),r.start(r.ui),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&&d(e,t)}(t,e),r=t,o=[{key:"setup",value:function(){$(this.ui.jsTrigger).each(function(){var e=$
2(this);if(e.data("overlay")){var t=e.closest(this.ui.accordion),r=t.outerHeight(!0)+"px";t.css("min-height",r).addClass(this.modifiers.overlay)}})}},{key:"setHandlers",value:function(){$(this.ui.jsTrigger).on("click",this.accbtnclick.bind(this))}},{key:"accbtnclick",value:function(e){var t=e.currentTarget,r=t.getAttribute("aria-controls"),o=document.querySelector("#".concat(r));o&&o.classList.contains("is--hidden")?(t.parentElement.classList.add("is--open"),$(o).slideDown("fast"),o.classList.remove("is--hidden"),t.setAttribute("aria-expanded","true")):o&&(t.parentElement.classList.remove("is--open"),$(o).slideUp("fast"),o.classList.add("is--hidden"),t.setAttribute("aria-expanded","false"))}}],o&&s(r.prototype,o),n&&s(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(o.nS);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 f(e){return function(e){if(Array.isArray(e))return b(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 b(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)?b(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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function y(e,t,r){return t=g(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,v()?Reflect.construct(t,r||[],g(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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function S(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}const j=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),S(r=y(this,t,[e]),"uieName","uie-filter-tray"),S(r,"workingFilters",{}),S(r,"workingFilterTray",[]),S(r,"isDesktop",void 0),S(r,"initialLoad",void 0),S(r,"modifiers",void 0),S(r,"selectionTimer",void 0),S(r,"shouldStart",void 0),S(r,"workingFilteredResults",[]),S(r,"filteringErrors",[]),S(r,"formBehaviour",void 0),S(r,"keysToSearch",[]),r.componentName=e.componentName||r.uieName,r.formBehaviour="ui-b-form",r.keysToSearch=["title","subtitle","desc","tags"],r.ui={jsCheckbox:".js-".concat(r.formBehaviour,"-toggle-checkbox"),jsApplyBtn:".js-".concat(r.componentName,"-apply-btn"),icon:".uie-filter-tray__icon",jsFilterComponent:".js-".concat(r.componentName,"-component"),jsFilterCount:".js-".concat(r.componentName,"-accordion-filter-count"),jsClearBtn:".js-ui-b-filter-clear-btn",jsFilterSearch:".js-ui-b-filter-search",jsPopoutFilter:".js-ui-b-mobile-popover-content",jsPopoutClose:".js-ui-b-mobile-popover-close-btn",jsSearchButton:".js-input-search",jsClearSearch:".js-clear-text",boxFocus:"uie-filter-tray__searchcol--focus"},r.modifiers={active:"is--expanded",collapsed:"is--collapsed",checked:"is--checked"},r.selectionTimer=null,r.shouldStart=!0,r.filteringErrors=[],r.isDesktop=!1,r.initialLoad=!0,r.checkViewport(),r.selectedFiltersFromQueryParams(r.
2store.queryParameters),(0,i.A)(document).on("filter-results",r.updateAccordionFilterCount.bind(r)),r.shouldRender=r.store.filtersCollection.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&&w(e,t)}(t,e),r=t,o=[{key:"afterRender",value:function(){var e=this;if(new h({ui:this.ui,element:this.element}),document.querySelectorAll(this.ui.jsCheckbox).forEach(function(t){t.addEventListener("click",e.onClickToggleCheckbox.bind(e)),t.addEventListener("keypress",e.onClickToggleCheckbox.bind(e))}),document.querySelectorAll(this.ui.jsApplyBtn).forEach(function(t){t.addEventListener("click",e.onApplyFilters.bind(e))}),document.querySelectorAll(this.ui.jsClearBtn).forEach(function(t){t.addEventListener("click",e.onClearFilters.bind(e))}),document.querySelectorAll(this.ui.jsFilterSearch).forEach(function(t){t.addEventListener("input",e.onInputSearch.bind(e)),t.addEventListener("keydown",e.onInputSearch.bind(e)),t.addEventListener("focus",e.focusInput.bind(e)),t.addEventListener("blur",e.focusInput.bind(e)),t.addEventListener("keyup",e.showHideClose.bind(e))}),document.querySelectorAll(this.ui.jsSearchButton).forEach(function(t){t.addEventListener("click",e.performSearch.bind(e))}),document.querySelectorAll(this.ui.jsClearSearch).forEach(function(t){t.addEventListener("click",e.clearSearch.bind(e))}),this.initialLoad){var t=new Event("click");this.onApplyFilters(t,"onload")}if(this.initialLoad=!1,document.querySelectorAll(".ui-b-accordion__drawer").forEach(function(e){var t;if(e.classList.contains("is--hidden")&&e.querySelector(".is--checked")){var r=e.getAttribute("id");if(r){var o=document.querySelector('[aria-controls="'.concat(r,'"]'));o&&(null===(t=o.parentElement)||void 0===t||t.classList.add("is--open"),e.classList.remove("is--hidden"),e.style.display="block",o.setAttribute("aria-expanded","true"))}}}),1===this.store.filtersCollection.length&&this.isDesktop){var r=document.querySelector(".js-ui-b-accordion-toggle");r&&r.click()}}},{key:"showHideClose",value:function(e){var t=e.currentTarget.nextElementSibling;t&&(t.style.display=e.currentTarget.value.length>0?"block":"none")}},{key:"clearSearch",value:function(e){"Enter"!==e.key&&"click"!==e.type||(e.currentTarget.previousElementSibling.value="",e.currentTarget.style.display="none",e.currentTarget.previousElementSibling.focus())}},{key:"performSearch",value:function(e){e.stopPropagation();var t="";if("Enter"===e.key||"click"===e.type)if("Enter"===e.key?t=e.currentTarget.value:"click"===e.type&&(t=e.currentTarget.previousElementSibling.previousElementSibling.value),t&&""!==t){var r;this.store.tempselectedFilters.searchText=t,null===(r=document.querySelector(this.ui.jsApplyBtn))||void 0===r||r.click();var o=e.currentTarget.parentNode,n=o.querySelector(".uie-filter-tray__input");n&&(n.value="");var i=o.querySelector(".uie-filter-tray__close-button");i&&(i.style.display="none")}else void 0!==this.store.tempselectedFilters.searchText&&delete this.store.tempselectedFilters.searchText}},{key:"focusInput",value:function(e){"focus"===e.type&&e.currentTarget.parentNode.classList.add(this.ui.boxFocus),"blur"===e.type&&e.currentTarget.parentNode.classList.remove(this.ui.boxFocus)}},{key:"addItemToArray",value:function(e){var t=e.key,r=e.category,o=e.selectedLabel,n=e.selectedValue,i=this.store[t];void 0===i[r]&&(this.store[t][r]=[]),i[r].some(function(e){return e.id===n})||this.store[t][r].push({title:"string"==typeof o?o:o.toString(),id:n})}},{key:"removeItemFromArray",value:function(e){var t=e.key,r=e.category,o=e.selectedValue,n=this.store[t];if(void 0===n)return!1;var i=n[r].filter(function(e){return e.id!==o});this.store[t][r]=i,0===this.store[t][r].length&&delete this.store[t][r]}},{key:"onClickToggleCheckbox",value:function(e){var t;if(e.stopPropagation(),"keypress"===e.type&&32!==e.keyCode)return!1;e.preventDefault();var r=e.currentTarget,o=r.dataset.uiCategory,n=r.dataset.uiLabel,i=r.dataset.uiValue,a="temp"+r.dataset.uiTarget;r.classList.contains(this.modifiers.checked)?(r.setAttribute("aria-checked","fal
2se"),r.classList.remove(this.modifiers.checked),this.removeItemFromArray({key:a,category:o,selectedValue:i})):(r.setAttribute("aria-checked","true"),r.classList.add(this.modifiers.checked),this.addItemToArray({key:a,category:o,selectedLabel:n,selectedValue:i})),this.store.focusFirstResult=!1,sessionStorage.setItem("selectedFilters",JSON.stringify(this.store.selectedFilters)),sessionStorage.setItem("tempselectedFilters",JSON.stringify(this.store.tempselectedFilters)),null===(t=document.querySelector(this.ui.jsApplyBtn))||void 0===t||t.click()}},{key:"filterResults",value:function(e){var t=this,r=Object.keys(e);r.length>0?this.store.filteredResults=this.store.parsedBody.dataList.filter(function(o){var n=t.categorizeTagsIntoObj(o.tags);return r.every(function(t){return!e[t].length||n[t].some(function(r){return e[t].some(function(e){return e.tag.includes(r)})})})}):this.store.filteredResults=this.store.parsedBody.dataList}},{key:"categorizeTagsIntoObj",value:function(e){var t={};return e.forEach(function(e){var r=e.title,o=e.id;void 0===t[r]&&(t[r]=[]),t[r].includes(o)||t[r].push(o)}),t}},{key:"checkViewport",value:function(){this.isDesktop=document.documentElement.clientWidth>=768}},{key:"updateCount",value:function(e){var t=this;document.querySelectorAll(this.ui.jsFilterCount).forEach(function(r){var o=r.dataset.uiCategory,n=e[o],i=[];if(void 0!==n){for(var a=function(e){for(var r=function(r){t.store.resultsCollection[r].tags.some(function(o){return o.id===n[e].id&&!i.includes(o)&&(i.push(t.store.resultsCollection[r]),!0)})},o=0;o<t.store.resultsCollection.length;o++)r(o)},s=0;s<n.length;s++)a(s);var c=f(Array.from(new Set(i)));r.textContent=String(c.length)}})}},{key:"updateAccordionFilterCount",value:function(){this.updateCount(this.store.categorizedItems),this.updateCount(this.store.selectedFilters)}},{key:"beforeRender",value:function(){var e=document.querySelector(this.selector);e&&(e.innerHTML="")}},{key:"selectedFiltersFromQueryParams",value:function(e){var t=this,r=Object.keys(e),o=this.store.categorizedItems;if(0===r.length||1===r.length&&r.includes("wcmmode"))return!1;this.store.currQueryParam=this.store.queryParameters.selectedFilters,sessionStorage.setItem("currQueryParam",JSON.stringify(this.store.currQueryParam)),r.forEach(function(r){var n=decodeURIComponent(e[r]);if(r.indexOf("search")>-1&&(t.store.selectedFilters.searchText=n),"selectedFilters"===r){var i=window.location.search.substring(1).split(/&(?=[a-z])/g).find(function(e){return e.startsWith("selectedFilters=")}),a=(i?i.substring(16):"").split("|").flatMap(function(e){return e.split(",").map(function(e){return decodeURIComponent(e)})}),s=function(e){var r=o[e];a.forEach(function(o){var n;r.some(function(e){return n=e,o.includes(e.title)})&&(void 0===t.store.selectedFilters[e]&&(t.store.selectedFilters[e]=[]),t.store.selectedFilters[e].some(function(e){return e.title===n.title})||t.store.selectedFilters[e].push(n))})};for(var c in o)s(c)}})}},{key:"serializeData",value:function(){return{ui:this.ui,componentName:this.uieName,filterTrayData:this.store.parsedBody.filterList,filtersCollection:this.store.filtersCollection,hideSearch:this.store.parsedBody.hideSearchbar,searchBarHint:""!==this.store.parsedBody.searchBarText.trim()?this.store.parsedBody.searchBarText.trim():"Search",filterPopoverHeading:"Filter",closeBtnLabel:"Done",filterBtnLabel:"Show results",clearBtnLabel:"Clear filters",errorMsg:"Error: no facet data was found for this CDO.",selectedFilters:this.store.selectedFilters,hideResultCount:"solutions-hub"===this.store.parsedBody.componentType&&!0===this.store.parsedBody.hideResultCount}}},{key:"template",value:function(e){var t=this,r=e.ui,o=e.componentName,n=e.filtersCollection,i=void 0===n?null:n,a=e.filterBtnLabel,s=e.clearBtnLabel,c=e.errorMsg,l="";return this.store.parsedBody.hideFilter||(l=null!==i?i.map(function(r,o){var n=r.title,i=(n.replace(/\s/g,"-")+"-".concat(o)).toLowerCase();return t.accordionsTemplate({filters:r.filter,category:n,filterId:i},e)}).join(""):'<p tabindex="0">'.concat(c,"</p>")),'<div class="'.concat(o,"__section ").concat(r.jsFilterComponent,'" qa_handles="').concat(o,"__section ").concat(r.jsFilterComponent,'">\n ').concat(this.searchTemplate(e)+l,'\n <div class="uie-filter-tray__apply dmp-row dmp-padding__top-8" qa_handles="uie-filter-tray__apply dmp-row dmp-padding__top-8">\n <div class="dmp-col" qa_handles="dmp-col">\n <button class="dmp-margin__top-16 js-uie-filter-tray-apply-btn dmp-btn dmp-btn--md dmp-btn--1" qa_handles="dmp-margin__top-16 js-uie-filter-tray-apply-btn dmp-btn dmp-btn--md dmp-btn--1" data-ui-btn-type="submit">').concat(a,'</button>\n <button class="dmp-margin__top-16 js-ui-b-filter-clear-btn dmp-btn dmp-btn--md dmp-btn--2" qa_handles="dmp-margin__top-16 js-ui-b-filter-clear-btn dmp-btn dmp-btn--md dmp-btn--2" data-ui-btn-type="clear">').concat(s,"</button>\n </div>\n </div>\n </div>")}},{key:"searchTemplate",value:function(e){if(e.hideSearch)return"";var t=e.componentName,r=e.searchBarHint,o=e.selectedFilters;return'<div class="'.concat(t,'__search dmp-padding__bottom-32 row" qa_handles="').concat(t,'__search dmp-padding__bottom-32 row">\n <div class="').concat(t,'__search-label" qa_handles="').concat(t,'__search-label"><label for="searchFilter" class="dmp-type__body-2-bold" qa_handles="dmp-type__body-2-bold">Search by keyword</label></div>\n <div class="col ').concat(t,'__searchcol" qa_handles="col ').concat(t,'__searchcol">\n <input id="searchFilter" qa_handles="').concat(t,'__input dmp-corner__1 dmp-type__body-2 dmp-padding__right-16 dmp-padding__left-16 js-ui-b-filter-search" class="').concat(t,'__input dmp-corner__1 dmp-type__body-2 dmp-padding__right-16 dmp-padding__left-16 js-ui-b-filter-search" type="text" \n placeholder="').concat(r,'"\n value="').concat(o.searchText||"",'" />\n <button aria-label="clear Search text" class="').concat(t,'__close-button js-clear-text" qa_handles="').concat(t,'__close-button js-clear-text">\n <svg aria-hidden="true" class="').concat(t,'__close-icon" qa_handles="').concat(t,'__close-icon" xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="#757575">\n <path d="M7.09274 0.907283C6.89637 0.710919 6.60183 0.710919 6.40546 0.907283L4.00001 3.31274L1.59456 0.907283C1.39819 0.710919 1.10365 0.710919 0.907283 0.907283C0.710919 1.10365 0.710919 1.39819 0.907283 1.59456L3.31274 4.00001L0.907283 6.40546C0.710919 6.60183 0.710919 6.89637 0.907283 7.09274C1.10365 7.2891 1.39819 7.2891 1.59456 7.09274L4.00001 4.68728L6.40546 7.09274C6.60183 7.2891 6.89
2637 7.2891 7.09274 7.09274C7.2891 6.89637 7.2891 6.60183 7.09274 6.40546L4.68728 4.00001L7.09274 1.59456C7.2891 1.39819 7.2891 1.10365 7.09274 0.907283Z" fill="#757575"/>\n </svg>\n </button>\n <button aria-label="Search" class="').concat(t,'__search-button js-input-search" qa_handles="').concat(t,'__search-button js-input-search">\n <svg class="').concat(t,'__searchicon" qa_handles="').concat(t,'__searchicon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n <rect class="').concat(t,'__searchsvgrect" qa_handles="').concat(t,'__searchsvgrect" width="24" height="24" rx="4" fill="none"/>\n <path class="').concat(t,'__searchsvgpath" qa_handles="').concat(t,'__searchsvgpath" d="M15.5 13.9999H14.71L14.43 13.7299C15.63 12.3299 16.25 10.4199 15.91 8.38989C15.44 5.60989 13.12 3.38989 10.32 3.04989C6.09001 2.52989 2.53002 6.08989 3.05002 10.3199C3.39002 13.1199 5.61002 15.4399 8.39002 15.9099C10.42 16.2499 12.33 15.6299 13.73 14.4299L14 14.7099V15.4999L18.25 19.7499C18.66 20.1599 19.33 20.1599 19.74 19.7499C20.15 19.3399 20.15 18.6699 19.74 18.2599L15.5 13.9999ZM9.50002 13.9999C7.01002 13.9999 5.00002 11.9899 5.00002 9.49989C5.00002 7.00989 7.01002 4.99989 9.50002 4.99989C11.99 4.99989 14 7.00989 14 9.49989C14 11.9899 11.99 13.9999 9.50002 13.9999Z" fill="#3D3C38"/>\n </svg>\n </button>\n </div>\n </div>')}},{key:"accordionsTemplate",value:function(e,t){var r=e.category,o=e.filterId,n=(t.ui,t.componentName),i=t.hideResultCount?"":' (<span class="js-'.concat(n,'-accordion-filter-count" qa_handles="js-').concat(n,'-accordion-filter-count" data-ui-category="').concat(r,'">0</span>)');return'<div class="ui-b-accordion__section '.concat(n,'__category ui-b-accordion" qa_handles="ui-b-accordion__section ').concat(n,'__category ui-b-accordion">\n <button id="accordion-').concat(o,'"\n class="').concat(n,"__btn ").concat(n,'-accordion__btn is--collapsed js-ui-b-accordion-toggle" qa_handles="').concat(n,"__btn ").concat(n,'-accordion__btn is--collapsed js-ui-b-accordion-toggle"\n aria-controls="accordion-drawer-').concat(o,'"\n aria-expanded="false">\n <i class="ui-b-accordion__icon" qa_handles="ui-b-accordion__icon" aria-hidden="true">\n <?xml version="1.0" encoding="UTF-8"?>\n <svg class="careticon" qa_handles="careticon" xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">\n <path class="careticon__path" qa_handles="careticon__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.55 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 </i>\n <span class="').concat(n,'__catText" qa_handles="').concat(n,'__catText">').concat(r).concat(i,'</span>\n </button>\n <div id="accordion-drawer-').concat(o,'" \n class="ui-b-accordion__drawer is--hidden" qa_handles="ui-b-accordion__drawer is--hidden"\n role="group"\n aria-labelledby="accordion-').concat(o,'">\n <div class="').concat(n,'__content" qa_handles="').concat(n,'__content">\n <div class="').concat(n,"__").concat(o,'" qa_handles="').concat(n,"__").concat(o,'">\n ').concat(this.determineFilterTemplate(e,t),"\n </div>\n </div>\n </div>\n </div>")}},{key:"determineFilterTemplate",value:function(e,t){var r=e.category,o=e.filters;return this.createCheckboxListTemplate(r,o,t)}},{key:"createCheckboxListTemplate",value:function(e,t,r){var o=r.selectedFilters[e]||[];return e?t.map(function(t,r){var n="filter-".concat(e.replace(/\s/g,"-"),"-").concat(r),i=t.t
2itle,a=t.id,s=o.some(function(e){return e.id===a}),c="";return s&&(c="is--checked"),'<div id="'.concat(n,'" \n class="ui-b-form-checkbox js-ui-b-form-toggle-checkbox ').concat(c,'" qa_handles="ui-b-form-checkbox js-ui-b-form-toggle-checkbox ').concat(c,'"\n role="checkbox"\n tabindex="0"\n aria-checked="').concat(s,'"\n data-ui-target="selectedFilters"\n data-ui-category="').concat(e,'"\n data-ui-label="').concat(i,'"\n data-ui-value="').concat(a,'">\n\n <svg class="ui-b-form-checkbox__icon ui-b-form-checkbox__check icon icon--check" qa_handles="ui-b-form-checkbox__icon ui-b-form-checkbox__check" aria-hidden="true" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm252-106 236-236-56-56-180 180-124-124-56 56 180 180Z"/></svg>\n <svg class="ui-b-form-checkbox__icon ui-b-form-checkbox__unCheck icon icon--check-box-outline-blank" qa_handles="ui-b-form-checkbox__unCheck" aria-hidden="true" width="24" height="24" viewBox="0 -960 960 960" fill="currentColor"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Z"/></svg>\n \n <div class="ui-b-form-checkbox__label dmp-type__body-1" qa_handles="ui-b-form-checkbox__label dmp-type__body-1">\n <span class="">').concat(i,"</span>\n </div>\n </div>")}).join(""):""}},{key:"onApplyFilters",value:function(e,t){if(e.preventDefault(),e.isTrusted){var r,o=document.querySelector(this.ui.jsPopoutFilter);o&&o.classList.contains("is--active")&&(null===(r=document.querySelector(this.ui.jsPopoutClose))||void 0===r||r.click())}else{"onload"!=t?(this.store.currPageNum=1,this.store.focusFirstResult=!0,this.store.selectedFilters=JSON.parse(JSON.stringify(this.store.tempselectedFilters))):(this.store.focusFirstResult=!1,0==Object.keys(this.store.selectedFilters).length?this.store.tempselectedFilters={}:this.store.tempselectedFilters=this.store.selectedFilters),this.store.currentPathname!==this.store.filterPathname&&0!=this.store.filterPathname.length&&(this.store.selectedFilters={}),this.store.filterPathname=window.location.pathname;var n,a=document.querySelector(this.ui.jsPopoutFilter);a&&a.classList.contains("is--active")&&e.isTrusted&&(null===(n=document.querySelector(this.ui.jsPopoutClose))||void 0===n||n.click()),this.updateFilteredResults(),this.store.filtering=!0,this.updateURL(window.location,this.store.selectedFilters),sessionStorage.setItem("selectedFilters",JSON.stringify(this.store.selectedFilters)),sessionStorage.setItem("tempselectedFilters",JSON.stringify(this.store.tempselectedFilters)),sessionStorage.setItem("filterPathname",JSON.stringify(this.store.filterPathname)),sessionStorage.setItem("currPageNum",JSON.stringify(this.store.currPageNum)),this.store.storeName&&sessionStorage.setItem("".concat(this.store.storeName,"-currPageNum"),JSON.stringify(this.store.currPageNum)),(0,i.A)(document).trigger("filter-results",[!1])}}},{key:"onClearFilters",value:function(e){e.preventDefault(),this.store.currPageNum=1,this.store.focusFirstResult=!0,this.store.filtering=!1,this.store.selectedFilters={},this.store.tempselectedFilters={},this.element.querySelectorAll("[role=checkbox].is--checked").forEach(function(e){e.setAttribute("aria-checked","false"),e.classList.remove("is--checked")}),document.querySelectorAll(this.ui.jsFilterSearch).forEach(function(e){e.value=""}),document.querySelectorAll(this.ui.jsClearSearch).forEach(function(e){e.style.display="none"}),this.updateFilteredResults(),this.updateURL(window.location,this.store.selectedFilters),sessionStorage.setItem("selectedFilters",JSON.stringify(this.store.selectedFilters)),sessionStorage.setItem("tempselectedFilters",JSON.stringify(this.store.tempselectedFilters)),sessionStorage.setItem("currPageNum",JSON.stringify(this.store.currPageNum)),this.store.storeName&&sessionStorage.setItem("".concat(this.store.storeName,"-currPageNum"),JSON.stringify(this.store.currPageNum)),(0,i.A)(document).trigger("filter-results",[!1])}},{key:"onInputSearch",value:function(e){var t=e.currentTarget.value;
2"keydown"===e.type&&"Enter"===e.key&&""!==t&&(this.performSearch(e),e.preventDefault())}},{key:"updateURL",value:function(e,t){var r=Object.keys(t),o=e.origin+e.pathname;if(r.length>0){var n="",i=[];r.forEach(function(e){var r=t[e];if(e.indexOf("search")>-1)n="search=".concat(r);else{var o=r.map(function(e){return encodeURIComponent(e.title)});i.push(o)}}),o+="?".concat(n+(""!==n?"&":""),"selectedFilters=").concat(i.join("|"))}window.history.pushState({},"",o)}},{key:"updateFilteredResults",value:function(){this.store.filteredResults=[],this.workingFilteredResults=this.store.resultsCollection,Object.keys(this.store.selectedFilters).length>0?(this.store.filteredResults=this.multiVariantFiltering(this.store.selectedFilters),this.filteringErrors.length>0&&console.warn("The following results do not have product tags:",this.filteringErrors)):this.store.filteredResults=this.workingFilteredResults}},{key:"multiVariantFiltering",value:function(e){var t=this,r=Object.keys(e);return this.workingFilteredResults.filter(function(o){var n={};return void 0===o.tags?(t.filteringErrors.push(o),!1):(n=t.createObjFromTagsForFiltering(o.tags),r.every(function(r){var i;return"searchText"===r?t.handleFilterSearch(e[r],o):"daterange"===r?(i=t.getTimestamp(o.articlemodifieddate))>n[r][0]&&i<n[r][1]:!e[r].length||void 0!==n[r]&&n[r].some(function(t){return e[r].some(function(e){return e.id===t})})}))})}},{key:"createObjFromTagsForFiltering",value:function(e){var t=this.store.categorizedItems,r={};return e.forEach(function(e){var o=e.id;for(var n in t){var i=t[n];t.hasOwnProperty(n)&&i.some(function(e){return e.id===o})&&(void 0===r[n]&&(r[n]=[]),r[n].push(o))}}),r}},{key:"handleFilterSearch",value:function(e,t){var r=this.keysToSearch.map(function(e){var r=t[e];return"tags"===e&&r.length>0&&(r=r.map(function(e){return e.title}).join(",")),null!=r?r:""}).join(",");return r=r.toLowerCase(),e=e.toLowerCase(),r.indexOf(e)>-1}},{key:"getTimestamp",value:function(e){var t,r;return isNaN(Date.parse(e))?(r=Date.parse(e+" 8:42 EST"),t=new Date(r)):t=new Date(e),t.getTime()}}],o&&_(r.prototype,o),n&&_(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(o.uA);function O(e){return O="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},O(e)}function x(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,N(o.key),o)}}function P(e,t,r){return t=C(t),function(e,t){if(t&&("object"==O(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,q()?Reflect.construct(t,r||[],C(e).constructor):t.apply(e,r))}function q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(q=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function T(e,t,r){return(t=N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O(t)?t:t+""}const E=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),T(r=P(this,t,[e]),"uieName","uie-pills"),T(r,"pills",void 0),T(r,"currentFilterType",void 0),T(r,"isDesktop",void 0),r.componentName=e.componentName||r.uieName,r.ui={filters:".".concat(r.uieName,"-filters"),jsPillBtn:".js-".concat(r.uieName,"-toggle-pill-btn"),jsRadio:".js-".concat(r.uieName,"-toggle-radio"),jsPillsClear:".js-".concat(r.uieName,"-clear-pills"),clear:".dmp-btn dmp-btn--md dmp-btn--1",jsSubmitBtn:".js-uie-filter-tray-apply-btn",jsClearBtn:".js-ui-b-filter-clear-btn"},r.isDesktop=!1,r.init(),(0,i.A)(document).on("filter-results",r.render.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&&F(e,t)}(t,e),r=t,o=[{key:"beforeRender",value:function(){var e=this,t=Object.keys(this.store.selectedFilters);this.pills=[],t.length>0&&t.forEach(function(t){var r=e.store.selectedFilters[t];if("searchText"===t){var o=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");e.pills.unshift({id:o,title:o,category:t})}else r.forEach(function(r){var o=Object.assign({},{category:t},r);e.pills.push(o)})})}},{key:"afterRender",value:function(){var e=this;
2document.querySelectorAll(this.ui.jsPillBtn).forEach(function(t){t.addEventListener("click",e.onClickRemovePill.bind(e)),t.addEventListener("keypress",e.onClickRemovePill.bind(e))}),document.querySelectorAll(this.ui.jsPillsClear).forEach(function(t){t.addEventListener("click",e.onClickClearFilters.bind(e)),t.addEventListener("keypress",e.onClickClearFilters.bind(e))}),this.hubWindowResize(),window.addEventListener("resize",this.hubWindowResize.bind(this))}},{key:"hubWindowResize",value:function(){this.isDesktop=document.documentElement.clientWidth>=768}},{key:"onClickRemovePill",value:function(e){var t,r,o,n=this,i=e.currentTarget,a=Number(i.dataset.index)-1,s=i.dataset.uiValue||i.value,c=i.dataset.uiCategory;if(this.store.focusFirstResult=!1,"keypress"===e.type&&13!==e.keyCode)return!1;e.stopImmediatePropagation(),c.includes("searchText")?"searchText"===c?delete this.store.tempselectedFilters[c]:c.split("|").forEach(function(e){"searchText"===e?delete n.store.tempselectedFilters[e]:(s=s.split("|")).forEach(function(t){t.match(/optum.*:/g)&&(r=n.getFilterElemFromDom(e,t))&&r.click()})}):((r=this.getFilterElemFromDom(c,s))&&r.click(),null===(o=document.querySelector(this.ui.jsSubmitBtn))||void 0===o||o.click()),null===(t=document.querySelector(this.ui.jsSubmitBtn))||void 0===t||t.click();var l,u,d,p=this.isDesktop?".o5-hubs__desktoppills":".o5-hubs__mobilepills",h=this.isDesktop?".js-ui-b-filter-clear-btn":".uib-mobile-popover__close-btn",m=document.querySelector(p),f=m?m.querySelectorAll(".uie-pills__btn"):[];f.length>0?a>=0?null===(l=f[a])||void 0===l||l.focus():null===(u=document.querySelector(h))||void 0===u||u.focus():null===(d=document.querySelector(h))||void 0===d||d.focus()}},{key:"onClickClearFilters",value:function(e){var t,r;e.stopImmediatePropagation(),null===(t=document.querySelector(this.ui.jsClearBtn))||void 0===t||t.click(),this.isDesktop?setTimeout(function(){var e;null===(e=document.querySelector(".js-ui-b-filter-clear-btn"))||void 0===e||e.focus()},1e3):null===(r=document.querySelector(".uib-mobile-popover__close-btn"))||void 0===r||r.focus()}},{key:"getFilterElemFromDom",value:function(e,t){if("gender"!==e){var r=document.querySelector("#o5-hubs-sidepanel-region");return r?r.querySelector('.is--checked[data-ui-value="'.concat(t,'"]')):null}return document.querySelector(this.ui.jsRadio)}},{key:"serializeData",value:function(){return{ui:this.ui,componentName:this.uieName,pillHeading:"Filtered by:",pills:this.pills,totalPills:this.pills.length}}},{key:"template",value:function(e){var t=e.ui,r=e.componentName,o=e.pillHeading,n=e.pills,i=e.totalPills,a=1===i||i>1,s=[];return 0===i?"":(n.map(function(e,t){var r=!1;0===t?s.push(e):(s.map(function(t,o){if(t.title.toLowerCase()===e.title.toLowerCase()){var n=Object.keys(t);r=!0,n.forEach(function(r,o){t[r]="".concat(t[r],"|").concat(e[r])})}}),r||s.push(e))}),'<div class="'.concat(r,'-container" qa_handles="').concat(r,'-container"><p id="').concat(r,'-filteredby" class="').concat(r,'__headline dmp-type__body-3-bold" qa_handles="').concat(r,'__headline dmp-type__body-3-bold">').concat(o,'</p>\n <div class="dmp-row ').concat(r,'__row" qa_handles="dmp-row ').concat(r,'__row" aria-labelledby="').concat(r,'-filteredby" role="group">\n ').concat(s.map(function(e,o){return'<div class="dmp-col-auto" qa_handles="dmp-col-auto">\n <div class="'.concat(r,'__inner" qa_handles="').concat(r,'__inner">\n <button id="').concat(r,"-").concat(o,'" \n data-index="').concat(o,'"\n class="').concat(r,"__btn dmp-corner__5 ").concat(t.jsPillBtn,'" qa_handles="').concat(r,"__btn dmp-corner__5 ").concat(t.jsPillBtn,'"\n data-ui-category="').concat(e.category,'"\n data-ui-value="').concat(e.id,'"\n aria-label="').concat(e.title.includes("|")?e.title.split("|")[0]:e.title,' remove filter">\n\n\n ').concat(e.title.includes("|")?e.title.split("|")[0]:e.title,'\n\n <svg class="').concat(r,'__icon icon icon--cancel" qa_handles="').concat(r,'__icon" 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>\n </button>\n </div>\n </div>')}).join(""),"\n </div>\n ").concat(a?' <div class="'.concat(r,'__clear" qa_handles="').concat(r,'__clear">\n <button class="dmp-btn dmp-btn--sm dmp-btn--2 ').concat(t.jsPillsClear,'" qa_handles="dmp-btn dmp-btn--sm dmp-btn--2 ').concat(t.jsPillsClear,'">\n Clear filters\n </button>\n '):"","\n</div></div>"))}}],o&&x(r.prototype,o),n&&x(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(o.uA);function L(e){return L="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},L(e)}function R(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,H(o.key),o)}}function B(e,t,r){return t=I(t),function(e,t){if(t&&("object"==L(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,A()?Reflect.construct(t,r||[],I(e).constructor):t.apply(e,r))}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function H(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=L(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}const z=function(e){function t(e){var r,o,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=B(this,t,[e]),o=r,a="uie-card-grid",(n=H(n="uieName"))in o?Object.defineProperty(o,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[n]=a,r.componentName=e.componentName||r.uieName,r.ui={jsResultCard:".js-".concat(r.uieName,"-card")},r.init(),(0,i.A)(document).on("filter-results",function(e,t){var o=!Array.isArray(t)||t[0];r.render(),o&&setTimeout(function(){var e,t,o=document.querySelector(r.ui.jsResultCard),n=null!==(e=null==o?void 0:o.querySelector(".dmp-link-std"))&&void 0!==e?e:null;n||(n=null!==(t=null==o?void 0:o.querySelector(".address-link"))&&void 0!==t?t:null);if(n){var i=/iphone|ipad|ipod/i.test(navigator.userAgent),a=n.closest("#o5-hubs-region");i?a?(a.scrollIntoView({behavior:"smooth",block:"start"}),n.focus({preventScroll:!0})):n.focus():(n.focus(),a&&a.scrollIntoView({behavior:"smooth",block:"start"}))}},50)}),document.addEventListener("click",function(e){var t,o,n,i=e.target,a=null==i||null===(t=i.closest)||void 0===t?void 0:t.call(i,".dmp-link-std, .address-link");if(a&&a.closest(r.ui.jsResultCard)){var s=r.store.storeName;s&&sessionStorage.setItem("".concat(s,"-lastViewedCard"),JSON.stringify({id:null!==(o=a.id)&&void 0!==o?o:"",href:null!==(n=a.getAttribute("href"))&&void 0!==n?n:""}))}}),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&&D(e,t)}(t,e),r=t,(o=[{key:"restoreLastViewedCard",value:function(){var e,t,r=this.store.storeName;if(!r)return!1;var o,n=sessionStorage.getItem("".concat(r,"-lastViewedCard"));if(!n)return!1;try{o=JSON.parse(n)}catch(e){return!1}if(!(null!==(e=o)&&void 0!==e&&e.id||null!==(t=o)&&void 0!==t&&t.href))return!1;for(var i=document.querySelectorAll(this.ui.jsResultCard),a=null,s=0,c=Array.from(i);s<c.length;s++){var l=c[s].querySelector(".dmp-link-std, .address-link");if(l&&(o.id&&l.id===o.id||o.href&&l.getAttribute("href")===o.href)){a=l;break}}if(!a)return!1;var u=a.closest(this.ui.jsResultCard);return(null!=u?u:a).scrollIntoView({behavior:"smooth",block:"center"}),a.focus({preventScroll:!0}),!0}},{key:"serializeData",value:function(){var e=this.store.componentType,t=this.store.filteredResults;return 0!==t.length||this.store.filtering||(t=this.store.resultsCollection),this.store.filteredResults=t,this.store.numberOfPages=Math.ceil(t.length/this.store.resultsPerPage),0===this.store.numberOfPages?this.store.currPageNum=1:this.store.currPageNum>this.store.numberOfPages?this.store.currPageNum=this.store.numberOfPages:this.store.currPageNum<1&&(this.store.currPageNum=1),this.sortResults(this.store.selectedSorting),{ui:this.ui,hubType:e,collection:t,hasResults:t.length>0,hideFilter:this.store.hideFilter,ctaButton:this.store.ctaButton}}},{key:"afterRender",value:function(){var e={element:this.element,store:this.store};new E(Object.assign(e,{selector:"o5-pills"}))}},{key:"template",value:function(e){var t=this.store,r=t.filteredResults,o=t.currPageNum,n=t.resultsPerPage,i=this.store.parsedBody,a=i.componentType,s=i.hideFilter,c=i.ctaButton,l=i.enablePagePath,u=o,d=n,p="";if(o>1&&(u=(d=n*o)-n+1),r.length>0){var h;
2switch(a){case"insights-hub":h="insightsHubCardTemplate";break;case"solutions-hub":h="solutionsHubCardTemplate";break;case"forum-sessions-hub":h="forumHubCardTemplate";break;default:h="newsHubCardTemplate"}for(var m=u-1;m<d;m++){var f=r[m];if(void 0===f)break;p+=this[h](f,m,s,c,l)}}else p='<h2 class="o5-hubs__results dmp-type__heading-4" qa_handles="o5-hubs__results dmp-type__heading-4">No results were found.</h2>';return'<div class="o5-hubs__desktoppills" qa_handles="o5-hubs__desktoppills" data-optum-library-cmp="o5-pills"></div><div class="dmp-container-fluid" qa_handles="dmp-container-fluid">\n <ul class="o5-hubs__cards dmp-row" qa_handles="o5-hubs__cards dmp-row">'.concat(p,"</ul>\n </div>")}},{key:"sortResults",value:function(e){var t=this;if(void 0!==e){switch(e){case"az":case"za":var r="title",o="subtitle";this.store.filteredResults.sort(function(t,n){var i=null!==t[r]?t[r].toLowerCase():"",a=null!==n[r]?n[r].toLowerCase():"";return"az"===e?i<a?-1:i===a&&null!==t[o]?(i=null!==t[o]?t[o].toLowerCase().charAt(0):"")<(a=null!==n[o]?n[o].toLowerCase().charAt(0):"")?-1:i>a?1:0:1:a<i?-1:a===i&&null!==t[o]?(i=null!==t[o]?t[o].toLowerCase().charAt(0):"",(a=null!==n[o]?n[o].toLowerCase().charAt(0):"")<i?-1:a>i?1:0):1});break;default:this.store.filteredResults.sort(function(e,r){var o=e.articlepubdate,n=r.articlepubdate;return o=""===o?new Date("01/01/1960"):new Date(o),n=""===n?new Date("01/01/1960"):new Date(n),"asc"===t.store.defaultSortOrder?o-n:n-o})}this.store.sorting=!0,this.store.selectedSorting=e}}},{key:"sortResultsLastname",value:function(e){if(void 0!==e){var t="lastName";this.store.filteredResults.sort(function(r,o){var n=null!==r[t]?r[t].toLowerCase().trim():"",i=null!==o[t]?o[t].toLowerCase().trim():"";return null===r[t]&&"az"===e?n="aaaaaa":null===o[t]&&"az"===e?i="aaaaaa":(null===r[t]&&"za"===e||null===o[t]&&"za"===e)&&(i="zzzzzz"),"az"===e?n<i?-1:1:i<n?-1:1})}this.store.sorting=!0,this.store.selectedSorting=e}},{key:"checkValue",value:function(e,t,r,o){return o="undefined"!==o&&void 0!==o&&"null"!==o&&null!==o?" - ".concat(o):"","undefined"!==t&&void 0!==t&&"null"!==t&&null!==t?"".concat(e).concat(t).concat(o).concat(r):""}},{key:"buildCardImage",value:function(e,t,r){var o=e.imagePath,n=e.imageSrc,i=e.imageSrcset,a=e.imageWebpSrcset,s=n&&""!==n?n:o,c=a&&""!==a?'<source type="image/webp" srcset="'.concat(a,'" sizes="').concat(r,'">'):"",l=i&&""!==i?' srcset="'.concat(i,'" sizes="').concat(r,'"'):"";return"<picture>".concat(c,'<img class="').concat(t,'" qa_handles="').concat(t,'" src="').concat(s,'"').concat(l,' alt="" loading="lazy"></picture>')}},{key:"insightsHubCardTemplate",value:function(e,t,r,o,n){var i=e.title,a=e.subtitle,s=e.path,c=e.pagePath,l=e.eyebrowText,u="cardHeading_".concat(t),d="cardLink_".concat(t),p="";p=r&&this.store.hideSearch?'<li class="o5-mixed-row__card dmp-col-12 dmp-col-xl-4 dmp-col-xxl-3" qa_handles="o5-mixed-row__card dmp-col-12 dmp-col-xl-4 dmp-col-xxl-3">':'<li class="o5-mixed-row__card dmp-col-12 dmp-col-xl-6 dmp-col-xxl-4" qa_handles="o5-mixed-row__card dmp-col-12 dmp-col-xl-6 dmp-col-xxl-4">';var h=n?c:s;return"".concat(p,'\n <div class="o5-mixed-card-complex o5-mixed-card-complex__border ').concat(this.uieName,' js-uie-card-grid-card" qa_handles="o5-mixed-card-complex o5-mixed-card-complex__border ').concat(this.uieName,' js-uie-card-grid-card" tabindex="-1">\n <div class="o5-mixed-card-complex__crop-1" qa_handles="o5-mixed-card-complex__crop-1">\n ').concat(this.buildCardImage(e,"o5-mixed-card-complex__image-1","(max-width: 1047px
2) 100vw, 33vw"),'\n \n </div>\n <div class="o5-mixed-card-complex__background-1" qa_handles="o5-mixed-card-complex__background-1">\n ').concat(this.checkValue('<p class="o5-mixed-card-complex__eyebrow dmp-type__body-3-bold" qa_handles="o5-mixed-card-complex__eyebrow dmp-type__body-3-bold">',"".concat(l),"</p>"),"\n ").concat(this.checkValue('<h3 id="'.concat(u,'" class="o5-mixed-card-complex__heading2 dmp-type__body-1-bold dmp-type__heading-5" qa_handles="o5-mixed-card-complex__heading2 dmp-type__body-1-bold dmp-type__heading-5">'),"".concat(i),"</h3>"),"\n ").concat(this.checkValue('<p class="o5-mixed-card-complex__bodycopy dmp-type__body-2" qa_handles="o5-mixed-card-complex__bodycopy dmp-type__body-2">',"".concat(a),"</p>"),'\n </div>\n <div class="o5-mixed-card-complex__cta" qa_handles="o5-mixed-card-complex__cta">\n <div class="o5-mixed-card-complex__buttons-1" qa_handles="o5-mixed-card-complex__buttons-1">\n <a id="').concat(d,'" aria-labelledby="').concat(d," ").concat(u,'" href="').concat(h,'" class="address-link dmp-link-std" qa_handles="address-link dmp-link-std">\n ').concat(""!=o?o:"View details","\n </a>\n </div>\n </div>\n </div>\n </li>")}},{key:"solutionsHubEyebrowTemplate",value:function(e,t){if(null==e||""==="".concat(e).trim()||"undefined"==="".concat(e)||"null"==="".concat(e))return"";var r=null!=t&&""!=="".concat(t).trim()&&"undefined"!=="".concat(t)&&"null"!=="".concat(t)?'<img class="o5-simple-card-grouping__eyebrow-icon" qa_handles="o5-simple-card-grouping__eyebrow-icon" src="'.concat(t,'" alt="">'):"";return'<div class="o5-simple-card-grouping__eyebrow" qa_handles="o5-simple-card-grouping__eyebrow">\n '.concat(r,'\n <p class="o5-simple-card-grouping__eyebrow-text dmp-type__small-1-bold" qa_handles="o5-simple-card-grouping__eyebrow-text">').concat(e,"</p>\n </div>")}},{key:"solutionsHubCardTemplate",value:function(e,t,r,o,n){var i=e.title,a=e.subtitle,s=e.path,c=e.pagePath,l=e.articleType,u=e.articleTypeIconPath,d="cardHeading_".concat(t),p="cardLink_".concat(t),h="";h=r&&this.store.hideSearch?'<div class="o5-mixed-row__card dmp-col-12 dmp-col-xl-4 dmp-col-xxl-3" qa_handles="o5-mixed-row__card dmp-col-12 dmp-col-xl-4 dmp-col-xxl-3">':'<div class="o5-mixed-row__card dmp-col-12 dmp-col-xl-6 dmp-col-xxl-4" qa_handles="o5-mixed-row__card dmp-col-12 dmp-col-xl-6 dmp-col-xxl-4">';var m=n?c:s;return"".concat(h,'\n <div class="o5-simple-card-grouping__card js-uie-card-grid-card" qa_handles="o5-simple-card-grouping__card js-uie-card-grid-card" tabindex="-1"">\n ').concat(this.solutionsHubEyebrowTemplate(l,u),"\n ").concat(this.checkValue('<h3 id="'.concat(d,'" class="o5-simple-card-grouping__HeadingH3 o4-simple-card-grouping__HeadingH3 dmp-type__heading-5" qa_handles="o5-simple-card-grouping__HeadingH3 o4-simple-card-grouping__HeadingH3 dmp-type__heading-5">'),"".concat(i),"</h3>"),"\n\n ").concat(this.checkValue('<p class="o5-simple-card-grouping__bodycopy dmp-type__body-2" qa_handles="o5-simple-card-grouping__bodycopy dmp-type__body-2">',"".concat(a),"</p>"),' \n\t <div class="o5-simple-card-grouping__buttons" qa_handles="o5-simple-card-grouping__buttons">\n <a id="').concat(p,'" aria-labelledby="').concat(p," ").concat(d,'" href="').concat(m,'" class="address-link dmp-link-std" qa_handles="address-link dmp-link-std">').concat(""!=o?o:"View details","</a>\n\t </div>\n </div>\n </div>\n \n ")}},{key:"putelepsisforsubtitle",value:function(e){return e.length>75?e.substring(0,75)+" ...":e}},{key:"putelepsisforexpertise",value:function(e){return e.length>55?e.substring(0,55)+" ...":e}},{key:"getFormatedDate",value:function(e){var t=null;if(null!=e&&null!=e&&"undefined"!=e&&""!=e){var r=new Date("".concat(e));t=" ".concat(["January","February","March","April","May","June","July","August","September","October","November","December"][r.getMonth()]," ").concat(r.getDate(),", ").concat(r.getFullYear())}return t}},{key:"forumHubCardTemplate",value:function(e,t,r,o,n){var i=e.imagePath,a=e.title,s=e.subt
2itle,c=e.path,l=e.pagePath,u=(e.articlepubdate,e.displayTime),d=e.locationDetails,p=e.eventDates,h="cardHeading_".concat(t),m="cardLink_".concat(t),f="".concat(null!==p?p:""),b=n?l:c;return'<div class="dmp-col-12" qa_handles="dmp-col-12"> \n <div class="dmp-container-fluid" qa_handles="dmp-container-fluid"> \n <div class="o5-hubs__simplecard js-uie-card-grid-card" qa_handles="o5-hubs__simplecard js-uie-card-grid-card" tabindex="-1""> \n <div class="dmp-row" qa_handles="dmp-row"> \n '.concat(null!==i&&""!==i?'<div class="dmp-col-12 dmp-col-lg-7" qa_handles="dmp-col-12 dmp-col-lg-7"> \n <div class="o5-hubs__simplecard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3 o5-hubs__simplecard-text--variation2" qa_handles="o5-hubs__simplecard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3 o5-hubs__simplecard-text--variation2">':'<div class="dmp-col-12" qa_handles="dmp-col-12"> \n <div class="o5-hubs__simplecard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3" qa_handles="o5-hubs__simplecard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3">',"\n ").concat(this.checkValue('<p class="o5-hubs__simplecard-eyebrow dmp-margin__bottom-16 dmp-type__body-3-bold " qa_handles="o5-hubs__simplecard-eyebrow dmp-margin__bottom-16 dmp-type__body-3-bold ">',"".concat(f),"</p>","".concat(u)),"\n ").concat(this.checkValue('<h3 id="'.concat(h,'" class="o5-hubs__simplecard-headline dmp-margin__bottom-16 dmp-type__heading-6" qa_handles="o5-hubs__simplecard-headline dmp-margin__bottom-16 dmp-type__heading-6">'),"".concat(a),"</h3>"),"\n ").concat(this.checkValue('<p class="o5-hubs__simplecard-bodycopy dmp-type__body-2" qa_handles="o5-hubs__simplecard-bodycopy dmp-type__body-2">',"".concat(s),"</p>"),"\n ").concat(this.checkValue('<p class="o5-hubs__simplecard-locationdetails dmp-type__body-2 dmp-padding__top-16" qa_handles="o5-hubs__simplecard-locationdetails dmp-type__body-2 dmp-padding__top-16">',"".concat(d),"</p>"),'\n <div class="o5-hubs__simplecard-buttons" qa_handles="o5-hubs__simplecard-buttons">\n <a id="').concat(m,'" aria-labelledby="').concat(m," ").concat(h,'" href="').concat(b,'" class="address-link dmp-link-std" qa_handles="address-link dmp-link-std">').concat(""!=o?o:"View details","</a>\n </div>\n ").concat(null!==i&&""!==i?'</div> \n </div> \n <div class="dmp-col-12 dmp-col-lg-5 o5-hubs__simplecard--crop" qa_handles="dmp-col-12 dmp-col-lg-5 o5-hubs__simplecard--crop">\n '.concat(this.buildCardImage(e,"o5-hubs__simplecard--image","(max-width: 935px) 100vw, 40vw"),"\n </div>"):"</div> \n </div>"," \n </div> \n </div> \n </div> \n </div>")}},{key:"newsHubCardTemplate",value:function(e,t,r,o,n){var i=e.imagePath,a=e.title,s=e.subtitle,c=e.path,l=e.pagePath,u=e.articlepubdate,d="cardHeading_".concat(t),p="cardLink_".concat(t),h=this.getFormatedDate("".concat(null!==u?u:"")),m=n?l:c;return'<div class="dmp-col-12 " qa_handles="dmp-col-12 ">\n <div class="dmp-container-fluid" qa_handles="dmp-container-fluid">\n <div class="o5-hubs__newscard-wrapper dmp-corner__3 js-uie-card-grid-card" qa_handles="o5-hubs__newscard-wrapper dmp-corner__3 js-uie-card-grid-card" tabindex="-1"">\n <div class="dmp-row" qa_handles="dmp-row">\n '.concat(null!==i&&""!==i?'<div class="dmp-col-12 dmp-col-lg-7" qa_handles="dmp-col-12 dmp-col-lg-7">\n <div class="o5-hubs__newscard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3 o5-hubs__newscard-text--variation2" qa_handles="o5-hubs__newscard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3 o5-hubs__newscard-text--variation2">':'<div class="dmp-col-12" qa_handles="dmp-col-12">\n <div class="o5-hubs__newscard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3" qa_handles="o5-hubs__newscard-text dmp-padding__left-32 dmp-padding__right-32 dmp-corner__3">
2',"\n ").concat(this.checkValue('<p class="o5-hubs__newscard-text-eyebrow dmp-type__body-3-bold" qa_handles="o5-hubs__newscard-text-eyebrow dmp-type__body-3-bold">',"".concat(h),"</p>"),"\n ").concat(this.checkValue('<h3 id="'.concat(d,'" class="o5-hubs__newscard-text-headline dmp-type__heading-6" qa_handles="o5-hubs__newscard-text-headline dmp-type__heading-6">'),"".concat(a),"</h3>"),"\n ").concat(this.checkValue('<p class="o5-hubs__newscard-text-bodycopy dmp-type__body-1" qa_handles="o5-hubs__newscard-text-bodycopy dmp-type__body-1">',"".concat(s),"</p>"),'\n <div>\n <a id="').concat(p,'" aria-labelledby="').concat(p," ").concat(d,'" class="address-link dmp-link-std" qa_handles="address-link dmp-link-std" href="').concat(m,'">\n ').concat(""!=o?o:"View details","\n </a>\n </div>\n ").concat(null!==i&&""!==i?'</div>\n </div>\n <div class="dmp-col-12 dmp-col-lg-5 o5-hubs__newscard--crop" qa_handles="dmp-col-12 dmp-col-lg-5 o5-hubs__newscard--crop">\n '.concat(this.buildCardImage(e,"o5-hubs__newscard--image","(max-width: 935px) 100vw, 40vw"),"\n </div>"):"</div>\n </div>","\n </div>\n </div>\n </div>\n </div>")}}])&&R(r.prototype,o),n&&R(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(o.uA);var V=r(92359);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 M(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,G(o.key),o)}}function Z(e,t,r){return t=U(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,Q()?Reflect.construct(t,r||[],U(e).constructor):t.apply(e,r))}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Q=function(){return!!e})()}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}function G(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=J(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}const Y=function(e){function t(e){var r,o,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=Z(this,t,[e]),o=r,a="o5-hubs-m-header",(n=G(n="uieName"))in o?Object.defineProperty(o,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[n]=a,r.componentName=e.componentName||r.uieName,r.init(),r.render(),(0,i.A)(document).on("filter-results",r.render.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&&W(e,t)}(t,e),r=t,(o=[{key:"serializeData",value:function(){return{moduleName:this.uieName,headingDefault:this.store.parsedBody.componentType,headingAuthored:this.store.parsedBody.filterText,resultsCount:0!==this.store.filteredResults.length||0===this.store.filteredResults.length&&0!==Object.keys(this.store.selectedFilters).length?this.store.filteredResults.length:this.store.parsedBody.dataList.length,hideHeading:this.store.parsedBody.hideHeadline,hideResultCount:"solutions-hub"===this.store.parsedBody.componentType&&!0===this.store.parsedBody.hideResultCount}}},{key:"chooseHeading",value:function(e,t){if(""!==t.trim())return t.trim();switch(e){case"forum-sessions-hub":e="Events";break;case"insights-hub":e="Insights";break;case"solutions-hub":e="Solutions";break;default:e="News"}return e}},{key:"template",value:function(e){var t=this.chooseHeading(e.headingDefault,e.headingAuthored),r="";if(!e.hideHeading){var o=e.hideResultCount?"":" <span>(".concat(e.resultsCount,")</span>");r='\n <h2 class="'.concat(e.moduleName,'__heading dmp-type__heading-2 dmp-margin__bottom-32" qa_handles="').concat(e.moduleName,'__heading dmp-type__heading-2 dmp-margin__bottom-32">').concat(t).concat(o,"</h2>\n ")}return"\n ".concat(r,"\n ")}}])&&M(r.prototype,o),n&&M(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(o.uA);
2var K=r(14258),X=r(67206),ee=r(19952);function te(e){return te="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},te(e)}function re(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,se(o.key),o)}}function oe(e,t,r){return t=ie(t),function(e,t){if(t&&("object"==te(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,ne()?Reflect.construct(t,r||[],ie(e).constructor):t.apply(e,r))}function ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ne=function(){return!!e})()}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}function ae(e,t){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ae(e,t)}function se(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=te(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==te(t)?t:t+""}const ce=function(e){function t(e){var r,o,n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=oe(this,t,[e]),o=r,i="uie-sort",(n=se(n="uieName"))in o?Object.defineProperty(o,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[n]=i,r.componentName=e.componentName||r.uieName,r.ui={jsSelect:".js-".concat(r.uieName,"-select")},r.store.sorterData=[{value:"az",label:"Alpha A-Z"},{value:"za",label:"Alpha Z-A"},{value:"articlepubdateNew",label:"Newest"},{value:"articlepubdateOld",label:"Oldest"}],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&&ae(e,t)}(t,e),r=t,o=[{key:"afterRender",value:function(){var e=this,t=document.querySelector('[data-optum-cmp="o5-hubs-select"]'),r=new ee.A({element:this.element});r.parentSelector=t,r.start();var o=r.element,n=o.querySelector(".js-uib-customselect-option.is--selected"),i=o.querySelector(".js-uib-customselect-selected-value");n&&i&&(i.innerHTML=n.innerHTML.trim(),n.setAttribute("aria-selected","true")),document.querySelectorAll(this.ui.jsSelect).forEach(function(t){t.addEventListener("change",e.onChangeSort.bind(e))})}},{key:"onChangeSort",value:function(e){var t=e.currentTarget.value;"articlepubdateNew"===t?this.store.defaultSortOrder="desc":"articlepubdateOld"===t&&(this.store.defaultSortOrder="asc"),this.store.selectedSorting=t;var r="".concat(this.store.storeName,"-selectedSorting");sessionStorage.setItem(r,JSON.stringify(this.store.selectedSorting)),(0,i.A)(document).trigger("filter-results"),document.querySelectorAll(".uib-customselect__btn").forEach(function(e){return e.focus()})}},{key:"serializeData",value:function(){return{ui:this.ui,componentName:this.uieName,sortLabel:"Sort by:",sorterData:this.store.sorterData}}},{key:"template",value:function(e){var t=this,r=e.ui,o=e.componentName,n=e.sortLabel,i=e.sorterData;return'<div data-optum-cmp="o5-hubs-select" class="'.concat(o,' uie-sort__sortselect dmp-padding__bottom-32 dmp-padding__top-32" qa_handles="').concat(o,' uie-sort__sortselect dmp-padding__bottom-32 dmp-padding__top-32">\n <div class="').concat(o,'__select" qa_handles="').concat(o,'__select">\n <label id="').concat(o,'-select-label" for="uie-sort-select" class="uie-sort__label dmp-type__body-3 dmp-padding__right-16" qa_handles="uie-sort__label dmp-type__body-3 dmp-padding__right-16">').concat(n,'</label>\n <select label-id="').concat(o,'-select-label" id="').concat(o,'-select" class="').concat(r.jsSelect," ").concat(o,'__optionlist" qa_handles="').concat(r.jsSelect," ").concat(o,'__optionlist" data-uib-custom-select>\n ').concat(i.map(function(e){var r=e.value,o=e.label,n=t.store.selectedSorting===r;return'<option value="'.concat(r,'"').concat(n?" selected":"",">").concat(o,"</option>")}).join(""),"\n </select>\n </div>\n </div>")}}],o&&re(r.prototype,o),n&&re(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(o.uA);function le(e){return le="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},le(e)}function ue(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var c=o&&o.prototype instanceof s?o:s,l=Object.create(c.prototype);return de(l,"_invoke",function(r,o,n){var i,s,c,l=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function h(r,o){for(s=r,c=o,t=0;!d&&l&&!n&&t<u.length;t++){var n,i=u[t],h=p.p,m=i[2];r>3?(n=m===o)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,p.v=o,p.n=i[1]):h<m&&(n=r<3||i[0]>o||o>m)&&(i[4]=r,i[5]=o,p.n=m,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,m){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,m),s=u,c=m;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(p.n=-1),h(s,c)):p.n=c:p.v=c);try{if(l=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=p.n<0)?c:r.call(o,p))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,n,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(de(t={},o,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,de(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,de(d,"constructor",l),de(l,"constructor",c),c.displayName="GeneratorFunction",de(l,n,"GeneratorFunction"),de(d),de(d,n,"Generator"),de(d,o,function(){return this}),de(d,"toString",function(){return"[object Generator]"}),(ue=function(){return{w:i,m:p}})()}function de(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}de=function(e,t,r,o){function i(t,r){de(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},de(e,t,r,o)}function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach(function(t){ge(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function me(e,t,r,o,n,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(o,n)}function fe(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,we(o.key),o)}}function be(e,t,r){return t=ye(t),function(e,t){if(t&&("object"==le(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,_e()?Reflect.construct(t,r||[],ye(e).constructor):t.apply(e,r))}function _e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_e=function(){return!!e})()}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function ve(e,t){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ve(e,t)}function ge(e,t,r){return(t=we(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function we(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}var Se=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ge(r=be(this,t,[e]),"uieName","o5-hubs"),ge(r,"ui",{jsFilterBtn:".js-filter-btn",filterBtn:".js-".concat(r.uieName,"-filter-count")}),ge(r,"useSessionStoage",!1),r.store={results:[],filterTray:[],filteredResults:[],filtering:!1,resultsCollection:null,filtersCollection:null,selectedFilters:{},tempselectedFilters:{},currPageNum:1,resultsPerPage:24,defaultResultsPerPage:24,totalNumOfResults:0,categorizedItems:{},currentPathname:window.location.pathname,numOfPages:0,componentType:"",hideFilter:!1,filterGroupHeadline:"",hideSearch:!1,searchBarHint:"",ctaButton:"",defaultSortOrder:"",filterPathname:"",selectedSorting:"",sorterData:[],sorterDataExpert:[],focusFirstResult:!1,queryParameters:"",currQueryParam:null,storeName:""},void 0!==window.performance.getEntriesByType("navigation")&&window.performance.getEntriesByType("navigation").length>0){var o=window.performance.getEntriesByType("navigation")[0].type;r.useSessionStoage="back_forward"==o||"reload"==o}return 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&&ve(e,t)}(t,e),r=t,o=[{key:"setup",value:(s=ue().m(function e(){var t,r=this;return ue().w(function(e){for(;;)switch(e.n){case 0:this.store.storeName=window.location.pathname.replace(".html","").split("/").pop(),t=this.element.getAttribute("data-aem-authoring"),(0,K.Jt)(t).then(function(e){r.store=Object.assign(r.store,he(he({},e),{},{filteredResults:e.parsedBody.dataList})),r.init(),(0,i.A)(document).on("filter-results",r.updateFilterCount.bind(r,!0)),r.element.removeAttribute("data-aem-authoring")}).catch(function(e){r.shouldRender=!1,r.init(),console.error("Error"+e)});case 1:return e.a(2)}},e,this)}),c=function(){var e=this,t=arguments;return new Promise(function(r,o){var n=s.apply(e,t);function i(e){me(n,r,o,i,a,"next",e)}function a(e){me(n,r,o,i,a,"throw",e)}i(void 0)})},function(){return c.apply(this,arguments)})},{key:"beforeRender",value:function(){var e,t;this.store.queryParameters=(0,n.vA)();var r=Number(null===(e=this.store.parsedBody)||void 0===e?void 0:e.resultsPerPage);this.store.defaultResultsPerPage=Number.isFinite(r)&&r>0?r:24,this.store.resultsPerPage=this.store.defaultResultsPerPage,null!==sessionStorage.getItem("currQueryParam")&&"undefined"!==sessionStorage.getItem("currQueryParam")&&(this.store.currQueryParam=JSON.parse(sessionStorage.getItem("currQueryParam"))),null!==sessionStorage.getItem("selectedFilters")&&(this.store.selectedFilters=JSON.parse(sessionStorage.getItem("selectedFilters"))),null!==sessionStorage.getItem("tempselectedFilters")&&(this.store.tempselectedFilters=JSON.parse(sessionStorage.getItem("tempselectedFilters"))),this.useSessionStoage&&(null!==sessionStorage.getItem("".concat(this.store.storeName,"-currPageNum"))&&(this.store.currPageNum=JSON.parse(sessionStorage.getItem("".concat(this.store.storeName,"-currPageNum")))),null!==sessionStorage.getItem("".concat(this.store.storeName,"-resultsPerPage"))&&(this.store.resultsPerPage=JSON.parse(sessionStorage.getItem("".concat(this.store.storeName,"-resultsPerPage"))))),null!==sessionStorage.getItem("filterPathname")?this.store.filterPathname=JSON.parse(sessionStorage.getItem("filterPathname")):this.store.filterPathname="";var o="".concat(this.store.storeName,"-selectedSorting"),i=sessionStorage.getItem(o),a=null;if(null!==i)try{a=JSON.parse(i)}catch(e){a=null}var s,c,l="az"===a||"za"===a||"articlepubdateNew"===a||"articlepubdateOld"===a;l?(this.store.selectedSorting=a,"articlepubdateNew"===this.store.selectedSorting?this.store.defaultSortOrder="desc":"articlepubdateOld"===this.store.selectedSorting&&(this.store.defaultSortOrder="asc")):null!==i&&sessionStorage.removeItem(o),l||("alpha"===(null===(s=this.store.parsedBody)||void 0===s?void 0:s.datealpha)?"asc"===this.store.parsedBody.ascdes?this.store.selectedSorting="az":this.store.selectedSorting="za":"dec"===(null===(c=this.store.parsedBody)||void 0===c?void 0:c.ascdes)?(this.store.selectedSorting="articlepubdateNew",this.store.defaultSortOrder="desc"):(this.store.selectedSorting="articlepubdateOld",this.store.defaultSortOrder="asc")),this.store.queryParameters.selectedFilters!==this.store.currQueryParam&&"string"==typeof this.store.currQueryParam&&(this.store.selectedFilters={},sessionStorage.removeItem("currQueryParam")),(null===(t=this.store.parsedBody)||void 0===t||null===(t=t.dataList)||void 0===t?void 0:t.length)>0&&(this.store.resultsCollection=this.store.parsedBody.dataList,this.store.filtersCollection=this.pruneFiltersCollection(this.store.parsedBody.filterList),this.store.currentPathname!==this.store.filterPathname&&0!=this.store.filterPathname.length&&(this.store.selectedFilters={}))}},{key:"pruneFiltersCollection",value:function(e){var t=this,r=[];return e.forEach(function(e){for(var o=[],n=[],i=e.filter,a=e.title,s=function(){if(null!=i[c]){var e=i[c].id;o.some(function(t){return t.id===e})||(n.push(i[c]),o.push(i[c]))}},c=0,l=i.length;c<l;c++)s();t.store.categorizedItems[a]=n,r.push({title:a,filter:o})}),r}},{key:"afterRender",value:function(){var e,t,r={element:this.element,selector:"o5-filter-tray",store:this.store};null!==(e=this.store.parsedBody)&&void 0!==e&&e.hideFilter&&null!==(t=this.store.parsedBody)&&void 0!==t&&t.hideSearchbar||(new j(r),new X.A({ui:this.ui,element:this.element}),new E(Object.assign(r,{selector:"o5-pills"})));var o=new z(Object.assign(r,{selector:"o5-results"}));new V.A(Object.assign(r,{selector:"o5-pagination",componentName:"".concat(this.store.storeName),backFromDetailPage:this.useSessionStoage})),new Y(Object.assign(r,{selector:"o5-hubs-header-region"})),new ce(Object.assign(r,{selector:"o5-hubs-sort-region"})),this.useSessionStoage&&(this.useSessionStoage=!1,setTimeout(function(){o.restoreLastViewedCard()||(0,i.A)(document).trigger("filter-results")},150))}},{key:"updateFilterCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.store.selectedFilters,r=Object.keys(t).map(function(e){return t[e]}).flat().length;
2return e?(document.querySelectorAll(this.ui.filterBtn).forEach(function(e){e.textContent=String(r)}),!1):r}},{key:"serializeData",value:function(){return{moduleName:this.uieName,filterCount:this.updateFilterCount(),btnName:"Filter",popHeading:"Filter",closeBtnLabel:"Close",hideFilter:this.store.parsedBody.hideFilter,hideSearch:this.store.parsedBody.hideSearchbar,componentType:this.store.parsedBody.componentType,filterLength:this.store.filtersCollection.length}}},{key:"template",value:function(e){var t=e.moduleName,r=e.btnName,o=e.popHeading,n=e.closeBtnLabel,i=e.filterCount,a=e.cn,s=e.hideFilter,c=e.componentType,l=e.hideSearch,u=e.filterLength;return'\n <div class="dmp-row justify-content-end o5-hubs-header-region dmp-margin__bottom-32" qa_handles="dmp-row justify-content-end o5-hubs-header-region dmp-margin__bottom-32">\n <div class="dmp-col-12 dmp-col-lg-8 dmp-col-xxl-9" qa_handles="dmp-col-12 dmp-col-lg-8 dmp-col-xxl-9" aria-live="polite" aria-atomic="true">\n <div data-optum-library-cmp="o5-hubs-header-region"></div>\n </div>\n <div data-optum-library-cmp="o5-hubs-sort-region" class="o5-hubs-m-sort__sort dmp-col-12 dmp-col-lg-4 dmp-col-xxl-3" qa_handles="o5-hubs-m-sort__sort dmp-col-12 dmp-col-lg-4 dmp-col-xxl-3"></div>\n </div>\n <div class="dmp-row" qa_handles="dmp-row">\n '.concat(0==s||0==l?'<div id="o5-hubs-sidepanel-region" class="'.concat(a,'__sidepanel dmp-padding__bottom-32 dmp-col-12 dmp-col-lg-4 dmp-col-xxl-3" qa_handles="').concat(a,'__sidepanel dmp-padding__bottom-32 dmp-col-12 dmp-col-lg-4 dmp-col-xxl-3">\n <div class="uib-mobile-popover" qa_handles="uib-mobile-popover">\n ').concat(u>0?' <button id="filters-popover-btn"\n class="'.concat(t,'__popover-btn uib-mobile-popover__btn dmp-btn dmp-btn--md dmp-btn--2 is--inactive js-ui-b-mobile-popover-toggle"\n qa_handles="').concat(t,'__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=".uie-filter-tray__heading dmp-type__body-3-bold">\n ').concat(r,' (<span class="js-').concat(t,'-filter-count" qa_handles="js-').concat(t,'-filter-count">').concat(i,"</span>)\n </button>"):"",'\n <div role="dialog" id="filters-popover-content" \n class="uib-mobile-popover__content js-ui-b-mobile-popover-content" qa_handles="uib-mobile-popover__content js-ui-b-mobile-popover-content"\n aria-labelledby="search-heading"\n aria-modal="true">\n <div class="uib-mobile-popover__scroller" qa_handles="uib-mobile-popover__scroller">\n <div class="uib-mobile-popover__header dmp-type__body-3-bold dmp-padding__top-8 dmp-padding__bottom-24 row" qa_handles="uib-mobile-popover__header dmp-type__body-3-bold dmp-padding__top-8 dmp-padding__bottom-24 row">\n <div class="dmp-col-10" qa_handles="dmp-col-10">\n <h2 id="search-heading" class="dmp-type__heading-4" qa_handles="dmp-type__heading-4">\n ').concat(o,'\n </h2>\n </div>\n <div class="dmp-col-2 uib-mobile-popover__close" qa_handles="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 qa_handles="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" qa_handles="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>
2\n <span class="dmp-util-assist__text" qa_handles="dmp-util-assist__text">\n ').concat(n,'\n </span> \n </button>\n </div>\n </div>\n\n <div class="o5-hubs__mobilepills" qa_handles="o5-hubs__mobilepills" data-optum-library-cmp="o5-pills"></div>\n <div data-optum-library-cmp="o5-filter-tray"></div>\n </div>\n </div>\n </div>\n \n\n </div>'):"","\n ").concat(1!=s||1!=l||"forum-sessions-hub"!=c&&"news-hub"!=c?"".concat(1==s&&1==l?'<div class="dmp-col-12" qa_handles="dmp-col-12">':'<div class="dmp-col-12 dmp-col-lg-8 dmp-col-xxl-9" qa_handles="dmp-col-12 dmp-col-lg-8 dmp-col-xxl-9">'):'<div class="dmp-col-12 dmp-col-lg-8 dmp-col--offset-lg-2" qa_handles="dmp-col-12 dmp-col-lg-8 dmp-col--offset-lg-2">','\n <div data-optum-library-cmp="o5-results" qa_handles="o5-hubs-results"></div>\n ').concat(1==s&&1==l?'<div data-optum-library-cmp="o5-pagination" class="dmp-col-12" qa_handles="dmp-col-12"></div>':'<div data-optum-library-cmp="o5-pagination" class="dmp-col-12 dmp-col-lg-8 dmp-col--offset-lg-2 dmp-col--offset-xxl-2" qa_handles="dmp-col-12 dmp-col-lg-8 dmp-col--offset-lg-2 dmp-col--offset-xxl-2"></div>',"\n </div>\n </div>")}}],o&&fe(r.prototype,o),a&&fe(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,a,s,c}(o.uA);const ke=Se}}]);
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.