@utahdts/utah-design-system-header 1.2.0 β†’ 1.2.1

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.
@@ -1,4 +1,4 @@
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="",z={FLYOUT:"flyout",INLINE:"inline",MEGA_MENU:"mega-menu"},Ke={HEADER_LOADED:"utahHeaderLoaded",HEADER_UNLOADED:"utahHeaderUnloaded"},ue={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"},vn=`/* @media is never in scope for --variables, so this is the only way to solve this. :-( */
1
+ (function(x,Re){typeof exports=="object"&&typeof module<"u"?Re(exports):typeof define=="function"&&define.amd?define(["exports"],Re):(x=typeof globalThis<"u"?globalThis:x||self,Re(x["@utahdts/utah-design-system-header"]={}))})(this,function(x){"use strict";const Re="",z={FLYOUT:"flyout",INLINE:"inline",MEGA_MENU:"mega-menu"},Ye={HEADER_LOADED:"utahHeaderLoaded",HEADER_UNLOADED:"utahHeaderUnloaded"},ue={SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE"},vn=`/* @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 */
@@ -63,6 +63,11 @@
63
63
  .utah-design-system .utds-official-website-popup__col {
64
64
  width: 100%;
65
65
  }
66
+ .utah-design-system .utds-official-website-popup__address-bar {
67
+ width: auto;
68
+ background-size: contain;
69
+ background-repeat: no-repeat;
70
+ }
66
71
 
67
72
  .color-example {
68
73
  flex-direction: column;
@@ -107,9 +112,9 @@
107
112
  </div>
108
113
  </div>
109
114
  </div>
110
- `;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 ee(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 In(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"?In(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 Re={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 Tn(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 gn{constructor(){this.settings={...Re}}setSettings(t){const n={...Re,...this.settings,...t};Tn(n),this.settings=n}getSettings(){return this.settings}}const De=new gn;function w(){return De.getSettings()}const Mn=`<div class="utds-header-mobile-menu__content-item" role="tabpanel">
115
+ `;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",FOOTER_LINKS:"utds-footer__links",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__SELECTED_PARENT:"menu-item--selected_parent",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 Tt(e){return typeof e=="string"||e instanceof String}function In(e){const t=new DOMParser;let n;if(Tt(e)){const o=Tt(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 T(e){const t=typeof e=="string"?In(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 De={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 Tn(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 gn{constructor(){this.settings={...De}}setSettings(t){const n={...De,...this.settings,...t};Tn(n),this.settings=n}getSettings(){return this.settings}}const Be=new gn;function w(){return Be.getSettings()}const Mn=`<div class="utds-header-mobile-menu__content-item" role="tabpanel">
111
116
  </div>
112
- `;function R(){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(Mn);return o.appendChild(e),n.appendChild(o),o.setAttribute("id",R()),o}function X(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 Be(){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 An(){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 l=document.querySelector(p(a.MOBILE_MENU));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenu not found");const s=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");const c=s.querySelector(p(a.MOBILE_MENU__CONTENT));if(!c)throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");const d=X(n),m=(_=(h=X(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=X(t);if(E){const v=E.getAttribute("id");if(!v)throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");(m||e).setAttribute("aria-controls",v),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),l.classList.contains(a.IS_OPEN))u&&Be();else{An();const T=X(t);T&&Tt(c,T),Ze(s,X(n))}},t){if(d!==e&&d.onclick)throw new Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");d.onclick=E=>{if(!(i!=null&&i(E))){const v=X(t);v&&Tt(c,v),Ze(s,X(n))}}}}const On=`<div class="utds-header-mobile-menu__action-item" role="tab">
117
+ `;function D(){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=T(Mn);return o.appendChild(e),n.appendChild(o),o.setAttribute("id",D()),o}function Z(e){return typeof e=="function"?e():e}function be(e){const t=L(document.querySelector(p(a.MOBILE_MENU)),`${e}: mobileMenu not found`),n=document.getElementById(a.MAIN_MENU__HAMBURGER_ID),o=document.getElementById(a.MAIN_MENU__HAMBURGER_ICON_ID);return{hamburger:n,hamburgerIcon:o,mobileMenu:t}}function He(){const{hamburger:e,hamburgerIcon:t,mobileMenu:n}=be("hideMobileMenu");e==null||e.setAttribute("aria-expanded","false"),n.classList.remove(a.IS_OPEN),e==null||e.setAttribute("aria-label","Open the mobile menu"),t==null||t.classList.add("utds-icon-before-hamburger"),t==null||t.classList.remove("utds-icon-before-x-icon")}function An(){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}=be("showMobileMenu");t==null||t.setAttribute("aria-expanded","true"),o.classList.add(a.IS_OPEN),t==null||t.setAttribute("aria-label","Close the mobile menu"),n==null||n.classList.remove("utds-icon-before-hamburger"),n==null||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 gt(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,E;if(t&&!o)throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");const l=document.querySelector(p(a.MOBILE_MENU));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenu not found");const s=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");const c=s.querySelector(p(a.MOBILE_MENU__CONTENT));if(!c)throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");const d=Z(n),_=(E=(h=Z(n))==null?void 0:h.querySelector)==null?void 0:E.call(h,"button"),f=(_||e).getAttribute("id");if(!f)throw new Error("mobileMenuInteractionHandler: interactiveElementId not found");if(t){const v=Z(t);if(v){const m=v.getAttribute("id");if(!m)throw new Error("mobileMenuInteractionHandler: mobileMenuContentId not found");(_||e).setAttribute("aria-controls",m),v.setAttribute("aria-labelledby",f)}}if(e.onclick)throw new Error("mobileMenuInteractionHandler: interactiveElement already has onclick");if(e.onclick=v=>{if(!(i!=null&&i(v)))if(r==null||r(v),l.classList.contains(a.IS_OPEN))u&&He();else{An();const I=Z(t);I&&gt(c,I),Ze(s,Z(n))}},t){if(d!==e&&d.onclick)throw new Error("mobileMenuInteractionHandler: actionItemWrapperValue already has onclick");d.onclick=v=>{if(!(i!=null&&i(v))){const m=Z(t);m&&gt(c,m),Ze(s,Z(n))}}}}const On=`<div class="utds-header-mobile-menu__action-item" role="tab">
113
118
  <button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
114
119
  <div class="utds-header-action-item__title visually-hidden"></div>
115
120
  <span aria-hidden="true" role="presentation">
@@ -120,7 +125,7 @@
120
125
  <div class="vertical-menu__wrapper-title"></div>
121
126
  </div>
122
127
  `,Ln=`<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
123
- `,gt=`<span class="utds-new-tab-link-a11y">
128
+ `,Qe=`<span class="utds-new-tab-link-a11y">
124
129
  <span class="visually-hidden">opens in a new tab</span>
125
130
  <span class="utds-icon-after-external-link" aria-hidden="true"></span>
126
131
  </span>
@@ -137,44 +142,59 @@
137
142
  </span>
138
143
  <span class="vertical-menu__divider" />
139
144
  </li>
140
- `,Qe={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 He(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>He(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>He(e[i],t,n)))))),o}var F="top",Y="bottom",K="right",q="left",Je="auto",be=[F,Y,K,q],de="start",Ie="end",Nn="clippingParents",Mt="viewport",Te="popper",Sn="reference",At=be.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Ie])},[]),Ot=[].concat(be,[Je]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Ie])},[]),Un="beforeRead",Cn="read",Rn="afterRead",Dn="beforeMain",Bn="main",Hn="afterMain",xn="beforeWrite",Wn="write",kn="afterWrite",Fn=[Un,Cn,Rn,Dn,Bn,Hn,xn,Wn,kn];function Q(e){return e?(e.nodeName||"").toLowerCase():null}function $(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ie(e){var t=$(e).Element;return e instanceof t||e instanceof Element}function j(e){var t=$(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function et(e){if(typeof ShadowRoot>"u")return!1;var t=$(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qn(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];!j(i)||!Q(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var l=r[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Vn(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]),l=u.reduce(function(s,c){return s[c]="",s},{});!j(r)||!Q(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(s){r.removeAttribute(s)}))})}}const $n={name:"applyStyles",enabled:!0,phase:"write",fn:qn,effect:Vn,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var ae=Math.max,xe=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&&j(e)&&(r=e.offsetWidth>0&&pe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pe(o.height)/e.offsetHeight||1);var u=ie(e)?$(e):window,l=u.visualViewport,s=!wt()&&n,c=(o.left+(s&&l?l.offsetLeft:0))/r,d=(o.top+(s&&l?l.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 te(e){return $(e).getComputedStyle(e)}function Gn(e){return["table","td","th"].indexOf(Q(e))>=0}function ne(e){return((ie(e)?e.ownerDocument:e.document)||window.document).documentElement}function We(e){return Q(e)==="html"?e:e.assignedSlot||e.parentNode||(et(e)?e.host:null)||ne(e)}function yt(e){return!j(e)||te(e).position==="fixed"?null:e.offsetParent}function zn(e){var t=/firefox/i.test(tt()),n=/Trident/i.test(tt());if(n&&j(e)){var o=te(e);if(o.position==="fixed")return null}var r=We(e);for(et(r)&&(r=r.host);j(r)&&["html","body"].indexOf(Q(r))<0;){var i=te(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=$(e),n=yt(e);n&&Gn(n)&&te(n).position==="static";)n=yt(n);return n&&(Q(n)==="html"||Q(n)==="body"&&te(n).position==="static")?t:n||zn(e)||t}function ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,n){return ae(e,xe(t,n))}function Yn(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 Kn=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 jn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,l=J(n.placement),s=ot(l),c=[q,K].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!u)){var m=Kn(r.padding,n),f=nt(i),h=s==="y"?F:q,_=s==="y"?Y:K,E=n.rects.reference[d]+n.rects.reference[s]-u[s]-n.rects.popper[d],v=u[s]-n.rects.reference[s],T=ge(i),g=T?s==="y"?T.clientHeight||0:T.clientWidth||0:0,O=E/2-v/2,b=m[h],A=g-f[d]-m[_],M=g/2-f[d]/2+O,P=Me(b,M,A),U=s;n.modifiersData[o]=(t={},t[U]=P,t.centerOffset=P-M,t)}}function Zn(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 Xn={name:"arrow",enabled:!0,phase:"main",fn:jn,effect:Zn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var Qn={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 Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,l=e.position,s=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"),g=u.hasOwnProperty("y"),O=q,b=F,A=window;if(c){var M=ge(n),P="clientHeight",U="clientWidth";if(M===$(n)&&(M=ne(n),te(M).position!=="static"&&l==="absolute"&&(P="scrollHeight",U="scrollWidth")),M=M,r===F||(r===q||r===K)&&i===Ie){b=Y;var S=m&&M===A&&A.visualViewport?A.visualViewport.height:M[P];E-=S-o.height,E*=s?1:-1}if(r===q||(r===F||r===Y)&&i===Ie){O=K;var N=m&&M===A&&A.visualViewport?A.visualViewport.width:M[U];h-=N-o.width,h*=s?1:-1}}var C=Object.assign({position:l},c&&Qn),V=d===!0?Jn({x:h,y:E},$(n)):{x:h,y:E};if(h=V.x,E=V.y,s){var D;return Object.assign({},C,(D={},D[b]=g?"0":"",D[O]=T?"0":"",D.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+E+"px)":"translate3d("+h+"px, "+E+"px, 0)",D))}return Object.assign({},C,(t={},t[b]=g?E+"px":"",t[O]=T?h+"px":"",t.transform="",t))}function eo(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,l=n.roundOffsets,s=l===void 0?!0:l,c={placement:J(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:s})))),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:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eo,data:{}};var ke={passive:!0};function no(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,l=u===void 0?!0:u,s=$(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,ke)}),l&&s.addEventListener("resize",n.update,ke),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ke)}),l&&s.removeEventListener("resize",n.update,ke)}}const oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:no,data:{}};var ro={left:"right",right:"left",bottom:"top",top:"bottom"};function Fe(e){return e.replace(/left|right|bottom|top/g,function(t){return ro[t]})}var io={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return io[t]})}function rt(e){var t=$(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function it(e){return fe(ne(e)).left+rt(e).scrollLeft}function ao(e,t){var n=$(e),o=ne(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,l=0,s=0;if(r){i=r.width,u=r.height;var c=wt();(c||!c&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:u,x:l+it(e),y:s}}function so(e){var t,n=ne(e),o=rt(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=ae(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=ae(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+it(e),s=-o.scrollTop;return te(r||n).direction==="rtl"&&(l+=ae(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function at(e){var t=te(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(Q(e))>=0?e.ownerDocument.body:j(e)&&at(e)?e:Rt(We(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=$(o),u=r?[i].concat(i.visualViewport||[],at(o)?o:[]):o,l=t.concat(u);return r?l:l.concat(Ae(We(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 lo(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(ao(e,n)):ie(t)?lo(t,n):st(so(ne(e)))}function co(e){var t=Ae(We(e)),n=["absolute","fixed"].indexOf(te(e).position)>=0,o=n&&j(e)?ge(e):e;return ie(o)?t.filter(function(r){return ie(r)&&Lt(r,o)&&Q(r)!=="body"}):[]}function uo(e,t,n,o){var r=t==="clippingParents"?co(e):[].concat(t),i=[].concat(r,[n]),u=i[0],l=i.reduce(function(s,c){var d=Dt(e,c,o);return s.top=ae(d.top,s.top),s.right=xe(d.right,s.right),s.bottom=xe(d.bottom,s.bottom),s.left=ae(d.left,s.left),s},Dt(e,u,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Bt(e){var t=e.reference,n=e.element,o=e.placement,r=o?J(o):null,i=o?_e(o):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(r){case F:s={x:u,y:t.y-n.height};break;case Y:s={x:u,y:t.y+t.height};break;case K:s={x:t.x+t.width,y:l};break;case q:s={x:t.x-n.width,y:l};break;default:s={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:s[c]=s[c]-(t[d]/2-n[d]/2);break;case Ie:s[c]=s[c]+(t[d]/2-n[d]/2);break}}return s}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,l=n.boundary,s=l===void 0?Nn:l,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,v=E===void 0?0:E,T=Nt(typeof v!="number"?v:St(v,be)),g=f===Te?Sn:Te,O=e.rects.popper,b=e.elements[_?g:f],A=uo(ie(b)?b:b.contextElement||ne(e.elements.popper),s,d,u),M=fe(e.elements.reference),P=Bt({reference:M,element:O,strategy:"absolute",placement:r}),U=st(Object.assign({},O,P)),S=f===Te?U:M,N={top:A.top-S.top+T.top,bottom:S.bottom-A.bottom+T.bottom,left:A.left-S.left+T.left,right:S.right-A.right+T.right},C=e.modifiersData.offset;if(f===Te&&C){var V=C[r];Object.keys(N).forEach(function(D){var B=[K,Y].indexOf(D)>=0?1:-1,W=[F,Y].indexOf(D)>=0?"y":"x";N[D]+=V[W]*B})}return N}function po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=s===void 0?Ot:s,d=_e(o),m=d?l?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})[J(E)],_},{});return Object.keys(h).sort(function(_,E){return h[_]-h[E]})}function fo(e){if(J(e)===Je)return[];var t=Fe(e);return[Ct(e),t,Ct(t)]}function _o(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,l=u===void 0?!0:u,s=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=J(v),g=T===v,O=s||(g||!_?[Fe(v)]:fo(v)),b=[v].concat(O).reduce(function(Ee,re){return Ee.concat(J(re)===Je?po(t,{placement:re,boundary:d,rootBoundary:m,padding:c,flipVariations:_,allowedAutoPlacements:E}):re)},[]),A=t.rects.reference,M=t.rects.popper,P=new Map,U=!0,S=b[0],N=0;N<b.length;N++){var C=b[N],V=J(C),D=_e(C)===de,B=[F,Y].indexOf(V)>=0,W=B?"width":"height",k=Oe(t,{placement:C,boundary:d,rootBoundary:m,altBoundary:f,padding:c}),Z=B?D?K:q:D?Y:F;A[W]>M[W]&&(Z=Fe(Z));var Ve=Fe(Z),se=[];if(i&&se.push(k[V]<=0),l&&se.push(k[Z]<=0,k[Ve]<=0),se.every(function(Ee){return Ee})){S=C,U=!1;break}P.set(C,se)}if(U)for(var $e=_?3:1,mt=function(re){var Ue=b.find(function(ze){var le=P.get(ze);if(le)return le.slice(0,re).every(function(Et){return Et})});if(Ue)return S=Ue,"break"},Se=$e;Se>0;Se--){var Ge=mt(Se);if(Ge==="break")break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}}const ho={name:"flip",enabled:!0,phase:"main",fn:_o,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[F,K,Y,q].some(function(t){return e[t]>=0})}function mo(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"}),l=Oe(t,{altBoundary:!0}),s=Ht(u,o),c=Ht(l,r,i),d=xt(s),m=xt(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const Eo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mo};function vo(e,t,n){var o=J(e),r=[q,F].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],l=i[1];return u=u||0,l=(l||0)*r,[q,K].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function bo(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]=vo(m,t.rects,i),d},{}),l=u[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const Io={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bo};function To(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 go={name:"popperOffsets",enabled:!0,phase:"read",fn:To,data:{}};function Mo(e){return e==="x"?"y":"x"}function Ao(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,l=u===void 0?!1:u,s=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:s,rootBoundary:c,padding:m,altBoundary:d}),T=J(t.placement),g=_e(t.placement),O=!g,b=ot(T),A=Mo(b),M=t.modifiersData.popperOffsets,P=t.rects.reference,U=t.rects.popper,S=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(M){if(i){var D,B=b==="y"?F:q,W=b==="y"?Y:K,k=b==="y"?"height":"width",Z=M[b],Ve=Z+v[B],se=Z-v[W],$e=h?-U[k]/2:0,mt=g===de?P[k]:U[k],Se=g===de?-U[k]:-P[k],Ge=t.elements.arrow,Ee=h&&Ge?nt(Ge):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),Ue=re[B],ze=re[W],le=Me(0,P[k],Ee[k]),Et=O?P[k]/2-$e-le-Ue-N.mainAxis:mt-le-Ue-N.mainAxis,Dr=O?-P[k]/2+$e+le+ze+N.mainAxis:Se+le+ze+N.mainAxis,vt=t.elements.arrow&&ge(t.elements.arrow),Br=vt?b==="y"?vt.clientTop||0:vt.clientLeft||0:0,cn=(D=C==null?void 0:C[b])!=null?D:0,Hr=Z+Et-cn-Br,xr=Z+Dr-cn,un=Me(h?xe(Ve,Hr):Ve,Z,h?ae(se,xr):se);M[b]=un,V[b]=un-Z}if(l){var dn,Wr=b==="x"?F:q,kr=b==="x"?Y:K,ce=M[A],Ye=A==="y"?"height":"width",pn=ce+v[Wr],fn=ce-v[kr],bt=[F,q].indexOf(T)!==-1,_n=(dn=C==null?void 0:C[A])!=null?dn:0,hn=bt?pn:ce-P[Ye]-U[Ye]-_n+N.altAxis,mn=bt?ce+P[Ye]+U[Ye]-_n-N.altAxis:fn,En=h&&bt?Yn(hn,ce,mn):Me(h?hn:pn,ce,h?mn:fn);M[A]=En,V[A]=En-ce}t.modifiersData[o]=V}}const Oo={name:"preventOverflow",enabled:!0,phase:"main",fn:Ao,requiresIfExists:["offset"]};function wo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lo(e){return e===$(e)||!j(e)?rt(e):wo(e)}function yo(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 Po(e,t,n){n===void 0&&(n=!1);var o=j(t),r=j(t)&&yo(t),i=ne(t),u=fe(e,r,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((Q(t)!=="body"||at(i))&&(l=Lo(t)),j(t)?(s=fe(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=it(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function No(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(l){if(!n.has(l)){var s=t.get(l);s&&r(s)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function So(e){var t=No(e);return Fn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Uo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Co(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 Ro(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(l,s,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},m=[],f=!1,h={state:d,setOptions:function(T){var g=typeof T=="function"?T(d.options):T;E(),d.options=Object.assign({},i,d.options,g),d.scrollParents={reference:ie(l)?Ae(l):l.contextElement?Ae(l.contextElement):[],popper:Ae(s)};var O=So(Co([].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,g=T.reference,O=T.popper;if(kt(g,O)){d.rects={reference:Po(g,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 b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var A=d.orderedModifiers[b],M=A.fn,P=A.options,U=P===void 0?{}:P,S=A.name;typeof M=="function"&&(d=M({state:d,options:U,name:S,instance:h})||d)}}}},update:Uo(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){E(),f=!0}};if(!kt(l,s))return h;h.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function _(){d.orderedModifiers.forEach(function(v){var T=v.name,g=v.options,O=g===void 0?{}:g,b=v.effect;if(typeof b=="function"){var A=b({state:d,name:T,instance:h,options:O}),M=function(){};m.push(A||M)}})}function E(){m.forEach(function(v){return v()}),m=[]}return h}}var Do=[oo,go,to,$n,Io,ho,Oo,Xn,Eo],Ft=Ro({defaultModifiers:Do});function lt(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let G;const we={},ct={SHIFT:"shift-key"};function qt(){G&&(document.removeEventListener("click",G.globalOnClick),document.removeEventListener("keyup",G.globalOnKeyup),document.removeEventListener("keydown",G.globalOnKeydown),G=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 Bo(){G&&qt(),G={globalOnClick:()=>{},globalOnKeyup:()=>{},globalOnKeydown:()=>{}},G.globalOnClick=ut,document.addEventListener("click",G.globalOnClick),G.globalOnKeyup=e=>{e.key==="Escape"&&ut(),e.shiftKey||(we[ct.SHIFT]=!1),we[e.key]=!1},document.addEventListener("keyup",G.globalOnKeyup),G.globalOnKeydown=e=>{e.shiftKey&&(we[ct.SHIFT]=!0),we[e.key]=!0},document.addEventListener("keydown",G.globalOnKeydown)}function Ho(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Le(e,t,n,o,r){let i=NaN,u=NaN;const l=300,s=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)||Qe.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?(ee(!!e.onclick,"popupFocusHandler: wrapper already has an onclick"),e.onclick=f=>{f.preventDefault(),f.stopPropagation()}):(e.addEventListener("focusin",()=>d(s)),e.addEventListener("focusout",()=>m(s))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(l)),e.addEventListener("mouseleave",()=>m(l))),!(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()):(Ho()&&ut(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const xo=`<div class="popup__wrapper popup__wrapper--hidden">
145
+ `,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 xe(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>xe(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>xe(e[i],t,n)))))),o}var k="top",K="bottom",Y="right",F="left",et="auto",Ie=[k,K,Y,F],de="start",Te="end",Nn="clippingParents",Mt="viewport",ge="popper",Sn="reference",At=Ie.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Te])},[]),Ot=[].concat(Ie,[et]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Te])},[]),Un="beforeRead",Cn="read",Rn="afterRead",Dn="beforeMain",Bn="main",Hn="afterMain",xn="beforeWrite",Wn="write",kn="afterWrite",Fn=[Un,Cn,Rn,Dn,Bn,Hn,xn,Wn,kn];function X(e){return e?(e.nodeName||"").toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ie(e){var t=G(e).Element;return e instanceof t||e instanceof Element}function j(e){var t=G(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tt(e){if(typeof ShadowRoot>"u")return!1;var t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qn(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];!j(i)||!X(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var l=r[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Vn(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]),l=u.reduce(function(s,c){return s[c]="",s},{});!j(r)||!X(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(s){r.removeAttribute(s)}))})}}const Gn={name:"applyStyles",enabled:!0,phase:"write",fn:qn,effect:Vn,requires:["computeStyles"]};function Q(e){return e.split("-")[0]}var ae=Math.max,We=Math.min,pe=Math.round;function nt(){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(nt())}function fe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&j(e)&&(r=e.offsetWidth>0&&pe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pe(o.height)/e.offsetHeight||1);var u=ie(e)?G(e):window,l=u.visualViewport,s=!wt()&&n,c=(o.left+(s&&l?l.offsetLeft:0))/r,d=(o.top+(s&&l?l.offsetTop:0))/i,_=o.width/r,f=o.height/i;return{width:_,height:f,top:d,right:c+_,bottom:d+f,left:c,x:c,y:d}}function ot(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&&tt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ee(e){return G(e).getComputedStyle(e)}function $n(e){return["table","td","th"].indexOf(X(e))>=0}function te(e){return((ie(e)?e.ownerDocument:e.document)||window.document).documentElement}function ke(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(tt(e)?e.host:null)||te(e)}function yt(e){return!j(e)||ee(e).position==="fixed"?null:e.offsetParent}function zn(e){var t=/firefox/i.test(nt()),n=/Trident/i.test(nt());if(n&&j(e)){var o=ee(e);if(o.position==="fixed")return null}var r=ke(e);for(tt(r)&&(r=r.host);j(r)&&["html","body"].indexOf(X(r))<0;){var i=ee(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 Me(e){for(var t=G(e),n=yt(e);n&&$n(n)&&ee(n).position==="static";)n=yt(n);return n&&(X(n)==="html"||X(n)==="body"&&ee(n).position==="static")?t:n||zn(e)||t}function rt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ae(e,t,n){return ae(e,We(t,n))}function Kn(e,t,n){var o=Ae(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 Yn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nt(typeof t!="number"?t:St(t,Ie))};function jn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,l=Q(n.placement),s=rt(l),c=[F,Y].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!u)){var _=Yn(r.padding,n),f=ot(i),h=s==="y"?k:F,E=s==="y"?K:Y,v=n.rects.reference[d]+n.rects.reference[s]-u[s]-n.rects.popper[d],m=u[s]-n.rects.reference[s],I=Me(i),g=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,O=v/2-m/2,b=_[h],M=g-f[d]-_[E],A=g/2-f[d]/2+O,y=Ae(b,A,M),N=s;n.modifiersData[o]=(t={},t[N]=y,t.centerOffset=y-A,t)}}function Zn(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 Xn={name:"arrow",enabled:!0,phase:"main",fn:jn,effect:Zn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var Qn={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 Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,_=e.isFixed,f=u.x,h=f===void 0?0:f,E=u.y,v=E===void 0?0:E,m=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var I=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),O=F,b=k,M=window;if(c){var A=Me(n),y="clientHeight",N="clientWidth";if(A===G(n)&&(A=te(n),ee(A).position!=="static"&&l==="absolute"&&(y="scrollHeight",N="scrollWidth")),A=A,r===k||(r===F||r===Y)&&i===Te){b=K;var U=_&&A===M&&M.visualViewport?M.visualViewport.height:A[y];v-=U-o.height,v*=s?1:-1}if(r===F||(r===k||r===K)&&i===Te){O=Y;var S=_&&A===M&&M.visualViewport?M.visualViewport.width:A[N];h-=S-o.width,h*=s?1:-1}}var R=Object.assign({position:l},c&&Qn),q=d===!0?Jn({x:h,y:v},G(n)):{x:h,y:v};if(h=q.x,v=q.y,s){var B;return Object.assign({},R,(B={},B[b]=g?"0":"",B[O]=I?"0":"",B.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",B))}return Object.assign({},R,(t={},t[b]=g?v+"px":"",t[O]=I?h+"px":"",t.transform="",t))}function eo(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,l=n.roundOffsets,s=l===void 0?!0:l,c={placement:Q(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:s})))),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:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eo,data:{}};var Fe={passive:!0};function no(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,l=u===void 0?!0:u,s=G(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,Fe)}),l&&s.addEventListener("resize",n.update,Fe),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Fe)}),l&&s.removeEventListener("resize",n.update,Fe)}}const oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:no,data:{}};var ro={left:"right",right:"left",bottom:"top",top:"bottom"};function qe(e){return e.replace(/left|right|bottom|top/g,function(t){return ro[t]})}var io={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return io[t]})}function it(e){var t=G(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function at(e){return fe(te(e)).left+it(e).scrollLeft}function ao(e,t){var n=G(e),o=te(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,l=0,s=0;if(r){i=r.width,u=r.height;var c=wt();(c||!c&&t==="fixed")&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:u,x:l+at(e),y:s}}function so(e){var t,n=te(e),o=it(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=ae(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=ae(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+at(e),s=-o.scrollTop;return ee(r||n).direction==="rtl"&&(l+=ae(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function st(e){var t=ee(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(X(e))>=0?e.ownerDocument.body:j(e)&&st(e)?e:Rt(ke(e))}function Oe(e,t){var n;t===void 0&&(t=[]);var o=Rt(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=G(o),u=r?[i].concat(i.visualViewport||[],st(o)?o:[]):o,l=t.concat(u);return r?l:l.concat(Oe(ke(u)))}function lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lo(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?lt(ao(e,n)):ie(t)?lo(t,n):lt(so(te(e)))}function co(e){var t=Oe(ke(e)),n=["absolute","fixed"].indexOf(ee(e).position)>=0,o=n&&j(e)?Me(e):e;return ie(o)?t.filter(function(r){return ie(r)&&Lt(r,o)&&X(r)!=="body"}):[]}function uo(e,t,n,o){var r=t==="clippingParents"?co(e):[].concat(t),i=[].concat(r,[n]),u=i[0],l=i.reduce(function(s,c){var d=Dt(e,c,o);return s.top=ae(d.top,s.top),s.right=We(d.right,s.right),s.bottom=We(d.bottom,s.bottom),s.left=ae(d.left,s.left),s},Dt(e,u,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Bt(e){var t=e.reference,n=e.element,o=e.placement,r=o?Q(o):null,i=o?_e(o):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(r){case k:s={x:u,y:t.y-n.height};break;case K:s={x:u,y:t.y+t.height};break;case Y:s={x:t.x+t.width,y:l};break;case F:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var c=r?rt(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case de:s[c]=s[c]-(t[d]/2-n[d]/2);break;case Te:s[c]=s[c]+(t[d]/2-n[d]/2);break}}return s}function we(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,l=n.boundary,s=l===void 0?Nn:l,c=n.rootBoundary,d=c===void 0?Mt:c,_=n.elementContext,f=_===void 0?ge:_,h=n.altBoundary,E=h===void 0?!1:h,v=n.padding,m=v===void 0?0:v,I=Nt(typeof m!="number"?m:St(m,Ie)),g=f===ge?Sn:ge,O=e.rects.popper,b=e.elements[E?g:f],M=uo(ie(b)?b:b.contextElement||te(e.elements.popper),s,d,u),A=fe(e.elements.reference),y=Bt({reference:A,element:O,strategy:"absolute",placement:r}),N=lt(Object.assign({},O,y)),U=f===ge?N:A,S={top:M.top-U.top+I.top,bottom:U.bottom-M.bottom+I.bottom,left:M.left-U.left+I.left,right:U.right-M.right+I.right},R=e.modifiersData.offset;if(f===ge&&R){var q=R[r];Object.keys(S).forEach(function(B){var H=[Y,K].indexOf(B)>=0?1:-1,oe=[k,K].indexOf(B)>=0?"y":"x";S[B]+=q[oe]*H})}return S}function po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=s===void 0?Ot:s,d=_e(o),_=d?l?At:At.filter(function(E){return _e(E)===d}):Ie,f=_.filter(function(E){return c.indexOf(E)>=0});f.length===0&&(f=_);var h=f.reduce(function(E,v){return E[v]=we(e,{placement:v,boundary:r,rootBoundary:i,padding:u})[Q(v)],E},{});return Object.keys(h).sort(function(E,v){return h[E]-h[v]})}function fo(e){if(Q(e)===et)return[];var t=qe(e);return[Ct(e),t,Ct(t)]}function _o(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,l=u===void 0?!0:u,s=n.fallbackPlacements,c=n.padding,d=n.boundary,_=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,E=h===void 0?!0:h,v=n.allowedAutoPlacements,m=t.options.placement,I=Q(m),g=I===m,O=s||(g||!E?[qe(m)]:fo(m)),b=[m].concat(O).reduce(function(ve,re){return ve.concat(Q(re)===et?po(t,{placement:re,boundary:d,rootBoundary:_,padding:c,flipVariations:E,allowedAutoPlacements:v}):re)},[]),M=t.rects.reference,A=t.rects.popper,y=new Map,N=!0,U=b[0],S=0;S<b.length;S++){var R=b[S],q=Q(R),B=_e(R)===de,H=[k,K].indexOf(q)>=0,oe=H?"width":"height",V=we(t,{placement:R,boundary:d,rootBoundary:_,altBoundary:f,padding:c}),C=H?B?Y:F:B?K:k;M[oe]>A[oe]&&(C=qe(C));var Ee=qe(C),se=[];if(i&&se.push(V[q]<=0),l&&se.push(V[C]<=0,V[Ee]<=0),se.every(function(ve){return ve})){U=R,N=!1;break}y.set(R,se)}if(N)for(var Ge=E?3:1,Et=function(re){var Ce=b.find(function(ze){var le=y.get(ze);if(le)return le.slice(0,re).every(function(vt){return vt})});if(Ce)return U=Ce,"break"},Ue=Ge;Ue>0;Ue--){var $e=Et(Ue);if($e==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const ho={name:"flip",enabled:!0,phase:"main",fn:_o,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[k,Y,K,F].some(function(t){return e[t]>=0})}function mo(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=we(t,{elementContext:"reference"}),l=we(t,{altBoundary:!0}),s=Ht(u,o),c=Ht(l,r,i),d=xt(s),_=xt(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":_})}const Eo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mo};function vo(e,t,n){var o=Q(e),r=[F,k].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],l=i[1];return u=u||0,l=(l||0)*r,[F,Y].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function bo(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,_){return d[_]=vo(_,t.rects,i),d},{}),l=u[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const Io={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bo};function To(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 go={name:"popperOffsets",enabled:!0,phase:"read",fn:To,data:{}};function Mo(e){return e==="x"?"y":"x"}function Ao(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,l=u===void 0?!1:u,s=n.boundary,c=n.rootBoundary,d=n.altBoundary,_=n.padding,f=n.tether,h=f===void 0?!0:f,E=n.tetherOffset,v=E===void 0?0:E,m=we(t,{boundary:s,rootBoundary:c,padding:_,altBoundary:d}),I=Q(t.placement),g=_e(t.placement),O=!g,b=rt(I),M=Mo(b),A=t.modifiersData.popperOffsets,y=t.rects.reference,N=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,S=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(A){if(i){var B,H=b==="y"?k:F,oe=b==="y"?K:Y,V=b==="y"?"height":"width",C=A[b],Ee=C+m[H],se=C-m[oe],Ge=h?-N[V]/2:0,Et=g===de?y[V]:N[V],Ue=g===de?-N[V]:-y[V],$e=t.elements.arrow,ve=h&&$e?ot($e):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),Ce=re[H],ze=re[oe],le=Ae(0,y[V],ve[V]),vt=O?y[V]/2-Ge-le-Ce-S.mainAxis:Et-le-Ce-S.mainAxis,Dr=O?-y[V]/2+Ge+le+ze+S.mainAxis:Ue+le+ze+S.mainAxis,bt=t.elements.arrow&&Me(t.elements.arrow),Br=bt?b==="y"?bt.clientTop||0:bt.clientLeft||0:0,cn=(B=R==null?void 0:R[b])!=null?B:0,Hr=C+vt-cn-Br,xr=C+Dr-cn,un=Ae(h?We(Ee,Hr):Ee,C,h?ae(se,xr):se);A[b]=un,q[b]=un-C}if(l){var dn,Wr=b==="x"?k:F,kr=b==="x"?K:Y,ce=A[M],Ke=M==="y"?"height":"width",pn=ce+m[Wr],fn=ce-m[kr],It=[k,F].indexOf(I)!==-1,_n=(dn=R==null?void 0:R[M])!=null?dn:0,hn=It?pn:ce-y[Ke]-N[Ke]-_n+S.altAxis,mn=It?ce+y[Ke]+N[Ke]-_n-S.altAxis:fn,En=h&&It?Kn(hn,ce,mn):Ae(h?hn:pn,ce,h?mn:fn);A[M]=En,q[M]=En-ce}t.modifiersData[o]=q}}const Oo={name:"preventOverflow",enabled:!0,phase:"main",fn:Ao,requiresIfExists:["offset"]};function wo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Lo(e){return e===G(e)||!j(e)?it(e):wo(e)}function yo(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 Po(e,t,n){n===void 0&&(n=!1);var o=j(t),r=j(t)&&yo(t),i=te(t),u=fe(e,r,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((X(t)!=="body"||st(i))&&(l=Lo(t)),j(t)?(s=fe(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=at(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function No(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(l){if(!n.has(l)){var s=t.get(l);s&&r(s)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function So(e){var t=No(e);return Fn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Uo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Co(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 Ro(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(l,s,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},_=[],f=!1,h={state:d,setOptions:function(I){var g=typeof I=="function"?I(d.options):I;v(),d.options=Object.assign({},i,d.options,g),d.scrollParents={reference:ie(l)?Oe(l):l.contextElement?Oe(l.contextElement):[],popper:Oe(s)};var O=So(Co([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(b){return b.enabled}),E(),h.update()},forceUpdate:function(){if(!f){var I=d.elements,g=I.reference,O=I.popper;if(kt(g,O)){d.rects={reference:Po(g,Me(O),d.options.strategy==="fixed"),popper:ot(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(S){return d.modifiersData[S.name]=Object.assign({},S.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var M=d.orderedModifiers[b],A=M.fn,y=M.options,N=y===void 0?{}:y,U=M.name;typeof A=="function"&&(d=A({state:d,options:N,name:U,instance:h})||d)}}}},update:Uo(function(){return new Promise(function(m){h.forceUpdate(),m(d)})}),destroy:function(){v(),f=!0}};if(!kt(l,s))return h;h.setOptions(c).then(function(m){!f&&c.onFirstUpdate&&c.onFirstUpdate(m)});function E(){d.orderedModifiers.forEach(function(m){var I=m.name,g=m.options,O=g===void 0?{}:g,b=m.effect;if(typeof b=="function"){var M=b({state:d,name:I,instance:h,options:O}),A=function(){};_.push(M||A)}})}function v(){_.forEach(function(m){return m()}),_=[]}return h}}var Do=[oo,go,to,Gn,Io,ho,Oo,Xn,Eo],Ft=Ro({defaultModifiers:Do});function ct(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let $;const Le={},ut={SHIFT:"shift-key"};function qt(){$&&(document.removeEventListener("click",$.globalOnClick),document.removeEventListener("keyup",$.globalOnKeyup),document.removeEventListener("keydown",$.globalOnKeydown),$=null)}function dt(){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")}ct(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function Bo(){$&&qt(),$={globalOnClick:()=>{},globalOnKeyup:()=>{},globalOnKeydown:()=>{}},$.globalOnClick=dt,document.addEventListener("click",$.globalOnClick),$.globalOnKeyup=e=>{e.key==="Escape"&&dt(),e.shiftKey||(Le[ut.SHIFT]=!1),Le[e.key]=!1},document.addEventListener("keyup",$.globalOnKeyup),$.globalOnKeydown=e=>{e.shiftKey&&(Le[ut.SHIFT]=!0),Le[e.key]=!0},document.addEventListener("keydown",$.globalOnKeydown)}function Ho(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function ye(e,t,n,o,r){let i=NaN,u=NaN;const l=300,s=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]}}]}),ct(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 _(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{ct(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(s)),e.addEventListener("focusout",()=>_(s))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(l)),e.addEventListener("mouseleave",()=>_(l))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=f=>{var E;const h=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(f.stopPropagation(),f.preventDefault(),h&&t.getAttribute("aria-expanded")==="true"?(_(c),(E=document.activeElement)==null||E.blur()):(Ho()&&dt(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const xo=`<div class="popup__wrapper popup__wrapper--hidden">
141
146
  <div class="popup__content">
142
147
  <div class="popup__arrow" data-popper-arrow></div>
143
148
  </div>
144
149
  </div>
145
- `;function dt(e,t){const n=e.getAttribute("id");if(!n)throw new Error("renderPopup: labelledByElement does not have an `id` attribute");const o=R();e.setAttribute("aria-controls",o);const r=I(xo);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 Vt(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 Wo(e){return t=>{t.preventDefault(),t.stopPropagation(),Vt(e)}}function $t(){const e=I(Ln);return e.classList.add(a.IS_CLOSED),e}function ko(e,t,n){var f,h;const o=I(Pn),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 l=o.querySelector(p(a.POPUP_MENU__PLAIN_TITLE));if(!l)throw new Error("renderPopupMenuItem: plainTitle not found");const s=o.querySelector(p(a.POPUP_MENU__DIVIDER));if(!s)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 z.FLYOUT:{_=$t(),i.appendChild(_),i.setAttribute("id",R());const E=pt({menuItems:m,title:t.title},i,{...n,removePopupArrow:!0});o.appendChild(E),Le(o,i,E,"menu",{popupPlacement:Qe.RIGHT_START,preventOnClickHandling:!0,shouldFocusOnHover:!0}),u.remove(),l.remove();break}case z.INLINE:{const E=he(m,n),v=R();E.setAttribute("id",v),E.classList.add(a.VISUALLY_HIDDEN),o.appendChild(E),i.onclick=Wo(i),i.setAttribute("aria-expanded","false"),i.setAttribute("aria-controls",v),_=$t(),i.appendChild(_),u.remove(),l.remove(),o.addEventListener("focusin",T=>{var g,O,b,A;for(let M=(g=T.target)==null?void 0:g.closest("ul");M;M=(O=M.parentElement)==null?void 0:O.closest("ul"))M.classList.remove(a.VISUALLY_HIDDEN),i.setAttribute("aria-expanded","true"),T.target!==i&&((b=_==null?void 0:_.classList)==null||b.remove(a.IS_CLOSED),(A=_==null?void 0:_.classList)==null||A.add(a.IS_OPEN))});break}case z.MEGA_MENU:{const E=he(m,n),v=R();E.setAttribute("id",v),o.appendChild(E),u.remove(),i.remove(),l.appendChild(document.createTextNode(t.title));break}default:throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`)}s.remove()}else if(t.actionFunction)i.onclick=t.actionFunction,u.remove(),s.remove(),l.remove();else if(t.actionUrl)u.setAttribute("href",t.actionUrl.url),i.remove(),s.remove(),l.remove();else if(t.actionFunctionUrl)u.setAttribute("href",t.actionFunctionUrl.url),u.onclick=_=>{var E,v;(E=t.actionFunctionUrl)!=null&&E.skipHandleEvent||(_.stopPropagation(),_.preventDefault()),(v=t.actionFunctionUrl)==null||v.actionFunction(_)},i.remove(),s.remove(),l.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&&He(t.actionMenu,["actionMenu"],_=>!!_.isSelected))&&(i.classList.add(a.MENU_ITEM__SELECTED),u.classList.add(a.MENU_ITEM__SELECTED)),t.isSelected?(Vt(o),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(yn);return e==null||e.forEach(o=>ko(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 Fo=`<div class="utds-badge__wrapper">
150
+ `;function pt(e,t){const n=e.getAttribute("id");if(!n)throw new Error("renderPopup: labelledByElement does not have an `id` attribute");const o=D();e.setAttribute("aria-controls",o);const r=T(xo);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 Vt(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 Wo(e){return t=>{t.preventDefault(),t.stopPropagation(),Vt(e)}}function Gt(){const e=T(Ln);return e.classList.add(a.IS_CLOSED),e}function ko(e,t,n){var h,E,v;const o=T(Pn),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 l=o.querySelector(p(a.POPUP_MENU__PLAIN_TITLE));if(!l)throw new Error("renderPopupMenuItem: plainTitle not found");const s=o.querySelector(p(a.POPUP_MENU__DIVIDER));if(!s)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 _=t.actionMenu&&[...t.actionMenu];if(_&&(t.actionFunction||t.actionUrl||t.actionFunctionUrl)&&_.unshift({actionFunction:t.actionFunction,actionFunctionUrl:t.actionFunctionUrl,actionUrl:t.actionUrl,className:t.className,icon:t.icon,title:`${t.title} (page)`}),_){let m;switch(n.childrenMenuType){case z.FLYOUT:{m=Gt(),i.appendChild(m),i.setAttribute("id",D());const I=ft({menuItems:_,title:t.title},i,{...n,removePopupArrow:!0});o.appendChild(I),ye(o,i,I,"menu",{popupPlacement:Je.RIGHT_START,preventOnClickHandling:!0,shouldFocusOnHover:!0}),u.remove(),l.remove();break}case z.INLINE:{const I=he(_,n),g=D();I.setAttribute("id",g),I.classList.add(a.VISUALLY_HIDDEN),o.appendChild(I),i.onclick=Wo(i),i.setAttribute("aria-expanded","false"),i.setAttribute("aria-controls",g),m=Gt(),i.appendChild(m),u.remove(),l.remove(),o.addEventListener("focusin",O=>{var b,M,A,y;for(let N=(b=O.target)==null?void 0:b.closest("ul");N;N=(M=N.parentElement)==null?void 0:M.closest("ul"))N.classList.remove(a.VISUALLY_HIDDEN),i.setAttribute("aria-expanded","true"),O.target!==i&&((A=m==null?void 0:m.classList)==null||A.remove(a.IS_CLOSED),(y=m==null?void 0:m.classList)==null||y.add(a.IS_OPEN))});break}case z.MEGA_MENU:{const I=he(_,n),g=D();I.setAttribute("id",g),o.appendChild(I),u.remove(),i.remove(),l.appendChild(document.createTextNode(t.title));break}default:throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`)}s.remove()}else if(t.actionFunction)i.onclick=t.actionFunction,u.remove(),s.remove(),l.remove();else if(t.actionUrl)u.setAttribute("href",t.actionUrl.url),i.remove(),s.remove(),l.remove();else if(t.actionFunctionUrl)u.setAttribute("href",t.actionFunctionUrl.url),u.onclick=m=>{var I,g;(I=t.actionFunctionUrl)!=null&&I.skipHandleEvent||(m.stopPropagation(),m.preventDefault()),(g=t.actionFunctionUrl)==null||g.actionFunction(m)},i.remove(),s.remove(),l.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)),(h=t.actionUrl)!=null&&h.openInNewTab||(E=t.actionFunctionUrl)!=null&&E.openInNewTab)){u.setAttribute("target","_blank");const m=T(Qe);c.appendChild(m),d.appendChild(m)}const f=(v=t.actionMenu)!=null&&v.length?a.MENU_ITEM__SELECTED_PARENT:a.MENU_ITEM__SELECTED;return(t.isSelected||t.actionMenu&&xe(t.actionMenu,["actionMenu"],m=>!!m.isSelected))&&(i.classList.add(f),u.classList.add(f)),t.isSelected?(Vt(o),o.classList.add(f)):o.classList.remove(f),e.appendChild(o),o}function he(e,t){const n=T(yn);return e==null||e.forEach(o=>ko(n,o,t)),n}function ft(e,t,n){const o=pt(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 Fo=`<div class="utds-badge__wrapper">
146
151
  <span class="utds-badge__value"></span>
147
152
  <span class="utds-badge__label visually-hidden"></span>
148
153
  </div>
149
- `;function ft(e){let t=null;if(e){t=I(Fo),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 qo(e){const t=I(On);t.getAttribute("id")||t.setAttribute("id",R());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 l=I(e.icon);l.setAttribute("role","presentation"),i.appendChild(l);let s=null;if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const c=R();i.setAttribute("id",c),s=I(typeof e.actionDom=="function"?e.actionDom():e.actionDom)}else if(e.actionPopupMenu){const c=R();i.setAttribute("id",c),s=I(wn);const d=s.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:z.INLINE});s.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:s}}function Vo(){var u,l,s;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));(s=(l=[...w().actionItems||[]].reverse())==null?void 0:l.map(c=>({actionItem:c,...qo(c)})))==null||s.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 $o=`<div class="utds-footer utah-design-system">
154
+ `;function _t(e){let t=null;if(e){t=T(Fo),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 qo(e){const t=T(On);t.getAttribute("id")||t.setAttribute("id",D());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=_t(e.badge);u&&i.appendChild(u);const l=T(e.icon);l.setAttribute("role","presentation"),i.appendChild(l);let s=null;if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const c=D();i.setAttribute("id",c),s=T(typeof e.actionDom=="function"?e.actionDom():e.actionDom)}else if(e.actionPopupMenu){const c=D();i.setAttribute("id",c),s=T(wn);const d=s.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 _=he(e.actionPopupMenu.menuItems,{childrenMenuType:z.INLINE});s.appendChild(_)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return{actionItemElement:t,actionItemContent:s}}function Vo(){var u,l,s;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));(s=(l=[...w().actionItems||[]].reverse())==null?void 0:l.map(c=>({actionItem:c,...qo(c)})))==null||s.forEach(({actionItem:c,actionItemContent:d,actionItemElement:_})=>{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(_),d)){const h=je(d);let E=null;c.actionDom?E="dialog":c.actionPopupMenu&&(E="menu"),Xe(_,h,_,{ariaHasPopupType:E,shouldOnClickCloseMenu:!1})}}),w().mainMenu||(e.remove(),t.remove())}const Go=`<div class="utds-footer utah-design-system">
150
155
  <div class="utds-footer__horizontal-divider">
151
156
  <hr />
152
157
  </div>
153
158
  <div class="utds-footer__utah-logo-wrapper">
154
159
  <div class="utah-logo-svg" id="utah-logo-svg">
155
160
  <svg viewBox="0 0 107 30.51" role="img">
156
- <g><path d="m12.44,30.51c-4.21,0-7.33-1.22-9.38-3.66C1.02,24.4,0,20.61,0,15.48V0h7.93v16.4c0,2.67.36,4.55,1.08,5.65.77,1.12,2.08,1.74,3.43,1.64,1.36.1,2.68-.52,3.48-1.63.75-1.09,1.13-2.97,1.13-5.65V0h7.65v15.48c0,5.13-1,8.92-3,11.36-2,2.44-5.09,3.66-9.26,3.66Zm24.42-.56V6.64h-7.93V0h23.78v6.64h-7.93v23.31h-7.92Zm26.17-14.56l-.51,2.07h5.53l-.51-2.07c-.37-1.44-.74-3.01-1.11-4.7-.37-1.69-.74-3.29-1.11-4.79h-.18c-.34,1.53-.68,3.14-1.04,4.82-.35,1.68-.71,3.24-1.08,4.68Zm-11.52,14.56L60.64,0h9.58l9.12,29.95h-8.39l-1.48-6.36h-8.38l-1.47,6.36h-8.11Zm30.69,0V0h7.93v11.15h8.94V0h7.93v29.95h-7.93v-11.89h-8.94v11.89h-7.93Z"/></g>
161
+ <g>
162
+ <path
163
+ d="m12.44,30.51c-4.21,0-7.33-1.22-9.38-3.66C1.02,24.4,0,20.61,0,15.48V0h7.93v16.4c0,2.67.36,4.55,1.08,5.65.77,1.12,2.08,1.74,3.43,1.64,1.36.1,2.68-.52,3.48-1.63.75-1.09,1.13-2.97,1.13-5.65V0h7.65v15.48c0,5.13-1,8.92-3,11.36-2,2.44-5.09,3.66-9.26,3.66Zm24.42-.56V6.64h-7.93V0h23.78v6.64h-7.93v23.31h-7.92Zm26.17-14.56l-.51,2.07h5.53l-.51-2.07c-.37-1.44-.74-3.01-1.11-4.7-.37-1.69-.74-3.29-1.11-4.79h-.18c-.34,1.53-.68,3.14-1.04,4.82-.35,1.68-.71,3.24-1.08,4.68Zm-11.52,14.56L60.64,0h9.58l9.12,29.95h-8.39l-1.48-6.36h-8.38l-1.47,6.36h-8.11Zm30.69,0V0h7.93v11.15h8.94V0h7.93v29.95h-7.93v-11.89h-8.94v11.89h-7.93Z" />
164
+ </g>
157
165
  </svg>
158
166
  </div>
159
167
  <div class="utds-footer__vertical-divider" role="separator" aria-orientation="vertical"></div>
160
168
  <div class="utds-footer__official-site-wrapper">
161
- <div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of Utah</span></div>
169
+ <div class="utds-footer__official-site">An official website of the <span class="whitespace-no-wrap">State of
170
+ Utah</span></div>
162
171
  <div class="utds-footer__copyright">Β©2023 State of Utah</div>
163
172
  </div>
164
173
  </div>
165
174
  <div class="utds-footer__links">
166
175
  <ul>
167
- <li><a href="https://www.utah.gov" target="__blank" rel="noreferrer">Utah.gov Home</a></li>
168
- <li><a href="https://www.utah.gov/disclaimer.html" target="__blank" rel="noreferrer">Terms of Use</a></li>
169
- <li><a href="https://www.utah.gov/privacypolicy.html" target="__blank" rel="noreferrer">Privacy Policy</a></li>
170
- <li><a href="https://www.utah.gov/accessibility.html" target="__blank" rel="noreferrer">Accessibility</a></li>
171
- <li><a href="https://www.utah.gov/translate.html" target="__blank" rel="noreferrer">Translate</a></li>
176
+ <li>
177
+ <a href="https://www.utah.gov/index.html" target="__blank" rel="noreferrer">Utah.gov Home</a>
178
+ </li>
179
+ <li>
180
+ <a href="https://www.utah.gov/support/disclaimer.html" target="__blank" rel="noreferrer">Terms of Use</a>
181
+ </li>
182
+ <li>
183
+ <a href="https://www.utah.gov/support/privacypolicy.html" target="__blank" rel="noreferrer">Privacy
184
+ Policy</a>
185
+ </li>
186
+ <li>
187
+ <a href="https://www.utah.gov/support/accessibility.html" target="__blank" rel="noreferrer">Accessibility</a>
188
+ </li>
189
+ <li>
190
+ <a href="https://www.utah.gov/support/translate.html" target="__blank" rel="noreferrer">Translate</a>
191
+ </li>
172
192
  </ul>
173
193
  </div>
174
194
  </div>
175
- `,oe={domLocationTarget:{cssSelector:void 0,element:void 0,elementFunction:void 0},showHorizontalRule:!1};function Go(){var o,r,i,u,l,s,c,d,m,f,h,_,E,v,T,g,O,b,A,M,P,U,S,N,C,V;const e=w(),t=document.querySelector(p(a.FOOTER));let n=t;if(e.footer===null)t==null||t.remove();else if(oe.domLocationTarget.cssSelector!==((r=(o=e==null?void 0:e.footer)==null?void 0:o.domLocationTarget)==null?void 0:r.cssSelector)||oe.domLocationTarget.element!==((u=(i=e==null?void 0:e.footer)==null?void 0:i.domLocationTarget)==null?void 0:u.element)||oe.domLocationTarget.elementFunction!==((s=(l=e==null?void 0:e.footer)==null?void 0:l.domLocationTarget)==null?void 0:s.elementFunction)||oe.showHorizontalRule!==((c=e==null?void 0:e.footer)==null?void 0:c.showHorizontalRule)||!t){t&&t.remove(),n=I($o);let B=document.body;if((d=e==null?void 0:e.footer)!=null&&d.domLocationTarget){const W=[(m=e==null?void 0:e.footer)==null?void 0:m.domLocationTarget.cssSelector,(f=e==null?void 0:e.footer)==null?void 0:f.domLocationTarget.element,(h=e==null?void 0:e.footer)==null?void 0:h.domLocationTarget.elementFunction].filter(k=>k);if(ee(W.length<1,"renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"),ee(W.length>1,"renderFooter: footer.domLocationTarget must only have one target specified"),(_=e==null?void 0:e.footer)!=null&&_.domLocationTarget.cssSelector)B=document.querySelector((E=e==null?void 0:e.footer)==null?void 0:E.domLocationTarget.cssSelector),ee(!B,`renderFooter: element not found for domLocationTarget.cssSelector ${(v=e==null?void 0:e.footer)==null?void 0:v.domLocationTarget.cssSelector}`);else if((T=e==null?void 0:e.footer)!=null&&T.domLocationTarget.element)B=(g=e==null?void 0:e.footer)==null?void 0:g.domLocationTarget.element;else if((O=e==null?void 0:e.footer)!=null&&O.domLocationTarget.elementFunction)B=(b=e==null?void 0:e.footer)==null?void 0:b.domLocationTarget.elementFunction(),ee(!B,"renderFooter: element not returned from domLocationTarget.elementFunction");else throw new Error("renderFooter: domLocationTarget must have at least one field set")}if(B==null||B.appendChild(n),!((A=e==null?void 0:e.footer)!=null&&A.showHorizontalRule)){const W=document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));ee(!W,"renderFooter: cannot remove horizontal rule; not found"),W==null||W.remove()}oe.domLocationTarget.cssSelector=(P=(M=e==null?void 0:e.footer)==null?void 0:M.domLocationTarget)==null?void 0:P.cssSelector,oe.domLocationTarget.element=(S=(U=e==null?void 0:e.footer)==null?void 0:U.domLocationTarget)==null?void 0:S.element,oe.domLocationTarget.elementFunction=(C=(N=e==null?void 0:e.footer)==null?void 0:N.domLocationTarget)==null?void 0:C.elementFunction,oe.showHorizontalRule=(V=e==null?void 0:e.footer)==null?void 0:V.showHorizontalRule}return n}const zo=`<div class="utds-citizen-experience-wrapper--mobile"></div>
176
- `,Yo=`<h1 class="utds-logo-wrapper"></h1>
177
- `,Ko=`<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
195
+ `,ne={domLocationTarget:{cssSelector:void 0,element:void 0,elementFunction:void 0},showHorizontalRule:!1};function $o(){var o,r,i,u,l,s,c,d,_,f,h,E,v,m,I,g,O,b,M,A,y,N,U,S,R,q;const e=w(),t=document.querySelector(p(a.FOOTER));let n=t;if(e.footer===null)t==null||t.remove();else if(ne.domLocationTarget.cssSelector!==((r=(o=e==null?void 0:e.footer)==null?void 0:o.domLocationTarget)==null?void 0:r.cssSelector)||ne.domLocationTarget.element!==((u=(i=e==null?void 0:e.footer)==null?void 0:i.domLocationTarget)==null?void 0:u.element)||ne.domLocationTarget.elementFunction!==((s=(l=e==null?void 0:e.footer)==null?void 0:l.domLocationTarget)==null?void 0:s.elementFunction)||ne.showHorizontalRule!==((c=e==null?void 0:e.footer)==null?void 0:c.showHorizontalRule)||!t){t&&t.remove(),n=T(Go);let H=document.body;if((d=e==null?void 0:e.footer)!=null&&d.domLocationTarget){const C=[(_=e==null?void 0:e.footer)==null?void 0:_.domLocationTarget.cssSelector,(f=e==null?void 0:e.footer)==null?void 0:f.domLocationTarget.element,(h=e==null?void 0:e.footer)==null?void 0:h.domLocationTarget.elementFunction].filter(Ee=>Ee);if(J(C.length<1,"renderFooter: footer.domLocationTarget must either have a value for one of its properties or not be specified at all"),J(C.length>1,"renderFooter: footer.domLocationTarget must only have one target specified"),(E=e==null?void 0:e.footer)!=null&&E.domLocationTarget.cssSelector)H=document.querySelector((v=e==null?void 0:e.footer)==null?void 0:v.domLocationTarget.cssSelector),J(!H,`renderFooter: element not found for domLocationTarget.cssSelector ${(m=e==null?void 0:e.footer)==null?void 0:m.domLocationTarget.cssSelector}`);else if((I=e==null?void 0:e.footer)!=null&&I.domLocationTarget.element)H=(g=e==null?void 0:e.footer)==null?void 0:g.domLocationTarget.element;else if((O=e==null?void 0:e.footer)!=null&&O.domLocationTarget.elementFunction)H=(b=e==null?void 0:e.footer)==null?void 0:b.domLocationTarget.elementFunction(),J(!H,"renderFooter: element not returned from domLocationTarget.elementFunction");else throw new Error("renderFooter: domLocationTarget must have at least one field set")}if(H==null||H.appendChild(n),!((M=e==null?void 0:e.footer)!=null&&M.showHorizontalRule)){const C=document.querySelector(p(a.FOOTER_HORIZONTAL_DIVIDER));J(!C,"renderFooter: cannot remove horizontal rule; not found"),C==null||C.remove()}L(document.querySelector(p(a.FOOTER_LINKS)),"renderFooter: footer links not found").querySelectorAll("li").forEach(C=>{C.appendChild(T(Qe))}),ne.domLocationTarget.cssSelector=(y=(A=e==null?void 0:e.footer)==null?void 0:A.domLocationTarget)==null?void 0:y.cssSelector,ne.domLocationTarget.element=(U=(N=e==null?void 0:e.footer)==null?void 0:N.domLocationTarget)==null?void 0:U.element,ne.domLocationTarget.elementFunction=(R=(S=e==null?void 0:e.footer)==null?void 0:S.domLocationTarget)==null?void 0:R.elementFunction,ne.showHorizontalRule=(q=e==null?void 0:e.footer)==null?void 0:q.showHorizontalRule}return n}const zo=`<div class="utds-citizen-experience-wrapper--mobile"></div>
196
+ `,Ko=`<h1 class="utds-logo-wrapper"></h1>
197
+ `,Yo=`<div class="utah-design-system utds-header" role="banner" aria-label="Utah.gov Header"></div>
178
198
  `,jo=`<span class="utds-logo-vert-line"></span>
179
199
  `,Zo=`<div class="utds-citizen-experience-wrapper"></div>
180
200
  `,Xo=`<div class="utds-action-items-wrapper"></div>
@@ -188,12 +208,12 @@
188
208
  <div class="tooltip__arrow" data-popper-arrow></div>
189
209
  </div>
190
210
  </div>
191
- `;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:Qe.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(l=>console.error(l)))},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 er(e){const t=I(Qo),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 l=I(e.icon);if(l.setAttribute("role","presentation"),i.appendChild(l),!(i instanceof HTMLElement))throw new Error("renderActionItem: iconButton is not an HTMLElement");if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const s=R();i.setAttribute("id",s);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 s=R();i.setAttribute("id",s);const c=pt(e.actionPopupMenu,i,{childrenMenuType:z.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 tr(){var n,o;const{actionItems:e}=w();let t=null;return e!=null&&e.length&&(t=I(Xo),(o=(n=w().actionItems)==null?void 0:n.map(r=>er(r)))==null||o.forEach(r=>t==null?void 0:t.appendChild(r))),t}const nr=`<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
192
- `,Gt=`<div class="utds-utah-id-wrapper"></div>
193
- `,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"},or=`<div class="vertical-menu__wrapper">
211
+ `;let me=NaN;function Pe(e,t){const n=T(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(l=>console.error(l)))},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 er(e){const t=T(Qo),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=_t(e.badge);u&&i.appendChild(u);const l=T(e.icon);if(l.setAttribute("role","presentation"),i.appendChild(l),!(i instanceof HTMLElement))throw new Error("renderActionItem: iconButton is not an HTMLElement");if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const s=D();i.setAttribute("id",s);const c=pt(i),d=c.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!d)throw new Error("renderPopupMenu: contentWrapper not found");d.appendChild(T(typeof e.actionDom=="function"?e.actionDom():e.actionDom)),t.appendChild(c),ye(o,i,c,"dialog",void 0)}else if(e.actionPopupMenu){const s=D();i.setAttribute("id",s);const c=ft(e.actionPopupMenu,i,{childrenMenuType:z.INLINE});t.appendChild(c),ye(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 Pe(t,document.createTextNode(e.title)),t}function tr(){var n,o;const{actionItems:e}=w();let t=null;return e!=null&&e.length&&(t=T(Xo),(o=(n=w().actionItems)==null?void 0:n.map(r=>er(r)))==null||o.forEach(r=>t==null?void 0:t.appendChild(r))),t}const nr=`<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
212
+ `,$t=`<div class="utds-utah-id-wrapper"></div>
213
+ `,Ne={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"},or=`<div class="vertical-menu__wrapper">
194
214
  <div class="vertical-menu__wrapper-title"></div>
195
215
  </div>
196
- `;function zt(e,t){const n=I(or),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 Yt(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 Kt(){const e=I(nr);return e.setAttribute("id",R()),y&&Yt(y),e}function jt(e){var s,c,d;const t=w(),n=t.utahId!==!1&&t.utahId!==!0&&((s=t.utahId)==null?void 0:s.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:z.INLINE}),l=e?zt(u,"Utah ID Menu"):u;return l.setAttribute("aria-label","Utah Id Menu"),l.setAttribute("id",R()),l}function rr(){var l;const e=I(Gt),t=Kt();t.setAttribute("id",R()),e.appendChild(t);const n=jt(!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&&((l=i.utahId)==null?void 0:l.onSignIn);return Le(e,t,o,"menu",{isPerformPopup:()=>{var s;return!!(y!=null&&y.isDefinitive)&&!!((s=y==null?void 0:y.userInfo)!=null&&s.authenticated)},onClick:s=>{var c;(!(y!=null&&y.isDefinitive)||!((c=y==null?void 0:y.userInfo)!=null&&c.authenticated))&&(u?u(s):(s.preventDefault(),s.stopPropagation(),window.location.href=Pe.SIGN_IN))}}),e}function ir(){const e=I(Gt),t=Kt(),n=t.getAttribute("id");if(!n)throw new Error("renderUtahIdForMobile: utahIdButton has no id");e.appendChild(t);const o=jt(!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 ar(){const e=I(Zo),t=tr();return t&&e.appendChild(t),w().utahId!==!1&&e.appendChild(rr()),e}const sr=`<div class="utds-title-wrapper">
216
+ `;function zt(e,t){const n=T(or),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 P=null;function Kt(e){P=e,document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach(n=>{var o;if(n){if(n.innerHTML="",P!=null&&P.userInfo&&((o=P.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, ${P.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&&ht(n,i)}})}function ht(e,t){var n;e&&t&&(!!(P!=null&&P.isDefinitive)&&!!((n=P==null?void 0:P.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=T(nr);return e.setAttribute("id",D()),P&&Kt(P),e}function jt(e){var s,c,d;const t=w(),n=t.utahId!==!1&&t.utahId!==!0&&((s=t.utahId)==null?void 0:s.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:Ne.PROFILE,openInNewTab:!0},actionFunction:n||void 0,className:"external-link",title:"UtahID Profile"},{actionUrl:o?void 0:{url:Ne.SIGN_OUT},actionFunction:o||void 0,title:"Sign Out"}],u=he(i,{childrenMenuType:z.INLINE}),l=e?zt(u,"Utah ID Menu"):u;return l.setAttribute("aria-label","Utah Id Menu"),l.setAttribute("id",D()),l}function rr(){var l;const e=T($t),t=Yt();t.setAttribute("id",D()),e.appendChild(t);const n=jt(!1),o=pt(t),r=o.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!r)throw new Error("renderUtahIdForDesktop: contentWrapper not found");r.appendChild(n),e.appendChild(o),ht(t,o);const i=w(),u=i.utahId!==!1&&i.utahId!==!0&&((l=i.utahId)==null?void 0:l.onSignIn);return ye(e,t,o,"menu",{isPerformPopup:()=>{var s;return!!(P!=null&&P.isDefinitive)&&!!((s=P==null?void 0:P.userInfo)!=null&&s.authenticated)},onClick:s=>{var c;(!(P!=null&&P.isDefinitive)||!((c=P==null?void 0:P.userInfo)!=null&&c.authenticated))&&(u?u(s):(s.preventDefault(),s.stopPropagation(),window.location.href=Ne.SIGN_IN))}}),e}function ir(){const e=T($t),t=Yt(),n=t.getAttribute("id");if(!n)throw new Error("renderUtahIdForMobile: utahIdButton has no id");e.appendChild(t);const o=jt(!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),ht(t,o),{button:t,menu:o}}function ar(){const e=T(Zo),t=tr();return t&&e.appendChild(t),w().utahId!==!1&&e.appendChild(rr()),e}const sr=`<div class="utds-title-wrapper">
197
217
  <div class="utds-title-wrapper__logo"></div>
198
218
  <div class="utds-title-wrapper__title"></div>
199
219
  </div>
@@ -201,7 +221,7 @@
201
221
  <div class="utds-title-wrapper__logo"></div>
202
222
  <div class="utds-title-wrapper__title"></div>
203
223
  </a>
204
- `;function cr(){const e=w().titleURL,t=I(e?lr:sr);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 s;if(o.htmlString)s=I(X(o.htmlString));else if(o.element)s=X(o.element);else if(o.imageUrl)s=I(`<img src=${X(o.imageUrl)} id="design-system-logo" />`);else throw new Error("LogoTitle: logo set but has no settings");s.setAttribute("role","presentation"),n.appendChild(s)}else t.removeChild(n);const u=document.createTextNode(i),l=t.querySelector(p(a.TITLE__TITLE));return l==null||l.appendChild(u),!r&&o&&(l==null||l.classList.add(a.VISUALLY_HIDDEN)),t}const ur=`<div class="utah-logo-wrapper">
224
+ `;function cr(){const e=w().titleURL,t=T(e?lr:sr);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 s;if(o.htmlString)s=T(Z(o.htmlString));else if(o.element)s=Z(o.element);else if(o.imageUrl)s=T(`<img src=${Z(o.imageUrl)} id="design-system-logo" />`);else throw new Error("LogoTitle: logo set but has no settings");s.setAttribute("role","presentation"),n.appendChild(s)}else t.removeChild(n);const u=document.createTextNode(i),l=t.querySelector(p(a.TITLE__TITLE));return l==null||l.appendChild(u),!r&&o&&(l==null||l.classList.add(a.VISUALLY_HIDDEN)),t}const ur=`<div class="utah-logo-wrapper">
205
225
  <button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
206
226
  <span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
207
227
  more.</span>
@@ -239,7 +259,7 @@
239
259
  How do I know it’s official?<br />
240
260
  Learn more.
241
261
  </div>
242
- `;function fr(){let e;switch(w().size){case ue.LARGE:e=ur;break;case ue.SMALL:case ue.MEDIUM:e=dr;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",R()),ye(t,I(pr)),t}function _r(){var n;const e=I(Ko);e.classList.add(`utds-header--${((n=w().size)==null?void 0:n.toLowerCase())||ue.MEDIUM}`);const t=I(Yo);return e.appendChild(t),t.appendChild(fr()),t.appendChild(I(jo)),t.appendChild(cr()),e.appendChild(ar()),e.appendChild(I(zo)),e}const hr=`<li class="menu-item">
262
+ `;function fr(){let e;switch(w().size){case ue.LARGE:e=ur;break;case ue.SMALL:case ue.MEDIUM:e=dr;break;default:throw new Error(`Unknown settings size: '${w().size}'`)}const t=T(e);if(!t.querySelector(p(a.LOGO_SVG)))throw new Error("UtahLogo: logoButton not found");return t.setAttribute("id",D()),Pe(t,T(pr)),t}function _r(){var n;const e=T(Yo);e.classList.add(`utds-header--${((n=w().size)==null?void 0:n.toLowerCase())||ue.MEDIUM}`);const t=T(Ko);return e.appendChild(t),t.appendChild(fr()),t.appendChild(T(jo)),t.appendChild(cr()),e.appendChild(ar()),e.appendChild(T(zo)),e}const hr=`<li class="menu-item">
243
263
  <span class="menu-item__title">
244
264
  <button class="menu-item__button-title" type="button">
245
265
  <span class="menu-item__link-title-span"></span>
@@ -303,7 +323,7 @@
303
323
  </div>
304
324
  <div class="search-backdrop modal-backdrop backdrop-dark"></div>
305
325
  </div>
306
- `;function qe(){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(Er),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=l=>{l.preventDefault(),l.stopPropagation(),qe();const{onSearch:s}=w();s&&(s==null||s(i.value))},n.onclick=l=>{l.preventDefault(),l.stopPropagation(),qe()},t.onclick=l=>{l.preventDefault(),l.stopPropagation(),qe()},document.body.appendChild(e),i.focus(),i.oninput=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},o.onfocus=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},e.onkeyup=l=>{(l.code==="Escape"||l.key==="Escape")&&(l.preventDefault(),l.stopPropagation(),qe())},n.addEventListener("focusout",l=>{l.preventDefault(),l.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",l=>{l.preventDefault(),l.stopPropagation(),n.focus()})}function vr(){var l;const e=w(),t=I(mr);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 s=n==null?void 0:n.querySelector(p(a.MAIN_MENU__MENU_TOP));if(!s)throw new Error("renderMainMenu(): mainMenuTop not found");e.mainMenu.menuItems.forEach(c=>{var v,T;const d=I(hr);s.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}-${R()}`);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}-${R()}`);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&&He(c.actionMenu,["actionMenu"],g=>!!g.isSelected))&&_.classList.add(a.MENU_ITEM__SELECTED),c.actionMenu){E.innerHTML=c.title;const g={menuItems:c.actionMenu,title:c.title},O=pt(g,_,{childrenMenuType:c.childrenMenuType||z.FLYOUT});d.appendChild(O),Le(d,_,O,"menu",{shouldFocusOnHover:!0});let b;switch(c.childrenMenuType){case z.INLINE:b=a.MENU_ITEM__INLINE;break;case z.MEGA_MENU:b=a.MENU_ITEM__MEGA_MENU;break;case z.FLYOUT:default:b=a.MENU_ITEM__FLY_OUT;break}d.classList.add(b)}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=g=>{var O,b;(O=c.actionFunctionUrl)!=null&&O.skipHandleEvent||(g.stopPropagation(),g.preventDefault()),(b=c.actionFunctionUrl)==null||b.actionFunction(g)}):c.actionUrl&&(E.innerHTML=c.title,_.setAttribute("href",c.actionUrl.url)),((v=c.actionUrl)!=null&&v.openInNewTab||(T=c.actionFunctionUrl)!=null&&T.openInNewTab)&&(_.setAttribute("target","_blank"),_.appendChild(I(gt)))})}let i=null;if(e.utahId){const{button:s,menu:c}=ir();i=c,L(t.querySelector(p(a.MOBILE__UTAH_ID)),"renderMainMenu: utahIdButtonWrapper not found").appendChild(s)}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 s=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");s.insertBefore(c,d)}else s.appendChild(c)}if(!e.mainMenu&&!e.actionItems&&e.utahId===!1){const s=I(u.outerHTML);if(ye(s,document.createTextNode("Search")),s.onclick)throw new Error("searchIconMobile already has onclick");s.onclick=()=>ht(),L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"renderMainMenu: citizen-experience--mobile not found").appendChild(s)}}return e.onSearch||((e.mainMenu||!e.mainMenu&&e.utahId)&&((l=u.parentElement)==null||l.insertBefore(I('<div class="main-menu__search-placeholder">'),u)),u.remove()),{mainMenuWrapper:t,utahIdPopup:i}}const br=`<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
326
+ `;function Ve(){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 mt(){const e=T(Er),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=l=>{l.preventDefault(),l.stopPropagation(),Ve();const{onSearch:s}=w();s&&(s==null||s(i.value))},n.onclick=l=>{l.preventDefault(),l.stopPropagation(),Ve()},t.onclick=l=>{l.preventDefault(),l.stopPropagation(),Ve()},document.body.appendChild(e),i.focus(),i.oninput=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},o.onfocus=()=>{r.classList.remove(a.VISUALLY_HIDDEN)},e.onkeyup=l=>{(l.code==="Escape"||l.key==="Escape")&&(l.preventDefault(),l.stopPropagation(),Ve())},n.addEventListener("focusout",l=>{l.preventDefault(),l.stopPropagation(),Le[ut.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",l=>{l.preventDefault(),l.stopPropagation(),n.focus()})}function vr(){var l;const e=w(),t=T(mr);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 s=n==null?void 0:n.querySelector(p(a.MAIN_MENU__MENU_TOP));if(!s)throw new Error("renderMainMenu(): mainMenuTop not found");e.mainMenu.menuItems.forEach(c=>{var m,I;const d=T(hr);s.appendChild(d);const _=L(d.querySelector(p(a.MENU_ITEM__TITLE)),`renderMainMenu(): sub menu title not found for ${c.title}`),f=L(_.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}-${D()}`);const h=L(_.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}-${D()}`);let E;if(c.actionFunctionUrl||c.actionUrl)E=h,f.remove();else if(c.actionMenu||c.actionFunction)E=f,h.remove();else throw new Error(`renderMainMenu(): menuItem is missing an action: ${c.title}`);const v=L(E.querySelector(p(a.MENU_ITEM__LINK_TITLE_SPAN)),`renderMainMenu(): main menu item title span not found for: ${c.title}`);if((c.isSelected||c.actionMenu&&xe(c.actionMenu,["actionMenu"],g=>!!g.isSelected))&&E.classList.add(a.MENU_ITEM__SELECTED),c.actionMenu){v.innerHTML=c.title;const g={menuItems:c.actionMenu,title:c.title},O=ft(g,E,{childrenMenuType:c.childrenMenuType||z.FLYOUT});d.appendChild(O),ye(d,E,O,"menu",{shouldFocusOnHover:!0});let b;switch(c.childrenMenuType){case z.INLINE:b=a.MENU_ITEM__INLINE;break;case z.MEGA_MENU:b=a.MENU_ITEM__MEGA_MENU;break;case z.FLYOUT:default:b=a.MENU_ITEM__FLY_OUT;break}d.classList.add(b)}else L(E.querySelector(p(a.MENU_ITEM__ARROW)),`renderMainMenu(): menu arrow not found for ${c.title}`).remove();c.actionFunction?(v.innerHTML=c.title,E.onclick=c.actionFunction):c.actionFunctionUrl?(v.innerHTML=c.title,E.setAttribute("href",c.actionFunctionUrl.url),E.onclick=g=>{var O,b;(O=c.actionFunctionUrl)!=null&&O.skipHandleEvent||(g.stopPropagation(),g.preventDefault()),(b=c.actionFunctionUrl)==null||b.actionFunction(g)}):c.actionUrl&&(v.innerHTML=c.title,E.setAttribute("href",c.actionUrl.url)),((m=c.actionUrl)!=null&&m.openInNewTab||(I=c.actionFunctionUrl)!=null&&I.openInNewTab)&&(E.setAttribute("target","_blank"),E.appendChild(T(Qe)))})}let i=null;if(e.utahId){const{button:s,menu:c}=ir();i=c,L(t.querySelector(p(a.MOBILE__UTAH_ID)),"renderMainMenu: utahIdButtonWrapper not found").appendChild(s)}const u=L(t.querySelector(p(a.MAIN_MENU__SEARCH)),"renderMainMenu: searchIcon not found");if(e.onSearch){if(Pe(u,document.createTextNode("Search")),u.onclick)throw new Error("searchIcon already has onclick");if(u.onclick=()=>mt(),!e.mainMenu){const s=L(document.querySelector(p(a.CITIZEN_EXPERIENCE)),"renderMainMenu: citizen experience wrapper not found"),c=T(u.outerHTML);if(Pe(c,document.createTextNode("Search")),c.onclick=()=>mt(),u.classList.add(a.DESKTOP__HIDDEN),e.utahId!==!1){const d=L(document.querySelector(p(a.UTAH_ID)),"renderMainMenu: utahId wrapper not found");s.insertBefore(c,d)}else s.appendChild(c)}if(!e.mainMenu&&!e.actionItems&&e.utahId===!1){const s=T(u.outerHTML);if(Pe(s,document.createTextNode("Search")),s.onclick)throw new Error("searchIconMobile already has onclick");s.onclick=()=>mt(),L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"renderMainMenu: citizen-experience--mobile not found").appendChild(s)}}return e.onSearch||((e.mainMenu||!e.mainMenu&&e.utahId)&&((l=u.parentElement)==null||l.insertBefore(T('<div class="main-menu__search-placeholder">'),u)),u.remove()),{mainMenuWrapper:t,utahIdPopup:i}}const br=`<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
307
327
  <h2 class="utds-official-website-popup__heading">
308
328
  This is an official website of the State of Utah. Here’s how you know:
309
329
  </h2>
@@ -344,8 +364,8 @@
344
364
  <span class="visually-hidden">Close official website popup</span>
345
365
  </button>
346
366
  </div>
347
- `;function Zt(){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 Ir(){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)}),Be()}function Tr(){const e=I(br),t=document.querySelector(p(a.LOGO)),n=t==null?void 0:t.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)?Zt():Ir();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=R()),e.id||(e.id=R()),n.setAttribute("aria-controls",e.id),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-labelledby",n.id),e}function gr(e){var s,c;const{hamburger:t}=ve("hookupHamburger"),n=w();if((s=n.actionItems)==null?void 0:s.some(d=>!!d.badge)){const d=ft({label:"Home Badge"});d&&t.appendChild(d)}Be();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"),l=(u||i).getAttribute("id");if(!l)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",l)}Xe(t,()=>r().actionItemWrapper,()=>r().actionItem,{additionalOnClick:()=>Zt(),ariaHasPopupType:"menu",shouldOnClickCloseMenu:!0}),ee(!!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 Xt=Ne.NONE;function Mr(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 x={isDefinitive:null,lastError:null,userInfo:null};function Qt(e){var t,n;if(e.isDefinitive){Yt(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 Ar=500;let en=NaN;async function tn(){var o,r;let e=Promise.resolve(x);const t=w(),n=Mr(t.utahId);if(x.isDefinitive===!1)e=Promise.resolve(x);else if(Jt)clearTimeout(en),e=new Promise(i=>{en=window.setTimeout(()=>{Jt=!1,tn().then(u=>i(u)).catch(u=>console.error(u))},Ar)});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!==Xt||x.isDefinitive===null)&&(x.isDefinitive=!1,e=fetch(Pe.USER_INFO,{credentials:"include"}).then(i=>i.json()).then(i=>{if(i.status===200)x.lastError=null,x.userInfo=i.data;else throw new Error(i.err);return x}).catch(i=>(x.lastError=i,x.userInfo=null,x)).finally(()=>(x.isDefinitive=!0,Qt(x),x)));else{const i={isDefinitive:!0,lastError:null,userInfo:(r=t.utahId)==null?void 0:r.currentUser};e=Promise.resolve(i),Qt(i)}return Xt=n,e}function Or(){return x}function wr(){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 Lr(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 l=je(t);Xe(o,l,u,{ariaHasPopupType:"menu",onClickHandler:s=>{var f,h;const c=Or(),d=w();let m=!1;if(!(c!=null&&c.isDefinitive)||!((f=c==null?void 0:c.userInfo)!=null&&f.authenticated)){m=!0;const _=d.utahId!==!1&&d.utahId!==!0&&((h=d.utahId)==null?void 0:h.onSignIn);_?_(s):(s.preventDefault(),s.stopPropagation(),window.location.href=Pe.SIGN_IN)}return m},shouldOnClickCloseMenu:!0})}function yr(){var t;const e=w();return he(e.mainMenu&&((t=e.mainMenu)==null?void 0:t.menuItems)||void 0,{childrenMenuType:z.INLINE,removePopupArrow:!0})}function Pr(){const t=[...document.querySelectorAll(`
367
+ `;function Zt(){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 Ir(){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)}),He()}function Tr(){const e=T(br),t=document.querySelector(p(a.LOGO)),n=t==null?void 0:t.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)?Zt():Ir();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=D()),e.id||(e.id=D()),n.setAttribute("aria-controls",e.id),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-labelledby",n.id),e}function gr(e){var c,d;const{hamburger:t}=be("hookupHamburger"),n=_=>L(t,`hookupHamburger: hamburger required but is null: ${_}`),o=w();if((c=o.actionItems)==null?void 0:c.some(_=>!!_.badge)){const _=_t({label:"Home Badge"});_&&n("home badge").appendChild(_)}He();function i(){const _=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"),f=_.querySelector("button"),h=f==null?void 0:f.getAttribute("aria-controls");return{actionItem:_,actionItemWrapper:h?document.getElementById(h):null}}const u=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"),l=(d=u.querySelector)==null?void 0:d.call(u,"button"),s=(l||u).getAttribute("id");if(!s)throw new Error("mobileMenuInteractionHandler: actionItemId not found");if(e){const _=e.getAttribute("id");if(!_)throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");(l||u).setAttribute("aria-controls",_),e.setAttribute("aria-labelledby",s)}t&&Xe(t,()=>i().actionItemWrapper,()=>i().actionItem,{additionalOnClick:()=>Zt(),ariaHasPopupType:"menu",shouldOnClickCloseMenu:!0}),t&&(J(!!t.onblur,"hookupHamburger: hamburger already has an onblur event"),t.onblur=()=>{const{mobileMenu:_}=be("showMobileMenu");if(_.classList.contains(a.IS_OPEN)){const f=p(a.MOBILE_MENU__ACTION_BAR),h=p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER),E=p(a.ICON_BUTTON),v=document.querySelector(`${f} ${h}:first-child ${E}`);v==null||v.focus()}}),(o.mainMenu||o.actionItems)&&!o.onSearch&&o.utahId===!1&&(L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"hookupHamburger: citizen experience mobile not found").appendChild(n("adding to citizen experience")),L(document.querySelector(p(a.MAIN_MENU)),"hookupHamburger: main menu not found").classList.add(a.MOBILE__HIDDEN)),o.onSearch&&!o.mainMenu&&L(document.querySelector(p(a.MAIN_MENU)),"renderMainMenu: main menu not found").classList.add(a.DESKTOP__HIDDEN)}const Se={AUTOMATIC:"Automatic",NONE:"None",PROVIDED:"Provided"};let Xt=Se.NONE;function Mr(e){let t;if(e===!0)t=Se.AUTOMATIC;else if(e===!1)t=Se.NONE;else if(e===void 0||e.currentUser===void 0)t=Se.AUTOMATIC;else if(e.currentUser===null||e.currentUser)t=Se.PROVIDED;else throw new Error("determineFetchStyle: Unknown utah id fetch style");return t}const W={isDefinitive:null,lastError:null,userInfo:null};function Qt(e){var t,n;if(e.isDefinitive){Kt(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 Ar=500;let en=NaN;async function tn(){var o,r;let e=Promise.resolve(W);const t=w(),n=Mr(t.utahId);if(W.isDefinitive===!1)e=Promise.resolve(W);else if(Jt)clearTimeout(en),e=new Promise(i=>{en=window.setTimeout(()=>{Jt=!1,tn().then(u=>i(u)).catch(u=>console.error(u))},Ar)});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!==Xt||W.isDefinitive===null)&&(W.isDefinitive=!1,e=fetch(Ne.USER_INFO,{credentials:"include"}).then(i=>i.json()).then(i=>{if(i.status===200)W.lastError=null,W.userInfo=i.data;else throw new Error(i.err);return W}).catch(i=>(W.lastError=i,W.userInfo=null,W)).finally(()=>(W.isDefinitive=!0,Qt(W),W)));else{const i={isDefinitive:!0,lastError:null,userInfo:(r=t.utahId)==null?void 0:r.currentUser};e=Promise.resolve(i),Qt(i)}return Xt=n,e}function Or(){return W}function wr(){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 Lr(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 l=je(t);Xe(o,l,u,{ariaHasPopupType:"menu",onClickHandler:s=>{var f,h;const c=Or(),d=w();let _=!1;if(!(c!=null&&c.isDefinitive)||!((f=c==null?void 0:c.userInfo)!=null&&f.authenticated)){_=!0;const E=d.utahId!==!1&&d.utahId!==!0&&((h=d.utahId)==null?void 0:h.onSignIn);E?E(s):(s.preventDefault(),s.stopPropagation(),window.location.href=Ne.SIGN_IN)}return _},shouldOnClickCloseMenu:!0})}function yr(){var t;const e=w();return he(e.mainMenu&&((t=e.mainMenu)==null?void 0:t.menuItems)||void 0,{childrenMenuType:z.INLINE,removePopupArrow:!0})}function Pr(){const t=[...document.querySelectorAll(`
348
368
  ${p(a.MOBILE_MENU__ACTION_BAR)}
349
369
  ${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
350
370
  ${p(a.ACTION_ITEM__ICON_BUTTON)}
351
- `)];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 l=NaN;if(i.code==="Home"?l=0:i.code==="End"?l=t.length-1:i.code==="ArrowRight"?l=(u+1)%t.length:i.code==="ArrowLeft"&&(l=(t.length+u-1)%t.length),!Number.isNaN(l)){i.preventDefault(),i.stopPropagation();const s=t[l],c=s==null?void 0:s.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=s==null?void 0:s.getAttribute("aria-controls");if(d&&document.getElementById(d))s==null||s.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 Nr(){const e=vn.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 Sr(){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),ee(!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(),ee(!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 nn(){var t;if(!document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER]))){const n=_r(),o=Sr();o.insertBefore(n,o.firstChild);const r=Tr();n.after(r);const{mainMenuWrapper:i,utahIdPopup:u}=vr();i&&r.after(i);const l=I(bn);r.after(l);const s=document.querySelector(p(a.MOBILE_MENU__BACKDROP));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");if(s.onclick)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");s.onclick=()=>Be();const c=yr(),d=zt(c,"Main Menu");d.appendChild(c);const m=je(d);gr(m),u?((t=u.closest("div"))==null||t.removeAttribute("aria-labelledby"),Lr(l,u)):wr(),Vo(),Pr(),Bo(),Nr(),tn().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)&&(l.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)}Go()}function on(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(Ke.HEADER_UNLOADED)),0)}function rn(){on(!1),nn()}let an=!1;const Ur=15e3;let sn=0;const Cr=setInterval(()=>{sn+=1,sn>=Ur||an?clearInterval(Cr):document.dispatchEvent(new Event(Ke.HEADER_LOADED))},2);function ln(e){return De.setSettings(e),an=!0,document!=null&&document.body?rn():window.addEventListener("load",()=>rn()),De.getSettings()}function Rr(e){return ln({...Re,...De.getSettings(),footer:e})}H.childrenMenuTypes=z,H.defaultSettings=Re,H.events=Ke,H.getUtahHeaderSettings=w,H.loadHeader=nn,H.removeHeader=on,H.renderDOMSingle=I,H.setUtahFooterSettings=Rr,H.setUtahHeaderSettings=ln,H.sizes=ue,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
371
+ `)];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 l=NaN;if(i.code==="Home"?l=0:i.code==="End"?l=t.length-1:i.code==="ArrowRight"?l=(u+1)%t.length:i.code==="ArrowLeft"&&(l=(t.length+u-1)%t.length),!Number.isNaN(l)){i.preventDefault(),i.stopPropagation();const s=t[l],c=s==null?void 0:s.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=s==null?void 0:s.getAttribute("aria-controls");if(d&&document.getElementById(d))s==null||s.click();else{const h=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!h)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const E=h.querySelector(p(a.MOBILE_MENU__CONTENT));if(!E)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");E.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(v=>v.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}=be("hookupMobileActionItemKeyboarding");n.addEventListener("focusin",r=>{r.preventDefault(),r.stopPropagation(),o==null||o.focus()})}function Nr(){const e=vn.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 Sr(){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 nn(){var t;if(!document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER]))){const n=_r(),o=Sr();o.insertBefore(n,o.firstChild);const r=Tr();n.after(r);const{mainMenuWrapper:i,utahIdPopup:u}=vr();i&&r.after(i);const l=T(bn);r.after(l);const s=document.querySelector(p(a.MOBILE_MENU__BACKDROP));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");if(s.onclick)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");s.onclick=()=>He();const c=yr(),d=zt(c,"Main Menu");d.appendChild(c);const _=je(d);gr(_),u?((t=u.closest("div"))==null||t.removeAttribute("aria-labelledby"),Lr(l,u)):wr(),Vo(),Pr(),Bo(),Nr(),tn().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)&&(l.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 on(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(Ye.HEADER_UNLOADED)),0)}function rn(){on(!1),nn()}let an=!1;const Ur=15e3;let sn=0;const Cr=setInterval(()=>{sn+=1,sn>=Ur||an?clearInterval(Cr):document.dispatchEvent(new Event(Ye.HEADER_LOADED))},2);function ln(e){return Be.setSettings(e),an=!0,document!=null&&document.body?rn():window.addEventListener("load",()=>rn()),Be.getSettings()}function Rr(e){return ln({...De,...Be.getSettings(),footer:e})}x.childrenMenuTypes=z,x.defaultSettings=De,x.events=Ye,x.getUtahHeaderSettings=w,x.loadHeader=nn,x.removeHeader=on,x.renderDOMSingle=T,x.setUtahFooterSettings=Rr,x.setUtahHeaderSettings=ln,x.sizes=ue,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utahdts/utah-design-system-header",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Utah Header for the Utah Design System",
5
5
  "exports": {
6
6
  ".": {
@@ -63,6 +63,11 @@
63
63
  .utah-design-system .utds-official-website-popup__col {
64
64
  width: 100%;
65
65
  }
66
+ .utah-design-system .utds-official-website-popup__address-bar {
67
+ width: auto;
68
+ background-size: contain;
69
+ background-repeat: no-repeat;
70
+ }
66
71
 
67
72
  .color-example {
68
73
  flex-direction: column;