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