PageSourceSearch

https://www.genoahealthcare.com/etc.clientlibs/dmp/clientlibs/clie…/pricewise-hub.3eab9b32c547aafa0b46.js

js genoahealthcare.com collected 2026-09-28 06:54:30 UTC 60,366 bytes, 2 lines download raw bytes

1/*! For license information please see pricewise-hub.3eab9b32c547aafa0b46.js.LICENSE.txt */
2"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[5380],{41377(e,t,r){function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(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,f(n.key),n)}}function c(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(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,u()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,{default:()=>h});var p=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),d(r=c(this,t,[e]),"itemsPerPageOptions",[12,24,36]),d(r,"sortOptions",["name","savings"]),d(r,"allDrugs",[]),d(r,"filteredDrugs",[]),d(r,"filterState",{selectedConditions:new Set,sortBy:"name",currentPage:1,itemsPerPage:t.DEFAULT_ITEMS_PER_PAGE}),d(r,"drugGrid",null),d(r,"paginationInfo",null),d(r,"filterChipsContainer",null),d(r,"sortSelect",null),d(r,"itemsPerPageSelect",null),console.error("*** PRICEWISE HUB COMPONENT INITIALIZED ***"),r.initializeElements(),r.initializeData(),r.attachEventListeners(),r.applyFiltersAndRender(),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&&s(e,t)}(t,e),r=t,n=[{key:"initializeElements",value:function(){this.drugGrid=this.element.querySelector('[data-qahandle="drug-grid"]'),this.paginationInfo=this.element.querySelector('[data-qahandle="pagination-info"]'),this.filterChipsContainer=this.element.querySelector(".o5-pricewise-hub__filter-chips"),this.sortSelect=this.element.querySelector('[data-qahandle="sort-select"]'),this.itemsPerPageSelect=this.element.querySelector('[data-qahandle="items-per-page-select"]')}},{key:"initializeData",value:function(){var e=this,t=this.element.getAttribute("data-prop-model");if(console.error("*** initializeData: modelJson attribute exists:",!!t),t)try{var r=JSON.parse(t);this.allDrugs=r.drugs||[],console.error("*** Successfully parsed model, drugs count:",this.allDrugs.length)}catch(e){console.error("*** FAILED to parse model data:",e)}else console.error("*** NO data-prop-model attribute found on component");this.allDrugs=this.allDrugs.map(function(t){return i(i({},t),{},{seoUrl:e.buildSeoUrl(t)})}),console.error("*** Final drugs array after SEO mapping:",this.allDrugs.length,"drugs")}},{key:"attachEventListeners",value:function(){var e=this;this.element.querySelectorAll(".o5-pricewise-hub__filter-checkbox").forEach(function(t){t.addEventListener("change",function(t){return e.handleFilterChange(t)})}),this.element.querySelectorAll(".o5-pricewise-hub__sort-option").forEach(function(t){t.addEventListener("click",function(t){return e.handleSortChange(t)})});var t=this.element.querySelector(".o5-pricewise-hub__clear-filters");t&&t.addEventListener("click",function(){return e.clearAllFilters()});var r=this.element.querySelector(".o5-pricewise-hub__active-clear-filters");r&&r.addEventListener("click",function(){return e.clearAllFilters()});var n=this.element.querySelector('[data-qahandle="pagination-prev"]'),o=this.element.querySelector('[data-qahandle="pagination-next"]');n&&n.addEventListener("click",function(){return e.previousPage()}),o&&o.addEventListener("click",function(){return e.nextPage()}),this.element.querySelectorAll(".o5-pricewise-hub__items-option").forEach(function(t){t.addEventListener("click",function(t){return e.handleItemsPerPageChange(t)})}),this.element.querySelectorAll(".o5-pricewise-hub__filter-group").forEach(function(t){t.addEventListener("click",function(t){return e.toggleFilterGroup(t)})}),this.element.querySelectorAll(".o5-pricewise-hub__drug-action").forEach(function(t){t.addEventListener("click",function(t){return e.handleDrugAction(t)})})}},{key:"handleFilterChange",value:function(e){var t=e.target,r=t.getAttribute("data-condition-id");r&&(t.checked?this.filterState.selectedConditions.add(r):this.filterState.selectedConditions.delete(r),this.filterState.currentPage=1,this.applyFiltersAnd
2Render())}},{key:"handleSortChange",value:function(e){var t=e.target,r=t.getAttribute("data-value");if(r&&this.sortOptions.includes(r)){if(this.filterState.sortBy=r,this.element.querySelectorAll(".o5-pricewise-hub__sort-option").forEach(function(e){e.classList.remove("o5-pricewise-hub__sort-option--selected"),e.setAttribute("aria-selected","false")}),t.classList.add("o5-pricewise-hub__sort-option--selected"),t.setAttribute("aria-selected","true"),this.sortSelect){var n=this.sortSelect.querySelector(".o5-pricewise-hub__sort-btn-label");n&&(n.textContent="name"===r?"A-Z":"Highest Savings")}this.filterState.currentPage=1,this.applyFiltersAndRender()}}},{key:"handleItemsPerPageChange",value:function(e){var t=e.target,r=parseInt(t.getAttribute("data-value")||"24",10);if(this.itemsPerPageOptions.includes(r)){if(this.filterState.itemsPerPage=r,this.element.querySelectorAll(".o5-pricewise-hub__items-option").forEach(function(e){e.classList.remove("o5-pricewise-hub__items-option--selected"),e.setAttribute("aria-selected","false")}),t.classList.add("o5-pricewise-hub__items-option--selected"),t.setAttribute("aria-selected","true"),this.itemsPerPageSelect){var n=this.itemsPerPageSelect.querySelector(".o5-pricewise-hub__items-btn-label");n&&(n.textContent=r.toString())}this.filterState.currentPage=1,this.applyFiltersAndRender()}}},{key:"toggleFilterGroup",value:function(e){var t=e.currentTarget,r=null==t?void 0:t.querySelector(".o5-pricewise-hub__filter-group-title");if(r){r.scrollIntoView({block:"center",inline:"nearest"});var n="true"===r.getAttribute("aria-expanded"),o=r.getAttribute("aria-controls");if(r.setAttribute("aria-expanded",String(!n)),o){var i=this.element.getElementById(o);i&&(i.style.display=n?"none":"block")}}}},{key:"handleDrugAction",value:function(e){var t=e.target.closest(".o5-pricewise-hub__drug-card");if(t){var r=t.getAttribute("data-drug-id"),n=this.allDrugs.find(function(e){return e.id===r});n&&n.seoUrl&&(window.location.href=n.seoUrl)}}},{key:"applyFiltersAndRender",value:function(){var e=this;console.error("*** applyFiltersAndRender called - allDrugs count:",this.allDrugs.length),this.filteredDrugs=this.allDrugs.filter(function(t){return 0===e.filterState.selectedConditions.size||t.conditions.some(function(t){return e.filterState.selectedConditions.has(t)})}),this.sortDrugs(),console.error("*** After filtering/sorting - filteredDrugs count:",this.filteredDrugs.length),this.renderFilterChips(),this.renderDrugsGrid(),this.updatePaginationInfo(),this.updateResultsCount()}},{key:"sortDrugs",value:function(){var e=this;"name"===this.filterState.sortBy?this.filteredDrugs.sort(function(e,t){return e.name.localeCompare(t.name)}):"savings"===this.filterState.sortBy&&this.filteredDrugs.sort(function(t,r){var n=e.parseSavingsAmount(t.savings);return e.parseSavingsAmount(r.savings)-n})}},{key:"parseSavingsAmount",value:function(e){var t=e.match(/\d+\.?\d*/);return t?parseFloat(t[0]):0}},{key:"renderFilterChips",value:function(){var e=this;this.filterChipsContainer&&(this.filterChipsContainer.innerHTML="",this.filterState.selectedConditions.forEach(function(t){var r=e.getConditionName(t),n=document.createElement("div");n.className="o5-pricewise-hub__filter-chip",n.innerHTML="\n                <span>".concat(r,'</span>\n                <button class="o5-pricewise-hub__chip-remove" data-condition-id="').concat(t,'" aria-label="Remove ').concat(r,' filter">\n                    ×\n                </button>\n            ');var o=n.querySelector(".o5-pricewise-hub__chip-remove");o&&o.addEventListener("click",function(r){r.preventDefault(),e.filterState.selectedConditions.delete(t);var n=e.element.querySelector('.o5-pricewise-hub__filter-checkbox[data-condition-id="'.concat(t,'"]'));n&&(n.checked=!1),e.filterState.currentPage=1,e.applyFiltersAndRender()}),e.filterChipsContainer&&e.filterChipsContainer.appendChild(n)}))}},{key:"renderDrugsGrid",value:function(){var e=this;if(this.drugGrid){var t=(this.filterState.currentPage-1)*this.filterState.itemsPerPage,r=t+this.filterState.itemsPerPage,n=this.filteredDrugs.slice(t,r);
2this.drugGrid.innerHTML="",n.forEach(function(t){var r=document.createElement("div");r.className="o5-pricewise-hub__drug-card",r.setAttribute("data-drug-id",t.id),r.setAttribute("data-drug-name",t.name),t.seoSlug&&r.setAttribute("data-drug-seo-slug",t.seoSlug),r.setAttribute("data-qahandle","drug-card-".concat(t.id));var n=t.conditions.map(function(t){return'<span class="o5-pricewise-hub__condition-tag" data-qahandle="condition-tag-'.concat(t,'">').concat(e.getConditionName(t),"</span>")}).join("");r.innerHTML='\n                <div class="o5-pricewise-hub__drug-info">\n                    <div class="o5-pricewise-hub__drug-header">\n                        <h3 class="o5-pricewise-hub__drug-name">'.concat(e.escapeHtml(t.name),'</h3>\n                        <p class="o5-pricewise-hub__drug-brand">Generic for ').concat(e.escapeHtml(t.brandName),'</p>\n                    </div>\n                    <div class="o5-pricewise-hub__drug-conditions">\n                        ').concat(n,'\n                    </div>\n                </div>\n                <button class="o5-pricewise-hub__drug-action" aria-label="View details for ').concat(e.escapeHtml(t.name),'" data-qahandle="drug-action-').concat(t.id,'">\n                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true">\n                        <path d="M9.43 6.42L15.98 12.0L9.43 17.58" stroke="#3D3C38" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n                    </svg>\n                </button>\n            ');var o=r.querySelector(".o5-pricewise-hub__drug-action");o&&o.addEventListener("click",function(t){return e.handleDrugAction(t)}),e.drugGrid&&e.drugGrid.appendChild(r)})}}},{key:"updatePaginationInfo",value:function(){if(this.paginationInfo){var e=Math.ceil(this.filteredDrugs.length/this.filterState.itemsPerPage),t="Page ".concat(this.filterState.currentPage," of ").concat(e);this.paginationInfo.textContent=t;var r=this.element.querySelector('[data-qahandle="pagination-prev"]'),n=this.element.querySelector('[data-qahandle="pagination-next"]');r&&(r.disabled=1===this.filterState.currentPage),n&&(n.disabled=this.filterState.currentPage===e)}}},{key:"updateResultsCount",value:function(){var e=this.element.querySelector("[data-drug-count]");e&&(e.setAttribute("data-drug-count",this.filteredDrugs.length.toString()),e.textContent="Showing ".concat(this.filteredDrugs.length," drugs"))}},{key:"previousPage",value:function(){this.filterState.currentPage>1&&(this.filterState.currentPage--,this.renderDrugsGrid(),this.updatePaginationInfo(),this.scrollToGrid())}},{key:"nextPage",value:function(){var e=Math.ceil(this.filteredDrugs.length/this.filterState.itemsPerPage);this.filterState.currentPage<e&&(this.filterState.currentPage++,this.renderDrugsGrid(),this.updatePaginationInfo(),this.scrollToGrid())}},{key:"scrollToGrid",value:function(){this.drugGrid&&this.drugGrid.scrollIntoView({behavior:"smooth",block:"start"})}},{key:"clearAllFilters",value:function(){this.filterState.selectedConditions.clear(),this.filterState.currentPage=1,this.element.querySelectorAll(".o5-pricewise-hub__filter-checkbox").forEach(function(e){e.checked=!1}),this.applyFiltersAndRender()}},{key:"buildSeoUrl",value:function(e){var t=(e.seoSlug||"").trim();if(t)return t.startsWith("/drugs/")?t:"/drugs/".concat(t.replace(/^\/+/,""));var r=e.name.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");return"/drugs/".concat(encodeURIComponent(r),".html")}},{key:"getConditionName",value:function(e){return{bp:"Blood Pressure",cholesterol:"Cholesterol",heart:"Heart Failure",diabetes:"Diabetes",thyroid:"Thyroid Disorder",arthritis:"Arthritis"}[e]||e}},{key:"getConditionSlug",value:function(e){return this.getConditionName(e).toLowerCase().replace(/\s+/g,"-")}},{key:"escapeHtml",value:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML}}],n&&a(r.prototype,n),o&&a(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(r(77963).o6);d(p,"ITEMS_PER_PAGE_OPTIONS",[12,24,36]),d(p,"DEFAULT_ITEMS_PER_PAGE",24),d(p,"SORT_OPTIONS",["name","savings"]);const h=480==r.j?p:null},20294(e,t,r){function n(e){return n="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},n(e)}function o(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,a(n.key),n)}}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{A:()=>d});var c,u,l,s=480==r.j?(c=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"ui",void 0),i(this,"element",void 0),i(this,"modifiers",void 0),i(this,"behaviorName",void 0),this.behaviorName=t.behaviorName||this.behaviorName,this.element=t.element,this.modifiers={active:"is--active",selected:"is-selected",collapsed:"is--collapsed"}},(u=[{key:"setHandlers",value:function(){return null}},{key:"start",value:function(e){this.ui=e||this.ui,this.setHandlers()}}])&&o(c.prototype,u),l&&o(c,l),Object.defineProperty(c,"prototype",{writable:!1}),c):null;const d=480==r.j?s:null},8184(e,t,r){function n(e){return n="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},n(e)}function o(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,a(n.key),n)}}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{A:()=>d});var c,u,l,s=480==r.j?(c=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"ui",void 0),i(this,"store",void 0),i(this,"element",void 0),i(this,"uieName",void 0),i(this,"selector",void 0),i(this,"attrName",void 0),i(this,"componentName",void 0);var r=t.selector;if(this.store=t.store,this.element=t.element,this.attrName=t.attrName||"data-optum-library-cmp",this.componentName=t.componentName,r&&this.element){var n=this.element.querySelector('[data-optum-library-cmp="'.concat(r,'"]'));n&&(this.element=n)}},(u=[{key:"init",value:function(){this.element&&this.element.removeAttribute(this.attrName)}}])&&o(c.prototype,u),l&&o(c,l),Object.defineProperty(c,"prototype",{writable:!1}),c):null;const d=480==r.j?s:null},77963(e,t,r){r.d(t,{nS:()=>v.A,uA:()=>y,o6:()=>n.A,fe:()=>j});var n=r(8184),o=r(17777);function i(e){return i="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},i(e)}function a(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var a=n&&n.prototype instanceof l?n:l,s=Object.create(a.prototype);return c(s,"_invoke",function(r,n,o){var i,a,c,l=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,c=e,f.n=r,u}};function p(r,n){for(a=r,c=n,t=0;!d&&l&&!o&&t<s.length;t++){var o,i=s[t],p=f.p,h=i[2];r>
23?(o=h===n)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,a=0))}if(o||r>1)return u;throw d=!0,n}return function(o,s,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,h),a=s,c=h;(t=a<2?e:c)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,c)):f.n=c:f.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=f.n<0)?c:r.call(n,f))!==u)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),s}var u={};function l(){}function s(){}function d(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(c(t={},n,function(){return this}),t),p=d.prototype=l.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=d,c(p,"constructor",d),c(d,"constructor",s),s.displayName="GeneratorFunction",c(d,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,n,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:h}})()}function c(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,r,n){function i(t,r){c(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},c(e,t,r,n)}function u(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function l(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,m(n.key),n)}}function s(e,t,r){return t=f(t),function(e,t){if(t&&("object"==i(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,d()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var b=/^\.+(js)?-/,g=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=s(this,t,[e]),"renderType",void 0),h(r,"shouldRender",void 0),h(r,"hasRendered",void 0),r.hasRendered=!1,r.element?r.shouldRender=!0:r.shouldRender=!1,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&&p(e,t)}(t,e),r=t,n=[{key:"init",value:(c=a().m(function e(){return a().w(function(e){for(;;)switch(e.n){case 0:if(this.element){e.n=1;break}return e.a(2);case 1:this.element.removeAttribute(this.attrName),this.componentName&&this.element.classList.add(this.componentName),this.render();case 2:return e.a(2)}},e,this)}),d=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=c.apply(e,t);function i(e){u(o,r,n,i,a,"next",e)}function a(e){u(o,r,n,i,a,"throw",e)}i(void 0)})},function(){return d.apply(this,arguments)})},{key:"destroy",value:function(){if(!this.hasRendered)return null;var e=this.element.cloneNode(!1);this.element.replaceChildren(),this.element.replaceWith(e),this.element=e,this.hasRendered=!1}},{key:"beforeRender",value:function(){return null}},{key:"serializeData",value:function(){return null}},{key:"render",value:function(){if(this.destroy(),this.beforeRender(),!this.shouldRender)return null;var e=this.serializeData();e=Object.assign({},e,{ui:this.modifyUIForTemplating(this.ui),cn:this.componentName}),this.determineRenderType(e),this.afterRender(),this.hasRendered=!0}},{key:"modifyUIForTemplating",value:function(e){var t={};if(e&&0===Object.keys(e).length)return t;for(var r in this.ui){var n=this.ui[r];b.test(n)&&(t[r]=n.slice(1))}return t}},{key:"determineRenderType",value:function(e){var t=this.template(e),r=o.default.sanitize(t,{ADD_ATTR:["qa_handles","qa-handles"]});
2switch(this.renderType){case"prepend":this.element.insertAdjacentHTML("afterBegin",r);break;case"append":this.element.insertAdjacentHTML("beforeend",r);break;default:this.element.innerHTML=r}}},{key:"afterRender",value:function(){return null}},{key:"template",value:function(e){return e}}],n&&l(r.prototype,n),i&&l(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i,c,d}(n.A);const y=g;var v=r(20294),w=r(99750);function S(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,l=Object.create(u.prototype);return A(l,"_invoke",function(r,n,o){var i,c,u,l=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,c=0,u=e,f.n=r,a}};function p(r,n){for(c=r,u=n,t=0;!d&&l&&!o&&t<s.length;t++){var o,i=s[t],p=f.p,h=i[2];r>3?(o=h===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(c=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,c=0))}if(o||r>1)return a;throw d=!0,n}return function(o,s,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,h),c=s,u=h;(t=c<2?e:u)||!d;){i||(c?c<3?(c>1&&(f.n=-1),p(c,u)):f.n=u:f.v=u);try{if(l=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(d=f.n<0)?u:r.call(n,f))!==a)break}catch(t){i=e,c=1,u=t}finally{l=1}}return{value:t,done:d}}}(r,o,i),!0),l}var a={};function c(){}function u(){}function l(){}t=Object.getPrototypeOf;var s=[][n]?t(t([][n]())):(A(t={},n,function(){return this}),t),d=l.prototype=c.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,A(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=l,A(d,"constructor",l),A(l,"constructor",u),u.displayName="GeneratorFunction",A(l,o,"GeneratorFunction"),A(d),A(d,o,"Generator"),A(d,n,function(){return this}),A(d,"toString",function(){return"[object Generator]"}),(S=function(){return{w:i,m:f}})()}function A(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}A=function(e,t,r,n){function i(t,r){A(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},A(e,t,r,n)}function k(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){k(i,n,o,a,c,"next",e)}function c(e){k(i,n,o,a,c,"throw",e)}a(void 0)})}}function P(e,t,r){return new MutationObserver(function(n){n.forEach(function(n){var o=[].slice.call(n.addedNodes);o.length>0&&o.every(function(n){return!n.querySelectorAll||([].slice.call(n.querySelectorAll(e)).forEac
2h(function(n){new t({element:n,attrName:(0,w.ct)(e),componentName:r})}),!1)})})})}function q(e){return C.apply(this,arguments)}function C(){return C=_(S().m(function e(t){var r,n,o,i,a,c,u;return S().w(function(e){for(;;)switch(e.n){case 0:for(r=t.component,n=t.componentName,o='[data-optum-cmp="'.concat(n,'"]'),i=document.querySelectorAll(o),a=0,c=i.length;a<c;a++)new r({element:i[a],attrName:(0,w.ct)(o),componentName:n});u=document.querySelector("body"),P(o,r,n).observe(u,{subtree:!0,childList:!0,characterData:!0});case 1:return e.a(2)}},e)})),C.apply(this,arguments)}function E(e){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",q.bind(null,e)):q(e)}function O(){return O=_(S().m(function e(t){var r,n,o,i;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,r=t.component,e.n=1,r();case 1:return n=e.v,e.n=2,n.default;case 2:if(o=e.v){e.n=3;break}o=n;case 3:t.component=o,E(t),e.n=5;break;case 4:e.p=4,i=e.v,console.error(i);case 5:return e.a(2)}},e,null,[[0,4]])})),O.apply(this,arguments)}function j(e){var t=e.componentName,r=e.isDynamic,n=null!==document.querySelector('[data-optum-cmp="'.concat(t,'"]'));r&&n?function(e){O.apply(this,arguments)}(e):E(e)}},99750(e,t,r){function n(e){return n="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},n(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(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}r.d(t,{Ds:()=>d,FB:()=>p,Yk:()=>g,Yq:()=>m,ZS:()=>v,_q:()=>f,ct:()=>c,ix:()=>S,lF:()=>b,n:()=>y,oG:()=>w,pu:()=>u,vA:()=>s});var a={hasNumber:/^[0-9]+$/,hasBoolean:/^[true|false]+$/};function c(e){var t=/(\w.*?)=/.exec(e);if(null!==t)return t[1]}function u(){document.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");t&&(t.includes(".pdf")&&e.setAttribute("target","_self"),t.includes("://")&&!t.includes(document.location.hostname)&&e.setAttribute("target","_self"))})}function l(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0,o=e.length;n<o;n++){var i=e[n].split("=");if(2===i.length){var a=i[0],c=decodeURIComponent(i[1]).replace(/\+/g," ");/^[a-zA-Z0-9_]+$/.test(a)&&(t[a]=r?f(c):c)}}}function s(){var e,t=window.location.search.substring(1),r={};return void 0!==t&&""!==t&&(e=t.split(/&(?=[a-z])/g),("localhost"===window.location.hostname||"localhost"!==window.location.hostname&&""!==t)&&l(e,r),r)}function d(){var e=new Uint32Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1);return window.crypto.getRandomValues(e),1===e.length?e[0]:e}function f(e){var t=e;return a.hasNumber.test(e)&&(t=parseInt(e)),a.hasBoolean.test(e)&&(t=JSON.parse(e)),t}function p(e){var t=null;switch(e.toUpperCase()){case"AL":t="Alabama";break;case"AK":t="Alaska";break;case"AZ":t="Arizona";break;case"AR":t="Arkansas";break;case"CA":t="California";break;case"CO":t="Colorado";break;case"CT":t="Connecticut";break;case"DE":t="Delaware";break;case"FL":t="Florida";break;case"GA":t="Georgia";break;case"HI":t="Hawaii";break;case"ID":t="Idaho";break;case"IL":t="Illinois";break;case"IN":t="Indiana";break;case"IA":t="Iowa";break;case"KS":t="Kansas";break;case"KY":t="Kentucky";break;case"LA":t="Louisiana";break;case"ME":t="Maine";break;case"MD":t="Maryland";break;case"MA":t="Massachusetts";break;case"MI":t="Michigan";break;case"MN":t="Minnesota";break;case"MS":t="Mississippi";break;case"MO":t="Missouri";break;case"MT":t="Montana";break;case"NE":t="Nebraska";break;case"NV":t="Nevada";break;case"NH":t="New Hampshire";break;case"NJ":t="New Jersey";break;case"NM":t="New Mexico";break;case"NY":t="New York";break;case"NC":t="North Carolina";break;case"ND":t="North Dakota";break;case"OH":t="Ohio";break;case"OK":t="Oklahoma";break;case"OR":t="Oregon";break;case"PA":t="Pennsylvania";break;case"RI":t="Rhode Island";break;case"SC":t="South Carolina";break;case"SD":t="South Dakota";break;case"TN":t="Tennessee";break;case"TX":t="Texas";break;case"UT":t="Utah";break;case"VT":t="Vermont";break;case"VA":t="Virginia";break;case"WA":t="Washington";break;case"WV":t="West Virginia";break;case"WI":t="Wisconsin";break;case"WY":t="Wyoming";break;case"AS":t="American Samoa";break;case"DC":t="District of Columbia";break;case"GU":t="Guam";break;case"MP":t="Northern Mariana Islands";break;case"PR":t="Puerto Rico";break;case"VI":t="Virgin Islands"}return t}
2function h(e){if("click"==e.type||"keydown"==e.type&&(13===e.keyCode||32===e.keyCode)){e.preventDefault();window.location.href;var t,r,n,o=document.createElement("input"),i=e.currentTarget;t=i.offsetLeft,n=(r=window.innerWidth-(t+8))-158,o.setAttribute("value",window.location.href),document.body.appendChild(o),o.select(),document.execCommand("copy"),i.insertAdjacentHTML("beforeend",'<span  style="opacity:0;" class="text-component__tooltip" id="custom-tooltip"><span aria-live="polite" id="shareTooltip" class="text-component__tooltip__text"><svg class="icon icon--link" aria-hidden="true" width="18" height="18" viewBox="0 -960 960 960" fill="currentColor"><path d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"/></svg>copied</span></span>');var a=i.getElementsByTagName("span")[0];a.style.cssText="opacity:1; justify-content:center;transition: opacity .5s ease-in-out;",r<182&&(a.style.left=n+"px"),a.setAttribute("aria-hidden","false"),i.setAttribute("aria-describedby","shareTooltip"),i.focus(),document.body.removeChild(o);e.currentTarget;setTimeout(function(){a.style.cssText="opacity:0;",a.remove(),a.setAttribute("aria-hidden","true"),a.setAttribute("aria-describedby","")},3e3)}}function m(e){var t,r,o,i,a,c,u,l,s,d,f,p,h,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(m||(m="mm/dd/yyyy"),c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"],l=(e=e&&"string"==typeof e||e&&"object"===n(e)?new Date(e):new Date).getHours(),s=e.getMinutes(),d=m,f="",l>=12?(l=l>12?l-12:l,f="PM"):(l=0===l?12:l,f="AM"),t=e.getMonth()+1,i=c[e.getDay()],r=(a=u[e.getMonth()]).slice(0,3),o=i.slice(0,3),h=e.toTimeString().match(/[A-Z]/g),Array.isArray(h)){if(h.length>3){var b=h.length;h=h.slice(b-3,b)}h=h.join("")}return 1===t.toString().length&&(t="0"+t),s<10&&(s="0"+s),p={mm:t,mmm:r,MMM:r.toUpperCase(),month:a,dd:e.getDate(),ddd:o,DDD:o.toUpperCase(),day:i,yyyy:e.getFullYear(),h:l,m:s,a:f,zzz:h},m.match(/\w+[a-zA-Z]?/g).forEach(function(e){""!==e&&(d=d.replace(e,p[e]))}),d}function b(e){var t,r=/[,_/'&%-]/g;return"encode"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"decode")?t={_:"%5F","/":"%2F","'":"%27","-":"%2D",",":"%2C","&":"%26","%":"%25"}:(r=/\%2C|\%20|\%5F|\%2F|\%7C|\%27|\%25|\%26|\%2D/g,t={"%2D":"-","%5F":"_","%20":" ","%2F":"/","%27":"'","%2C":",","%26":"&","%7C":"|","%25":"%"}),e.replace(r,function(e){return t[e]})}function g(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e]}function y(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=window.location.origin,r=function(e){for(var t=window.location.search.substring(1).split("&"),r=0;r<t.length;r++){var n=t[r].split("=");if(n[0]==e)return n[1]}return"false"}("devmode");return!(!(t.indexOf("dev-")||t.indexOf("test-")||t.indexOf("localhost"))||"true"!==r||e)||!(!e||"true"!==r)}function v(e){var t={};return e&&Object.keys(e).length>0&&Object.keys(e).forEach(function(r){t[r]=e[r].slice(1)}),t}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800,t=document.documentElement.scrollTop||document.body.scrollTop,r=performance.now();requestAnimationFrame(function n(o){var i=o-r,a=Math.min(i/e,1),c=.5*(1-Math.cos(Math.PI*a)),u=t*(1-c);document.documentElement.scrollTop=u,document.body.scrollTop=u,a<1&&requestAnimationFrame(n)})}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.querySelector(".qr-badge")||e.querySelector(".qr-badge-light");if(t&&function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"matches";if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){var r=window.navigator.userAgent,n=/Macintosh/i.test(r)&&navigator.maxTouchPoints>1;return/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i.test(r)||n}return window.matchMedia(e)[t]}()){var r,n,o=document.createElement("a"),i=document.createElement("img"),a={googlePlay:{badgeImg
2:"".concat(window.location.origin,"/content/dam/optum5/badges/badge-google-play.svg"),badgeImgLight:"".concat(window.location.origin,"/content/dam/optum5/badges/get-it-on-google-play-badge-white.svg"),altText:"Get it on Google Play",urls:{default:"https://play.google.com/store/apps",optumBank:"https://play.google.com/store/apps/details?id=com.optum.mobile.OptumBank&hl=en_US",optumRx:"https://play.google.com/store/apps/details?id=com.optum.rx",hbpV1:"https://play.google.com/store/apps/details?id=com.solutran.otc&pcampaignid=web_share",hbpV2:"https://play.google.com/store/apps/details?id=com.uhg.ace"}},appStore:{badgeImg:"".concat(window.location.origin,"/content/dam/optum5/badges/download-on-app-store-badge-us-uk-rgb-black.svg"),badgeImgLight:"".concat(window.location.origin,"/content/dam/optum5/badges/download-on-app-store-badge-us-uk-rgb-white.svg"),altText:"Download on the App Store",urls:{default:"https://apps.apple.com/",optumBank:"https://apps.apple.com/us/app/optum-bank/id1322690077",optumRx:"https://apps.apple.com/us/app/optumrx/id941641944",hbpV1:"https://apps.apple.com/us/app/healthy-benefits-plus/id1442107413",hbpV2:"https://apps.apple.com/us/app/healthy-benefits/id6670488991"}}},c=t.classList.contains("qr-badge-light"),u=t.classList.contains("optumbank"),l=t.classList.contains("optumrx"),s=t.classList.contains("hbpv1"),d=t.classList.contains("hbpv2");if(/Android/i.test(window.navigator.userAgent))c?(i.src=a.googlePlay.badgeImgLight,o.className="qr-badge-light__downloadAppBtn",i.className="qr-badge-light__badge-img"):(i.src=a.googlePlay.badgeImg,o.className="qr-badge__downloadAppBtn",i.className="qr-badge__badge-img"),i.alt=a.googlePlay.altText,o.href=a.googlePlay.urls.default,l&&(o.href=a.googlePlay.urls.optumRx),s&&(o.href=a.googlePlay.urls.hbpV1),d&&(o.href=a.googlePlay.urls.hbpV2),u&&(o.href=a.googlePlay.urls.optumBank);else{if(r=window.navigator.userAgent,n=/Macintosh/i.test(r)&&navigator.maxTouchPoints>1,!/iPhone|iPad|iPod/i.test(r)&&!n)return;c?(i.src=a.appStore.badgeImgLight,o.className="qr-badge-light__downloadAppBtn",i.className="qr-badge-light__badge-img"):(i.src=a.appStore.badgeImg,o.className="qr-badge__downloadAppBtn",i.className="qr-badge__badge-img"),i.alt=a.appStore.altText,o.href=a.appStore.urls.default,u&&(o.href=a.appStore.urls.optumBank),l&&(o.href=a.appStore.urls.optumRx),s&&(o.href=a.appStore.urls.hbpV1),d&&(o.href=a.appStore.urls.hbpV2)}o.target="_self",o.rel="noopener noreferrer",o.appendChild(i),t.replaceWith(o)}}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".jsShareCopy").forEach(function(e){e.setAttribute("role","button"),e.setAttribute("tabindex","0")}),document.addEventListener("click",function(e){var t=e.target;t.closest(".text-component__socialIcon")&&function(e){var t=e.target.parentElement;"click"!=e.type&&("keydown"!=e.type||13!==e.keyCode&&32!==e.keyCode)||t.classList.contains("jsShareCopy")||(t.getAttribute("href").indexOf("facebook")>-1&&t.setAttribute("href",encodeURI("http://facebook.com/sharer.php?u="+window.location.href)),t.getAttribute("href").indexOf("twitter")>-1&&t.setAttribute("href",encodeURI("http://twitter.com/share?url="+window.location.href)),t.getAttribute("href").indexOf("linkedin")>-1&&t.setAttribute("href",encodeURI("http://www.linkedin.com/cws/share?url="+window.location.href)),t.getAttribute("href").indexOf("pinterest")>-1&&t.setAttribute("href",encodeURI("https://pinterest.com/pin/create/button/?url="+window.location.href)),t.getAttribute("href").indexOf("mailto")>-1&&t.setAttribute("href",encodeURI("mailto:?subject=I wanted you to see this site&body=Check out this site:"+window.location.href)))}(e),t.closest(".jsShareCopy")&&h(e)}),document.addEventListener("keydown",function(e){e.target.closest(".jsShareCopy")&&h(e)}),document.querySelectorAll(".text-component.text-inner p .dmp-btn--md,.text-component.text-inner p .dmp-btn--lg,.text-component.text-inner p .dmp-btn--sm").forEach(function(e){"P"==e.parentElement.tagName&&e.parentElement.classList.add("text-component__buttonSpace")}),function(){var e=window.location.href.indexOf("?");if(e>0){window.location.href.substring(e+1).split("&").forEach(function(e){var t=o(e.split("="),2),r=t[0],n=t[1];r&&n&&["utm_campaign","utm_medium","utm_term","utm_content","utm_source","utm_referrer","utm_sfgocampaignid","cid"].includes(r)&&sessionStorage.setItem(r,n)})}document.querySelectorAll("a").forEach(function(e){var t=e.getAttribute("href");if(t){var r=["utm_campaign","utm_medium","utm_term","utm_content","utm_source","utm_referrer","utm_sfgocampaignid","cid","CID"].filter(function(e){return new URLSearchParams(window.location.search).has(e)}).map(function(e){var t=sessionStorage.getItem(e);return t?"".concat(e,"=").concat(t):null}
2).filter(Boolean).join("&");r&&(t=t.includes("?")?"".concat(t,"&").concat(r):"".concat(t,"?").concat(r),e.setAttribute("href",t))}})}()})},19271(e,t,r){r.r(t),r.d(t,{default:()=>f});var n=r(44914);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 i(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}function d(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 f(){var e=l((0,n.useState)({selectedConditions:[],sortBy:"name-asc",itemsPerPage:24,currentPage:1}),2),t=e[0],r=e[1],o=l((0,n.useState)({}),2),a=(o[0],o[1]),s=(0,n.useRef)(void 0),d=(0,n.useRef)(null),f=(0,n.useRef)("none"),p=(0,n.useRef)(null),h=(0,n.useRef)(!1),m=(0,n.useRef)(!1),b=(0,n.useRef)(!1),g=(0,n.useCallback)(function(e){var t=document.querySelector('[data-qahandle="filter-status"]');t&&(t.textContent="",requestAnimationFrame(function(){t.textContent=e}))},[]),y=(0,n.useCallback)(function(e){var t=document.querySelector('[data-qahandle="results-status"]');t&&(t.textContent="",requestAnimationFrame(function(){t.textContent=e}))},[]),v=(0,n.useCallback)(function(e){e&&requestAnimationFrame(function(){e.scrollIntoView({block:"center",inline:"nearest"})})},[]),w=(0,n.useCallback)(function(e){if(!e)return!1;if(e.hasAttribute("disabled"))return!1;if(e.hidden||"true"===e.getAttribute("aria-hidden"))return!1;var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&e.tabIndex>=0},[]),S=(0,n.useCallback)(function(){var e=["a[href]","button","input","select","textarea",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(document.querySelectorAll(e)).filter(function(e){return e instanceof HTMLElement}).filter(function(e){return w(e)})},[w]),A=(0,n.useCallback)(function(e){if(!e)return null;var t=S(),r=t.indexOf(e);return r>0?t[r-1]:null},[S]),k=(0,n.useCallback)(function(e){for(var t=A(e);t&&t.closest(".o5-pricewise-hub__active-filters");)t=A(t);return t},[A]),_=(0,n.useCallback)(function(){var e=document.querySelectorAll("[data-drug-id]"),t=[];return e.forEach(function(e){var r,n,o=e.getAttribute("data-drug-id"),i=e.querySelector(".o5-pricewise-hub__drug-name"),a=(null==i||null===(r=i.textContent)||void 0===r?void 0:r.trim())||""||e.getAttribute("data-drug-name"),c=e.querySelector(".o5-pricewise-hub__drug-brand"),u=(null==c||null===(n=c.textContent)||void 0===n?void 0:n.replace("Generic for ",""))||"",l=e.querySelectorAll(".o5-pricewise-hub__condition-tag"),s=Array.from(l).map(function(e){return e.getAttribute("data-condition-id")}
2).filter(Boolean),d=e.getAttribute("data-drug-seo-slug")||void 0;o&&a&&t.push({id:o,name:a,brandName:u,conditions:s,savings:"",seoSlug:d})}),t},[]),P=(0,n.useCallback)(function(){var e=_(),r=e;return t.selectedConditions.length>0&&(r=e.filter(function(e){return e.conditions.some(function(e){return t.selectedConditions.includes(e)})})),"name-asc"===t.sortBy?r.sort(function(e,t){return e.name.localeCompare(t.name)}):"name-desc"===t.sortBy&&r.sort(function(e,t){return t.name.localeCompare(e.name)}),r},[t.selectedConditions,t.sortBy,_])(),q=Math.ceil(P.length/t.itemsPerPage),C=P.slice((t.currentPage-1)*t.itemsPerPage,t.currentPage*t.itemsPerPage);(0,n.useLayoutEffect)(function(){var e=document.querySelector('[data-qahandle="drug-grid"]');if(e){var t=e.querySelectorAll("[data-drug-id]"),r=new Set(C.map(function(e){return e.id})),n=new Map;t.forEach(function(e){var t=e.getAttribute("data-drug-id");t&&n.set(t,e)}),t.forEach(function(e){var t=e.getAttribute("data-drug-id");e.style.display=t&&r.has(t)?"":"none"}),C.forEach(function(t){var r=n.get(t.id);r&&e.appendChild(r)});var o=document.querySelector("[data-drug-count]");o&&(o.textContent="Showing ".concat(P.length," drugs"));var i=document.querySelector('[data-qahandle="no-results-message"]');if(i&&(0===P.length?i.removeAttribute("hidden"):i.setAttribute("hidden","")),h.current){h.current=!1;var a=e.querySelector('[data-drug-id]:not([style*="display: none"]) .o5-pricewise-hub__drug-link'),c=document.querySelector('[data-qahandle="results-count-heading"]');requestAnimationFrame(function(){if(a)return a.focus(),void a.scrollIntoView({block:"nearest",inline:"nearest"});c&&(c.focus(),c.scrollIntoView({block:"nearest",inline:"nearest"}))})}}},[C,P.length]);var E=function(e){r(function(t){return c(c({},t),{},{selectedConditions:t.selectedConditions.includes(e)?t.selectedConditions.filter(function(t){return t!==e}):[].concat(i(t.selectedConditions),[e]),currentPage:1})})},O=function(e){var r=t.selectedConditions,n=r.indexOf(e),o=null,i=null,a=Array.from(document.querySelectorAll(".o5-pricewise-hub__chip")).find(function(t){return t.getAttribute("data-condition-id")===e})||document.activeElement;n>=0&&(n-1>=0?o=r[n-1]:i=A(a)),s.current=o,d.current=i,E(e)},j=function(){var e=_().length;r(function(e){return c(c({},e),{},{selectedConditions:[],currentPage:1})}),g("All filters cleared. Showing ".concat(e," drugs."))},T=function(e){f.current="keep-source",p.current=e.currentTarget,j()},x=function(e){var t=e.currentTarget;f.current="previous-focusable",p.current=k(t),j()},D=function(e){h.current=!0,r(function(t){return c(c({},t),{},{currentPage:Math.max(1,Math.min(e,q))})}),window.scrollTo({top:0,behavior:"smooth"})};return(0,n.useEffect)(function(){var e=[],t=function(t,r,n){t&&(t.addEventListener(r,n),e.push(function(){return t.removeEventListener(r,n)}))};document.querySelectorAll("[data-condition-id]").forEach(function(e){var r=e.getAttribute("data-condition-id");if(r){t(e,"change",function(){E(r)})}}),document.querySelectorAll(".o5-pricewise-hub__filter-group").forEach(function(e){var r=e.querySelector('[data-category][data-qahandle*="filter-category"]');if(r){var n=r.getAttribute("data-category"),o=r.getAttribute("aria-controls");if(o){var i=document.getElementById(o),l="true"===r.getAttribute("aria-expanded");i&&(l?i.removeAttribute("hidden"):i.setAttribute("hidden",""))}if(n){t(e,"click",function(){return function(e){var t=e.getAttribute("data-category");t&&(v(e),a(function(r){var n=!(Object.prototype.hasOwnProperty.call(r,t)?r[t]:"true"===e.getAttribute("aria-expanded")),o=c(c({},r),{},u({},t,n));e.setAttribute("aria-expanded",String(n));var i=e.getAttribute("aria-controls")||"",a=i?document.getElementById(i):null;return a&&(n?a.removeAttribute("hidden"):a.setAttribute("hidden","")),o}))}(r)})}}}),document.querySelectorAll("[data-condition-id]").forEach(function(e){t(e,"focus",function(){var t=e.closest(".o5-pricewise-hub__filter-item");v(t||e)})});var n=document.querySelector('[data-qahandle="clear-filters-btn"]');n&&t(n,"click",T);var o=document.querySelector('[data-qahandle="sort-select"]'),i=document.querySelector(".o5-pricewise-hub__sort
2-options");if(o&&i){var l=o.closest(".o5-pricewise-hub__sort-dropdown"),s=function(){i.classList.remove("is-open"),i.setAttribute("hidden",""),o.setAttribute("aria-expanded","false")},d=function(e){var t,n,a=e.getAttribute("data-value");n=a,r(function(e){return c(c({},e),{},{sortBy:n})});var u=e.getAttribute("data-label")||(null===(t=e.textContent)||void 0===t?void 0:t.trim())||"";o.querySelector(".o5-pricewise-hub__sort-btn-label").textContent=u,i.querySelectorAll(".o5-pricewise-hub__sort-option").forEach(function(t){t.classList.toggle("o5-pricewise-hub__sort-option--selected",t===e),t.setAttribute("aria-selected",String(t===e)),t.setAttribute("tabindex",t===e?"0":"-1")}),s(),o.focus()};t(o,"click",function(){if(i.classList.contains("is-open"))s();else{i.classList.add("is-open"),i.removeAttribute("hidden"),o.setAttribute("aria-expanded","true");var e=i.querySelector('.o5-pricewise-hub__sort-option[aria-selected="true"]')||i.querySelector("[data-value]");e&&setTimeout(function(){return e.focus()},0)}});t(o,"keydown",function(e){var t=e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),i.classList.contains("is-open")||(i.classList.add("is-open"),i.removeAttribute("hidden"),o.setAttribute("aria-expanded","true"));var r=i.querySelector('.o5-pricewise-hub__sort-option[aria-selected="true"]'),n=Array.from(i.querySelectorAll("[data-value]")),a=n[0]||null,c=n[n.length-1]||null,u="ArrowUp"===t.key?c||r||a:r||a;u&&setTimeout(function(){return u.focus()},0)}else"Tab"===t.key?s():"Escape"===t.key&&(s(),o.focus())}),i.querySelectorAll("[data-value]").forEach(function(e,r){t(e,"click",function(){return d(e)}),t(e,"keydown",function(t){var n=t,a=Array.from(i.querySelectorAll("[data-value]"));if("ArrowDown"===n.key)n.preventDefault(),a[Math.min(r+1,a.length-1)].focus();else if("ArrowUp"===n.key){n.preventDefault(),a[Math.max(r-1,0)].focus()}else if("Enter"===n.key||" "===n.key)n.preventDefault(),d(e);else if("Home"===n.key){var c;n.preventDefault(),null===(c=a[0])||void 0===c||c.focus()}else if("End"===n.key){var u;n.preventDefault(),null===(u=a[a.length-1])||void 0===u||u.focus()}else"Tab"===n.key?s():"Escape"===n.key&&(n.preventDefault(),s(),o.focus())})});t(l,"focusout",function(e){var t=e.relatedTarget;t&&l&&l.contains(t)||s()});t(document,"click",function(e){var t;null!==(t=o.closest(".o5-pricewise-hub__sort-dropdown"))&&void 0!==t&&t.contains(e.target)||s()})}var f=document.querySelector('[data-qahandle="items-per-page-select"]'),p=document.querySelector(".o5-pricewise-hub__items-options");if(f&&p){var m=f.closest(".o5-pricewise-hub__items-dropdown"),b=function(){p.classList.remove("is-open"),p.setAttribute("hidden",""),f.setAttribute("aria-expanded","false")},g=function(e){var t,n,o=parseInt(e.getAttribute("data-value"),10);n=o,h.current=!0,r(function(e){return c(c({},e),{},{itemsPerPage:n,currentPage:1})});var i=e.getAttribute("data-label")||(null===(t=e.textContent)||void 0===t?void 0:t.trim())||"";f.querySelector(".o5-pricewise-hub__items-btn-label").textContent=i,p.querySelectorAll(".o5-pricewise-hub__items-option").forEach(function(t){t.classList.toggle("o5-pricewise-hub__items-option--selected",t===e),t.setAttribute("aria-selected",String(t===e)),t.setAttribute("tabindex",t===e?"0":"-1")}),b(),f.focus()};t(f,"click",function(){if(p.classList.contains("is-open"))b();else{p.classList.add("is-open"),p.removeAttribute("hidden"),f.setAttribute("aria-expanded","true");var e=p.querySelector('.o5-pricewise-hub__items-option[aria-selected="true"]')||p.querySelector("[data-value]");e&&setTimeout(function(){return e.focus()},0)}});t(f,"keydown",function(e){var t=e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),p.classList.contains("is-open")||(p.classList.add("is-open"),p.removeAttribute("hidden"),f.setAttribute("aria-expanded","true"));var r=p.querySelector('.o5-pricewise-hub__items-option[aria-selected="true"]'),n=Array.from(p.querySelectorAll("[data-value]")),o=n[0]||null,i=n[n.length-1]||null,a="ArrowUp"===t.key?i||r||o:r||o;a&&setTimeout(function(){return a.focus()},0)}
2else"Tab"===t.key?b():"Escape"===t.key&&(b(),f.focus())}),p.querySelectorAll("[data-value]").forEach(function(e,r){t(e,"click",function(){return g(e)}),t(e,"keydown",function(t){var n=t,o=Array.from(p.querySelectorAll("[data-value]"));if("ArrowDown"===n.key)n.preventDefault(),o[Math.min(r+1,o.length-1)].focus();else if("ArrowUp"===n.key){n.preventDefault(),o[Math.max(r-1,0)].focus()}else if("Enter"===n.key||" "===n.key)n.preventDefault(),g(e);else if("Home"===n.key){var i;n.preventDefault(),null===(i=o[0])||void 0===i||i.focus()}else if("End"===n.key){var a;n.preventDefault(),null===(a=o[o.length-1])||void 0===a||a.focus()}else"Tab"===n.key?b():"Escape"===n.key&&(n.preventDefault(),b(),f.focus())})});t(m,"focusout",function(e){var t=e.relatedTarget;t&&m&&m.contains(t)||b()});t(document,"click",function(e){var t;null!==(t=f.closest(".o5-pricewise-hub__items-dropdown"))&&void 0!==t&&t.contains(e.target)||b()})}var y=document.querySelector('[data-qahandle="active-clear-filters-btn"]');return y&&t(y,"click",x),document.querySelectorAll("[data-drug-id]").forEach(function(e){var r=e.getAttribute("data-drug-id"),n=e.getAttribute("data-drug-name");if(r&&n){var o=_().find(function(e){return e.id===r}),i=e.querySelector(".o5-pricewise-hub__drug-link");if(i){t(i,"click",function(e){e.preventDefault(),function(e,t,r){var n=e.trim();if(/^[a-zA-Z0-9_-]+$/.test(n)){var o=function(e){var n=null==r||null===(e=r.seoSlug)||void 0===e?void 0:e.trim();if(!n){var o=t.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");return"/drugs/".concat(encodeURIComponent(o),".html")}return n.startsWith("/drugs/")?n:"/drugs/".concat(n.replace(/^\/+/,""))}();if(r)try{sessionStorage.setItem("drug_".concat(n),JSON.stringify(r)),sessionStorage.setItem("lastViewedDrugId",n)}catch(e){}window.location.href=o}}(r,n,o)})}}}),function(){e.forEach(function(e){return e()})}},[]),(0,n.useEffect)(function(){var e=document.querySelector('[data-qahandle="pagination-prev"]');if(e){var r,n=e.cloneNode(!0);null===(r=e.parentNode)||void 0===r||r.replaceChild(n,e),n.addEventListener("click",function(){return D(t.currentPage-1)})}var o=document.querySelector('[data-qahandle="pagination-next"]');if(o){var i,a=o.cloneNode(!0);null===(i=o.parentNode)||void 0===i||i.replaceChild(a,o),a.addEventListener("click",function(){return D(t.currentPage+1)})}},[t.currentPage]),(0,n.useEffect)(function(){document.querySelectorAll("[data-condition-id]").forEach(function(e){var r=e.getAttribute("data-condition-id");r&&(e.checked=t.selectedConditions.includes(r))});var e=document.querySelector(".o5-pricewise-hub__filter-chips");if(e){e.innerHTML="";var r=_(),n={};if(r.forEach(function(e){e.conditions.forEach(function(e){if(!n[e]){var t=Array.from(document.querySelectorAll("[data-condition-id]")).find(function(t){return t.getAttribute("data-condition-id")===e});t&&(n[e]=t.textContent||e)}})}),t.selectedConditions.forEach(function(t){var r=document.createElement("li");r.className="o5-pricewise-hub__chip-item";var o=document.createElement("button");o.type="button",o.className="o5-pricewise-hub__chip",o.setAttribute("data-condition-id",t);var i=document.createElement("span");i.className="o5-pricewise-hub__chip-label",i.textContent=n[t]||t,o.appendChild(i);var a=document.createElement("span");a.className="o5-pricewise-hub__sr-only",a.textContent=" remove filter",o.appendChild(a);var c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("class","o5-pricewise-hub__chip-remove"),c.setAttribute("aria-hidden","true"),c.setAttribute("focusable","false"),c.setAttribute("viewBox","0 0 16 16"),c.setAttribute("width","16"),c.setAttribute("height","16");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d","M4.22 4.22a.75.75 0 0 1 1.06 0L8 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06L9.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L8 9.06l-2.72 2.72a.75.75 0 1 1-1.06-1.06L6.94 8 4.22 5.28a.75.75 0 0 1 0-1.06Z"),u.setAttribute("fill","currentColor"),c.appendChild(u),o.appendChild(c),o.addEventListener("click",function(){O(t)}),o.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),O(t))}),r.appendChild(o),e.appendChild(r)}),void 0!==s.current){var o=s.current,i=d.current;s.current=void 0,d.current=null,setTimeout(function(){return function(e,t){if(e){var r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),n=document.querySelector('.o5-pricewise-hub__chip[data-condition-id="'.concat(r,'"]'));if(n)return void n.focus();var o=document.querySelector(".o5-pricewise-hub__chip");if(o)return void o.focus()}if(t&&w(t))return t.focus(),void v(t);var i=document.querySelector('[data-qahandle="active-clear-filters-btn"]');if(i&&i.classList.contains("is-visible"))i.focus();else{var a=document.querySelector('[data-qahandle="clear-filters-btn"]');a&&a.focus()}}(o,i)},0)}}var a=document.querySelector('[data-qahandle="active-clear-filters-btn"]');a&&a.classList.toggle("is-visible",t.selectedConditions.length>0);var c=document.querySelector(".o5-pricewise-hub__active-filters");if(c&&(t.selectedConditions.length>0?c.removeAttribute("hidden"):c.setAttribute("hidden","")),"none"!==f.current){var u=f.current,l=p.current;f.current="none",p.current=null,setTimeout(function(){if("keep-source"===u&&w(l))return l.focus(),void v(l);
2if("previous-focusable"===u&&w(l))return l.focus(),void v(l);var e=document.querySelector('[data-qahandle="clear-filters-btn"]');w(e)&&(e.focus(),v(e))},0)}if(m.current){if(t.selectedConditions.length>0){var h=t.selectedConditions.length;g("".concat(h," filter").concat(1===h?"":"s"," applied. Showing ").concat(P.length," drugs."))}}else m.current=!0},[t.selectedConditions,P.length,g,_]),(0,n.useEffect)(function(){b.current?0===P.length?y("No results. Try clearing a filter."):y("Showing ".concat(P.length," drugs.")):b.current=!0},[P.length,y]),(0,n.useEffect)(function(){var e=document.querySelector('[data-qahandle="pagination-info"]');e&&(e.textContent="Page ".concat(t.currentPage," of ").concat(q));var r=document.querySelector('[data-qahandle="pagination-prev"]');r&&(r.disabled=t.currentPage<=1);var n=document.querySelector('[data-qahandle="pagination-next"]');n&&(n.disabled=t.currentPage>=q)},[t.currentPage,q]),null}}}]);

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.