@utahdts/utah-design-system-header 0.9.2 β 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/style.css +1 -1
- package/dist/utah-design-system-header.es.js +706 -673
- package/dist/utah-design-system-header.umd.js +47 -42
- package/package.json +5 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(H,Ce){typeof exports=="object"&&typeof module<"u"?Ce(exports):typeof define=="function"&&define.amd?define(["exports"],Ce):(H=typeof globalThis<"u"?globalThis:H||self,Ce(H["@utahdts/utah-design-system-header"]={}))})(this,function(H){"use strict";const Ce="",V={FLYOUT:"flyout",INLINE:"inline",MEGA_MENU:"mega-menu"},ze={HEADER_LOADED:"utahHeaderLoaded",HEADER_UNLOADED:"utahHeaderUnloaded"},ue={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"},mn=`/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
|
|
2
2
|
|
|
3
3
|
@media screen and (max-width: media-size__tablet-landscape__PLACEHOLDER) {
|
|
4
4
|
/* put your media query here for tablet landscape */
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
@media screen and (max-width: media-size__mobile__PLACEHOLDER) {
|
|
69
69
|
/* put your media query here for mobile */
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`,En=`<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
|
|
72
72
|
<div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
|
|
73
73
|
<div class="utds-header-mobile-menu__wrapper">
|
|
74
74
|
<div class="utds-header-mobile-menu__action-bar" role="tablist">
|
|
@@ -100,25 +100,25 @@
|
|
|
100
100
|
</div>
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
103
|
-
`;function p(e){return`.${(Array.isArray(e)?e:[e]).join(".")}`}const a={UTAH_DESIGN_SYSTEM:"utah-design-system",HEADER:"utds-header",FOOTER:"utds-footer",ICON_BUTTON:"icon-button",CSS_HEADER_MEDIA_TAG_ID:"cssHeaderMediaTag",IS_CLOSED:"is-closed",IS_OPEN:"is-open",VISUALLY_HIDDEN:"visually-hidden",MEDIA_SIZE__MOBILE__PLACEHOLDER:"media-size__mobile__PLACEHOLDER",MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER:"media-size__tablet-landscape__PLACEHOLDER",MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER:"media-size__tablet-portrait__PLACEHOLDER",ACTION_ITEM:"utds-header-action-item",ACTION_ITEM__ICON_BUTTON:"utds-header-action-item__icon-button",ACTION_ITEM__ICON_BUTTON_TITLE:"utds-header-action-item__icon-button--has-title",ACTION_ITEM__TITLE:"utds-header-action-item__title",ACTION_ITEMS__WRAPPER:"utds-action-items-wrapper",BADGE__LABEL:"utds-badge__label",BADGE__VALUE:"utds-badge__value",BADGE_WRAPPER:"utds-badge__wrapper",BADGE_WRAPPER__SMALL:"utds-badge__wrapper--small",BADGE_WRAPPER__ACTION_ITEM:"utds-badge__wrapper--action-item",CITIZEN_EXPERIENCE:"utds-citizen-experience-wrapper",CITIZEN_EXPERIENCE_MOBILE:"utds-citizen-experience-wrapper--mobile",FOOTER_HORIZONTAL_DIVIDER:"utds-footer__horizontal-divider",LOGO:"utds-logo-wrapper",LOGO_OFFICIAL_CLOSE_BUTTON:"utds-official-website-popup__close-button",LOGO_OFFICIAL_WRAPPER:"utds-official-website-popup__wrapper",LOGO_SVG:"utah-logo-svg",LOGO_VERT_LINE:"utds-logo-vert-line",MAIN_MENU:"main-menu__wrapper",MAIN_MENU__HAMBURGER:"main-menu__hamburger",MAIN_MENU__HAMBURGER_ID:"utds-main-menu__hamburger",MAIN_MENU__HAMBURGER_ICON_ID:"utds-main-menu__hamburger-icon",MAIN_MENU__MENU_TOP:"main-menu__menu-top",MAIN_MENU__NAV:"main-menu__nav",MAIN_MENU__OUTER:"main-menu__outer",MAIN_MENU__REMOVED:"main-menu-is-removed",MAIN_MENU__SEARCH:"main-menu__search",MAIN_MENU__TITLE:"main-menu__title",MENU_ITEM:"menu-item",MENU_ITEM__BUTTON_TITLE:"menu-item__button-title",MENU_ITEM__LINK_TITLE:"menu-item__link-title",MENU_ITEM__SELECTED:"menu-item--selected",MENU_ITEM__TITLE:"menu-item__title",MENU_ITEM__FLY_OUT:"menu-item--fly_out",MENU_ITEM__INLINE:"menu-item--inline",MENU_ITEM__MEGA_MENU:"menu-item--mega-menu",DESKTOP__HIDDEN:"utds-header-desktop--hidden",MOBILE__HIDDEN:"utds-header-mobile--hidden",MOBILE__UTAH_ID:"utds-header-mobile__utah-id-wrapper",MOBILE__VIP_ACTION_ITEMS__LEFT:"utds-header-mobile__vip-action-items--left",MOBILE__VIP_ACTION_ITEMS__RIGHT:"utds-header-mobile__vip-action-items--right",ACTION_ITEM__SELECTED:"utds-header-mobile-menu__action-item--selected",MOBILE_MENU:"utds-header-mobile-menu",MOBILE_MENU__ACTION_BAR:"utds-header-mobile-menu__action-bar",MOBILE_MENU__BACKDROP:"utds-header-mobile-menu__backdrop",MOBILE_MENU__CONTENT:"utds-header-mobile-menu__content",MOBILE_MENU__CONTENT_ITEM:"utds-header-mobile-menu__content-item",MOBILE_MENU__LAST_FOCUSABLE:"utds-header-mobile-menu__hidden-last-focusable",MOBILE_MENU__WRAPPER:"utds-header-mobile-menu__wrapper",MOBILE_MENU_ACTON_BAR__HOME_ID:"utds-header-mobile-menu_action-bar__home",MOBILE_MENU_ACTON_BAR__PROFILE_ID:"utds-header-mobile-menu_action-bar__profile",MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER:"utds-header-mobile-menu__action-item",POPUP_MENU:"vertical-menu",POPUP_MENU__BUTTON_TITLE:"vertical-menu__button-title",POPUP_MENU__CHEVRON:"vertical-menu__chevron",POPUP_MENU__DIVIDER:"vertical-menu__divider",POPUP_MENU__LINK_TEXT:"vertical-menu__link-text",POPUP_MENU__LINK_TITLE:"vertical-menu__link-title",POPUP_MENU__PLAIN_TITLE:"vertical-menu__plain-title",POPUP_MENU__TITLE:"vertical-menu__title",POPUP_MENU_WRAPPER__WRAPPER:"vertical-menu__wrapper",POPUP_MENU_WRAPPER__WRAPPER_TITLE:"vertical-menu__wrapper-title",POPUP__HIDDEN:"popup__wrapper--hidden",POPUP__VISIBLE:"popup__wrapper--visible",POPUP__WRAPPER:"popup__wrapper",EXTERNAL_LINK:"utds-icon-after-external-link",EXTERNAL_LINK__NEW_TAB:"utds-new-tab-link-a11y",POPUP_ARROW:"popup__arrow",POPUP_CONTENT_WRAPPER:"popup__content",POPUP_WRAPPER:"popup__wrapper",SEARCH__SEARCH_BACKDROP:"search-backdrop",SEARCH__SEARCH_CLOSE_BUTTON:"search-modal__close-button",SEARCH__SEARCH_BUTTON:"search-modal__button",SEARCH__SEARCH_BUTTON_WRAPPER:"search-modal__button-wrapper",SEARCH__SEARCH_INPUT:"search-modal__input",SEARCH__SEARCH_MODAL:"search-modal",SIZE__LARGE:"large",SIZE__MEDIUM:"medium",TITLE:"utds-title-wrapper",TITLE__LOGO:"utds-title-wrapper__logo",TITLE__TITLE:"utds-title-wrapper__title",TOOLTIP:"utds-tooltip",TOOLTIP__CONTENT:"tooltip__content",TOOLTIP__WRAPPER:"tooltip__wrapper",TOOLTIP__WRAPPER__HIDDEN:"tooltip__wrapper--hidden",TOOLTIP__WRAPPER__VISIBLE:"tooltip__wrapper--visible",UTAH_ID:"utds-utah-id-wrapper",UTAH_ID__BUTTON:"utds-utah-id__button"};function J(e,t){if(e)throw new Error(t)}function L(e,t){if(e==null)throw new Error(t);return e}function
|
|
103
|
+
`;function p(e){return`.${(Array.isArray(e)?e:[e]).join(".")}`}const a={UTAH_DESIGN_SYSTEM:"utah-design-system",HEADER:"utds-header",FOOTER:"utds-footer",ICON_BUTTON:"icon-button",CSS_HEADER_MEDIA_TAG_ID:"cssHeaderMediaTag",IS_CLOSED:"is-closed",IS_OPEN:"is-open",VISUALLY_HIDDEN:"visually-hidden",MEDIA_SIZE__MOBILE__PLACEHOLDER:"media-size__mobile__PLACEHOLDER",MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER:"media-size__tablet-landscape__PLACEHOLDER",MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER:"media-size__tablet-portrait__PLACEHOLDER",ACTION_ITEM:"utds-header-action-item",ACTION_ITEM__ICON_BUTTON:"utds-header-action-item__icon-button",ACTION_ITEM__ICON_BUTTON_TITLE:"utds-header-action-item__icon-button--has-title",ACTION_ITEM__TITLE:"utds-header-action-item__title",ACTION_ITEMS__WRAPPER:"utds-action-items-wrapper",BADGE__LABEL:"utds-badge__label",BADGE__VALUE:"utds-badge__value",BADGE_WRAPPER:"utds-badge__wrapper",BADGE_WRAPPER__SMALL:"utds-badge__wrapper--small",BADGE_WRAPPER__ACTION_ITEM:"utds-badge__wrapper--action-item",CITIZEN_EXPERIENCE:"utds-citizen-experience-wrapper",CITIZEN_EXPERIENCE_MOBILE:"utds-citizen-experience-wrapper--mobile",FOOTER_HORIZONTAL_DIVIDER:"utds-footer__horizontal-divider",LOGO:"utds-logo-wrapper",LOGO_OFFICIAL_CLOSE_BUTTON:"utds-official-website-popup__close-button",LOGO_OFFICIAL_WRAPPER:"utds-official-website-popup__wrapper",LOGO_SVG:"utah-logo-svg",LOGO_VERT_LINE:"utds-logo-vert-line",MAIN_MENU:"main-menu__wrapper",MAIN_MENU__HAMBURGER:"main-menu__hamburger",MAIN_MENU__HAMBURGER_ID:"utds-main-menu__hamburger",MAIN_MENU__HAMBURGER_ICON_ID:"utds-main-menu__hamburger-icon",MAIN_MENU__MENU_TOP:"main-menu__menu-top",MAIN_MENU__NAV:"main-menu__nav",MAIN_MENU__OUTER:"main-menu__outer",MAIN_MENU__REMOVED:"main-menu-is-removed",MAIN_MENU__SEARCH:"main-menu__search",MAIN_MENU__TITLE:"main-menu__title",MENU_ITEM:"menu-item",MENU_ITEM__ARROW:"menu-item__menu-arrow",MENU_ITEM__BUTTON_TITLE:"menu-item__button-title",MENU_ITEM__LINK_TITLE:"menu-item__link-title",MENU_ITEM__LINK_TITLE_SPAN:"menu-item__link-title-span",MENU_ITEM__SELECTED:"menu-item--selected",MENU_ITEM__TITLE:"menu-item__title",MENU_ITEM__FLY_OUT:"menu-item--fly_out",MENU_ITEM__INLINE:"menu-item--inline",MENU_ITEM__MEGA_MENU:"menu-item--mega-menu",DESKTOP__HIDDEN:"utds-header-desktop--hidden",MOBILE__HIDDEN:"utds-header-mobile--hidden",MOBILE__UTAH_ID:"utds-header-mobile__utah-id-wrapper",MOBILE__VIP_ACTION_ITEMS__LEFT:"utds-header-mobile__vip-action-items--left",MOBILE__VIP_ACTION_ITEMS__RIGHT:"utds-header-mobile__vip-action-items--right",ACTION_ITEM__SELECTED:"utds-header-mobile-menu__action-item--selected",MOBILE_MENU:"utds-header-mobile-menu",MOBILE_MENU__ACTION_BAR:"utds-header-mobile-menu__action-bar",MOBILE_MENU__BACKDROP:"utds-header-mobile-menu__backdrop",MOBILE_MENU__CONTENT:"utds-header-mobile-menu__content",MOBILE_MENU__CONTENT_ITEM:"utds-header-mobile-menu__content-item",MOBILE_MENU__LAST_FOCUSABLE:"utds-header-mobile-menu__hidden-last-focusable",MOBILE_MENU__WRAPPER:"utds-header-mobile-menu__wrapper",MOBILE_MENU_ACTON_BAR__HOME_ID:"utds-header-mobile-menu_action-bar__home",MOBILE_MENU_ACTON_BAR__PROFILE_ID:"utds-header-mobile-menu_action-bar__profile",MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER:"utds-header-mobile-menu__action-item",POPUP_MENU:"vertical-menu",POPUP_MENU__BUTTON_TITLE:"vertical-menu__button-title",POPUP_MENU__CHEVRON:"vertical-menu__chevron",POPUP_MENU__DIVIDER:"vertical-menu__divider",POPUP_MENU__LINK_TEXT:"vertical-menu__link-text",POPUP_MENU__LINK_TITLE:"vertical-menu__link-title",POPUP_MENU__PLAIN_TITLE:"vertical-menu__plain-title",POPUP_MENU__TITLE:"vertical-menu__title",POPUP_MENU_WRAPPER__WRAPPER:"vertical-menu__wrapper",POPUP_MENU_WRAPPER__WRAPPER_TITLE:"vertical-menu__wrapper-title",POPUP__HIDDEN:"popup__wrapper--hidden",POPUP__VISIBLE:"popup__wrapper--visible",POPUP__WRAPPER:"popup__wrapper",EXTERNAL_LINK:"utds-icon-after-external-link",EXTERNAL_LINK__NEW_TAB:"utds-new-tab-link-a11y",POPUP_ARROW:"popup__arrow",POPUP_CONTENT_WRAPPER:"popup__content",POPUP_WRAPPER:"popup__wrapper",SEARCH__SEARCH_BACKDROP:"search-backdrop",SEARCH__SEARCH_CLOSE_BUTTON:"search-modal__close-button",SEARCH__SEARCH_BUTTON:"search-modal__button",SEARCH__SEARCH_BUTTON_WRAPPER:"search-modal__button-wrapper",SEARCH__SEARCH_INPUT:"search-modal__input",SEARCH__SEARCH_MODAL:"search-modal",SIZE__LARGE:"large",SIZE__MEDIUM:"medium",TITLE:"utds-title-wrapper",TITLE__LOGO:"utds-title-wrapper__logo",TITLE__TITLE:"utds-title-wrapper__title",TOOLTIP:"utds-tooltip",TOOLTIP__CONTENT:"tooltip__content",TOOLTIP__WRAPPER:"tooltip__wrapper",TOOLTIP__WRAPPER__HIDDEN:"tooltip__wrapper--hidden",TOOLTIP__WRAPPER__VISIBLE:"tooltip__wrapper--visible",UTAH_ID:"utds-utah-id-wrapper",UTAH_ID__BUTTON:"utds-utah-id__button"};function J(e,t){if(e)throw new Error(t)}function L(e,t){if(e==null)throw new Error(t);return e}function It(e){return typeof e=="string"||e instanceof String}function vn(e){const t=new DOMParser;let n;if(It(e)){const o=It(e)?t.parseFromString(e,"text/html"):e,r=o.body.children.length>1?o.body.children:o.body.children.item(0);if(!r)throw console.error(e),new Error("renderDOM: nothing rendered");n=r}else if(e instanceof Element)n=e;else throw e?(console.error(e),new Error(`renderDOM: str is not a string nor a DOM Element : '${e}'`)):new Error("renderDOM: falsy string passed; cannot render nothing");return n}function I(e){const t=typeof e=="string"?vn(e):e;if(t instanceof HTMLCollection&&t.length>1)throw new Error("renderDOMSingle: must render a single element");const n=t instanceof HTMLCollection?t[0]:t;if(!n)throw console.error(e),new Error("renderDOMSingle: nothing rendered");return n}const Ye={onSearch:!1,mainMenu:!1,mediaSizes:{mobile:640,tabletPortrait:768,tabletLandscape:1024},showTitle:!0,size:ue.MEDIUM,title:"My Utah.gov Site",titleURL:"/",utahId:!1};function bn(e){if(!e.showTitle&&!e.logo)throw new Error("validateSettings: A title must be shown if there is no logo. Please change the `showTitle` setting to be `true` or provide a logo image.")}class In{constructor(){this.settings={...Ye}}setSettings(t){const n={...Ye,...this.settings,...t};bn(n),this.settings=n}getSettings(){return this.settings}}const Ke=new In;function w(){return Ke.getSettings()}const Tn=`<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
104
104
|
</div>
|
|
105
|
-
`;function S(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&(15>>e)/4).toString(16))}function je(e){const t=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!t)throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");const n=t.querySelector(p(a.MOBILE_MENU__CONTENT));if(!n)throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");const o=I(
|
|
105
|
+
`;function S(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&(15>>e)/4).toString(16))}function je(e){const t=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!t)throw new Error("addMobileMenuContentItem: mobileMenuWrapper not found");const n=t.querySelector(p(a.MOBILE_MENU__CONTENT));if(!n)throw new Error("addMobileMenuContentItem: mobileContentWrapper not found");const o=I(Tn);return o.appendChild(e),n.appendChild(o),o.setAttribute("id",S()),o}function j(e){return typeof e=="function"?e():e}function ve(e){const t=L(document.querySelector(p(a.MOBILE_MENU)),`${e}: mobileMenu not found`),n=L(document.getElementById(a.MAIN_MENU__HAMBURGER_ID),`${e}: hamburger not found (π πΆ I will gladly pay you Tuesday for a hamburger today π΅ π)`),o=L(document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID),`${e}: hamburgerIcon not found`);return{hamburger:n,hamburgerIcon:o,mobileMenu:t}}function Re(){const{hamburger:e,hamburgerIcon:t,mobileMenu:n}=ve("hideMobileMenu");e.setAttribute("aria-expanded","false"),n.classList.remove(a.IS_OPEN),e.setAttribute("aria-label","Open the mobile menu"),t.classList.add("utds-icon-before-hamburger"),t.classList.remove("utds-icon-before-x-icon")}function gn(){var r;const e=document.querySelector(p(a.MAIN_MENU));e!=null&&e.classList.contains(a.MOBILE__HIDDEN)&&((r=document.querySelector(`${p(a.UTAH_DESIGN_SYSTEM)}${p(a.MOBILE_MENU)}`))==null||r.classList.add(a.MAIN_MENU__REMOVED));const{hamburger:t,hamburgerIcon:n,mobileMenu:o}=ve("showMobileMenu");t.setAttribute("aria-expanded","true"),o.classList.add(a.IS_OPEN),t.setAttribute("aria-label","Close the mobile menu"),n.classList.remove("utds-icon-before-hamburger"),n.classList.add("utds-icon-before-x-icon")}function Ze(e,t){e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach(o=>{o.classList.remove(a.ACTION_ITEM__SELECTED);const r=o.querySelector("button");if(!r)throw new Error("showActionItem: actionWrapper does not have actionItem A");r.setAttribute("aria-selected","false"),r.setAttribute("tabIndex","-1")}),t.classList.add(a.ACTION_ITEM__SELECTED);const n=t.querySelector("button");if(!n)throw new Error("showActionItem: actionWrapper does not have actionItem B");n.setAttribute("aria-selected","true"),n.removeAttribute("tabIndex"),n.focus()}function Tt(e,t){e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(n=>n.classList.remove(a.IS_OPEN)),t.classList.add(a.IS_OPEN)}function Xe(e,t,n,{ariaHasPopupType:o,additionalOnClick:r,onClickHandler:i,shouldOnClickCloseMenu:u}){var h,_;if(t&&!o)throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");const s=document.querySelector(p(a.MOBILE_MENU));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenu not found");const l=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");const c=l.querySelector(p(a.MOBILE_MENU__CONTENT));if(!c)throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");const d=j(n),m=(_=(h=j(n))==null?void 0:h.querySelector)==null?void 0:_.call(h,"button"),f=(m||e).getAttribute("id");if(!f)throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");if(t){const E=j(t);if(E){const b=E.getAttribute("id");if(!b)throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");(m||e).setAttribute("aria-controls",b),E.setAttribute("aria-labelledby",f)}}if(e.onclick)throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");if(e.onclick=E=>{if(!(i!=null&&i(E)))if(r==null||r(E),s.classList.contains(a.IS_OPEN))u&&Re();else{gn();const g=j(t);g&&Tt(c,g),Ze(l,j(n))}},t){if(d!==e&&d.onclick)throw new Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");d.onclick=E=>{if(!(i!=null&&i(E))){const b=j(t);b&&Tt(c,b),Ze(l,j(n))}}}}const Mn=`<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
106
106
|
<button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
|
|
107
107
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
108
108
|
<span aria-hidden="true" role="presentation">
|
|
109
109
|
</button>
|
|
110
110
|
<span class="menu-chiclet"></span>
|
|
111
111
|
</div>
|
|
112
|
-
`,
|
|
112
|
+
`,An=`<div class="utds-header-action-item-menu">
|
|
113
113
|
<div class="vertical-menu__wrapper-title"></div>
|
|
114
114
|
</div>
|
|
115
|
-
`,
|
|
116
|
-
`,
|
|
115
|
+
`,On=`<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
116
|
+
`,gt=`<span class="utds-new-tab-link-a11y">
|
|
117
117
|
<span class="visually-hidden">opens in a new tab</span>
|
|
118
118
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
119
119
|
</span>
|
|
120
|
-
`,
|
|
121
|
-
`,
|
|
120
|
+
`,wn=`<ul class="vertical-menu" role="menu" />
|
|
121
|
+
`,Ln=`<li class="vertical-menu__item">
|
|
122
122
|
<span class="vertical-menu__title">
|
|
123
123
|
<span class="vertical-menu__plain-title"></span>
|
|
124
124
|
<a href="#" class="vertical-menu__link-title">
|
|
@@ -130,16 +130,16 @@
|
|
|
130
130
|
</span>
|
|
131
131
|
<span class="vertical-menu__divider" />
|
|
132
132
|
</li>
|
|
133
|
-
`,Xe={AUTO:"auto",AUTO_START:"auto-start",AUTO_END:"auto-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end",TOP:"top",TOP_START:"top-start",TOP_END:"top-end"};function Re(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>Re(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>Re(e[i],t,n)))))),o}var H="top",V="bottom",G="right",x="left",Je="auto",be=[H,V,G,x],de="start",Ie="end",On="clippingParents",gt="viewport",Te="popper",wn="reference",Mt=be.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Ie])},[]),At=[].concat(be,[Je]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Ie])},[]),Ln="beforeRead",yn="read",Pn="afterRead",Nn="beforeMain",Sn="main",Un="afterMain",Cn="beforeWrite",Rn="write",Dn="afterWrite",Bn=[Ln,yn,Pn,Nn,Sn,Un,Cn,Rn,Dn];function K(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ne(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function $(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qe(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!$(i)||!K(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var s=r[u];s===!1?i.removeAttribute(u):i.setAttribute(u,s===!0?"":s)}))})}function xn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=u.reduce(function(l,c){return l[c]="",l},{});!$(r)||!K(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const Wn={name:"applyStyles",enabled:!0,phase:"write",fn:Hn,effect:xn,requires:["computeStyles"]};function Z(e){return e.split("-")[0]}var oe=Math.max,De=Math.min,pe=Math.round;function et(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ot(){return!/^((?!chrome|android).)*safari/i.test(et())}function fe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&$(e)&&(r=e.offsetWidth>0&&pe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pe(o.height)/e.offsetHeight||1);var u=ne(e)?W(e):window,s=u.visualViewport,l=!Ot()&&n,c=(o.left+(l&&s?s.offsetLeft:0))/r,d=(o.top+(l&&s?s.offsetTop:0))/i,m=o.width/r,f=o.height/i;return{width:m,height:f,top:d,right:c+m,bottom:d+f,left:c,x:c,y:d}}function tt(e){var t=fe(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function wt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qe(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Q(e){return W(e).getComputedStyle(e)}function kn(e){return["table","td","th"].indexOf(K(e))>=0}function ee(e){return((ne(e)?e.ownerDocument:e.document)||window.document).documentElement}function Be(e){return K(e)==="html"?e:e.assignedSlot||e.parentNode||(Qe(e)?e.host:null)||ee(e)}function Lt(e){return!$(e)||Q(e).position==="fixed"?null:e.offsetParent}function Fn(e){var t=/firefox/i.test(et()),n=/Trident/i.test(et());if(n&&$(e)){var o=Q(e);if(o.position==="fixed")return null}var r=Be(e);for(Qe(r)&&(r=r.host);$(r)&&["html","body"].indexOf(K(r))<0;){var i=Q(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function ge(e){for(var t=W(e),n=Lt(e);n&&kn(n)&&Q(n).position==="static";)n=Lt(n);return n&&(K(n)==="html"||K(n)==="body"&&Q(n).position==="static")?t:n||Fn(e)||t}function nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,n){return oe(e,De(t,n))}function qn(e,t,n){var o=Me(e,t,n);return o>n?n:o}function yt(){return{top:0,right:0,bottom:0,left:0}}function Pt(e){return Object.assign({},yt(),e)}function Nt(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Vn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Pt(typeof t!="number"?t:Nt(t,be))};function Gn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,s=Z(n.placement),l=nt(s),c=[x,G].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!u)){var m=Vn(r.padding,n),f=tt(i),h=l==="y"?H:x,_=l==="y"?V:G,E=n.rects.reference[d]+n.rects.reference[l]-u[l]-n.rects.popper[d],v=u[l]-n.rects.reference[l],T=ge(i),A=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,O=E/2-v/2,b=m[h],g=A-f[d]-m[_],M=A/2-f[d]/2+O,P=Me(b,M,g),C=l;n.modifiersData[o]=(t={},t[C]=P,t.centerOffset=P-M,t)}}function $n(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||wt(t.elements.popper,r)&&(t.elements.arrow=r))}const zn={name:"arrow",enabled:!0,phase:"main",fn:Gn,effect:$n,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var Yn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jn(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:pe(n*r)/r||0,y:pe(o*r)/r||0}}function St(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,m=e.isFixed,f=u.x,h=f===void 0?0:f,_=u.y,E=_===void 0?0:_,v=typeof d=="function"?d({x:h,y:E}):{x:h,y:E};h=v.x,E=v.y;var T=u.hasOwnProperty("x"),A=u.hasOwnProperty("y"),O=x,b=H,g=window;if(c){var M=ge(n),P="clientHeight",C="clientWidth";if(M===W(n)&&(M=ee(n),Q(M).position!=="static"&&s==="absolute"&&(P="scrollHeight",C="scrollWidth")),M=M,r===H||(r===x||r===G)&&i===Ie){b=V;var U=m&&M===g&&g.visualViewport?g.visualViewport.height:M[P];E-=U-o.height,E*=l?1:-1}if(r===x||(r===H||r===V)&&i===Ie){O=G;var N=m&&M===g&&g.visualViewport?g.visualViewport.width:M[C];h-=N-o.width,h*=l?1:-1}}var R=Object.assign({position:s},c&&Yn),z=d===!0?jn({x:h,y:E},W(n)):{x:h,y:E};if(h=z.x,E=z.y,l){var D;return Object.assign({},R,(D={},D[b]=A?"0":"",D[O]=T?"0":"",D.transform=(g.devicePixelRatio||1)<=1?"translate("+h+"px, "+E+"px)":"translate3d("+h+"px, "+E+"px, 0)",D))}return Object.assign({},R,(t={},t[b]=A?E+"px":"",t[O]=T?h+"px":"",t.transform="",t))}function Kn(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Z(t.placement),variation:_e(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,St(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,St(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kn,data:{}};var He={passive:!0};function Xn(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,s=u===void 0?!0:u,l=W(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,He)}),s&&l.addEventListener("resize",n.update,He),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,He)}),s&&l.removeEventListener("resize",n.update,He)}}const Jn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xn,data:{}};var Qn={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Qn[t]})}var eo={start:"end",end:"start"};function Ut(e){return e.replace(/start|end/g,function(t){return eo[t]})}function ot(e){var t=W(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function rt(e){return fe(ee(e)).left+ot(e).scrollLeft}function to(e,t){var n=W(e),o=ee(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,s=0,l=0;if(r){i=r.width,u=r.height;var c=Ot();(c||!c&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:u,x:s+rt(e),y:l}}function no(e){var t,n=ee(e),o=ot(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=oe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=oe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+rt(e),l=-o.scrollTop;return Q(r||n).direction==="rtl"&&(s+=oe(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:s,y:l}}function it(e){var t=Q(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Ct(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:$(e)&&it(e)?e:Ct(Be(e))}function Ae(e,t){var n;t===void 0&&(t=[]);var o=Ct(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=W(o),u=r?[i].concat(i.visualViewport||[],it(o)?o:[]):o,s=t.concat(u);return r?s:s.concat(Ae(Be(u)))}function at(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oo(e,t){var n=fe(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Rt(e,t,n){return t===gt?at(to(e,n)):ne(t)?oo(t,n):at(no(ee(e)))}function ro(e){var t=Ae(Be(e)),n=["absolute","fixed"].indexOf(Q(e).position)>=0,o=n&&$(e)?ge(e):e;return ne(o)?t.filter(function(r){return ne(r)&&wt(r,o)&&K(r)!=="body"}):[]}function io(e,t,n,o){var r=t==="clippingParents"?ro(e):[].concat(t),i=[].concat(r,[n]),u=i[0],s=i.reduce(function(l,c){var d=Rt(e,c,o);return l.top=oe(d.top,l.top),l.right=De(d.right,l.right),l.bottom=De(d.bottom,l.bottom),l.left=oe(d.left,l.left),l},Rt(e,u,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Dt(e){var t=e.reference,n=e.element,o=e.placement,r=o?Z(o):null,i=o?_e(o):null,u=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case H:l={x:u,y:t.y-n.height};break;case V:l={x:u,y:t.y+t.height};break;case G:l={x:t.x+t.width,y:s};break;case x:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=r?nt(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case de:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Ie:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Oe(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,u=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?On:s,c=n.rootBoundary,d=c===void 0?gt:c,m=n.elementContext,f=m===void 0?Te:m,h=n.altBoundary,_=h===void 0?!1:h,E=n.padding,v=E===void 0?0:E,T=Pt(typeof v!="number"?v:Nt(v,be)),A=f===Te?wn:Te,O=e.rects.popper,b=e.elements[_?A:f],g=io(ne(b)?b:b.contextElement||ee(e.elements.popper),l,d,u),M=fe(e.elements.reference),P=Dt({reference:M,element:O,strategy:"absolute",placement:r}),C=at(Object.assign({},O,P)),U=f===Te?C:M,N={top:g.top-U.top+T.top,bottom:U.bottom-g.bottom+T.bottom,left:g.left-U.left+T.left,right:U.right-g.right+T.right},R=e.modifiersData.offset;if(f===Te&&R){var z=R[r];Object.keys(N).forEach(function(D){var ie=[G,V].indexOf(D)>=0?1:-1,ae=[H,V].indexOf(D)>=0?"y":"x";N[D]+=z[ae]*ie})}return N}function ao(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?At:l,d=_e(o),m=d?s?Mt:Mt.filter(function(_){return _e(_)===d}):be,f=m.filter(function(_){return c.indexOf(_)>=0});f.length===0&&(f=m);var h=f.reduce(function(_,E){return _[E]=Oe(e,{placement:E,boundary:r,rootBoundary:i,padding:u})[Z(E)],_},{});return Object.keys(h).sort(function(_,E){return h[_]-h[E]})}function so(e){if(Z(e)===Je)return[];var t=xe(e);return[Ut(e),t,Ut(t)]}function lo(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!0:u,l=n.fallbackPlacements,c=n.padding,d=n.boundary,m=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,_=h===void 0?!0:h,E=n.allowedAutoPlacements,v=t.options.placement,T=Z(v),A=T===v,O=l||(A||!_?[xe(v)]:so(v)),b=[v].concat(O).reduce(function(Ee,te){return Ee.concat(Z(te)===Je?ao(t,{placement:te,boundary:d,rootBoundary:m,padding:c,flipVariations:_,allowedAutoPlacements:E}):te)},[]),g=t.rects.reference,M=t.rects.popper,P=new Map,C=!0,U=b[0],N=0;N<b.length;N++){var R=b[N],z=Z(R),D=_e(R)===de,ie=[H,V].indexOf(z)>=0,ae=ie?"width":"height",F=Oe(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:f,padding:c}),Y=ie?D?G:x:D?V:H;g[ae]>M[ae]&&(Y=xe(Y));var ke=xe(Y),se=[];if(i&&se.push(F[z]<=0),s&&se.push(F[Y]<=0,F[ke]<=0),se.every(function(Ee){return Ee})){U=R,C=!1;break}P.set(R,se)}if(C)for(var Fe=_?3:1,ht=function(te){var Se=b.find(function(Ve){var le=P.get(Ve);if(le)return le.slice(0,te).every(function(mt){return mt})});if(Se)return U=Se,"break"},Ne=Fe;Ne>0;Ne--){var qe=ht(Ne);if(qe==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const co={name:"flip",enabled:!0,phase:"main",fn:lo,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ht(e){return[H,G,V,x].some(function(t){return e[t]>=0})}function uo(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=Oe(t,{elementContext:"reference"}),s=Oe(t,{altBoundary:!0}),l=Bt(u,o),c=Bt(s,r,i),d=Ht(l),m=Ht(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const po={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uo};function fo(e,t,n){var o=Z(e),r=[x,H].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],s=i[1];return u=u||0,s=(s||0)*r,[x,G].indexOf(o)>=0?{x:s,y:u}:{x:u,y:s}}function _o(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=At.reduce(function(d,m){return d[m]=fo(m,t.rects,i),d},{}),s=u[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const ho={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_o};function mo(e){var t=e.state,n=e.name;t.modifiersData[n]=Dt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Eo={name:"popperOffsets",enabled:!0,phase:"read",fn:mo,data:{}};function vo(e){return e==="x"?"y":"x"}function bo(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!1:u,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.padding,f=n.tether,h=f===void 0?!0:f,_=n.tetherOffset,E=_===void 0?0:_,v=Oe(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:d}),T=Z(t.placement),A=_e(t.placement),O=!A,b=nt(T),g=vo(b),M=t.modifiersData.popperOffsets,P=t.rects.reference,C=t.rects.popper,U=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,N=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(M){if(i){var D,ie=b==="y"?H:x,ae=b==="y"?V:G,F=b==="y"?"height":"width",Y=M[b],ke=Y+v[ie],se=Y-v[ae],Fe=h?-C[F]/2:0,ht=A===de?P[F]:C[F],Ne=A===de?-C[F]:-P[F],qe=t.elements.arrow,Ee=h&&qe?tt(qe):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yt(),Se=te[ie],Ve=te[ae],le=Me(0,P[F],Ee[F]),mt=O?P[F]/2-Fe-le-Se-N.mainAxis:ht-le-Se-N.mainAxis,Sr=O?-P[F]/2+Fe+le+Ve+N.mainAxis:Ne+le+Ve+N.mainAxis,Et=t.elements.arrow&&ge(t.elements.arrow),Ur=Et?b==="y"?Et.clientTop||0:Et.clientLeft||0:0,on=(D=R==null?void 0:R[b])!=null?D:0,Cr=Y+mt-on-Ur,Rr=Y+Sr-on,rn=Me(h?De(ke,Cr):ke,Y,h?oe(se,Rr):se);M[b]=rn,z[b]=rn-Y}if(s){var an,Dr=b==="x"?H:x,Br=b==="x"?V:G,ce=M[g],Ge=g==="y"?"height":"width",sn=ce+v[Dr],ln=ce-v[Br],vt=[H,x].indexOf(T)!==-1,cn=(an=R==null?void 0:R[g])!=null?an:0,un=vt?sn:ce-P[Ge]-C[Ge]-cn+N.altAxis,dn=vt?ce+P[Ge]+C[Ge]-cn-N.altAxis:ln,pn=h&&vt?qn(un,ce,dn):Me(h?un:sn,ce,h?dn:ln);M[g]=pn,z[g]=pn-ce}t.modifiersData[o]=z}}const Io={name:"preventOverflow",enabled:!0,phase:"main",fn:bo,requiresIfExists:["offset"]};function To(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function go(e){return e===W(e)||!$(e)?ot(e):To(e)}function Mo(e){var t=e.getBoundingClientRect(),n=pe(t.width)/e.offsetWidth||1,o=pe(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Ao(e,t,n){n===void 0&&(n=!1);var o=$(t),r=$(t)&&Mo(t),i=ee(t),u=fe(e,r,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((K(t)!=="body"||it(i))&&(s=go(t)),$(t)?(l=fe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=rt(i))),{x:u.left+s.scrollLeft-l.x,y:u.top+s.scrollTop-l.y,width:u.width,height:u.height}}function Oo(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function wo(e){var t=Oo(e);return Bn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Lo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yo(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Po(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?xt:r;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},xt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},m=[],f=!1,h={state:d,setOptions:function(T){var A=typeof T=="function"?T(d.options):T;E(),d.options=Object.assign({},i,d.options,A),d.scrollParents={reference:ne(s)?Ae(s):s.contextElement?Ae(s.contextElement):[],popper:Ae(l)};var O=wo(yo([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(b){return b.enabled}),_(),h.update()},forceUpdate:function(){if(!f){var T=d.elements,A=T.reference,O=T.popper;if(Wt(A,O)){d.rects={reference:Ao(A,ge(O),d.options.strategy==="fixed"),popper:tt(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var g=d.orderedModifiers[b],M=g.fn,P=g.options,C=P===void 0?{}:P,U=g.name;typeof M=="function"&&(d=M({state:d,options:C,name:U,instance:h})||d)}}}},update:Lo(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){E(),f=!0}};if(!Wt(s,l))return h;h.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function _(){d.orderedModifiers.forEach(function(v){var T=v.name,A=v.options,O=A===void 0?{}:A,b=v.effect;if(typeof b=="function"){var g=b({state:d,name:T,instance:h,options:O}),M=function(){};m.push(g||M)}})}function E(){m.forEach(function(v){return v()}),m=[]}return h}}var No=[Jn,Eo,Zn,Wn,ho,co,Io,zn,po],kt=Po({defaultModifiers:No});function st(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let k;const we={},lt={SHIFT:"shift-key"};function Ft(){k&&(document.removeEventListener("click",k.globalOnClick),document.removeEventListener("keyup",k.globalOnKeyup),document.removeEventListener("keydown",k.globalOnKeydown),k=null)}function ct(){const e=document.querySelectorAll(`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(a.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const o=document.querySelector(`[aria-controls="${n}"]`);o&&o.setAttribute("aria-expanded","false")}st(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function So(){k&&Ft(),k={},k.globalOnClick=ct,document.addEventListener("click",k.globalOnClick),k.globalOnKeyup=e=>{e.key==="Escape"&&ct(),e.shiftKey||(we[lt.SHIFT]=!1),we[e.key]=!1},document.addEventListener("keyup",k.globalOnKeyup),k.globalOnKeydown=e=>{e.shiftKey&&(we[lt.SHIFT]=!0),we[e.key]=!0},document.addEventListener("keydown",k.globalOnKeydown)}function Uo(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Le(e,t,n,o,r){let i=NaN,u=NaN;const s=300,l=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{kt(t,n,{placement:(r==null?void 0:r.popupPlacement)||Xe.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),st(n,!0,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach(h=>h.classList.add(a.TOOLTIP__WRAPPER__HIDDEN))},f))}function m(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{st(n,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},f))}if(r!=null&&r.preventOnClickHandling?(J(!!e.onclick,"popupFocusHandler: wrapper already has an onclick"),e.onclick=f=>{f.preventDefault(),f.stopPropagation()}):(e.addEventListener("focusin",()=>d(l)),e.addEventListener("focusout",()=>m(l))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(s)),e.addEventListener("mouseleave",()=>m(s))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=f=>{var _;const h=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(f.stopPropagation(),f.preventDefault(),h&&t.getAttribute("aria-expanded")==="true"?(m(c),(_=document.activeElement)==null||_.blur()):(Uo()&&ct(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const Co=`<div class="popup__wrapper popup__wrapper--hidden">
|
|
133
|
+
`,Je={AUTO:"auto",AUTO_START:"auto-start",AUTO_END:"auto-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end",TOP:"top",TOP_START:"top-start",TOP_END:"top-end"};function De(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>De(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>De(e[i],t,n)))))),o}var x="top",$="bottom",G="right",W="left",Qe="auto",be=[x,$,G,W],de="start",Ie="end",yn="clippingParents",Mt="viewport",Te="popper",Pn="reference",At=be.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Ie])},[]),Ot=[].concat(be,[Qe]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Ie])},[]),Nn="beforeRead",Sn="read",Un="afterRead",Cn="beforeMain",Rn="main",Dn="afterMain",Bn="beforeWrite",Hn="write",xn="afterWrite",Wn=[Nn,Sn,Un,Cn,Rn,Dn,Bn,Hn,xn];function Z(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ne(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function z(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function et(e){if(typeof ShadowRoot>"u")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!z(i)||!Z(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var s=r[u];s===!1?i.removeAttribute(u):i.setAttribute(u,s===!0?"":s)}))})}function Fn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=u.reduce(function(l,c){return l[c]="",l},{});!z(r)||!Z(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const qn={name:"applyStyles",enabled:!0,phase:"write",fn:kn,effect:Fn,requires:["computeStyles"]};function X(e){return e.split("-")[0]}var oe=Math.max,Be=Math.min,pe=Math.round;function tt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test(tt())}function fe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&z(e)&&(r=e.offsetWidth>0&&pe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pe(o.height)/e.offsetHeight||1);var u=ne(e)?k(e):window,s=u.visualViewport,l=!wt()&&n,c=(o.left+(l&&s?s.offsetLeft:0))/r,d=(o.top+(l&&s?s.offsetTop:0))/i,m=o.width/r,f=o.height/i;return{width:m,height:f,top:d,right:c+m,bottom:d+f,left:c,x:c,y:d}}function nt(e){var t=fe(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Lt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&et(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Q(e){return k(e).getComputedStyle(e)}function Vn(e){return["table","td","th"].indexOf(Z(e))>=0}function ee(e){return((ne(e)?e.ownerDocument:e.document)||window.document).documentElement}function He(e){return Z(e)==="html"?e:e.assignedSlot||e.parentNode||(et(e)?e.host:null)||ee(e)}function yt(e){return!z(e)||Q(e).position==="fixed"?null:e.offsetParent}function $n(e){var t=/firefox/i.test(tt()),n=/Trident/i.test(tt());if(n&&z(e)){var o=Q(e);if(o.position==="fixed")return null}var r=He(e);for(et(r)&&(r=r.host);z(r)&&["html","body"].indexOf(Z(r))<0;){var i=Q(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function ge(e){for(var t=k(e),n=yt(e);n&&Vn(n)&&Q(n).position==="static";)n=yt(n);return n&&(Z(n)==="html"||Z(n)==="body"&&Q(n).position==="static")?t:n||$n(e)||t}function ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,n){return oe(e,Be(t,n))}function Gn(e,t,n){var o=Me(e,t,n);return o>n?n:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Nt(e){return Object.assign({},Pt(),e)}function St(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var zn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nt(typeof t!="number"?t:St(t,be))};function Yn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,s=X(n.placement),l=ot(s),c=[W,G].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!u)){var m=zn(r.padding,n),f=nt(i),h=l==="y"?x:W,_=l==="y"?$:G,E=n.rects.reference[d]+n.rects.reference[l]-u[l]-n.rects.popper[d],b=u[l]-n.rects.reference[l],g=ge(i),M=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,O=E/2-b/2,v=m[h],T=M-f[d]-m[_],A=M/2-f[d]/2+O,P=Me(v,A,T),C=l;n.modifiersData[o]=(t={},t[C]=P,t.centerOffset=P-A,t)}}function Kn(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Lt(t.elements.popper,r)&&(t.elements.arrow=r))}const jn={name:"arrow",enabled:!0,phase:"main",fn:Yn,effect:Kn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var Zn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xn(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:pe(n*r)/r||0,y:pe(o*r)/r||0}}function Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,m=e.isFixed,f=u.x,h=f===void 0?0:f,_=u.y,E=_===void 0?0:_,b=typeof d=="function"?d({x:h,y:E}):{x:h,y:E};h=b.x,E=b.y;var g=u.hasOwnProperty("x"),M=u.hasOwnProperty("y"),O=W,v=x,T=window;if(c){var A=ge(n),P="clientHeight",C="clientWidth";if(A===k(n)&&(A=ee(n),Q(A).position!=="static"&&s==="absolute"&&(P="scrollHeight",C="scrollWidth")),A=A,r===x||(r===W||r===G)&&i===Ie){v=$;var U=m&&A===T&&T.visualViewport?T.visualViewport.height:A[P];E-=U-o.height,E*=l?1:-1}if(r===W||(r===x||r===$)&&i===Ie){O=G;var N=m&&A===T&&T.visualViewport?T.visualViewport.width:A[C];h-=N-o.width,h*=l?1:-1}}var R=Object.assign({position:s},c&&Zn),Y=d===!0?Xn({x:h,y:E},k(n)):{x:h,y:E};if(h=Y.x,E=Y.y,l){var B;return Object.assign({},R,(B={},B[v]=M?"0":"",B[O]=g?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+E+"px)":"translate3d("+h+"px, "+E+"px, 0)",B))}return Object.assign({},R,(t={},t[v]=M?E+"px":"",t[O]=g?h+"px":"",t.transform="",t))}function Jn(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:X(t.placement),variation:_e(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Qn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jn,data:{}};var xe={passive:!0};function eo(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,s=u===void 0?!0:u,l=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,xe)}),s&&l.addEventListener("resize",n.update,xe),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,xe)}),s&&l.removeEventListener("resize",n.update,xe)}}const to={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eo,data:{}};var no={left:"right",right:"left",bottom:"top",top:"bottom"};function We(e){return e.replace(/left|right|bottom|top/g,function(t){return no[t]})}var oo={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return oo[t]})}function rt(e){var t=k(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function it(e){return fe(ee(e)).left+rt(e).scrollLeft}function ro(e,t){var n=k(e),o=ee(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,s=0,l=0;if(r){i=r.width,u=r.height;var c=wt();(c||!c&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:u,x:s+it(e),y:l}}function io(e){var t,n=ee(e),o=rt(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=oe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=oe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+it(e),l=-o.scrollTop;return Q(r||n).direction==="rtl"&&(s+=oe(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:s,y:l}}function at(e){var t=Q(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Rt(e){return["html","body","#document"].indexOf(Z(e))>=0?e.ownerDocument.body:z(e)&&at(e)?e:Rt(He(e))}function Ae(e,t){var n;t===void 0&&(t=[]);var o=Rt(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=k(o),u=r?[i].concat(i.visualViewport||[],at(o)?o:[]):o,s=t.concat(u);return r?s:s.concat(Ae(He(u)))}function st(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ao(e,t){var n=fe(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Dt(e,t,n){return t===Mt?st(ro(e,n)):ne(t)?ao(t,n):st(io(ee(e)))}function so(e){var t=Ae(He(e)),n=["absolute","fixed"].indexOf(Q(e).position)>=0,o=n&&z(e)?ge(e):e;return ne(o)?t.filter(function(r){return ne(r)&&Lt(r,o)&&Z(r)!=="body"}):[]}function lo(e,t,n,o){var r=t==="clippingParents"?so(e):[].concat(t),i=[].concat(r,[n]),u=i[0],s=i.reduce(function(l,c){var d=Dt(e,c,o);return l.top=oe(d.top,l.top),l.right=Be(d.right,l.right),l.bottom=Be(d.bottom,l.bottom),l.left=oe(d.left,l.left),l},Dt(e,u,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Bt(e){var t=e.reference,n=e.element,o=e.placement,r=o?X(o):null,i=o?_e(o):null,u=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case x:l={x:u,y:t.y-n.height};break;case $:l={x:u,y:t.y+t.height};break;case G:l={x:t.x+t.width,y:s};break;case W:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=r?ot(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case de:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Ie:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Oe(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,u=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?yn:s,c=n.rootBoundary,d=c===void 0?Mt:c,m=n.elementContext,f=m===void 0?Te:m,h=n.altBoundary,_=h===void 0?!1:h,E=n.padding,b=E===void 0?0:E,g=Nt(typeof b!="number"?b:St(b,be)),M=f===Te?Pn:Te,O=e.rects.popper,v=e.elements[_?M:f],T=lo(ne(v)?v:v.contextElement||ee(e.elements.popper),l,d,u),A=fe(e.elements.reference),P=Bt({reference:A,element:O,strategy:"absolute",placement:r}),C=st(Object.assign({},O,P)),U=f===Te?C:A,N={top:T.top-U.top+g.top,bottom:U.bottom-T.bottom+g.bottom,left:T.left-U.left+g.left,right:U.right-T.right+g.right},R=e.modifiersData.offset;if(f===Te&&R){var Y=R[r];Object.keys(N).forEach(function(B){var ie=[G,$].indexOf(B)>=0?1:-1,ae=[x,$].indexOf(B)>=0?"y":"x";N[B]+=Y[ae]*ie})}return N}function co(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Ot:l,d=_e(o),m=d?s?At:At.filter(function(_){return _e(_)===d}):be,f=m.filter(function(_){return c.indexOf(_)>=0});f.length===0&&(f=m);var h=f.reduce(function(_,E){return _[E]=Oe(e,{placement:E,boundary:r,rootBoundary:i,padding:u})[X(E)],_},{});return Object.keys(h).sort(function(_,E){return h[_]-h[E]})}function uo(e){if(X(e)===Qe)return[];var t=We(e);return[Ct(e),t,Ct(t)]}function po(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!0:u,l=n.fallbackPlacements,c=n.padding,d=n.boundary,m=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,_=h===void 0?!0:h,E=n.allowedAutoPlacements,b=t.options.placement,g=X(b),M=g===b,O=l||(M||!_?[We(b)]:uo(b)),v=[b].concat(O).reduce(function(Ee,te){return Ee.concat(X(te)===Qe?co(t,{placement:te,boundary:d,rootBoundary:m,padding:c,flipVariations:_,allowedAutoPlacements:E}):te)},[]),T=t.rects.reference,A=t.rects.popper,P=new Map,C=!0,U=v[0],N=0;N<v.length;N++){var R=v[N],Y=X(R),B=_e(R)===de,ie=[x,$].indexOf(Y)>=0,ae=ie?"width":"height",q=Oe(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:f,padding:c}),K=ie?B?G:W:B?$:x;T[ae]>A[ae]&&(K=We(K));var Fe=We(K),se=[];if(i&&se.push(q[Y]<=0),s&&se.push(q[K]<=0,q[Fe]<=0),se.every(function(Ee){return Ee})){U=R,C=!1;break}P.set(R,se)}if(C)for(var qe=_?3:1,mt=function(te){var Ue=v.find(function($e){var le=P.get($e);if(le)return le.slice(0,te).every(function(Et){return Et})});if(Ue)return U=Ue,"break"},Se=qe;Se>0;Se--){var Ve=mt(Se);if(Ve==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const fo={name:"flip",enabled:!0,phase:"main",fn:po,requiresIfExists:["offset"],data:{_skip:!1}};function Ht(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xt(e){return[x,G,$,W].some(function(t){return e[t]>=0})}function _o(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=Oe(t,{elementContext:"reference"}),s=Oe(t,{altBoundary:!0}),l=Ht(u,o),c=Ht(s,r,i),d=xt(l),m=xt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_o};function mo(e,t,n){var o=X(e),r=[W,x].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],s=i[1];return u=u||0,s=(s||0)*r,[W,G].indexOf(o)>=0?{x:s,y:u}:{x:u,y:s}}function Eo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=Ot.reduce(function(d,m){return d[m]=mo(m,t.rects,i),d},{}),s=u[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const vo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Eo};function bo(e){var t=e.state,n=e.name;t.modifiersData[n]=Bt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Io={name:"popperOffsets",enabled:!0,phase:"read",fn:bo,data:{}};function To(e){return e==="x"?"y":"x"}function go(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!1:u,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.padding,f=n.tether,h=f===void 0?!0:f,_=n.tetherOffset,E=_===void 0?0:_,b=Oe(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:d}),g=X(t.placement),M=_e(t.placement),O=!M,v=ot(g),T=To(v),A=t.modifiersData.popperOffsets,P=t.rects.reference,C=t.rects.popper,U=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,N=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(A){if(i){var B,ie=v==="y"?x:W,ae=v==="y"?$:G,q=v==="y"?"height":"width",K=A[v],Fe=K+b[ie],se=K-b[ae],qe=h?-C[q]/2:0,mt=M===de?P[q]:C[q],Se=M===de?-C[q]:-P[q],Ve=t.elements.arrow,Ee=h&&Ve?nt(Ve):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),Ue=te[ie],$e=te[ae],le=Me(0,P[q],Ee[q]),Et=O?P[q]/2-qe-le-Ue-N.mainAxis:mt-le-Ue-N.mainAxis,Rr=O?-P[q]/2+qe+le+$e+N.mainAxis:Se+le+$e+N.mainAxis,vt=t.elements.arrow&&ge(t.elements.arrow),Dr=vt?v==="y"?vt.clientTop||0:vt.clientLeft||0:0,sn=(B=R==null?void 0:R[v])!=null?B:0,Br=K+Et-sn-Dr,Hr=K+Rr-sn,ln=Me(h?Be(Fe,Br):Fe,K,h?oe(se,Hr):se);A[v]=ln,Y[v]=ln-K}if(s){var cn,xr=v==="x"?x:W,Wr=v==="x"?$:G,ce=A[T],Ge=T==="y"?"height":"width",un=ce+b[xr],dn=ce-b[Wr],bt=[x,W].indexOf(g)!==-1,pn=(cn=R==null?void 0:R[T])!=null?cn:0,fn=bt?un:ce-P[Ge]-C[Ge]-pn+N.altAxis,_n=bt?ce+P[Ge]+C[Ge]-pn-N.altAxis:dn,hn=h&&bt?Gn(fn,ce,_n):Me(h?fn:un,ce,h?_n:dn);A[T]=hn,Y[T]=hn-ce}t.modifiersData[o]=Y}}const Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:go,requiresIfExists:["offset"]};function Ao(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oo(e){return e===k(e)||!z(e)?rt(e):Ao(e)}function wo(e){var t=e.getBoundingClientRect(),n=pe(t.width)/e.offsetWidth||1,o=pe(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Lo(e,t,n){n===void 0&&(n=!1);var o=z(t),r=z(t)&&wo(t),i=ee(t),u=fe(e,r,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Z(t)!=="body"||at(i))&&(s=Oo(t)),z(t)?(l=fe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=it(i))),{x:u.left+s.scrollLeft-l.x,y:u.top+s.scrollTop-l.y,width:u.width,height:u.height}}function yo(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Po(e){var t=yo(e);return Wn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function No(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function So(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wt={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Uo(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Wt:r;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},m=[],f=!1,h={state:d,setOptions:function(g){var M=typeof g=="function"?g(d.options):g;E(),d.options=Object.assign({},i,d.options,M),d.scrollParents={reference:ne(s)?Ae(s):s.contextElement?Ae(s.contextElement):[],popper:Ae(l)};var O=Po(So([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(v){return v.enabled}),_(),h.update()},forceUpdate:function(){if(!f){var g=d.elements,M=g.reference,O=g.popper;if(kt(M,O)){d.rects={reference:Lo(M,ge(O),d.options.strategy==="fixed"),popper:nt(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var T=d.orderedModifiers[v],A=T.fn,P=T.options,C=P===void 0?{}:P,U=T.name;typeof A=="function"&&(d=A({state:d,options:C,name:U,instance:h})||d)}}}},update:No(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){E(),f=!0}};if(!kt(s,l))return h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function _(){d.orderedModifiers.forEach(function(b){var g=b.name,M=b.options,O=M===void 0?{}:M,v=b.effect;if(typeof v=="function"){var T=v({state:d,name:g,instance:h,options:O}),A=function(){};m.push(T||A)}})}function E(){m.forEach(function(b){return b()}),m=[]}return h}}var Co=[to,Io,Qn,qn,vo,fo,Mo,jn,ho],Ft=Uo({defaultModifiers:Co});function lt(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let F;const we={},ct={SHIFT:"shift-key"};function qt(){F&&(document.removeEventListener("click",F.globalOnClick),document.removeEventListener("keyup",F.globalOnKeyup),document.removeEventListener("keydown",F.globalOnKeydown),F=null)}function ut(){const e=document.querySelectorAll(`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(a.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const o=document.querySelector(`[aria-controls="${n}"]`);o&&o.setAttribute("aria-expanded","false")}lt(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function Ro(){F&&qt(),F={},F.globalOnClick=ut,document.addEventListener("click",F.globalOnClick),F.globalOnKeyup=e=>{e.key==="Escape"&&ut(),e.shiftKey||(we[ct.SHIFT]=!1),we[e.key]=!1},document.addEventListener("keyup",F.globalOnKeyup),F.globalOnKeydown=e=>{e.shiftKey&&(we[ct.SHIFT]=!0),we[e.key]=!0},document.addEventListener("keydown",F.globalOnKeydown)}function Do(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Le(e,t,n,o,r){let i=NaN,u=NaN;const s=300,l=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{Ft(t,n,{placement:(r==null?void 0:r.popupPlacement)||Je.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),lt(n,!0,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach(h=>h.classList.add(a.TOOLTIP__WRAPPER__HIDDEN))},f))}function m(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{lt(n,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},f))}if(r!=null&&r.preventOnClickHandling?(J(!!e.onclick,"popupFocusHandler: wrapper already has an onclick"),e.onclick=f=>{f.preventDefault(),f.stopPropagation()}):(e.addEventListener("focusin",()=>d(l)),e.addEventListener("focusout",()=>m(l))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(s)),e.addEventListener("mouseleave",()=>m(s))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=f=>{var _;const h=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(f.stopPropagation(),f.preventDefault(),h&&t.getAttribute("aria-expanded")==="true"?(m(c),(_=document.activeElement)==null||_.blur()):(Do()&&ut(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const Bo=`<div class="popup__wrapper popup__wrapper--hidden">
|
|
134
134
|
<div class="popup__content">
|
|
135
135
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
136
136
|
</div>
|
|
137
137
|
</div>
|
|
138
|
-
`;function
|
|
138
|
+
`;function dt(e,t){const n=e.getAttribute("id");if(!n)throw new Error("renderPopup: labelledByElement does not have an `id` attribute");const o=S();e.setAttribute("aria-controls",o);const r=I(Bo);if(r.setAttribute("id",o),r.setAttribute("aria-labelledby",n),t!=null&&t.removePopupArrow){const i=r.querySelector(p(a.POPUP_ARROW));if(!i)throw new Error("renderPopup(): popup arrow missing (I wanted to remove it!!)");i.remove()}return r}function Ho(e){const t=e.closest("li");if(!t)throw console.error("element",e),new Error("toggleChildMenuExpansion: parent not found for child");t.querySelectorAll(":scope > ul").forEach(n=>{var i;const o=(i=n.closest("li"))==null?void 0:i.querySelector(p(a.POPUP_MENU__BUTTON_TITLE));if(!o)throw new Error("toggleChildMenuExpansion: button not found");const r=o.querySelector(`:scope > ${p(a.POPUP_MENU__CHEVRON)}`);if(!r)throw new Error("toggleChildMenuExpansion: chevron not found");n.classList.toggle(a.VISUALLY_HIDDEN),n.classList.contains(a.VISUALLY_HIDDEN)?(o.setAttribute("aria-expanded","false"),r.classList.add(a.IS_CLOSED),r.classList.remove(a.IS_OPEN)):(o.setAttribute("aria-expanded","true"),r.classList.remove(a.IS_CLOSED),r.classList.add(a.IS_OPEN))})}function xo(e){return t=>{t.preventDefault(),t.stopPropagation(),Ho(e)}}function Vt(){const e=I(On);return e.classList.add(a.IS_CLOSED),e}function Wo(e,t,n){var f,h;const o=I(Ln),r=o.querySelector(p(a.POPUP_MENU__TITLE));if(!r)throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");const i=o.querySelector(p(a.POPUP_MENU__BUTTON_TITLE));if(!i)throw new Error("renderPopupMenuItem: menuButton not found");const u=o.querySelector(p(a.POPUP_MENU__LINK_TITLE));if(!u)throw new Error("renderPopupMenuItem: aHref not found");const s=o.querySelector(p(a.POPUP_MENU__PLAIN_TITLE));if(!s)throw new Error("renderPopupMenuItem: plainTitle not found");const l=o.querySelector(p(a.POPUP_MENU__DIVIDER));if(!l)throw new Error("renderPopupMenuItem: menuDivider not found");const c=o.querySelector(`button ${p(a.POPUP_MENU__LINK_TEXT)}`);if(!c)throw new Error("renderPopupMenuItem: titleSpanButton not found");const d=o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);if(!d)throw new Error("renderPopupMenuItem: titleSpanLink not found");const m=t.actionMenu&&[...t.actionMenu];if(m&&(t.actionFunction||t.actionUrl||t.actionFunctionUrl)&&m.unshift({actionFunction:t.actionFunction,actionFunctionUrl:t.actionFunctionUrl,actionUrl:t.actionUrl,className:t.className,icon:t.icon,title:`${t.title} (page)`}),m){let _;switch(n.childrenMenuType){case V.FLYOUT:{_=Vt(),i.appendChild(_),i.setAttribute("id",S());const E=pt({menuItems:m,title:t.title},i,{...n,removePopupArrow:!0});o.appendChild(E),Le(o,i,E,"menu",{popupPlacement:Je.RIGHT_START,preventOnClickHandling:!0,shouldFocusOnHover:!0}),u.remove(),s.remove();break}case V.INLINE:{const E=he(m,n),b=S();E.setAttribute("id",b),E.classList.add(a.VISUALLY_HIDDEN),o.appendChild(E),i.onclick=xo(i),i.setAttribute("aria-expanded","false"),i.setAttribute("aria-controls",b),_=Vt(),i.appendChild(_),u.remove(),s.remove(),o.addEventListener("focusin",g=>{var M,O,v,T;for(let A=(M=g.target)==null?void 0:M.closest("ul");A;A=(O=A.parentElement)==null?void 0:O.closest("ul"))A.classList.remove(a.VISUALLY_HIDDEN),i.setAttribute("aria-expanded","true"),g.target!==i&&((v=_==null?void 0:_.classList)==null||v.remove(a.IS_CLOSED),(T=_==null?void 0:_.classList)==null||T.add(a.IS_OPEN))});break}case V.MEGA_MENU:{const E=he(m,n),b=S();E.setAttribute("id",b),o.appendChild(E),u.remove(),i.remove(),s.appendChild(document.createTextNode(t.title));break}default:throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`)}l.remove()}else if(t.actionFunction)i.onclick=t.actionFunction,u.remove(),l.remove(),s.remove();else if(t.actionUrl)u.setAttribute("href",t.actionUrl.url),i.remove(),l.remove(),s.remove();else if(t.actionFunctionUrl)u.setAttribute("href",t.actionFunctionUrl.url),u.onclick=_=>{var E,b;(E=t.actionFunctionUrl)!=null&&E.skipHandleEvent||(_.stopPropagation(),_.preventDefault()),(b=t.actionFunctionUrl)==null||b.actionFunction(_)},i.remove(),l.remove(),s.remove();else if(t.isDivider)r.remove(),o.setAttribute("aria-hidden","true"),o.setAttribute("role","separator");else throw console.error(t),new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");if(!t.isDivider&&(c.appendChild(document.createTextNode(t.title)),d.appendChild(document.createTextNode(t.title)),(f=t.actionUrl)!=null&&f.openInNewTab||(h=t.actionFunctionUrl)!=null&&h.openInNewTab)){u.setAttribute("target","_blank");const _=I(gt);c.appendChild(_),d.appendChild(_)}return(t.isSelected||t.actionMenu&&De(t.actionMenu,["actionMenu"],_=>!!_.isSelected))&&(i.classList.add(a.MENU_ITEM__SELECTED),u.classList.add(a.MENU_ITEM__SELECTED)),t.isSelected?o.classList.add(a.MENU_ITEM__SELECTED):o.classList.remove(a.MENU_ITEM__SELECTED),e.appendChild(o),o}function he(e,t){const n=I(wn);return e==null||e.forEach(o=>Wo(n,o,t)),n}function pt(e,t,n){const o=dt(t,{removePopupArrow:n.removePopupArrow}),r=o.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!r)throw new Error("renderPopupMenu: contentWrapper not found");const i=he(e.menuItems,n);return i.setAttribute("aria-label",e.title),r.appendChild(i),o}const ko=`<div class="utds-badge__wrapper">
|
|
139
139
|
<span class="utds-badge__value"></span>
|
|
140
140
|
<span class="utds-badge__label visually-hidden"></span>
|
|
141
141
|
</div>
|
|
142
|
-
`;function
|
|
142
|
+
`;function ft(e){let t=null;if(e){t=I(ko),t.classList.add(a.BADGE_WRAPPER__ACTION_ITEM);const n=t.querySelector(p(a.BADGE__LABEL));if(!n)throw new Error("renderActionItemBadge: badgeLabel not found");if(n.appendChild(document.createTextNode(e.label)),e.value||e.value===0){const o=t.querySelector(p(a.BADGE__VALUE));if(!o)throw new Error("renderActionItemBadge: badgeValue not found");o.appendChild(document.createTextNode(`${e.value}`))}else t.classList.add(a.BADGE_WRAPPER__SMALL);e.className&&t.classList.add(e.className)}return t}function Fo(e){const t=I(Mn);t.getAttribute("id")||t.setAttribute("id",S());const n=document.createTextNode(e.title),o=t instanceof HTMLCollection?t[0]:t;e.showTitle&&o.classList.add(a.ACTION_ITEM__ICON_BUTTON_TITLE),o.classList.add(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER),o.classList.remove(a.ACTION_ITEM);const r=o.querySelector(p(a.ACTION_ITEM__TITLE));if(!r)throw new Error("renderActionItem: titleDiv not found");r.appendChild(n),e.showTitle?r.classList.remove(a.VISUALLY_HIDDEN):r.classList.add(a.VISUALLY_HIDDEN);const i=t.querySelector(p(a.ACTION_ITEM__ICON_BUTTON));if(!i)throw new Error("renderActionItem: iconButton not found");e.className&&i.classList.add(e.className);const u=ft(e.badge);u&&i.appendChild(u);const s=I(e.icon);s.setAttribute("role","presentation"),i.appendChild(s);let l=null;if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const c=S();i.setAttribute("id",c),l=I(typeof e.actionDom=="function"?e.actionDom():e.actionDom)}else if(e.actionPopupMenu){const c=S();i.setAttribute("id",c),l=I(An);const d=l.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!d)throw new Error("renderMobileActionItem: actionItemContentTitle not found");d.appendChild(document.createTextNode(e.actionPopupMenu.title));const m=he(e.actionPopupMenu.menuItems,{childrenMenuType:V.INLINE});l.appendChild(m)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return{actionItemElement:t,actionItemContent:l}}function qo(){var u,s,l;const e=document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);if(!e)throw new Error("renderMobileActionItems: homeActionItem not found");const t=e.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("renderMobileActionItems: homeActionItemWrapper not found");const o=!!w().utahId?document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID):null,r=(u=o==null?void 0:o.closest)==null?void 0:u.call(o,p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));(l=(s=[...w().actionItems||[]].reverse())==null?void 0:s.map(c=>({actionItem:c,...Fo(c)})))==null||l.forEach(({actionItem:c,actionItemContent:d,actionItemElement:m})=>{let f;switch(c.mobileMenuLocation){case"left":f=t;break;case"none":f=null;break;case"right":default:f=r||t;break}if(f&&(f.after(m),d)){const h=je(d);let _=null;c.actionDom?_="dialog":c.actionPopupMenu&&(_="menu"),Xe(m,h,m,{ariaHasPopupType:_,shouldOnClickCloseMenu:!1})}}),w().mainMenu||(e.remove(),t.remove())}const Vo=`<div class="utds-footer utah-design-system">
|
|
143
143
|
<div class="utds-footer__horizontal-divider">
|
|
144
144
|
<hr />
|
|
145
145
|
</div>
|
|
@@ -157,44 +157,44 @@
|
|
|
157
157
|
</div>
|
|
158
158
|
<div class="utds-footer__links">
|
|
159
159
|
<ul>
|
|
160
|
-
<li><a href="
|
|
161
|
-
<li><a href="
|
|
162
|
-
<li><a href="
|
|
163
|
-
<li><a href="
|
|
164
|
-
<li><a href="
|
|
160
|
+
<li><a href="https://www.utah.gov" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
|
|
161
|
+
<li><a href="https://www.utah.gov/disclaimer.html" target="__blank" rel="noreferrer">Terms of Use</a></li>
|
|
162
|
+
<li><a href="https://www.utah.gov/privacypolicy.html" target="__blank" rel="noreferrer">Privacy Policy</a></li>
|
|
163
|
+
<li><a href="https://www.utah.gov/accessibility.html" target="__blank" rel="noreferrer">Accessibility</a></li>
|
|
164
|
+
<li><a href="https://www.utah.gov/translate.html" target="__blank" rel="noreferrer">Translate</a></li>
|
|
165
165
|
</ul>
|
|
166
166
|
</div>
|
|
167
167
|
</div>
|
|
168
|
-
`;let re=null;function
|
|
169
|
-
`,
|
|
170
|
-
`,
|
|
171
|
-
|
|
172
|
-
`,
|
|
173
|
-
`,
|
|
174
|
-
`,
|
|
168
|
+
`;let re=null;function $o(){var o,r,i,u,s,l,c,d,m,f,h,_,E,b,g,M;const e=w(),t=document.querySelector(p(a.FOOTER));let n=t;if(e.footer===null)t==null||t.remove();else if(((o=re==null?void 0:re.footer)==null?void 0:o.domLocationTarget)!==((r=e==null?void 0:e.footer)==null?void 0:r.domLocationTarget)||((i=re==null?void 0:re.footer)==null?void 0:i.showHorizontalRule)!==((u=e==null?void 0:e.footer)==null?void 0:u.showHorizontalRule)||!t){t&&t.remove(),n=I(Vo);let v=document.body;if((s=e==null?void 0:e.footer)!=null&&s.domLocationTarget){const T=[(l=e==null?void 0:e.footer)==null?void 0:l.domLocationTarget.cssSelector,(c=e==null?void 0:e.footer)==null?void 0:c.domLocationTarget.element,(d=e==null?void 0:e.footer)==null?void 0:d.domLocationTarget.elementFunction].filter(A=>A);if(J(T.length<1,"renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"),J(T.length>1,"renderFooter: footer.domLocationTarget must only have one target specified"),(m=e==null?void 0:e.footer)!=null&&m.domLocationTarget.cssSelector)v=document.querySelector((f=e==null?void 0:e.footer)==null?void 0:f.domLocationTarget.cssSelector),J(!v,`renderFooter: element not found for domLocationTarget.cssSelector ${(h=e==null?void 0:e.footer)==null?void 0:h.domLocationTarget.cssSelector}`);else if((_=e==null?void 0:e.footer)!=null&&_.domLocationTarget.element)v=(E=e==null?void 0:e.footer)==null?void 0:E.domLocationTarget.element;else if((b=e==null?void 0:e.footer)!=null&&b.domLocationTarget.elementFunction)v=(g=e==null?void 0:e.footer)==null?void 0:g.domLocationTarget.elementFunction(),J(!v,"renderFooter: element not returned from domLocationTarget.elementFunction");else throw new Error("renderFooter: domLocationTarget must have at least one field set")}if(v==null||v.appendChild(n),!((M=e==null?void 0:e.footer)!=null&&M.showHorizontalRule)){const T=document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));J(!T,"renderFooter: cannot remove horizontal rule; not found"),T==null||T.remove()}re=JSON.parse(JSON.stringify(e))}return n}const Go=`<div class="utds-citizen-experience-wrapper--mobile"></div>
|
|
169
|
+
`,zo=`<h1 class="utds-logo-wrapper"></h1>
|
|
170
|
+
`,Yo=`<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
|
|
171
|
+
`,Ko=`<span class="utds-logo-vert-line"></span>
|
|
172
|
+
`,jo=`<div class="utds-citizen-experience-wrapper"></div>
|
|
173
|
+
`,Zo=`<div class="utds-action-items-wrapper"></div>
|
|
174
|
+
`,Xo=`<div class="utds-header-action-item">
|
|
175
175
|
<button type="button" class="icon-button utds-header-action-item__icon-button">
|
|
176
176
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
177
177
|
</button>
|
|
178
178
|
</div>
|
|
179
|
-
`,
|
|
179
|
+
`,Jo=`<div class="tooltip__wrapper tooltip__wrapper--hidden" aria-hidden="true">
|
|
180
180
|
<div class="tooltip__content">
|
|
181
181
|
<div class="tooltip__arrow" data-popper-arrow></div>
|
|
182
182
|
</div>
|
|
183
183
|
</div>
|
|
184
|
-
`;let me=NaN;function ye(e,t){const n=I(
|
|
185
|
-
|
|
186
|
-
`,Pe={PROFILE:"https://id.utah.gov",SIGN_IN:`https://id.utah.gov/login?goto=${window.location}`,SIGN_OUT:`https://id.utah.gov/logout?goto=${window.location}`,USER_INFO:"https://id.utah.gov/api/userInfo"},
|
|
184
|
+
`;let me=NaN;function ye(e,t){const n=I(Jo),o=n.querySelector(p(a.TOOLTIP__CONTENT));if(!o)throw new Error("hookupToolTip: toolTipContent not found");o.appendChild(t),e.appendChild(n);const r=Ft(e,n,{placement:Je.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,5]}}]});if(e.onmouseenter||e.onmouseleave)throw new Error("hookupToolTip: element already has an onmouseenter and/or onmouseleave event");let i=NaN;e.onmouseenter=()=>{clearTimeout(i),i=window.setTimeout(()=>{clearTimeout(me),me=-1;const u=e.querySelector(p(a.POPUP_WRAPPER));(!u||u.classList.contains(a.POPUP__HIDDEN))&&(n.classList.remove(a.TOOLTIP__WRAPPER__HIDDEN),n.classList.add(a.TOOLTIP__WRAPPER__VISIBLE),r.update().catch(s=>console.error(s)))},me?0:500)},e.onmouseleave=()=>{clearTimeout(i),n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE),clearTimeout(me),me=window.setTimeout(()=>{me=NaN},500)}}function Qo(e){const t=I(Xo),n=document.createTextNode(e.title),o=t instanceof HTMLCollection?t[0]:t;e.showTitle&&o.classList.add(a.ACTION_ITEM__ICON_BUTTON_TITLE);const r=o.querySelector(p(a.ACTION_ITEM__TITLE));if(!r)throw new Error("renderActionItem: titleDiv not found");r.appendChild(n),e.showTitle?r.classList.remove(a.VISUALLY_HIDDEN):r.classList.add(a.VISUALLY_HIDDEN);const i=t.querySelector(p(a.ACTION_ITEM__ICON_BUTTON));if(!i)throw new Error("renderActionItem: iconButton not found");e.className&&i.classList.add(e.className);const u=ft(e.badge);u&&i.appendChild(u);const s=I(e.icon);if(s.setAttribute("role","presentation"),i.appendChild(s),!(i instanceof HTMLElement))throw new Error("renderActionItem: iconButton is not an HTMLElement");if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const l=S();i.setAttribute("id",l);const c=dt(i),d=c.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!d)throw new Error("renderPopupMenu: contentWrapper not found");d.appendChild(I(typeof e.actionDom=="function"?e.actionDom():e.actionDom)),t.appendChild(c),Le(o,i,c,"dialog",void 0)}else if(e.actionPopupMenu){const l=S();i.setAttribute("id",l);const c=pt(e.actionPopupMenu,i,{childrenMenuType:V.INLINE});t.appendChild(c),Le(o,i,c,"menu",void 0)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return ye(t,document.createTextNode(e.title)),t}function er(){var n,o;const{actionItems:e}=w();let t=null;return e!=null&&e.length&&(t=I(Zo),(o=(n=w().actionItems)==null?void 0:n.map(r=>Qo(r)))==null||o.forEach(r=>t.appendChild(r))),t}const tr=`<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
185
|
+
`,$t=`<div class="utds-utah-id-wrapper"></div>
|
|
186
|
+
`,Pe={PROFILE:"https://id.utah.gov",SIGN_IN:`https://id.utah.gov/login?goto=${window.location}`,SIGN_OUT:`https://id.utah.gov/logout?goto=${window.location}`,USER_INFO:"https://id.utah.gov/api/userInfo"},nr=`<div class="vertical-menu__wrapper">
|
|
187
187
|
<div class="vertical-menu__wrapper-title"></div>
|
|
188
188
|
</div>
|
|
189
|
-
`;function Gt(e,t){const n=I(
|
|
189
|
+
`;function Gt(e,t){const n=I(nr),o=n.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!o)throw new Error("renderMenuWithTitle: menuTitleDiv not found");return o.appendChild(document.createTextNode(t)),n.appendChild(e),n}let y=null;function zt(e){y=e,document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach(n=>{var o;if(n){if(n.innerHTML="",y!=null&&y.userInfo&&((o=y.userInfo)!=null&&o.authenticated)){const u=document.createElement("span");u.appendChild(document.createTextNode("UtahID Account:")),u.classList.add(a.VISUALLY_HIDDEN),n.appendChild(u),n.appendChild(document.createTextNode(`Hello, ${y.userInfo.first||""}`))}else n.appendChild(document.createTextNode("UtahID Sign In"));const r=n.getAttribute("aria-controls");if(!r)throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);const i=document.getElementById(r);i&&_t(n,i)}})}function _t(e,t){var n;e&&t&&(!!(y!=null&&y.isDefinitive)&&!!((n=y==null?void 0:y.userInfo)!=null&&n.authenticated)?(e.setAttribute("aria-haspopup","menu"),e.setAttribute("aria-expanded","false"),t.removeAttribute("aria-hidden")):(e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),t.setAttribute("aria-hidden","true")))}function Yt(){const e=I(tr);return e.setAttribute("id",S()),y&&zt(y),e}function Kt(e){var l,c,d;const t=w(),n=t.utahId!==!1&&t.utahId!==!0&&((l=t.utahId)==null?void 0:l.onProfile),o=t.utahId!==!1&&t.utahId!==!0&&((c=t.utahId)==null?void 0:c.onSignOut),r=[...t.utahId!==!0&&t.utahId!==!1&&((d=t.utahId)==null?void 0:d.menuItems)||[]];r.length&&r.push({isDivider:!0,title:"--divider--"});const i=[...r,{actionUrl:n?void 0:{url:Pe.PROFILE,openInNewTab:!0},actionFunction:n||void 0,className:"external-link",title:"UtahID Profile"},{actionUrl:o?void 0:{url:Pe.SIGN_OUT},actionFunction:o||void 0,title:"Sign Out"}],u=he(i,{childrenMenuType:V.INLINE}),s=e?Gt(u,"Utah ID Menu"):u;return s.setAttribute("aria-label","Utah Id Menu"),s.setAttribute("id",S()),s}function or(){var s;const e=I($t),t=Yt();t.setAttribute("id",S()),e.appendChild(t);const n=Kt(!1),o=dt(t),r=o.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!r)throw new Error("renderUtahIdForDesktop: contentWrapper not found");r.appendChild(n),e.appendChild(o),_t(t,o);const i=w(),u=i.utahId!==!1&&i.utahId!==!0&&((s=i.utahId)==null?void 0:s.onSignIn);return Le(e,t,o,"menu",{isPerformPopup:()=>{var l;return!!(y!=null&&y.isDefinitive)&&!!((l=y==null?void 0:y.userInfo)!=null&&l.authenticated)},onClick:l=>{var c;(!(y!=null&&y.isDefinitive)||!((c=y==null?void 0:y.userInfo)!=null&&c.authenticated))&&(u?u(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Pe.SIGN_IN))}}),e}function rr(){const e=I($t),t=Yt(),n=t.getAttribute("id");if(!n)throw new Error("renderUtahIdForMobile: utahIdButton has no id");e.appendChild(t);const o=Kt(!0),r=o.getAttribute("id");if(!r)throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");return e.appendChild(o),t.setAttribute("aria-controls",r),o.setAttribute("aria-labelledby",n),_t(t,o),{button:t,menu:o}}function ir(){const e=I(jo),t=er();return t&&e.appendChild(t),w().utahId!==!1&&e.appendChild(or()),e}const ar=`<div class="utds-title-wrapper">
|
|
190
190
|
<div class="utds-title-wrapper__logo"></div>
|
|
191
191
|
<div class="utds-title-wrapper__title"></div>
|
|
192
192
|
</div>
|
|
193
|
-
`,
|
|
193
|
+
`,sr=`<a class="utds-title-wrapper">
|
|
194
194
|
<div class="utds-title-wrapper__logo"></div>
|
|
195
195
|
<div class="utds-title-wrapper__title"></div>
|
|
196
196
|
</a>
|
|
197
|
-
`;function
|
|
197
|
+
`;function lr(){const e=w().titleURL,t=I(e?sr:ar);if(!t)throw new Error("LogoTitle: titleWrapper is null");e&&t.setAttribute("href",e);const n=t.querySelector(p(a.TITLE__LOGO));if(!n)throw new Error("LogoTitle: logoWrapper is null");const o=w().logo,r=w().showTitle,i=w().title;if(o){let l;if(o.htmlString)l=I(j(o.htmlString));else if(o.element)l=j(o.element);else if(o.imageUrl)l=I(`<img src=${j(o.imageUrl)} id="design-system-logo" />`);else throw new Error("LogoTitle: logo set but has no settings");l.setAttribute("role","presentation"),n.appendChild(l)}else t.removeChild(n);const u=document.createTextNode(i),s=t.querySelector(p(a.TITLE__TITLE));return s==null||s.appendChild(u),!r&&o&&(s==null||s.classList.add(a.VISUALLY_HIDDEN)),t}const cr=`<div class="utah-logo-wrapper">
|
|
198
198
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
199
199
|
<span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
|
|
200
200
|
more.</span>
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
</svg>
|
|
212
212
|
</button>
|
|
213
213
|
</div>
|
|
214
|
-
`,
|
|
214
|
+
`,ur=`<div class="utah-logo-wrapper">
|
|
215
215
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
216
216
|
<span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
|
|
217
217
|
more.</span>
|
|
@@ -228,18 +228,24 @@
|
|
|
228
228
|
</svg>
|
|
229
229
|
</button>
|
|
230
230
|
</div>
|
|
231
|
-
`,
|
|
231
|
+
`,dr=`<div class="utds-official-website-hover__wrapper">
|
|
232
232
|
How do I know itβs official?<br />
|
|
233
233
|
Learn more.
|
|
234
234
|
</div>
|
|
235
|
-
`;function
|
|
235
|
+
`;function pr(){let e;switch(w().size){case ue.LARGE:e=cr;break;case ue.SMALL:case ue.MEDIUM:e=ur;break;default:throw new Error(`Unknown settings size: '${w().size}'`)}const t=I(e);if(!t.querySelector(p(a.LOGO_SVG)))throw new Error("UtahLogo: logoButton not found");return t.setAttribute("id",S()),ye(t,I(dr)),t}function fr(){var n;const e=I(Yo);e.classList.add(`utds-header--${((n=w().size)==null?void 0:n.toLowerCase())||ue.MEDIUM}`);const t=I(zo);return e.appendChild(t),t.appendChild(pr()),t.appendChild(I(Ko)),t.appendChild(lr()),e.appendChild(ir()),e.appendChild(I(Go)),e}const _r=`<li class="menu-item">
|
|
236
236
|
<span class="menu-item__title">
|
|
237
|
-
<button class="menu-item__button-title" type="button"
|
|
238
|
-
|
|
237
|
+
<button class="menu-item__button-title" type="button">
|
|
238
|
+
<span class="menu-item__link-title-span"></span>
|
|
239
|
+
<span class="menu-item__menu-arrow utds-icon-before-chevron-down" aria-hidden="true"></span>
|
|
240
|
+
</button>
|
|
241
|
+
<a class="menu-item__link-title">
|
|
242
|
+
<span class="menu-item__link-title-span"></span>
|
|
243
|
+
<span class="menu-item__menu-arrow utds-icon-before-chevron-down" aria-hidden="true"></span>
|
|
244
|
+
</a>
|
|
239
245
|
<span class="menu-chiclet"></span>
|
|
240
246
|
</span>
|
|
241
247
|
</li>
|
|
242
|
-
`,
|
|
248
|
+
`,hr=`<div class="utah-design-system main-menu__outer">
|
|
243
249
|
<div class="main-menu__wrapper">
|
|
244
250
|
<nav class="horizontal-menu main-menu__nav">
|
|
245
251
|
<h2 class="main-menu__title visually-hidden"></h2>
|
|
@@ -261,12 +267,11 @@
|
|
|
261
267
|
id="utds-main-menu__hamburger">
|
|
262
268
|
<div>
|
|
263
269
|
<span class="utds-icon-before-hamburger" id="utds-main-menu__hamburger-icon" aria-hidden="true"></span>
|
|
264
|
-
<span class="visually-hidden">Open Mobile Menu</span>
|
|
265
270
|
</div>
|
|
266
271
|
</button>
|
|
267
272
|
</div>
|
|
268
273
|
</div>
|
|
269
|
-
`,
|
|
274
|
+
`,mr=`<div class="utah-design-system" id="search-modal">
|
|
270
275
|
<div class="search-modal__close-button-wrapper">
|
|
271
276
|
<button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
|
|
272
277
|
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
@@ -291,7 +296,7 @@
|
|
|
291
296
|
</div>
|
|
292
297
|
<div class="search-backdrop modal-backdrop backdrop-dark"></div>
|
|
293
298
|
</div>
|
|
294
|
-
`;function
|
|
299
|
+
`;function ke(){const e=document.getElementById(a.SEARCH__SEARCH_MODAL);if(!e)throw new Error("closSearchModal: searchModal not found");e.remove();const t=document.querySelector(p(a.MAIN_MENU__SEARCH));if(!t)throw new Error("closSearchModal: searchIcon not found");t.focus()}function ht(){const e=I(mr),t=e.querySelector(p(a.SEARCH__SEARCH_BACKDROP));if(!t)throw new Error("showSearchModal: backdrop not found");const n=e.querySelector(p(a.SEARCH__SEARCH_CLOSE_BUTTON));if(!n)throw new Error("showSearchModal: closeButton not found");const o=e.querySelector(p(a.SEARCH__SEARCH_BUTTON));if(!o)throw new Error("showSearchModal: searchButton not found");const r=e.querySelector(p(a.SEARCH__SEARCH_BUTTON_WRAPPER));if(!r)throw new Error("showSearchModal: searchButtonWrapper not found");const i=e.querySelector(p(a.SEARCH__SEARCH_INPUT));if(!i)throw new Error("showSearchModal: searchInput not found");o.onclick=s=>{s.preventDefault(),s.stopPropagation(),ke();const{onSearch:l}=w();l&&(l==null||l(i.value))},n.onclick=s=>{s.preventDefault(),s.stopPropagation(),ke()},t.onclick=s=>{s.preventDefault(),s.stopPropagation(),ke()},document.body.appendChild(e),i.focus(),i.oninput=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},o.onfocus=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},e.onkeyup=s=>{(s.code==="Escape"||s.key==="Escape")&&(s.preventDefault(),s.stopPropagation(),ke())},n.addEventListener("focusout",s=>{s.preventDefault(),s.stopPropagation(),we[ct.SHIFT]?o.focus():i.focus()});const u=e.querySelector(".search-modal__hidden-last-focusable");if(!u)throw new Error("showSearchModal: hiddenLastFocusableButton not found");u.addEventListener("focusin",s=>{s.preventDefault(),s.stopPropagation(),n.focus()})}function Er(){var s;const e=w(),t=I(hr);let n=t.querySelector(p(a.MAIN_MENU__NAV));if(!n)throw new Error("renderMainMenu(): mainMenu not created");const o=n.querySelector(p(a.MAIN_MENU__TITLE));if(!o)throw new Error("renderMainMenu(): titleTag not found");const r="main-menu__nav";if(n.setAttribute("aria-labelledby",r),o.setAttribute("id",r),e.mainMenu?o.innerHTML=e.mainMenu.title:(n.remove(),n=null),e.mainMenu){const l=n==null?void 0:n.querySelector(p(a.MAIN_MENU__MENU_TOP));if(!l)throw new Error("renderMainMenu(): mainMenuTop not found");e.mainMenu.menuItems.forEach(c=>{var b,g;const d=I(_r);l.appendChild(d);const m=L(d.querySelector(p(a.MENU_ITEM__TITLE)),`renderMainMenu(): sub menu title not found for ${c.title}`),f=L(m.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),`renderMainMenu(): button title not found for ${c.title}`);f.setAttribute("id",`${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${S()}`);const h=L(m.querySelector(p(a.MENU_ITEM__LINK_TITLE)),`renderMainMenu(): link title not found for ${c.title}`);h.setAttribute("id",`${a.MENU_ITEM__LINK_TITLE}__${c.title}-${S()}`);let _;if(c.actionFunctionUrl||c.actionUrl)_=h,f.remove();else if(c.actionMenu||c.actionFunction)_=f,h.remove();else throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);const E=L(_.querySelector(p(a.MENU_ITEM__LINK_TITLE_SPAN)),`renderMainMenu(): main menu item title span not found for: ${c.title}`);if((c.isSelected||c.actionMenu&&De(c.actionMenu,["actionMenu"],M=>!!M.isSelected))&&_.classList.add(a.MENU_ITEM__SELECTED),c.actionMenu){E.innerHTML=c.title;const M={menuItems:c.actionMenu,title:c.title},O=pt(M,_,{childrenMenuType:c.childrenMenuType||V.FLYOUT});d.appendChild(O),Le(d,_,O,"menu",{shouldFocusOnHover:!0});let v;switch(c.childrenMenuType){case V.INLINE:v=a.MENU_ITEM__INLINE;break;case V.MEGA_MENU:v=a.MENU_ITEM__MEGA_MENU;break;case V.FLYOUT:default:v=a.MENU_ITEM__FLY_OUT;break}d.classList.add(v)}else L(_.querySelector(p(a.MENU_ITEM__ARROW)),`renderMainMenu(): menu arrow not found for ${c.title}`).remove();c.actionFunction?(E.innerHTML=c.title,_.onclick=c.actionFunction):c.actionFunctionUrl?(E.innerHTML=c.title,_.setAttribute("href",c.actionFunctionUrl.url),_.onclick=M=>{var O,v;(O=c.actionFunctionUrl)!=null&&O.skipHandleEvent||(M.stopPropagation(),M.preventDefault()),(v=c.actionFunctionUrl)==null||v.actionFunction(M)}):c.actionUrl&&(E.innerHTML=c.title,_.setAttribute("href",c.actionUrl.url)),((b=c.actionUrl)!=null&&b.openInNewTab||(g=c.actionFunctionUrl)!=null&&g.openInNewTab)&&(_.setAttribute("target","_blank"),_.appendChild(I(gt)))})}let i=null;if(e.utahId){const{button:l,menu:c}=rr();i=c,L(t.querySelector(p(a.MOBILE__UTAH_ID)),"renderMainMenu: utahIdButtonWrapper not found").appendChild(l)}const u=L(t.querySelector(p(a.MAIN_MENU__SEARCH)),"renderMainMenu: searchIcon not found");if(e.onSearch){if(ye(u,document.createTextNode("Search")),u.onclick)throw new Error("searchIcon already has onclick");if(u.onclick=()=>ht(),!e.mainMenu){const l=L(document.querySelector(p(a.CITIZEN_EXPERIENCE)),"renderMainMenu: citizen experience wrapper not found"),c=I(u.outerHTML);if(ye(c,document.createTextNode("Search")),c.onclick=()=>ht(),u.classList.add(a.DESKTOP__HIDDEN),e.utahId!==!1){const d=L(document.querySelector(p(a.UTAH_ID)),"renderMainMenu: utahId wrapper not found");l.insertBefore(c,d)}else l.appendChild(c)}if(!e.mainMenu&&!e.actionItems&&e.utahId===!1){const l=I(u.outerHTML);if(ye(l,document.createTextNode("Search")),l.onclick)throw new Error("searchIconMobile already has onclick");l.onclick=()=>ht(),L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"renderMainMenu: citizen-experience--mobile not found").appendChild(l)}}return e.onSearch||((e.mainMenu||!e.mainMenu&&e.utahId)&&((s=u.parentElement)==null||s.insertBefore(I('<div class="main-menu__search-placeholder">'),u)),u.remove()),{mainMenuWrapper:t,utahIdPopup:i}}const vr=`<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
295
300
|
<h2 class="utds-official-website-popup__heading">
|
|
296
301
|
This is an official website of the State of Utah. Hereβs how you know:
|
|
297
302
|
</h2>
|
|
@@ -332,8 +337,8 @@
|
|
|
332
337
|
<span class="visually-hidden">Close official website popup</span>
|
|
333
338
|
</button>
|
|
334
339
|
</div>
|
|
335
|
-
`;function jt(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.add(a.VISUALLY_HIDDEN),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),o.setAttribute("tabIndex",-1),e.setAttribute("tabIndex",-1);const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})}function
|
|
340
|
+
`;function jt(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.add(a.VISUALLY_HIDDEN),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),o.setAttribute("tabIndex",-1),e.setAttribute("tabIndex",-1);const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})}function br(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.remove(a.VISUALLY_HIDDEN),o.removeAttribute("tabIndex"),e.removeAttribute("tabIndex"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"),e.focus();const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)}),Re()}function Ir(){const e=I(vr),n=document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG));if(!n)throw new Error("renderOfficialWebsite: logoButton not found");if(n.onclick)throw new Error("renderOfficialWebsite: logoButton already has an onclick");const o=e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));if(!o)throw new Error("renderOfficialWebsite: closeButton not found");return n.onclick=()=>{e.classList.toggle(a.VISUALLY_HIDDEN),e.classList.contains(a.VISUALLY_HIDDEN)?jt():br();const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})},o.onclick=()=>{e.classList.toggle(a.VISUALLY_HIDDEN),n.focus(),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")},o.id||(o.id=S()),e.id||(e.id=S()),n.setAttribute("aria-controls",e.id),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-labelledby",n.id),e}function Tr(e){var l,c;const{hamburger:t}=ve("hookupHamburger"),n=w();if((l=n.actionItems)==null?void 0:l.some(d=>!!d.badge)){const d=ft({label:"Home Badge"});d&&t.appendChild(d)}Re();function r(){const d=L(document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],"hookupHamburger: no action items to select on mobile hamburger open"),m=d.querySelector("button"),f=m==null?void 0:m.getAttribute("aria-controls");return{actionItem:d,actionItemWrapper:f?document.getElementById(f):null}}const i=L(document.querySelectorAll(`.${a.MOBILE_MENU__ACTION_BAR} .${a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER}`)[0],"hookupHamburger: no action items to select on mobile hamburger open"),u=(c=i.querySelector)==null?void 0:c.call(i,"button"),s=(u||i).getAttribute("id");if(!s)throw new Error("mobileMenuInteractionHandler: actionItemId not found");if(e){const d=e.getAttribute("id");if(!d)throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");(u||i).setAttribute("aria-controls",d),e.setAttribute("aria-labelledby",s)}Xe(t,()=>r().actionItemWrapper,()=>r().actionItem,{additionalOnClick:()=>jt(),ariaHasPopupType:"menu",shouldOnClickCloseMenu:!0}),J(!!t.onblur,"hookupHamburger: hamburger already has an onblur event"),t.onblur=()=>{const{mobileMenu:d}=ve("showMobileMenu");if(d.classList.contains(a.IS_OPEN)){const m=p(a.MOBILE_MENU__ACTION_BAR),f=p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER),h=p(a.ICON_BUTTON),_=document.querySelector(`${m} ${f}:first-child ${h}`);_==null||_.focus()}},(n.mainMenu||n.actionItems)&&!n.onSearch&&n.utahId===!1&&(L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"hookupHamburger: citizen experience mobile not found").appendChild(t),L(document.querySelector(p(a.MAIN_MENU)),"hookupHamburger: main menu not found").classList.add(a.MOBILE__HIDDEN)),n.onSearch&&!n.mainMenu&&L(document.querySelector(p(a.MAIN_MENU)),"renderMainMenu: main menu not found").classList.add(a.DESKTOP__HIDDEN)}const Ne={AUTOMATIC:"Automatic",NONE:"None",PROVIDED:"Provided"};let Zt=Ne.NONE;function gr(e){let t;if(e===!0)t=Ne.AUTOMATIC;else if(e===!1)t=Ne.NONE;else if(e===void 0||e.currentUser===void 0)t=Ne.AUTOMATIC;else if(e.currentUser===null||e.currentUser)t=Ne.PROVIDED;else throw new Error("determineFetchStyle: Unknown utah id fetch style");return t}const D={isDefinitive:null,lastError:null,userInfo:null};function Xt(e){var t,n;if(e.isDefinitive){zt(e);const o=(t=w())==null?void 0:t.utahId;typeof o=="object"&&((n=o.onAuthChanged)==null||n.call(o,e))}}let Jt=!0;const Mr=500;let Qt=NaN;async function en(){var o,r;let e=Promise.resolve(D);const t=w(),n=gr(t.utahId);if(D.isDefinitive===!1)e=Promise.resolve(D);else if(Jt)clearTimeout(Qt),e=new Promise(i=>{Qt=window.setTimeout(()=>{Jt=!1,en().then(u=>i(u)).catch(u=>console.error(u))},Mr)});else if(t.utahId===!1)e=Promise.resolve({isDefinitive:!0,lastError:"Utah ID is off",userInfo:null});else if(t.utahId===!0||((o=t.utahId)==null?void 0:o.currentUser)===void 0)(n!==Zt||D.isDefinitive===null)&&(D.isDefinitive=!1,e=fetch(Pe.USER_INFO,{credentials:"include"}).then(i=>i.json()).then(i=>{if(i.status===200)D.lastError=null,D.userInfo=i.data;else throw new Error(i.err);return D}).catch(i=>(D.lastError=i,D.userInfo=null,D)).finally(()=>(D.isDefinitive=!0,Xt(D),D)));else{const i={isDefinitive:!0,lastError:null,userInfo:(r=t.utahId)==null?void 0:r.currentUser};e=Promise.resolve(i),Xt(i)}return Zt=n,e}function Ar(){return D}function Or(){const e=document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!e)throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");const t=e.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");t.remove()}function wr(e,t){const n=document.querySelector(p(a.MOBILE__UTAH_ID));if(!n)throw new Error("hookupUtahIdInMobileMenu: utahIdWrapper not found");const o=n.querySelector(p(a.UTAH_ID__BUTTON));if(!o)throw new Error("hookupUtahIdInMobileMenu: utahIdButton not found");if(!e.querySelector(p(a.MOBILE_MENU__CONTENT)))throw new Error("hookupUtahIdInMobileMenu: mobileContentWrapper not found");const i=document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!i)throw new Error("hookupUtahIdInMobileMenu: profileActionItem not found");const u=i.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!u)throw new Error("hookupHamburger: profileActionItemWrapper not found");const s=je(t);Xe(o,s,u,{ariaHasPopupType:"menu",onClickHandler:l=>{var f;const c=Ar(),d=w();let m=!1;if(!(c!=null&&c.isDefinitive)||!((f=c==null?void 0:c.userInfo)!=null&&f.authenticated)){m=!0;const h=d.utahId!==!1&&d.utahId!==!0&&d.utahId.onSignIn;h?h(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Pe.SIGN_IN)}return m},shouldOnClickCloseMenu:!0})}function Lr(){var t;const e=w();return he(e.mainMenu&&((t=e.mainMenu)==null?void 0:t.menuItems)||void 0,{childrenMenuType:V.INLINE,removePopupArrow:!0})}function yr(){const t=[...document.querySelectorAll(`
|
|
336
341
|
${p(a.MOBILE_MENU__ACTION_BAR)}
|
|
337
342
|
${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
|
|
338
343
|
${p(a.ACTION_ITEM__ICON_BUTTON)}
|
|
339
|
-
`)];t.forEach(r=>{r.onkeydown=i=>{(i.code==="Home"||i.code==="End"||i.code==="ArrowRight"||i.code==="ArrowLeft")&&i.preventDefault()},r.onkeyup=i=>{const u=t.indexOf(r);let s=NaN;if(i.code==="Home"?s=0:i.code==="End"?s=t.length-1:i.code==="ArrowRight"?s=(u+1)%t.length:i.code==="ArrowLeft"&&(s=(t.length+u-1)%t.length),!Number.isNaN(s)){i.preventDefault(),i.stopPropagation();const l=t[s],c=l.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!c)throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");const d=l.getAttribute("aria-controls");if(d&&document.getElementById(d))l.click();else{const h=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!h)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const _=h.querySelector(p(a.MOBILE_MENU__CONTENT));if(!_)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");_.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(E=>E.classList.remove(a.IS_OPEN))}const f=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!f)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");
|
|
344
|
+
`)];t.forEach(r=>{r.onkeydown=i=>{(i.code==="Home"||i.code==="End"||i.code==="ArrowRight"||i.code==="ArrowLeft")&&i.preventDefault()},r.onkeyup=i=>{const u=t.indexOf(r);let s=NaN;if(i.code==="Home"?s=0:i.code==="End"?s=t.length-1:i.code==="ArrowRight"?s=(u+1)%t.length:i.code==="ArrowLeft"&&(s=(t.length+u-1)%t.length),!Number.isNaN(s)){i.preventDefault(),i.stopPropagation();const l=t[s],c=l.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!c)throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");const d=l.getAttribute("aria-controls");if(d&&document.getElementById(d))l.click();else{const h=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!h)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const _=h.querySelector(p(a.MOBILE_MENU__CONTENT));if(!_)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");_.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(E=>E.classList.remove(a.IS_OPEN))}const f=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!f)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");Ze(f,c)}}});const n=L(document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"),{hamburger:o}=ve("hookupMobileActionItemKeyboarding");n.addEventListener("focusin",r=>{r.preventDefault(),r.stopPropagation(),o.focus()})}function Pr(){const e=mn.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER,`${w().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER,`${w().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER,`${w().mediaSizes.mobile}px`);let t=document.getElementById(a.CSS_HEADER_MEDIA_TAG_ID);t||(t=document.createElement("style"),t.id=a.CSS_HEADER_MEDIA_TAG_ID),t.innerHTML=e,document.body.appendChild(t)}function Nr(){const e=w();let t=document.body;if(e.domLocationTarget){const n=[e.domLocationTarget.cssSelector,e.domLocationTarget.element,e.domLocationTarget.elementFunction].filter(o=>o);if(n.length<1)throw new Error("loadHeader: domLocationTarget must either have a value for one of its properties or not be specified at all");if(n.length>1)throw new Error("loadHeader: domLocationTarget must only have one target specified");if(e.domLocationTarget.cssSelector)t=document.querySelector(e.domLocationTarget.cssSelector),J(!t,`loadHeader: element not found for domLocationTarget.cssSelector ${e.domLocationTarget.cssSelector}`);else if(e.domLocationTarget.element)t=e.domLocationTarget.element;else if(e.domLocationTarget.elementFunction)t=e.domLocationTarget.elementFunction(),J(!t,"loadHeader: element not returned from domLocationTarget.elementFunction");else throw new Error("loadHeader: domLocationTarget must have at least one field set")}return L(t,"loadHeader: domTarget is null (how?!)")}function tn(){var t;if(!document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER]))){const n=fr(),o=Nr();o.insertBefore(n,o.firstChild);const r=Ir();n.after(r);const{mainMenuWrapper:i,utahIdPopup:u}=Er();i&&r.after(i);const s=I(En);r.after(s);const l=document.querySelector(p(a.MOBILE_MENU__BACKDROP));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");if(l.onclick)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");l.onclick=()=>Re();const c=Lr(),d=Gt(c,"Main Menu");d.appendChild(c);const m=je(d);Tr(m),u?((t=u.closest("div"))==null||t.removeAttribute("aria-labelledby"),wr(s,u)):Or(),qo(),yr(),Ro(),Pr(),en().catch(h=>console.error(h));const f=w();(!f.mainMenu&&!f.actionItems&&f.utahId===!1&&!f.onSearch||!f.mainMenu&&!f.actionItems&&f.utahId===!1&&f.onSearch||!f.mainMenu&&f.actionItems&&f.utahId===!1&&!f.onSearch)&&(s.classList.add(a.MAIN_MENU__REMOVED),i.remove()),(!f.mainMenu&&!f.actionItems&&f.utahId&&!f.onSearch||!f.mainMenu&&f.actionItems&&f.utahId&&!f.onSearch||!f.mainMenu&&f.actionItems&&!f.utahId&&f.onSearch)&&i.classList.add(a.DESKTOP__HIDDEN)}$o()}function nn(e){var t,n,o,r;(t=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER])))==null||t.remove(),(n=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.MAIN_MENU__OUTER])))==null||n.remove(),(o=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.MOBILE_MENU])))==null||o.remove(),(r=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.LOGO_OFFICIAL_WRAPPER])))==null||r.remove(),qt(),e&&setTimeout(()=>document.dispatchEvent(new Event(ze.HEADER_UNLOADED)),0)}function on(){nn(!1),tn()}let rn=!1;const Sr=15e3;let an=0;const Ur=setInterval(()=>{an+=1,an>=Sr||rn?clearInterval(Ur):document.dispatchEvent(new Event(ze.HEADER_LOADED))},2);function Cr(e){return Ke.setSettings(e),rn=!0,document!=null&&document.body?on():window.addEventListener("load",()=>on()),Ke.getSettings()}H.childrenMenuTypes=V,H.defaultSettings=Ye,H.events=ze,H.getUtahHeaderSettings=w,H.loadHeader=tn,H.removeHeader=nn,H.renderDOMSingle=I,H.setUtahHeaderSettings=Cr,H.sizes=ue,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|