PageSourceSearch

https://www.mercer.com/etc.clientlibs/mercer-dotcom/clientlibs/cli…/resources/241-7904554c5307f44e3e48.js

js mercer.com collected 2026-10-09 21:31:24 UTC 3,412 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[241],{70241:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var o=n(91004),r=n(23763),s=n(99380),c=function(e,t,n,o){return new(n||(n=Promise))(function(r,s){function c(e){try{a(o.next(e))}catch(e){s(e)}}function l(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(c,l)}a((o=o.apply(e,t||[])).next())})};class l extends o.A{constructor(e){super(e),this.targetContent=".chart-switcher__content",this.select="select.chart-switcher__select",this.defaultXF="",this.loadDefaultFragment(e),this.onSelect(e)}resetFields(e,t){const n=e.querySelectorAll(this.select)||[],o=Array.from(n),r=t.value;for(const e of o)e.value="";t.value=r}onChange(e,t){const n=null==t?void 0:t.value;if(n){const o=null==t?void 0:t.querySelector(`option[value="${n}"]`),r=(null==o?void 0:o.dataset.fragment)||"";this.fetchXF(e,r)}else this.defaultXF&&this.fetchXF(e,this.defaultXF);this.resetFields(e,t)}onSelect(e){const t=e.querySelectorAll(this.select)||[],n=Array.from(t);for(const t of n)t.addEventListener("change",t=>t.target?this.onChange(e,t.target):void 0)}loadFirstDefault(e){const t=e.querySelectorAll(this.select)||[],n=Array.from(t);let o=null;for(const e of n){const t=e.querySelector("option[data-default]");if(t){e.value=t.value,o=t.dataset.fragment;break}}o&&(this.defaultXF=o,this.fetchXF(e,o))}cleanXF(e){var t;const n=null===(t=(new DOMParser).parseFromString(e,"text/html").querySelector(".xf-web-container"))||void 0===t?void 0:t.innerHTML;return null!=n?n:null}injectXFHTML(e,t){const n=e.querySelector(this.targetContent);if(n){const e=this.cleanXF(t);e&&(n.innerHTML=decodeURIComponent(encodeURIComponent(e)),this.executeScript(n))}}executeScript(e){e.querySelectorAll("script").forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)});const n=document.createTextNode(e.innerHTML);t.appendChild(n),e.parentNode&&e.parentNode.replaceChild(t,e)})}fetchXF(e,t){return c(this,void 0,void 0,function*(){try{const n=yield s.A.get(t);this.injectXFHTML(e,n.data)}catch(e){r.A.error(e)}})}loadDefaultFragment(e){const t=e.querySelector(this.targetContent),n=null==t?void 0:t.dataset.defaultxf;n?(this.defaultXF=n,this.fetchXF(e,n)):this.loadFirstDefault(e)}}},91004:function(e,t,n){n.d(t,{A:function(){return o}});class o{constructor(e){var t,n,o,r;this.$elements={},this.$cmp=e,this.elementName=(null===(t=this.$cmp)||void 0===t?void 0:t.dataset.cmpIs)?null===(o=null===(n=this.$cmp)||void 0===n?void 0:n.dataset)||void 0===o?void 0:o.cmpIs:"",this.elementDashName=null===(r=this.elementName)||void 0===r?void 0:r.split(/(?=[A-Z])/).join("-").toLowerCase(),this.protect(),this.$elements&&this.cacheElements()}protect(){this.$cmp&&this.$cmp.removeAttribute("data-cmp-is")}cacheElements(){var e;const t=null===(e=this.$cmp)||void 0===e?void 0:e.querySelectorAll(`[data-cmp-hook-${this.elementDashName}]`);(null==t?void 0:t.length)&&Array.from(t).forEach(e=>{var t,n;const r=`${null===(t=this.elementName)||void 0===t?void 0:t.charAt(0).toUpperCase()}${null===(n=this.elementName)||void 0===n?void 0:n.slice(1)}`;if(e instanceof HTMLElement){const t=e.dataset[`${o.CMP_HOOK}${r}`];t&&(this.$elements[t]=e)}})}}o.CMP_HOOK="cmpHook",o.CMP_HOOK_LIST="cmpHooklist"}}]);

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.