@utahdts/utah-design-system-header 0.10.3 β 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -52
- package/dist/style.css +1 -1
- package/dist/utah-design-system-header.es.js +359 -342
- package/dist/utah-design-system-header.umd.js +38 -31
- package/package.json +13 -6
- package/src/css/media-queries.css +8 -1
|
@@ -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="",
|
|
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"},En=`/* @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 */
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
@media screen and (max-width: media-size__tablet-portrait__PLACEHOLDER) {
|
|
11
11
|
.utds-header-desktop--hidden {
|
|
12
|
-
display:
|
|
12
|
+
display: block !important;
|
|
13
13
|
}
|
|
14
14
|
.utds-header-mobile--hidden {
|
|
15
15
|
display: none !important;
|
|
@@ -63,12 +63,19 @@
|
|
|
63
63
|
.utah-design-system .utds-official-website-popup__col {
|
|
64
64
|
width: 100%;
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
.color-example {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
}
|
|
70
|
+
.color-example > div:not(:last-child) {
|
|
71
|
+
margin-bottom: var(--spacing-l);
|
|
72
|
+
}
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
@media screen and (max-width: media-size__mobile__PLACEHOLDER) {
|
|
69
76
|
/* put your media query here for mobile */
|
|
70
77
|
}
|
|
71
|
-
`,
|
|
78
|
+
`,vn=`<div class="utah-design-system utds-header-mobile-menu" id="utds-header-mobile-menu">
|
|
72
79
|
<div class="utds-header-mobile-menu__backdrop" aria-hidden></div>
|
|
73
80
|
<div class="utds-header-mobile-menu__wrapper">
|
|
74
81
|
<div class="utds-header-mobile-menu__action-bar" role="tablist">
|
|
@@ -100,16 +107,16 @@
|
|
|
100
107
|
</div>
|
|
101
108
|
</div>
|
|
102
109
|
</div>
|
|
103
|
-
`;function p(e){return`.${(Array.isArray(e)?e:[e]).join(".")}`}const a={UTAH_DESIGN_SYSTEM:"utah-design-system",HEADER:"utds-header",FOOTER:"utds-footer",ICON_BUTTON:"icon-button",CSS_HEADER_MEDIA_TAG_ID:"cssHeaderMediaTag",IS_CLOSED:"is-closed",IS_OPEN:"is-open",VISUALLY_HIDDEN:"visually-hidden",MEDIA_SIZE__MOBILE__PLACEHOLDER:"media-size__mobile__PLACEHOLDER",MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER:"media-size__tablet-landscape__PLACEHOLDER",MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER:"media-size__tablet-portrait__PLACEHOLDER",ACTION_ITEM:"utds-header-action-item",ACTION_ITEM__ICON_BUTTON:"utds-header-action-item__icon-button",ACTION_ITEM__ICON_BUTTON_TITLE:"utds-header-action-item__icon-button--has-title",ACTION_ITEM__TITLE:"utds-header-action-item__title",ACTION_ITEMS__WRAPPER:"utds-action-items-wrapper",BADGE__LABEL:"utds-badge__label",BADGE__VALUE:"utds-badge__value",BADGE_WRAPPER:"utds-badge__wrapper",BADGE_WRAPPER__SMALL:"utds-badge__wrapper--small",BADGE_WRAPPER__ACTION_ITEM:"utds-badge__wrapper--action-item",CITIZEN_EXPERIENCE:"utds-citizen-experience-wrapper",CITIZEN_EXPERIENCE_MOBILE:"utds-citizen-experience-wrapper--mobile",FOOTER_HORIZONTAL_DIVIDER:"utds-footer__horizontal-divider",LOGO:"utds-logo-wrapper",LOGO_OFFICIAL_CLOSE_BUTTON:"utds-official-website-popup__close-button",LOGO_OFFICIAL_WRAPPER:"utds-official-website-popup__wrapper",LOGO_SVG:"utah-logo-svg",LOGO_VERT_LINE:"utds-logo-vert-line",MAIN_MENU:"main-menu__wrapper",MAIN_MENU__HAMBURGER:"main-menu__hamburger",MAIN_MENU__HAMBURGER_ID:"utds-main-menu__hamburger",MAIN_MENU__HAMBURGER_ICON_ID:"utds-main-menu__hamburger-icon",MAIN_MENU__MENU_TOP:"main-menu__menu-top",MAIN_MENU__NAV:"main-menu__nav",MAIN_MENU__OUTER:"main-menu__outer",MAIN_MENU__REMOVED:"main-menu-is-removed",MAIN_MENU__SEARCH:"main-menu__search",MAIN_MENU__TITLE:"main-menu__title",MENU_ITEM:"menu-item",MENU_ITEM__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
|
|
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 bn(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"?bn(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 In(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 Tn{constructor(){this.settings={...Re}}setSettings(t){const n={...Re,...this.settings,...t};In(n),this.settings=n}getSettings(){return this.settings}}const De=new Tn;function O(){return De.getSettings()}const gn=`<div class="utds-header-mobile-menu__content-item" role="tabpanel">
|
|
104
111
|
</div>
|
|
105
|
-
`;function
|
|
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(gn);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 Mn(){var r;const e=document.querySelector(p(a.MAIN_MENU));e!=null&&e.classList.contains(a.MOBILE__HIDDEN)&&((r=document.querySelector(`${p(a.UTAH_DESIGN_SYSTEM)}${p(a.MOBILE_MENU)}`))==null||r.classList.add(a.MAIN_MENU__REMOVED));const{hamburger:t,hamburgerIcon:n,mobileMenu:o}=ve("showMobileMenu");t.setAttribute("aria-expanded","true"),o.classList.add(a.IS_OPEN),t.setAttribute("aria-label","Close the mobile menu"),n.classList.remove("utds-icon-before-hamburger"),n.classList.add("utds-icon-before-x-icon")}function Ze(e,t){e.querySelectorAll(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)).forEach(o=>{o.classList.remove(a.ACTION_ITEM__SELECTED);const r=o.querySelector("button");if(!r)throw new Error("showActionItem: actionWrapper does not have actionItem A");r.setAttribute("aria-selected","false"),r.setAttribute("tabIndex","-1")}),t.classList.add(a.ACTION_ITEM__SELECTED);const n=t.querySelector("button");if(!n)throw new Error("showActionItem: actionWrapper does not have actionItem B");n.setAttribute("aria-selected","true"),n.removeAttribute("tabIndex"),n.focus()}function Tt(e,t){e.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(n=>n.classList.remove(a.IS_OPEN)),t.classList.add(a.IS_OPEN)}function Xe(e,t,n,{ariaHasPopupType:o,additionalOnClick:r,onClickHandler:i,shouldOnClickCloseMenu:u}){var h,_;if(t&&!o)throw new Error("mobileMenuInteractionHandler: there is content, but the aria type is not given");const s=document.querySelector(p(a.MOBILE_MENU));if(!s)throw new Error("mobileMenuInteractionHandler: mobileMenu not found");const l=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuWrapper not found");const c=l.querySelector(p(a.MOBILE_MENU__CONTENT));if(!c)throw new Error("mobileMenuInteractionHandler: mobileContentWrapper not found");const d=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),s.classList.contains(a.IS_OPEN))u&&Be();else{Mn();const T=X(t);T&&Tt(c,T),Ze(l,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(l,X(n))}}}}const An=`<div class="utds-header-mobile-menu__action-item" role="tab">
|
|
106
113
|
<button type="button" class="icon-button icon-button--borderless utds-header-action-item__icon-button">
|
|
107
114
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
108
115
|
<span aria-hidden="true" role="presentation">
|
|
109
116
|
</button>
|
|
110
117
|
<span class="menu-chiclet"></span>
|
|
111
118
|
</div>
|
|
112
|
-
`,
|
|
119
|
+
`,wn=`<div class="utds-header-action-item-menu">
|
|
113
120
|
<div class="vertical-menu__wrapper-title"></div>
|
|
114
121
|
</div>
|
|
115
122
|
`,On=`<span class="utds-icon-before-chevron-right vertical-menu__chevron" aria-hidden="true"></span>
|
|
@@ -117,8 +124,8 @@
|
|
|
117
124
|
<span class="visually-hidden">opens in a new tab</span>
|
|
118
125
|
<span class="utds-icon-after-external-link" aria-hidden="true"></span>
|
|
119
126
|
</span>
|
|
120
|
-
`,
|
|
121
|
-
`,
|
|
127
|
+
`,Ln=`<ul class="vertical-menu" role="menu" />
|
|
128
|
+
`,yn=`<li class="vertical-menu__item">
|
|
122
129
|
<span class="vertical-menu__title">
|
|
123
130
|
<span class="vertical-menu__plain-title"></span>
|
|
124
131
|
<a href="#" class="vertical-menu__link-title">
|
|
@@ -130,16 +137,16 @@
|
|
|
130
137
|
</span>
|
|
131
138
|
<span class="vertical-menu__divider" />
|
|
132
139
|
</li>
|
|
133
|
-
`,Je={AUTO:"auto",AUTO_START:"auto-start",AUTO_END:"auto-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end",TOP:"top",TOP_START:"top-start",TOP_END:"top-end"};function De(e,t,n){var r;let o=!1;return e&&(Array.isArray(e)?o=e.some(i=>De(i,t,n)):(o=n(e),o||(o=!!((r=t==null?void 0:t.filter(i=>e[i]))!=null&&r.some(i=>De(e[i],t,n)))))),o}var x="top",$="bottom",G="right",W="left",Qe="auto",be=[x,$,G,W],de="start",Ie="end",yn="clippingParents",Mt="viewport",Te="popper",Pn="reference",At=be.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Ie])},[]),Ot=[].concat(be,[Qe]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Ie])},[]),Nn="beforeRead",Sn="read",Un="afterRead",Cn="beforeMain",Rn="main",Dn="afterMain",Bn="beforeWrite",Hn="write",xn="afterWrite",Wn=[Nn,Sn,Un,Cn,Rn,Dn,Bn,Hn,xn];function Z(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ne(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function z(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function et(e){if(typeof ShadowRoot>"u")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!z(i)||!Z(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var s=r[u];s===!1?i.removeAttribute(u):i.setAttribute(u,s===!0?"":s)}))})}function Fn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=u.reduce(function(l,c){return l[c]="",l},{});!z(r)||!Z(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const qn={name:"applyStyles",enabled:!0,phase:"write",fn:kn,effect:Fn,requires:["computeStyles"]};function X(e){return e.split("-")[0]}var oe=Math.max,Be=Math.min,pe=Math.round;function tt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test(tt())}function fe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&z(e)&&(r=e.offsetWidth>0&&pe(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pe(o.height)/e.offsetHeight||1);var u=ne(e)?k(e):window,s=u.visualViewport,l=!wt()&&n,c=(o.left+(l&&s?s.offsetLeft:0))/r,d=(o.top+(l&&s?s.offsetTop:0))/i,m=o.width/r,f=o.height/i;return{width:m,height:f,top:d,right:c+m,bottom:d+f,left:c,x:c,y:d}}function nt(e){var t=fe(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Lt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&et(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Q(e){return k(e).getComputedStyle(e)}function Vn(e){return["table","td","th"].indexOf(Z(e))>=0}function ee(e){return((ne(e)?e.ownerDocument:e.document)||window.document).documentElement}function He(e){return Z(e)==="html"?e:e.assignedSlot||e.parentNode||(et(e)?e.host:null)||ee(e)}function yt(e){return!z(e)||Q(e).position==="fixed"?null:e.offsetParent}function $n(e){var t=/firefox/i.test(tt()),n=/Trident/i.test(tt());if(n&&z(e)){var o=Q(e);if(o.position==="fixed")return null}var r=He(e);for(et(r)&&(r=r.host);z(r)&&["html","body"].indexOf(Z(r))<0;){var i=Q(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function ge(e){for(var t=k(e),n=yt(e);n&&Vn(n)&&Q(n).position==="static";)n=yt(n);return n&&(Z(n)==="html"||Z(n)==="body"&&Q(n).position==="static")?t:n||$n(e)||t}function ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,n){return oe(e,Be(t,n))}function Gn(e,t,n){var o=Me(e,t,n);return o>n?n:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Nt(e){return Object.assign({},Pt(),e)}function St(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var zn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nt(typeof t!="number"?t:St(t,be))};function Yn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,s=X(n.placement),l=ot(s),c=[W,G].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!u)){var m=zn(r.padding,n),f=nt(i),h=l==="y"?x:W,_=l==="y"?$:G,E=n.rects.reference[d]+n.rects.reference[l]-u[l]-n.rects.popper[d],b=u[l]-n.rects.reference[l],g=ge(i),M=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,O=E/2-b/2,v=m[h],T=M-f[d]-m[_],A=M/2-f[d]/2+O,P=Me(v,A,T),C=l;n.modifiersData[o]=(t={},t[C]=P,t.centerOffset=P-A,t)}}function Kn(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Lt(t.elements.popper,r)&&(t.elements.arrow=r))}const jn={name:"arrow",enabled:!0,phase:"main",fn:Yn,effect:Kn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var Zn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xn(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:pe(n*r)/r||0,y:pe(o*r)/r||0}}function Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,m=e.isFixed,f=u.x,h=f===void 0?0:f,_=u.y,E=_===void 0?0:_,b=typeof d=="function"?d({x:h,y:E}):{x:h,y:E};h=b.x,E=b.y;var g=u.hasOwnProperty("x"),M=u.hasOwnProperty("y"),O=W,v=x,T=window;if(c){var A=ge(n),P="clientHeight",C="clientWidth";if(A===k(n)&&(A=ee(n),Q(A).position!=="static"&&s==="absolute"&&(P="scrollHeight",C="scrollWidth")),A=A,r===x||(r===W||r===G)&&i===Ie){v=$;var U=m&&A===T&&T.visualViewport?T.visualViewport.height:A[P];E-=U-o.height,E*=l?1:-1}if(r===W||(r===x||r===$)&&i===Ie){O=G;var N=m&&A===T&&T.visualViewport?T.visualViewport.width:A[C];h-=N-o.width,h*=l?1:-1}}var R=Object.assign({position:s},c&&Zn),Y=d===!0?Xn({x:h,y:E},k(n)):{x:h,y:E};if(h=Y.x,E=Y.y,l){var B;return Object.assign({},R,(B={},B[v]=M?"0":"",B[O]=g?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+E+"px)":"translate3d("+h+"px, "+E+"px, 0)",B))}return Object.assign({},R,(t={},t[v]=M?E+"px":"",t[O]=g?h+"px":"",t.transform="",t))}function Jn(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:X(t.placement),variation:_e(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Qn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jn,data:{}};var xe={passive:!0};function eo(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,s=u===void 0?!0:u,l=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,xe)}),s&&l.addEventListener("resize",n.update,xe),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,xe)}),s&&l.removeEventListener("resize",n.update,xe)}}const to={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eo,data:{}};var no={left:"right",right:"left",bottom:"top",top:"bottom"};function We(e){return e.replace(/left|right|bottom|top/g,function(t){return no[t]})}var oo={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return oo[t]})}function rt(e){var t=k(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function it(e){return fe(ee(e)).left+rt(e).scrollLeft}function ro(e,t){var n=k(e),o=ee(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,s=0,l=0;if(r){i=r.width,u=r.height;var c=wt();(c||!c&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:u,x:s+it(e),y:l}}function io(e){var t,n=ee(e),o=rt(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=oe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),u=oe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+it(e),l=-o.scrollTop;return Q(r||n).direction==="rtl"&&(s+=oe(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:s,y:l}}function at(e){var t=Q(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Rt(e){return["html","body","#document"].indexOf(Z(e))>=0?e.ownerDocument.body:z(e)&&at(e)?e:Rt(He(e))}function Ae(e,t){var n;t===void 0&&(t=[]);var o=Rt(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=k(o),u=r?[i].concat(i.visualViewport||[],at(o)?o:[]):o,s=t.concat(u);return r?s:s.concat(Ae(He(u)))}function st(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ao(e,t){var n=fe(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Dt(e,t,n){return t===Mt?st(ro(e,n)):ne(t)?ao(t,n):st(io(ee(e)))}function so(e){var t=Ae(He(e)),n=["absolute","fixed"].indexOf(Q(e).position)>=0,o=n&&z(e)?ge(e):e;return ne(o)?t.filter(function(r){return ne(r)&&Lt(r,o)&&Z(r)!=="body"}):[]}function lo(e,t,n,o){var r=t==="clippingParents"?so(e):[].concat(t),i=[].concat(r,[n]),u=i[0],s=i.reduce(function(l,c){var d=Dt(e,c,o);return l.top=oe(d.top,l.top),l.right=Be(d.right,l.right),l.bottom=Be(d.bottom,l.bottom),l.left=oe(d.left,l.left),l},Dt(e,u,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Bt(e){var t=e.reference,n=e.element,o=e.placement,r=o?X(o):null,i=o?_e(o):null,u=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case x:l={x:u,y:t.y-n.height};break;case $:l={x:u,y:t.y+t.height};break;case G:l={x:t.x+t.width,y:s};break;case W:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=r?ot(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case de:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Ie:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Oe(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,u=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?yn:s,c=n.rootBoundary,d=c===void 0?Mt:c,m=n.elementContext,f=m===void 0?Te:m,h=n.altBoundary,_=h===void 0?!1:h,E=n.padding,b=E===void 0?0:E,g=Nt(typeof b!="number"?b:St(b,be)),M=f===Te?Pn:Te,O=e.rects.popper,v=e.elements[_?M:f],T=lo(ne(v)?v:v.contextElement||ee(e.elements.popper),l,d,u),A=fe(e.elements.reference),P=Bt({reference:A,element:O,strategy:"absolute",placement:r}),C=st(Object.assign({},O,P)),U=f===Te?C:A,N={top:T.top-U.top+g.top,bottom:U.bottom-T.bottom+g.bottom,left:T.left-U.left+g.left,right:U.right-T.right+g.right},R=e.modifiersData.offset;if(f===Te&&R){var Y=R[r];Object.keys(N).forEach(function(B){var ie=[G,$].indexOf(B)>=0?1:-1,ae=[x,$].indexOf(B)>=0?"y":"x";N[B]+=Y[ae]*ie})}return N}function co(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Ot:l,d=_e(o),m=d?s?At:At.filter(function(_){return _e(_)===d}):be,f=m.filter(function(_){return c.indexOf(_)>=0});f.length===0&&(f=m);var h=f.reduce(function(_,E){return _[E]=Oe(e,{placement:E,boundary:r,rootBoundary:i,padding:u})[X(E)],_},{});return Object.keys(h).sort(function(_,E){return h[_]-h[E]})}function uo(e){if(X(e)===Qe)return[];var t=We(e);return[Ct(e),t,Ct(t)]}function po(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!0:u,l=n.fallbackPlacements,c=n.padding,d=n.boundary,m=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,_=h===void 0?!0:h,E=n.allowedAutoPlacements,b=t.options.placement,g=X(b),M=g===b,O=l||(M||!_?[We(b)]:uo(b)),v=[b].concat(O).reduce(function(Ee,te){return Ee.concat(X(te)===Qe?co(t,{placement:te,boundary:d,rootBoundary:m,padding:c,flipVariations:_,allowedAutoPlacements:E}):te)},[]),T=t.rects.reference,A=t.rects.popper,P=new Map,C=!0,U=v[0],N=0;N<v.length;N++){var R=v[N],Y=X(R),B=_e(R)===de,ie=[x,$].indexOf(Y)>=0,ae=ie?"width":"height",q=Oe(t,{placement:R,boundary:d,rootBoundary:m,altBoundary:f,padding:c}),K=ie?B?G:W:B?$:x;T[ae]>A[ae]&&(K=We(K));var Fe=We(K),se=[];if(i&&se.push(q[Y]<=0),s&&se.push(q[K]<=0,q[Fe]<=0),se.every(function(Ee){return Ee})){U=R,C=!1;break}P.set(R,se)}if(C)for(var qe=_?3:1,mt=function(te){var Ue=v.find(function($e){var le=P.get($e);if(le)return le.slice(0,te).every(function(Et){return Et})});if(Ue)return U=Ue,"break"},Se=qe;Se>0;Se--){var Ve=mt(Se);if(Ve==="break")break}t.placement!==U&&(t.modifiersData[o]._skip=!0,t.placement=U,t.reset=!0)}}const fo={name:"flip",enabled:!0,phase:"main",fn:po,requiresIfExists:["offset"],data:{_skip:!1}};function Ht(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xt(e){return[x,G,$,W].some(function(t){return e[t]>=0})}function _o(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,u=Oe(t,{elementContext:"reference"}),s=Oe(t,{altBoundary:!0}),l=Ht(u,o),c=Ht(s,r,i),d=xt(l),m=xt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const ho={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_o};function mo(e,t,n){var o=X(e),r=[W,x].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],s=i[1];return u=u||0,s=(s||0)*r,[W,G].indexOf(o)>=0?{x:s,y:u}:{x:u,y:s}}function Eo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=Ot.reduce(function(d,m){return d[m]=mo(m,t.rects,i),d},{}),s=u[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const vo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Eo};function bo(e){var t=e.state,n=e.name;t.modifiersData[n]=Bt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Io={name:"popperOffsets",enabled:!0,phase:"read",fn:bo,data:{}};function To(e){return e==="x"?"y":"x"}function go(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!1:u,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.padding,f=n.tether,h=f===void 0?!0:f,_=n.tetherOffset,E=_===void 0?0:_,b=Oe(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:d}),g=X(t.placement),M=_e(t.placement),O=!M,v=ot(g),T=To(v),A=t.modifiersData.popperOffsets,P=t.rects.reference,C=t.rects.popper,U=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,N=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(A){if(i){var B,ie=v==="y"?x:W,ae=v==="y"?$:G,q=v==="y"?"height":"width",K=A[v],Fe=K+b[ie],se=K-b[ae],qe=h?-C[q]/2:0,mt=M===de?P[q]:C[q],Se=M===de?-C[q]:-P[q],Ve=t.elements.arrow,Ee=h&&Ve?nt(Ve):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),Ue=te[ie],$e=te[ae],le=Me(0,P[q],Ee[q]),Et=O?P[q]/2-qe-le-Ue-N.mainAxis:mt-le-Ue-N.mainAxis,Rr=O?-P[q]/2+qe+le+$e+N.mainAxis:Se+le+$e+N.mainAxis,vt=t.elements.arrow&&ge(t.elements.arrow),Dr=vt?v==="y"?vt.clientTop||0:vt.clientLeft||0:0,sn=(B=R==null?void 0:R[v])!=null?B:0,Br=K+Et-sn-Dr,Hr=K+Rr-sn,ln=Me(h?Be(Fe,Br):Fe,K,h?oe(se,Hr):se);A[v]=ln,Y[v]=ln-K}if(s){var cn,xr=v==="x"?x:W,Wr=v==="x"?$:G,ce=A[T],Ge=T==="y"?"height":"width",un=ce+b[xr],dn=ce-b[Wr],bt=[x,W].indexOf(g)!==-1,pn=(cn=R==null?void 0:R[T])!=null?cn:0,fn=bt?un:ce-P[Ge]-C[Ge]-pn+N.altAxis,_n=bt?ce+P[Ge]+C[Ge]-pn-N.altAxis:dn,hn=h&&bt?Gn(fn,ce,_n):Me(h?fn:un,ce,h?_n:dn);A[T]=hn,Y[T]=hn-ce}t.modifiersData[o]=Y}}const Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:go,requiresIfExists:["offset"]};function Ao(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oo(e){return e===k(e)||!z(e)?rt(e):Ao(e)}function wo(e){var t=e.getBoundingClientRect(),n=pe(t.width)/e.offsetWidth||1,o=pe(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Lo(e,t,n){n===void 0&&(n=!1);var o=z(t),r=z(t)&&wo(t),i=ee(t),u=fe(e,r,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Z(t)!=="body"||at(i))&&(s=Oo(t)),z(t)?(l=fe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=it(i))),{x:u.left+s.scrollLeft-l.x,y:u.top+s.scrollTop-l.y,width:u.width,height:u.height}}function yo(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Po(e){var t=yo(e);return Wn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function No(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function So(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wt={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Uo(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Wt:r;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},m=[],f=!1,h={state:d,setOptions:function(g){var M=typeof g=="function"?g(d.options):g;E(),d.options=Object.assign({},i,d.options,M),d.scrollParents={reference:ne(s)?Ae(s):s.contextElement?Ae(s.contextElement):[],popper:Ae(l)};var O=Po(So([].concat(o,d.options.modifiers)));return d.orderedModifiers=O.filter(function(v){return v.enabled}),_(),h.update()},forceUpdate:function(){if(!f){var g=d.elements,M=g.reference,O=g.popper;if(kt(M,O)){d.rects={reference:Lo(M,ge(O),d.options.strategy==="fixed"),popper:nt(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var T=d.orderedModifiers[v],A=T.fn,P=T.options,C=P===void 0?{}:P,U=T.name;typeof A=="function"&&(d=A({state:d,options:C,name:U,instance:h})||d)}}}},update:No(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){E(),f=!0}};if(!kt(s,l))return h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function _(){d.orderedModifiers.forEach(function(b){var g=b.name,M=b.options,O=M===void 0?{}:M,v=b.effect;if(typeof v=="function"){var T=v({state:d,name:g,instance:h,options:O}),A=function(){};m.push(T||A)}})}function E(){m.forEach(function(b){return b()}),m=[]}return h}}var Co=[to,Io,Qn,qn,vo,fo,Mo,jn,ho],Ft=Uo({defaultModifiers:Co});function lt(e,t,n,o){t?(e.classList.remove(o),e.classList.add(n)):(e.classList.add(o),e.classList.remove(n))}let F;const we={},ct={SHIFT:"shift-key"};function qt(){F&&(document.removeEventListener("click",F.globalOnClick),document.removeEventListener("keyup",F.globalOnKeyup),document.removeEventListener("keydown",F.globalOnKeydown),F=null)}function ut(){const e=document.querySelectorAll(`${p(a.UTAH_DESIGN_SYSTEM)} ${p(a.POPUP_WRAPPER)}`);Array.from(e).filter(t=>!t.classList.contains(a.POPUP__HIDDEN)).forEach(t=>{const n=t.getAttribute("id");if(n){const o=document.querySelector(`[aria-controls="${n}"]`);o&&o.setAttribute("aria-expanded","false")}lt(t,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN)})}function Ro(){F&&qt(),F={},F.globalOnClick=ut,document.addEventListener("click",F.globalOnClick),F.globalOnKeyup=e=>{e.key==="Escape"&&ut(),e.shiftKey||(we[ct.SHIFT]=!1),we[e.key]=!1},document.addEventListener("keyup",F.globalOnKeyup),F.globalOnKeydown=e=>{e.shiftKey&&(we[ct.SHIFT]=!0),we[e.key]=!0},document.addEventListener("keydown",F.globalOnKeydown)}function Do(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Le(e,t,n,o,r){let i=NaN,u=NaN;const s=300,l=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{Ft(t,n,{placement:(r==null?void 0:r.popupPlacement)||Je.BOTTOM,modifiers:[{name:"offset",options:{offset:[0,11]}}]}),lt(n,!0,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","true"),document.querySelectorAll(p(a.TOOLTIP__WRAPPER)).forEach(h=>h.classList.add(a.TOOLTIP__WRAPPER__HIDDEN))},f))}function m(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(u=window.setTimeout(()=>{lt(n,!1,a.POPUP__VISIBLE,a.POPUP__HIDDEN),t.setAttribute("aria-expanded","false")},f))}if(r!=null&&r.preventOnClickHandling?(J(!!e.onclick,"popupFocusHandler: wrapper already has an onclick"),e.onclick=f=>{f.preventDefault(),f.stopPropagation()}):(e.addEventListener("focusin",()=>d(l)),e.addEventListener("focusout",()=>m(l))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(s)),e.addEventListener("mouseleave",()=>m(s))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=f=>{var _;const h=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(f.stopPropagation(),f.preventDefault(),h&&t.getAttribute("aria-expanded")==="true"?(m(c),(_=document.activeElement)==null||_.blur()):(Do()&&ut(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const Bo=`<div class="popup__wrapper popup__wrapper--hidden">
|
|
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",Pn="clippingParents",Mt="viewport",Te="popper",Nn="reference",At=be.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Ie])},[]),wt=[].concat(be,[Je]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Ie])},[]),Sn="beforeRead",Un="read",Cn="afterRead",Rn="beforeMain",Dn="main",Bn="afterMain",Hn="beforeWrite",xn="write",Wn="afterWrite",kn=[Sn,Un,Cn,Rn,Dn,Bn,Hn,xn,Wn];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 Fn(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 s=r[u];s===!1?i.removeAttribute(u):i.setAttribute(u,s===!0?"":s)}))})}function qn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=u.reduce(function(l,c){return l[c]="",l},{});!j(r)||!Q(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const Vn={name:"applyStyles",enabled:!0,phase:"write",fn:Fn,effect:qn,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 Ot(){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,s=u.visualViewport,l=!Ot()&&n,c=(o.left+(l&&s?s.offsetLeft:0))/r,d=(o.top+(l&&s?s.offsetTop:0))/i,m=o.width/r,f=o.height/i;return{width:m,height:f,top:d,right:c+m,bottom:d+f,left:c,x:c,y:d}}function 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 $n(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 Gn(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&&$n(n)&&te(n).position==="static";)n=yt(n);return n&&(Q(n)==="html"||Q(n)==="body"&&te(n).position==="static")?t:n||Gn(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 zn(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 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,be))};function Kn(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,u=n.modifiersData.popperOffsets,s=J(n.placement),l=ot(s),c=[q,K].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!u)){var m=Yn(r.padding,n),f=nt(i),h=l==="y"?F:q,_=l==="y"?Y:K,E=n.rects.reference[d]+n.rects.reference[l]-u[l]-n.rects.popper[d],v=u[l]-n.rects.reference[l],T=ge(i),g=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,w=E/2-v/2,b=m[h],A=g-f[d]-m[_],M=g/2-f[d]/2+w,P=Me(b,M,A),U=l;n.modifiersData[o]=(t={},t[U]=P,t.centerOffset=P-M,t)}}function jn(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 Zn={name:"arrow",enabled:!0,phase:"main",fn:Kn,effect:jn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(e){return e.split("-")[1]}var Xn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qn(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:pe(n*r)/r||0,y:pe(o*r)/r||0}}function Ut(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,m=e.isFixed,f=u.x,h=f===void 0?0:f,_=u.y,E=_===void 0?0:_,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"),w=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"&&s==="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*=l?1:-1}if(r===q||(r===F||r===Y)&&i===Ie){w=K;var N=m&&M===A&&A.visualViewport?A.visualViewport.width:M[U];h-=N-o.width,h*=l?1:-1}}var C=Object.assign({position:s},c&&Xn),V=d===!0?Qn({x:h,y:E},$(n)):{x:h,y:E};if(h=V.x,E=V.y,l){var D;return Object.assign({},C,(D={},D[b]=g?"0":"",D[w]=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[w]=T?h+"px":"",t.transform="",t))}function Jn(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement: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:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jn,data:{}};var ke={passive:!0};function to(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,s=u===void 0?!0:u,l=$(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,ke)}),s&&l.addEventListener("resize",n.update,ke),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ke)}),s&&l.removeEventListener("resize",n.update,ke)}}const no={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:to,data:{}};var oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Fe(e){return e.replace(/left|right|bottom|top/g,function(t){return oo[t]})}var ro={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,function(t){return ro[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 io(e,t){var n=$(e),o=ne(e),r=n.visualViewport,i=o.clientWidth,u=o.clientHeight,s=0,l=0;if(r){i=r.width,u=r.height;var c=Ot();(c||!c&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:u,x:s+it(e),y:l}}function ao(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),s=-o.scrollLeft+it(e),l=-o.scrollTop;return te(r||n).direction==="rtl"&&(s+=ae(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:u,x:s,y:l}}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,s=t.concat(u);return r?s:s.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 so(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(io(e,n)):ie(t)?so(t,n):st(ao(ne(e)))}function lo(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 co(e,t,n,o){var r=t==="clippingParents"?lo(e):[].concat(t),i=[].concat(r,[n]),u=i[0],s=i.reduce(function(l,c){var d=Dt(e,c,o);return l.top=ae(d.top,l.top),l.right=xe(d.right,l.right),l.bottom=xe(d.bottom,l.bottom),l.left=ae(d.left,l.left),l},Dt(e,u,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Bt(e){var t=e.reference,n=e.element,o=e.placement,r=o?J(o):null,i=o?_e(o):null,u=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case F:l={x:u,y:t.y-n.height};break;case Y:l={x:u,y:t.y+t.height};break;case K:l={x:t.x+t.width,y:s};break;case q:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=r?ot(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case de:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Ie:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function 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,s=n.boundary,l=s===void 0?Pn:s,c=n.rootBoundary,d=c===void 0?Mt:c,m=n.elementContext,f=m===void 0?Te:m,h=n.altBoundary,_=h===void 0?!1:h,E=n.padding,v=E===void 0?0:E,T=Nt(typeof v!="number"?v:St(v,be)),g=f===Te?Nn:Te,w=e.rects.popper,b=e.elements[_?g:f],A=co(ie(b)?b:b.contextElement||ne(e.elements.popper),l,d,u),M=fe(e.elements.reference),P=Bt({reference:M,element:w,strategy:"absolute",placement:r}),U=st(Object.assign({},w,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 uo(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,u=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?wt:l,d=_e(o),m=d?s?At:At.filter(function(_){return _e(_)===d}):be,f=m.filter(function(_){return c.indexOf(_)>=0});f.length===0&&(f=m);var h=f.reduce(function(_,E){return _[E]=we(e,{placement:E,boundary:r,rootBoundary:i,padding:u})[J(E)],_},{});return Object.keys(h).sort(function(_,E){return h[_]-h[E]})}function po(e){if(J(e)===Je)return[];var t=Fe(e);return[Ct(e),t,Ct(t)]}function fo(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!0:u,l=n.fallbackPlacements,c=n.padding,d=n.boundary,m=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,_=h===void 0?!0:h,E=n.allowedAutoPlacements,v=t.options.placement,T=J(v),g=T===v,w=l||(g||!_?[Fe(v)]:po(v)),b=[v].concat(w).reduce(function(Ee,re){return Ee.concat(J(re)===Je?uo(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=we(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),s&&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 _o={name:"flip",enabled:!0,phase:"main",fn:fo,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 ho(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"}),s=we(t,{altBoundary:!0}),l=Ht(u,o),c=Ht(s,r,i),d=xt(l),m=xt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const mo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ho};function Eo(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],s=i[1];return u=u||0,s=(s||0)*r,[q,K].indexOf(o)>=0?{x:s,y:u}:{x:u,y:s}}function vo(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=wt.reduce(function(d,m){return d[m]=Eo(m,t.rects,i),d},{}),s=u[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=u}const bo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vo};function Io(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 To={name:"popperOffsets",enabled:!0,phase:"read",fn:Io,data:{}};function go(e){return e==="x"?"y":"x"}function Mo(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,u=n.altAxis,s=u===void 0?!1:u,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.padding,f=n.tether,h=f===void 0?!0:f,_=n.tetherOffset,E=_===void 0?0:_,v=we(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:d}),T=J(t.placement),g=_e(t.placement),w=!g,b=ot(T),A=go(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=w?P[k]/2-$e-le-Ue-N.mainAxis:mt-le-Ue-N.mainAxis,Dr=w?-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,ln=(D=C==null?void 0:C[b])!=null?D:0,Hr=Z+Et-ln-Br,xr=Z+Dr-ln,cn=Me(h?xe(Ve,Hr):Ve,Z,h?ae(se,xr):se);M[b]=cn,V[b]=cn-Z}if(s){var un,Wr=b==="x"?F:q,kr=b==="x"?Y:K,ce=M[A],Ye=A==="y"?"height":"width",dn=ce+v[Wr],pn=ce-v[kr],bt=[F,q].indexOf(T)!==-1,fn=(un=C==null?void 0:C[A])!=null?un:0,_n=bt?dn:ce-P[Ye]-U[Ye]-fn+N.altAxis,hn=bt?ce+P[Ye]+U[Ye]-fn-N.altAxis:pn,mn=h&&bt?zn(_n,ce,hn):Me(h?_n:dn,ce,h?hn:pn);M[A]=mn,V[A]=mn-ce}t.modifiersData[o]=V}}const Ao={name:"preventOverflow",enabled:!0,phase:"main",fn:Mo,requiresIfExists:["offset"]};function wo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oo(e){return e===$(e)||!j(e)?rt(e):wo(e)}function Lo(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 yo(e,t,n){n===void 0&&(n=!1);var o=j(t),r=j(t)&&Lo(t),i=ne(t),u=fe(e,r,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Q(t)!=="body"||at(i))&&(s=Oo(t)),j(t)?(l=fe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=it(i))),{x:u.left+s.scrollLeft-l.x,y:u.top+s.scrollTop-l.y,width:u.width,height:u.height}}function Po(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function No(e){var t=Po(e);return kn.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function So(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Uo(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 Co(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Wt:r;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},m=[],f=!1,h={state:d,setOptions:function(T){var g=typeof T=="function"?T(d.options):T;E(),d.options=Object.assign({},i,d.options,g),d.scrollParents={reference:ie(s)?Ae(s):s.contextElement?Ae(s.contextElement):[],popper:Ae(l)};var w=No(Uo([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(b){return b.enabled}),_(),h.update()},forceUpdate:function(){if(!f){var T=d.elements,g=T.reference,w=T.popper;if(kt(g,w)){d.rects={reference:yo(g,ge(w),d.options.strategy==="fixed"),popper:nt(w)},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:So(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){E(),f=!0}};if(!kt(s,l))return h;h.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function _(){d.orderedModifiers.forEach(function(v){var T=v.name,g=v.options,w=g===void 0?{}:g,b=v.effect;if(typeof b=="function"){var A=b({state:d,name:T,instance:h,options:w}),M=function(){};m.push(A||M)}})}function E(){m.forEach(function(v){return v()}),m=[]}return h}}var Ro=[no,To,eo,Vn,bo,_o,Ao,Zn,mo],Ft=Co({defaultModifiers:Ro});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 Oe={},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 Do(){G&&qt(),G={},G.globalOnClick=ut,document.addEventListener("click",G.globalOnClick),G.globalOnKeyup=e=>{e.key==="Escape"&&ut(),e.shiftKey||(Oe[ct.SHIFT]=!1),Oe[e.key]=!1},document.addEventListener("keyup",G.globalOnKeyup),G.globalOnKeydown=e=>{e.shiftKey&&(Oe[ct.SHIFT]=!0),Oe[e.key]=!0},document.addEventListener("keydown",G.globalOnKeydown)}function Bo(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Le(e,t,n,o,r){let i=NaN,u=NaN;const s=300,l=150,c=50;t.setAttribute("aria-expanded","false"),t.setAttribute("aria-haspopup",o);function d(f){clearTimeout(i),clearTimeout(u),(!(r!=null&&r.isPerformPopup)||r!=null&&r.isPerformPopup&&r.isPerformPopup())&&(i=window.setTimeout(()=>{Ft(t,n,{placement:(r==null?void 0:r.popupPlacement)||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(l)),e.addEventListener("focusout",()=>m(l))),r!=null&&r.shouldFocusOnHover&&(e.addEventListener("mouseenter",()=>d(s)),e.addEventListener("mouseleave",()=>m(s))),!(r!=null&&r.preventOnClickHandling)){if(t.onclick)throw new Error("popupFocusHandler: button already has onclick");t.onclick=f=>{var _;const h=t.getAttribute("aria-expanded")==="true";(!(r!=null&&r.isPerformPopup)||r.isPerformPopup())&&(f.stopPropagation(),f.preventDefault(),h&&t.getAttribute("aria-expanded")==="true"?(m(c),(_=document.activeElement)==null||_.blur()):(Bo()&&ut(),d(c))),r!=null&&r.onClick&&r.onClick(f)}}}const Ho=`<div class="popup__wrapper popup__wrapper--hidden">
|
|
134
141
|
<div class="popup__content">
|
|
135
142
|
<div class="popup__arrow" data-popper-arrow></div>
|
|
136
143
|
</div>
|
|
137
144
|
</div>
|
|
138
|
-
`;function dt(e,t){const n=e.getAttribute("id");if(!n)throw new Error("renderPopup: labelledByElement does not have an `id` attribute");const o=
|
|
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(Ho);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 xo(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(),xo(e)}}function Vt(){const e=I(On);return e.classList.add(a.IS_CLOSED),e}function ko(e,t,n){var f,h;const o=I(yn),r=o.querySelector(p(a.POPUP_MENU__TITLE));if(!r)throw new Error("renderPopupMenuItem: menuItemTitleWrapper not found");const i=o.querySelector(p(a.POPUP_MENU__BUTTON_TITLE));if(!i)throw new Error("renderPopupMenuItem: menuButton not found");const u=o.querySelector(p(a.POPUP_MENU__LINK_TITLE));if(!u)throw new Error("renderPopupMenuItem: aHref not found");const s=o.querySelector(p(a.POPUP_MENU__PLAIN_TITLE));if(!s)throw new Error("renderPopupMenuItem: plainTitle not found");const l=o.querySelector(p(a.POPUP_MENU__DIVIDER));if(!l)throw new Error("renderPopupMenuItem: menuDivider not found");const c=o.querySelector(`button ${p(a.POPUP_MENU__LINK_TEXT)}`);if(!c)throw new Error("renderPopupMenuItem: titleSpanButton not found");const d=o.querySelector(`a ${p(a.POPUP_MENU__LINK_TEXT)}`);if(!d)throw new Error("renderPopupMenuItem: titleSpanLink not found");const m=t.actionMenu&&[...t.actionMenu];if(m&&(t.actionFunction||t.actionUrl||t.actionFunctionUrl)&&m.unshift({actionFunction:t.actionFunction,actionFunctionUrl:t.actionFunctionUrl,actionUrl:t.actionUrl,className:t.className,icon:t.icon,title:`${t.title} (page)`}),m){let _;switch(n.childrenMenuType){case z.FLYOUT:{_=Vt(),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(),s.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),_=Vt(),i.appendChild(_),u.remove(),s.remove(),o.addEventListener("focusin",T=>{var g,w,b,A;for(let M=(g=T.target)==null?void 0:g.closest("ul");M;M=(w=M.parentElement)==null?void 0:w.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(),s.appendChild(document.createTextNode(t.title));break}default:throw new Error(`renderPopupMenuItem: childrenMenuType unknown '${n.childrenMenuType}'`)}l.remove()}else if(t.actionFunction)i.onclick=t.actionFunction,u.remove(),l.remove(),s.remove();else if(t.actionUrl)u.setAttribute("href",t.actionUrl.url),i.remove(),l.remove(),s.remove();else if(t.actionFunctionUrl)u.setAttribute("href",t.actionFunctionUrl.url),u.onclick=_=>{var E,v;(E=t.actionFunctionUrl)!=null&&E.skipHandleEvent||(_.stopPropagation(),_.preventDefault()),(v=t.actionFunctionUrl)==null||v.actionFunction(_)},i.remove(),l.remove(),s.remove();else if(t.isDivider)r.remove(),o.setAttribute("aria-hidden","true"),o.setAttribute("role","separator");else throw console.error(t),new Error("renderPopupMenuItem: popupMenuItem must have either actionMenu, actionFunction, actionUrl, or isDivider (popupMenuItem.title)");if(!t.isDivider&&(c.appendChild(document.createTextNode(t.title)),d.appendChild(document.createTextNode(t.title)),(f=t.actionUrl)!=null&&f.openInNewTab||(h=t.actionFunctionUrl)!=null&&h.openInNewTab)){u.setAttribute("target","_blank");const _=I(gt);c.appendChild(_),d.appendChild(_)}return(t.isSelected||t.actionMenu&&He(t.actionMenu,["actionMenu"],_=>!!_.isSelected))&&(i.classList.add(a.MENU_ITEM__SELECTED),u.classList.add(a.MENU_ITEM__SELECTED)),t.isSelected?o.classList.add(a.MENU_ITEM__SELECTED):o.classList.remove(a.MENU_ITEM__SELECTED),e.appendChild(o),o}function he(e,t){const n=I(Ln);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">
|
|
139
146
|
<span class="utds-badge__value"></span>
|
|
140
147
|
<span class="utds-badge__label visually-hidden"></span>
|
|
141
148
|
</div>
|
|
142
|
-
`;function ft(e){let t=null;if(e){t=I(
|
|
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(An);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 s=I(e.icon);s.setAttribute("role","presentation"),i.appendChild(s);let l=null;if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const c=R();i.setAttribute("id",c),l=I(typeof e.actionDom=="function"?e.actionDom():e.actionDom)}else if(e.actionPopupMenu){const c=R();i.setAttribute("id",c),l=I(wn);const d=l.querySelector(p(a.POPUP_MENU_WRAPPER__WRAPPER_TITLE));if(!d)throw new Error("renderMobileActionItem: actionItemContentTitle not found");d.appendChild(document.createTextNode(e.actionPopupMenu.title));const m=he(e.actionPopupMenu.menuItems,{childrenMenuType:z.INLINE});l.appendChild(m)}else throw console.error(e),new Error("Action Item: no defined action; must have either actionFunction, actionDom, or actionPopupMenu");return{actionItemElement:t,actionItemContent:l}}function Vo(){var u,s,l;const e=document.getElementById(a.MOBILE_MENU_ACTON_BAR__HOME_ID);if(!e)throw new Error("renderMobileActionItems: homeActionItem not found");const t=e.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("renderMobileActionItems: homeActionItemWrapper not found");const o=!!O().utahId?document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID):null,r=(u=o==null?void 0:o.closest)==null?void 0:u.call(o,p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));(l=(s=[...O().actionItems||[]].reverse())==null?void 0:s.map(c=>({actionItem:c,...qo(c)})))==null||l.forEach(({actionItem:c,actionItemContent:d,actionItemElement:m})=>{let f;switch(c.mobileMenuLocation){case"left":f=t;break;case"none":f=null;break;case"right":default:f=r||t;break}if(f&&(f.after(m),d)){const h=je(d);let _=null;c.actionDom?_="dialog":c.actionPopupMenu&&(_="menu"),Xe(m,h,m,{ariaHasPopupType:_,shouldOnClickCloseMenu:!1})}}),O().mainMenu||(e.remove(),t.remove())}const $o=`<div class="utds-footer utah-design-system">
|
|
143
150
|
<div class="utds-footer__horizontal-divider">
|
|
144
151
|
<hr />
|
|
145
152
|
</div>
|
|
@@ -165,13 +172,13 @@
|
|
|
165
172
|
</ul>
|
|
166
173
|
</div>
|
|
167
174
|
</div>
|
|
168
|
-
|
|
169
|
-
`,
|
|
170
|
-
`,
|
|
171
|
-
`,
|
|
172
|
-
`,
|
|
173
|
-
`,
|
|
174
|
-
`,
|
|
175
|
+
`,oe={domLocationTarget:{cssSelector:void 0,element:void 0,elementFunction:void 0},showHorizontalRule:!1};function Go(){var o,r,i,u,s,l,c,d,m,f,h,_,E,v,T,g,w,b,A,M,P,U,S,N,C,V;const e=O(),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!==((l=(s=e==null?void 0:e.footer)==null?void 0:s.domLocationTarget)==null?void 0:l.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((w=e==null?void 0:e.footer)!=null&&w.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>
|
|
178
|
+
`,jo=`<span class="utds-logo-vert-line"></span>
|
|
179
|
+
`,Zo=`<div class="utds-citizen-experience-wrapper"></div>
|
|
180
|
+
`,Xo=`<div class="utds-action-items-wrapper"></div>
|
|
181
|
+
`,Qo=`<div class="utds-header-action-item">
|
|
175
182
|
<button type="button" class="icon-button utds-header-action-item__icon-button">
|
|
176
183
|
<div class="utds-header-action-item__title visually-hidden"></div>
|
|
177
184
|
</button>
|
|
@@ -181,20 +188,20 @@
|
|
|
181
188
|
<div class="tooltip__arrow" data-popper-arrow></div>
|
|
182
189
|
</div>
|
|
183
190
|
</div>
|
|
184
|
-
`;let me=NaN;function ye(e,t){const n=I(Jo),o=n.querySelector(p(a.TOOLTIP__CONTENT));if(!o)throw new Error("hookupToolTip: toolTipContent not found");o.appendChild(t),e.appendChild(n);const r=Ft(e,n,{placement:
|
|
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(s=>console.error(s)))},me?0:500)},e.onmouseleave=()=>{clearTimeout(i),n.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),n.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE),clearTimeout(me),me=window.setTimeout(()=>{me=NaN},500)}}function 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 s=I(e.icon);if(s.setAttribute("role","presentation"),i.appendChild(s),!(i instanceof HTMLElement))throw new Error("renderActionItem: iconButton is not an HTMLElement");if(e.actionFunction)i.onclick=e.actionFunction;else if(e.actionDom){const l=R();i.setAttribute("id",l);const c=dt(i),d=c.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!d)throw new Error("renderPopupMenu: contentWrapper not found");d.appendChild(I(typeof e.actionDom=="function"?e.actionDom():e.actionDom)),t.appendChild(c),Le(o,i,c,"dialog",void 0)}else if(e.actionPopupMenu){const l=R();i.setAttribute("id",l);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}=O();let t=null;return e!=null&&e.length&&(t=I(Xo),(o=(n=O().actionItems)==null?void 0:n.map(r=>er(r)))==null||o.forEach(r=>t.appendChild(r))),t}const nr=`<button class="utds-utah-id__button button--solid" type="button">UtahID Sign In</button>
|
|
185
192
|
`,$t=`<div class="utds-utah-id-wrapper"></div>
|
|
186
|
-
`,Pe={PROFILE:"https://id.utah.gov",SIGN_IN:`https://id.utah.gov/login?goto=${window.location}`,SIGN_OUT:`https://id.utah.gov/logout?goto=${window.location}`,USER_INFO:"https://id.utah.gov/api/userInfo"},
|
|
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">
|
|
187
194
|
<div class="vertical-menu__wrapper-title"></div>
|
|
188
195
|
</div>
|
|
189
|
-
`;function Gt(e,t){const n=I(
|
|
196
|
+
`;function Gt(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 zt(e){y=e,document.querySelectorAll(p(a.UTAH_ID__BUTTON)).forEach(n=>{var o;if(n){if(n.innerHTML="",y!=null&&y.userInfo&&((o=y.userInfo)!=null&&o.authenticated)){const u=document.createElement("span");u.appendChild(document.createTextNode("UtahID Account:")),u.classList.add(a.VISUALLY_HIDDEN),n.appendChild(u),n.appendChild(document.createTextNode(`Hello, ${y.userInfo.first||""}`))}else n.appendChild(document.createTextNode("UtahID Sign In"));const r=n.getAttribute("aria-controls");if(!r)throw new Error(`authChangedEventHandler: popup id for button not found - ${r}`);const i=document.getElementById(r);i&&_t(n,i)}})}function _t(e,t){var n;e&&t&&(!!(y!=null&&y.isDefinitive)&&!!((n=y==null?void 0:y.userInfo)!=null&&n.authenticated)?(e.setAttribute("aria-haspopup","menu"),e.setAttribute("aria-expanded","false"),t.removeAttribute("aria-hidden")):(e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),t.setAttribute("aria-hidden","true")))}function Yt(){const e=I(nr);return e.setAttribute("id",R()),y&&zt(y),e}function Kt(e){var l,c,d;const t=O(),n=t.utahId!==!1&&t.utahId!==!0&&((l=t.utahId)==null?void 0:l.onProfile),o=t.utahId!==!1&&t.utahId!==!0&&((c=t.utahId)==null?void 0:c.onSignOut),r=[...t.utahId!==!0&&t.utahId!==!1&&((d=t.utahId)==null?void 0:d.menuItems)||[]];r.length&&r.push({isDivider:!0,title:"--divider--"});const i=[...r,{actionUrl:n?void 0:{url:Pe.PROFILE,openInNewTab:!0},actionFunction:n||void 0,className:"external-link",title:"UtahID Profile"},{actionUrl:o?void 0:{url:Pe.SIGN_OUT},actionFunction:o||void 0,title:"Sign Out"}],u=he(i,{childrenMenuType:z.INLINE}),s=e?Gt(u,"Utah ID Menu"):u;return s.setAttribute("aria-label","Utah Id Menu"),s.setAttribute("id",R()),s}function rr(){var s;const e=I($t),t=Yt();t.setAttribute("id",R()),e.appendChild(t);const n=Kt(!1),o=dt(t),r=o.querySelector(p(a.POPUP_CONTENT_WRAPPER));if(!r)throw new Error("renderUtahIdForDesktop: contentWrapper not found");r.appendChild(n),e.appendChild(o),_t(t,o);const i=O(),u=i.utahId!==!1&&i.utahId!==!0&&((s=i.utahId)==null?void 0:s.onSignIn);return Le(e,t,o,"menu",{isPerformPopup:()=>{var l;return!!(y!=null&&y.isDefinitive)&&!!((l=y==null?void 0:y.userInfo)!=null&&l.authenticated)},onClick:l=>{var c;(!(y!=null&&y.isDefinitive)||!((c=y==null?void 0:y.userInfo)!=null&&c.authenticated))&&(u?u(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Pe.SIGN_IN))}}),e}function ir(){const e=I($t),t=Yt(),n=t.getAttribute("id");if(!n)throw new Error("renderUtahIdForMobile: utahIdButton has no id");e.appendChild(t);const o=Kt(!0),r=o.getAttribute("id");if(!r)throw new Error("renderUtahIdForMobile: utahIdPopupMenu has no id");return e.appendChild(o),t.setAttribute("aria-controls",r),o.setAttribute("aria-labelledby",n),_t(t,o),{button:t,menu:o}}function ar(){const e=I(Zo),t=tr();return t&&e.appendChild(t),O().utahId!==!1&&e.appendChild(rr()),e}const sr=`<div class="utds-title-wrapper">
|
|
190
197
|
<div class="utds-title-wrapper__logo"></div>
|
|
191
198
|
<div class="utds-title-wrapper__title"></div>
|
|
192
199
|
</div>
|
|
193
|
-
`,
|
|
200
|
+
`,lr=`<a class="utds-title-wrapper">
|
|
194
201
|
<div class="utds-title-wrapper__logo"></div>
|
|
195
202
|
<div class="utds-title-wrapper__title"></div>
|
|
196
203
|
</a>
|
|
197
|
-
`;function
|
|
204
|
+
`;function cr(){const e=O().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=O().logo,r=O().showTitle,i=O().title;if(o){let l;if(o.htmlString)l=I(X(o.htmlString));else if(o.element)l=X(o.element);else if(o.imageUrl)l=I(`<img src=${X(o.imageUrl)} id="design-system-logo" />`);else throw new Error("LogoTitle: logo set but has no settings");l.setAttribute("role","presentation"),n.appendChild(l)}else t.removeChild(n);const u=document.createTextNode(i),s=t.querySelector(p(a.TITLE__TITLE));return s==null||s.appendChild(u),!r&&o&&(s==null||s.classList.add(a.VISUALLY_HIDDEN)),t}const ur=`<div class="utah-logo-wrapper">
|
|
198
205
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
199
206
|
<span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
|
|
200
207
|
more.</span>
|
|
@@ -211,7 +218,7 @@
|
|
|
211
218
|
</svg>
|
|
212
219
|
</button>
|
|
213
220
|
</div>
|
|
214
|
-
`,
|
|
221
|
+
`,dr=`<div class="utah-logo-wrapper">
|
|
215
222
|
<button class="utah-logo-svg" id="utah-logo-svg" aria-haspopup="dialog">
|
|
216
223
|
<span class="visually-hidden" id="utah-logo-description">An official website of the State of Utah. Click to learn
|
|
217
224
|
more.</span>
|
|
@@ -228,11 +235,11 @@
|
|
|
228
235
|
</svg>
|
|
229
236
|
</button>
|
|
230
237
|
</div>
|
|
231
|
-
`,
|
|
238
|
+
`,pr=`<div class="utds-official-website-hover__wrapper">
|
|
232
239
|
How do I know itβs official?<br />
|
|
233
240
|
Learn more.
|
|
234
241
|
</div>
|
|
235
|
-
`;function
|
|
242
|
+
`;function fr(){let e;switch(O().size){case ue.LARGE:e=ur;break;case ue.SMALL:case ue.MEDIUM:e=dr;break;default:throw new Error(`Unknown settings size: '${O().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=O().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">
|
|
236
243
|
<span class="menu-item__title">
|
|
237
244
|
<button class="menu-item__button-title" type="button">
|
|
238
245
|
<span class="menu-item__link-title-span"></span>
|
|
@@ -245,7 +252,7 @@
|
|
|
245
252
|
<span class="menu-chiclet"></span>
|
|
246
253
|
</span>
|
|
247
254
|
</li>
|
|
248
|
-
`,
|
|
255
|
+
`,mr=`<div class="utah-design-system main-menu__outer">
|
|
249
256
|
<div class="main-menu__wrapper">
|
|
250
257
|
<nav class="horizontal-menu main-menu__nav">
|
|
251
258
|
<h2 class="main-menu__title visually-hidden"></h2>
|
|
@@ -271,7 +278,7 @@
|
|
|
271
278
|
</button>
|
|
272
279
|
</div>
|
|
273
280
|
</div>
|
|
274
|
-
`,
|
|
281
|
+
`,Er=`<div class="utah-design-system" id="search-modal">
|
|
275
282
|
<div class="search-modal__close-button-wrapper">
|
|
276
283
|
<button type="button" class="search-modal__close-button button icon-button icon-button--borderless">
|
|
277
284
|
<span class="utds-icon-before-x-icon" aria-hidden="true"></span>
|
|
@@ -296,7 +303,7 @@
|
|
|
296
303
|
</div>
|
|
297
304
|
<div class="search-backdrop modal-backdrop backdrop-dark"></div>
|
|
298
305
|
</div>
|
|
299
|
-
`;function
|
|
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=s=>{s.preventDefault(),s.stopPropagation(),qe();const{onSearch:l}=O();l&&(l==null||l(i.value))},n.onclick=s=>{s.preventDefault(),s.stopPropagation(),qe()},t.onclick=s=>{s.preventDefault(),s.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=s=>{(s.code==="Escape"||s.key==="Escape")&&(s.preventDefault(),s.stopPropagation(),qe())},n.addEventListener("focusout",s=>{s.preventDefault(),s.stopPropagation(),Oe[ct.SHIFT]?o.focus():i.focus()});const u=e.querySelector(".search-modal__hidden-last-focusable");if(!u)throw new Error("showSearchModal: hiddenLastFocusableButton not found");u.addEventListener("focusin",s=>{s.preventDefault(),s.stopPropagation(),n.focus()})}function vr(){var s;const e=O(),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 l=n==null?void 0:n.querySelector(p(a.MAIN_MENU__MENU_TOP));if(!l)throw new Error("renderMainMenu(): mainMenuTop not found");e.mainMenu.menuItems.forEach(c=>{var v,T;const d=I(hr);l.appendChild(d);const m=L(d.querySelector(p(a.MENU_ITEM__TITLE)),`renderMainMenu(): sub menu title not found for ${c.title}`),f=L(m.querySelector(p(a.MENU_ITEM__BUTTON_TITLE)),`renderMainMenu(): button title not found for ${c.title}`);f.setAttribute("id",`${a.MENU_ITEM__BUTTON_TITLE}__${c.title}-${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},w=pt(g,_,{childrenMenuType:c.childrenMenuType||z.FLYOUT});d.appendChild(w),Le(d,_,w,"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 w,b;(w=c.actionFunctionUrl)!=null&&w.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:l,menu:c}=ir();i=c,L(t.querySelector(p(a.MOBILE__UTAH_ID)),"renderMainMenu: utahIdButtonWrapper not found").appendChild(l)}const u=L(t.querySelector(p(a.MAIN_MENU__SEARCH)),"renderMainMenu: searchIcon not found");if(e.onSearch){if(ye(u,document.createTextNode("Search")),u.onclick)throw new Error("searchIcon already has onclick");if(u.onclick=()=>ht(),!e.mainMenu){const l=L(document.querySelector(p(a.CITIZEN_EXPERIENCE)),"renderMainMenu: citizen experience wrapper not found"),c=I(u.outerHTML);if(ye(c,document.createTextNode("Search")),c.onclick=()=>ht(),u.classList.add(a.DESKTOP__HIDDEN),e.utahId!==!1){const d=L(document.querySelector(p(a.UTAH_ID)),"renderMainMenu: utahId wrapper not found");l.insertBefore(c,d)}else l.appendChild(c)}if(!e.mainMenu&&!e.actionItems&&e.utahId===!1){const l=I(u.outerHTML);if(ye(l,document.createTextNode("Search")),l.onclick)throw new Error("searchIconMobile already has onclick");l.onclick=()=>ht(),L(document.querySelector(p(a.CITIZEN_EXPERIENCE_MOBILE)),"renderMainMenu: citizen-experience--mobile not found").appendChild(l)}}return e.onSearch||((e.mainMenu||!e.mainMenu&&e.utahId)&&((s=u.parentElement)==null||s.insertBefore(I('<div class="main-menu__search-placeholder">'),u)),u.remove()),{mainMenuWrapper:t,utahIdPopup:i}}const br=`<div class="utah-design-system utds-official-website-popup__wrapper visually-hidden" tabindex="-1">
|
|
300
307
|
<h2 class="utds-official-website-popup__heading">
|
|
301
308
|
This is an official website of the State of Utah. Hereβs how you know:
|
|
302
309
|
</h2>
|
|
@@ -337,8 +344,8 @@
|
|
|
337
344
|
<span class="visually-hidden">Close official website popup</span>
|
|
338
345
|
</button>
|
|
339
346
|
</div>
|
|
340
|
-
`;function jt(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.add(a.VISUALLY_HIDDEN),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),o.setAttribute("tabIndex",-1),e.setAttribute("tabIndex",-1);const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})}function
|
|
347
|
+
`;function jt(){const e=L(document.querySelector(p(a.LOGO_OFFICIAL_WRAPPER)),"openOfficialWebsite: official wrapper not found"),t=L(document.querySelector(p(a.LOGO)),"openOfficialWebsite: logoWrapper not found"),n=L(t.querySelector(p(a.LOGO_SVG)),"openOfficialWebsite: logoButton not found"),o=L(e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON)),"openOfficialWebsite: official close button not found");e.classList.add(a.VISUALLY_HIDDEN),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),o.setAttribute("tabIndex",-1),e.setAttribute("tabIndex",-1);const r=document.querySelectorAll(p(a.TOOLTIP__WRAPPER));r==null||r.forEach(i=>{i.classList.add(a.TOOLTIP__WRAPPER__HIDDEN),i.classList.remove(a.TOOLTIP__WRAPPER__VISIBLE)})}function 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),n=document.querySelector(p(a.LOGO)).querySelector(p(a.LOGO_SVG));if(!n)throw new Error("renderOfficialWebsite: logoButton not found");if(n.onclick)throw new Error("renderOfficialWebsite: logoButton already has an onclick");const o=e.querySelector(p(a.LOGO_OFFICIAL_CLOSE_BUTTON));if(!o)throw new Error("renderOfficialWebsite: closeButton not found");return n.onclick=()=>{e.classList.toggle(a.VISUALLY_HIDDEN),e.classList.contains(a.VISUALLY_HIDDEN)?jt():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 l,c;const{hamburger:t}=ve("hookupHamburger"),n=O();if((l=n.actionItems)==null?void 0:l.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"),s=(u||i).getAttribute("id");if(!s)throw new Error("mobileMenuInteractionHandler: actionItemId not found");if(e){const d=e.getAttribute("id");if(!d)throw new Error("mobileMenuInteractionHandler: mobileMainMenuContentItemId not found");(u||i).setAttribute("aria-controls",d),e.setAttribute("aria-labelledby",s)}Xe(t,()=>r().actionItemWrapper,()=>r().actionItem,{additionalOnClick:()=>jt(),ariaHasPopupType:"menu",shouldOnClickCloseMenu:!0}),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 Zt=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 Xt(e){var t,n;if(e.isDefinitive){zt(e);const o=(t=O())==null?void 0:t.utahId;typeof o=="object"&&((n=o.onAuthChanged)==null||n.call(o,e))}}let Qt=!0;const Ar=500;let Jt=NaN;async function en(){var o,r;let e=Promise.resolve(x);const t=O(),n=Mr(t.utahId);if(x.isDefinitive===!1)e=Promise.resolve(x);else if(Qt)clearTimeout(Jt),e=new Promise(i=>{Jt=window.setTimeout(()=>{Qt=!1,en().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!==Zt||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,Xt(x),x)));else{const i={isDefinitive:!0,lastError:null,userInfo:(r=t.utahId)==null?void 0:r.currentUser};e=Promise.resolve(i),Xt(i)}return Zt=n,e}function wr(){return x}function Or(){const e=document.getElementById(a.MOBILE_MENU_ACTON_BAR__PROFILE_ID);if(!e)throw new Error("removeUtahIdInMobileMenu: profileActionItem not found");const t=e.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!t)throw new Error("removeUtahIdInMobileMenu: profileActionItemWrapper not found");t.remove()}function 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 s=je(t);Xe(o,s,u,{ariaHasPopupType:"menu",onClickHandler:l=>{var f;const c=wr(),d=O();let m=!1;if(!(c!=null&&c.isDefinitive)||!((f=c==null?void 0:c.userInfo)!=null&&f.authenticated)){m=!0;const h=d.utahId!==!1&&d.utahId!==!0&&d.utahId.onSignIn;h?h(l):(l.preventDefault(),l.stopPropagation(),window.location.href=Pe.SIGN_IN)}return m},shouldOnClickCloseMenu:!0})}function yr(){var t;const e=O();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(`
|
|
341
348
|
${p(a.MOBILE_MENU__ACTION_BAR)}
|
|
342
349
|
${p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER)}
|
|
343
350
|
${p(a.ACTION_ITEM__ICON_BUTTON)}
|
|
344
|
-
`)];t.forEach(r=>{r.onkeydown=i=>{(i.code==="Home"||i.code==="End"||i.code==="ArrowRight"||i.code==="ArrowLeft")&&i.preventDefault()},r.onkeyup=i=>{const u=t.indexOf(r);let s=NaN;if(i.code==="Home"?s=0:i.code==="End"?s=t.length-1:i.code==="ArrowRight"?s=(u+1)%t.length:i.code==="ArrowLeft"&&(s=(t.length+u-1)%t.length),!Number.isNaN(s)){i.preventDefault(),i.stopPropagation();const l=t[s],c=l.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!c)throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");const d=l.getAttribute("aria-controls");if(d&&document.getElementById(d))l.click();else{const h=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!h)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const _=h.querySelector(p(a.MOBILE_MENU__CONTENT));if(!_)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");_.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(E=>E.classList.remove(a.IS_OPEN))}const f=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!f)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");Ze(f,c)}}});const n=L(document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"),{hamburger:o}=ve("hookupMobileActionItemKeyboarding");n.addEventListener("focusin",r=>{r.preventDefault(),r.stopPropagation(),o.focus()})}function
|
|
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 s=NaN;if(i.code==="Home"?s=0:i.code==="End"?s=t.length-1:i.code==="ArrowRight"?s=(u+1)%t.length:i.code==="ArrowLeft"&&(s=(t.length+u-1)%t.length),!Number.isNaN(s)){i.preventDefault(),i.stopPropagation();const l=t[s],c=l.closest(p(a.MOBILE_MENU_ACTION_BAR__ACTION_ITEM_WRAPPER));if(!c)throw new Error("hookupMobileActionItemKeyboarding: newWrapper not found... how in the blazes?!");const d=l.getAttribute("aria-controls");if(d&&document.getElementById(d))l.click();else{const h=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!h)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");const _=h.querySelector(p(a.MOBILE_MENU__CONTENT));if(!_)throw new Error("hookupMobileActionItemKeyboarding: mobileContentWrapper not found");_.querySelectorAll(p(a.MOBILE_MENU__CONTENT_ITEM)).forEach(E=>E.classList.remove(a.IS_OPEN))}const f=document.querySelector(p(a.MOBILE_MENU__WRAPPER));if(!f)throw new Error("hookupMobileActionItemKeyboarding: mobileMenuWrapper not found");Ze(f,c)}}});const n=L(document.querySelector(p(a.MOBILE_MENU__LAST_FOCUSABLE)),"hookupMobileActionItemKeyboarding: hiddenLastFocusableButton not found"),{hamburger:o}=ve("hookupMobileActionItemKeyboarding");n.addEventListener("focusin",r=>{r.preventDefault(),r.stopPropagation(),o.focus()})}function Nr(){const e=En.replace(a.MEDIA_SIZE__TABLET_PORTRAIT__PLACEHOLDER,`${O().mediaSizes.tabletPortrait}px`).replace(a.MEDIA_SIZE__TABLET_LANDSCAPE__PLACEHOLDER,`${O().mediaSizes.tabletLandscape}px`).replace(a.MEDIA_SIZE__MOBILE__PLACEHOLDER,`${O().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=O();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 tn(){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 s=I(vn);r.after(s);const l=document.querySelector(p(a.MOBILE_MENU__BACKDROP));if(!l)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop not found");if(l.onclick)throw new Error("mobileMenuInteractionHandler: mobileMenuBackdrop already has onclick");l.onclick=()=>Be();const c=yr(),d=Gt(c,"Main Menu");d.appendChild(c);const m=je(d);gr(m),u?((t=u.closest("div"))==null||t.removeAttribute("aria-labelledby"),Lr(s,u)):Or(),Vo(),Pr(),Do(),Nr(),en().catch(h=>console.error(h));const f=O();(!f.mainMenu&&!f.actionItems&&f.utahId===!1&&!f.onSearch||!f.mainMenu&&!f.actionItems&&f.utahId===!1&&f.onSearch||!f.mainMenu&&f.actionItems&&f.utahId===!1&&!f.onSearch)&&(s.classList.add(a.MAIN_MENU__REMOVED),i.remove()),(!f.mainMenu&&!f.actionItems&&f.utahId&&!f.onSearch||!f.mainMenu&&f.actionItems&&f.utahId&&!f.onSearch||!f.mainMenu&&f.actionItems&&!f.utahId&&f.onSearch)&&i.classList.add(a.DESKTOP__HIDDEN)}Go()}function nn(e){var t,n,o,r;(t=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.HEADER])))==null||t.remove(),(n=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.MAIN_MENU__OUTER])))==null||n.remove(),(o=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.MOBILE_MENU])))==null||o.remove(),(r=document.querySelector(p([a.UTAH_DESIGN_SYSTEM,a.LOGO_OFFICIAL_WRAPPER])))==null||r.remove(),qt(),e&&setTimeout(()=>document.dispatchEvent(new Event(Ke.HEADER_UNLOADED)),0)}function on(){nn(!1),tn()}let rn=!1;const Ur=15e3;let an=0;const Cr=setInterval(()=>{an+=1,an>=Ur||rn?clearInterval(Cr):document.dispatchEvent(new Event(Ke.HEADER_LOADED))},2);function sn(e){return De.setSettings(e),rn=!0,document!=null&&document.body?on():window.addEventListener("load",()=>on()),De.getSettings()}function Rr(e){return sn({...Re,...De.getSettings(),footer:e})}H.childrenMenuTypes=z,H.defaultSettings=Re,H.events=Ke,H.getUtahHeaderSettings=O,H.loadHeader=tn,H.removeHeader=nn,H.renderDOMSingle=I,H.setUtahFooterSettings=Rr,H.setUtahHeaderSettings=sn,H.sizes=ue,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utahdts/utah-design-system-header",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Utah Header for the Utah Design System",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,7 +38,14 @@
|
|
|
38
38
|
"type": "git",
|
|
39
39
|
"url": "git+https://github.com/utahdts/utah-design-system.git"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
41
|
+
"keywords": [
|
|
42
|
+
"design system",
|
|
43
|
+
"dts",
|
|
44
|
+
"utah",
|
|
45
|
+
"utah header",
|
|
46
|
+
"components"
|
|
47
|
+
],
|
|
48
|
+
"license": "State of Utah - TOT",
|
|
42
49
|
"bugs": {
|
|
43
50
|
"url": "https://github.com/utahdts/utah-design-system/issues"
|
|
44
51
|
},
|
|
@@ -47,11 +54,11 @@
|
|
|
47
54
|
"@popperjs/core": "2.11.8"
|
|
48
55
|
},
|
|
49
56
|
"devDependencies": {
|
|
50
|
-
"@vitest/ui": "0.
|
|
57
|
+
"@vitest/ui": "0.33.0",
|
|
51
58
|
"jsdom": "22.1.0",
|
|
52
|
-
"sass": "1.63.
|
|
53
|
-
"vite": "4.
|
|
54
|
-
"vitest": "0.
|
|
59
|
+
"sass": "1.63.6",
|
|
60
|
+
"vite": "4.4.4",
|
|
61
|
+
"vitest": "0.33.0"
|
|
55
62
|
},
|
|
56
63
|
"type": "module"
|
|
57
64
|
}
|