@govtechsg/sgds-web-component 3.26.0 → 3.26.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/option-element.d.ts +1 -0
- package/base/option-element.js +8 -0
- package/base/option-element.js.map +1 -1
- package/components/Checkbox/index.umd.min.js +233 -233
- package/components/Checkbox/index.umd.min.js.map +1 -1
- package/components/Checkbox/sgds-checkbox.d.ts +1 -0
- package/components/Checkbox/sgds-checkbox.js +6 -1
- package/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/components/ComboBox/index.umd.min.js +241 -241
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/DataTable/data-table.js +6 -0
- package/components/DataTable/data-table.js.map +1 -0
- package/components/DataTable/index.d.ts +12 -0
- package/components/DataTable/index.js +11 -0
- package/components/DataTable/index.js.map +1 -0
- package/components/DataTable/index.umd.min.js +2634 -0
- package/components/DataTable/index.umd.min.js.map +1 -0
- package/components/DataTable/sgds-data-table-cell.d.ts +15 -0
- package/components/DataTable/sgds-data-table-cell.js +32 -0
- package/components/DataTable/sgds-data-table-cell.js.map +1 -0
- package/components/DataTable/sgds-data-table-head.d.ts +28 -0
- package/components/DataTable/sgds-data-table-head.js +69 -0
- package/components/DataTable/sgds-data-table-head.js.map +1 -0
- package/components/DataTable/sgds-data-table-row.d.ts +76 -0
- package/components/DataTable/sgds-data-table-row.js +333 -0
- package/components/DataTable/sgds-data-table-row.js.map +1 -0
- package/components/DataTable/sgds-data-table.d.ts +82 -0
- package/components/DataTable/sgds-data-table.js +405 -0
- package/components/DataTable/sgds-data-table.js.map +1 -0
- package/components/Datepicker/index.umd.min.js +86 -86
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Input/index.umd.min.js +2 -2
- package/components/Input/index.umd.min.js.map +1 -1
- package/components/Input/input.js +1 -1
- package/components/Modal/index.umd.min.js +1 -1
- package/components/Modal/index.umd.min.js.map +1 -1
- package/components/Modal/sgds-modal.js +1 -1
- package/components/Modal/sgds-modal.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js +2 -2
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/sgds-quantity-toggle.js +9 -11
- package/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
- package/components/Select/index.umd.min.js +29 -29
- 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 +4 -0
- package/components/index.js +4 -0
- package/components/index.js.map +1 -1
- package/components/index.umd.min.js +575 -481
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +5 -1
- package/custom-elements.json +4061 -2672
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/index.umd.min.js +404 -310
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/base/option-element.cjs.js +8 -0
- package/react/base/option-element.cjs.js.map +1 -1
- package/react/base/option-element.js +8 -0
- package/react/base/option-element.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox.cjs.js +6 -1
- package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox.js +6 -1
- package/react/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/react/components/DataTable/data-table.cjs.js +11 -0
- package/react/components/DataTable/data-table.cjs.js.map +1 -0
- package/react/components/DataTable/data-table.js +7 -0
- package/react/components/DataTable/data-table.js.map +1 -0
- package/react/components/DataTable/sgds-data-table-cell.cjs.js +38 -0
- package/react/components/DataTable/sgds-data-table-cell.cjs.js.map +1 -0
- package/react/components/DataTable/sgds-data-table-cell.js +33 -0
- package/react/components/DataTable/sgds-data-table-cell.js.map +1 -0
- package/react/components/DataTable/sgds-data-table-head.cjs.js +75 -0
- package/react/components/DataTable/sgds-data-table-head.cjs.js.map +1 -0
- package/react/components/DataTable/sgds-data-table-head.js +70 -0
- package/react/components/DataTable/sgds-data-table-head.js.map +1 -0
- package/react/components/DataTable/sgds-data-table-row.cjs.js +339 -0
- package/react/components/DataTable/sgds-data-table-row.cjs.js.map +1 -0
- package/react/components/DataTable/sgds-data-table-row.js +334 -0
- package/react/components/DataTable/sgds-data-table-row.js.map +1 -0
- package/react/components/DataTable/sgds-data-table.cjs.js +411 -0
- package/react/components/DataTable/sgds-data-table.cjs.js.map +1 -0
- package/react/components/DataTable/sgds-data-table.js +406 -0
- package/react/components/DataTable/sgds-data-table.js.map +1 -0
- package/react/components/Input/input.cjs.js +1 -1
- package/react/components/Input/input.js +1 -1
- package/react/components/Modal/sgds-modal.cjs.js +1 -1
- package/react/components/Modal/sgds-modal.cjs.js.map +1 -1
- package/react/components/Modal/sgds-modal.js +1 -1
- package/react/components/Modal/sgds-modal.js.map +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js +9 -11
- package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js.map +1 -1
- package/react/components/QuantityToggle/sgds-quantity-toggle.js +9 -11
- package/react/components/QuantityToggle/sgds-quantity-toggle.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/data-table/index.cjs.js +44 -0
- package/react/data-table/index.cjs.js.map +1 -0
- package/react/data-table/index.d.ts +4 -0
- package/react/data-table/index.js +20 -0
- package/react/data-table/index.js.map +1 -0
- package/react/data-table-cell/index.cjs.js +40 -0
- package/react/data-table-cell/index.cjs.js.map +1 -0
- package/react/data-table-cell/index.d.ts +4 -0
- package/react/data-table-cell/index.js +16 -0
- package/react/data-table-cell/index.js.map +1 -0
- package/react/data-table-head/index.cjs.js +40 -0
- package/react/data-table-head/index.cjs.js.map +1 -0
- package/react/data-table-head/index.d.ts +4 -0
- package/react/data-table-head/index.js +16 -0
- package/react/data-table-head/index.js.map +1 -0
- package/react/data-table-row/index.cjs.js +45 -0
- package/react/data-table-row/index.cjs.js.map +1 -0
- package/react/data-table-row/index.d.ts +4 -0
- package/react/data-table-row/index.js +21 -0
- package/react/data-table-row/index.js.map +1 -0
- package/react/index.cjs.js +132 -124
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +5 -1
- package/react/index.js +5 -1
- 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/types/react.d.ts +109 -16
|
@@ -10,7 +10,7 @@ const l=globalThis,o=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow
|
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const V=globalThis,H=e=>{V.emitLitDebugLogEvents&&V.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let P,O=0;V.litIssuedWarnings??=new Set,P=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",V.litIssuedWarnings.has(t)||V.litIssuedWarnings.has(e)||(console.warn(t),V.litIssuedWarnings.add(t))},queueMicrotask(()=>{P("dev-mode","Lit is in dev mode. Not recommended for production!")});const z=V.ShadyDOM?.inUse&&!0===V.ShadyDOM?.noPatch?V.ShadyDOM.wrap:e=>e,$=V.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,B=e=>e,j=(e,t,l)=>B,k=e=>{if(re!==j)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");re=e},A=()=>{re=j},L=(e,t,l)=>re(e,t,l),E="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+I,R=`<${T}>`,D=document,N=()=>D.createComment(""),U=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,W="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,Y=/>/g,J=new RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,X=/"/g,Q=/^(?:script|style|textarea|title)$/i,ee=(te=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&P("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:te,strings:e,values:t}));var te;const le=Symbol.for("lit-noChange"),oe=Symbol.for("lit-nothing"),ne=new WeakMap,ie=D.createTreeWalker(D,129);let re=j;function ae(e,t){if(!F(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==S?S.createHTML(t):t}class se{constructor({strings:e,_$litType$:t},l){let o;this.parts=[];let n=0,i=0;const r=e.length-1,a=this.parts,[s,c]=((e,t)=>{const l=e.length-1,o=[];let n,i=2===t?"<svg>":3===t?"<math>":"",r=q;for(let t=0;t<l;t++){const l=e[t];let a,s,c=-1,d=0;for(;d<l.length&&(r.lastIndex=d,s=r.exec(l),null!==s);)if(d=r.lastIndex,r===q){if("!--"===s[1])r=K;else if(void 0!==s[1])r=Y;else if(void 0!==s[2])Q.test(s[2])&&(n=new RegExp(`</${s[2]}`,"g")),r=J;else if(void 0!==s[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else r===J?">"===s[0]?(r=n??q,c=-1):void 0===s[1]?c=-2:(c=r.lastIndex-s[2].length,a=s[1],r=void 0===s[3]?J:'"'===s[3]?X:G):r===X||r===G?r=J:r===K||r===Y?r=q:(r=J,n=void 0);console.assert(-1===c||r===J||r===G||r===X,"unexpected parse state B");const h=r===J&&e[t+1].startsWith("/>")?" ":"";i+=r===q?l+R:c>=0?(o.push(a),l.slice(0,c)+E+l.slice(c)+I+h):l+I+(-2===c?t:h)}return[ae(e,i+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]})(e,t);if(this.el=se.createElement(s,l),ie.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=ie.nextNode())&&a.length<r;){if(1===o.nodeType){{const e=o.localName;if(/^(?:textarea|template)$/i.test(e)&&o.innerHTML.includes(I)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);P("",t)}}if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(E)){const t=c[i++],l=o.getAttribute(e).split(I),r=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:r[2],strings:l,ctor:"."===r[1]?ve:"?"===r[1]?fe:"@"===r[1]?pe:ue}),o.removeAttribute(e)}else e.startsWith(I)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(Q.test(o.tagName)){const e=o.textContent.split(I),t=e.length-1;if(t>0){o.textContent=$?$.emptyScript:"";for(let l=0;l<t;l++)o.append(e[l],N()),ie.nextNode(),a.push({type:2,index:++n});o.append(e[t],N())}}}else if(8===o.nodeType){if(o.data===T)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(I,e+1));)a.push({type:7,index:n}),e+=I.length-1}}n++}if(c.length!==i)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");H&&H({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=D.createElement("template");return l.innerHTML=e,l}}function ce(e,t,l=e,o){if(t===le)return t;let n=void 0!==o?l.__directives?.[o]:l.__directive;const i=U(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$notifyDirectiveConnectionChanged?.(!1),void 0===i?n=void 0:(n=new i(e),n._$initialize(e,l,o)),void 0!==o?(l.__directives??=[])[o]=n:l.__directive=n),void 0!==n&&(t=ce(e,n._$resolve(e,t.values),n,o)),t}class de{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,o=(e?.creationScope??D).importNode(t,!0);ie.currentNode=o;let n=ie.nextNode(),i=0,r=0,a=l[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new he(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ge(n,this,e)),this._$parts.push(t),a=l[++r]}i!==a?.index&&(n=ie.nextNode(),i++)}return ie.currentNode=D,o}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&(H&&H({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class he{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,o){this.type=2,this._$committedValue=oe,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=o,this.__isConnected=o?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=z(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ce(this,e,t),U(e))e===oe||null==e||""===e?(this._$committedValue!==oe&&(H&&H({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=oe):e!==this._$committedValue&&e!==le&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>F(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return z(z(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),re!==j){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}H&&H({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==oe&&U(this._$committedValue)){const t=z(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=L(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=D.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=L(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,o="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=se.createElement(ae(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===o)H&&H({kind:"template updating",template:o,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new de(o,this),l=e._clone(this.options);H&&H({kind:"template instantiated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),H&&H({kind:"template instantiated and updated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ne.get(e.strings);return void 0===t&&ne.set(e.strings,t=new se(e)),t}_commitIterable(e){F(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,o=0;for(const n of e)o===t.length?t.push(l=new he(this._insert(N()),this._insert(N()),this,this.options)):l=t[o],l._$setValue(n),o++;o<t.length&&(this._$clear(l&&z(l._$endNode).nextSibling,o),t.length=o)}_$clear(e=z(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=z(e).nextSibling;z(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class ue{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,o,n){this.type=1,this._$committedValue=oe,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=o,this.options=n,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=oe,this._sanitizer=void 0}_$setValue(e,t=this,l,o){const n=this.strings;let i=!1;if(void 0===n)e=ce(this,e,t,0),i=!U(e)||e!==this._$committedValue&&e!==le,i&&(this._$committedValue=e);else{const o=e;let r,a;for(e=n[0],r=0;r<n.length-1;r++)a=ce(this,o[l+r],t,r),a===le&&(a=this._$committedValue[r]),i||=!U(a)||a!==this._$committedValue[r],a===oe?e=oe:e!==oe&&(e+=(a??"")+n[r+1]),this._$committedValue[r]=a}i&&!o&&this._commitValue(e)}_commitValue(e){e===oe?z(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"attribute")),e=this._sanitizer(e??""),H&&H({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),z(this.element).setAttribute(this.name,e??""))}}class ve extends ue{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"property")),e=this._sanitizer(e),H&&H({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===oe?void 0:e}}class fe extends ue{constructor(){super(...arguments),this.type=4}_commitValue(e){H&&H({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===oe),options:this.options}),z(this.element).toggleAttribute(this.name,!!e&&e!==oe)}}class pe extends ue{constructor(e,t,l,o,n){if(super(e,t,l,o,n),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=ce(this,e,t,0)??oe)===le)return;const l=this._$committedValue,o=e===oe&&l!==oe||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,n=e!==oe&&(l===oe||o);H&&H({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:o,addListener:n,oldListener:l}),o&&this.element.removeEventListener(this.name,this,l),n&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class ge{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){H&&H({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ce(this,e)}}const me=V.litHtmlPolyfillSupportDevMode;me?.(se,he),(V.litHtmlVersions??=[]).push("3.3.2"),V.litHtmlVersions.length>1&&queueMicrotask(()=>{P("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const we=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const o=O++,n=l?.renderBefore??t;let i=n._$litPart$;if(H&&H({kind:"begin render",id:o,value:e,container:t,options:l,part:i}),void 0===i){const e=l?.renderBefore??null;n._$litPart$=i=new he(t.insertBefore(N(),e),e,void 0,l??{})}return i._$setValue(e),H&&H({kind:"end render",id:o,value:e,container:t,options:l,part:i}),i};we.setSanitizer=k,we.createSanitizer=L,we._testOnlyClearSanitizerFactoryDoNotCallOrElse=A;
|
|
13
|
+
const V=globalThis,H=e=>{V.emitLitDebugLogEvents&&V.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let P,O=0;V.litIssuedWarnings??=new Set,P=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",V.litIssuedWarnings.has(t)||V.litIssuedWarnings.has(e)||(console.warn(t),V.litIssuedWarnings.add(t))},queueMicrotask(()=>{P("dev-mode","Lit is in dev mode. Not recommended for production!")});const z=V.ShadyDOM?.inUse&&!0===V.ShadyDOM?.noPatch?V.ShadyDOM.wrap:e=>e,$=V.trustedTypes,S=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,B=e=>e,j=(e,t,l)=>B,A=e=>{if(re!==j)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");re=e},k=()=>{re=j},L=(e,t,l)=>re(e,t,l),E="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+I,R=`<${T}>`,D=document,N=()=>D.createComment(""),U=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,W="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,Y=/>/g,J=new RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,X=/"/g,Q=/^(?:script|style|textarea|title)$/i,ee=(te=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&P("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:te,strings:e,values:t}));var te;const le=Symbol.for("lit-noChange"),oe=Symbol.for("lit-nothing"),ne=new WeakMap,ie=D.createTreeWalker(D,129);let re=j;function ae(e,t){if(!F(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==S?S.createHTML(t):t}class se{constructor({strings:e,_$litType$:t},l){let o;this.parts=[];let n=0,i=0;const r=e.length-1,a=this.parts,[s,c]=((e,t)=>{const l=e.length-1,o=[];let n,i=2===t?"<svg>":3===t?"<math>":"",r=q;for(let t=0;t<l;t++){const l=e[t];let a,s,c=-1,d=0;for(;d<l.length&&(r.lastIndex=d,s=r.exec(l),null!==s);)if(d=r.lastIndex,r===q){if("!--"===s[1])r=K;else if(void 0!==s[1])r=Y;else if(void 0!==s[2])Q.test(s[2])&&(n=new RegExp(`</${s[2]}`,"g")),r=J;else if(void 0!==s[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else r===J?">"===s[0]?(r=n??q,c=-1):void 0===s[1]?c=-2:(c=r.lastIndex-s[2].length,a=s[1],r=void 0===s[3]?J:'"'===s[3]?X:G):r===X||r===G?r=J:r===K||r===Y?r=q:(r=J,n=void 0);console.assert(-1===c||r===J||r===G||r===X,"unexpected parse state B");const h=r===J&&e[t+1].startsWith("/>")?" ":"";i+=r===q?l+R:c>=0?(o.push(a),l.slice(0,c)+E+l.slice(c)+I+h):l+I+(-2===c?t:h)}return[ae(e,i+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]})(e,t);if(this.el=se.createElement(s,l),ie.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=ie.nextNode())&&a.length<r;){if(1===o.nodeType){{const e=o.localName;if(/^(?:textarea|template)$/i.test(e)&&o.innerHTML.includes(I)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);P("",t)}}if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(E)){const t=c[i++],l=o.getAttribute(e).split(I),r=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:r[2],strings:l,ctor:"."===r[1]?ve:"?"===r[1]?fe:"@"===r[1]?pe:ue}),o.removeAttribute(e)}else e.startsWith(I)&&(a.push({type:6,index:n}),o.removeAttribute(e));if(Q.test(o.tagName)){const e=o.textContent.split(I),t=e.length-1;if(t>0){o.textContent=$?$.emptyScript:"";for(let l=0;l<t;l++)o.append(e[l],N()),ie.nextNode(),a.push({type:2,index:++n});o.append(e[t],N())}}}else if(8===o.nodeType){if(o.data===T)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(I,e+1));)a.push({type:7,index:n}),e+=I.length-1}}n++}if(c.length!==i)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");H&&H({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=D.createElement("template");return l.innerHTML=e,l}}function ce(e,t,l=e,o){if(t===le)return t;let n=void 0!==o?l.__directives?.[o]:l.__directive;const i=U(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$notifyDirectiveConnectionChanged?.(!1),void 0===i?n=void 0:(n=new i(e),n._$initialize(e,l,o)),void 0!==o?(l.__directives??=[])[o]=n:l.__directive=n),void 0!==n&&(t=ce(e,n._$resolve(e,t.values),n,o)),t}class de{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,o=(e?.creationScope??D).importNode(t,!0);ie.currentNode=o;let n=ie.nextNode(),i=0,r=0,a=l[0];for(;void 0!==a;){if(i===a.index){let t;2===a.type?t=new he(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ge(n,this,e)),this._$parts.push(t),a=l[++r]}i!==a?.index&&(n=ie.nextNode(),i++)}return ie.currentNode=D,o}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&(H&&H({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class he{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,o){this.type=2,this._$committedValue=oe,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=o,this.__isConnected=o?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=z(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ce(this,e,t),U(e))e===oe||null==e||""===e?(this._$committedValue!==oe&&(H&&H({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=oe):e!==this._$committedValue&&e!==le&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>F(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return z(z(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),re!==j){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}H&&H({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==oe&&U(this._$committedValue)){const t=z(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=L(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=D.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=L(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,o="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=se.createElement(ae(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===o)H&&H({kind:"template updating",template:o,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new de(o,this),l=e._clone(this.options);H&&H({kind:"template instantiated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),H&&H({kind:"template instantiated and updated",template:o,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ne.get(e.strings);return void 0===t&&ne.set(e.strings,t=new se(e)),t}_commitIterable(e){F(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,o=0;for(const n of e)o===t.length?t.push(l=new he(this._insert(N()),this._insert(N()),this,this.options)):l=t[o],l._$setValue(n),o++;o<t.length&&(this._$clear(l&&z(l._$endNode).nextSibling,o),t.length=o)}_$clear(e=z(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=z(e).nextSibling;z(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class ue{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,o,n){this.type=1,this._$committedValue=oe,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=o,this.options=n,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=oe,this._sanitizer=void 0}_$setValue(e,t=this,l,o){const n=this.strings;let i=!1;if(void 0===n)e=ce(this,e,t,0),i=!U(e)||e!==this._$committedValue&&e!==le,i&&(this._$committedValue=e);else{const o=e;let r,a;for(e=n[0],r=0;r<n.length-1;r++)a=ce(this,o[l+r],t,r),a===le&&(a=this._$committedValue[r]),i||=!U(a)||a!==this._$committedValue[r],a===oe?e=oe:e!==oe&&(e+=(a??"")+n[r+1]),this._$committedValue[r]=a}i&&!o&&this._commitValue(e)}_commitValue(e){e===oe?z(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"attribute")),e=this._sanitizer(e??""),H&&H({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),z(this.element).setAttribute(this.name,e??""))}}class ve extends ue{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"property")),e=this._sanitizer(e),H&&H({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===oe?void 0:e}}class fe extends ue{constructor(){super(...arguments),this.type=4}_commitValue(e){H&&H({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===oe),options:this.options}),z(this.element).toggleAttribute(this.name,!!e&&e!==oe)}}class pe extends ue{constructor(e,t,l,o,n){if(super(e,t,l,o,n),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=ce(this,e,t,0)??oe)===le)return;const l=this._$committedValue,o=e===oe&&l!==oe||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,n=e!==oe&&(l===oe||o);H&&H({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:o,addListener:n,oldListener:l}),o&&this.element.removeEventListener(this.name,this,l),n&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class ge{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){H&&H({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ce(this,e)}}const me=V.litHtmlPolyfillSupportDevMode;me?.(se,he),(V.litHtmlVersions??=[]).push("3.3.2"),V.litHtmlVersions.length>1&&queueMicrotask(()=>{P("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const we=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const o=O++,n=l?.renderBefore??t;let i=n._$litPart$;if(H&&H({kind:"begin render",id:o,value:e,container:t,options:l,part:i}),void 0===i){const e=l?.renderBefore??null;n._$litPart$=i=new he(t.insertBefore(N(),e),e,void 0,l??{})}return i._$setValue(e),H&&H({kind:"end render",id:o,value:e,container:t,options:l,part:i}),i};we.setSanitizer=A,we.createSanitizer=L,we._testOnlyClearSanitizerFactoryDoNotCallOrElse=k;
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
@@ -54,12 +54,12 @@ function $e(e){return(t,l)=>Oe(t,l,{async get(){return await this.updateComplete
|
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
56
|
*/
|
|
57
|
-
const Se=1,Be=2,je=e=>(...t)=>({_$litDirective$:e,values:t});class
|
|
57
|
+
const Se=1,Be=2,je=e=>(...t)=>({_$litDirective$:e,values:t});class Ae{constructor(e){}get _$isConnected(){return this._$parent._$isConnected}_$initialize(e,t,l){this.__part=e,this._$parent=t,this.__attributeIndex=l}_$resolve(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2018 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/const
|
|
62
|
+
*/const ke=je(class extends Ae{constructor(e){if(super(e),e.type!==Se||"class"!==e.name||e.strings?.length>2)throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this._previousClasses){this._previousClasses=new Set,void 0!==e.strings&&(this._staticClasses=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!this._staticClasses?.has(e)&&this._previousClasses.add(e);return this.render(t)}const l=e.element.classList;for(const e of this._previousClasses)e in t||(l.remove(e),this._previousClasses.delete(e));for(const e in t){const o=!!t[e];o===this._previousClasses.has(e)||this._staticClasses?.has(e)||(o?(l.add(e),this._previousClasses.add(e)):(l.remove(e),this._previousClasses.delete(e)))}return le}}),Le=e=>e??oe;
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright 2018 Google LLC
|
|
@@ -75,12 +75,12 @@ window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch&&window.ShadyDOM.wrap;cons
|
|
|
75
75
|
* @license
|
|
76
76
|
* Copyright 2017 Google LLC
|
|
77
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
|
-
*/function Re(e){void 0!==this._$disconnectableChildren?(Ie(this),this._$parent=e,Te(this)):this._$parent=e}function De(e,t=!1,l=0){const o=this._$committedValue,n=this._$disconnectableChildren;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(o))for(let e=l;e<o.length;e++)Ee(o[e],!1),Ie(o[e]);else null!=o&&(Ee(o,!1),Ie(o));else Ee(this,e)}const Ne=e=>{e.type==Be&&(e._$notifyConnectionChanged??=De,e._$reparentDisconnectables??=Re)};class Ue extends
|
|
78
|
+
*/function Re(e){void 0!==this._$disconnectableChildren?(Ie(this),this._$parent=e,Te(this)):this._$parent=e}function De(e,t=!1,l=0){const o=this._$committedValue,n=this._$disconnectableChildren;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(o))for(let e=l;e<o.length;e++)Ee(o[e],!1),Ie(o[e]);else null!=o&&(Ee(o,!1),Ie(o));else Ee(this,e)}const Ne=e=>{e.type==Be&&(e._$notifyConnectionChanged??=De,e._$reparentDisconnectables??=Re)};class Ue extends Ae{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,l){super._$initialize(e,t,l),Te(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Ee(this,e),Ie(this))}setValue(e){if(void 0===this.__part.strings)this.__part._$setValue(e,this);else{if(void 0===this.__attributeIndex)throw new Error("Expected this.__attributeIndex to be a number");const t=[...this.__part._$committedValue];t[this.__attributeIndex]=e,this.__part._$setValue(t,this,0)}}disconnected(){}reconnected(){}}
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2020 Google LLC
|
|
82
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
|
-
*/const Fe=()=>new We;class We{}const qe=new WeakMap;const Ke=je(class extends Ue{render(e){return oe}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),oe}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=qe.get(t);void 0===l&&(l=new WeakMap,qe.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?qe.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),Ye=Math.min,Je=Math.max,Ge=Math.round,Xe=Math.floor,Qe=e=>({x:e,y:e}),et={left:"right",right:"left",bottom:"top",top:"bottom"},tt={start:"end",end:"start"};function lt(e,t,l){return Je(e,Ye(t,l))}function ot(e,t){return"function"==typeof e?e(t):e}function nt(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function rt(e){return"x"===e?"y":"x"}function at(e){return"y"===e?"height":"width"}const st=new Set(["top","bottom"]);function ct(e){return st.has(nt(e))?"y":"x"}function dt(e){return rt(ct(e))}function ht(e,t,l){void 0===l&&(l=!1);const o=it(e),n=dt(e),i=at(n);let r="x"===n?o===(l?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=wt(r)),[r,wt(r)]}function ut(e){return e.replace(/start|end/g,e=>tt[e])}const vt=["left","right"],ft=["right","left"],pt=["top","bottom"],gt=["bottom","top"];function mt(e,t,l,o){const n=it(e);let i=function(e,t,l){switch(e){case"top":case"bottom":return l?t?ft:vt:t?vt:ft;case"left":case"right":return t?pt:gt;default:return[]}}(nt(e),"start"===l,o);return n&&(i=i.map(e=>e+"-"+n),t&&(i=i.concat(i.map(ut)))),i}function wt(e){return e.replace(/left|right|bottom|top/g,e=>et[e])}function _t(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 bt(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 xt(e,t,l){let{reference:o,floating:n}=e;const i=ct(t),r=dt(t),a=at(r),s=nt(t),c="y"===i,d=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,u=o[a]/2-n[a]/2;let v;switch(s){case"top":v={x:d,y:o.y-n.height};break;case"bottom":v={x:d,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-n.width,y:h};break;default:v={x:o.x,y:o.y}}switch(it(t)){case"start":v[r]-=u*(l&&c?-1:1);break;case"end":v[r]+=u*(l&&c?-1:1)}return v}async function Zt(e,t){var l;void 0===t&&(t={});const{x:o,y:n,platform:i,rects:r,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:v=0}=ot(t,e),f=_t(v),p=a[u?"floating"===h?"reference":"floating":h],g=bt(await i.getClippingRect({element:null==(l=await(null==i.isElement?void 0:i.isElement(p)))||l?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===h?{x:o,y:n,width:r.floating.width,height:r.floating.height}:r.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),_=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:s}):m);return{top:(g.top-b.top+f.top)/_.y,bottom:(b.bottom-g.bottom+f.bottom)/_.y,left:(g.left-b.left+f.left)/_.x,right:(b.right-g.right+f.right)/_.x}}const Ct=new Set(["left","top"]);function yt(){return"undefined"!=typeof window}function Mt(e){return Pt(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ht(e){var t;return null==(t=(Pt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pt(e){return!!yt()&&(e instanceof Node||e instanceof Vt(e).Node)}function Ot(e){return!!yt()&&(e instanceof Element||e instanceof Vt(e).Element)}function zt(e){return!!yt()&&(e instanceof HTMLElement||e instanceof Vt(e).HTMLElement)}function $t(e){return!(!yt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot)}const St=new Set(["inline","contents"]);function Bt(e){const{overflow:t,overflowX:l,overflowY:o,display:n}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+l)&&!St.has(n)}const jt=new Set(["table","td","th"]);function kt(e){return jt.has(Mt(e))}const At=[":popover-open",":modal"];function Lt(e){return At.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Et=["transform","translate","scale","rotate","perspective"],It=["transform","translate","scale","rotate","perspective","filter"],Tt=["paint","layout","strict","content"];function Rt(e){const t=Dt(),l=Ot(e)?Ft(e):e;return Et.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||It.some(e=>(l.willChange||"").includes(e))||Tt.some(e=>(l.contain||"").includes(e))}function Dt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Nt=new Set(["html","body","#document"]);function Ut(e){return Nt.has(Mt(e))}function Ft(e){return Vt(e).getComputedStyle(e)}function Wt(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qt(e){if("html"===Mt(e))return e;const t=e.assignedSlot||e.parentNode||$t(e)&&e.host||Ht(e);return $t(t)?t.host:t}function Kt(e){const t=qt(e);return Ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&Bt(t)?t:Kt(t)}function Yt(e,t,l){var o;void 0===t&&(t=[]),void 0===l&&(l=!0);const n=Kt(e),i=n===(null==(o=e.ownerDocument)?void 0:o.body),r=Vt(n);if(i){const e=Jt(r);return t.concat(r,r.visualViewport||[],Bt(n)?n:[],e&&l?Yt(e):[])}return t.concat(n,Yt(n,[],l))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gt(e){const t=Ft(e);let l=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=zt(e),i=n?e.offsetWidth:l,r=n?e.offsetHeight:o,a=Ge(l)!==i||Ge(o)!==r;return a&&(l=i,o=r),{width:l,height:o,$:a}}function Xt(e){return Ot(e)?e:e.contextElement}function Qt(e){const t=Xt(e);if(!zt(t))return Qe(1);const l=t.getBoundingClientRect(),{width:o,height:n,$:i}=Gt(t);let r=(i?Ge(l.width):l.width)/o,a=(i?Ge(l.height):l.height)/n;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}const el=Qe(0);function tl(e){const t=Vt(e);return Dt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ll(e,t,l,o){void 0===t&&(t=!1),void 0===l&&(l=!1);const n=e.getBoundingClientRect(),i=Xt(e);let r=Qe(1);t&&(o?Ot(o)&&(r=Qt(o)):r=Qt(e));const a=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==Vt(e))&&t}(i,l,o)?tl(i):Qe(0);let s=(n.left+a.x)/r.x,c=(n.top+a.y)/r.y,d=n.width/r.x,h=n.height/r.y;if(i){const e=Vt(i),t=o&&Ot(o)?Vt(o):o;let l=e,n=Jt(l);for(;n&&o&&t!==l;){const e=Qt(n),t=n.getBoundingClientRect(),o=Ft(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,r=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=i,c+=r,l=Vt(n),n=Jt(l)}}return bt({width:d,height:h,x:s,y:c})}function ol(e,t){const l=Wt(e).scrollLeft;return t?t.left+l:ll(Ht(e)).left+l}function nl(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-ol(e,l),y:l.top+t.scrollTop}}const il=new Set(["absolute","fixed"]);function rl(e,t,l){let o;if("viewport"===t)o=function(e,t){const l=Vt(e),o=Ht(e),n=l.visualViewport;let i=o.clientWidth,r=o.clientHeight,a=0,s=0;if(n){i=n.width,r=n.height;const e=Dt();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,s=n.offsetTop)}const c=ol(o);if(c<=0){const e=o.ownerDocument,t=e.body,l=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,r=Math.abs(o.clientWidth-t.clientWidth-n);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:a,y:s}}(e,l);else if("document"===t)o=function(e){const t=Ht(e),l=Wt(e),o=e.ownerDocument.body,n=Je(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Je(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-l.scrollLeft+ol(e);const a=-l.scrollTop;return"rtl"===Ft(o).direction&&(r+=Je(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:r,y:a}}(Ht(e));else if(Ot(t))o=function(e,t){const l=ll(e,!0,"fixed"===t),o=l.top+e.clientTop,n=l.left+e.clientLeft,i=zt(e)?Qt(e):Qe(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:n*i.x,y:o*i.y}}(t,l);else{const l=tl(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return bt(o)}function al(e,t){const l=qt(e);return!(l===t||!Ot(l)||Ut(l))&&("fixed"===Ft(l).position||al(l,t))}function sl(e,t,l){const o=zt(t),n=Ht(t),i="fixed"===l,r=ll(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Qe(0);function c(){s.x=ol(n)}if(o||!o&&!i)if(("body"!==Mt(t)||Bt(n))&&(a=Wt(t)),o){const e=ll(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&c();i&&!o&&n&&c();const d=!n||o||i?Qe(0):nl(n,a);return{x:r.left+a.scrollLeft-s.x-d.x,y:r.top+a.scrollTop-s.y-d.y,width:r.width,height:r.height}}function cl(e){return"static"===Ft(e).position}function dl(e,t){if(!zt(e)||"fixed"===Ft(e).position)return null;if(t)return t(e);let l=e.offsetParent;return Ht(e)===l&&(l=l.ownerDocument.body),l}function hl(e,t){const l=Vt(e);if(Lt(e))return l;if(!zt(e)){let t=qt(e);for(;t&&!Ut(t);){if(Ot(t)&&!cl(t))return t;t=qt(t)}return l}let o=dl(e,t);for(;o&&kt(o)&&cl(o);)o=dl(o,t);return o&&Ut(o)&&cl(o)&&!Rt(o)?l:o||function(e){let t=qt(e);for(;zt(t)&&!Ut(t);){if(Rt(t))return t;if(Lt(t))return null;t=qt(t)}return null}(e)||l}const ul={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:o,strategy:n}=e;const i="fixed"===n,r=Ht(o),a=!!t&&Lt(t.floating);if(o===r||a&&i)return l;let s={scrollLeft:0,scrollTop:0},c=Qe(1);const d=Qe(0),h=zt(o);if((h||!h&&!i)&&(("body"!==Mt(o)||Bt(r))&&(s=Wt(o)),zt(o))){const e=ll(o);c=Qt(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const u=!r||h||i?Qe(0):nl(r,s);return{width:l.width*c.x,height:l.height*c.y,x:l.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:l.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:Ht,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:o,strategy:n}=e;const i=[..."clippingAncestors"===l?Lt(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let o=Yt(e,[],!1).filter(e=>Ot(e)&&"body"!==Mt(e)),n=null;const i="fixed"===Ft(e).position;let r=i?qt(e):e;for(;Ot(r)&&!Ut(r);){const t=Ft(r),l=Rt(r);l||"fixed"!==t.position||(n=null),(i?!l&&!n:!l&&"static"===t.position&&n&&il.has(n.position)||Bt(r)&&!l&&al(e,r))?o=o.filter(e=>e!==r):n=t,r=qt(r)}return t.set(e,o),o}(t,this._c):[].concat(l),o],r=i[0],a=i.reduce((e,l)=>{const o=rl(t,l,n);return e.top=Je(o.top,e.top),e.right=Ye(o.right,e.right),e.bottom=Ye(o.bottom,e.bottom),e.left=Je(o.left,e.left),e},rl(t,r,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:hl,getElementRects:async function(e){const t=this.getOffsetParent||hl,l=this.getDimensions,o=await l(e.floating);return{reference:sl(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}=Gt(e);return{width:t,height:l}},getScale:Qt,isElement:Ot,isRTL:function(e){return"rtl"===Ft(e).direction}};function vl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fl(e,t,l,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=Xt(e),d=n||i?[...c?Yt(c):[],...Yt(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",l,{passive:!0}),i&&e.addEventListener("resize",l)});const h=c&&a?function(e,t){let l,o=null;const n=Ht(e);function i(){var e;clearTimeout(l),null==(e=o)||e.disconnect(),o=null}return function r(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:d,top:h,width:u,height:v}=c;if(a||t(),!u||!v)return;const f={rootMargin:-Xe(h)+"px "+-Xe(n.clientWidth-(d+u))+"px "+-Xe(n.clientHeight-(h+v))+"px "+-Xe(d)+"px",threshold:Je(0,Ye(1,s))||1};let p=!0;function g(t){const o=t[0].intersectionRatio;if(o!==s){if(!p)return r();o?r(!1,o):l=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==o||vl(c,e.getBoundingClientRect())||r(),p=!1}try{o=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),i}(c,l):null;let u,v=-1,f=null;r&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),l()}),c&&!s&&f.observe(c),f.observe(t));let p=s?ll(e):null;return s&&function t(){const o=ll(e);p&&!vl(p,o)&&l();p=o,u=requestAnimationFrame(t)}(),l(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",l),i&&e.removeEventListener("resize",l)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(u)}}const pl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,o;const{x:n,y:i,placement:r,middlewareData:a}=t,s=await async function(e,t){const{placement:l,platform:o,elements:n}=e,i=await(null==o.isRTL?void 0:o.isRTL(n.floating)),r=nt(l),a=it(l),s="y"===ct(l),c=Ct.has(r)?-1:1,d=i&&s?-1:1,h=ot(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof f&&(v="end"===a?-1*f:f),s?{x:v*d,y:u*c}:{x:u*c,y:v*d}}(t,e);return r===(null==(l=a.offset)?void 0:l.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:n+s.x,y:i+s.y,data:{...s,placement:r}}}}},gl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:o,placement:n}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:a={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...s}=ot(e,t),c={x:l,y:o},d=await Zt(t,s),h=ct(nt(n)),u=rt(h);let v=c[u],f=c[h];if(i){const e="y"===u?"bottom":"right";v=lt(v+d["y"===u?"top":"left"],v,v-d[e])}if(r){const e="y"===h?"bottom":"right";f=lt(f+d["y"===h?"top":"left"],f,f-d[e])}const p=a.fn({...t,[u]:v,[h]:f});return{...p,data:{x:p.x-l,y:p.y-o,enabled:{[u]:i,[h]:r}}}}}},ml=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,o;const{placement:n,middlewareData:i,rects:r,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=ot(e,t);if(null!=(l=i.arrow)&&l.alignmentOffset)return{};const m=nt(n),w=ct(a),_=nt(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=u||(_||!p?[wt(a)]:function(e){const t=wt(e);return[ut(e),t,ut(t)]}(a)),Z="none"!==f;!u&&Z&&x.push(...mt(a,p,f,b));const C=[a,...x],y=await Zt(t,g),M=[];let V=(null==(o=i.flip)?void 0:o.overflows)||[];if(d&&M.push(y[m]),h){const e=ht(n,r,b);M.push(y[e[0]],y[e[1]])}if(V=[...V,{placement:n,overflows:M}],!M.every(e=>e<=0)){var H,P;const e=((null==(H=i.flip)?void 0:H.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&w!==ct(t))||V.every(e=>ct(e.placement)!==w||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==(P=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!l)switch(v){case"bestFit":{var O;const e=null==(O=V.filter(e=>{if(Z){const t=ct(e.placement);return t===w||"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{}}}},wl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var l,o;const{placement:n,rects:i,platform:r,elements:a}=t,{apply:s=()=>{},...c}=ot(e,t),d=await Zt(t,c),h=nt(n),u=it(n),v="y"===ct(n),{width:f,height:p}=i.floating;let g,m;"top"===h||"bottom"===h?(g=h,m=u===(await(null==r.isRTL?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(m=h,g="end"===u?"top":"bottom");const w=p-d.top-d.bottom,_=f-d.left-d.right,b=Ye(p-d[g],w),x=Ye(f-d[m],_),Z=!t.middlewareData.shift;let C=b,y=x;if(null!=(l=t.middlewareData.shift)&&l.enabled.x&&(y=_),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(C=w),Z&&!u){const e=Je(d.left,0),t=Je(d.right,0),l=Je(d.top,0),o=Je(d.bottom,0);v?y=f-2*(0!==e||0!==t?e+t:Je(d.left,d.right)):C=p-2*(0!==l||0!==o?l+o:Je(d.top,d.bottom))}await s({...t,availableWidth:y,availableHeight:C});const M=await r.getDimensions(a.floating);return f!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}},_l=(e,t,l)=>{const o=new Map,n={platform:ul,...l},i={...n.platform,_c:o};return(async(e,t,l)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:r}=l,a=i.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:h}=xt(c,o,s),u=o,v={},f=0;for(let l=0;l<a.length;l++){const{name:i,fn:p}=a[l],{x:g,y:m,data:w,reset:_}=await p({x:d,y:h,initialPlacement:o,placement:u,strategy:n,middlewareData:v,rects:c,platform:r,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=m?m:h,v={...v,[i]:{...v[i],...w}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(c=!0===_.rects?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:d,y:h}=xt(c,u,s))),l=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:i})};var bl=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%}`,xl=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)}`,Zl=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)}`,Cl=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 yl(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class Ml{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 Vl=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 Ml(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([$e("sgds-input")],l.prototype,"sgdsInput",void 0),t([$e("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var Hl=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 Pl extends xe{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 Ol(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:zl()?0:null==l?void 0:l.duration}));n.addEventListener("cancel",o,{once:!0}),n.addEventListener("finish",o,{once:!0})})}function zl(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}Pl.styles=[Hl],Pl.dependencies={},t([He({type:Boolean,reflect:!0})],Pl.prototype,"ssr",void 0);const $l=new Map,Sl=new WeakMap;function Bl(e,t){const l=Sl.get(e);if(null==l?void 0:l[t])return l[t];const o=$l.get(t);return o||{keyframes:[],options:{duration:0}}}function jl(e,t){$l.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class kl extends Pl{constructor(){super(...arguments),this.myDropdown=Fe(),this.dropdownMenuId=yl("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=Fe(),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}=Bl(this,"dropdown.show");await Ol(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=fl(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}=Bl(this,"dropdown.hide");await Ol(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),i=o.indexOf(n);return-1!==i?t[i]: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=[pl(8),this.noFlip?void 0:ml(),gl()].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:i,strategy:r,placement:a}=await _l(this.myDropdown.value,this.menuRef.value,o);this.menuRef.value.setAttribute("data-placement",a),Object.assign(this.menuRef.value.style,{position:r,left:`${n}px`,top:`${i}px`})}}t([He({type:Boolean,state:!0})],kl.prototype,"noFlip",void 0),t([He({type:Boolean,reflect:!0,state:!0})],kl.prototype,"menuAlignRight",void 0),t([He({type:String,reflect:!0,state:!0})],kl.prototype,"drop",void 0),t([He({type:Object})],kl.prototype,"floatingOpts",void 0),t([He({type:Boolean,reflect:!0})],kl.prototype,"menuIsOpen",void 0),t([He({type:Boolean,reflect:!0})],kl.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],kl.prototype,"readonly",void 0),jl("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),jl("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class Al extends kl{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()})}}var Ll,El;Al.styles=kl.styles,t([(Ll="ul.dropdown-menu",(e,t,l)=>{const o=e=>{const l=e.renderRoot?.querySelector(Ll)??null;if(null===l&&El&&!e.hasUpdated){const e="object"==typeof t?t.name:t;ze("",`@query'd field ${JSON.stringify(String(e))} with the 'cache' flag set for selector '${Ll}' has been accessed before the first update and returned null. This is expected if the renderRoot tree has not been provided beforehand (e.g. via Declarative Shadow DOM). Therefore the value hasn't been cached.`)}return l};if(El){const{get:n,set:i}="object"==typeof t?e:l??(()=>{const e=Symbol(`${String(t)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Oe(e,t,{get(){let e=n.call(this);return void 0===e&&(e=o(this),(null!==e||this.hasUpdated)&&i.call(this,e)),e}})}return Oe(e,t,{get(){return o(this)}})})],Al.prototype,"menu",void 0),t([Pe()],Al.prototype,"nextDropdownItemNo",void 0),t([Pe()],Al.prototype,"prevDropdownItemNo",void 0),t([He({type:Boolean,reflect:!0})],Al.prototype,"hidden",void 0);var Il=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 Tl extends(Vl(Al)){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=yl("input"),this._labelId=yl("label"),this.floatingOpts={middleware:[wl({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?ee` <div class="invalid-feedback-container">
|
|
83
|
+
*/const Fe=()=>new We;class We{}const qe=new WeakMap;const Ke=je(class extends Ue{render(e){return oe}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),oe}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=qe.get(t);void 0===l&&(l=new WeakMap,qe.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?qe.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),Ye=Math.min,Je=Math.max,Ge=Math.round,Xe=Math.floor,Qe=e=>({x:e,y:e}),et={left:"right",right:"left",bottom:"top",top:"bottom"},tt={start:"end",end:"start"};function lt(e,t,l){return Je(e,Ye(t,l))}function ot(e,t){return"function"==typeof e?e(t):e}function nt(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function rt(e){return"x"===e?"y":"x"}function at(e){return"y"===e?"height":"width"}const st=new Set(["top","bottom"]);function ct(e){return st.has(nt(e))?"y":"x"}function dt(e){return rt(ct(e))}function ht(e,t,l){void 0===l&&(l=!1);const o=it(e),n=dt(e),i=at(n);let r="x"===n?o===(l?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=wt(r)),[r,wt(r)]}function ut(e){return e.replace(/start|end/g,e=>tt[e])}const vt=["left","right"],ft=["right","left"],pt=["top","bottom"],gt=["bottom","top"];function mt(e,t,l,o){const n=it(e);let i=function(e,t,l){switch(e){case"top":case"bottom":return l?t?ft:vt:t?vt:ft;case"left":case"right":return t?pt:gt;default:return[]}}(nt(e),"start"===l,o);return n&&(i=i.map(e=>e+"-"+n),t&&(i=i.concat(i.map(ut)))),i}function wt(e){return e.replace(/left|right|bottom|top/g,e=>et[e])}function _t(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 bt(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 xt(e,t,l){let{reference:o,floating:n}=e;const i=ct(t),r=dt(t),a=at(r),s=nt(t),c="y"===i,d=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,u=o[a]/2-n[a]/2;let v;switch(s){case"top":v={x:d,y:o.y-n.height};break;case"bottom":v={x:d,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:h};break;case"left":v={x:o.x-n.width,y:h};break;default:v={x:o.x,y:o.y}}switch(it(t)){case"start":v[r]-=u*(l&&c?-1:1);break;case"end":v[r]+=u*(l&&c?-1:1)}return v}async function Zt(e,t){var l;void 0===t&&(t={});const{x:o,y:n,platform:i,rects:r,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:v=0}=ot(t,e),f=_t(v),p=a[u?"floating"===h?"reference":"floating":h],g=bt(await i.getClippingRect({element:null==(l=await(null==i.isElement?void 0:i.isElement(p)))||l?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===h?{x:o,y:n,width:r.floating.width,height:r.floating.height}:r.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),_=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:s}):m);return{top:(g.top-b.top+f.top)/_.y,bottom:(b.bottom-g.bottom+f.bottom)/_.y,left:(g.left-b.left+f.left)/_.x,right:(b.right-g.right+f.right)/_.x}}const Ct=new Set(["left","top"]);function yt(){return"undefined"!=typeof window}function Mt(e){return Pt(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ht(e){var t;return null==(t=(Pt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Pt(e){return!!yt()&&(e instanceof Node||e instanceof Vt(e).Node)}function Ot(e){return!!yt()&&(e instanceof Element||e instanceof Vt(e).Element)}function zt(e){return!!yt()&&(e instanceof HTMLElement||e instanceof Vt(e).HTMLElement)}function $t(e){return!(!yt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot)}const St=new Set(["inline","contents"]);function Bt(e){const{overflow:t,overflowX:l,overflowY:o,display:n}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+l)&&!St.has(n)}const jt=new Set(["table","td","th"]);function At(e){return jt.has(Mt(e))}const kt=[":popover-open",":modal"];function Lt(e){return kt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Et=["transform","translate","scale","rotate","perspective"],It=["transform","translate","scale","rotate","perspective","filter"],Tt=["paint","layout","strict","content"];function Rt(e){const t=Dt(),l=Ot(e)?Ft(e):e;return Et.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||It.some(e=>(l.willChange||"").includes(e))||Tt.some(e=>(l.contain||"").includes(e))}function Dt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Nt=new Set(["html","body","#document"]);function Ut(e){return Nt.has(Mt(e))}function Ft(e){return Vt(e).getComputedStyle(e)}function Wt(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qt(e){if("html"===Mt(e))return e;const t=e.assignedSlot||e.parentNode||$t(e)&&e.host||Ht(e);return $t(t)?t.host:t}function Kt(e){const t=qt(e);return Ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&Bt(t)?t:Kt(t)}function Yt(e,t,l){var o;void 0===t&&(t=[]),void 0===l&&(l=!0);const n=Kt(e),i=n===(null==(o=e.ownerDocument)?void 0:o.body),r=Vt(n);if(i){const e=Jt(r);return t.concat(r,r.visualViewport||[],Bt(n)?n:[],e&&l?Yt(e):[])}return t.concat(n,Yt(n,[],l))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gt(e){const t=Ft(e);let l=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=zt(e),i=n?e.offsetWidth:l,r=n?e.offsetHeight:o,a=Ge(l)!==i||Ge(o)!==r;return a&&(l=i,o=r),{width:l,height:o,$:a}}function Xt(e){return Ot(e)?e:e.contextElement}function Qt(e){const t=Xt(e);if(!zt(t))return Qe(1);const l=t.getBoundingClientRect(),{width:o,height:n,$:i}=Gt(t);let r=(i?Ge(l.width):l.width)/o,a=(i?Ge(l.height):l.height)/n;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}const el=Qe(0);function tl(e){const t=Vt(e);return Dt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ll(e,t,l,o){void 0===t&&(t=!1),void 0===l&&(l=!1);const n=e.getBoundingClientRect(),i=Xt(e);let r=Qe(1);t&&(o?Ot(o)&&(r=Qt(o)):r=Qt(e));const a=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==Vt(e))&&t}(i,l,o)?tl(i):Qe(0);let s=(n.left+a.x)/r.x,c=(n.top+a.y)/r.y,d=n.width/r.x,h=n.height/r.y;if(i){const e=Vt(i),t=o&&Ot(o)?Vt(o):o;let l=e,n=Jt(l);for(;n&&o&&t!==l;){const e=Qt(n),t=n.getBoundingClientRect(),o=Ft(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,r=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=i,c+=r,l=Vt(n),n=Jt(l)}}return bt({width:d,height:h,x:s,y:c})}function ol(e,t){const l=Wt(e).scrollLeft;return t?t.left+l:ll(Ht(e)).left+l}function nl(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-ol(e,l),y:l.top+t.scrollTop}}const il=new Set(["absolute","fixed"]);function rl(e,t,l){let o;if("viewport"===t)o=function(e,t){const l=Vt(e),o=Ht(e),n=l.visualViewport;let i=o.clientWidth,r=o.clientHeight,a=0,s=0;if(n){i=n.width,r=n.height;const e=Dt();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,s=n.offsetTop)}const c=ol(o);if(c<=0){const e=o.ownerDocument,t=e.body,l=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,r=Math.abs(o.clientWidth-t.clientWidth-n);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:a,y:s}}(e,l);else if("document"===t)o=function(e){const t=Ht(e),l=Wt(e),o=e.ownerDocument.body,n=Je(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Je(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-l.scrollLeft+ol(e);const a=-l.scrollTop;return"rtl"===Ft(o).direction&&(r+=Je(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:r,y:a}}(Ht(e));else if(Ot(t))o=function(e,t){const l=ll(e,!0,"fixed"===t),o=l.top+e.clientTop,n=l.left+e.clientLeft,i=zt(e)?Qt(e):Qe(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:n*i.x,y:o*i.y}}(t,l);else{const l=tl(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return bt(o)}function al(e,t){const l=qt(e);return!(l===t||!Ot(l)||Ut(l))&&("fixed"===Ft(l).position||al(l,t))}function sl(e,t,l){const o=zt(t),n=Ht(t),i="fixed"===l,r=ll(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Qe(0);function c(){s.x=ol(n)}if(o||!o&&!i)if(("body"!==Mt(t)||Bt(n))&&(a=Wt(t)),o){const e=ll(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&c();i&&!o&&n&&c();const d=!n||o||i?Qe(0):nl(n,a);return{x:r.left+a.scrollLeft-s.x-d.x,y:r.top+a.scrollTop-s.y-d.y,width:r.width,height:r.height}}function cl(e){return"static"===Ft(e).position}function dl(e,t){if(!zt(e)||"fixed"===Ft(e).position)return null;if(t)return t(e);let l=e.offsetParent;return Ht(e)===l&&(l=l.ownerDocument.body),l}function hl(e,t){const l=Vt(e);if(Lt(e))return l;if(!zt(e)){let t=qt(e);for(;t&&!Ut(t);){if(Ot(t)&&!cl(t))return t;t=qt(t)}return l}let o=dl(e,t);for(;o&&At(o)&&cl(o);)o=dl(o,t);return o&&Ut(o)&&cl(o)&&!Rt(o)?l:o||function(e){let t=qt(e);for(;zt(t)&&!Ut(t);){if(Rt(t))return t;if(Lt(t))return null;t=qt(t)}return null}(e)||l}const ul={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:o,strategy:n}=e;const i="fixed"===n,r=Ht(o),a=!!t&&Lt(t.floating);if(o===r||a&&i)return l;let s={scrollLeft:0,scrollTop:0},c=Qe(1);const d=Qe(0),h=zt(o);if((h||!h&&!i)&&(("body"!==Mt(o)||Bt(r))&&(s=Wt(o)),zt(o))){const e=ll(o);c=Qt(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const u=!r||h||i?Qe(0):nl(r,s);return{width:l.width*c.x,height:l.height*c.y,x:l.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:l.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:Ht,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:o,strategy:n}=e;const i=[..."clippingAncestors"===l?Lt(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let o=Yt(e,[],!1).filter(e=>Ot(e)&&"body"!==Mt(e)),n=null;const i="fixed"===Ft(e).position;let r=i?qt(e):e;for(;Ot(r)&&!Ut(r);){const t=Ft(r),l=Rt(r);l||"fixed"!==t.position||(n=null),(i?!l&&!n:!l&&"static"===t.position&&n&&il.has(n.position)||Bt(r)&&!l&&al(e,r))?o=o.filter(e=>e!==r):n=t,r=qt(r)}return t.set(e,o),o}(t,this._c):[].concat(l),o],r=i[0],a=i.reduce((e,l)=>{const o=rl(t,l,n);return e.top=Je(o.top,e.top),e.right=Ye(o.right,e.right),e.bottom=Ye(o.bottom,e.bottom),e.left=Je(o.left,e.left),e},rl(t,r,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:hl,getElementRects:async function(e){const t=this.getOffsetParent||hl,l=this.getDimensions,o=await l(e.floating);return{reference:sl(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}=Gt(e);return{width:t,height:l}},getScale:Qt,isElement:Ot,isRTL:function(e){return"rtl"===Ft(e).direction}};function vl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fl(e,t,l,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=Xt(e),d=n||i?[...c?Yt(c):[],...Yt(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",l,{passive:!0}),i&&e.addEventListener("resize",l)});const h=c&&a?function(e,t){let l,o=null;const n=Ht(e);function i(){var e;clearTimeout(l),null==(e=o)||e.disconnect(),o=null}return function r(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:d,top:h,width:u,height:v}=c;if(a||t(),!u||!v)return;const f={rootMargin:-Xe(h)+"px "+-Xe(n.clientWidth-(d+u))+"px "+-Xe(n.clientHeight-(h+v))+"px "+-Xe(d)+"px",threshold:Je(0,Ye(1,s))||1};let p=!0;function g(t){const o=t[0].intersectionRatio;if(o!==s){if(!p)return r();o?r(!1,o):l=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==o||vl(c,e.getBoundingClientRect())||r(),p=!1}try{o=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),i}(c,l):null;let u,v=-1,f=null;r&&(f=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),l()}),c&&!s&&f.observe(c),f.observe(t));let p=s?ll(e):null;return s&&function t(){const o=ll(e);p&&!vl(p,o)&&l();p=o,u=requestAnimationFrame(t)}(),l(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",l),i&&e.removeEventListener("resize",l)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(u)}}const pl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,o;const{x:n,y:i,placement:r,middlewareData:a}=t,s=await async function(e,t){const{placement:l,platform:o,elements:n}=e,i=await(null==o.isRTL?void 0:o.isRTL(n.floating)),r=nt(l),a=it(l),s="y"===ct(l),c=Ct.has(r)?-1:1,d=i&&s?-1:1,h=ot(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof f&&(v="end"===a?-1*f:f),s?{x:v*d,y:u*c}:{x:u*c,y:v*d}}(t,e);return r===(null==(l=a.offset)?void 0:l.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:n+s.x,y:i+s.y,data:{...s,placement:r}}}}},gl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:o,placement:n}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:a={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...s}=ot(e,t),c={x:l,y:o},d=await Zt(t,s),h=ct(nt(n)),u=rt(h);let v=c[u],f=c[h];if(i){const e="y"===u?"bottom":"right";v=lt(v+d["y"===u?"top":"left"],v,v-d[e])}if(r){const e="y"===h?"bottom":"right";f=lt(f+d["y"===h?"top":"left"],f,f-d[e])}const p=a.fn({...t,[u]:v,[h]:f});return{...p,data:{x:p.x-l,y:p.y-o,enabled:{[u]:i,[h]:r}}}}}},ml=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,o;const{placement:n,middlewareData:i,rects:r,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=ot(e,t);if(null!=(l=i.arrow)&&l.alignmentOffset)return{};const m=nt(n),w=ct(a),_=nt(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=u||(_||!p?[wt(a)]:function(e){const t=wt(e);return[ut(e),t,ut(t)]}(a)),Z="none"!==f;!u&&Z&&x.push(...mt(a,p,f,b));const C=[a,...x],y=await Zt(t,g),M=[];let V=(null==(o=i.flip)?void 0:o.overflows)||[];if(d&&M.push(y[m]),h){const e=ht(n,r,b);M.push(y[e[0]],y[e[1]])}if(V=[...V,{placement:n,overflows:M}],!M.every(e=>e<=0)){var H,P;const e=((null==(H=i.flip)?void 0:H.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&w!==ct(t))||V.every(e=>ct(e.placement)!==w||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==(P=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!l)switch(v){case"bestFit":{var O;const e=null==(O=V.filter(e=>{if(Z){const t=ct(e.placement);return t===w||"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{}}}},wl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var l,o;const{placement:n,rects:i,platform:r,elements:a}=t,{apply:s=()=>{},...c}=ot(e,t),d=await Zt(t,c),h=nt(n),u=it(n),v="y"===ct(n),{width:f,height:p}=i.floating;let g,m;"top"===h||"bottom"===h?(g=h,m=u===(await(null==r.isRTL?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(m=h,g="end"===u?"top":"bottom");const w=p-d.top-d.bottom,_=f-d.left-d.right,b=Ye(p-d[g],w),x=Ye(f-d[m],_),Z=!t.middlewareData.shift;let C=b,y=x;if(null!=(l=t.middlewareData.shift)&&l.enabled.x&&(y=_),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(C=w),Z&&!u){const e=Je(d.left,0),t=Je(d.right,0),l=Je(d.top,0),o=Je(d.bottom,0);v?y=f-2*(0!==e||0!==t?e+t:Je(d.left,d.right)):C=p-2*(0!==l||0!==o?l+o:Je(d.top,d.bottom))}await s({...t,availableWidth:y,availableHeight:C});const M=await r.getDimensions(a.floating);return f!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}},_l=(e,t,l)=>{const o=new Map,n={platform:ul,...l},i={...n.platform,_c:o};return(async(e,t,l)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:r}=l,a=i.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:h}=xt(c,o,s),u=o,v={},f=0;for(let l=0;l<a.length;l++){const{name:i,fn:p}=a[l],{x:g,y:m,data:w,reset:_}=await p({x:d,y:h,initialPlacement:o,placement:u,strategy:n,middlewareData:v,rects:c,platform:r,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=m?m:h,v={...v,[i]:{...v[i],...w}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(c=!0===_.rects?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:d,y:h}=xt(c,u,s))),l=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:i})};var bl=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%}`,xl=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)}`,Zl=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)}`,Cl=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 yl(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class Ml{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 Vl=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 Ml(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([$e("sgds-input")],l.prototype,"sgdsInput",void 0),t([$e("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var Hl=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 Pl extends xe{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 Ol(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:zl()?0:null==l?void 0:l.duration}));n.addEventListener("cancel",o,{once:!0}),n.addEventListener("finish",o,{once:!0})})}function zl(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}Pl.styles=[Hl],Pl.dependencies={},t([He({type:Boolean,reflect:!0})],Pl.prototype,"ssr",void 0);const $l=new Map,Sl=new WeakMap;function Bl(e,t){const l=Sl.get(e);if(null==l?void 0:l[t])return l[t];const o=$l.get(t);return o||{keyframes:[],options:{duration:0}}}function jl(e,t){$l.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class Al extends Pl{constructor(){super(...arguments),this.myDropdown=Fe(),this.dropdownMenuId=yl("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=Fe(),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}=Bl(this,"dropdown.show");await Ol(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=fl(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}=Bl(this,"dropdown.hide");await Ol(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),i=o.indexOf(n);return-1!==i?t[i]: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=[pl(8),this.noFlip?void 0:ml(),gl()].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:i,strategy:r,placement:a}=await _l(this.myDropdown.value,this.menuRef.value,o);this.menuRef.value.setAttribute("data-placement",a),Object.assign(this.menuRef.value.style,{position:r,left:`${n}px`,top:`${i}px`})}}t([He({type:Boolean,state:!0})],Al.prototype,"noFlip",void 0),t([He({type:Boolean,reflect:!0,state:!0})],Al.prototype,"menuAlignRight",void 0),t([He({type:String,reflect:!0,state:!0})],Al.prototype,"drop",void 0),t([He({type:Object})],Al.prototype,"floatingOpts",void 0),t([He({type:Boolean,reflect:!0})],Al.prototype,"menuIsOpen",void 0),t([He({type:Boolean,reflect:!0})],Al.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],Al.prototype,"readonly",void 0),jl("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),jl("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class kl extends Al{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()})}}var Ll,El;kl.styles=Al.styles,t([(Ll="ul.dropdown-menu",(e,t,l)=>{const o=e=>{const l=e.renderRoot?.querySelector(Ll)??null;if(null===l&&El&&!e.hasUpdated){const e="object"==typeof t?t.name:t;ze("",`@query'd field ${JSON.stringify(String(e))} with the 'cache' flag set for selector '${Ll}' has been accessed before the first update and returned null. This is expected if the renderRoot tree has not been provided beforehand (e.g. via Declarative Shadow DOM). Therefore the value hasn't been cached.`)}return l};if(El){const{get:n,set:i}="object"==typeof t?e:l??(()=>{const e=Symbol(`${String(t)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Oe(e,t,{get(){let e=n.call(this);return void 0===e&&(e=o(this),(null!==e||this.hasUpdated)&&i.call(this,e)),e}})}return Oe(e,t,{get(){return o(this)}})})],kl.prototype,"menu",void 0),t([Pe()],kl.prototype,"nextDropdownItemNo",void 0),t([Pe()],kl.prototype,"prevDropdownItemNo",void 0),t([He({type:Boolean,reflect:!0})],kl.prototype,"hidden",void 0);var Il=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 Tl extends(Vl(kl)){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=yl("input"),this._labelId=yl("label"),this.floatingOpts={middleware:[wl({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?ee` <div class="invalid-feedback-container">
|
|
84
84
|
<slot name="invalidIcon">
|
|
85
85
|
<sgds-icon name="exclamation-circle-fill" size="md"></sgds-icon>
|
|
86
86
|
</slot>
|
|
@@ -91,11 +91,11 @@ window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch&&window.ShadyDOM.wrap;cons
|
|
|
91
91
|
<label
|
|
92
92
|
for=${this._controlId}
|
|
93
93
|
id=${this._labelId}
|
|
94
|
-
class=${
|
|
94
|
+
class=${ke({"form-label":!0,required:this.required})}
|
|
95
95
|
>${this.label}</label
|
|
96
96
|
>
|
|
97
|
-
`;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;return{label:e.innerText,value:e.getAttribute("value"),disabled:null!==(t=e.disabled)&&void 0!==t?t:void 0}})}_renderEmptyMenu(){return ee` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return ee`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}Tl.styles=[...Al.styles,bl,Zl,xl,Cl,Il],t([He({reflect:!0})],Tl.prototype,"label",void 0),t([He({reflect:!0})],Tl.prototype,"hintText",void 0),t([He({reflect:!0})],Tl.prototype,"name",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"placeholder",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"autofocus",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"required",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"loading",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"value",void 0),t([Pe()],Tl.prototype,"displayValue",void 0),t([((e="value")=>(t,l)=>{const o=t.constructor,n=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(t,i,r){var a;const s=o.getPropertyOptions(e);if(t===("string"==typeof s.attribute?s.attribute:e).toLowerCase()){const t=s.converter||Z,o=("function"==typeof t?t:null!==(a=null==t?void 0:t.fromAttribute)&&void 0!==a?a:Z.fromAttribute)(r,s.type);this[e]!==o&&(this[l]=o)}n.call(this,t,i,r)}})()],Tl.prototype,"defaultValue",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"hasFeedback",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"invalidFeedback",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"invalid",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"autocomplete",void 0),t([He({type:Array})],Tl.prototype,"menuList",void 0),t([Pe()],Tl.prototype,"selectedItems",void 0),t([Pe()],Tl.prototype,"filteredList",void 0),t([$e("input.form-control")],Tl.prototype,"_input",void 0);const Rl={announcement:()=>Promise.resolve().then(function(){return ro}),archive:()=>Promise.resolve().then(function(){return so}),"arrow-bar-down":()=>Promise.resolve().then(function(){return ho}),"arrow-bar-left":()=>Promise.resolve().then(function(){return vo}),"arrow-bar-right":()=>Promise.resolve().then(function(){return po}),"arrow-bar-up":()=>Promise.resolve().then(function(){return mo}),"arrow-circle-down":()=>Promise.resolve().then(function(){return _o}),"arrow-circle-left":()=>Promise.resolve().then(function(){return xo}),"arrow-circle-right":()=>Promise.resolve().then(function(){return Co}),"arrow-circle-up":()=>Promise.resolve().then(function(){return Mo}),"arrow-clockwise":()=>Promise.resolve().then(function(){return Ho}),"arrow-down":()=>Promise.resolve().then(function(){return Oo}),"arrow-left":()=>Promise.resolve().then(function(){return $o}),"arrow-repeat":()=>Promise.resolve().then(function(){return Bo}),"arrow-right":()=>Promise.resolve().then(function(){return ko}),"arrow-square-down":()=>Promise.resolve().then(function(){return Lo}),"arrow-square-left":()=>Promise.resolve().then(function(){return Io}),"arrow-square-right":()=>Promise.resolve().then(function(){return Ro}),"arrow-square-up":()=>Promise.resolve().then(function(){return No}),"arrow-up":()=>Promise.resolve().then(function(){return Fo}),"bank-fill":()=>Promise.resolve().then(function(){return qo}),"bell-slash":()=>Promise.resolve().then(function(){return Yo}),bell:()=>Promise.resolve().then(function(){return Go}),"bi-funnel":()=>Promise.resolve().then(function(){return Qo}),"bookmark-fill":()=>Promise.resolve().then(function(){return tn}),bookmark:()=>Promise.resolve().then(function(){return on}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return rn}),"box-seam":()=>Promise.resolve().then(function(){return sn}),building:()=>Promise.resolve().then(function(){return dn}),bus:()=>Promise.resolve().then(function(){return un}),calculator:()=>Promise.resolve().then(function(){return fn}),"calendar-check":()=>Promise.resolve().then(function(){return gn}),"calendar-heart":()=>Promise.resolve().then(function(){return wn}),"calendar-x":()=>Promise.resolve().then(function(){return bn}),calendar:()=>Promise.resolve().then(function(){return Zn}),camera:()=>Promise.resolve().then(function(){return yn}),car:()=>Promise.resolve().then(function(){return Vn}),"chat-dots":()=>Promise.resolve().then(function(){return Pn}),"chat-left-text":()=>Promise.resolve().then(function(){return zn}),chat:()=>Promise.resolve().then(function(){return Sn}),"check-circle-fill":()=>Promise.resolve().then(function(){return jn}),"check-circle":()=>Promise.resolve().then(function(){return An}),check:()=>Promise.resolve().then(function(){return En}),"chevron-down":()=>Promise.resolve().then(function(){return Tn}),"chevron-left":()=>Promise.resolve().then(function(){return Dn}),"chevron-right":()=>Promise.resolve().then(function(){return Un}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return Wn}),"chevron-up":()=>Promise.resolve().then(function(){return Kn}),clock:()=>Promise.resolve().then(function(){return Jn}),"cloud-check":()=>Promise.resolve().then(function(){return Xn}),"cloud-download":()=>Promise.resolve().then(function(){return ei}),"cloud-upload":()=>Promise.resolve().then(function(){return li}),cloud:()=>Promise.resolve().then(function(){return ni}),"code-square":()=>Promise.resolve().then(function(){return ri}),"coins-hand":()=>Promise.resolve().then(function(){return si}),compass:()=>Promise.resolve().then(function(){return di}),copy:()=>Promise.resolve().then(function(){return ui}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return fi}),cross:()=>Promise.resolve().then(function(){return gi}),"cursor-fill":()=>Promise.resolve().then(function(){return wi}),cursor:()=>Promise.resolve().then(function(){return bi}),"dash-circle":()=>Promise.resolve().then(function(){return Zi}),"dash-square":()=>Promise.resolve().then(function(){return yi}),dash:()=>Promise.resolve().then(function(){return Vi}),database:()=>Promise.resolve().then(function(){return Pi}),dataflow:()=>Promise.resolve().then(function(){return zi}),download:()=>Promise.resolve().then(function(){return Si}),edit:()=>Promise.resolve().then(function(){return ji}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return Ai}),"exclamation-circle":()=>Promise.resolve().then(function(){return Ei}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return Ti}),"exclamation-triangle":()=>Promise.resolve().then(function(){return Di}),exclamation:()=>Promise.resolve().then(function(){return Ui}),"eye-fill":()=>Promise.resolve().then(function(){return Wi}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Ki}),"eye-slash":()=>Promise.resolve().then(function(){return Ji}),eye:()=>Promise.resolve().then(function(){return Xi}),"face-smile-fill":()=>Promise.resolve().then(function(){return er}),"face-smile":()=>Promise.resolve().then(function(){return lr}),facebook:()=>Promise.resolve().then(function(){return nr}),"file-earmark-text":()=>Promise.resolve().then(function(){return rr}),"file-pdf":()=>Promise.resolve().then(function(){return sr}),"file-plus":()=>Promise.resolve().then(function(){return dr}),"file-text":()=>Promise.resolve().then(function(){return ur}),file:()=>Promise.resolve().then(function(){return fr}),files:()=>Promise.resolve().then(function(){return gr}),fingerprint:()=>Promise.resolve().then(function(){return wr}),flash:()=>Promise.resolve().then(function(){return br}),"folder-check":()=>Promise.resolve().then(function(){return Zr}),"folder-minus":()=>Promise.resolve().then(function(){return yr}),"folder-plus":()=>Promise.resolve().then(function(){return Vr}),folder:()=>Promise.resolve().then(function(){return Pr}),gear:()=>Promise.resolve().then(function(){return zr}),"geo-alt":()=>Promise.resolve().then(function(){return Sr}),"geo-fill":()=>Promise.resolve().then(function(){return jr}),geo:()=>Promise.resolve().then(function(){return Ar}),"globe-alt":()=>Promise.resolve().then(function(){return Er}),globe:()=>Promise.resolve().then(function(){return Tr}),google:()=>Promise.resolve().then(function(){return Dr}),"grid-alt":()=>Promise.resolve().then(function(){return Ur}),"grid-fill":()=>Promise.resolve().then(function(){return Wr}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return Kr}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return Jr}),"hard-drive":()=>Promise.resolve().then(function(){return Xr}),heart:()=>Promise.resolve().then(function(){return ea}),"house-door":()=>Promise.resolve().then(function(){return la}),house:()=>Promise.resolve().then(function(){return na}),image:()=>Promise.resolve().then(function(){return ra}),"in-box":()=>Promise.resolve().then(function(){return sa}),"info-circle-fill":()=>Promise.resolve().then(function(){return da}),"info-circle":()=>Promise.resolve().then(function(){return ua}),instagram:()=>Promise.resolve().then(function(){return fa}),key:()=>Promise.resolve().then(function(){return ga}),"laptop-gear":()=>Promise.resolve().then(function(){return wa}),laptop:()=>Promise.resolve().then(function(){return ba}),layers:()=>Promise.resolve().then(function(){return Za}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return ya}),"layout-text-window":()=>Promise.resolve().then(function(){return Va}),layout:()=>Promise.resolve().then(function(){return Pa}),"life-buoy":()=>Promise.resolve().then(function(){return za}),lightbulb:()=>Promise.resolve().then(function(){return Sa}),link:()=>Promise.resolve().then(function(){return ja}),linkedin:()=>Promise.resolve().then(function(){return Aa}),list:()=>Promise.resolve().then(function(){return Ea}),"lock-fill":()=>Promise.resolve().then(function(){return Ta}),lock:()=>Promise.resolve().then(function(){return Da}),login:()=>Promise.resolve().then(function(){return Ua}),logout:()=>Promise.resolve().then(function(){return Wa}),luggage:()=>Promise.resolve().then(function(){return Ka}),"mail-open":()=>Promise.resolve().then(function(){return Ja}),mail:()=>Promise.resolve().then(function(){return Xa}),map:()=>Promise.resolve().then(function(){return es}),meetup:()=>Promise.resolve().then(function(){return ls}),menu:()=>Promise.resolve().then(function(){return ns}),microphone:()=>Promise.resolve().then(function(){return rs}),monitor:()=>Promise.resolve().then(function(){return ss}),moon:()=>Promise.resolve().then(function(){return ds}),move:()=>Promise.resolve().then(function(){return us}),paperclip:()=>Promise.resolve().then(function(){return fs}),passcode:()=>Promise.resolve().then(function(){return gs}),passport:()=>Promise.resolve().then(function(){return ws}),pause:()=>Promise.resolve().then(function(){return bs}),pencil:()=>Promise.resolve().then(function(){return Zs}),"pending-circle":()=>Promise.resolve().then(function(){return ys}),"person-dash":()=>Promise.resolve().then(function(){return Vs}),"person-plus":()=>Promise.resolve().then(function(){return Ps}),"person-x":()=>Promise.resolve().then(function(){return zs}),person:()=>Promise.resolve().then(function(){return Ss}),phone:()=>Promise.resolve().then(function(){return js}),"pin-map-fill":()=>Promise.resolve().then(function(){return As}),pin:()=>Promise.resolve().then(function(){return Es}),placeholder:()=>Promise.resolve().then(function(){return Ts}),plane:()=>Promise.resolve().then(function(){return Ds}),play:()=>Promise.resolve().then(function(){return Us}),"plus-circle":()=>Promise.resolve().then(function(){return Ws}),"plus-square":()=>Promise.resolve().then(function(){return Ks}),plus:()=>Promise.resolve().then(function(){return Js}),printer:()=>Promise.resolve().then(function(){return Xs}),"question-circle":()=>Promise.resolve().then(function(){return ec}),rocket:()=>Promise.resolve().then(function(){return lc}),save:()=>Promise.resolve().then(function(){return nc}),search:()=>Promise.resolve().then(function(){return rc}),send:()=>Promise.resolve().then(function(){return sc}),"sg-crest":()=>Promise.resolve().then(function(){return dc}),share:()=>Promise.resolve().then(function(){return uc}),"shield-tick":()=>Promise.resolve().then(function(){return fc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return gc}),"sidebar-expand":()=>Promise.resolve().then(function(){return wc}),"slash-circle":()=>Promise.resolve().then(function(){return bc}),"slash-divider":()=>Promise.resolve().then(function(){return Zc}),sliders:()=>Promise.resolve().then(function(){return yc}),"sort-ascending":()=>Promise.resolve().then(function(){return Vc}),"sort-descending":()=>Promise.resolve().then(function(){return Pc}),speedometer:()=>Promise.resolve().then(function(){return zc}),"star-ai":()=>Promise.resolve().then(function(){return Sc}),"star-fill":()=>Promise.resolve().then(function(){return jc}),star:()=>Promise.resolve().then(function(){return Ac}),stoplights:()=>Promise.resolve().then(function(){return Ec}),sun:()=>Promise.resolve().then(function(){return Tc}),"switch-horizontal":()=>Promise.resolve().then(function(){return Dc}),"switch-vertical":()=>Promise.resolve().then(function(){return Uc}),tablet:()=>Promise.resolve().then(function(){return Wc}),telegram:()=>Promise.resolve().then(function(){return Kc}),telephone:()=>Promise.resolve().then(function(){return Jc}),"three-dots-vertical":()=>Promise.resolve().then(function(){return Xc}),"three-dots":()=>Promise.resolve().then(function(){return ed}),ticket:()=>Promise.resolve().then(function(){return ld}),"toggle-off":()=>Promise.resolve().then(function(){return nd}),"toggle-on":()=>Promise.resolve().then(function(){return rd}),train:()=>Promise.resolve().then(function(){return sd}),translate:()=>Promise.resolve().then(function(){return dd}),trash:()=>Promise.resolve().then(function(){return ud}),"trend-down":()=>Promise.resolve().then(function(){return fd}),"trend-up":()=>Promise.resolve().then(function(){return gd}),truck:()=>Promise.resolve().then(function(){return wd}),"twitter-x":()=>Promise.resolve().then(function(){return bd}),unlock:()=>Promise.resolve().then(function(){return Zd}),upload:()=>Promise.resolve().then(function(){return yd}),"user-check":()=>Promise.resolve().then(function(){return Vd}),"user-circle":()=>Promise.resolve().then(function(){return Pd}),"user-pause":()=>Promise.resolve().then(function(){return zd}),"user-square":()=>Promise.resolve().then(function(){return Sd}),users:()=>Promise.resolve().then(function(){return jd}),"video-recorder":()=>Promise.resolve().then(function(){return Ad}),"volume-max":()=>Promise.resolve().then(function(){return Ed}),"volume-x":()=>Promise.resolve().then(function(){return Td}),"window-dash":()=>Promise.resolve().then(function(){return Dd}),"window-desktop":()=>Promise.resolve().then(function(){return Ud}),"window-dock":()=>Promise.resolve().then(function(){return Wd}),"window-fullscreen":()=>Promise.resolve().then(function(){return Kd}),"window-plus":()=>Promise.resolve().then(function(){return Jd}),"window-sidebar":()=>Promise.resolve().then(function(){return Xd}),"window-split":()=>Promise.resolve().then(function(){return eh}),"window-stack":()=>Promise.resolve().then(function(){return lh}),"window-x":()=>Promise.resolve().then(function(){return nh}),window:()=>Promise.resolve().then(function(){return rh}),"xcircle-fill":()=>Promise.resolve().then(function(){return sh}),xcircle:()=>Promise.resolve().then(function(){return dh}),youtube:()=>Promise.resolve().then(function(){return uh}),"zoom-in":()=>Promise.resolve().then(function(){return fh}),"zoom-out":()=>Promise.resolve().then(function(){return gh})};var Dl=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 Nl=new Map;class Ul extends Pl{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(Nl.has(e))return void(this._icon=Nl.get(e));const t=Rl[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const l=await t();Nl.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:oe}}Ul.styles=[...Pl.styles,Dl],t([He({type:String,reflect:!0})],Ul.prototype,"name",void 0),t([He({type:String,reflect:!0})],Ul.prototype,"size",void 0),t([He({type:String})],Ul.prototype,"ariaLabel",void 0),t([Pe()],Ul.prototype,"_icon",void 0);var Fl=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}`,Wl=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 ql extends Pl{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){const e={disabled:this.disabled,active:this.active};return ee`
|
|
98
|
-
<div class="dropdown-item ${
|
|
97
|
+
`;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;return{label:e.innerText,value:e.getAttribute("value"),disabled:null!==(t=e.disabled)&&void 0!==t?t:void 0}})}_renderEmptyMenu(){return ee` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return ee`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}Tl.styles=[...kl.styles,bl,Zl,xl,Cl,Il],t([He({reflect:!0})],Tl.prototype,"label",void 0),t([He({reflect:!0})],Tl.prototype,"hintText",void 0),t([He({reflect:!0})],Tl.prototype,"name",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"placeholder",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"autofocus",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"required",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"loading",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"value",void 0),t([Pe()],Tl.prototype,"displayValue",void 0),t([((e="value")=>(t,l)=>{const o=t.constructor,n=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(t,i,r){var a;const s=o.getPropertyOptions(e);if(t===("string"==typeof s.attribute?s.attribute:e).toLowerCase()){const t=s.converter||Z,o=("function"==typeof t?t:null!==(a=null==t?void 0:t.fromAttribute)&&void 0!==a?a:Z.fromAttribute)(r,s.type);this[e]!==o&&(this[l]=o)}n.call(this,t,i,r)}})()],Tl.prototype,"defaultValue",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"hasFeedback",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"invalidFeedback",void 0),t([He({type:Boolean,reflect:!0})],Tl.prototype,"invalid",void 0),t([He({type:String,reflect:!0})],Tl.prototype,"autocomplete",void 0),t([He({type:Array})],Tl.prototype,"menuList",void 0),t([Pe()],Tl.prototype,"selectedItems",void 0),t([Pe()],Tl.prototype,"filteredList",void 0),t([$e("input.form-control")],Tl.prototype,"_input",void 0);const Rl={announcement:()=>Promise.resolve().then(function(){return ro}),archive:()=>Promise.resolve().then(function(){return so}),"arrow-bar-down":()=>Promise.resolve().then(function(){return ho}),"arrow-bar-left":()=>Promise.resolve().then(function(){return vo}),"arrow-bar-right":()=>Promise.resolve().then(function(){return po}),"arrow-bar-up":()=>Promise.resolve().then(function(){return mo}),"arrow-circle-down":()=>Promise.resolve().then(function(){return _o}),"arrow-circle-left":()=>Promise.resolve().then(function(){return xo}),"arrow-circle-right":()=>Promise.resolve().then(function(){return Co}),"arrow-circle-up":()=>Promise.resolve().then(function(){return Mo}),"arrow-clockwise":()=>Promise.resolve().then(function(){return Ho}),"arrow-down":()=>Promise.resolve().then(function(){return Oo}),"arrow-left":()=>Promise.resolve().then(function(){return $o}),"arrow-repeat":()=>Promise.resolve().then(function(){return Bo}),"arrow-right":()=>Promise.resolve().then(function(){return Ao}),"arrow-square-down":()=>Promise.resolve().then(function(){return Lo}),"arrow-square-left":()=>Promise.resolve().then(function(){return Io}),"arrow-square-right":()=>Promise.resolve().then(function(){return Ro}),"arrow-square-up":()=>Promise.resolve().then(function(){return No}),"arrow-up":()=>Promise.resolve().then(function(){return Fo}),"bank-fill":()=>Promise.resolve().then(function(){return qo}),"bell-slash":()=>Promise.resolve().then(function(){return Yo}),bell:()=>Promise.resolve().then(function(){return Go}),"bi-funnel":()=>Promise.resolve().then(function(){return Qo}),"bookmark-fill":()=>Promise.resolve().then(function(){return tn}),bookmark:()=>Promise.resolve().then(function(){return on}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return rn}),"box-seam":()=>Promise.resolve().then(function(){return sn}),building:()=>Promise.resolve().then(function(){return dn}),bus:()=>Promise.resolve().then(function(){return un}),calculator:()=>Promise.resolve().then(function(){return fn}),"calendar-check":()=>Promise.resolve().then(function(){return gn}),"calendar-heart":()=>Promise.resolve().then(function(){return wn}),"calendar-x":()=>Promise.resolve().then(function(){return bn}),calendar:()=>Promise.resolve().then(function(){return Zn}),camera:()=>Promise.resolve().then(function(){return yn}),car:()=>Promise.resolve().then(function(){return Vn}),"chat-dots":()=>Promise.resolve().then(function(){return Pn}),"chat-left-text":()=>Promise.resolve().then(function(){return zn}),chat:()=>Promise.resolve().then(function(){return Sn}),"check-circle-fill":()=>Promise.resolve().then(function(){return jn}),"check-circle":()=>Promise.resolve().then(function(){return kn}),check:()=>Promise.resolve().then(function(){return En}),"chevron-down":()=>Promise.resolve().then(function(){return Tn}),"chevron-left":()=>Promise.resolve().then(function(){return Dn}),"chevron-right":()=>Promise.resolve().then(function(){return Un}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return Wn}),"chevron-up":()=>Promise.resolve().then(function(){return Kn}),clock:()=>Promise.resolve().then(function(){return Jn}),"cloud-check":()=>Promise.resolve().then(function(){return Xn}),"cloud-download":()=>Promise.resolve().then(function(){return ei}),"cloud-upload":()=>Promise.resolve().then(function(){return li}),cloud:()=>Promise.resolve().then(function(){return ni}),"code-square":()=>Promise.resolve().then(function(){return ri}),"coins-hand":()=>Promise.resolve().then(function(){return si}),compass:()=>Promise.resolve().then(function(){return di}),copy:()=>Promise.resolve().then(function(){return ui}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return fi}),cross:()=>Promise.resolve().then(function(){return gi}),"cursor-fill":()=>Promise.resolve().then(function(){return wi}),cursor:()=>Promise.resolve().then(function(){return bi}),"dash-circle":()=>Promise.resolve().then(function(){return Zi}),"dash-square":()=>Promise.resolve().then(function(){return yi}),dash:()=>Promise.resolve().then(function(){return Vi}),database:()=>Promise.resolve().then(function(){return Pi}),dataflow:()=>Promise.resolve().then(function(){return zi}),download:()=>Promise.resolve().then(function(){return Si}),edit:()=>Promise.resolve().then(function(){return ji}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return ki}),"exclamation-circle":()=>Promise.resolve().then(function(){return Ei}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return Ti}),"exclamation-triangle":()=>Promise.resolve().then(function(){return Di}),exclamation:()=>Promise.resolve().then(function(){return Ui}),"eye-fill":()=>Promise.resolve().then(function(){return Wi}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Ki}),"eye-slash":()=>Promise.resolve().then(function(){return Ji}),eye:()=>Promise.resolve().then(function(){return Xi}),"face-smile-fill":()=>Promise.resolve().then(function(){return er}),"face-smile":()=>Promise.resolve().then(function(){return lr}),facebook:()=>Promise.resolve().then(function(){return nr}),"file-earmark-text":()=>Promise.resolve().then(function(){return rr}),"file-pdf":()=>Promise.resolve().then(function(){return sr}),"file-plus":()=>Promise.resolve().then(function(){return dr}),"file-text":()=>Promise.resolve().then(function(){return ur}),file:()=>Promise.resolve().then(function(){return fr}),files:()=>Promise.resolve().then(function(){return gr}),fingerprint:()=>Promise.resolve().then(function(){return wr}),flash:()=>Promise.resolve().then(function(){return br}),"folder-check":()=>Promise.resolve().then(function(){return Zr}),"folder-minus":()=>Promise.resolve().then(function(){return yr}),"folder-plus":()=>Promise.resolve().then(function(){return Vr}),folder:()=>Promise.resolve().then(function(){return Pr}),gear:()=>Promise.resolve().then(function(){return zr}),"geo-alt":()=>Promise.resolve().then(function(){return Sr}),"geo-fill":()=>Promise.resolve().then(function(){return jr}),geo:()=>Promise.resolve().then(function(){return kr}),"globe-alt":()=>Promise.resolve().then(function(){return Er}),globe:()=>Promise.resolve().then(function(){return Tr}),google:()=>Promise.resolve().then(function(){return Dr}),"grid-alt":()=>Promise.resolve().then(function(){return Ur}),"grid-fill":()=>Promise.resolve().then(function(){return Wr}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return Kr}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return Jr}),"hard-drive":()=>Promise.resolve().then(function(){return Xr}),heart:()=>Promise.resolve().then(function(){return ea}),"house-door":()=>Promise.resolve().then(function(){return la}),house:()=>Promise.resolve().then(function(){return na}),image:()=>Promise.resolve().then(function(){return ra}),"in-box":()=>Promise.resolve().then(function(){return sa}),"info-circle-fill":()=>Promise.resolve().then(function(){return da}),"info-circle":()=>Promise.resolve().then(function(){return ua}),instagram:()=>Promise.resolve().then(function(){return fa}),key:()=>Promise.resolve().then(function(){return ga}),"laptop-gear":()=>Promise.resolve().then(function(){return wa}),laptop:()=>Promise.resolve().then(function(){return ba}),layers:()=>Promise.resolve().then(function(){return Za}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return ya}),"layout-text-window":()=>Promise.resolve().then(function(){return Va}),layout:()=>Promise.resolve().then(function(){return Pa}),"life-buoy":()=>Promise.resolve().then(function(){return za}),lightbulb:()=>Promise.resolve().then(function(){return Sa}),link:()=>Promise.resolve().then(function(){return ja}),linkedin:()=>Promise.resolve().then(function(){return ka}),list:()=>Promise.resolve().then(function(){return Ea}),"lock-fill":()=>Promise.resolve().then(function(){return Ta}),lock:()=>Promise.resolve().then(function(){return Da}),login:()=>Promise.resolve().then(function(){return Ua}),logout:()=>Promise.resolve().then(function(){return Wa}),luggage:()=>Promise.resolve().then(function(){return Ka}),"mail-open":()=>Promise.resolve().then(function(){return Ja}),mail:()=>Promise.resolve().then(function(){return Xa}),map:()=>Promise.resolve().then(function(){return es}),meetup:()=>Promise.resolve().then(function(){return ls}),menu:()=>Promise.resolve().then(function(){return ns}),microphone:()=>Promise.resolve().then(function(){return rs}),monitor:()=>Promise.resolve().then(function(){return ss}),moon:()=>Promise.resolve().then(function(){return ds}),move:()=>Promise.resolve().then(function(){return us}),paperclip:()=>Promise.resolve().then(function(){return fs}),passcode:()=>Promise.resolve().then(function(){return gs}),passport:()=>Promise.resolve().then(function(){return ws}),pause:()=>Promise.resolve().then(function(){return bs}),pencil:()=>Promise.resolve().then(function(){return Zs}),"pending-circle":()=>Promise.resolve().then(function(){return ys}),"person-dash":()=>Promise.resolve().then(function(){return Vs}),"person-plus":()=>Promise.resolve().then(function(){return Ps}),"person-x":()=>Promise.resolve().then(function(){return zs}),person:()=>Promise.resolve().then(function(){return Ss}),phone:()=>Promise.resolve().then(function(){return js}),"pin-map-fill":()=>Promise.resolve().then(function(){return ks}),pin:()=>Promise.resolve().then(function(){return Es}),placeholder:()=>Promise.resolve().then(function(){return Ts}),plane:()=>Promise.resolve().then(function(){return Ds}),play:()=>Promise.resolve().then(function(){return Us}),"plus-circle":()=>Promise.resolve().then(function(){return Ws}),"plus-square":()=>Promise.resolve().then(function(){return Ks}),plus:()=>Promise.resolve().then(function(){return Js}),printer:()=>Promise.resolve().then(function(){return Xs}),"question-circle":()=>Promise.resolve().then(function(){return ec}),rocket:()=>Promise.resolve().then(function(){return lc}),save:()=>Promise.resolve().then(function(){return nc}),search:()=>Promise.resolve().then(function(){return rc}),send:()=>Promise.resolve().then(function(){return sc}),"sg-crest":()=>Promise.resolve().then(function(){return dc}),share:()=>Promise.resolve().then(function(){return uc}),"shield-tick":()=>Promise.resolve().then(function(){return fc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return gc}),"sidebar-expand":()=>Promise.resolve().then(function(){return wc}),"slash-circle":()=>Promise.resolve().then(function(){return bc}),"slash-divider":()=>Promise.resolve().then(function(){return Zc}),sliders:()=>Promise.resolve().then(function(){return yc}),"sort-ascending":()=>Promise.resolve().then(function(){return Vc}),"sort-descending":()=>Promise.resolve().then(function(){return Pc}),speedometer:()=>Promise.resolve().then(function(){return zc}),"star-ai":()=>Promise.resolve().then(function(){return Sc}),"star-fill":()=>Promise.resolve().then(function(){return jc}),star:()=>Promise.resolve().then(function(){return kc}),stoplights:()=>Promise.resolve().then(function(){return Ec}),sun:()=>Promise.resolve().then(function(){return Tc}),"switch-horizontal":()=>Promise.resolve().then(function(){return Dc}),"switch-vertical":()=>Promise.resolve().then(function(){return Uc}),tablet:()=>Promise.resolve().then(function(){return Wc}),telegram:()=>Promise.resolve().then(function(){return Kc}),telephone:()=>Promise.resolve().then(function(){return Jc}),"three-dots-vertical":()=>Promise.resolve().then(function(){return Xc}),"three-dots":()=>Promise.resolve().then(function(){return ed}),ticket:()=>Promise.resolve().then(function(){return ld}),"toggle-off":()=>Promise.resolve().then(function(){return nd}),"toggle-on":()=>Promise.resolve().then(function(){return rd}),train:()=>Promise.resolve().then(function(){return sd}),translate:()=>Promise.resolve().then(function(){return dd}),trash:()=>Promise.resolve().then(function(){return ud}),"trend-down":()=>Promise.resolve().then(function(){return fd}),"trend-up":()=>Promise.resolve().then(function(){return gd}),truck:()=>Promise.resolve().then(function(){return wd}),"twitter-x":()=>Promise.resolve().then(function(){return bd}),unlock:()=>Promise.resolve().then(function(){return Zd}),upload:()=>Promise.resolve().then(function(){return yd}),"user-check":()=>Promise.resolve().then(function(){return Vd}),"user-circle":()=>Promise.resolve().then(function(){return Pd}),"user-pause":()=>Promise.resolve().then(function(){return zd}),"user-square":()=>Promise.resolve().then(function(){return Sd}),users:()=>Promise.resolve().then(function(){return jd}),"video-recorder":()=>Promise.resolve().then(function(){return kd}),"volume-max":()=>Promise.resolve().then(function(){return Ed}),"volume-x":()=>Promise.resolve().then(function(){return Td}),"window-dash":()=>Promise.resolve().then(function(){return Dd}),"window-desktop":()=>Promise.resolve().then(function(){return Ud}),"window-dock":()=>Promise.resolve().then(function(){return Wd}),"window-fullscreen":()=>Promise.resolve().then(function(){return Kd}),"window-plus":()=>Promise.resolve().then(function(){return Jd}),"window-sidebar":()=>Promise.resolve().then(function(){return Xd}),"window-split":()=>Promise.resolve().then(function(){return eh}),"window-stack":()=>Promise.resolve().then(function(){return lh}),"window-x":()=>Promise.resolve().then(function(){return nh}),window:()=>Promise.resolve().then(function(){return rh}),"xcircle-fill":()=>Promise.resolve().then(function(){return sh}),xcircle:()=>Promise.resolve().then(function(){return dh}),youtube:()=>Promise.resolve().then(function(){return uh}),"zoom-in":()=>Promise.resolve().then(function(){return fh}),"zoom-out":()=>Promise.resolve().then(function(){return gh})};var Dl=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 Nl=new Map;class Ul extends Pl{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(Nl.has(e))return void(this._icon=Nl.get(e));const t=Rl[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const l=await t();Nl.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:oe}}Ul.styles=[...Pl.styles,Dl],t([He({type:String,reflect:!0})],Ul.prototype,"name",void 0),t([He({type:String,reflect:!0})],Ul.prototype,"size",void 0),t([He({type:String})],Ul.prototype,"ariaLabel",void 0),t([Pe()],Ul.prototype,"_icon",void 0);var Fl=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}`,Wl=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 ql extends Pl{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 ee`
|
|
98
|
+
<div class="dropdown-item ${ke(e)}" tabindex=${this.disabled?"-1":"0"}>
|
|
99
99
|
${this._renderItemContent()}
|
|
100
100
|
</div>
|
|
101
101
|
`}}ql.styles=[Wl],t([He({type:Boolean,reflect:!0})],ql.prototype,"active",void 0),t([He({type:Boolean,reflect:!0})],ql.prototype,"disabled",void 0),t([He({type:String,reflect:!0})],ql.prototype,"value",void 0);class Kl extends ql{constructor(){super(...arguments),this._renderItemContent=()=>ee`<div class="normal-item-content" role="presentation">
|
|
@@ -112,10 +112,10 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
112
112
|
|
|
113
113
|
/*! CSS Used keyframes */@keyframes spinner{to{transform:rotate(1turn)}}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`,lo=a`.text-primary{color:var(--sgds-primary-rgb)!important}.text-secondary{color:var(--sgds-secondary-rgb)!important}.text-success{color:var(--sgds-success-rgb)!important}.text-info{color:var(--sgds-info-rgb)!important}.text-warning{color:var(--sgds-warning-rgb)!important}.text-danger{color:var(--sgds-danger-rgb)!important}.text-light{color:var(--sgds-light-rgb)!important}.text-dark{color:var(--sgds-dark-rgb)!important}.text-muted{color:var(--sgds-secondary-color)!important}`;class oo extends Pl{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.orientation="vertical"}render(){return Xl`
|
|
114
114
|
<div
|
|
115
|
-
class="spinner-wrapper ${
|
|
115
|
+
class="spinner-wrapper ${ke({horizontal:"horizontal"===this.orientation})}"
|
|
116
116
|
>
|
|
117
117
|
<div
|
|
118
|
-
class="spinner ${
|
|
118
|
+
class="spinner ${ke({[`spinner-${this.size}`]:this.size})}"
|
|
119
119
|
role="status"
|
|
120
120
|
>
|
|
121
121
|
${this.label?oe:Xl`<span class="sr-only">Loading...</span>`}
|
|
@@ -135,7 +135,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
135
135
|
`});return 0===this.menuList.length?this._renderEmptyMenu():e}_renderInput(){const e=this.hasFeedback;return ee`
|
|
136
136
|
<div
|
|
137
137
|
${Ke(this.myDropdown)}
|
|
138
|
-
class="form-control-group ${
|
|
138
|
+
class="form-control-group ${ke({disabled:this.disabled,readonly:this.readonly,"is-invalid":this.invalid&&e})}"
|
|
139
139
|
@click=${this._handleClick}
|
|
140
140
|
>
|
|
141
141
|
<input
|
|
@@ -160,7 +160,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
160
160
|
</div>
|
|
161
161
|
`}render(){return ee`
|
|
162
162
|
<div
|
|
163
|
-
class=${
|
|
163
|
+
class=${ke({disabled:this.disabled,select:!0,"form-control-container":!0,"m-width-160":!0})}
|
|
164
164
|
>
|
|
165
165
|
${this._renderLabel()}
|
|
166
166
|
<!-- The input -->
|
|
@@ -173,7 +173,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
173
173
|
aria-label=${this.label||"Options"}
|
|
174
174
|
${Ke(this.menuRef)}
|
|
175
175
|
>
|
|
176
|
-
<slot id="default" class=${
|
|
176
|
+
<slot id="default" class=${ke({"is-loading":this.loading})} @slotchange=${this._handleSlotChange}
|
|
177
177
|
>${this._renderMenu()}</slot
|
|
178
178
|
>
|
|
179
179
|
${this.loading?this._renderLoadingMenu():oe}
|
|
@@ -324,7 +324,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
324
324
|
clip-rule="evenodd"
|
|
325
325
|
/>
|
|
326
326
|
</svg>
|
|
327
|
-
`,
|
|
327
|
+
`,Ao=Object.freeze({__proto__:null,default:jo}),ko=ee`
|
|
328
328
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
329
329
|
<path
|
|
330
330
|
fill="currentColor"
|
|
@@ -337,7 +337,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
337
337
|
clip-rule="evenodd"
|
|
338
338
|
/>
|
|
339
339
|
</svg>
|
|
340
|
-
`,Lo=Object.freeze({__proto__:null,default:
|
|
340
|
+
`,Lo=Object.freeze({__proto__:null,default:ko}),Eo=ee`
|
|
341
341
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
342
342
|
<path
|
|
343
343
|
fill="currentColor"
|
|
@@ -604,7 +604,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
604
604
|
clip-rule="evenodd"
|
|
605
605
|
/>
|
|
606
606
|
</svg>
|
|
607
|
-
`,jn=Object.freeze({__proto__:null,default:Bn}),
|
|
607
|
+
`,jn=Object.freeze({__proto__:null,default:Bn}),An=ee`
|
|
608
608
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
609
609
|
<path
|
|
610
610
|
fill="currentColor"
|
|
@@ -613,7 +613,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
613
613
|
clip-rule="evenodd"
|
|
614
614
|
/>
|
|
615
615
|
</svg>
|
|
616
|
-
`,
|
|
616
|
+
`,kn=Object.freeze({__proto__:null,default:An}),Ln=ee`
|
|
617
617
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
618
618
|
<path
|
|
619
619
|
fill="currentColor"
|
|
@@ -893,7 +893,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
893
893
|
d="M7.273 3.875H10.5a.625.625 0 1 1 0 1.25H7.3c-.85 0-1.45 0-1.92.039-.461.038-.74.109-.958.22-.447.228-.81.59-1.038 1.038-.111.218-.182.497-.22.958-.039.47-.039 1.07-.039 1.92v7.4c0 .85 0 1.45.039 1.92.038.461.109.74.22.958.228.447.59.81 1.038 1.038.218.111.497.183.958.22.47.039 1.07.039 1.92.039h7.4c.85 0 1.45 0 1.92-.039.461-.037.74-.109.958-.22.447-.228.81-.59 1.038-1.038.111-.218.183-.497.22-.959.039-.468.039-1.069.039-1.919v-3.2a.625.625 0 1 1 1.25 0v3.227c0 .817 0 1.468-.043 1.994-.044.54-.136 1.001-.352 1.425a3.625 3.625 0 0 1-1.584 1.584c-.424.216-.886.308-1.425.352-.526.043-1.177.043-1.994.043H7.273c-.817 0-1.469 0-1.994-.043-.54-.044-1.001-.136-1.425-.352a3.625 3.625 0 0 1-1.584-1.584c-.216-.424-.308-.886-.352-1.425-.043-.526-.043-1.177-.043-1.994V9.273c0-.817 0-1.469.043-1.994.044-.54.136-1.001.352-1.425A3.625 3.625 0 0 1 3.854 4.27c.424-.216.886-.308 1.425-.352.525-.043 1.177-.043 1.994-.043Z"
|
|
894
894
|
/>
|
|
895
895
|
</svg>
|
|
896
|
-
`,ji=Object.freeze({__proto__:null,default:Bi}),
|
|
896
|
+
`,ji=Object.freeze({__proto__:null,default:Bi}),Ai=ee`
|
|
897
897
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
898
898
|
<path
|
|
899
899
|
fill="currentColor"
|
|
@@ -902,7 +902,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
902
902
|
clip-rule="evenodd"
|
|
903
903
|
/>
|
|
904
904
|
</svg>
|
|
905
|
-
`,
|
|
905
|
+
`,ki=Object.freeze({__proto__:null,default:Ai}),Li=ee`
|
|
906
906
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
907
907
|
<path
|
|
908
908
|
fill="currentColor"
|
|
@@ -1189,7 +1189,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
1189
1189
|
d="M8.316 13.963a.6.6 0 1 0-.231-1.177c-1.729.34-3.236.904-4.328 1.64-1.08.728-1.857 1.702-1.857 2.868 0 1.563 1.38 2.78 3.137 3.57 1.813.816 4.275 1.305 6.963 1.305 2.688 0 5.151-.49 6.964-1.305 1.757-.79 3.136-2.007 3.136-3.57 0-1.166-.777-2.14-1.856-2.867-1.092-.737-2.6-1.302-4.328-1.641a.6.6 0 1 0-.231 1.177c1.627.32 2.97.839 3.888 1.458.932.63 1.327 1.285 1.327 1.873 0 .797-.747 1.719-2.428 2.475-1.626.732-3.913 1.2-6.472 1.2-2.558 0-4.846-.468-6.47-1.2-1.683-.756-2.43-1.678-2.43-2.475 0-.588.395-1.244 1.328-1.873.919-.62 2.261-1.138 3.888-1.458Z"
|
|
1190
1190
|
/>
|
|
1191
1191
|
</svg>
|
|
1192
|
-
`,jr=Object.freeze({__proto__:null,default:Br}),
|
|
1192
|
+
`,jr=Object.freeze({__proto__:null,default:Br}),Ar=ee`
|
|
1193
1193
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1194
1194
|
<path
|
|
1195
1195
|
fill="currentColor"
|
|
@@ -1202,7 +1202,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
1202
1202
|
d="M8.316 13.963a.6.6 0 1 0-.231-1.177c-1.729.34-3.236.904-4.328 1.64-1.08.728-1.857 1.702-1.857 2.868 0 1.563 1.38 2.78 3.137 3.57 1.813.816 4.275 1.305 6.963 1.305 2.688 0 5.151-.49 6.964-1.305 1.757-.79 3.136-2.007 3.136-3.57 0-1.166-.777-2.14-1.856-2.867-1.092-.737-2.6-1.301-4.328-1.641a.6.6 0 1 0-.231 1.177c1.627.32 2.97.839 3.888 1.459.932.628 1.327 1.285 1.327 1.872 0 .797-.747 1.719-2.428 2.475-1.626.732-3.913 1.2-6.472 1.2-2.558 0-4.846-.468-6.47-1.2-1.683-.756-2.43-1.678-2.43-2.475 0-.587.395-1.244 1.328-1.873.919-.62 2.261-1.138 3.888-1.458Z"
|
|
1203
1203
|
/>
|
|
1204
1204
|
</svg>
|
|
1205
|
-
`,
|
|
1205
|
+
`,kr=Object.freeze({__proto__:null,default:Ar}),Lr=ee`
|
|
1206
1206
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1207
1207
|
<path fill="currentColor" d="M16.75 5.2a.863.863 0 1 0 0 1.725.863.863 0 0 0 0-1.725Z" />
|
|
1208
1208
|
<path
|
|
@@ -1448,14 +1448,14 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
1448
1448
|
clip-rule="evenodd"
|
|
1449
1449
|
/>
|
|
1450
1450
|
</svg>
|
|
1451
|
-
`,ja=Object.freeze({__proto__:null,default:Ba}),
|
|
1451
|
+
`,ja=Object.freeze({__proto__:null,default:Ba}),Aa=ee`
|
|
1452
1452
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1453
1453
|
<path
|
|
1454
1454
|
fill="currentColor"
|
|
1455
1455
|
d="M3 4.29C3 3.576 3.592 3 4.322 3h15.356C20.408 3 21 3.577 21 4.29v15.42c0 .713-.592 1.29-1.322 1.29H4.322C3.592 21 3 20.423 3 19.71V4.29Zm5.56 13.778V9.94h-2.7v8.128h2.7ZM7.21 8.83c.942 0 1.529-.623 1.529-1.404-.017-.798-.585-1.404-1.51-1.404S5.7 6.629 5.7 7.426c0 .78.586 1.404 1.493 1.404h.018Zm5.522 9.238v-4.54c0-.242.018-.485.09-.658.195-.485.64-.988 1.386-.988.978 0 1.368.745 1.368 1.838v4.348h2.701v-4.662c0-2.497-1.332-3.658-3.109-3.658-1.433 0-2.076.787-2.436 1.342v.028h-.018l.018-.028V9.94h-2.7c.034.763 0 8.128 0 8.128h2.7Z"
|
|
1456
1456
|
/>
|
|
1457
1457
|
</svg>
|
|
1458
|
-
`,
|
|
1458
|
+
`,ka=Object.freeze({__proto__:null,default:Aa}),La=ee`
|
|
1459
1459
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1460
1460
|
<path
|
|
1461
1461
|
fill="currentColor"
|
|
@@ -1709,7 +1709,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
1709
1709
|
clip-rule="evenodd"
|
|
1710
1710
|
/>
|
|
1711
1711
|
</svg>
|
|
1712
|
-
`,js=Object.freeze({__proto__:null,default:Bs}),
|
|
1712
|
+
`,js=Object.freeze({__proto__:null,default:Bs}),As=ee`
|
|
1713
1713
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1714
1714
|
<path
|
|
1715
1715
|
fill="currentColor"
|
|
@@ -1718,7 +1718,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
1718
1718
|
clip-rule="evenodd"
|
|
1719
1719
|
/>
|
|
1720
1720
|
</svg>
|
|
1721
|
-
`,
|
|
1721
|
+
`,ks=Object.freeze({__proto__:null,default:As}),Ls=ee`
|
|
1722
1722
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1723
1723
|
<path
|
|
1724
1724
|
fill="currentColor"
|
|
@@ -1993,7 +1993,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
1993
1993
|
clip-rule="evenodd"
|
|
1994
1994
|
/>
|
|
1995
1995
|
</svg>
|
|
1996
|
-
`,jc=Object.freeze({__proto__:null,default:Bc}),
|
|
1996
|
+
`,jc=Object.freeze({__proto__:null,default:Bc}),Ac=ee`
|
|
1997
1997
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
1998
1998
|
<path
|
|
1999
1999
|
fill="currentColor"
|
|
@@ -2002,7 +2002,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
2002
2002
|
clip-rule="evenodd"
|
|
2003
2003
|
/>
|
|
2004
2004
|
</svg>
|
|
2005
|
-
`,
|
|
2005
|
+
`,kc=Object.freeze({__proto__:null,default:Ac}),Lc=ee`
|
|
2006
2006
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2007
2007
|
<path
|
|
2008
2008
|
fill="currentColor"
|
|
@@ -2269,7 +2269,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
2269
2269
|
d="M14.92 3.056a.625.625 0 0 1 .815-.345 4.626 4.626 0 0 1 0 8.578.625.625 0 0 1-.47-1.16 3.376 3.376 0 0 0 0-6.259.625.625 0 0 1-.344-.814ZM7.977 14.375h3.046c.912 0 1.629 0 2.208.04.59.04 1.082.123 1.539.312a4.625 4.625 0 0 1 2.503 2.503c.189.456.272.95.313 1.539.039.579.039 1.296.039 2.208V21a.625.625 0 1 1-1.25 0c0-.94 0-1.614-.037-2.146-.036-.526-.105-.867-.22-1.146a3.375 3.375 0 0 0-1.826-1.826c-.28-.115-.62-.184-1.146-.22-.532-.037-1.206-.037-2.146-.037H8c-.94 0-1.614 0-2.146.037-.526.035-.867.104-1.146.22-.827.342-1.484 1-1.826 1.826-.116.28-.185.62-.22 1.146-.037.532-.037 1.206-.037 2.146a.625.625 0 1 1-1.25 0v-.023c0-.912 0-1.629.04-2.208.04-.59.123-1.082.312-1.539a4.625 4.625 0 0 1 2.503-2.503c.456-.189.95-.272 1.539-.313.579-.039 1.296-.039 2.208-.039Zm10.418.595a.625.625 0 0 1 .76-.45 4.627 4.627 0 0 1 3.47 4.48v2a.625.625 0 1 1-1.25 0v-2a3.377 3.377 0 0 0-2.53-3.269.625.625 0 0 1-.45-.76Z"
|
|
2270
2270
|
/>
|
|
2271
2271
|
</svg>
|
|
2272
|
-
`,jd=Object.freeze({__proto__:null,default:Bd}),
|
|
2272
|
+
`,jd=Object.freeze({__proto__:null,default:Bd}),Ad=ee`
|
|
2273
2273
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2274
2274
|
<path
|
|
2275
2275
|
fill="currentColor"
|
|
@@ -2278,7 +2278,7 @@ const Yl=Symbol.for(""),Jl=e=>{if(e?.r===Yl)return e?._$litStatic$},Gl=new Map,X
|
|
|
2278
2278
|
clip-rule="evenodd"
|
|
2279
2279
|
/>
|
|
2280
2280
|
</svg>
|
|
2281
|
-
`,
|
|
2281
|
+
`,kd=Object.freeze({__proto__:null,default:Ad}),Ld=ee`
|
|
2282
2282
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2283
2283
|
<path
|
|
2284
2284
|
fill="currentColor"
|