@govtechsg/sgds-web-component 3.27.0-rc.3 → 3.27.0
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/base/dropdown-list-element.js +2 -9
- package/base/dropdown-list-element.js.map +1 -1
- package/components/Breadcrumb/index.umd.min.js +5 -5
- package/components/Breadcrumb/index.umd.min.js.map +1 -1
- package/components/ComboBox/index.umd.min.js +1 -1
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/DataTable/data-table.js +1 -1
- package/components/DataTable/index.umd.min.js +49 -42
- package/components/DataTable/index.umd.min.js.map +1 -1
- package/components/DataTable/sgds-data-table-cell.d.ts +2 -2
- package/components/DataTable/sgds-data-table-cell.js.map +1 -1
- package/components/DataTable/sgds-data-table-head.d.ts +2 -2
- package/components/DataTable/sgds-data-table-head.js.map +1 -1
- package/components/DataTable/sgds-data-table-row.d.ts +0 -3
- package/components/DataTable/sgds-data-table-row.js +0 -13
- package/components/DataTable/sgds-data-table-row.js.map +1 -1
- package/components/DataTable/sgds-data-table.d.ts +7 -4
- package/components/DataTable/sgds-data-table.js +49 -38
- package/components/DataTable/sgds-data-table.js.map +1 -1
- package/components/DataTable/types.d.ts +7 -0
- package/components/Datepicker/index.umd.min.js +1 -1
- package/components/Dropdown/dropdown-item.js +1 -1
- package/components/Dropdown/index.umd.min.js +5 -5
- package/components/Dropdown/index.umd.min.js.map +1 -1
- package/components/Dropdown/sgds-dropdown-item.d.ts +0 -2
- package/components/Dropdown/sgds-dropdown-item.js +2 -8
- package/components/Dropdown/sgds-dropdown-item.js.map +1 -1
- package/components/Footer/index.umd.min.js +1 -1
- package/components/Footer/index.umd.min.js.map +1 -1
- package/components/Footer/sgds-footer.js +1 -1
- package/components/Footer/sgds-footer.js.map +1 -1
- package/components/Input/index.umd.min.js +1 -1
- package/components/Mainnav/index.d.ts +0 -2
- package/components/Mainnav/index.js +0 -2
- package/components/Mainnav/index.js.map +1 -1
- package/components/Mainnav/index.umd.min.js +285 -338
- package/components/Mainnav/index.umd.min.js.map +1 -1
- package/components/Mainnav/mainnav-dropdown.js +1 -1
- package/components/Mainnav/mainnav-item.js +1 -1
- package/components/Mainnav/mainnav.js +1 -1
- package/components/Mainnav/sgds-mainnav.d.ts +51 -8
- package/components/Mainnav/sgds-mainnav.js +238 -40
- package/components/Mainnav/sgds-mainnav.js.map +1 -1
- package/components/OverflowMenu/index.umd.min.js +5 -5
- package/components/OverflowMenu/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js +1 -1
- package/components/Select/index.umd.min.js +21 -21
- package/components/Select/index.umd.min.js.map +1 -1
- package/components/Tab/index.umd.min.js +1 -1
- package/components/Tab/index.umd.min.js.map +1 -1
- package/components/Tab/tab-panel.js +1 -1
- package/components/Textarea/index.umd.min.js +1 -1
- package/components/index.d.ts +0 -3
- package/components/index.js +0 -3
- package/components/index.js.map +1 -1
- package/components/index.umd.min.js +587 -665
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +5 -8
- package/custom-elements.json +15246 -17418
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.umd.min.js +353 -441
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/base/dropdown-list-element.cjs.js +2 -9
- package/react/base/dropdown-list-element.cjs.js.map +1 -1
- package/react/base/dropdown-list-element.js +2 -9
- package/react/base/dropdown-list-element.js.map +1 -1
- package/react/components/DataTable/data-table.cjs.js +1 -1
- package/react/components/DataTable/data-table.js +1 -1
- package/react/components/DataTable/sgds-data-table-cell.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-cell.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-head.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-head.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-row.cjs.js +0 -13
- package/react/components/DataTable/sgds-data-table-row.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-row.js +0 -13
- package/react/components/DataTable/sgds-data-table-row.js.map +1 -1
- package/react/components/DataTable/sgds-data-table.cjs.js +49 -38
- package/react/components/DataTable/sgds-data-table.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table.js +49 -38
- package/react/components/DataTable/sgds-data-table.js.map +1 -1
- package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
- package/react/components/Dropdown/dropdown-item.js +1 -1
- package/react/components/Dropdown/sgds-dropdown-item.cjs.js +2 -8
- package/react/components/Dropdown/sgds-dropdown-item.cjs.js.map +1 -1
- package/react/components/Dropdown/sgds-dropdown-item.js +2 -8
- package/react/components/Dropdown/sgds-dropdown-item.js.map +1 -1
- package/react/components/Footer/sgds-footer.cjs.js +1 -1
- package/react/components/Footer/sgds-footer.cjs.js.map +1 -1
- package/react/components/Footer/sgds-footer.js +1 -1
- package/react/components/Footer/sgds-footer.js.map +1 -1
- package/react/components/Mainnav/mainnav-dropdown.cjs.js +1 -1
- package/react/components/Mainnav/mainnav-dropdown.js +1 -1
- package/react/components/Mainnav/mainnav-item.cjs.js +1 -1
- package/react/components/Mainnav/mainnav-item.js +1 -1
- package/react/components/Mainnav/mainnav.cjs.js +1 -1
- package/react/components/Mainnav/mainnav.js +1 -1
- package/react/components/Mainnav/sgds-mainnav.cjs.js +237 -39
- package/react/components/Mainnav/sgds-mainnav.cjs.js.map +1 -1
- package/react/components/Mainnav/sgds-mainnav.js +238 -40
- package/react/components/Mainnav/sgds-mainnav.js.map +1 -1
- package/react/components/Tab/tab-panel.cjs.js +1 -1
- package/react/components/Tab/tab-panel.js +1 -1
- package/react/index.cjs.js +146 -152
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +5 -8
- package/react/index.js +5 -8
- package/react/index.js.map +1 -1
- package/react/styles/form-text-control.cjs.js +1 -1
- package/react/styles/form-text-control.js +1 -1
- package/styles/form-text-control.js +1 -1
- package/themes/blue.css +11 -11
- package/themes/cyan.css +10 -10
- package/themes/day.css +1 -1
- package/themes/gt/blue.css +11 -11
- package/themes/gt/cyan.css +10 -10
- package/themes/gt/magenta.css +11 -11
- package/themes/gt/pink.css +11 -11
- package/themes/gt/purple.css +11 -11
- package/themes/gt/red.css +11 -11
- package/themes/magenta.css +11 -11
- package/themes/pink.css +11 -11
- package/themes/purple.css +11 -11
- package/themes/red.css +11 -11
- package/themes/root.css +0 -5
- package/types/react.d.ts +97 -148
- package/base/nav-element.d.ts +0 -64
- package/base/nav-element.js +0 -263
- package/base/nav-element.js.map +0 -1
- package/base/nav-profile-element.d.ts +0 -47
- package/base/nav-profile-element.js +0 -191
- package/base/nav-profile-element.js.map +0 -1
- package/base/nav-profile.js +0 -6
- package/base/nav-profile.js.map +0 -1
- package/components/Appnav/appnav-context.d.ts +0 -6
- package/components/Appnav/appnav-context.js +0 -7
- package/components/Appnav/appnav-context.js.map +0 -1
- package/components/Appnav/appnav.js +0 -6
- package/components/Appnav/appnav.js.map +0 -1
- package/components/Appnav/index.d.ts +0 -9
- package/components/Appnav/index.js +0 -8
- package/components/Appnav/index.js.map +0 -1
- package/components/Appnav/index.umd.min.js +0 -2535
- package/components/Appnav/index.umd.min.js.map +0 -1
- package/components/Appnav/sgds-appnav-profile.d.ts +0 -17
- package/components/Appnav/sgds-appnav-profile.js +0 -31
- package/components/Appnav/sgds-appnav-profile.js.map +0 -1
- package/components/Appnav/sgds-appnav.d.ts +0 -44
- package/components/Appnav/sgds-appnav.js +0 -183
- package/components/Appnav/sgds-appnav.js.map +0 -1
- package/components/Mainnav/sgds-mainnav-profile.d.ts +0 -15
- package/components/Mainnav/sgds-mainnav-profile.js +0 -29
- package/components/Mainnav/sgds-mainnav-profile.js.map +0 -1
- package/react/appnav/index.cjs.js +0 -45
- package/react/appnav/index.cjs.js.map +0 -1
- package/react/appnav/index.d.ts +0 -4
- package/react/appnav/index.js +0 -21
- package/react/appnav/index.js.map +0 -1
- package/react/appnav-profile/index.cjs.js +0 -40
- package/react/appnav-profile/index.cjs.js.map +0 -1
- package/react/appnav-profile/index.d.ts +0 -4
- package/react/appnav-profile/index.js +0 -16
- package/react/appnav-profile/index.js.map +0 -1
- package/react/base/nav-element.cjs.js +0 -268
- package/react/base/nav-element.cjs.js.map +0 -1
- package/react/base/nav-element.js +0 -264
- package/react/base/nav-element.js.map +0 -1
- package/react/base/nav-profile-element.cjs.js +0 -196
- package/react/base/nav-profile-element.cjs.js.map +0 -1
- package/react/base/nav-profile-element.js +0 -192
- package/react/base/nav-profile-element.js.map +0 -1
- package/react/base/nav-profile.cjs.js +0 -11
- package/react/base/nav-profile.cjs.js.map +0 -1
- package/react/base/nav-profile.js +0 -7
- package/react/base/nav-profile.js.map +0 -1
- package/react/components/Appnav/appnav-context.cjs.js +0 -13
- package/react/components/Appnav/appnav-context.cjs.js.map +0 -1
- package/react/components/Appnav/appnav-context.js +0 -8
- package/react/components/Appnav/appnav-context.js.map +0 -1
- package/react/components/Appnav/appnav.cjs.js +0 -11
- package/react/components/Appnav/appnav.cjs.js.map +0 -1
- package/react/components/Appnav/appnav.js +0 -7
- package/react/components/Appnav/appnav.js.map +0 -1
- package/react/components/Appnav/sgds-appnav-profile.cjs.js +0 -37
- package/react/components/Appnav/sgds-appnav-profile.cjs.js.map +0 -1
- package/react/components/Appnav/sgds-appnav-profile.js +0 -32
- package/react/components/Appnav/sgds-appnav-profile.js.map +0 -1
- package/react/components/Appnav/sgds-appnav.cjs.js +0 -189
- package/react/components/Appnav/sgds-appnav.cjs.js.map +0 -1
- package/react/components/Appnav/sgds-appnav.js +0 -184
- package/react/components/Appnav/sgds-appnav.js.map +0 -1
- package/react/components/Mainnav/sgds-mainnav-profile.cjs.js +0 -35
- package/react/components/Mainnav/sgds-mainnav-profile.cjs.js.map +0 -1
- package/react/components/Mainnav/sgds-mainnav-profile.js +0 -30
- package/react/components/Mainnav/sgds-mainnav-profile.js.map +0 -1
- package/react/mainnav-profile/index.cjs.js +0 -40
- package/react/mainnav-profile/index.cjs.js.map +0 -1
- package/react/mainnav-profile/index.d.ts +0 -4
- package/react/mainnav-profile/index.js +0 -16
- package/react/mainnav-profile/index.js.map +0 -1
|
@@ -101,7 +101,7 @@ const C={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:b},M=(e=C,t,
|
|
|
101
101
|
size=${_e(this._assignIconSize(this.size))}
|
|
102
102
|
></sgds-icon>`}
|
|
103
103
|
</${t}>
|
|
104
|
-
`}}Xe.styles=[...Fe.styles,Qe],Xe.dependencies={"sgds-icon":We,"sgds-spinner":Je},e([y({type:String,reflect:!0})],Xe.prototype,"name",void 0);var Ye=n`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md);font-weight:var(--sgds-font-weight-semibold)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-
|
|
104
|
+
`}}Xe.styles=[...Fe.styles,Qe],Xe.dependencies={"sgds-icon":We,"sgds-spinner":Je},e([y({type:String,reflect:!0})],Xe.prototype,"name",void 0);var Ye=n`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md);font-weight:var(--sgds-font-weight-semibold)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;function et(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,r)=>{const{update:o}=t;if(e in t){const i=e;t.update=function(e){if(e.has(i)){const t=e.get(i),o=this[i];t!==o&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[r](t,o))}o.call(this,e)}}}}var tt=n`:host{--input-border-radius:var(--sgds-form-border-radius-md);--input-min-width:var(--sgds-dimension-160)}.form-control-container{min-width:var(--input-min-width)}:host(.quantity-toggle) input::-webkit-inner-spin-button{appearance:none;margin:0}:host(.quantity-toggle) input{text-align:center}.form-control-prefix,.form-control-suffix{align-items:center;color:var(--sgds-form-color-subtle);display:flex;flex-shrink:0;font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-xs);height:100%;justify-content:center}.form-control-prefix{border-right:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);padding-right:var(--sgds-form-padding-x)}.form-control-suffix{border-left:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);padding-left:var(--sgds-form-padding-x)}.form-control-group.quantity-toggle{padding:0}sgds-icon[role=button]{cursor:pointer}sgds-icon[role=button]:focus,sgds-icon[role=button]:focus-visible{outline:var(--sgds-form-outline-focus)}.form-control-row{align-items:center;display:flex;gap:var(--sgds-gap-sm)}`;class lt extends(Ue(Le)){constructor(){super(...arguments),this.type="text",this.placeholder="placeholder",this.autofocus=!1,this.readonly=!1,this.autocomplete="on",this.defaultValue="",this.valid=!1,this.loading=!1,this.required=!1,this.noValidate=!1,this.value="",this._isTouched=!1,this._showPassword=!1}focus(e){this.input.focus(e)}blur(){this.input.blur()}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}setValidity(e,t,l){return this._mixinSetValidity(e,t,l)}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_handleFocus(){this.emit("sgds-focus")}_handleBlur(){const e=this.emit("sgds-blur",{cancelable:!0});this._mixinShouldSkipSgdsValidation()||e.defaultPrevented||(this.setInvalid(!this._mixinCheckValidity()),this._isTouched=!0)}_handleClick(){this.focus()}_handleChange(e){this.value=this.input.value;this.emit("sgds-change",{cancelable:!0}).defaultPrevented||super._mixinHandleChange(e)}_handleInputChange(e){this.value=this.input.value;this.emit("sgds-input",{cancelable:!0}).defaultPrevented||super._mixinHandleInputChange(e)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&this.setInvalid(!this._mixinCheckValidity())}_handleDisabledChange(){this.setInvalid(!1)}_renderInput(){const e="both"===this.hasFeedback||"style"===this.hasFeedback,t="both"===this.hasFeedback||"text"===this.hasFeedback,l=[this.hintText?`${this._controlId}Help`:"",this.invalid&&t?`${this._controlId}-invalid`:""].filter(Boolean).join(" ")||void 0;return Ve`
|
|
105
105
|
<div
|
|
106
106
|
class="form-control-group ${me({disabled:this.disabled,readonly:this.readonly,"is-invalid":this.invalid&&e})}"
|
|
107
107
|
@click=${this._handleClick}
|
|
@@ -15,7 +15,7 @@ const l=globalThis,o=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow
|
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
const M=globalThis,y=e=>e,V=M.trustedTypes,H=V?V.createPolicy("lit-html",{createHTML:e=>e}):void 0,A="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,$="?"+O,P=`<${$}>`,z=document,B=()=>z.createComment(""),j=e=>null===e||"object"!=typeof e&&"function"!=typeof e,L=Array.isArray,S="[ \t\n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,
|
|
18
|
+
const M=globalThis,y=e=>e,V=M.trustedTypes,H=V?V.createPolicy("lit-html",{createHTML:e=>e}):void 0,A="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,$="?"+O,P=`<${$}>`,z=document,B=()=>z.createComment(""),j=e=>null===e||"object"!=typeof e&&"function"!=typeof e,L=Array.isArray,S="[ \t\n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,R=/>/g,I=RegExp(`>|${S}(?:([^\\s"'>=/]+)(${S}*=${S}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,D=/"/g,U=/^(?:script|style|textarea|title)$/i,N=(e=>(t,...l)=>({_$litType$:e,strings:t,values:l}))(1),F=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,G=z.createTreeWalker(z,129);function K(e,t){if(!L(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==H?H.createHTML(t):t}const Y=(e,t)=>{const l=e.length-1,o=[];let n,r=2===t?"<svg>":3===t?"<math>":"",i=k;for(let t=0;t<l;t++){const l=e[t];let a,c,s=-1,h=0;for(;h<l.length&&(i.lastIndex=h,c=i.exec(l),null!==c);)h=i.lastIndex,i===k?"!--"===c[1]?i=E:void 0!==c[1]?i=R:void 0!==c[2]?(U.test(c[2])&&(n=RegExp("</"+c[2],"g")),i=I):void 0!==c[3]&&(i=I):i===I?">"===c[0]?(i=n??k,s=-1):void 0===c[1]?s=-2:(s=i.lastIndex-c[2].length,a=c[1],i=void 0===c[3]?I:'"'===c[3]?D:T):i===D||i===T?i=I:i===E||i===R?i=k:(i=I,n=void 0);const d=i===I&&e[t+1].startsWith("/>")?" ":"";r+=i===k?l+P:s>=0?(o.push(a),l.slice(0,s)+A+l.slice(s)+O+d):l+O+(-2===s?t:d)}return[K(e,r+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]};class J{constructor({strings:e,_$litType$:t},l){let o;this.parts=[];let n=0,r=0;const i=e.length-1,a=this.parts,[c,s]=Y(e,t);if(this.el=J.createElement(c,l),G.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=G.nextNode())&&a.length<i;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(A)){const t=s[r++],l=o.getAttribute(e).split(O),i=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:i[2],strings:l,ctor:"."===i[1]?le:"?"===i[1]?oe:"@"===i[1]?ne:te}),o.removeAttribute(e)}else e.startsWith(O)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(U.test(o.tagName)){const e=o.textContent.split(O),t=e.length-1;if(t>0){o.textContent=V?V.emptyScript:"";for(let l=0;l<t;l++)o.append(e[l],B()),G.nextNode(),a.push({type:2,index:++n});o.append(e[t],B())}}}else if(8===o.nodeType)if(o.data===$)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(O,e+1));)a.push({type:7,index:n}),e+=O.length-1}n++}}static createElement(e,t){const l=z.createElement("template");return l.innerHTML=e,l}}function X(e,t,l=e,o){if(t===F)return t;let n=void 0!==o?l._$Co?.[o]:l._$Cl;const r=j(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(e),n._$AT(e,l,o)),void 0!==o?(l._$Co??=[])[o]=n:l._$Cl=n),void 0!==n&&(t=X(e,n._$AS(e,t.values),n,o)),t}class Q{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:l}=this._$AD,o=(e?.creationScope??z).importNode(t,!0);G.currentNode=o;let n=G.nextNode(),r=0,i=0,a=l[0];for(;void 0!==a;){if(r===a.index){let t;2===a.type?t=new ee(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new re(n,this,e)),this._$AV.push(t),a=l[++i]}r!==a?.index&&(n=G.nextNode(),r++)}return G.currentNode=z,o}p(e){let t=0;for(const l of this._$AV)void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}class ee{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,l,o){this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=l,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=X(this,e,t),j(e)?e===q||null==e||""===e?(this._$AH!==q&&this._$AR(),this._$AH=q):e!==this._$AH&&e!==F&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>L(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==q&&j(this._$AH)?this._$AA.nextSibling.data=e:this.T(z.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:l}=e,o="number"==typeof l?this._$AC(e):(void 0===l.el&&(l.el=J.createElement(K(l.h,l.h[0]),this.options)),l);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new Q(o,this),l=e.u(this.options);e.p(t),this.T(l),this._$AH=e}}_$AC(e){let t=W.get(e.strings);return void 0===t&&W.set(e.strings,t=new J(e)),t}k(e){L(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let l,o=0;for(const n of e)o===t.length?t.push(l=new ee(this.O(B()),this.O(B()),this,this.options)):l=t[o],l._$AI(n),o++;o<t.length&&(this._$AR(l&&l._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=y(e).nextSibling;y(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class te{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,l,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,l.length>2||""!==l[0]||""!==l[1]?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=q}_$AI(e,t=this,l,o){const n=this.strings;let r=!1;if(void 0===n)e=X(this,e,t,0),r=!j(e)||e!==this._$AH&&e!==F,r&&(this._$AH=e);else{const o=e;let i,a;for(e=n[0],i=0;i<n.length-1;i++)a=X(this,o[l+i],t,i),a===F&&(a=this._$AH[i]),r||=!j(a)||a!==this._$AH[i],a===q?e=q:e!==q&&(e+=(a??"")+n[i+1]),this._$AH[i]=a}r&&!o&&this.j(e)}j(e){e===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class le extends te{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===q?void 0:e}}class oe extends te{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==q)}}class ne extends te{constructor(e,t,l,o,n){super(e,t,l,o,n),this.type=5}_$AI(e,t=this){if((e=X(this,e,t,0)??q)===F)return;const l=this._$AH,o=e===q&&l!==q||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,n=e!==q&&(l===q||o);o&&this.element.removeEventListener(this.name,this,l),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class re{constructor(e,t,l){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=l}get _$AU(){return this._$AM._$AU}_$AI(e){X(this,e)}}const ie=M.litHtmlPolyfillSupport;ie?.(J,ee),(M.litHtmlVersions??=[]).push("3.3.2");const ae=globalThis;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
@@ -73,7 +73,7 @@ const ge=1,we=2,me=e=>(...t)=>({_$litDirective$:e,values:t});class _e{constructo
|
|
|
73
73
|
* @license
|
|
74
74
|
* Copyright 2020 Google LLC
|
|
75
75
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
76
|
-
*/const Oe=()=>new $e;class $e{}const Pe=new WeakMap,ze=me(class extends Ae{render(e){return q}update(e,[t]){const l=t!==this.G;return l&&void 0!==this.G&&this.rt(void 0),(l||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),q}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){const t=this.ht??globalThis;let l=Pe.get(t);void 0===l&&(l=new WeakMap,Pe.set(t,l)),void 0!==l.get(this.G)&&this.G.call(this.ht,void 0),l.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?Pe.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),Be=Math.min,je=Math.max,Le=Math.round,Se=Math.floor,ke=e=>({x:e,y:e}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},Ie={start:"end",end:"start"};function Re(e,t,l){return je(e,Be(t,l))}function Te(e,t){return"function"==typeof e?e(t):e}function De(e){return e.split("-")[0]}function Ue(e){return e.split("-")[1]}function Ne(e){return"x"===e?"y":"x"}function Fe(e){return"y"===e?"height":"width"}const qe=new Set(["top","bottom"]);function We(e){return qe.has(De(e))?"y":"x"}function Ge(e){return Ne(We(e))}function Ke(e,t,l){void 0===l&&(l=!1);const o=Ue(e),n=Ge(e),r=Fe(n);let i="x"===n?o===(l?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=lt(i)),[i,lt(i)]}function Ye(e){return e.replace(/start|end/g,e=>Ie[e])}const Je=["left","right"],Xe=["right","left"],Qe=["top","bottom"],et=["bottom","top"];function tt(e,t,l,o){const n=Ue(e);let r=function(e,t,l){switch(e){case"top":case"bottom":return l?t?Xe:Je:t?Je:Xe;case"left":case"right":return t?Qe:et;default:return[]}}(De(e),"start"===l,o);return n&&(r=r.map(e=>e+"-"+n),t&&(r=r.concat(r.map(Ye)))),r}function lt(e){return e.replace(/left|right|bottom|top/g,e=>Ee[e])}function ot(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function nt(e){const{x:t,y:l,width:o,height:n}=e;return{width:o,height:n,top:l,left:t,right:t+o,bottom:l+n,x:t,y:l}}function rt(e,t,l){let{reference:o,floating:n}=e;const r=We(t),i=Ge(t),a=Fe(i),c=De(t),s="y"===r,h=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,u=o[a]/2-n[a]/2;let v;switch(c){case"top":v={x:h,y:o.y-n.height};break;case"bottom":v={x:h,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:d};break;case"left":v={x:o.x-n.width,y:d};break;default:v={x:o.x,y:o.y}}switch(Ue(t)){case"start":v[i]-=u*(l&&s?-1:1);break;case"end":v[i]+=u*(l&&s?-1:1)}return v}async function it(e,t){var l;void 0===t&&(t={});const{x:o,y:n,platform:r,rects:i,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:u=!1,padding:v=0}=Te(t,e),f=ot(v),p=a[u?"floating"===d?"reference":"floating":d],g=nt(await r.getClippingRect({element:null==(l=await(null==r.isElement?void 0:r.isElement(p)))||l?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:h,strategy:c})),w="floating"===d?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await(null==r.isElement?void 0:r.isElement(m))&&await(null==r.getScale?void 0:r.getScale(m))||{x:1,y:1},x=nt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:m,strategy:c}):w);return{top:(g.top-x.top+f.top)/_.y,bottom:(x.bottom-g.bottom+f.bottom)/_.y,left:(g.left-x.left+f.left)/_.x,right:(x.right-g.right+f.right)/_.x}}const at=new Set(["left","top"]);function ct(){return"undefined"!=typeof window}function st(e){return ut(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function dt(e){var t;return null==(t=(ut(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ut(e){return!!ct()&&(e instanceof Node||e instanceof ht(e).Node)}function vt(e){return!!ct()&&(e instanceof Element||e instanceof ht(e).Element)}function ft(e){return!!ct()&&(e instanceof HTMLElement||e instanceof ht(e).HTMLElement)}function pt(e){return!(!ct()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot)}const gt=new Set(["inline","contents"]);function wt(e){const{overflow:t,overflowX:l,overflowY:o,display:n}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+l)&&!gt.has(n)}const mt=new Set(["table","td","th"]);function _t(e){return mt.has(st(e))}const xt=[":popover-open",":modal"];function Zt(e){return xt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const bt=["transform","translate","scale","rotate","perspective"],Ct=["transform","translate","scale","rotate","perspective","filter"],Mt=["paint","layout","strict","content"];function yt(e){const t=Vt(),l=vt(e)?Ot(e):e;return bt.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||Ct.some(e=>(l.willChange||"").includes(e))||Mt.some(e=>(l.contain||"").includes(e))}function Vt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ht=new Set(["html","body","#document"]);function At(e){return Ht.has(st(e))}function Ot(e){return ht(e).getComputedStyle(e)}function $t(e){return vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if("html"===st(e))return e;const t=e.assignedSlot||e.parentNode||pt(e)&&e.host||dt(e);return pt(t)?t.host:t}function zt(e){const t=Pt(e);return At(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&&wt(t)?t:zt(t)}function Bt(e,t,l){var o;void 0===t&&(t=[]),void 0===l&&(l=!0);const n=zt(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=ht(n);if(r){const e=jt(i);return t.concat(i,i.visualViewport||[],wt(n)?n:[],e&&l?Bt(e):[])}return t.concat(n,Bt(n,[],l))}function jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){const t=Ot(e);let l=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=ft(e),r=n?e.offsetWidth:l,i=n?e.offsetHeight:o,a=Le(l)!==r||Le(o)!==i;return a&&(l=r,o=i),{width:l,height:o,$:a}}function St(e){return vt(e)?e:e.contextElement}function kt(e){const t=St(e);if(!ft(t))return ke(1);const l=t.getBoundingClientRect(),{width:o,height:n,$:r}=Lt(t);let i=(r?Le(l.width):l.width)/o,a=(r?Le(l.height):l.height)/n;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const Et=ke(0);function It(e){const t=ht(e);return Vt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Et}function Rt(e,t,l,o){void 0===t&&(t=!1),void 0===l&&(l=!1);const n=e.getBoundingClientRect(),r=St(e);let i=ke(1);t&&(o?vt(o)&&(i=kt(o)):i=kt(e));const a=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==ht(e))&&t}(r,l,o)?It(r):ke(0);let c=(n.left+a.x)/i.x,s=(n.top+a.y)/i.y,h=n.width/i.x,d=n.height/i.y;if(r){const e=ht(r),t=o&&vt(o)?ht(o):o;let l=e,n=jt(l);for(;n&&o&&t!==l;){const e=kt(n),t=n.getBoundingClientRect(),o=Ot(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,s*=e.y,h*=e.x,d*=e.y,c+=r,s+=i,l=ht(n),n=jt(l)}}return nt({width:h,height:d,x:c,y:s})}function Tt(e,t){const l=$t(e).scrollLeft;return t?t.left+l:Rt(dt(e)).left+l}function Dt(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-Tt(e,l),y:l.top+t.scrollTop}}const Ut=new Set(["absolute","fixed"]);function Nt(e,t,l){let o;if("viewport"===t)o=function(e,t){const l=ht(e),o=dt(e),n=l.visualViewport;let r=o.clientWidth,i=o.clientHeight,a=0,c=0;if(n){r=n.width,i=n.height;const e=Vt();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,c=n.offsetTop)}const s=Tt(o);if(s<=0){const e=o.ownerDocument,t=e.body,l=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n);i<=25&&(r-=i)}else s<=25&&(r+=s);return{width:r,height:i,x:a,y:c}}(e,l);else if("document"===t)o=function(e){const t=dt(e),l=$t(e),o=e.ownerDocument.body,n=je(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=je(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-l.scrollLeft+Tt(e);const a=-l.scrollTop;return"rtl"===Ot(o).direction&&(i+=je(t.clientWidth,o.clientWidth)-n),{width:n,height:r,x:i,y:a}}(dt(e));else if(vt(t))o=function(e,t){const l=Rt(e,!0,"fixed"===t),o=l.top+e.clientTop,n=l.left+e.clientLeft,r=ft(e)?kt(e):ke(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:n*r.x,y:o*r.y}}(t,l);else{const l=It(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return nt(o)}function Ft(e,t){const l=Pt(e);return!(l===t||!vt(l)||At(l))&&("fixed"===Ot(l).position||Ft(l,t))}function qt(e,t,l){const o=ft(t),n=dt(t),r="fixed"===l,i=Rt(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=ke(0);function s(){c.x=Tt(n)}if(o||!o&&!r)if(("body"!==st(t)||wt(n))&&(a=$t(t)),o){const e=Rt(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else n&&s();r&&!o&&n&&s();const h=!n||o||r?ke(0):Dt(n,a);return{x:i.left+a.scrollLeft-c.x-h.x,y:i.top+a.scrollTop-c.y-h.y,width:i.width,height:i.height}}function Wt(e){return"static"===Ot(e).position}function Gt(e,t){if(!ft(e)||"fixed"===Ot(e).position)return null;if(t)return t(e);let l=e.offsetParent;return dt(e)===l&&(l=l.ownerDocument.body),l}function Kt(e,t){const l=ht(e);if(Zt(e))return l;if(!ft(e)){let t=Pt(e);for(;t&&!At(t);){if(vt(t)&&!Wt(t))return t;t=Pt(t)}return l}let o=Gt(e,t);for(;o&&_t(o)&&Wt(o);)o=Gt(o,t);return o&&At(o)&&Wt(o)&&!yt(o)?l:o||function(e){let t=Pt(e);for(;ft(t)&&!At(t);){if(yt(t))return t;if(Zt(t))return null;t=Pt(t)}return null}(e)||l}const Yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:o,strategy:n}=e;const r="fixed"===n,i=dt(o),a=!!t&&Zt(t.floating);if(o===i||a&&r)return l;let c={scrollLeft:0,scrollTop:0},s=ke(1);const h=ke(0),d=ft(o);if((d||!d&&!r)&&(("body"!==st(o)||wt(i))&&(c=$t(o)),ft(o))){const e=Rt(o);s=kt(o),h.x=e.x+o.clientLeft,h.y=e.y+o.clientTop}const u=!i||d||r?ke(0):Dt(i,c);return{width:l.width*s.x,height:l.height*s.y,x:l.x*s.x-c.scrollLeft*s.x+h.x+u.x,y:l.y*s.y-c.scrollTop*s.y+h.y+u.y}},getDocumentElement:dt,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:o,strategy:n}=e;const r=[..."clippingAncestors"===l?Zt(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let o=Bt(e,[],!1).filter(e=>vt(e)&&"body"!==st(e)),n=null;const r="fixed"===Ot(e).position;let i=r?Pt(e):e;for(;vt(i)&&!At(i);){const t=Ot(i),l=yt(i);l||"fixed"!==t.position||(n=null),(r?!l&&!n:!l&&"static"===t.position&&n&&Ut.has(n.position)||wt(i)&&!l&&Ft(e,i))?o=o.filter(e=>e!==i):n=t,i=Pt(i)}return t.set(e,o),o}(t,this._c):[].concat(l),o],i=r[0],a=r.reduce((e,l)=>{const o=Nt(t,l,n);return e.top=je(o.top,e.top),e.right=Be(o.right,e.right),e.bottom=Be(o.bottom,e.bottom),e.left=je(o.left,e.left),e},Nt(t,i,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Kt,getElementRects:async function(e){const t=this.getOffsetParent||Kt,l=this.getDimensions,o=await l(e.floating);return{reference:qt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=Lt(e);return{width:t,height:l}},getScale:kt,isElement:vt,isRTL:function(e){return"rtl"===Ot(e).direction}};function Jt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xt(e,t,l,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=St(e),h=n||r?[...s?Bt(s):[],...Bt(t)]:[];h.forEach(e=>{n&&e.addEventListener("scroll",l,{passive:!0}),r&&e.addEventListener("resize",l)});const d=s&&a?function(e,t){let l,o=null;const n=dt(e);function r(){var e;clearTimeout(l),null==(e=o)||e.disconnect(),o=null}return function i(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),r();const s=e.getBoundingClientRect(),{left:h,top:d,width:u,height:v}=s;if(a||t(),!u||!v)return;const f={rootMargin:-Se(d)+"px "+-Se(n.clientWidth-(h+u))+"px "+-Se(n.clientHeight-(d+v))+"px "+-Se(h)+"px",threshold:je(0,Be(1,c))||1};let p=!0;function g(t){const o=t[0].intersectionRatio;if(o!==c){if(!p)return i();o?i(!1,o):l=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Jt(s,e.getBoundingClientRect())||i(),p=!1}try{o=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),r}(s,l):null;let u,v=-1,f=null;i&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===s&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),l()}),s&&!c&&f.observe(s),f.observe(t));let p=c?Rt(e):null;return c&&function t(){const o=Rt(e);p&&!Jt(p,o)&&l();p=o,u=requestAnimationFrame(t)}(),l(),()=>{var e;h.forEach(e=>{n&&e.removeEventListener("scroll",l),r&&e.removeEventListener("resize",l)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(u)}}const Qt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,o;const{x:n,y:r,placement:i,middlewareData:a}=t,c=await async function(e,t){const{placement:l,platform:o,elements:n}=e,r=await(null==o.isRTL?void 0:o.isRTL(n.floating)),i=De(l),a=Ue(l),c="y"===We(l),s=at.has(i)?-1:1,h=r&&c?-1:1,d=Te(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(v="end"===a?-1*f:f),c?{x:v*h,y:u*s}:{x:u*s,y:v*h}}(t,e);return i===(null==(l=a.offset)?void 0:l.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:n+c.x,y:r+c.y,data:{...c,placement:i}}}}},el=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:o,placement:n}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...c}=Te(e,t),s={x:l,y:o},h=await it(t,c),d=We(De(n)),u=Ne(d);let v=s[u],f=s[d];if(r){const e="y"===u?"bottom":"right";v=Re(v+h["y"===u?"top":"left"],v,v-h[e])}if(i){const e="y"===d?"bottom":"right";f=Re(f+h["y"===d?"top":"left"],f,f-h[e])}const p=a.fn({...t,[u]:v,[d]:f});return{...p,data:{x:p.x-l,y:p.y-o,enabled:{[u]:r,[d]:i}}}}}},tl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,o;const{placement:n,middlewareData:r,rects:i,initialPlacement:a,platform:c,elements:s}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=Te(e,t);if(null!=(l=r.arrow)&&l.alignmentOffset)return{};const w=De(n),m=We(a),_=De(a)===a,x=await(null==c.isRTL?void 0:c.isRTL(s.floating)),Z=u||(_||!p?[lt(a)]:function(e){const t=lt(e);return[Ye(e),t,Ye(t)]}(a)),b="none"!==f;!u&&b&&Z.push(...tt(a,p,f,x));const C=[a,...Z],M=await it(t,g),y=[];let V=(null==(o=r.flip)?void 0:o.overflows)||[];if(h&&y.push(M[w]),d){const e=Ke(n,i,x);y.push(M[e[0]],M[e[1]])}if(V=[...V,{placement:n,overflows:y}],!y.every(e=>e<=0)){var H,A;const e=((null==(H=r.flip)?void 0:H.index)||0)+1,t=C[e];if(t){if(!("alignment"===d&&m!==We(t))||V.every(e=>We(e.placement)!==m||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==(A=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!l)switch(v){case"bestFit":{var O;const e=null==(O=V.filter(e=>{if(b){const t=We(e.placement);return t===m||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(l=e);break}case"initialPlacement":l=a}if(n!==l)return{reset:{placement:l}}}return{}}}},ll=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var l,o;const{placement:n,rects:r,platform:i,elements:a}=t,{apply:c=()=>{},...s}=Te(e,t),h=await it(t,s),d=De(n),u=Ue(n),v="y"===We(n),{width:f,height:p}=r.floating;let g,w;"top"===d||"bottom"===d?(g=d,w=u===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=d,g="end"===u?"top":"bottom");const m=p-h.top-h.bottom,_=f-h.left-h.right,x=Be(p-h[g],m),Z=Be(f-h[w],_),b=!t.middlewareData.shift;let C=x,M=Z;if(null!=(l=t.middlewareData.shift)&&l.enabled.x&&(M=_),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(C=m),b&&!u){const e=je(h.left,0),t=je(h.right,0),l=je(h.top,0),o=je(h.bottom,0);v?M=f-2*(0!==e||0!==t?e+t:je(h.left,h.right)):C=p-2*(0!==l||0!==o?l+o:je(h.top,h.bottom))}await c({...t,availableWidth:M,availableHeight:C});const y=await i.getDimensions(a.floating);return f!==y.width||p!==y.height?{reset:{rects:!0}}:{}}}},ol=(e,t,l)=>{const o=new Map,n={platform:Yt,...l},r={...n.platform,_c:o};return(async(e,t,l)=>{const{placement:o="bottom",strategy:n="absolute",middleware:r=[],platform:i}=l,a=r.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:d}=rt(s,o,c),u=o,v={},f=0;for(let l=0;l<a.length;l++){const{name:r,fn:p}=a[l],{x:g,y:w,data:m,reset:_}=await p({x:h,y:d,initialPlacement:o,placement:u,strategy:n,middlewareData:v,rects:s,platform:i,elements:{reference:e,floating:t}});h=null!=g?g:h,d=null!=w?w:d,v={...v,[r]:{...v[r],...m}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(s=!0===_.rects?await i.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:h,y:d}=rt(s,u,c))),l=-1)}return{x:h,y:d,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:r})};var nl=a`:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-192);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:var(--sgds-z-index-floating)}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,rl=a`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-20)}.invalid-feedback{font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,il=a`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.form-text.disabled{opacity:var(--sgds-opacity-40)}`,al=a`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md);font-weight:var(--sgds-font-weight-semibold)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-xl);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;function cl(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class sl{constructor(e,t){(this.host=e).addController(this),this._internals=e._internals||this.host.attachInternals(),this.options=Object.assign({setInvalid:(e,t)=>{e.invalid=t},value:e=>e.value,input:e=>e.input},t)}hostConnected(){this.host.addEventListener("invalid",e=>this.handleInvalid(e))}hostDisconnected(){this.host.removeEventListener("invalid",e=>this.handleInvalid(e))}handleInvalid(e){e.preventDefault(),this.options.setInvalid(this.host,!0)}handleInput(e){const t=e.target;this.options.setInvalid(this.host,!1),this.validateInput(t)}handleChange(e){const t=e.target;this.validateInput(t),this.options.setInvalid(this.host,!this.checkValidity())}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}updateInvalidState(){this.options.setInvalid(this.host,!this.checkValidity())}resetValidity(){return this._internals.setValidity({})}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}setValidity(e,t,l){return this._internals.setValidity(e,t,l)}setFormValue(){const e=this.options.value(this.host);this._internals.setFormValue(e)}validateInput(e){if(this.options.input(this.host).disabled)return this._internals.setValidity({});const t=e.validity;if(t.valid)this._internals.setValidity({});else for(const l in t)t[l]&&(this.validationError=l.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const hl=e=>{class l extends e{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new sl(this))}async firstUpdated(e){super.firstUpdated(e),this.input=this.shadowRoot.querySelector("input")||await this.sgdsInput||this.shadowRoot.querySelector("textarea")||await this.sgdsDatepickerInput,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this._mixinValidate(this.input)}formResetCallback(){this._mixinResetFormControl?this._mixinResetFormControl():(this.value=this.defaultValue,this._mixinResetValidity(this.input)),this._mixinSetFormValue()}_mixinHandleChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleChange(e)}_mixinHandleInputChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleInput(e)}_mixinResetValidity(e){this.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this._isTouched&&(this._isTouched=!1),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinValidate(e){this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinSetFormValue(){const e=this.value;this._internals.setFormValue(e)}_mixinCheckValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.checkValidity()}_mixinReportValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.reportValidity()}_mixinGetValidity(){return this._internals.validity}_mixinGetValidationMessage(){return this._internals.validationMessage}_mixinSetValidity(e,t,l){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,l)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return l.formAssociated=!0,t([pe("sgds-input")],l.prototype,"sgdsInput",void 0),t([pe("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var dl=a`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class ul extends ce{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(o){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}function vl(e,t,l){return new Promise(o=>{if((null==l?void 0:l.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Object.assign(Object.assign({},l),{duration:fl()?0:null==l?void 0:l.duration}));n.addEventListener("cancel",o,{once:!0}),n.addEventListener("finish",o,{once:!0})})}function fl(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}ul.styles=[dl],ul.dependencies={},t([ue({type:Boolean,reflect:!0})],ul.prototype,"ssr",void 0);const pl=new Map,gl=new WeakMap;function wl(e,t){const l=gl.get(e);if(null==l?void 0:l[t])return l[t];const o=pl.get(t);return o||{keyframes:[],options:{duration:0}}}function ml(e,t){pl.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class _l extends ul{constructor(){super(...arguments),this.myDropdown=Oe(),this.dropdownMenuId=cl("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=Oe(),this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&requestAnimationFrame(async()=>{await this.updateFloatingPosition(),this._startAutoUpdate()})}async showMenu(){if(!this.disabled&&!this.menuIsOpen){if(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this._startAutoUpdate(),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=wl(this,"dropdown.show");await vl(this.menuRef.value,[{opacity:0,transform:`translateY(${e})`},{opacity:1,transform:"translateY(0)"}],t)}this.emit("sgds-after-show")}}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=Xt(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}async hideMenu(e){if(this.menuIsOpen){if(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=wl(this,"dropdown.hide");await vl(this.menuRef.value,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:`translateY(${e})`}],t)}this.menuIsOpen=!1,this.emit("sgds-after-hide"),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}_handleKeyboardMenuEvent(e){if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}}mergeMiddleware(e,t){const l=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},o=t.map(l),n=e.map(e=>{const n=l(e),r=o.indexOf(n);return-1!==r?t[r]:e}).concat(t.filter(t=>!e.some(e=>l(e)===l(t))));return n}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[Qt(8),this.noFlip?void 0:tl(),el()].filter(Boolean);let l=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(l=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const o=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:l}),{x:n,y:r,strategy:i,placement:a}=await ol(this.myDropdown.value,this.menuRef.value,o);this.menuRef.value.setAttribute("data-placement",a),Object.assign(this.menuRef.value.style,{position:i,left:`${n}px`,top:`${r}px`})}}t([ue({type:Boolean,state:!0})],_l.prototype,"noFlip",void 0),t([ue({type:Boolean,reflect:!0,state:!0})],_l.prototype,"menuAlignRight",void 0),t([ue({type:String,reflect:!0,state:!0})],_l.prototype,"drop",void 0),t([ue({type:Object})],_l.prototype,"floatingOpts",void 0),t([ue({type:Boolean,reflect:!0})],_l.prototype,"menuIsOpen",void 0),t([ue({type:Boolean,reflect:!0})],_l.prototype,"disabled",void 0),t([ue({type:Boolean,reflect:!0})],_l.prototype,"readonly",void 0),ml("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),ml("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class xl extends _l{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),l=t.find(t=>e.composedPath().includes(t));if(!l)return;const o=t.indexOf(l);this.nextDropdownItemNo=o+1,this.prevDropdownItemNo=o<=0?t.length-1:o-1,l.disabled||(this.emit("sgds-select",{detail:{item:l}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const l=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");l&&l.removeAttribute("tabindex")})}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Escape":this.menuIsOpen&&(e.preventDefault(),this.hideMenu());break;case"Enter":t.find(t=>e.composedPath().includes(t))&&this.handleSelectSlot(e);break}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter(e=>"menuitem"===e.getAttribute("role")&&!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden"))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter(e=>!e.disabled&&!e.hidden&&!e.readonly)}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const l=(e%t.length+t.length)%t.length,o=t[l];this.emit("i-sgds-option-focus",{detail:{option:o}}),this.nextDropdownItemNo=(l+1)%t.length,this.prevDropdownItemNo=(l-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===o?"0":"-1"),e===o&&t.focus()})}}xl.styles=_l.styles,t([function(e,t){return(l,o,n)=>{const r=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?l:n??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return fe(l,o,{get(){let l=e.call(this);return void 0===l&&(l=r(this),(null!==l||this.hasUpdated)&&t.call(this,l)),l}})}return fe(l,o,{get(){return r(this)}})}}("ul.dropdown-menu")],xl.prototype,"menu",void 0),t([ve()],xl.prototype,"nextDropdownItemNo",void 0),t([ve()],xl.prototype,"prevDropdownItemNo",void 0),t([ue({type:Boolean,reflect:!0})],xl.prototype,"hidden",void 0);var Zl=a`.empty-menu,.loading-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px);pointer-events:none}.loading-menu{align-items:center;display:flex;gap:var(--sgds-gap-xs)}`;class bl extends(hl(xl)){setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}constructor(){super(),this.label="",this.hintText="",this.autofocus=!1,this.disabled=!1,this.required=!1,this.loading=!1,this.value="",this.displayValue="",this.defaultValue="",this.hasFeedback=!1,this.invalidFeedback="",this.invalid=!1,this.autocomplete="on",this.menuList=[],this.selectedItems=[],this.filteredList=[],this._isTouched=!1,this._controlId=cl("input"),this._labelId=cl("label"),this.floatingOpts={middleware:[ll({apply({rects:e,elements:t}){t.floating.style.width=`${e.reference.width}px`}})]}}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",async e=>{var t;if(this._mixinShouldSkipSgdsValidation())return;const l=this.constructor.childName,o=(null===(t=e.relatedTarget)||void 0===t?void 0:t.tagName.toLowerCase())===l;this.invalid=!o&&!this._mixinReportValidity()})}reportValidity(){return this._mixinReportValidity()}setValidity(e,t,l){return this._mixinSetValidity(e,t,l)}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_renderFeedback(){return this.invalid&&this.hasFeedback?N` <div class="invalid-feedback-container">
|
|
76
|
+
*/const Oe=()=>new $e;class $e{}const Pe=new WeakMap,ze=me(class extends Ae{render(e){return q}update(e,[t]){const l=t!==this.G;return l&&void 0!==this.G&&this.rt(void 0),(l||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),q}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){const t=this.ht??globalThis;let l=Pe.get(t);void 0===l&&(l=new WeakMap,Pe.set(t,l)),void 0!==l.get(this.G)&&this.G.call(this.ht,void 0),l.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?Pe.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),Be=Math.min,je=Math.max,Le=Math.round,Se=Math.floor,ke=e=>({x:e,y:e}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},Re={start:"end",end:"start"};function Ie(e,t,l){return je(e,Be(t,l))}function Te(e,t){return"function"==typeof e?e(t):e}function De(e){return e.split("-")[0]}function Ue(e){return e.split("-")[1]}function Ne(e){return"x"===e?"y":"x"}function Fe(e){return"y"===e?"height":"width"}const qe=new Set(["top","bottom"]);function We(e){return qe.has(De(e))?"y":"x"}function Ge(e){return Ne(We(e))}function Ke(e,t,l){void 0===l&&(l=!1);const o=Ue(e),n=Ge(e),r=Fe(n);let i="x"===n?o===(l?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=lt(i)),[i,lt(i)]}function Ye(e){return e.replace(/start|end/g,e=>Re[e])}const Je=["left","right"],Xe=["right","left"],Qe=["top","bottom"],et=["bottom","top"];function tt(e,t,l,o){const n=Ue(e);let r=function(e,t,l){switch(e){case"top":case"bottom":return l?t?Xe:Je:t?Je:Xe;case"left":case"right":return t?Qe:et;default:return[]}}(De(e),"start"===l,o);return n&&(r=r.map(e=>e+"-"+n),t&&(r=r.concat(r.map(Ye)))),r}function lt(e){return e.replace(/left|right|bottom|top/g,e=>Ee[e])}function ot(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function nt(e){const{x:t,y:l,width:o,height:n}=e;return{width:o,height:n,top:l,left:t,right:t+o,bottom:l+n,x:t,y:l}}function rt(e,t,l){let{reference:o,floating:n}=e;const r=We(t),i=Ge(t),a=Fe(i),c=De(t),s="y"===r,h=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,u=o[a]/2-n[a]/2;let v;switch(c){case"top":v={x:h,y:o.y-n.height};break;case"bottom":v={x:h,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:d};break;case"left":v={x:o.x-n.width,y:d};break;default:v={x:o.x,y:o.y}}switch(Ue(t)){case"start":v[i]-=u*(l&&s?-1:1);break;case"end":v[i]+=u*(l&&s?-1:1)}return v}async function it(e,t){var l;void 0===t&&(t={});const{x:o,y:n,platform:r,rects:i,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:u=!1,padding:v=0}=Te(t,e),f=ot(v),p=a[u?"floating"===d?"reference":"floating":d],g=nt(await r.getClippingRect({element:null==(l=await(null==r.isElement?void 0:r.isElement(p)))||l?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:h,strategy:c})),w="floating"===d?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),_=await(null==r.isElement?void 0:r.isElement(m))&&await(null==r.getScale?void 0:r.getScale(m))||{x:1,y:1},x=nt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:m,strategy:c}):w);return{top:(g.top-x.top+f.top)/_.y,bottom:(x.bottom-g.bottom+f.bottom)/_.y,left:(g.left-x.left+f.left)/_.x,right:(x.right-g.right+f.right)/_.x}}const at=new Set(["left","top"]);function ct(){return"undefined"!=typeof window}function st(e){return ut(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function dt(e){var t;return null==(t=(ut(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ut(e){return!!ct()&&(e instanceof Node||e instanceof ht(e).Node)}function vt(e){return!!ct()&&(e instanceof Element||e instanceof ht(e).Element)}function ft(e){return!!ct()&&(e instanceof HTMLElement||e instanceof ht(e).HTMLElement)}function pt(e){return!(!ct()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot)}const gt=new Set(["inline","contents"]);function wt(e){const{overflow:t,overflowX:l,overflowY:o,display:n}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+l)&&!gt.has(n)}const mt=new Set(["table","td","th"]);function _t(e){return mt.has(st(e))}const xt=[":popover-open",":modal"];function Zt(e){return xt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const bt=["transform","translate","scale","rotate","perspective"],Ct=["transform","translate","scale","rotate","perspective","filter"],Mt=["paint","layout","strict","content"];function yt(e){const t=Vt(),l=vt(e)?Ot(e):e;return bt.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||Ct.some(e=>(l.willChange||"").includes(e))||Mt.some(e=>(l.contain||"").includes(e))}function Vt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ht=new Set(["html","body","#document"]);function At(e){return Ht.has(st(e))}function Ot(e){return ht(e).getComputedStyle(e)}function $t(e){return vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if("html"===st(e))return e;const t=e.assignedSlot||e.parentNode||pt(e)&&e.host||dt(e);return pt(t)?t.host:t}function zt(e){const t=Pt(e);return At(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&&wt(t)?t:zt(t)}function Bt(e,t,l){var o;void 0===t&&(t=[]),void 0===l&&(l=!0);const n=zt(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),i=ht(n);if(r){const e=jt(i);return t.concat(i,i.visualViewport||[],wt(n)?n:[],e&&l?Bt(e):[])}return t.concat(n,Bt(n,[],l))}function jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){const t=Ot(e);let l=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=ft(e),r=n?e.offsetWidth:l,i=n?e.offsetHeight:o,a=Le(l)!==r||Le(o)!==i;return a&&(l=r,o=i),{width:l,height:o,$:a}}function St(e){return vt(e)?e:e.contextElement}function kt(e){const t=St(e);if(!ft(t))return ke(1);const l=t.getBoundingClientRect(),{width:o,height:n,$:r}=Lt(t);let i=(r?Le(l.width):l.width)/o,a=(r?Le(l.height):l.height)/n;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const Et=ke(0);function Rt(e){const t=ht(e);return Vt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Et}function It(e,t,l,o){void 0===t&&(t=!1),void 0===l&&(l=!1);const n=e.getBoundingClientRect(),r=St(e);let i=ke(1);t&&(o?vt(o)&&(i=kt(o)):i=kt(e));const a=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==ht(e))&&t}(r,l,o)?Rt(r):ke(0);let c=(n.left+a.x)/i.x,s=(n.top+a.y)/i.y,h=n.width/i.x,d=n.height/i.y;if(r){const e=ht(r),t=o&&vt(o)?ht(o):o;let l=e,n=jt(l);for(;n&&o&&t!==l;){const e=kt(n),t=n.getBoundingClientRect(),o=Ot(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,s*=e.y,h*=e.x,d*=e.y,c+=r,s+=i,l=ht(n),n=jt(l)}}return nt({width:h,height:d,x:c,y:s})}function Tt(e,t){const l=$t(e).scrollLeft;return t?t.left+l:It(dt(e)).left+l}function Dt(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-Tt(e,l),y:l.top+t.scrollTop}}const Ut=new Set(["absolute","fixed"]);function Nt(e,t,l){let o;if("viewport"===t)o=function(e,t){const l=ht(e),o=dt(e),n=l.visualViewport;let r=o.clientWidth,i=o.clientHeight,a=0,c=0;if(n){r=n.width,i=n.height;const e=Vt();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,c=n.offsetTop)}const s=Tt(o);if(s<=0){const e=o.ownerDocument,t=e.body,l=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n);i<=25&&(r-=i)}else s<=25&&(r+=s);return{width:r,height:i,x:a,y:c}}(e,l);else if("document"===t)o=function(e){const t=dt(e),l=$t(e),o=e.ownerDocument.body,n=je(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=je(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-l.scrollLeft+Tt(e);const a=-l.scrollTop;return"rtl"===Ot(o).direction&&(i+=je(t.clientWidth,o.clientWidth)-n),{width:n,height:r,x:i,y:a}}(dt(e));else if(vt(t))o=function(e,t){const l=It(e,!0,"fixed"===t),o=l.top+e.clientTop,n=l.left+e.clientLeft,r=ft(e)?kt(e):ke(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:n*r.x,y:o*r.y}}(t,l);else{const l=Rt(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return nt(o)}function Ft(e,t){const l=Pt(e);return!(l===t||!vt(l)||At(l))&&("fixed"===Ot(l).position||Ft(l,t))}function qt(e,t,l){const o=ft(t),n=dt(t),r="fixed"===l,i=It(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=ke(0);function s(){c.x=Tt(n)}if(o||!o&&!r)if(("body"!==st(t)||wt(n))&&(a=$t(t)),o){const e=It(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else n&&s();r&&!o&&n&&s();const h=!n||o||r?ke(0):Dt(n,a);return{x:i.left+a.scrollLeft-c.x-h.x,y:i.top+a.scrollTop-c.y-h.y,width:i.width,height:i.height}}function Wt(e){return"static"===Ot(e).position}function Gt(e,t){if(!ft(e)||"fixed"===Ot(e).position)return null;if(t)return t(e);let l=e.offsetParent;return dt(e)===l&&(l=l.ownerDocument.body),l}function Kt(e,t){const l=ht(e);if(Zt(e))return l;if(!ft(e)){let t=Pt(e);for(;t&&!At(t);){if(vt(t)&&!Wt(t))return t;t=Pt(t)}return l}let o=Gt(e,t);for(;o&&_t(o)&&Wt(o);)o=Gt(o,t);return o&&At(o)&&Wt(o)&&!yt(o)?l:o||function(e){let t=Pt(e);for(;ft(t)&&!At(t);){if(yt(t))return t;if(Zt(t))return null;t=Pt(t)}return null}(e)||l}const Yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:o,strategy:n}=e;const r="fixed"===n,i=dt(o),a=!!t&&Zt(t.floating);if(o===i||a&&r)return l;let c={scrollLeft:0,scrollTop:0},s=ke(1);const h=ke(0),d=ft(o);if((d||!d&&!r)&&(("body"!==st(o)||wt(i))&&(c=$t(o)),ft(o))){const e=It(o);s=kt(o),h.x=e.x+o.clientLeft,h.y=e.y+o.clientTop}const u=!i||d||r?ke(0):Dt(i,c);return{width:l.width*s.x,height:l.height*s.y,x:l.x*s.x-c.scrollLeft*s.x+h.x+u.x,y:l.y*s.y-c.scrollTop*s.y+h.y+u.y}},getDocumentElement:dt,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:o,strategy:n}=e;const r=[..."clippingAncestors"===l?Zt(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let o=Bt(e,[],!1).filter(e=>vt(e)&&"body"!==st(e)),n=null;const r="fixed"===Ot(e).position;let i=r?Pt(e):e;for(;vt(i)&&!At(i);){const t=Ot(i),l=yt(i);l||"fixed"!==t.position||(n=null),(r?!l&&!n:!l&&"static"===t.position&&n&&Ut.has(n.position)||wt(i)&&!l&&Ft(e,i))?o=o.filter(e=>e!==i):n=t,i=Pt(i)}return t.set(e,o),o}(t,this._c):[].concat(l),o],i=r[0],a=r.reduce((e,l)=>{const o=Nt(t,l,n);return e.top=je(o.top,e.top),e.right=Be(o.right,e.right),e.bottom=Be(o.bottom,e.bottom),e.left=je(o.left,e.left),e},Nt(t,i,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Kt,getElementRects:async function(e){const t=this.getOffsetParent||Kt,l=this.getDimensions,o=await l(e.floating);return{reference:qt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=Lt(e);return{width:t,height:l}},getScale:kt,isElement:vt,isRTL:function(e){return"rtl"===Ot(e).direction}};function Jt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xt(e,t,l,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,s=St(e),h=n||r?[...s?Bt(s):[],...Bt(t)]:[];h.forEach(e=>{n&&e.addEventListener("scroll",l,{passive:!0}),r&&e.addEventListener("resize",l)});const d=s&&a?function(e,t){let l,o=null;const n=dt(e);function r(){var e;clearTimeout(l),null==(e=o)||e.disconnect(),o=null}return function i(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),r();const s=e.getBoundingClientRect(),{left:h,top:d,width:u,height:v}=s;if(a||t(),!u||!v)return;const f={rootMargin:-Se(d)+"px "+-Se(n.clientWidth-(h+u))+"px "+-Se(n.clientHeight-(d+v))+"px "+-Se(h)+"px",threshold:je(0,Be(1,c))||1};let p=!0;function g(t){const o=t[0].intersectionRatio;if(o!==c){if(!p)return i();o?i(!1,o):l=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Jt(s,e.getBoundingClientRect())||i(),p=!1}try{o=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),r}(s,l):null;let u,v=-1,f=null;i&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===s&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),l()}),s&&!c&&f.observe(s),f.observe(t));let p=c?It(e):null;return c&&function t(){const o=It(e);p&&!Jt(p,o)&&l();p=o,u=requestAnimationFrame(t)}(),l(),()=>{var e;h.forEach(e=>{n&&e.removeEventListener("scroll",l),r&&e.removeEventListener("resize",l)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(u)}}const Qt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,o;const{x:n,y:r,placement:i,middlewareData:a}=t,c=await async function(e,t){const{placement:l,platform:o,elements:n}=e,r=await(null==o.isRTL?void 0:o.isRTL(n.floating)),i=De(l),a=Ue(l),c="y"===We(l),s=at.has(i)?-1:1,h=r&&c?-1:1,d=Te(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(v="end"===a?-1*f:f),c?{x:v*h,y:u*s}:{x:u*s,y:v*h}}(t,e);return i===(null==(l=a.offset)?void 0:l.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:n+c.x,y:r+c.y,data:{...c,placement:i}}}}},el=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:o,placement:n}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...c}=Te(e,t),s={x:l,y:o},h=await it(t,c),d=We(De(n)),u=Ne(d);let v=s[u],f=s[d];if(r){const e="y"===u?"bottom":"right";v=Ie(v+h["y"===u?"top":"left"],v,v-h[e])}if(i){const e="y"===d?"bottom":"right";f=Ie(f+h["y"===d?"top":"left"],f,f-h[e])}const p=a.fn({...t,[u]:v,[d]:f});return{...p,data:{x:p.x-l,y:p.y-o,enabled:{[u]:r,[d]:i}}}}}},tl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,o;const{placement:n,middlewareData:r,rects:i,initialPlacement:a,platform:c,elements:s}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=Te(e,t);if(null!=(l=r.arrow)&&l.alignmentOffset)return{};const w=De(n),m=We(a),_=De(a)===a,x=await(null==c.isRTL?void 0:c.isRTL(s.floating)),Z=u||(_||!p?[lt(a)]:function(e){const t=lt(e);return[Ye(e),t,Ye(t)]}(a)),b="none"!==f;!u&&b&&Z.push(...tt(a,p,f,x));const C=[a,...Z],M=await it(t,g),y=[];let V=(null==(o=r.flip)?void 0:o.overflows)||[];if(h&&y.push(M[w]),d){const e=Ke(n,i,x);y.push(M[e[0]],M[e[1]])}if(V=[...V,{placement:n,overflows:y}],!y.every(e=>e<=0)){var H,A;const e=((null==(H=r.flip)?void 0:H.index)||0)+1,t=C[e];if(t){if(!("alignment"===d&&m!==We(t))||V.every(e=>We(e.placement)!==m||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==(A=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!l)switch(v){case"bestFit":{var O;const e=null==(O=V.filter(e=>{if(b){const t=We(e.placement);return t===m||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(l=e);break}case"initialPlacement":l=a}if(n!==l)return{reset:{placement:l}}}return{}}}},ll=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var l,o;const{placement:n,rects:r,platform:i,elements:a}=t,{apply:c=()=>{},...s}=Te(e,t),h=await it(t,s),d=De(n),u=Ue(n),v="y"===We(n),{width:f,height:p}=r.floating;let g,w;"top"===d||"bottom"===d?(g=d,w=u===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=d,g="end"===u?"top":"bottom");const m=p-h.top-h.bottom,_=f-h.left-h.right,x=Be(p-h[g],m),Z=Be(f-h[w],_),b=!t.middlewareData.shift;let C=x,M=Z;if(null!=(l=t.middlewareData.shift)&&l.enabled.x&&(M=_),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(C=m),b&&!u){const e=je(h.left,0),t=je(h.right,0),l=je(h.top,0),o=je(h.bottom,0);v?M=f-2*(0!==e||0!==t?e+t:je(h.left,h.right)):C=p-2*(0!==l||0!==o?l+o:je(h.top,h.bottom))}await c({...t,availableWidth:M,availableHeight:C});const y=await i.getDimensions(a.floating);return f!==y.width||p!==y.height?{reset:{rects:!0}}:{}}}},ol=(e,t,l)=>{const o=new Map,n={platform:Yt,...l},r={...n.platform,_c:o};return(async(e,t,l)=>{const{placement:o="bottom",strategy:n="absolute",middleware:r=[],platform:i}=l,a=r.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let s=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:d}=rt(s,o,c),u=o,v={},f=0;for(let l=0;l<a.length;l++){const{name:r,fn:p}=a[l],{x:g,y:w,data:m,reset:_}=await p({x:h,y:d,initialPlacement:o,placement:u,strategy:n,middlewareData:v,rects:s,platform:i,elements:{reference:e,floating:t}});h=null!=g?g:h,d=null!=w?w:d,v={...v,[r]:{...v[r],...m}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(s=!0===_.rects?await i.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:h,y:d}=rt(s,u,c))),l=-1)}return{x:h,y:d,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:r})};var nl=a`:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-192);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:var(--sgds-z-index-floating)}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,rl=a`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-20)}.invalid-feedback{font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,il=a`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.form-text.disabled{opacity:var(--sgds-opacity-40)}`,al=a`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md);font-weight:var(--sgds-font-weight-semibold)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;function cl(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class sl{constructor(e,t){(this.host=e).addController(this),this._internals=e._internals||this.host.attachInternals(),this.options=Object.assign({setInvalid:(e,t)=>{e.invalid=t},value:e=>e.value,input:e=>e.input},t)}hostConnected(){this.host.addEventListener("invalid",e=>this.handleInvalid(e))}hostDisconnected(){this.host.removeEventListener("invalid",e=>this.handleInvalid(e))}handleInvalid(e){e.preventDefault(),this.options.setInvalid(this.host,!0)}handleInput(e){const t=e.target;this.options.setInvalid(this.host,!1),this.validateInput(t)}handleChange(e){const t=e.target;this.validateInput(t),this.options.setInvalid(this.host,!this.checkValidity())}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}updateInvalidState(){this.options.setInvalid(this.host,!this.checkValidity())}resetValidity(){return this._internals.setValidity({})}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}setValidity(e,t,l){return this._internals.setValidity(e,t,l)}setFormValue(){const e=this.options.value(this.host);this._internals.setFormValue(e)}validateInput(e){if(this.options.input(this.host).disabled)return this._internals.setValidity({});const t=e.validity;if(t.valid)this._internals.setValidity({});else for(const l in t)t[l]&&(this.validationError=l.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const hl=e=>{class l extends e{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new sl(this))}async firstUpdated(e){super.firstUpdated(e),this.input=this.shadowRoot.querySelector("input")||await this.sgdsInput||this.shadowRoot.querySelector("textarea")||await this.sgdsDatepickerInput,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this._mixinValidate(this.input)}formResetCallback(){this._mixinResetFormControl?this._mixinResetFormControl():(this.value=this.defaultValue,this._mixinResetValidity(this.input)),this._mixinSetFormValue()}_mixinHandleChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleChange(e)}_mixinHandleInputChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleInput(e)}_mixinResetValidity(e){this.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this._isTouched&&(this._isTouched=!1),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinValidate(e){this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinSetFormValue(){const e=this.value;this._internals.setFormValue(e)}_mixinCheckValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.checkValidity()}_mixinReportValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.reportValidity()}_mixinGetValidity(){return this._internals.validity}_mixinGetValidationMessage(){return this._internals.validationMessage}_mixinSetValidity(e,t,l){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,l)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return l.formAssociated=!0,t([pe("sgds-input")],l.prototype,"sgdsInput",void 0),t([pe("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var dl=a`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class ul extends ce{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(o){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}function vl(e,t,l){return new Promise(o=>{if((null==l?void 0:l.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Object.assign(Object.assign({},l),{duration:fl()?0:null==l?void 0:l.duration}));n.addEventListener("cancel",o,{once:!0}),n.addEventListener("finish",o,{once:!0})})}function fl(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}ul.styles=[dl],ul.dependencies={},t([ue({type:Boolean,reflect:!0})],ul.prototype,"ssr",void 0);const pl=new Map,gl=new WeakMap;function wl(e,t){const l=gl.get(e);if(null==l?void 0:l[t])return l[t];const o=pl.get(t);return o||{keyframes:[],options:{duration:0}}}function ml(e,t){pl.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class _l extends ul{constructor(){super(...arguments),this.myDropdown=Oe(),this.dropdownMenuId=cl("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=Oe(),this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&requestAnimationFrame(async()=>{await this.updateFloatingPosition(),this._startAutoUpdate()})}async showMenu(){if(!this.disabled&&!this.menuIsOpen){if(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this._startAutoUpdate(),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=wl(this,"dropdown.show");await vl(this.menuRef.value,[{opacity:0,transform:`translateY(${e})`},{opacity:1,transform:"translateY(0)"}],t)}this.emit("sgds-after-show")}}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=Xt(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}async hideMenu(e){if(this.menuIsOpen){if(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=wl(this,"dropdown.hide");await vl(this.menuRef.value,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:`translateY(${e})`}],t)}this.menuIsOpen=!1,this.emit("sgds-after-hide"),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}_handleKeyboardMenuEvent(e){if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}}mergeMiddleware(e,t){const l=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},o=t.map(l),n=e.map(e=>{const n=l(e),r=o.indexOf(n);return-1!==r?t[r]:e}).concat(t.filter(t=>!e.some(e=>l(e)===l(t))));return n}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[Qt(8),this.noFlip?void 0:tl(),el()].filter(Boolean);let l=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(l=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const o=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:l}),{x:n,y:r,strategy:i,placement:a}=await ol(this.myDropdown.value,this.menuRef.value,o);this.menuRef.value.setAttribute("data-placement",a),Object.assign(this.menuRef.value.style,{position:i,left:`${n}px`,top:`${r}px`})}}t([ue({type:Boolean,state:!0})],_l.prototype,"noFlip",void 0),t([ue({type:Boolean,reflect:!0,state:!0})],_l.prototype,"menuAlignRight",void 0),t([ue({type:String,reflect:!0,state:!0})],_l.prototype,"drop",void 0),t([ue({type:Object})],_l.prototype,"floatingOpts",void 0),t([ue({type:Boolean,reflect:!0})],_l.prototype,"menuIsOpen",void 0),t([ue({type:Boolean,reflect:!0})],_l.prototype,"disabled",void 0),t([ue({type:Boolean,reflect:!0})],_l.prototype,"readonly",void 0),ml("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),ml("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class xl extends _l{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),l=t.find(t=>e.composedPath().includes(t));if(!l)return;const o=t.indexOf(l);this.nextDropdownItemNo=o+1,this.prevDropdownItemNo=o<=0?t.length-1:o-1,l.disabled||(this.emit("sgds-select",{detail:{item:l}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const l=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");l&&l.removeAttribute("tabindex")})}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.find(t=>e.composedPath().includes(t))&&this.handleSelectSlot(e);break}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter(e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden"))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter(e=>!e.disabled&&!e.hidden)}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const l=(e%t.length+t.length)%t.length,o=t[l];this.emit("i-sgds-option-focus",{detail:{option:o}}),this.nextDropdownItemNo=(l+1)%t.length,this.prevDropdownItemNo=(l-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===o?"0":"-1"),e===o&&t.focus()})}}xl.styles=_l.styles,t([function(e,t){return(l,o,n)=>{const r=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?l:n??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return fe(l,o,{get(){let l=e.call(this);return void 0===l&&(l=r(this),(null!==l||this.hasUpdated)&&t.call(this,l)),l}})}return fe(l,o,{get(){return r(this)}})}}("ul.dropdown-menu")],xl.prototype,"menu",void 0),t([ve()],xl.prototype,"nextDropdownItemNo",void 0),t([ve()],xl.prototype,"prevDropdownItemNo",void 0),t([ue({type:Boolean,reflect:!0})],xl.prototype,"hidden",void 0);var Zl=a`.empty-menu,.loading-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px);pointer-events:none}.loading-menu{align-items:center;display:flex;gap:var(--sgds-gap-xs)}`;class bl extends(hl(xl)){setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}constructor(){super(),this.label="",this.hintText="",this.autofocus=!1,this.disabled=!1,this.required=!1,this.loading=!1,this.value="",this.displayValue="",this.defaultValue="",this.hasFeedback=!1,this.invalidFeedback="",this.invalid=!1,this.autocomplete="on",this.menuList=[],this.selectedItems=[],this.filteredList=[],this._isTouched=!1,this._controlId=cl("input"),this._labelId=cl("label"),this.floatingOpts={middleware:[ll({apply({rects:e,elements:t}){t.floating.style.width=`${e.reference.width}px`}})]}}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",async e=>{var t;if(this._mixinShouldSkipSgdsValidation())return;const l=this.constructor.childName,o=(null===(t=e.relatedTarget)||void 0===t?void 0:t.tagName.toLowerCase())===l;this.invalid=!o&&!this._mixinReportValidity()})}reportValidity(){return this._mixinReportValidity()}setValidity(e,t,l){return this._mixinSetValidity(e,t,l)}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_renderFeedback(){return this.invalid&&this.hasFeedback?N` <div class="invalid-feedback-container">
|
|
77
77
|
<slot name="invalidIcon">
|
|
78
78
|
<sgds-icon name="exclamation-circle-fill" size="md"></sgds-icon>
|
|
79
79
|
</slot>
|
|
@@ -87,7 +87,7 @@ const ge=1,we=2,me=e=>(...t)=>({_$litDirective$:e,values:t});class _e{constructo
|
|
|
87
87
|
class=${xe({"form-label":!0,required:this.required})}
|
|
88
88
|
>${this.label}</label
|
|
89
89
|
>
|
|
90
|
-
`;return this.label&&e}_handleClick(){if(this.readonly)return null;this.menuIsOpen?this.hideMenu():this.showMenu()}async _getMenuListFromOptions(e){const t=e.map(async e=>(await e.updateComplete,e)),l=await Promise.all(t);return null==l?void 0:l.map(e=>{var t,l,o;return{label:null!==(l=null===(t=e.textContent)||void 0===t?void 0:t.trim())&&void 0!==l?l:"",value:e.getAttribute("value"),disabled:null!==(o=e.disabled)&&void 0!==o?o:void 0}})}_renderEmptyMenu(){return N` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return N`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}bl.styles=[...xl.styles,nl,il,rl,al,Zl],t([ue({reflect:!0})],bl.prototype,"label",void 0),t([ue({reflect:!0})],bl.prototype,"hintText",void 0),t([ue({reflect:!0})],bl.prototype,"name",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"placeholder",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"autofocus",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"disabled",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"required",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"loading",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"value",void 0),t([ve()],bl.prototype,"displayValue",void 0),t([((e="value")=>(t,l)=>{const o=t.constructor,n=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(t,r,i){var a;const c=o.getPropertyOptions(e);if(t===("string"==typeof c.attribute?c.attribute:e).toLowerCase()){const t=c.converter||x,o=("function"==typeof t?t:null!==(a=null==t?void 0:t.fromAttribute)&&void 0!==a?a:x.fromAttribute)(i,c.type);this[e]!==o&&(this[l]=o)}n.call(this,t,r,i)}})()],bl.prototype,"defaultValue",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"hasFeedback",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"invalidFeedback",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"invalid",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"autocomplete",void 0),t([ue({type:Array})],bl.prototype,"menuList",void 0),t([ve()],bl.prototype,"selectedItems",void 0),t([ve()],bl.prototype,"filteredList",void 0),t([pe("input.form-control")],bl.prototype,"_input",void 0);const Cl={announcement:()=>Promise.resolve().then(function(){return Rl}),archive:()=>Promise.resolve().then(function(){return Dl}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Nl}),"arrow-bar-left":()=>Promise.resolve().then(function(){return ql}),"arrow-bar-right":()=>Promise.resolve().then(function(){return Gl}),"arrow-bar-up":()=>Promise.resolve().then(function(){return Yl}),"arrow-circle-down":()=>Promise.resolve().then(function(){return Xl}),"arrow-circle-left":()=>Promise.resolve().then(function(){return eo}),"arrow-circle-right":()=>Promise.resolve().then(function(){return lo}),"arrow-circle-up":()=>Promise.resolve().then(function(){return no}),"arrow-clockwise":()=>Promise.resolve().then(function(){return io}),"arrow-down":()=>Promise.resolve().then(function(){return co}),"arrow-left":()=>Promise.resolve().then(function(){return ho}),"arrow-repeat":()=>Promise.resolve().then(function(){return vo}),"arrow-right":()=>Promise.resolve().then(function(){return po}),"arrow-square-down":()=>Promise.resolve().then(function(){return wo}),"arrow-square-left":()=>Promise.resolve().then(function(){return _o}),"arrow-square-right":()=>Promise.resolve().then(function(){return Zo}),"arrow-square-up":()=>Promise.resolve().then(function(){return Co}),"arrow-up":()=>Promise.resolve().then(function(){return yo}),"bank-fill":()=>Promise.resolve().then(function(){return Ho}),"bell-slash":()=>Promise.resolve().then(function(){return Oo}),bell:()=>Promise.resolve().then(function(){return Po}),"bi-funnel":()=>Promise.resolve().then(function(){return Bo}),"bookmark-fill":()=>Promise.resolve().then(function(){return Lo}),bookmark:()=>Promise.resolve().then(function(){return ko}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Io}),"box-seam":()=>Promise.resolve().then(function(){return To}),building:()=>Promise.resolve().then(function(){return Uo}),bus:()=>Promise.resolve().then(function(){return Fo}),calculator:()=>Promise.resolve().then(function(){return Wo}),"calendar-check":()=>Promise.resolve().then(function(){return Ko}),"calendar-heart":()=>Promise.resolve().then(function(){return Jo}),"calendar-x":()=>Promise.resolve().then(function(){return Qo}),calendar:()=>Promise.resolve().then(function(){return tn}),camera:()=>Promise.resolve().then(function(){return on}),car:()=>Promise.resolve().then(function(){return rn}),"chat-dots":()=>Promise.resolve().then(function(){return cn}),"chat-left-text":()=>Promise.resolve().then(function(){return hn}),chat:()=>Promise.resolve().then(function(){return un}),"check-circle-fill":()=>Promise.resolve().then(function(){return fn}),"check-circle":()=>Promise.resolve().then(function(){return gn}),check:()=>Promise.resolve().then(function(){return mn}),"chevron-down":()=>Promise.resolve().then(function(){return xn}),"chevron-left":()=>Promise.resolve().then(function(){return bn}),"chevron-right":()=>Promise.resolve().then(function(){return Mn}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return Vn}),"chevron-up":()=>Promise.resolve().then(function(){return An}),clock:()=>Promise.resolve().then(function(){return $n}),"cloud-check":()=>Promise.resolve().then(function(){return zn}),"cloud-download":()=>Promise.resolve().then(function(){return jn}),"cloud-upload":()=>Promise.resolve().then(function(){return Sn}),cloud:()=>Promise.resolve().then(function(){return En}),"code-square":()=>Promise.resolve().then(function(){return Rn}),"coins-hand":()=>Promise.resolve().then(function(){return Dn}),compass:()=>Promise.resolve().then(function(){return Nn}),copy:()=>Promise.resolve().then(function(){return qn}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Gn}),cross:()=>Promise.resolve().then(function(){return Yn}),"cursor-fill":()=>Promise.resolve().then(function(){return Xn}),cursor:()=>Promise.resolve().then(function(){return er}),"dash-circle":()=>Promise.resolve().then(function(){return lr}),"dash-square":()=>Promise.resolve().then(function(){return nr}),dash:()=>Promise.resolve().then(function(){return ir}),database:()=>Promise.resolve().then(function(){return cr}),dataflow:()=>Promise.resolve().then(function(){return hr}),download:()=>Promise.resolve().then(function(){return ur}),edit:()=>Promise.resolve().then(function(){return fr}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return gr}),"exclamation-circle":()=>Promise.resolve().then(function(){return mr}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return xr}),"exclamation-triangle":()=>Promise.resolve().then(function(){return br}),exclamation:()=>Promise.resolve().then(function(){return Mr}),"eye-fill":()=>Promise.resolve().then(function(){return Vr}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Ar}),"eye-slash":()=>Promise.resolve().then(function(){return $r}),eye:()=>Promise.resolve().then(function(){return zr}),"face-smile-fill":()=>Promise.resolve().then(function(){return jr}),"face-smile":()=>Promise.resolve().then(function(){return Sr}),facebook:()=>Promise.resolve().then(function(){return Er}),"file-earmark-text":()=>Promise.resolve().then(function(){return Rr}),"file-pdf":()=>Promise.resolve().then(function(){return Dr}),"file-plus":()=>Promise.resolve().then(function(){return Nr}),"file-text":()=>Promise.resolve().then(function(){return qr}),file:()=>Promise.resolve().then(function(){return Gr}),files:()=>Promise.resolve().then(function(){return Yr}),fingerprint:()=>Promise.resolve().then(function(){return Xr}),flash:()=>Promise.resolve().then(function(){return ei}),"folder-check":()=>Promise.resolve().then(function(){return li}),"folder-minus":()=>Promise.resolve().then(function(){return ni}),"folder-plus":()=>Promise.resolve().then(function(){return ii}),folder:()=>Promise.resolve().then(function(){return ci}),gear:()=>Promise.resolve().then(function(){return hi}),"geo-alt":()=>Promise.resolve().then(function(){return ui}),"geo-fill":()=>Promise.resolve().then(function(){return fi}),geo:()=>Promise.resolve().then(function(){return gi}),"globe-alt":()=>Promise.resolve().then(function(){return mi}),globe:()=>Promise.resolve().then(function(){return xi}),google:()=>Promise.resolve().then(function(){return bi}),"grid-alt":()=>Promise.resolve().then(function(){return Mi}),"grid-fill":()=>Promise.resolve().then(function(){return Vi}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return Ai}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return $i}),"hard-drive":()=>Promise.resolve().then(function(){return zi}),heart:()=>Promise.resolve().then(function(){return ji}),"house-door":()=>Promise.resolve().then(function(){return Si}),house:()=>Promise.resolve().then(function(){return Ei}),image:()=>Promise.resolve().then(function(){return Ri}),"in-box":()=>Promise.resolve().then(function(){return Di}),"info-circle-fill":()=>Promise.resolve().then(function(){return Ni}),"info-circle":()=>Promise.resolve().then(function(){return qi}),instagram:()=>Promise.resolve().then(function(){return Gi}),key:()=>Promise.resolve().then(function(){return Yi}),"laptop-gear":()=>Promise.resolve().then(function(){return Xi}),laptop:()=>Promise.resolve().then(function(){return ea}),layers:()=>Promise.resolve().then(function(){return la}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return na}),"layout-text-window":()=>Promise.resolve().then(function(){return ia}),layout:()=>Promise.resolve().then(function(){return ca}),"life-buoy":()=>Promise.resolve().then(function(){return ha}),lightbulb:()=>Promise.resolve().then(function(){return ua}),link:()=>Promise.resolve().then(function(){return fa}),linkedin:()=>Promise.resolve().then(function(){return ga}),list:()=>Promise.resolve().then(function(){return ma}),"lock-fill":()=>Promise.resolve().then(function(){return xa}),lock:()=>Promise.resolve().then(function(){return ba}),login:()=>Promise.resolve().then(function(){return Ma}),logout:()=>Promise.resolve().then(function(){return Va}),luggage:()=>Promise.resolve().then(function(){return Aa}),"mail-open":()=>Promise.resolve().then(function(){return $a}),mail:()=>Promise.resolve().then(function(){return za}),map:()=>Promise.resolve().then(function(){return ja}),meetup:()=>Promise.resolve().then(function(){return Sa}),menu:()=>Promise.resolve().then(function(){return Ea}),microphone:()=>Promise.resolve().then(function(){return Ra}),monitor:()=>Promise.resolve().then(function(){return Da}),moon:()=>Promise.resolve().then(function(){return Na}),move:()=>Promise.resolve().then(function(){return qa}),paperclip:()=>Promise.resolve().then(function(){return Ga}),passcode:()=>Promise.resolve().then(function(){return Ya}),passport:()=>Promise.resolve().then(function(){return Xa}),pause:()=>Promise.resolve().then(function(){return ec}),pencil:()=>Promise.resolve().then(function(){return lc}),"pending-circle":()=>Promise.resolve().then(function(){return nc}),"person-dash":()=>Promise.resolve().then(function(){return ic}),"person-plus":()=>Promise.resolve().then(function(){return cc}),"person-x":()=>Promise.resolve().then(function(){return hc}),person:()=>Promise.resolve().then(function(){return uc}),phone:()=>Promise.resolve().then(function(){return fc}),"pin-map-fill":()=>Promise.resolve().then(function(){return gc}),pin:()=>Promise.resolve().then(function(){return mc}),placeholder:()=>Promise.resolve().then(function(){return xc}),plane:()=>Promise.resolve().then(function(){return bc}),play:()=>Promise.resolve().then(function(){return Mc}),"plus-circle":()=>Promise.resolve().then(function(){return Vc}),"plus-square":()=>Promise.resolve().then(function(){return Ac}),plus:()=>Promise.resolve().then(function(){return $c}),printer:()=>Promise.resolve().then(function(){return zc}),"question-circle":()=>Promise.resolve().then(function(){return jc}),rocket:()=>Promise.resolve().then(function(){return Sc}),save:()=>Promise.resolve().then(function(){return Ec}),search:()=>Promise.resolve().then(function(){return Rc}),send:()=>Promise.resolve().then(function(){return Dc}),"sg-crest":()=>Promise.resolve().then(function(){return Nc}),share:()=>Promise.resolve().then(function(){return qc}),"shield-tick":()=>Promise.resolve().then(function(){return Gc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return Yc}),"sidebar-expand":()=>Promise.resolve().then(function(){return Xc}),"slash-circle":()=>Promise.resolve().then(function(){return es}),"slash-divider":()=>Promise.resolve().then(function(){return ls}),sliders:()=>Promise.resolve().then(function(){return ns}),"sort-ascending":()=>Promise.resolve().then(function(){return is}),"sort-descending":()=>Promise.resolve().then(function(){return cs}),speedometer:()=>Promise.resolve().then(function(){return hs}),"star-ai":()=>Promise.resolve().then(function(){return us}),"star-fill":()=>Promise.resolve().then(function(){return fs}),star:()=>Promise.resolve().then(function(){return gs}),stoplights:()=>Promise.resolve().then(function(){return ms}),sun:()=>Promise.resolve().then(function(){return xs}),"switch-horizontal":()=>Promise.resolve().then(function(){return bs}),"switch-vertical":()=>Promise.resolve().then(function(){return Ms}),tablet:()=>Promise.resolve().then(function(){return Vs}),telegram:()=>Promise.resolve().then(function(){return As}),telephone:()=>Promise.resolve().then(function(){return $s}),"three-dots-vertical":()=>Promise.resolve().then(function(){return zs}),"three-dots":()=>Promise.resolve().then(function(){return js}),ticket:()=>Promise.resolve().then(function(){return Ss}),"toggle-off":()=>Promise.resolve().then(function(){return Es}),"toggle-on":()=>Promise.resolve().then(function(){return Rs}),train:()=>Promise.resolve().then(function(){return Ds}),translate:()=>Promise.resolve().then(function(){return Ns}),trash:()=>Promise.resolve().then(function(){return qs}),"trend-down":()=>Promise.resolve().then(function(){return Gs}),"trend-up":()=>Promise.resolve().then(function(){return Ys}),truck:()=>Promise.resolve().then(function(){return Xs}),"twitter-x":()=>Promise.resolve().then(function(){return eh}),unlock:()=>Promise.resolve().then(function(){return lh}),upload:()=>Promise.resolve().then(function(){return nh}),"user-check":()=>Promise.resolve().then(function(){return ih}),"user-circle":()=>Promise.resolve().then(function(){return ch}),"user-pause":()=>Promise.resolve().then(function(){return hh}),"user-square":()=>Promise.resolve().then(function(){return uh}),users:()=>Promise.resolve().then(function(){return fh}),"video-recorder":()=>Promise.resolve().then(function(){return gh}),"volume-max":()=>Promise.resolve().then(function(){return mh}),"volume-x":()=>Promise.resolve().then(function(){return xh}),"window-dash":()=>Promise.resolve().then(function(){return bh}),"window-desktop":()=>Promise.resolve().then(function(){return Mh}),"window-dock":()=>Promise.resolve().then(function(){return Vh}),"window-fullscreen":()=>Promise.resolve().then(function(){return Ah}),"window-plus":()=>Promise.resolve().then(function(){return $h}),"window-sidebar":()=>Promise.resolve().then(function(){return zh}),"window-split":()=>Promise.resolve().then(function(){return jh}),"window-stack":()=>Promise.resolve().then(function(){return Sh}),"window-x":()=>Promise.resolve().then(function(){return Eh}),window:()=>Promise.resolve().then(function(){return Rh}),"xcircle-fill":()=>Promise.resolve().then(function(){return Dh}),xcircle:()=>Promise.resolve().then(function(){return Nh}),youtube:()=>Promise.resolve().then(function(){return qh}),"zoom-in":()=>Promise.resolve().then(function(){return Gh}),"zoom-out":()=>Promise.resolve().then(function(){return Yh})};var Ml=a`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;const yl=new Map;class Vl extends ul{constructor(){super(...arguments),this.size="lg"}willUpdate(e){e.has("name")&&this._loadIcon(this.name)}async _loadIcon(e){if(!e)return void(this._icon=void 0);if(yl.has(e))return void(this._icon=yl.get(e));const t=Cl[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const l=await t();yl.set(e,l.default),this._icon=l.default}catch(t){console.warn(`Failed to load icon: ${e}`),this._icon=void 0}}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("svg");t&&(this.ariaLabel?(t.removeAttribute("aria-hidden"),t.setAttribute("aria-label",this.ariaLabel)):(t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true")))}render(){var e;return null!==(e=this._icon)&&void 0!==e?e:q}}Vl.styles=[...ul.styles,Ml],t([ue({type:String,reflect:!0})],Vl.prototype,"name",void 0),t([ue({type:String,reflect:!0})],Vl.prototype,"size",void 0),t([ue({type:String})],Vl.prototype,"ariaLabel",void 0),t([ve()],Vl.prototype,"_icon",void 0);var Hl=a`:host{display:block;position:relative}input.form-control{caret-color:transparent;cursor:default}.dropdown{display:flex;height:100%}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}slot[id=default].is-loading,slot[id=default].is-loading::slotted(*){display:none}`,Al=a`:host([active]) .dropdown-item{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item{background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-form-color-default);cursor:pointer;font-size:var(--sgds-font-size-label-md);height:100%;overflow-wrap:anywhere;padding:var(--sgds-padding-sm) var(--sgds-padding-md);text-align:inherit;white-space:normal}.dropdown-item.disabled{opacity:var(--sgds-opacity-40);pointer-events:none}.dropdown-item .normal-item-content{align-items:center;display:flex;justify-content:space-between}:host([active]) .dropdown-item .normal-item-content{color:var(--sgds-form-primary-color-default)}.dropdown-item:hover{background:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{background:var(--sgds-bg-translucent-subtle);outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}`;class Ol extends ul{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`),this._updateAriaLabel()}_updateAriaLabel(){var e;const t=null===(e=this.textContent)||void 0===e?void 0:e.trim();t&&this.setAttribute("aria-label",t)}render(){const e={disabled:this.disabled,active:this.active};return N`
|
|
90
|
+
`;return this.label&&e}_handleClick(){if(this.readonly)return null;this.menuIsOpen?this.hideMenu():this.showMenu()}async _getMenuListFromOptions(e){const t=e.map(async e=>(await e.updateComplete,e)),l=await Promise.all(t);return null==l?void 0:l.map(e=>{var t,l,o;return{label:null!==(l=null===(t=e.textContent)||void 0===t?void 0:t.trim())&&void 0!==l?l:"",value:e.getAttribute("value"),disabled:null!==(o=e.disabled)&&void 0!==o?o:void 0}})}_renderEmptyMenu(){return N` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return N`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}bl.styles=[...xl.styles,nl,il,rl,al,Zl],t([ue({reflect:!0})],bl.prototype,"label",void 0),t([ue({reflect:!0})],bl.prototype,"hintText",void 0),t([ue({reflect:!0})],bl.prototype,"name",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"placeholder",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"autofocus",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"disabled",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"required",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"loading",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"value",void 0),t([ve()],bl.prototype,"displayValue",void 0),t([((e="value")=>(t,l)=>{const o=t.constructor,n=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(t,r,i){var a;const c=o.getPropertyOptions(e);if(t===("string"==typeof c.attribute?c.attribute:e).toLowerCase()){const t=c.converter||x,o=("function"==typeof t?t:null!==(a=null==t?void 0:t.fromAttribute)&&void 0!==a?a:x.fromAttribute)(i,c.type);this[e]!==o&&(this[l]=o)}n.call(this,t,r,i)}})()],bl.prototype,"defaultValue",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"hasFeedback",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"invalidFeedback",void 0),t([ue({type:Boolean,reflect:!0})],bl.prototype,"invalid",void 0),t([ue({type:String,reflect:!0})],bl.prototype,"autocomplete",void 0),t([ue({type:Array})],bl.prototype,"menuList",void 0),t([ve()],bl.prototype,"selectedItems",void 0),t([ve()],bl.prototype,"filteredList",void 0),t([pe("input.form-control")],bl.prototype,"_input",void 0);const Cl={announcement:()=>Promise.resolve().then(function(){return Il}),archive:()=>Promise.resolve().then(function(){return Dl}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Nl}),"arrow-bar-left":()=>Promise.resolve().then(function(){return ql}),"arrow-bar-right":()=>Promise.resolve().then(function(){return Gl}),"arrow-bar-up":()=>Promise.resolve().then(function(){return Yl}),"arrow-circle-down":()=>Promise.resolve().then(function(){return Xl}),"arrow-circle-left":()=>Promise.resolve().then(function(){return eo}),"arrow-circle-right":()=>Promise.resolve().then(function(){return lo}),"arrow-circle-up":()=>Promise.resolve().then(function(){return no}),"arrow-clockwise":()=>Promise.resolve().then(function(){return io}),"arrow-down":()=>Promise.resolve().then(function(){return co}),"arrow-left":()=>Promise.resolve().then(function(){return ho}),"arrow-repeat":()=>Promise.resolve().then(function(){return vo}),"arrow-right":()=>Promise.resolve().then(function(){return po}),"arrow-square-down":()=>Promise.resolve().then(function(){return wo}),"arrow-square-left":()=>Promise.resolve().then(function(){return _o}),"arrow-square-right":()=>Promise.resolve().then(function(){return Zo}),"arrow-square-up":()=>Promise.resolve().then(function(){return Co}),"arrow-up":()=>Promise.resolve().then(function(){return yo}),"bank-fill":()=>Promise.resolve().then(function(){return Ho}),"bell-slash":()=>Promise.resolve().then(function(){return Oo}),bell:()=>Promise.resolve().then(function(){return Po}),"bi-funnel":()=>Promise.resolve().then(function(){return Bo}),"bookmark-fill":()=>Promise.resolve().then(function(){return Lo}),bookmark:()=>Promise.resolve().then(function(){return ko}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Ro}),"box-seam":()=>Promise.resolve().then(function(){return To}),building:()=>Promise.resolve().then(function(){return Uo}),bus:()=>Promise.resolve().then(function(){return Fo}),calculator:()=>Promise.resolve().then(function(){return Wo}),"calendar-check":()=>Promise.resolve().then(function(){return Ko}),"calendar-heart":()=>Promise.resolve().then(function(){return Jo}),"calendar-x":()=>Promise.resolve().then(function(){return Qo}),calendar:()=>Promise.resolve().then(function(){return tn}),camera:()=>Promise.resolve().then(function(){return on}),car:()=>Promise.resolve().then(function(){return rn}),"chat-dots":()=>Promise.resolve().then(function(){return cn}),"chat-left-text":()=>Promise.resolve().then(function(){return hn}),chat:()=>Promise.resolve().then(function(){return un}),"check-circle-fill":()=>Promise.resolve().then(function(){return fn}),"check-circle":()=>Promise.resolve().then(function(){return gn}),check:()=>Promise.resolve().then(function(){return mn}),"chevron-down":()=>Promise.resolve().then(function(){return xn}),"chevron-left":()=>Promise.resolve().then(function(){return bn}),"chevron-right":()=>Promise.resolve().then(function(){return Mn}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return Vn}),"chevron-up":()=>Promise.resolve().then(function(){return An}),clock:()=>Promise.resolve().then(function(){return $n}),"cloud-check":()=>Promise.resolve().then(function(){return zn}),"cloud-download":()=>Promise.resolve().then(function(){return jn}),"cloud-upload":()=>Promise.resolve().then(function(){return Sn}),cloud:()=>Promise.resolve().then(function(){return En}),"code-square":()=>Promise.resolve().then(function(){return In}),"coins-hand":()=>Promise.resolve().then(function(){return Dn}),compass:()=>Promise.resolve().then(function(){return Nn}),copy:()=>Promise.resolve().then(function(){return qn}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Gn}),cross:()=>Promise.resolve().then(function(){return Yn}),"cursor-fill":()=>Promise.resolve().then(function(){return Xn}),cursor:()=>Promise.resolve().then(function(){return er}),"dash-circle":()=>Promise.resolve().then(function(){return lr}),"dash-square":()=>Promise.resolve().then(function(){return nr}),dash:()=>Promise.resolve().then(function(){return ir}),database:()=>Promise.resolve().then(function(){return cr}),dataflow:()=>Promise.resolve().then(function(){return hr}),download:()=>Promise.resolve().then(function(){return ur}),edit:()=>Promise.resolve().then(function(){return fr}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return gr}),"exclamation-circle":()=>Promise.resolve().then(function(){return mr}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return xr}),"exclamation-triangle":()=>Promise.resolve().then(function(){return br}),exclamation:()=>Promise.resolve().then(function(){return Mr}),"eye-fill":()=>Promise.resolve().then(function(){return Vr}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Ar}),"eye-slash":()=>Promise.resolve().then(function(){return $r}),eye:()=>Promise.resolve().then(function(){return zr}),"face-smile-fill":()=>Promise.resolve().then(function(){return jr}),"face-smile":()=>Promise.resolve().then(function(){return Sr}),facebook:()=>Promise.resolve().then(function(){return Er}),"file-earmark-text":()=>Promise.resolve().then(function(){return Ir}),"file-pdf":()=>Promise.resolve().then(function(){return Dr}),"file-plus":()=>Promise.resolve().then(function(){return Nr}),"file-text":()=>Promise.resolve().then(function(){return qr}),file:()=>Promise.resolve().then(function(){return Gr}),files:()=>Promise.resolve().then(function(){return Yr}),fingerprint:()=>Promise.resolve().then(function(){return Xr}),flash:()=>Promise.resolve().then(function(){return ei}),"folder-check":()=>Promise.resolve().then(function(){return li}),"folder-minus":()=>Promise.resolve().then(function(){return ni}),"folder-plus":()=>Promise.resolve().then(function(){return ii}),folder:()=>Promise.resolve().then(function(){return ci}),gear:()=>Promise.resolve().then(function(){return hi}),"geo-alt":()=>Promise.resolve().then(function(){return ui}),"geo-fill":()=>Promise.resolve().then(function(){return fi}),geo:()=>Promise.resolve().then(function(){return gi}),"globe-alt":()=>Promise.resolve().then(function(){return mi}),globe:()=>Promise.resolve().then(function(){return xi}),google:()=>Promise.resolve().then(function(){return bi}),"grid-alt":()=>Promise.resolve().then(function(){return Mi}),"grid-fill":()=>Promise.resolve().then(function(){return Vi}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return Ai}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return $i}),"hard-drive":()=>Promise.resolve().then(function(){return zi}),heart:()=>Promise.resolve().then(function(){return ji}),"house-door":()=>Promise.resolve().then(function(){return Si}),house:()=>Promise.resolve().then(function(){return Ei}),image:()=>Promise.resolve().then(function(){return Ii}),"in-box":()=>Promise.resolve().then(function(){return Di}),"info-circle-fill":()=>Promise.resolve().then(function(){return Ni}),"info-circle":()=>Promise.resolve().then(function(){return qi}),instagram:()=>Promise.resolve().then(function(){return Gi}),key:()=>Promise.resolve().then(function(){return Yi}),"laptop-gear":()=>Promise.resolve().then(function(){return Xi}),laptop:()=>Promise.resolve().then(function(){return ea}),layers:()=>Promise.resolve().then(function(){return la}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return na}),"layout-text-window":()=>Promise.resolve().then(function(){return ia}),layout:()=>Promise.resolve().then(function(){return ca}),"life-buoy":()=>Promise.resolve().then(function(){return ha}),lightbulb:()=>Promise.resolve().then(function(){return ua}),link:()=>Promise.resolve().then(function(){return fa}),linkedin:()=>Promise.resolve().then(function(){return ga}),list:()=>Promise.resolve().then(function(){return ma}),"lock-fill":()=>Promise.resolve().then(function(){return xa}),lock:()=>Promise.resolve().then(function(){return ba}),login:()=>Promise.resolve().then(function(){return Ma}),logout:()=>Promise.resolve().then(function(){return Va}),luggage:()=>Promise.resolve().then(function(){return Aa}),"mail-open":()=>Promise.resolve().then(function(){return $a}),mail:()=>Promise.resolve().then(function(){return za}),map:()=>Promise.resolve().then(function(){return ja}),meetup:()=>Promise.resolve().then(function(){return Sa}),menu:()=>Promise.resolve().then(function(){return Ea}),microphone:()=>Promise.resolve().then(function(){return Ia}),monitor:()=>Promise.resolve().then(function(){return Da}),moon:()=>Promise.resolve().then(function(){return Na}),move:()=>Promise.resolve().then(function(){return qa}),paperclip:()=>Promise.resolve().then(function(){return Ga}),passcode:()=>Promise.resolve().then(function(){return Ya}),passport:()=>Promise.resolve().then(function(){return Xa}),pause:()=>Promise.resolve().then(function(){return ec}),pencil:()=>Promise.resolve().then(function(){return lc}),"pending-circle":()=>Promise.resolve().then(function(){return nc}),"person-dash":()=>Promise.resolve().then(function(){return ic}),"person-plus":()=>Promise.resolve().then(function(){return cc}),"person-x":()=>Promise.resolve().then(function(){return hc}),person:()=>Promise.resolve().then(function(){return uc}),phone:()=>Promise.resolve().then(function(){return fc}),"pin-map-fill":()=>Promise.resolve().then(function(){return gc}),pin:()=>Promise.resolve().then(function(){return mc}),placeholder:()=>Promise.resolve().then(function(){return xc}),plane:()=>Promise.resolve().then(function(){return bc}),play:()=>Promise.resolve().then(function(){return Mc}),"plus-circle":()=>Promise.resolve().then(function(){return Vc}),"plus-square":()=>Promise.resolve().then(function(){return Ac}),plus:()=>Promise.resolve().then(function(){return $c}),printer:()=>Promise.resolve().then(function(){return zc}),"question-circle":()=>Promise.resolve().then(function(){return jc}),rocket:()=>Promise.resolve().then(function(){return Sc}),save:()=>Promise.resolve().then(function(){return Ec}),search:()=>Promise.resolve().then(function(){return Ic}),send:()=>Promise.resolve().then(function(){return Dc}),"sg-crest":()=>Promise.resolve().then(function(){return Nc}),share:()=>Promise.resolve().then(function(){return qc}),"shield-tick":()=>Promise.resolve().then(function(){return Gc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return Yc}),"sidebar-expand":()=>Promise.resolve().then(function(){return Xc}),"slash-circle":()=>Promise.resolve().then(function(){return es}),"slash-divider":()=>Promise.resolve().then(function(){return ls}),sliders:()=>Promise.resolve().then(function(){return ns}),"sort-ascending":()=>Promise.resolve().then(function(){return is}),"sort-descending":()=>Promise.resolve().then(function(){return cs}),speedometer:()=>Promise.resolve().then(function(){return hs}),"star-ai":()=>Promise.resolve().then(function(){return us}),"star-fill":()=>Promise.resolve().then(function(){return fs}),star:()=>Promise.resolve().then(function(){return gs}),stoplights:()=>Promise.resolve().then(function(){return ms}),sun:()=>Promise.resolve().then(function(){return xs}),"switch-horizontal":()=>Promise.resolve().then(function(){return bs}),"switch-vertical":()=>Promise.resolve().then(function(){return Ms}),tablet:()=>Promise.resolve().then(function(){return Vs}),telegram:()=>Promise.resolve().then(function(){return As}),telephone:()=>Promise.resolve().then(function(){return $s}),"three-dots-vertical":()=>Promise.resolve().then(function(){return zs}),"three-dots":()=>Promise.resolve().then(function(){return js}),ticket:()=>Promise.resolve().then(function(){return Ss}),"toggle-off":()=>Promise.resolve().then(function(){return Es}),"toggle-on":()=>Promise.resolve().then(function(){return Is}),train:()=>Promise.resolve().then(function(){return Ds}),translate:()=>Promise.resolve().then(function(){return Ns}),trash:()=>Promise.resolve().then(function(){return qs}),"trend-down":()=>Promise.resolve().then(function(){return Gs}),"trend-up":()=>Promise.resolve().then(function(){return Ys}),truck:()=>Promise.resolve().then(function(){return Xs}),"twitter-x":()=>Promise.resolve().then(function(){return eh}),unlock:()=>Promise.resolve().then(function(){return lh}),upload:()=>Promise.resolve().then(function(){return nh}),"user-check":()=>Promise.resolve().then(function(){return ih}),"user-circle":()=>Promise.resolve().then(function(){return ch}),"user-pause":()=>Promise.resolve().then(function(){return hh}),"user-square":()=>Promise.resolve().then(function(){return uh}),users:()=>Promise.resolve().then(function(){return fh}),"video-recorder":()=>Promise.resolve().then(function(){return gh}),"volume-max":()=>Promise.resolve().then(function(){return mh}),"volume-x":()=>Promise.resolve().then(function(){return xh}),"window-dash":()=>Promise.resolve().then(function(){return bh}),"window-desktop":()=>Promise.resolve().then(function(){return Mh}),"window-dock":()=>Promise.resolve().then(function(){return Vh}),"window-fullscreen":()=>Promise.resolve().then(function(){return Ah}),"window-plus":()=>Promise.resolve().then(function(){return $h}),"window-sidebar":()=>Promise.resolve().then(function(){return zh}),"window-split":()=>Promise.resolve().then(function(){return jh}),"window-stack":()=>Promise.resolve().then(function(){return Sh}),"window-x":()=>Promise.resolve().then(function(){return Eh}),window:()=>Promise.resolve().then(function(){return Ih}),"xcircle-fill":()=>Promise.resolve().then(function(){return Dh}),xcircle:()=>Promise.resolve().then(function(){return Nh}),youtube:()=>Promise.resolve().then(function(){return qh}),"zoom-in":()=>Promise.resolve().then(function(){return Gh}),"zoom-out":()=>Promise.resolve().then(function(){return Yh})};var Ml=a`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;const yl=new Map;class Vl extends ul{constructor(){super(...arguments),this.size="lg"}willUpdate(e){e.has("name")&&this._loadIcon(this.name)}async _loadIcon(e){if(!e)return void(this._icon=void 0);if(yl.has(e))return void(this._icon=yl.get(e));const t=Cl[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const l=await t();yl.set(e,l.default),this._icon=l.default}catch(t){console.warn(`Failed to load icon: ${e}`),this._icon=void 0}}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("svg");t&&(this.ariaLabel?(t.removeAttribute("aria-hidden"),t.setAttribute("aria-label",this.ariaLabel)):(t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true")))}render(){var e;return null!==(e=this._icon)&&void 0!==e?e:q}}Vl.styles=[...ul.styles,Ml],t([ue({type:String,reflect:!0})],Vl.prototype,"name",void 0),t([ue({type:String,reflect:!0})],Vl.prototype,"size",void 0),t([ue({type:String})],Vl.prototype,"ariaLabel",void 0),t([ve()],Vl.prototype,"_icon",void 0);var Hl=a`:host{display:block;position:relative}input.form-control{caret-color:transparent;cursor:default}.dropdown{display:flex;height:100%}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}slot[id=default].is-loading,slot[id=default].is-loading::slotted(*){display:none}`,Al=a`:host([active]) .dropdown-item{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item{background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-form-color-default);cursor:pointer;font-size:var(--sgds-font-size-label-md);height:100%;overflow-wrap:anywhere;padding:var(--sgds-padding-sm) var(--sgds-padding-md);text-align:inherit;white-space:normal}.dropdown-item.disabled{opacity:var(--sgds-opacity-40);pointer-events:none}.dropdown-item .normal-item-content{align-items:center;display:flex;justify-content:space-between}:host([active]) .dropdown-item .normal-item-content{color:var(--sgds-form-primary-color-default)}.dropdown-item:hover{background:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{background:var(--sgds-bg-translucent-subtle);outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}`;class Ol extends ul{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`),this._updateAriaLabel()}_updateAriaLabel(){var e;const t=null===(e=this.textContent)||void 0===e?void 0:e.trim();t&&this.setAttribute("aria-label",t)}render(){const e={disabled:this.disabled,active:this.active};return N`
|
|
91
91
|
<div class="dropdown-item ${xe(e)}" tabindex=${this.disabled?"-1":"0"}>
|
|
92
92
|
${this._renderItemContent()}
|
|
93
93
|
</div>
|
|
@@ -172,14 +172,14 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
172
172
|
${this.loading?this._renderLoadingMenu():q}
|
|
173
173
|
</div>
|
|
174
174
|
</div>
|
|
175
|
-
`}}El.styles=[...bl.styles,al,Hl],El.childName="sgds-select-option",El.dependencies={"sgds-icon":Vl,"sgds-spinner":kl,[El.childName]:$l},t([ue({type:Boolean,reflect:!0})],El.prototype,"noValidate",void 0),t([function(e){return(t,l)=>{const{slot:o,selector:n}=e??{},r="slot"+(o?`[name=${o}]`:":not([name])");return fe(t,l,{get(){const t=this.renderRoot?.querySelector(r),l=t?.assignedElements(e)??[];return void 0===n?l:l.filter(e=>e.matches(n))}})}}({flatten:!0,selector:"sgds-select-option"})],El.prototype,"options",void 0),t([function(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,o)=>{const{update:n}=t;if(e in t){const r=e;t.update=function(e){if(e.has(r)){const t=e.get(r),n=this[r];t!==n&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[o](t,n))}n.call(this,e)}}}}("value",{waitUntilFirstUpdate:!0})],El.prototype,"_handleValueChange",null),e("sgds-select",El),e("sgds-select-option",$l);var
|
|
175
|
+
`}}El.styles=[...bl.styles,al,Hl],El.childName="sgds-select-option",El.dependencies={"sgds-icon":Vl,"sgds-spinner":kl,[El.childName]:$l},t([ue({type:Boolean,reflect:!0})],El.prototype,"noValidate",void 0),t([function(e){return(t,l)=>{const{slot:o,selector:n}=e??{},r="slot"+(o?`[name=${o}]`:":not([name])");return fe(t,l,{get(){const t=this.renderRoot?.querySelector(r),l=t?.assignedElements(e)??[];return void 0===n?l:l.filter(e=>e.matches(n))}})}}({flatten:!0,selector:"sgds-select-option"})],El.prototype,"options",void 0),t([function(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,o)=>{const{update:n}=t;if(e in t){const r=e;t.update=function(e){if(e.has(r)){const t=e.get(r),n=this[r];t!==n&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[o](t,n))}n.call(this,e)}}}}("value",{waitUntilFirstUpdate:!0})],El.prototype,"_handleValueChange",null),e("sgds-select",El),e("sgds-select-option",$l);var Rl=N`
|
|
176
176
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
177
177
|
<path
|
|
178
178
|
fill="currentColor"
|
|
179
179
|
d="M9.375 15.125H6.5a5.116 5.116 0 0 1-1.643-.27l1.324 5.292c.047.188.062.247.078.294.176.52.644.885 1.19.93.05.004.11.004.305.004.243 0 .32 0 .379-.006a1.375 1.375 0 0 0 1.235-1.237c.006-.058.007-.136.007-.379v-4.628Zm12-5.125c0-1.373-.963-2.52-2.25-2.805v5.61A2.874 2.874 0 0 0 21.375 10Zm-18.75 0A3.875 3.875 0 0 0 6.5 13.875h2.875v-7.75H6.5A3.875 3.875 0 0 0 2.625 10Zm15.25-4.873c0-.534 0-.896-.021-1.159-.023-.28-.063-.324-.05-.305a.326.326 0 0 0-.258-.155c.027.004-.035-.01-.31.115-.257.115-.597.3-1.092.57-1.565.853-3.667 1.801-5.519 1.919v7.774c1.852.118 3.954 1.068 5.519 1.921.495.27.835.455 1.091.57.276.125.338.111.31.115a.326.326 0 0 0 .26-.155c-.013.019.026-.026.049-.305.02-.263.021-.625.021-1.158V5.127Zm1.25.794a4.127 4.127 0 0 1 0 8.157v.796c0 .51 0 .932-.025 1.257-.025.307-.079.654-.279.934a1.57 1.57 0 0 1-1.124.667c-.346.042-.688-.084-.976-.215-.31-.14-.7-.352-1.176-.612-1.535-.837-3.39-1.645-4.92-1.764v4.612c0 .215 0 .366-.013.5a2.625 2.625 0 0 1-2.36 2.36c-.133.013-.284.012-.498.012-.171 0-.293 0-.406-.01a2.625 2.625 0 0 1-2.273-1.773c-.036-.107-.065-.226-.106-.392l-1.575-6.298a.632.632 0 0 1-.014-.087 5.125 5.125 0 0 1 3.12-9.19h3.75c1.594 0 3.632-.873 5.295-1.78.477-.26.866-.472 1.176-.612.288-.13.63-.257.976-.215.47.058.85.283 1.124.667.2.28.254.627.279.935.025.324.025.746.025 1.257v.794Z"
|
|
180
180
|
/>
|
|
181
181
|
</svg>
|
|
182
|
-
`,
|
|
182
|
+
`,Il=Object.freeze({__proto__:null,default:Rl}),Tl=N`
|
|
183
183
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
184
184
|
<path
|
|
185
185
|
fill="currentColor"
|
|
@@ -441,7 +441,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
441
441
|
clip-rule="evenodd"
|
|
442
442
|
/>
|
|
443
443
|
</svg>
|
|
444
|
-
`,
|
|
444
|
+
`,Ro=Object.freeze({__proto__:null,default:Eo}),Io=N`
|
|
445
445
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
446
446
|
<path
|
|
447
447
|
fill="currentColor"
|
|
@@ -450,7 +450,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
450
450
|
clip-rule="evenodd"
|
|
451
451
|
/>
|
|
452
452
|
</svg>
|
|
453
|
-
`,To=Object.freeze({__proto__:null,default:
|
|
453
|
+
`,To=Object.freeze({__proto__:null,default:Io}),Do=N`
|
|
454
454
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
455
455
|
<path
|
|
456
456
|
fill="currentColor"
|
|
@@ -711,7 +711,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
711
711
|
clip-rule="evenodd"
|
|
712
712
|
/>
|
|
713
713
|
</svg>
|
|
714
|
-
`,En=Object.freeze({__proto__:null,default:kn}),
|
|
714
|
+
`,En=Object.freeze({__proto__:null,default:kn}),Rn=N`
|
|
715
715
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
716
716
|
<path
|
|
717
717
|
fill="currentColor"
|
|
@@ -724,7 +724,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
724
724
|
clip-rule="evenodd"
|
|
725
725
|
/>
|
|
726
726
|
</svg>
|
|
727
|
-
`,
|
|
727
|
+
`,In=Object.freeze({__proto__:null,default:Rn}),Tn=N`
|
|
728
728
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
729
729
|
<path
|
|
730
730
|
fill="currentColor"
|
|
@@ -1012,7 +1012,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1012
1012
|
d="M21 12.055C21 7.054 16.97 3 12.001 3 7.03 3.001 3 7.054 3 12.056c0 4.519 3.291 8.265 7.593 8.944v-6.327H8.309v-2.617h2.286V10.06c0-2.27 1.344-3.522 3.4-3.522.985 0 2.014.176 2.014.176v2.228h-1.135c-1.117 0-1.466.698-1.466 1.415v1.698h2.495l-.398 2.617h-2.098v6.327C17.71 20.319 21 16.574 21 12.055Z"
|
|
1013
1013
|
/>
|
|
1014
1014
|
</svg>
|
|
1015
|
-
`,Er=Object.freeze({__proto__:null,default:kr}),
|
|
1015
|
+
`,Er=Object.freeze({__proto__:null,default:kr}),Rr=N`
|
|
1016
1016
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1017
1017
|
<path
|
|
1018
1018
|
fill="currentColor"
|
|
@@ -1021,7 +1021,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1021
1021
|
clip-rule="evenodd"
|
|
1022
1022
|
/>
|
|
1023
1023
|
</svg>
|
|
1024
|
-
`,
|
|
1024
|
+
`,Ir=Object.freeze({__proto__:null,default:Rr}),Tr=N`
|
|
1025
1025
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1026
1026
|
<path
|
|
1027
1027
|
fill="currentColor"
|
|
@@ -1291,7 +1291,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1291
1291
|
clip-rule="evenodd"
|
|
1292
1292
|
/>
|
|
1293
1293
|
</svg>
|
|
1294
|
-
`,Ei=Object.freeze({__proto__:null,default:ki}),
|
|
1294
|
+
`,Ei=Object.freeze({__proto__:null,default:ki}),Ri=N`
|
|
1295
1295
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1296
1296
|
<path
|
|
1297
1297
|
fill="currentColor"
|
|
@@ -1300,7 +1300,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1300
1300
|
clip-rule="evenodd"
|
|
1301
1301
|
/>
|
|
1302
1302
|
</svg>
|
|
1303
|
-
`,
|
|
1303
|
+
`,Ii=Object.freeze({__proto__:null,default:Ri}),Ti=N`
|
|
1304
1304
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1305
1305
|
<path
|
|
1306
1306
|
fill="currentColor"
|
|
@@ -1551,7 +1551,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1551
1551
|
d="M2.375 6c0-.345.28-.625.625-.625h18a.625.625 0 1 1 0 1.25H3A.625.625 0 0 1 2.375 6Zm0 6c0-.345.28-.625.625-.625h18a.625.625 0 1 1 0 1.25H3A.625.625 0 0 1 2.375 12Zm0 6c0-.345.28-.625.625-.625h12a.625.625 0 1 1 0 1.25H3A.625.625 0 0 1 2.375 18Z"
|
|
1552
1552
|
/>
|
|
1553
1553
|
</svg>
|
|
1554
|
-
`,Ea=Object.freeze({__proto__:null,default:ka}),
|
|
1554
|
+
`,Ea=Object.freeze({__proto__:null,default:ka}),Ra=N`
|
|
1555
1555
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1556
1556
|
<path
|
|
1557
1557
|
fill="currentColor"
|
|
@@ -1564,7 +1564,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1564
1564
|
d="M5.35 9.475c.345 0 .625.28.625.625V12a6.025 6.025 0 0 0 12.05 0v-1.9a.625.625 0 1 1 1.25 0V12a7.276 7.276 0 0 1-6.65 7.248v1.627H15.8a.625.625 0 1 1 0 1.25H8.2a.625.625 0 1 1 0-1.25h3.175v-1.627A7.276 7.276 0 0 1 4.725 12v-1.9c0-.345.28-.625.625-.625Z"
|
|
1565
1565
|
/>
|
|
1566
1566
|
</svg>
|
|
1567
|
-
`,
|
|
1567
|
+
`,Ia=Object.freeze({__proto__:null,default:Ra}),Ta=N`
|
|
1568
1568
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1569
1569
|
<path
|
|
1570
1570
|
fill="currentColor"
|
|
@@ -1816,7 +1816,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1816
1816
|
clip-rule="evenodd"
|
|
1817
1817
|
/>
|
|
1818
1818
|
</svg>
|
|
1819
|
-
`,Ec=Object.freeze({__proto__:null,default:kc}),
|
|
1819
|
+
`,Ec=Object.freeze({__proto__:null,default:kc}),Rc=N`
|
|
1820
1820
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1821
1821
|
<path
|
|
1822
1822
|
fill="currentColor"
|
|
@@ -1825,7 +1825,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
1825
1825
|
clip-rule="evenodd"
|
|
1826
1826
|
/>
|
|
1827
1827
|
</svg>
|
|
1828
|
-
`,
|
|
1828
|
+
`,Ic=Object.freeze({__proto__:null,default:Rc}),Tc=N`
|
|
1829
1829
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1830
1830
|
<path
|
|
1831
1831
|
fill="currentColor"
|
|
@@ -2097,7 +2097,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
2097
2097
|
clip-rule="evenodd"
|
|
2098
2098
|
/>
|
|
2099
2099
|
</svg>
|
|
2100
|
-
`,Es=Object.freeze({__proto__:null,default:ks}),
|
|
2100
|
+
`,Es=Object.freeze({__proto__:null,default:ks}),Rs=N`
|
|
2101
2101
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2102
2102
|
<path
|
|
2103
2103
|
fill="currentColor"
|
|
@@ -2106,7 +2106,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
2106
2106
|
clip-rule="evenodd"
|
|
2107
2107
|
/>
|
|
2108
2108
|
</svg>
|
|
2109
|
-
`,
|
|
2109
|
+
`,Is=Object.freeze({__proto__:null,default:Rs}),Ts=N`
|
|
2110
2110
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2111
2111
|
<path
|
|
2112
2112
|
fill="currentColor"
|
|
@@ -2390,7 +2390,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
2390
2390
|
clip-rule="evenodd"
|
|
2391
2391
|
/>
|
|
2392
2392
|
</svg>
|
|
2393
|
-
`,Eh=Object.freeze({__proto__:null,default:kh}),
|
|
2393
|
+
`,Eh=Object.freeze({__proto__:null,default:kh}),Rh=N`
|
|
2394
2394
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2395
2395
|
<path
|
|
2396
2396
|
fill="currentColor"
|
|
@@ -2399,7 +2399,7 @@ const Pl=Symbol.for(""),zl=e=>{if(e?.r===Pl)return e?._$litStatic$},Bl=new Map,j
|
|
|
2399
2399
|
clip-rule="evenodd"
|
|
2400
2400
|
/>
|
|
2401
2401
|
</svg>
|
|
2402
|
-
`,
|
|
2402
|
+
`,Ih=Object.freeze({__proto__:null,default:Rh}),Th=N`
|
|
2403
2403
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2404
2404
|
<path
|
|
2405
2405
|
fill="currentColor"
|