@govtechsg/sgds-web-component 3.26.1-rc.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.
@@ -10,7 +10,7 @@ const s=globalThis,i=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const S=globalThis,M=e=>{S.emitLitDebugLogEvents&&S.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let Z,V=0;S.litIssuedWarnings??=new Set,Z=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",S.litIssuedWarnings.has(t)||S.litIssuedWarnings.has(e)||(console.warn(t),S.litIssuedWarnings.add(t))},queueMicrotask(()=>{Z("dev-mode","Lit is in dev mode. Not recommended for production!")});const z=S.ShadyDOM?.inUse&&!0===S.ShadyDOM?.noPatch?S.ShadyDOM.wrap:e=>e,P=S.trustedTypes,L=P?P.createPolicy("lit-html",{createHTML:e=>e}):void 0,I=e=>e,A=(e,t,s)=>I,D=e=>{if(re!==A)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");re=e},E=()=>{re=A},B=(e,t,s)=>re(e,t,s),H="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+O,F=`<${T}>`,R=document,N=()=>R.createComment(""),j=e=>null===e||"object"!=typeof e&&"function"!=typeof e,U=Array.isArray,q=e=>U(e)||"function"==typeof e?.[Symbol.iterator],Y="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,G=/>/g,J=new RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,ee=/^(?:script|style|textarea|title)$/i,te=(se=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$)&&Z("","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$:se,strings:e,values:t}));var se;const ie=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),oe=new WeakMap,ne=R.createTreeWalker(R,129);let re=A;function le(e,t){if(!U(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!==L?L.createHTML(t):t}const de=(e,t)=>{const s=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",n=W;for(let t=0;t<s;t++){const s=e[t];let r,l,d=-1,c=0;for(;c<s.length&&(n.lastIndex=c,l=n.exec(s),null!==l);)if(c=n.lastIndex,n===W){if("!--"===l[1])n=K;else if(void 0!==l[1])n=G;else if(void 0!==l[2])ee.test(l[2])&&(a=new RegExp(`</${l[2]}`,"g")),n=J;else if(void 0!==l[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 n===J?">"===l[0]?(n=a??W,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,r=l[1],n=void 0===l[3]?J:'"'===l[3]?Q:X):n===Q||n===X?n=J:n===K||n===G?n=W:(n=J,a=void 0);console.assert(-1===d||n===J||n===X||n===Q,"unexpected parse state B");const h=n===J&&e[t+1].startsWith("/>")?" ":"";o+=n===W?s+F:d>=0?(i.push(r),s.slice(0,d)+H+s.slice(d)+O+h):s+O+(-2===d?t:h)}return[le(e,o+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class ce{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let a=0,o=0;const n=e.length-1,r=this.parts,[l,d]=de(e,t);if(this.el=ce.createElement(l,s),ne.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=ne.nextNode())&&r.length<n;){if(1===i.nodeType){{const e=i.localName;if(/^(?:textarea|template)$/i.test(e)&&i.innerHTML.includes(O)){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);Z("",t)}}if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(H)){const t=d[o++],s=i.getAttribute(e).split(O),n=/([.?@])?(.*)/.exec(t);r.push({type:1,index:a,name:n[2],strings:s,ctor:"."===n[1]?ve:"?"===n[1]?me:"@"===n[1]?fe:ge}),i.removeAttribute(e)}else e.startsWith(O)&&(r.push({type:6,index:a}),i.removeAttribute(e));if(ee.test(i.tagName)){const e=i.textContent.split(O),t=e.length-1;if(t>0){i.textContent=P?P.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],N()),ne.nextNode(),r.push({type:2,index:++a});i.append(e[t],N())}}}else if(8===i.nodeType){if(i.data===T)r.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(O,e+1));)r.push({type:7,index:a}),e+=O.length-1}}a++}if(d.length!==o)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("${...}")+"`");M&&M({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const s=R.createElement("template");return s.innerHTML=e,s}}function he(e,t,s=e,i){if(t===ie)return t;let a=void 0!==i?s.__directives?.[i]:s.__directive;const o=j(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$notifyDirectiveConnectionChanged?.(!1),void 0===o?a=void 0:(a=new o(e),a._$initialize(e,s,i)),void 0!==i?(s.__directives??=[])[i]=a:s.__directive=a),void 0!==a&&(t=he(e,a._$resolve(e,t.values),a,i)),t}class pe{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:s}=this._$template,i=(e?.creationScope??R).importNode(t,!0);ne.currentNode=i;let a=ne.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let t;2===r.type?t=new ue(a,a.nextSibling,this,e):1===r.type?t=new r.ctor(a,r.name,r.strings,this,e):6===r.type&&(t=new be(a,this,e)),this._$parts.push(t),r=s[++n]}o!==r?.index&&(a=ne.nextNode(),o++)}return ne.currentNode=R,i}_update(e){let t=0;for(const s of this._$parts)void 0!==s&&(M&&M({kind:"set part",part:s,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==s.strings?(s._$setValue(e,s,t),t+=s.strings.length-2):s._$setValue(e[t])),t++}}class ue{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,s,i){this.type=2,this._$committedValue=ae,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=s,this.options=i,this.__isConnected=i?.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=he(this,e,t),j(e))e===ae||null==e||""===e?(this._$committedValue!==ae&&(M&&M({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=ae):e!==this._$committedValue&&e!==ie&&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 q(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!==A){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)}}M&&M({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==ae&&j(this._$committedValue)){const t=z(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=B(t,"data","property")),e=this._textSanitizer(e),M&&M({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=R.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=B(t,"data","property")),e=this._textSanitizer(e),M&&M({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$getTemplate(e):(void 0===s.el&&(s.el=ce.createElement(le(s.h,s.h[0]),this.options)),s);if(this._$committedValue?._$template===i)M&&M({kind:"template updating",template:i,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new pe(i,this),s=e._clone(this.options);M&&M({kind:"template instantiated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:s,values:t}),e._update(t),M&&M({kind:"template instantiated and updated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:s,values:t}),this._commitNode(s),this._$committedValue=e}}_$getTemplate(e){let t=oe.get(e.strings);return void 0===t&&oe.set(e.strings,t=new ce(e)),t}_commitIterable(e){U(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let s,i=0;for(const a of e)i===t.length?t.push(s=new ue(this._insert(N()),this._insert(N()),this,this.options)):s=t[i],s._$setValue(a),i++;i<t.length&&(this._$clear(s&&z(s._$endNode).nextSibling,i),t.length=i)}_$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 ge{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,s,i,a){this.type=1,this._$committedValue=ae,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=i,this.options=a,s.length>2||""!==s[0]||""!==s[1]?(this._$committedValue=new Array(s.length-1).fill(new String),this.strings=s):this._$committedValue=ae,this._sanitizer=void 0}_$setValue(e,t=this,s,i){const a=this.strings;let o=!1;if(void 0===a)e=he(this,e,t,0),o=!j(e)||e!==this._$committedValue&&e!==ie,o&&(this._$committedValue=e);else{const i=e;let n,r;for(e=a[0],n=0;n<a.length-1;n++)r=he(this,i[s+n],t,n),r===ie&&(r=this._$committedValue[n]),o||=!j(r)||r!==this._$committedValue[n],r===ae?e=ae:e!==ae&&(e+=(r??"")+a[n+1]),this._$committedValue[n]=r}o&&!i&&this._commitValue(e)}_commitValue(e){e===ae?z(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"attribute")),e=this._sanitizer(e??""),M&&M({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),z(this.element).setAttribute(this.name,e??""))}}class ve extends ge{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"property")),e=this._sanitizer(e),M&&M({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===ae?void 0:e}}class me extends ge{constructor(){super(...arguments),this.type=4}_commitValue(e){M&&M({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===ae),options:this.options}),z(this.element).toggleAttribute(this.name,!!e&&e!==ae)}}class fe extends ge{constructor(e,t,s,i,a){if(super(e,t,s,i,a),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=he(this,e,t,0)??ae)===ie)return;const s=this._$committedValue,i=e===ae&&s!==ae||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,a=e!==ae&&(s===ae||i);M&&M({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:i,addListener:a,oldListener:s}),i&&this.element.removeEventListener(this.name,this,s),a&&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 be{constructor(e,t,s){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=s}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){M&&M({kind:"commit to element binding",element:this.element,value:e,options:this.options}),he(this,e)}}const we={_boundAttributeSuffix:H,_marker:O,_markerMatch:T,_HTML_RESULT:1,_getTemplateHtml:de,_TemplateInstance:pe,_isIterable:q,_resolveDirective:he,_ChildPart:ue,_AttributePart:ge,_BooleanAttributePart:me,_EventPart:fe,_PropertyPart:ve,_ElementPart:be},ye=S.litHtmlPolyfillSupportDevMode;ye?.(ce,ue),(S.litHtmlVersions??=[]).push("3.3.2"),S.litHtmlVersions.length>1&&queueMicrotask(()=>{Z("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const _e=(e,t,s)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const i=V++,a=s?.renderBefore??t;let o=a._$litPart$;if(M&&M({kind:"begin render",id:i,value:e,container:t,options:s,part:o}),void 0===o){const e=s?.renderBefore??null;a._$litPart$=o=new ue(t.insertBefore(N(),e),e,void 0,s??{})}return o._$setValue(e),M&&M({kind:"end render",id:i,value:e,container:t,options:s,part:o}),o};_e.setSanitizer=D,_e.createSanitizer=B,_e._testOnlyClearSanitizerFactoryDoNotCallOrElse=E;
13
+ const S=globalThis,M=e=>{S.emitLitDebugLogEvents&&S.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let Z,V=0;S.litIssuedWarnings??=new Set,Z=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",S.litIssuedWarnings.has(t)||S.litIssuedWarnings.has(e)||(console.warn(t),S.litIssuedWarnings.add(t))},queueMicrotask(()=>{Z("dev-mode","Lit is in dev mode. Not recommended for production!")});const z=S.ShadyDOM?.inUse&&!0===S.ShadyDOM?.noPatch?S.ShadyDOM.wrap:e=>e,P=S.trustedTypes,L=P?P.createPolicy("lit-html",{createHTML:e=>e}):void 0,A=e=>e,D=(e,t,s)=>A,I=e=>{if(re!==D)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");re=e},E=()=>{re=D},B=(e,t,s)=>re(e,t,s),H="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+O,F=`<${T}>`,R=document,N=()=>R.createComment(""),j=e=>null===e||"object"!=typeof e&&"function"!=typeof e,U=Array.isArray,q=e=>U(e)||"function"==typeof e?.[Symbol.iterator],Y="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,G=/>/g,J=new RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,ee=/^(?:script|style|textarea|title)$/i,te=(se=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$)&&Z("","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$:se,strings:e,values:t}));var se;const ie=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),oe=new WeakMap,ne=R.createTreeWalker(R,129);let re=D;function le(e,t){if(!U(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!==L?L.createHTML(t):t}const de=(e,t)=>{const s=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",n=W;for(let t=0;t<s;t++){const s=e[t];let r,l,d=-1,c=0;for(;c<s.length&&(n.lastIndex=c,l=n.exec(s),null!==l);)if(c=n.lastIndex,n===W){if("!--"===l[1])n=K;else if(void 0!==l[1])n=G;else if(void 0!==l[2])ee.test(l[2])&&(a=new RegExp(`</${l[2]}`,"g")),n=J;else if(void 0!==l[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 n===J?">"===l[0]?(n=a??W,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,r=l[1],n=void 0===l[3]?J:'"'===l[3]?Q:X):n===Q||n===X?n=J:n===K||n===G?n=W:(n=J,a=void 0);console.assert(-1===d||n===J||n===X||n===Q,"unexpected parse state B");const h=n===J&&e[t+1].startsWith("/>")?" ":"";o+=n===W?s+F:d>=0?(i.push(r),s.slice(0,d)+H+s.slice(d)+O+h):s+O+(-2===d?t:h)}return[le(e,o+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class ce{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let a=0,o=0;const n=e.length-1,r=this.parts,[l,d]=de(e,t);if(this.el=ce.createElement(l,s),ne.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=ne.nextNode())&&r.length<n;){if(1===i.nodeType){{const e=i.localName;if(/^(?:textarea|template)$/i.test(e)&&i.innerHTML.includes(O)){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);Z("",t)}}if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(H)){const t=d[o++],s=i.getAttribute(e).split(O),n=/([.?@])?(.*)/.exec(t);r.push({type:1,index:a,name:n[2],strings:s,ctor:"."===n[1]?ve:"?"===n[1]?me:"@"===n[1]?fe:ge}),i.removeAttribute(e)}else e.startsWith(O)&&(r.push({type:6,index:a}),i.removeAttribute(e));if(ee.test(i.tagName)){const e=i.textContent.split(O),t=e.length-1;if(t>0){i.textContent=P?P.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],N()),ne.nextNode(),r.push({type:2,index:++a});i.append(e[t],N())}}}else if(8===i.nodeType){if(i.data===T)r.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(O,e+1));)r.push({type:7,index:a}),e+=O.length-1}}a++}if(d.length!==o)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("${...}")+"`");M&&M({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const s=R.createElement("template");return s.innerHTML=e,s}}function he(e,t,s=e,i){if(t===ie)return t;let a=void 0!==i?s.__directives?.[i]:s.__directive;const o=j(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$notifyDirectiveConnectionChanged?.(!1),void 0===o?a=void 0:(a=new o(e),a._$initialize(e,s,i)),void 0!==i?(s.__directives??=[])[i]=a:s.__directive=a),void 0!==a&&(t=he(e,a._$resolve(e,t.values),a,i)),t}class pe{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:s}=this._$template,i=(e?.creationScope??R).importNode(t,!0);ne.currentNode=i;let a=ne.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let t;2===r.type?t=new ue(a,a.nextSibling,this,e):1===r.type?t=new r.ctor(a,r.name,r.strings,this,e):6===r.type&&(t=new be(a,this,e)),this._$parts.push(t),r=s[++n]}o!==r?.index&&(a=ne.nextNode(),o++)}return ne.currentNode=R,i}_update(e){let t=0;for(const s of this._$parts)void 0!==s&&(M&&M({kind:"set part",part:s,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==s.strings?(s._$setValue(e,s,t),t+=s.strings.length-2):s._$setValue(e[t])),t++}}class ue{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,s,i){this.type=2,this._$committedValue=ae,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=s,this.options=i,this.__isConnected=i?.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=he(this,e,t),j(e))e===ae||null==e||""===e?(this._$committedValue!==ae&&(M&&M({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=ae):e!==this._$committedValue&&e!==ie&&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 q(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!==D){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)}}M&&M({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==ae&&j(this._$committedValue)){const t=z(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=B(t,"data","property")),e=this._textSanitizer(e),M&&M({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=R.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=B(t,"data","property")),e=this._textSanitizer(e),M&&M({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$getTemplate(e):(void 0===s.el&&(s.el=ce.createElement(le(s.h,s.h[0]),this.options)),s);if(this._$committedValue?._$template===i)M&&M({kind:"template updating",template:i,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new pe(i,this),s=e._clone(this.options);M&&M({kind:"template instantiated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:s,values:t}),e._update(t),M&&M({kind:"template instantiated and updated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:s,values:t}),this._commitNode(s),this._$committedValue=e}}_$getTemplate(e){let t=oe.get(e.strings);return void 0===t&&oe.set(e.strings,t=new ce(e)),t}_commitIterable(e){U(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let s,i=0;for(const a of e)i===t.length?t.push(s=new ue(this._insert(N()),this._insert(N()),this,this.options)):s=t[i],s._$setValue(a),i++;i<t.length&&(this._$clear(s&&z(s._$endNode).nextSibling,i),t.length=i)}_$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 ge{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,s,i,a){this.type=1,this._$committedValue=ae,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=i,this.options=a,s.length>2||""!==s[0]||""!==s[1]?(this._$committedValue=new Array(s.length-1).fill(new String),this.strings=s):this._$committedValue=ae,this._sanitizer=void 0}_$setValue(e,t=this,s,i){const a=this.strings;let o=!1;if(void 0===a)e=he(this,e,t,0),o=!j(e)||e!==this._$committedValue&&e!==ie,o&&(this._$committedValue=e);else{const i=e;let n,r;for(e=a[0],n=0;n<a.length-1;n++)r=he(this,i[s+n],t,n),r===ie&&(r=this._$committedValue[n]),o||=!j(r)||r!==this._$committedValue[n],r===ae?e=ae:e!==ae&&(e+=(r??"")+a[n+1]),this._$committedValue[n]=r}o&&!i&&this._commitValue(e)}_commitValue(e){e===ae?z(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"attribute")),e=this._sanitizer(e??""),M&&M({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),z(this.element).setAttribute(this.name,e??""))}}class ve extends ge{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=re(this.element,this.name,"property")),e=this._sanitizer(e),M&&M({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===ae?void 0:e}}class me extends ge{constructor(){super(...arguments),this.type=4}_commitValue(e){M&&M({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===ae),options:this.options}),z(this.element).toggleAttribute(this.name,!!e&&e!==ae)}}class fe extends ge{constructor(e,t,s,i,a){if(super(e,t,s,i,a),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=he(this,e,t,0)??ae)===ie)return;const s=this._$committedValue,i=e===ae&&s!==ae||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,a=e!==ae&&(s===ae||i);M&&M({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:i,addListener:a,oldListener:s}),i&&this.element.removeEventListener(this.name,this,s),a&&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 be{constructor(e,t,s){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=s}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){M&&M({kind:"commit to element binding",element:this.element,value:e,options:this.options}),he(this,e)}}const we={_boundAttributeSuffix:H,_marker:O,_markerMatch:T,_HTML_RESULT:1,_getTemplateHtml:de,_TemplateInstance:pe,_isIterable:q,_resolveDirective:he,_ChildPart:ue,_AttributePart:ge,_BooleanAttributePart:me,_EventPart:fe,_PropertyPart:ve,_ElementPart:be},ye=S.litHtmlPolyfillSupportDevMode;ye?.(ce,ue),(S.litHtmlVersions??=[]).push("3.3.2"),S.litHtmlVersions.length>1&&queueMicrotask(()=>{Z("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const _e=(e,t,s)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const i=V++,a=s?.renderBefore??t;let o=a._$litPart$;if(M&&M({kind:"begin render",id:i,value:e,container:t,options:s,part:o}),void 0===o){const e=s?.renderBefore??null;a._$litPart$=o=new ue(t.insertBefore(N(),e),e,void 0,s??{})}return o._$setValue(e),M&&M({kind:"end render",id:i,value:e,container:t,options:s,part:o}),o};_e.setSanitizer=I,_e.createSanitizer=B,_e._testOnlyClearSanitizerFactoryDoNotCallOrElse=E;
14
14
  /**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
@@ -37,12 +37,12 @@ let Me;Se?.({LitElement:Ce}),(xe.litElementVersions??=[]).push("4.2.2"),xe.litEl
37
37
  * @license
38
38
  * Copyright 2017 Google LLC
39
39
  * SPDX-License-Identifier: BSD-3-Clause
40
- */let Ie;function Ae(e,t){return(s,i,a)=>{const o=s=>{const a=s.renderRoot?.querySelector(e)??null;if(null===a&&t&&!s.hasUpdated){const t="object"==typeof i?i.name:i;Ie("",`@query'd field ${JSON.stringify(String(t))} with the 'cache' flag set for selector '${e}' 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 a};if(t){const{get:e,set:t}="object"==typeof i?s:a??(()=>{const e=Symbol(`${String(i)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Le(s,i,{get(){let s=e.call(this);return void 0===s&&(s=o(this),(null!==s||this.hasUpdated)&&t.call(this,s)),s}})}return Le(s,i,{get(){return o(this)}})}}
40
+ */let Ae;function De(e,t){return(s,i,a)=>{const o=s=>{const a=s.renderRoot?.querySelector(e)??null;if(null===a&&t&&!s.hasUpdated){const t="object"==typeof i?i.name:i;Ae("",`@query'd field ${JSON.stringify(String(t))} with the 'cache' flag set for selector '${e}' 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 a};if(t){const{get:e,set:t}="object"==typeof i?s:a??(()=>{const e=Symbol(`${String(i)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Le(s,i,{get(){let s=e.call(this);return void 0===s&&(s=o(this),(null!==s||this.hasUpdated)&&t.call(this,s)),s}})}return Le(s,i,{get(){return o(this)}})}}
41
41
  /**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */function De(e){return(t,s)=>Le(t,s,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}
45
+ */function Ie(e){return(t,s)=>Le(t,s,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}
46
46
  /**
47
47
  * @license
48
48
  * Copyright 2021 Google LLC
@@ -52,7 +52,7 @@ let Me;Se?.({LitElement:Ce}),(xe.litElementVersions??=[]).push("4.2.2"),xe.litEl
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */function Be(e){return(t,s)=>{const{slot:i}=e??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Le(t,s,{get(){const t=this.renderRoot?.querySelector(a);return t?.assignedNodes(e)??[]}})}}globalThis.litIssuedWarnings??=new Set,Ie=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};var He=r`: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 Oe extends Ce{emit(e,t){const s=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(s),s}static define(e,t=this,s={}){if(customElements.get(e));else try{customElements.define(e,t,s)}catch(i){customElements.define(e,class extends t{},s)}}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}))}))}}Oe.styles=[He],Oe.dependencies={},t([ze({type:Boolean,reflect:!0})],Oe.prototype,"ssr",void 0);var Te=r`:host([variant=border]) .accordion{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}`;const Fe=["Enter","ArrowUp","ArrowLeft","ArrowDown","ArrowRight"];class Re extends Oe{constructor(){super(...arguments),this.allowMultiple=!1,this.variant="default",this.density="default"}get items(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}_handleSlotChange(){const e=[...this.items];e.forEach((t,s)=>{if(e.length>1)switch(s){case 0:t.setAttribute("first-of-type","");break;case e.length-1:t.setAttribute("last-of-type","");break;default:t.setAttribute("nth-of-type","")}t.setAttribute("variant",this.variant),t.setAttribute("density",this.density)})}async _onToggle(e){if(this.allowMultiple)return;const t=[...this.items];t&&!t.length||t.forEach(t=>{e.composedPath().includes(t)||(t.open=!1)})}async _onKeyboardToggle(e){if(Fe.includes(e.key))return this._onToggle(e)}render(){return te`
55
+ */function Be(e){return(t,s)=>{const{slot:i}=e??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Le(t,s,{get(){const t=this.renderRoot?.querySelector(a);return t?.assignedNodes(e)??[]}})}}globalThis.litIssuedWarnings??=new Set,Ae=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};var He=r`: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 Oe extends Ce{emit(e,t){const s=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(s),s}static define(e,t=this,s={}){if(customElements.get(e));else try{customElements.define(e,t,s)}catch(i){customElements.define(e,class extends t{},s)}}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}))}))}}Oe.styles=[He],Oe.dependencies={},t([ze({type:Boolean,reflect:!0})],Oe.prototype,"ssr",void 0);var Te=r`:host([variant=border]) .accordion{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}`;const Fe=["Enter","ArrowUp","ArrowLeft","ArrowDown","ArrowRight"];class Re extends Oe{constructor(){super(...arguments),this.allowMultiple=!1,this.variant="default",this.density="default"}get items(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}_handleSlotChange(){const e=[...this.items];e.forEach((t,s)=>{if(e.length>1)switch(s){case 0:t.setAttribute("first-of-type","");break;case e.length-1:t.setAttribute("last-of-type","");break;default:t.setAttribute("nth-of-type","")}t.setAttribute("variant",this.variant),t.setAttribute("density",this.density)})}async _onToggle(e){if(this.allowMultiple)return;const t=[...this.items];t&&!t.length||t.forEach(t=>{e.composedPath().includes(t)||(t.open=!1)})}async _onKeyboardToggle(e){if(Fe.includes(e.key))return this._onToggle(e)}render(){return te`
56
56
  <div class="accordion">
57
57
  <slot @slotchange=${this._handleSlotChange} @click=${this._onToggle} @keydown=${this._onKeyboardToggle}></slot>
58
58
  </div>
@@ -101,7 +101,7 @@ const Ne=1,je=2,Ue=3,qe=4,Ye=e=>(...t)=>({_$litDirective$:e,values:t});class We{
101
101
  <slot id="content" name="content" class="content" role="region" aria-labelledby="header"></slot>
102
102
  </div>
103
103
  </div>
104
- `}}lt.styles=[...Oe.styles,rt],t([Ae(".accordion-item")],lt.prototype,"accordion",void 0),t([Ae(".accordion-btn")],lt.prototype,"header",void 0),t([Ae(".accordion-body")],lt.prototype,"body",void 0),t([ze({type:Boolean,reflect:!0})],lt.prototype,"open",void 0),t([ze({type:Boolean,reflect:!0})],lt.prototype,"disabled",void 0),t([ze({type:String,reflect:!0})],lt.prototype,"density",void 0),t([ze({type:String})],lt.prototype,"ariaLabel",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],lt.prototype,"handleOpenChange",null),at("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:350,easing:"ease-in-out"}}),at("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:350,easing:"ease-in-out"}});
104
+ `}}lt.styles=[...Oe.styles,rt],t([De(".accordion-item")],lt.prototype,"accordion",void 0),t([De(".accordion-btn")],lt.prototype,"header",void 0),t([De(".accordion-body")],lt.prototype,"body",void 0),t([ze({type:Boolean,reflect:!0})],lt.prototype,"open",void 0),t([ze({type:Boolean,reflect:!0})],lt.prototype,"disabled",void 0),t([ze({type:String,reflect:!0})],lt.prototype,"density",void 0),t([ze({type:String})],lt.prototype,"ariaLabel",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],lt.prototype,"handleOpenChange",null),at("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:350,easing:"ease-in-out"}}),at("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:350,easing:"ease-in-out"}});
105
105
  /**
106
106
  * @license
107
107
  * Copyright 2020 Google LLC
@@ -111,7 +111,7 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
111
111
  <button class="btn-close" aria-label="Close button" ?disabled=${this.disabled} @click=${this._handleClick}>
112
112
  <sgds-icon name="cross" size="sm"></sgds-icon>
113
113
  </button>
114
- `}}ft.styles=[...Oe.styles,vt],t([ze({type:String,reflect:!0})],ft.prototype,"size",void 0),t([ze({type:String,reflect:!0})],ft.prototype,"tone",void 0),t([ze({type:Boolean,reflect:!0})],ft.prototype,"disabled",void 0);const bt={announcement:()=>Promise.resolve().then(function(){return Pr}),archive:()=>Promise.resolve().then(function(){return Ir}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Dr}),"arrow-bar-left":()=>Promise.resolve().then(function(){return Br}),"arrow-bar-right":()=>Promise.resolve().then(function(){return Or}),"arrow-bar-up":()=>Promise.resolve().then(function(){return Fr}),"arrow-circle-down":()=>Promise.resolve().then(function(){return Nr}),"arrow-circle-left":()=>Promise.resolve().then(function(){return Ur}),"arrow-circle-right":()=>Promise.resolve().then(function(){return Yr}),"arrow-circle-up":()=>Promise.resolve().then(function(){return Kr}),"arrow-clockwise":()=>Promise.resolve().then(function(){return Jr}),"arrow-down":()=>Promise.resolve().then(function(){return Qr}),"arrow-left":()=>Promise.resolve().then(function(){return tl}),"arrow-repeat":()=>Promise.resolve().then(function(){return il}),"arrow-right":()=>Promise.resolve().then(function(){return ol}),"arrow-square-down":()=>Promise.resolve().then(function(){return rl}),"arrow-square-left":()=>Promise.resolve().then(function(){return dl}),"arrow-square-right":()=>Promise.resolve().then(function(){return hl}),"arrow-square-up":()=>Promise.resolve().then(function(){return ul}),"arrow-up":()=>Promise.resolve().then(function(){return vl}),"bank-fill":()=>Promise.resolve().then(function(){return fl}),"bell-slash":()=>Promise.resolve().then(function(){return wl}),bell:()=>Promise.resolve().then(function(){return _l}),"bi-funnel":()=>Promise.resolve().then(function(){return kl}),"bookmark-fill":()=>Promise.resolve().then(function(){return $l}),bookmark:()=>Promise.resolve().then(function(){return Ml}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Vl}),"box-seam":()=>Promise.resolve().then(function(){return Pl}),building:()=>Promise.resolve().then(function(){return Il}),bus:()=>Promise.resolve().then(function(){return Dl}),calculator:()=>Promise.resolve().then(function(){return Bl}),"calendar-check":()=>Promise.resolve().then(function(){return Ol}),"calendar-heart":()=>Promise.resolve().then(function(){return Fl}),"calendar-x":()=>Promise.resolve().then(function(){return Nl}),calendar:()=>Promise.resolve().then(function(){return Ul}),camera:()=>Promise.resolve().then(function(){return Yl}),car:()=>Promise.resolve().then(function(){return Kl}),"chat-dots":()=>Promise.resolve().then(function(){return Jl}),"chat-left-text":()=>Promise.resolve().then(function(){return Ql}),chat:()=>Promise.resolve().then(function(){return td}),"check-circle-fill":()=>Promise.resolve().then(function(){return id}),"check-circle":()=>Promise.resolve().then(function(){return od}),check:()=>Promise.resolve().then(function(){return rd}),"chevron-down":()=>Promise.resolve().then(function(){return dd}),"chevron-left":()=>Promise.resolve().then(function(){return hd}),"chevron-right":()=>Promise.resolve().then(function(){return ud}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return vd}),"chevron-up":()=>Promise.resolve().then(function(){return fd}),clock:()=>Promise.resolve().then(function(){return wd}),"cloud-check":()=>Promise.resolve().then(function(){return _d}),"cloud-download":()=>Promise.resolve().then(function(){return kd}),"cloud-upload":()=>Promise.resolve().then(function(){return $d}),cloud:()=>Promise.resolve().then(function(){return Md}),"code-square":()=>Promise.resolve().then(function(){return Vd}),"coins-hand":()=>Promise.resolve().then(function(){return Pd}),compass:()=>Promise.resolve().then(function(){return Id}),copy:()=>Promise.resolve().then(function(){return Dd}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Bd}),cross:()=>Promise.resolve().then(function(){return Od}),"cursor-fill":()=>Promise.resolve().then(function(){return Fd}),cursor:()=>Promise.resolve().then(function(){return Nd}),"dash-circle":()=>Promise.resolve().then(function(){return Ud}),"dash-square":()=>Promise.resolve().then(function(){return Yd}),dash:()=>Promise.resolve().then(function(){return Kd}),database:()=>Promise.resolve().then(function(){return Jd}),dataflow:()=>Promise.resolve().then(function(){return Qd}),download:()=>Promise.resolve().then(function(){return tc}),edit:()=>Promise.resolve().then(function(){return ic}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return oc}),"exclamation-circle":()=>Promise.resolve().then(function(){return rc}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return dc}),"exclamation-triangle":()=>Promise.resolve().then(function(){return hc}),exclamation:()=>Promise.resolve().then(function(){return uc}),"eye-fill":()=>Promise.resolve().then(function(){return vc}),"eye-slash-fill":()=>Promise.resolve().then(function(){return fc}),"eye-slash":()=>Promise.resolve().then(function(){return wc}),eye:()=>Promise.resolve().then(function(){return _c}),"face-smile-fill":()=>Promise.resolve().then(function(){return kc}),"face-smile":()=>Promise.resolve().then(function(){return $c}),facebook:()=>Promise.resolve().then(function(){return Mc}),"file-earmark-text":()=>Promise.resolve().then(function(){return Vc}),"file-pdf":()=>Promise.resolve().then(function(){return Pc}),"file-plus":()=>Promise.resolve().then(function(){return Ic}),"file-text":()=>Promise.resolve().then(function(){return Dc}),file:()=>Promise.resolve().then(function(){return Bc}),files:()=>Promise.resolve().then(function(){return Oc}),fingerprint:()=>Promise.resolve().then(function(){return Fc}),flash:()=>Promise.resolve().then(function(){return Nc}),"folder-check":()=>Promise.resolve().then(function(){return Uc}),"folder-minus":()=>Promise.resolve().then(function(){return Yc}),"folder-plus":()=>Promise.resolve().then(function(){return Kc}),folder:()=>Promise.resolve().then(function(){return Jc}),gear:()=>Promise.resolve().then(function(){return Qc}),"geo-alt":()=>Promise.resolve().then(function(){return th}),"geo-fill":()=>Promise.resolve().then(function(){return ih}),geo:()=>Promise.resolve().then(function(){return oh}),"globe-alt":()=>Promise.resolve().then(function(){return rh}),globe:()=>Promise.resolve().then(function(){return dh}),google:()=>Promise.resolve().then(function(){return hh}),"grid-alt":()=>Promise.resolve().then(function(){return uh}),"grid-fill":()=>Promise.resolve().then(function(){return vh}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return fh}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return wh}),"hard-drive":()=>Promise.resolve().then(function(){return _h}),heart:()=>Promise.resolve().then(function(){return kh}),"house-door":()=>Promise.resolve().then(function(){return $h}),house:()=>Promise.resolve().then(function(){return Mh}),image:()=>Promise.resolve().then(function(){return Vh}),"in-box":()=>Promise.resolve().then(function(){return Ph}),"info-circle-fill":()=>Promise.resolve().then(function(){return Ih}),"info-circle":()=>Promise.resolve().then(function(){return Dh}),instagram:()=>Promise.resolve().then(function(){return Bh}),key:()=>Promise.resolve().then(function(){return Oh}),"laptop-gear":()=>Promise.resolve().then(function(){return Fh}),laptop:()=>Promise.resolve().then(function(){return Nh}),layers:()=>Promise.resolve().then(function(){return Uh}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return Yh}),"layout-text-window":()=>Promise.resolve().then(function(){return Kh}),layout:()=>Promise.resolve().then(function(){return Jh}),"life-buoy":()=>Promise.resolve().then(function(){return Qh}),lightbulb:()=>Promise.resolve().then(function(){return tp}),link:()=>Promise.resolve().then(function(){return ip}),linkedin:()=>Promise.resolve().then(function(){return op}),list:()=>Promise.resolve().then(function(){return rp}),"lock-fill":()=>Promise.resolve().then(function(){return dp}),lock:()=>Promise.resolve().then(function(){return hp}),login:()=>Promise.resolve().then(function(){return up}),logout:()=>Promise.resolve().then(function(){return vp}),luggage:()=>Promise.resolve().then(function(){return fp}),"mail-open":()=>Promise.resolve().then(function(){return wp}),mail:()=>Promise.resolve().then(function(){return _p}),map:()=>Promise.resolve().then(function(){return kp}),meetup:()=>Promise.resolve().then(function(){return $p}),menu:()=>Promise.resolve().then(function(){return Mp}),microphone:()=>Promise.resolve().then(function(){return Vp}),monitor:()=>Promise.resolve().then(function(){return Pp}),moon:()=>Promise.resolve().then(function(){return Ip}),move:()=>Promise.resolve().then(function(){return Dp}),paperclip:()=>Promise.resolve().then(function(){return Bp}),passcode:()=>Promise.resolve().then(function(){return Op}),passport:()=>Promise.resolve().then(function(){return Fp}),pause:()=>Promise.resolve().then(function(){return Np}),pencil:()=>Promise.resolve().then(function(){return Up}),"pending-circle":()=>Promise.resolve().then(function(){return Yp}),"person-dash":()=>Promise.resolve().then(function(){return Kp}),"person-plus":()=>Promise.resolve().then(function(){return Jp}),"person-x":()=>Promise.resolve().then(function(){return Qp}),person:()=>Promise.resolve().then(function(){return tu}),phone:()=>Promise.resolve().then(function(){return iu}),"pin-map-fill":()=>Promise.resolve().then(function(){return ou}),pin:()=>Promise.resolve().then(function(){return ru}),placeholder:()=>Promise.resolve().then(function(){return du}),plane:()=>Promise.resolve().then(function(){return hu}),play:()=>Promise.resolve().then(function(){return uu}),"plus-circle":()=>Promise.resolve().then(function(){return vu}),"plus-square":()=>Promise.resolve().then(function(){return fu}),plus:()=>Promise.resolve().then(function(){return wu}),printer:()=>Promise.resolve().then(function(){return _u}),"question-circle":()=>Promise.resolve().then(function(){return ku}),rocket:()=>Promise.resolve().then(function(){return $u}),save:()=>Promise.resolve().then(function(){return Mu}),search:()=>Promise.resolve().then(function(){return Vu}),send:()=>Promise.resolve().then(function(){return Pu}),"sg-crest":()=>Promise.resolve().then(function(){return Iu}),share:()=>Promise.resolve().then(function(){return Du}),"shield-tick":()=>Promise.resolve().then(function(){return Bu}),"sidebar-collapse":()=>Promise.resolve().then(function(){return Ou}),"sidebar-expand":()=>Promise.resolve().then(function(){return Fu}),"slash-circle":()=>Promise.resolve().then(function(){return Nu}),"slash-divider":()=>Promise.resolve().then(function(){return Uu}),sliders:()=>Promise.resolve().then(function(){return Yu}),"sort-ascending":()=>Promise.resolve().then(function(){return Ku}),"sort-descending":()=>Promise.resolve().then(function(){return Ju}),speedometer:()=>Promise.resolve().then(function(){return Qu}),"star-ai":()=>Promise.resolve().then(function(){return tg}),"star-fill":()=>Promise.resolve().then(function(){return ig}),star:()=>Promise.resolve().then(function(){return og}),stoplights:()=>Promise.resolve().then(function(){return rg}),sun:()=>Promise.resolve().then(function(){return dg}),"switch-horizontal":()=>Promise.resolve().then(function(){return hg}),"switch-vertical":()=>Promise.resolve().then(function(){return ug}),tablet:()=>Promise.resolve().then(function(){return vg}),telegram:()=>Promise.resolve().then(function(){return fg}),telephone:()=>Promise.resolve().then(function(){return wg}),"three-dots-vertical":()=>Promise.resolve().then(function(){return _g}),"three-dots":()=>Promise.resolve().then(function(){return kg}),ticket:()=>Promise.resolve().then(function(){return $g}),"toggle-off":()=>Promise.resolve().then(function(){return Mg}),"toggle-on":()=>Promise.resolve().then(function(){return Vg}),train:()=>Promise.resolve().then(function(){return Pg}),translate:()=>Promise.resolve().then(function(){return Ig}),trash:()=>Promise.resolve().then(function(){return Dg}),"trend-down":()=>Promise.resolve().then(function(){return Bg}),"trend-up":()=>Promise.resolve().then(function(){return Og}),truck:()=>Promise.resolve().then(function(){return Fg}),"twitter-x":()=>Promise.resolve().then(function(){return Ng}),unlock:()=>Promise.resolve().then(function(){return Ug}),upload:()=>Promise.resolve().then(function(){return Yg}),"user-check":()=>Promise.resolve().then(function(){return Kg}),"user-circle":()=>Promise.resolve().then(function(){return Jg}),"user-pause":()=>Promise.resolve().then(function(){return Qg}),"user-square":()=>Promise.resolve().then(function(){return tv}),users:()=>Promise.resolve().then(function(){return iv}),"video-recorder":()=>Promise.resolve().then(function(){return ov}),"volume-max":()=>Promise.resolve().then(function(){return rv}),"volume-x":()=>Promise.resolve().then(function(){return dv}),"window-dash":()=>Promise.resolve().then(function(){return hv}),"window-desktop":()=>Promise.resolve().then(function(){return uv}),"window-dock":()=>Promise.resolve().then(function(){return vv}),"window-fullscreen":()=>Promise.resolve().then(function(){return fv}),"window-plus":()=>Promise.resolve().then(function(){return wv}),"window-sidebar":()=>Promise.resolve().then(function(){return _v}),"window-split":()=>Promise.resolve().then(function(){return kv}),"window-stack":()=>Promise.resolve().then(function(){return $v}),"window-x":()=>Promise.resolve().then(function(){return Mv}),window:()=>Promise.resolve().then(function(){return Vv}),"xcircle-fill":()=>Promise.resolve().then(function(){return Pv}),xcircle:()=>Promise.resolve().then(function(){return Iv}),youtube:()=>Promise.resolve().then(function(){return Dv}),"zoom-in":()=>Promise.resolve().then(function(){return Bv}),"zoom-out":()=>Promise.resolve().then(function(){return Ov})};var wt=r`: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 yt=new Map;class _t extends Oe{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(yt.has(e))return void(this._icon=yt.get(e));const t=bt[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const s=await t();yt.set(e,s.default),this._icon=s.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:ae}}_t.styles=[...Oe.styles,wt],t([ze({type:String,reflect:!0})],_t.prototype,"name",void 0),t([ze({type:String,reflect:!0})],_t.prototype,"size",void 0),t([ze({type:String})],_t.prototype,"ariaLabel",void 0),t([Pe()],_t.prototype,"_icon",void 0);var xt=r`:host([variant=success]) .alert{background-color:var(--sgds-success-surface-default)}:host([variant=warning]) .alert{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-warning-surface-default)}:host([variant=danger]) .alert{background-color:var(--sgds-danger-surface-default)}:host([variant=neutral]) .alert{background-color:var(--sgds-neutral-surface-emphasis)}:host([variant=success][outlined]) .alert{background-color:var(--sgds-success-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-success-border-color-muted)}:host([variant=warning][outlined]) .alert{background-color:var(--sgds-warning-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-warning-border-color-muted)}:host([variant=danger][outlined]) .alert{background-color:var(--sgds-danger-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-danger-border-color-muted)}:host([variant=neutral][outlined]) .alert{background-color:var(--sgds-neutral-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-neutral-border-color-muted)}:host([outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-primary-color-fixed-dark)}:host([variant=success][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-success-color-fixed-dark)}:host([variant=warning][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-warning-color-fixed-light)}:host([variant=danger][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-danger-color-fixed-dark)}:host([variant=neutral][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-color-fixed-dark)}.alert{--sgds-alert-color:var(--sgds-color-fixed-light);background-color:var(--sgds-primary-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);color:var(--sgds-alert-color);display:flex;flex-direction:row;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-lg);position:relative}.alert.outlined{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-primary-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-primary-border-color-muted)}.alert-content{align-items:flex-start;display:flex;flex:1 0 0;flex-direction:column;gap:var(--sgds-gap-md);padding-right:var(--sgds-padding-2-xl)}.alert-content__upper{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.alert-title{font-size:var(--sgds-font-size-subtitle-sm);font-style:normal;font-weight:var(--sgds-font-weight-semibold);line-height:var(--sgds-line-height-2-xs)}.alert-content__description{display:inline;font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-2-xs)}.alert-content__description::slotted(*){font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-2-xs)}.alert-content__description::slotted(a),.alert-content__description::slotted(a:hover){color:inherit!important}.alert-content__description::slotted(a:focus-visible){outline:var(--sgds-outline-focus)!important;outline-offset:var(--sgds-outline-offset-focus)!important}.alert sgds-close-button{position:absolute;right:14px;top:14px}`;class kt extends Oe{constructor(){super(...arguments),this.show=!1,this.dismissible=!1,this.variant="info",this.outlined=!1,this.title=""}close(){this.show=!1}_handleShowChange(){this.show?this.emit("sgds-show"):this.emit("sgds-hide")}render(){return this.dismissible&&this.show||!this.dismissible?ut`
114
+ `}}ft.styles=[...Oe.styles,vt],t([ze({type:String,reflect:!0})],ft.prototype,"size",void 0),t([ze({type:String,reflect:!0})],ft.prototype,"tone",void 0),t([ze({type:Boolean,reflect:!0})],ft.prototype,"disabled",void 0);const bt={announcement:()=>Promise.resolve().then(function(){return Pr}),archive:()=>Promise.resolve().then(function(){return Ar}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Ir}),"arrow-bar-left":()=>Promise.resolve().then(function(){return Br}),"arrow-bar-right":()=>Promise.resolve().then(function(){return Or}),"arrow-bar-up":()=>Promise.resolve().then(function(){return Fr}),"arrow-circle-down":()=>Promise.resolve().then(function(){return Nr}),"arrow-circle-left":()=>Promise.resolve().then(function(){return Ur}),"arrow-circle-right":()=>Promise.resolve().then(function(){return Yr}),"arrow-circle-up":()=>Promise.resolve().then(function(){return Kr}),"arrow-clockwise":()=>Promise.resolve().then(function(){return Jr}),"arrow-down":()=>Promise.resolve().then(function(){return Qr}),"arrow-left":()=>Promise.resolve().then(function(){return tl}),"arrow-repeat":()=>Promise.resolve().then(function(){return il}),"arrow-right":()=>Promise.resolve().then(function(){return ol}),"arrow-square-down":()=>Promise.resolve().then(function(){return rl}),"arrow-square-left":()=>Promise.resolve().then(function(){return dl}),"arrow-square-right":()=>Promise.resolve().then(function(){return hl}),"arrow-square-up":()=>Promise.resolve().then(function(){return ul}),"arrow-up":()=>Promise.resolve().then(function(){return vl}),"bank-fill":()=>Promise.resolve().then(function(){return fl}),"bell-slash":()=>Promise.resolve().then(function(){return wl}),bell:()=>Promise.resolve().then(function(){return _l}),"bi-funnel":()=>Promise.resolve().then(function(){return kl}),"bookmark-fill":()=>Promise.resolve().then(function(){return $l}),bookmark:()=>Promise.resolve().then(function(){return Ml}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Vl}),"box-seam":()=>Promise.resolve().then(function(){return Pl}),building:()=>Promise.resolve().then(function(){return Al}),bus:()=>Promise.resolve().then(function(){return Il}),calculator:()=>Promise.resolve().then(function(){return Bl}),"calendar-check":()=>Promise.resolve().then(function(){return Ol}),"calendar-heart":()=>Promise.resolve().then(function(){return Fl}),"calendar-x":()=>Promise.resolve().then(function(){return Nl}),calendar:()=>Promise.resolve().then(function(){return Ul}),camera:()=>Promise.resolve().then(function(){return Yl}),car:()=>Promise.resolve().then(function(){return Kl}),"chat-dots":()=>Promise.resolve().then(function(){return Jl}),"chat-left-text":()=>Promise.resolve().then(function(){return Ql}),chat:()=>Promise.resolve().then(function(){return td}),"check-circle-fill":()=>Promise.resolve().then(function(){return id}),"check-circle":()=>Promise.resolve().then(function(){return od}),check:()=>Promise.resolve().then(function(){return rd}),"chevron-down":()=>Promise.resolve().then(function(){return dd}),"chevron-left":()=>Promise.resolve().then(function(){return hd}),"chevron-right":()=>Promise.resolve().then(function(){return ud}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return vd}),"chevron-up":()=>Promise.resolve().then(function(){return fd}),clock:()=>Promise.resolve().then(function(){return wd}),"cloud-check":()=>Promise.resolve().then(function(){return _d}),"cloud-download":()=>Promise.resolve().then(function(){return kd}),"cloud-upload":()=>Promise.resolve().then(function(){return $d}),cloud:()=>Promise.resolve().then(function(){return Md}),"code-square":()=>Promise.resolve().then(function(){return Vd}),"coins-hand":()=>Promise.resolve().then(function(){return Pd}),compass:()=>Promise.resolve().then(function(){return Ad}),copy:()=>Promise.resolve().then(function(){return Id}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Bd}),cross:()=>Promise.resolve().then(function(){return Od}),"cursor-fill":()=>Promise.resolve().then(function(){return Fd}),cursor:()=>Promise.resolve().then(function(){return Nd}),"dash-circle":()=>Promise.resolve().then(function(){return Ud}),"dash-square":()=>Promise.resolve().then(function(){return Yd}),dash:()=>Promise.resolve().then(function(){return Kd}),database:()=>Promise.resolve().then(function(){return Jd}),dataflow:()=>Promise.resolve().then(function(){return Qd}),download:()=>Promise.resolve().then(function(){return tc}),edit:()=>Promise.resolve().then(function(){return ic}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return oc}),"exclamation-circle":()=>Promise.resolve().then(function(){return rc}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return dc}),"exclamation-triangle":()=>Promise.resolve().then(function(){return hc}),exclamation:()=>Promise.resolve().then(function(){return uc}),"eye-fill":()=>Promise.resolve().then(function(){return vc}),"eye-slash-fill":()=>Promise.resolve().then(function(){return fc}),"eye-slash":()=>Promise.resolve().then(function(){return wc}),eye:()=>Promise.resolve().then(function(){return _c}),"face-smile-fill":()=>Promise.resolve().then(function(){return kc}),"face-smile":()=>Promise.resolve().then(function(){return $c}),facebook:()=>Promise.resolve().then(function(){return Mc}),"file-earmark-text":()=>Promise.resolve().then(function(){return Vc}),"file-pdf":()=>Promise.resolve().then(function(){return Pc}),"file-plus":()=>Promise.resolve().then(function(){return Ac}),"file-text":()=>Promise.resolve().then(function(){return Ic}),file:()=>Promise.resolve().then(function(){return Bc}),files:()=>Promise.resolve().then(function(){return Oc}),fingerprint:()=>Promise.resolve().then(function(){return Fc}),flash:()=>Promise.resolve().then(function(){return Nc}),"folder-check":()=>Promise.resolve().then(function(){return Uc}),"folder-minus":()=>Promise.resolve().then(function(){return Yc}),"folder-plus":()=>Promise.resolve().then(function(){return Kc}),folder:()=>Promise.resolve().then(function(){return Jc}),gear:()=>Promise.resolve().then(function(){return Qc}),"geo-alt":()=>Promise.resolve().then(function(){return th}),"geo-fill":()=>Promise.resolve().then(function(){return ih}),geo:()=>Promise.resolve().then(function(){return oh}),"globe-alt":()=>Promise.resolve().then(function(){return rh}),globe:()=>Promise.resolve().then(function(){return dh}),google:()=>Promise.resolve().then(function(){return hh}),"grid-alt":()=>Promise.resolve().then(function(){return uh}),"grid-fill":()=>Promise.resolve().then(function(){return vh}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return fh}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return wh}),"hard-drive":()=>Promise.resolve().then(function(){return _h}),heart:()=>Promise.resolve().then(function(){return kh}),"house-door":()=>Promise.resolve().then(function(){return $h}),house:()=>Promise.resolve().then(function(){return Mh}),image:()=>Promise.resolve().then(function(){return Vh}),"in-box":()=>Promise.resolve().then(function(){return Ph}),"info-circle-fill":()=>Promise.resolve().then(function(){return Ah}),"info-circle":()=>Promise.resolve().then(function(){return Ih}),instagram:()=>Promise.resolve().then(function(){return Bh}),key:()=>Promise.resolve().then(function(){return Oh}),"laptop-gear":()=>Promise.resolve().then(function(){return Fh}),laptop:()=>Promise.resolve().then(function(){return Nh}),layers:()=>Promise.resolve().then(function(){return Uh}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return Yh}),"layout-text-window":()=>Promise.resolve().then(function(){return Kh}),layout:()=>Promise.resolve().then(function(){return Jh}),"life-buoy":()=>Promise.resolve().then(function(){return Qh}),lightbulb:()=>Promise.resolve().then(function(){return tp}),link:()=>Promise.resolve().then(function(){return ip}),linkedin:()=>Promise.resolve().then(function(){return op}),list:()=>Promise.resolve().then(function(){return rp}),"lock-fill":()=>Promise.resolve().then(function(){return dp}),lock:()=>Promise.resolve().then(function(){return hp}),login:()=>Promise.resolve().then(function(){return up}),logout:()=>Promise.resolve().then(function(){return vp}),luggage:()=>Promise.resolve().then(function(){return fp}),"mail-open":()=>Promise.resolve().then(function(){return wp}),mail:()=>Promise.resolve().then(function(){return _p}),map:()=>Promise.resolve().then(function(){return kp}),meetup:()=>Promise.resolve().then(function(){return $p}),menu:()=>Promise.resolve().then(function(){return Mp}),microphone:()=>Promise.resolve().then(function(){return Vp}),monitor:()=>Promise.resolve().then(function(){return Pp}),moon:()=>Promise.resolve().then(function(){return Ap}),move:()=>Promise.resolve().then(function(){return Ip}),paperclip:()=>Promise.resolve().then(function(){return Bp}),passcode:()=>Promise.resolve().then(function(){return Op}),passport:()=>Promise.resolve().then(function(){return Fp}),pause:()=>Promise.resolve().then(function(){return Np}),pencil:()=>Promise.resolve().then(function(){return Up}),"pending-circle":()=>Promise.resolve().then(function(){return Yp}),"person-dash":()=>Promise.resolve().then(function(){return Kp}),"person-plus":()=>Promise.resolve().then(function(){return Jp}),"person-x":()=>Promise.resolve().then(function(){return Qp}),person:()=>Promise.resolve().then(function(){return tu}),phone:()=>Promise.resolve().then(function(){return iu}),"pin-map-fill":()=>Promise.resolve().then(function(){return ou}),pin:()=>Promise.resolve().then(function(){return ru}),placeholder:()=>Promise.resolve().then(function(){return du}),plane:()=>Promise.resolve().then(function(){return hu}),play:()=>Promise.resolve().then(function(){return uu}),"plus-circle":()=>Promise.resolve().then(function(){return vu}),"plus-square":()=>Promise.resolve().then(function(){return fu}),plus:()=>Promise.resolve().then(function(){return wu}),printer:()=>Promise.resolve().then(function(){return _u}),"question-circle":()=>Promise.resolve().then(function(){return ku}),rocket:()=>Promise.resolve().then(function(){return $u}),save:()=>Promise.resolve().then(function(){return Mu}),search:()=>Promise.resolve().then(function(){return Vu}),send:()=>Promise.resolve().then(function(){return Pu}),"sg-crest":()=>Promise.resolve().then(function(){return Au}),share:()=>Promise.resolve().then(function(){return Iu}),"shield-tick":()=>Promise.resolve().then(function(){return Bu}),"sidebar-collapse":()=>Promise.resolve().then(function(){return Ou}),"sidebar-expand":()=>Promise.resolve().then(function(){return Fu}),"slash-circle":()=>Promise.resolve().then(function(){return Nu}),"slash-divider":()=>Promise.resolve().then(function(){return Uu}),sliders:()=>Promise.resolve().then(function(){return Yu}),"sort-ascending":()=>Promise.resolve().then(function(){return Ku}),"sort-descending":()=>Promise.resolve().then(function(){return Ju}),speedometer:()=>Promise.resolve().then(function(){return Qu}),"star-ai":()=>Promise.resolve().then(function(){return tg}),"star-fill":()=>Promise.resolve().then(function(){return ig}),star:()=>Promise.resolve().then(function(){return og}),stoplights:()=>Promise.resolve().then(function(){return rg}),sun:()=>Promise.resolve().then(function(){return dg}),"switch-horizontal":()=>Promise.resolve().then(function(){return hg}),"switch-vertical":()=>Promise.resolve().then(function(){return ug}),tablet:()=>Promise.resolve().then(function(){return vg}),telegram:()=>Promise.resolve().then(function(){return fg}),telephone:()=>Promise.resolve().then(function(){return wg}),"three-dots-vertical":()=>Promise.resolve().then(function(){return _g}),"three-dots":()=>Promise.resolve().then(function(){return kg}),ticket:()=>Promise.resolve().then(function(){return $g}),"toggle-off":()=>Promise.resolve().then(function(){return Mg}),"toggle-on":()=>Promise.resolve().then(function(){return Vg}),train:()=>Promise.resolve().then(function(){return Pg}),translate:()=>Promise.resolve().then(function(){return Ag}),trash:()=>Promise.resolve().then(function(){return Ig}),"trend-down":()=>Promise.resolve().then(function(){return Bg}),"trend-up":()=>Promise.resolve().then(function(){return Og}),truck:()=>Promise.resolve().then(function(){return Fg}),"twitter-x":()=>Promise.resolve().then(function(){return Ng}),unlock:()=>Promise.resolve().then(function(){return Ug}),upload:()=>Promise.resolve().then(function(){return Yg}),"user-check":()=>Promise.resolve().then(function(){return Kg}),"user-circle":()=>Promise.resolve().then(function(){return Jg}),"user-pause":()=>Promise.resolve().then(function(){return Qg}),"user-square":()=>Promise.resolve().then(function(){return tv}),users:()=>Promise.resolve().then(function(){return iv}),"video-recorder":()=>Promise.resolve().then(function(){return ov}),"volume-max":()=>Promise.resolve().then(function(){return rv}),"volume-x":()=>Promise.resolve().then(function(){return dv}),"window-dash":()=>Promise.resolve().then(function(){return hv}),"window-desktop":()=>Promise.resolve().then(function(){return uv}),"window-dock":()=>Promise.resolve().then(function(){return vv}),"window-fullscreen":()=>Promise.resolve().then(function(){return fv}),"window-plus":()=>Promise.resolve().then(function(){return wv}),"window-sidebar":()=>Promise.resolve().then(function(){return _v}),"window-split":()=>Promise.resolve().then(function(){return kv}),"window-stack":()=>Promise.resolve().then(function(){return $v}),"window-x":()=>Promise.resolve().then(function(){return Mv}),window:()=>Promise.resolve().then(function(){return Vv}),"xcircle-fill":()=>Promise.resolve().then(function(){return Pv}),xcircle:()=>Promise.resolve().then(function(){return Av}),youtube:()=>Promise.resolve().then(function(){return Iv}),"zoom-in":()=>Promise.resolve().then(function(){return Bv}),"zoom-out":()=>Promise.resolve().then(function(){return Ov})};var wt=r`: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 yt=new Map;class _t extends Oe{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(yt.has(e))return void(this._icon=yt.get(e));const t=bt[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const s=await t();yt.set(e,s.default),this._icon=s.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:ae}}_t.styles=[...Oe.styles,wt],t([ze({type:String,reflect:!0})],_t.prototype,"name",void 0),t([ze({type:String,reflect:!0})],_t.prototype,"size",void 0),t([ze({type:String})],_t.prototype,"ariaLabel",void 0),t([Pe()],_t.prototype,"_icon",void 0);var xt=r`:host([variant=success]) .alert{background-color:var(--sgds-success-surface-default)}:host([variant=warning]) .alert{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-warning-surface-default)}:host([variant=danger]) .alert{background-color:var(--sgds-danger-surface-default)}:host([variant=neutral]) .alert{background-color:var(--sgds-neutral-surface-emphasis)}:host([variant=success][outlined]) .alert{background-color:var(--sgds-success-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-success-border-color-muted)}:host([variant=warning][outlined]) .alert{background-color:var(--sgds-warning-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-warning-border-color-muted)}:host([variant=danger][outlined]) .alert{background-color:var(--sgds-danger-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-danger-border-color-muted)}:host([variant=neutral][outlined]) .alert{background-color:var(--sgds-neutral-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-neutral-border-color-muted)}:host([outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-primary-color-fixed-dark)}:host([variant=success][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-success-color-fixed-dark)}:host([variant=warning][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-warning-color-fixed-light)}:host([variant=danger][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-danger-color-fixed-dark)}:host([variant=neutral][outlined]) .alert-icon__outlined::slotted(*){color:var(--sgds-color-fixed-dark)}.alert{--sgds-alert-color:var(--sgds-color-fixed-light);background-color:var(--sgds-primary-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);color:var(--sgds-alert-color);display:flex;flex-direction:row;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-lg);position:relative}.alert.outlined{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-primary-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-primary-border-color-muted)}.alert-content{align-items:flex-start;display:flex;flex:1 0 0;flex-direction:column;gap:var(--sgds-gap-md);padding-right:var(--sgds-padding-2-xl)}.alert-content__upper{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.alert-title{font-size:var(--sgds-font-size-subtitle-sm);font-style:normal;font-weight:var(--sgds-font-weight-semibold);line-height:var(--sgds-line-height-2-xs)}.alert-content__description{display:inline;font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-2-xs)}.alert-content__description::slotted(*){font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-2-xs)}.alert-content__description::slotted(a),.alert-content__description::slotted(a:hover){color:inherit!important}.alert-content__description::slotted(a:focus-visible){outline:var(--sgds-outline-focus)!important;outline-offset:var(--sgds-outline-offset-focus)!important}.alert sgds-close-button{position:absolute;right:14px;top:14px}`;class kt extends Oe{constructor(){super(...arguments),this.show=!1,this.dismissible=!1,this.variant="info",this.outlined=!1,this.title=""}close(){this.show=!1}_handleShowChange(){this.show?this.emit("sgds-show"):this.emit("sgds-hide")}render(){return this.dismissible&&this.show||!this.dismissible?ut`
115
115
  <div
116
116
  class="${Ke({alert:!0,show:this.show,"alert-dismissible":this.dismissible,outlined:this.outlined})}"
117
117
  role="alert"
@@ -138,12 +138,12 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
138
138
  * @license
139
139
  * Copyright 2020 Google LLC
140
140
  * SPDX-License-Identifier: BSD-3-Clause
141
- */;const{_ChildPart:Zt}=we,Vt=window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch?window.ShadyDOM.wrap:e=>e,zt=e=>void 0===e.strings,Pt=()=>document.createComment(""),Lt=(e,t,s)=>{const i=Vt(e._$startNode).parentNode,a=void 0===t?e._$endNode:t._$startNode;if(void 0===s){const t=Vt(i).insertBefore(Pt(),a),o=Vt(i).insertBefore(Pt(),a);s=new Zt(t,o,e,e.options)}else{const t=Vt(s._$endNode).nextSibling,o=s._$parent,n=o!==e;if(n){let t;s._$reparentDisconnectables?.(e),s._$parent=e,void 0!==s._$notifyConnectionChanged&&(t=e._$isConnected)!==o._$isConnected&&s._$notifyConnectionChanged(t)}if(t!==a||n){let e=s._$startNode;for(;e!==t;){const t=Vt(e).nextSibling;Vt(i).insertBefore(e,a),e=t}}}return s},It=(e,t,s=e)=>(e._$setValue(t,s),e),At={},Dt=(e,t=At)=>e._$committedValue=t,Et=e=>{e._$clear(),e._$startNode.remove()},Bt=(e,t)=>{const s=e._$disconnectableChildren;if(void 0===s)return!1;for(const e of s)e._$notifyDirectiveConnectionChanged?.(t,!1),Bt(e,t);return!0},Ht=e=>{let t,s;do{if(void 0===(t=e._$parent))break;s=t._$disconnectableChildren,s.delete(e),e=t}while(0===s?.size)},Ot=e=>{for(let t;t=e._$parent;e=t){let s=t._$disconnectableChildren;if(void 0===s)t._$disconnectableChildren=s=new Set;else if(s.has(e))break;s.add(e),Rt(t)}};function Tt(e){void 0!==this._$disconnectableChildren?(Ht(this),this._$parent=e,Ot(this)):this._$parent=e}function Ft(e,t=!1,s=0){const i=this._$committedValue,a=this._$disconnectableChildren;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=s;e<i.length;e++)Bt(i[e],!1),Ht(i[e]);else null!=i&&(Bt(i,!1),Ht(i));else Bt(this,e)}const Rt=e=>{e.type==je&&(e._$notifyConnectionChanged??=Ft,e._$reparentDisconnectables??=Tt)};class Nt extends We{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,s){super._$initialize(e,t,s),Ot(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Bt(this,e),Ht(this))}setValue(e){if(zt(this.__part))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(){}}
141
+ */;const{_ChildPart:Zt}=we,Vt=window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch?window.ShadyDOM.wrap:e=>e,zt=e=>void 0===e.strings,Pt=()=>document.createComment(""),Lt=(e,t,s)=>{const i=Vt(e._$startNode).parentNode,a=void 0===t?e._$endNode:t._$startNode;if(void 0===s){const t=Vt(i).insertBefore(Pt(),a),o=Vt(i).insertBefore(Pt(),a);s=new Zt(t,o,e,e.options)}else{const t=Vt(s._$endNode).nextSibling,o=s._$parent,n=o!==e;if(n){let t;s._$reparentDisconnectables?.(e),s._$parent=e,void 0!==s._$notifyConnectionChanged&&(t=e._$isConnected)!==o._$isConnected&&s._$notifyConnectionChanged(t)}if(t!==a||n){let e=s._$startNode;for(;e!==t;){const t=Vt(e).nextSibling;Vt(i).insertBefore(e,a),e=t}}}return s},At=(e,t,s=e)=>(e._$setValue(t,s),e),Dt={},It=(e,t=Dt)=>e._$committedValue=t,Et=e=>{e._$clear(),e._$startNode.remove()},Bt=(e,t)=>{const s=e._$disconnectableChildren;if(void 0===s)return!1;for(const e of s)e._$notifyDirectiveConnectionChanged?.(t,!1),Bt(e,t);return!0},Ht=e=>{let t,s;do{if(void 0===(t=e._$parent))break;s=t._$disconnectableChildren,s.delete(e),e=t}while(0===s?.size)},Ot=e=>{for(let t;t=e._$parent;e=t){let s=t._$disconnectableChildren;if(void 0===s)t._$disconnectableChildren=s=new Set;else if(s.has(e))break;s.add(e),Rt(t)}};function Tt(e){void 0!==this._$disconnectableChildren?(Ht(this),this._$parent=e,Ot(this)):this._$parent=e}function Ft(e,t=!1,s=0){const i=this._$committedValue,a=this._$disconnectableChildren;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=s;e<i.length;e++)Bt(i[e],!1),Ht(i[e]);else null!=i&&(Bt(i,!1),Ht(i));else Bt(this,e)}const Rt=e=>{e.type==je&&(e._$notifyConnectionChanged??=Ft,e._$reparentDisconnectables??=Tt)};class Nt extends We{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,s){super._$initialize(e,t,s),Ot(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Bt(this,e),Ht(this))}setValue(e){if(zt(this.__part))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(){}}
142
142
  /**
143
143
  * @license
144
144
  * Copyright 2020 Google LLC
145
145
  * SPDX-License-Identifier: BSD-3-Clause
146
- */const jt=()=>new Ut;class Ut{}const qt=new WeakMap;const Yt=Ye(class extends Nt{render(e){return ae}update(e,[t]){const s=t!==this._ref;return s&&void 0!==this._ref&&this._updateRefValue(void 0),(s||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),ae}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let s=qt.get(t);void 0===s&&(s=new WeakMap,qt.set(t,s)),void 0!==s.get(this._ref)&&this._ref.call(this._context,void 0),s.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?qt.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),Wt=["top","right","bottom","left"],Kt=Math.min,Gt=Math.max,Jt=Math.round,Xt=Math.floor,Qt=e=>({x:e,y:e}),es={left:"right",right:"left",bottom:"top",top:"bottom"},ts={start:"end",end:"start"};function ss(e,t,s){return Gt(e,Kt(t,s))}function is(e,t){return"function"==typeof e?e(t):e}function as(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function ns(e){return"x"===e?"y":"x"}function rs(e){return"y"===e?"height":"width"}const ls=new Set(["top","bottom"]);function ds(e){return ls.has(as(e))?"y":"x"}function cs(e){return ns(ds(e))}function hs(e,t,s){void 0===s&&(s=!1);const i=os(e),a=cs(e),o=rs(a);let n="x"===a?i===(s?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(n=bs(n)),[n,bs(n)]}function ps(e){return e.replace(/start|end/g,e=>ts[e])}const us=["left","right"],gs=["right","left"],vs=["top","bottom"],ms=["bottom","top"];function fs(e,t,s,i){const a=os(e);let o=function(e,t,s){switch(e){case"top":case"bottom":return s?t?gs:us:t?us:gs;case"left":case"right":return t?vs:ms;default:return[]}}(as(e),"start"===s,i);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(ps)))),o}function bs(e){return e.replace(/left|right|bottom|top/g,e=>es[e])}function ws(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 ys(e){const{x:t,y:s,width:i,height:a}=e;return{width:i,height:a,top:s,left:t,right:t+i,bottom:s+a,x:t,y:s}}function _s(e,t,s){let{reference:i,floating:a}=e;const o=ds(t),n=cs(t),r=rs(n),l=as(t),d="y"===o,c=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2,p=i[r]/2-a[r]/2;let u;switch(l){case"top":u={x:c,y:i.y-a.height};break;case"bottom":u={x:c,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-a.width,y:h};break;default:u={x:i.x,y:i.y}}switch(os(t)){case"start":u[n]-=p*(s&&d?-1:1);break;case"end":u[n]+=p*(s&&d?-1:1)}return u}async function xs(e,t){var s;void 0===t&&(t={});const{x:i,y:a,platform:o,rects:n,elements:r,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=is(t,e),g=ws(u),v=r[p?"floating"===h?"reference":"floating":h],m=ys(await o.getClippingRect({element:null==(s=await(null==o.isElement?void 0:o.isElement(v)))||s?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(r.floating)),boundary:d,rootBoundary:c,strategy:l})),f="floating"===h?{x:i,y:a,width:n.floating.width,height:n.floating.height}:n.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(r.floating)),w=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},y=ys(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:b,strategy:l}):f);return{top:(m.top-y.top+g.top)/w.y,bottom:(y.bottom-m.bottom+g.bottom)/w.y,left:(m.left-y.left+g.left)/w.x,right:(y.right-m.right+g.right)/w.x}}function ks(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cs(e){return Wt.some(t=>e[t]>=0)}const $s=new Set(["left","top"]);function Ss(){return"undefined"!=typeof window}function Ms(e){return zs(e)?(e.nodeName||"").toLowerCase():"#document"}function Zs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vs(e){var t;return null==(t=(zs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zs(e){return!!Ss()&&(e instanceof Node||e instanceof Zs(e).Node)}function Ps(e){return!!Ss()&&(e instanceof Element||e instanceof Zs(e).Element)}function Ls(e){return!!Ss()&&(e instanceof HTMLElement||e instanceof Zs(e).HTMLElement)}function Is(e){return!(!Ss()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zs(e).ShadowRoot)}const As=new Set(["inline","contents"]);function Ds(e){const{overflow:t,overflowX:s,overflowY:i,display:a}=Ys(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+s)&&!As.has(a)}const Es=new Set(["table","td","th"]);function Bs(e){return Es.has(Ms(e))}const Hs=[":popover-open",":modal"];function Os(e){return Hs.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ts=["transform","translate","scale","rotate","perspective"],Fs=["transform","translate","scale","rotate","perspective","filter"],Rs=["paint","layout","strict","content"];function Ns(e){const t=js(),s=Ps(e)?Ys(e):e;return Ts.some(e=>!!s[e]&&"none"!==s[e])||!!s.containerType&&"normal"!==s.containerType||!t&&!!s.backdropFilter&&"none"!==s.backdropFilter||!t&&!!s.filter&&"none"!==s.filter||Fs.some(e=>(s.willChange||"").includes(e))||Rs.some(e=>(s.contain||"").includes(e))}function js(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Us=new Set(["html","body","#document"]);function qs(e){return Us.has(Ms(e))}function Ys(e){return Zs(e).getComputedStyle(e)}function Ws(e){return Ps(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ks(e){if("html"===Ms(e))return e;const t=e.assignedSlot||e.parentNode||Is(e)&&e.host||Vs(e);return Is(t)?t.host:t}function Gs(e){const t=Ks(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ls(t)&&Ds(t)?t:Gs(t)}function Js(e,t,s){var i;void 0===t&&(t=[]),void 0===s&&(s=!0);const a=Gs(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),n=Zs(a);if(o){const e=Xs(n);return t.concat(n,n.visualViewport||[],Ds(a)?a:[],e&&s?Js(e):[])}return t.concat(a,Js(a,[],s))}function Xs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qs(e){const t=Ys(e);let s=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Ls(e),o=a?e.offsetWidth:s,n=a?e.offsetHeight:i,r=Jt(s)!==o||Jt(i)!==n;return r&&(s=o,i=n),{width:s,height:i,$:r}}function ei(e){return Ps(e)?e:e.contextElement}function ti(e){const t=ei(e);if(!Ls(t))return Qt(1);const s=t.getBoundingClientRect(),{width:i,height:a,$:o}=Qs(t);let n=(o?Jt(s.width):s.width)/i,r=(o?Jt(s.height):s.height)/a;return n&&Number.isFinite(n)||(n=1),r&&Number.isFinite(r)||(r=1),{x:n,y:r}}const si=Qt(0);function ii(e){const t=Zs(e);return js()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:si}function ai(e,t,s,i){void 0===t&&(t=!1),void 0===s&&(s=!1);const a=e.getBoundingClientRect(),o=ei(e);let n=Qt(1);t&&(i?Ps(i)&&(n=ti(i)):n=ti(e));const r=function(e,t,s){return void 0===t&&(t=!1),!(!s||t&&s!==Zs(e))&&t}(o,s,i)?ii(o):Qt(0);let l=(a.left+r.x)/n.x,d=(a.top+r.y)/n.y,c=a.width/n.x,h=a.height/n.y;if(o){const e=Zs(o),t=i&&Ps(i)?Zs(i):i;let s=e,a=Xs(s);for(;a&&i&&t!==s;){const e=ti(a),t=a.getBoundingClientRect(),i=Ys(a),o=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,n=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=o,d+=n,s=Zs(a),a=Xs(s)}}return ys({width:c,height:h,x:l,y:d})}function oi(e,t){const s=Ws(e).scrollLeft;return t?t.left+s:ai(Vs(e)).left+s}function ni(e,t){const s=e.getBoundingClientRect();return{x:s.left+t.scrollLeft-oi(e,s),y:s.top+t.scrollTop}}const ri=new Set(["absolute","fixed"]);function li(e,t,s){let i;if("viewport"===t)i=function(e,t){const s=Zs(e),i=Vs(e),a=s.visualViewport;let o=i.clientWidth,n=i.clientHeight,r=0,l=0;if(a){o=a.width,n=a.height;const e=js();(!e||e&&"fixed"===t)&&(r=a.offsetLeft,l=a.offsetTop)}const d=oi(i);if(d<=0){const e=i.ownerDocument,t=e.body,s=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,n=Math.abs(i.clientWidth-t.clientWidth-a);n<=25&&(o-=n)}else d<=25&&(o+=d);return{width:o,height:n,x:r,y:l}}(e,s);else if("document"===t)i=function(e){const t=Vs(e),s=Ws(e),i=e.ownerDocument.body,a=Gt(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Gt(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let n=-s.scrollLeft+oi(e);const r=-s.scrollTop;return"rtl"===Ys(i).direction&&(n+=Gt(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:n,y:r}}(Vs(e));else if(Ps(t))i=function(e,t){const s=ai(e,!0,"fixed"===t),i=s.top+e.clientTop,a=s.left+e.clientLeft,o=Ls(e)?ti(e):Qt(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,s);else{const s=ii(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return ys(i)}function di(e,t){const s=Ks(e);return!(s===t||!Ps(s)||qs(s))&&("fixed"===Ys(s).position||di(s,t))}function ci(e,t,s){const i=Ls(t),a=Vs(t),o="fixed"===s,n=ai(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const l=Qt(0);function d(){l.x=oi(a)}if(i||!i&&!o)if(("body"!==Ms(t)||Ds(a))&&(r=Ws(t)),i){const e=ai(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&d();o&&!i&&a&&d();const c=!a||i||o?Qt(0):ni(a,r);return{x:n.left+r.scrollLeft-l.x-c.x,y:n.top+r.scrollTop-l.y-c.y,width:n.width,height:n.height}}function hi(e){return"static"===Ys(e).position}function pi(e,t){if(!Ls(e)||"fixed"===Ys(e).position)return null;if(t)return t(e);let s=e.offsetParent;return Vs(e)===s&&(s=s.ownerDocument.body),s}function ui(e,t){const s=Zs(e);if(Os(e))return s;if(!Ls(e)){let t=Ks(e);for(;t&&!qs(t);){if(Ps(t)&&!hi(t))return t;t=Ks(t)}return s}let i=pi(e,t);for(;i&&Bs(i)&&hi(i);)i=pi(i,t);return i&&qs(i)&&hi(i)&&!Ns(i)?s:i||function(e){let t=Ks(e);for(;Ls(t)&&!qs(t);){if(Ns(t))return t;if(Os(t))return null;t=Ks(t)}return null}(e)||s}const gi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:s,offsetParent:i,strategy:a}=e;const o="fixed"===a,n=Vs(i),r=!!t&&Os(t.floating);if(i===n||r&&o)return s;let l={scrollLeft:0,scrollTop:0},d=Qt(1);const c=Qt(0),h=Ls(i);if((h||!h&&!o)&&(("body"!==Ms(i)||Ds(n))&&(l=Ws(i)),Ls(i))){const e=ai(i);d=ti(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}const p=!n||h||o?Qt(0):ni(n,l);return{width:s.width*d.x,height:s.height*d.y,x:s.x*d.x-l.scrollLeft*d.x+c.x+p.x,y:s.y*d.y-l.scrollTop*d.y+c.y+p.y}},getDocumentElement:Vs,getClippingRect:function(e){let{element:t,boundary:s,rootBoundary:i,strategy:a}=e;const o=[..."clippingAncestors"===s?Os(t)?[]:function(e,t){const s=t.get(e);if(s)return s;let i=Js(e,[],!1).filter(e=>Ps(e)&&"body"!==Ms(e)),a=null;const o="fixed"===Ys(e).position;let n=o?Ks(e):e;for(;Ps(n)&&!qs(n);){const t=Ys(n),s=Ns(n);s||"fixed"!==t.position||(a=null),(o?!s&&!a:!s&&"static"===t.position&&a&&ri.has(a.position)||Ds(n)&&!s&&di(e,n))?i=i.filter(e=>e!==n):a=t,n=Ks(n)}return t.set(e,i),i}(t,this._c):[].concat(s),i],n=o[0],r=o.reduce((e,s)=>{const i=li(t,s,a);return e.top=Gt(i.top,e.top),e.right=Kt(i.right,e.right),e.bottom=Kt(i.bottom,e.bottom),e.left=Gt(i.left,e.left),e},li(t,n,a));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:ui,getElementRects:async function(e){const t=this.getOffsetParent||ui,s=this.getDimensions,i=await s(e.floating);return{reference:ci(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:s}=Qs(e);return{width:t,height:s}},getScale:ti,isElement:Ps,isRTL:function(e){return"rtl"===Ys(e).direction}};function vi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mi(e,t,s,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=ei(e),c=a||o?[...d?Js(d):[],...Js(t)]:[];c.forEach(e=>{a&&e.addEventListener("scroll",s,{passive:!0}),o&&e.addEventListener("resize",s)});const h=d&&r?function(e,t){let s,i=null;const a=Vs(e);function o(){var e;clearTimeout(s),null==(e=i)||e.disconnect(),i=null}return function n(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),o();const d=e.getBoundingClientRect(),{left:c,top:h,width:p,height:u}=d;if(r||t(),!p||!u)return;const g={rootMargin:-Xt(h)+"px "+-Xt(a.clientWidth-(c+p))+"px "+-Xt(a.clientHeight-(h+u))+"px "+-Xt(c)+"px",threshold:Gt(0,Kt(1,l))||1};let v=!0;function m(t){const i=t[0].intersectionRatio;if(i!==l){if(!v)return n();i?n(!1,i):s=setTimeout(()=>{n(!1,1e-7)},1e3)}1!==i||vi(d,e.getBoundingClientRect())||n(),v=!1}try{i=new IntersectionObserver(m,{...g,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(m,g)}i.observe(e)}(!0),o}(d,s):null;let p,u=-1,g=null;n&&(g=new ResizeObserver(e=>{let[i]=e;i&&i.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),s()}),d&&!l&&g.observe(d),g.observe(t));let v=l?ai(e):null;return l&&function t(){const i=ai(e);v&&!vi(v,i)&&s();v=i,p=requestAnimationFrame(t)}(),s(),()=>{var e;c.forEach(e=>{a&&e.removeEventListener("scroll",s),o&&e.removeEventListener("resize",s)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const fi=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var s,i;const{x:a,y:o,placement:n,middlewareData:r}=t,l=await async function(e,t){const{placement:s,platform:i,elements:a}=e,o=await(null==i.isRTL?void 0:i.isRTL(a.floating)),n=as(s),r=os(s),l="y"===ds(s),d=$s.has(n)?-1:1,c=o&&l?-1:1,h=is(t,e);let{mainAxis:p,crossAxis:u,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return r&&"number"==typeof g&&(u="end"===r?-1*g:g),l?{x:u*c,y:p*d}:{x:p*d,y:u*c}}(t,e);return n===(null==(s=r.offset)?void 0:s.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:n}}}}},bi=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:i,placement:a}=t,{mainAxis:o=!0,crossAxis:n=!1,limiter:r={fn:e=>{let{x:t,y:s}=e;return{x:t,y:s}}},...l}=is(e,t),d={x:s,y:i},c=await xs(t,l),h=ds(as(a)),p=ns(h);let u=d[p],g=d[h];if(o){const e="y"===p?"bottom":"right";u=ss(u+c["y"===p?"top":"left"],u,u-c[e])}if(n){const e="y"===h?"bottom":"right";g=ss(g+c["y"===h?"top":"left"],g,g-c[e])}const v=r.fn({...t,[p]:u,[h]:g});return{...v,data:{x:v.x-s,y:v.y-i,enabled:{[p]:o,[h]:n}}}}}},wi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var s,i;const{placement:a,middlewareData:o,rects:n,initialPlacement:r,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...m}=is(e,t);if(null!=(s=o.arrow)&&s.alignmentOffset)return{};const f=as(a),b=ds(r),w=as(r)===r,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),_=p||(w||!v?[bs(r)]:function(e){const t=bs(e);return[ps(e),t,ps(t)]}(r)),x="none"!==g;!p&&x&&_.push(...fs(r,v,g,y));const k=[r,..._],C=await xs(t,m),$=[];let S=(null==(i=o.flip)?void 0:i.overflows)||[];if(c&&$.push(C[f]),h){const e=hs(a,n,y);$.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:a,overflows:$}],!$.every(e=>e<=0)){var M,Z;const e=((null==(M=o.flip)?void 0:M.index)||0)+1,t=k[e];if(t){if(!("alignment"===h&&b!==ds(t))||S.every(e=>ds(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let s=null==(Z=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:Z.placement;if(!s)switch(u){case"bestFit":{var V;const e=null==(V=S.filter(e=>{if(x){const t=ds(e.placement);return t===b||"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:V[0];e&&(s=e);break}case"initialPlacement":s=r}if(a!==s)return{reset:{placement:s}}}return{}}}},yi=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var s,i;const{placement:a,rects:o,platform:n,elements:r}=t,{apply:l=()=>{},...d}=is(e,t),c=await xs(t,d),h=as(a),p=os(a),u="y"===ds(a),{width:g,height:v}=o.floating;let m,f;"top"===h||"bottom"===h?(m=h,f=p===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(f=h,m="end"===p?"top":"bottom");const b=v-c.top-c.bottom,w=g-c.left-c.right,y=Kt(v-c[m],b),_=Kt(g-c[f],w),x=!t.middlewareData.shift;let k=y,C=_;if(null!=(s=t.middlewareData.shift)&&s.enabled.x&&(C=w),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(k=b),x&&!p){const e=Gt(c.left,0),t=Gt(c.right,0),s=Gt(c.top,0),i=Gt(c.bottom,0);u?C=g-2*(0!==e||0!==t?e+t:Gt(c.left,c.right)):k=v-2*(0!==s||0!==i?s+i:Gt(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:k});const $=await n.getDimensions(r.floating);return g!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}},_i=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:s}=t,{strategy:i="referenceHidden",...a}=is(e,t);switch(i){case"referenceHidden":{const e=ks(await xs(t,{...a,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cs(e)}}}case"escaped":{const e=ks(await xs(t,{...a,altBoundary:!0}),s.floating);return{data:{escapedOffsets:e,escaped:Cs(e)}}}default:return{}}}}},xi=(e,t,s)=>{const i=new Map,a={platform:gi,...s},o={...a.platform,_c:i};return(async(e,t,s)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:n}=s,r=o.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(t));let d=await n.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=_s(d,i,l),p=i,u={},g=0;for(let s=0;s<r.length;s++){const{name:o,fn:v}=r[s],{x:m,y:f,data:b,reset:w}=await v({x:c,y:h,initialPlacement:i,placement:p,strategy:a,middlewareData:u,rects:d,platform:n,elements:{reference:e,floating:t}});c=null!=m?m:c,h=null!=f?f:h,u={...u,[o]:{...u[o],...b}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(d=!0===w.rects?await n.getElementRects({reference:e,floating:t,strategy:a}):w.rects),({x:c,y:h}=_s(d,p,l))),s=-1)}return{x:c,y:h,placement:p,strategy:a,middlewareData:u}})(e,t,{...a,platform:o})};var ki=r`:host{display:contents}.tooltip-placeholder{display:inline-block;max-width:100%}.tooltip{word-wrap:break-word;background-color:var(--sgds-surface-fixed-dark);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 2px 0 rgba(0,0,0,.12),0 8px 16px 0 rgba(0,0,0,.14);color:var(--sgds-color-fixed-light);display:block;font-size:var(--sgds-font-size-label-sm);line-break:auto;max-width:var(--sgds-dimension-320);padding:var(--sgds-padding-xs) var(--sgds-padding-sm);text-align:left;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;z-index:var(--sgds-z-index-overlay)}div{max-width:fit-content}`;class Ci extends Oe{constructor(){super(...arguments),this._myTooltip=jt(),this._tooltipBubble=jt(),this.content="",this.placement="top",this.trigger="hover focus",this.open=!1,this._handleClickOutOfElement=e=>{this.open&&(e.composedPath().includes(this)||this.hide())}}connectedCallback(){super.connectedCallback(),this.trigger.includes("click")&&document.addEventListener("click",this._handleClickOutOfElement)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this._tooltipTargetElements.forEach(e=>{e.setAttribute("data-sgds-tooltip",this.content),this.trigger.includes("hover")&&(e.addEventListener("mouseenter",()=>this.show()),e.addEventListener("mouseleave",()=>this.hide())),this.trigger.includes("focus")&&(e.addEventListener("focus",()=>this.show()),e.addEventListener("blur",()=>this.hide())),"click"===this.trigger&&e.addEventListener("click",()=>this.toggle())})}_handleSlotChange(){this._tooltipTargetElements.forEach(e=>e.setAttribute("data-sgds-tooltip",this.content))}async updateFloatingPosition(){if(!this._myTooltip.value||!this._tooltipBubble.value)return;const{x:e,y:t,placement:s,strategy:i,middlewareData:a}=await xi(this._tooltipTargetElements[0],this._tooltipBubble.value,{strategy:"fixed",placement:this.placement,middleware:[fi(8),wi(),bi(),_i()]});this._tooltipBubble.value.setAttribute("data-placement",s),Object.assign(this._tooltipBubble.value.style,{position:i,left:`${e}px`,top:`${t}px`});const{referenceHidden:o,escaped:n}=a.hide||{};this._tooltipBubble.value.style.visibility=o||n?"hidden":"visible"}async show(){this.open||(this.open=!0,this.emit("sgds-show"),await this.updateComplete,await this.updateFloatingPosition(),this._myTooltip.value&&this._tooltipBubble.value&&(this._cleanupAutoUpdate=mi(this._tooltipTargetElements[0],this._tooltipBubble.value,()=>this.updateFloatingPosition())),this.emit("sgds-after-show"))}hide(){this.open&&(this.emit("sgds-hide"),this.open=!1,this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0),setTimeout(()=>this.emit("sgds-after-hide"),0))}toggle(){this.open?this.hide():this.show()}render(){return te`
146
+ */const jt=()=>new Ut;class Ut{}const qt=new WeakMap;const Yt=Ye(class extends Nt{render(e){return ae}update(e,[t]){const s=t!==this._ref;return s&&void 0!==this._ref&&this._updateRefValue(void 0),(s||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),ae}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let s=qt.get(t);void 0===s&&(s=new WeakMap,qt.set(t,s)),void 0!==s.get(this._ref)&&this._ref.call(this._context,void 0),s.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?qt.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),Wt=["top","right","bottom","left"],Kt=Math.min,Gt=Math.max,Jt=Math.round,Xt=Math.floor,Qt=e=>({x:e,y:e}),es={left:"right",right:"left",bottom:"top",top:"bottom"},ts={start:"end",end:"start"};function ss(e,t,s){return Gt(e,Kt(t,s))}function is(e,t){return"function"==typeof e?e(t):e}function as(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function ns(e){return"x"===e?"y":"x"}function rs(e){return"y"===e?"height":"width"}const ls=new Set(["top","bottom"]);function ds(e){return ls.has(as(e))?"y":"x"}function cs(e){return ns(ds(e))}function hs(e,t,s){void 0===s&&(s=!1);const i=os(e),a=cs(e),o=rs(a);let n="x"===a?i===(s?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(n=bs(n)),[n,bs(n)]}function ps(e){return e.replace(/start|end/g,e=>ts[e])}const us=["left","right"],gs=["right","left"],vs=["top","bottom"],ms=["bottom","top"];function fs(e,t,s,i){const a=os(e);let o=function(e,t,s){switch(e){case"top":case"bottom":return s?t?gs:us:t?us:gs;case"left":case"right":return t?vs:ms;default:return[]}}(as(e),"start"===s,i);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(ps)))),o}function bs(e){return e.replace(/left|right|bottom|top/g,e=>es[e])}function ws(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 ys(e){const{x:t,y:s,width:i,height:a}=e;return{width:i,height:a,top:s,left:t,right:t+i,bottom:s+a,x:t,y:s}}function _s(e,t,s){let{reference:i,floating:a}=e;const o=ds(t),n=cs(t),r=rs(n),l=as(t),d="y"===o,c=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2,p=i[r]/2-a[r]/2;let u;switch(l){case"top":u={x:c,y:i.y-a.height};break;case"bottom":u={x:c,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-a.width,y:h};break;default:u={x:i.x,y:i.y}}switch(os(t)){case"start":u[n]-=p*(s&&d?-1:1);break;case"end":u[n]+=p*(s&&d?-1:1)}return u}async function xs(e,t){var s;void 0===t&&(t={});const{x:i,y:a,platform:o,rects:n,elements:r,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=is(t,e),g=ws(u),v=r[p?"floating"===h?"reference":"floating":h],m=ys(await o.getClippingRect({element:null==(s=await(null==o.isElement?void 0:o.isElement(v)))||s?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(r.floating)),boundary:d,rootBoundary:c,strategy:l})),f="floating"===h?{x:i,y:a,width:n.floating.width,height:n.floating.height}:n.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(r.floating)),w=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},y=ys(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:b,strategy:l}):f);return{top:(m.top-y.top+g.top)/w.y,bottom:(y.bottom-m.bottom+g.bottom)/w.y,left:(m.left-y.left+g.left)/w.x,right:(y.right-m.right+g.right)/w.x}}function ks(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cs(e){return Wt.some(t=>e[t]>=0)}const $s=new Set(["left","top"]);function Ss(){return"undefined"!=typeof window}function Ms(e){return zs(e)?(e.nodeName||"").toLowerCase():"#document"}function Zs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vs(e){var t;return null==(t=(zs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zs(e){return!!Ss()&&(e instanceof Node||e instanceof Zs(e).Node)}function Ps(e){return!!Ss()&&(e instanceof Element||e instanceof Zs(e).Element)}function Ls(e){return!!Ss()&&(e instanceof HTMLElement||e instanceof Zs(e).HTMLElement)}function As(e){return!(!Ss()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zs(e).ShadowRoot)}const Ds=new Set(["inline","contents"]);function Is(e){const{overflow:t,overflowX:s,overflowY:i,display:a}=Ys(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+s)&&!Ds.has(a)}const Es=new Set(["table","td","th"]);function Bs(e){return Es.has(Ms(e))}const Hs=[":popover-open",":modal"];function Os(e){return Hs.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ts=["transform","translate","scale","rotate","perspective"],Fs=["transform","translate","scale","rotate","perspective","filter"],Rs=["paint","layout","strict","content"];function Ns(e){const t=js(),s=Ps(e)?Ys(e):e;return Ts.some(e=>!!s[e]&&"none"!==s[e])||!!s.containerType&&"normal"!==s.containerType||!t&&!!s.backdropFilter&&"none"!==s.backdropFilter||!t&&!!s.filter&&"none"!==s.filter||Fs.some(e=>(s.willChange||"").includes(e))||Rs.some(e=>(s.contain||"").includes(e))}function js(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Us=new Set(["html","body","#document"]);function qs(e){return Us.has(Ms(e))}function Ys(e){return Zs(e).getComputedStyle(e)}function Ws(e){return Ps(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ks(e){if("html"===Ms(e))return e;const t=e.assignedSlot||e.parentNode||As(e)&&e.host||Vs(e);return As(t)?t.host:t}function Gs(e){const t=Ks(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ls(t)&&Is(t)?t:Gs(t)}function Js(e,t,s){var i;void 0===t&&(t=[]),void 0===s&&(s=!0);const a=Gs(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),n=Zs(a);if(o){const e=Xs(n);return t.concat(n,n.visualViewport||[],Is(a)?a:[],e&&s?Js(e):[])}return t.concat(a,Js(a,[],s))}function Xs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qs(e){const t=Ys(e);let s=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Ls(e),o=a?e.offsetWidth:s,n=a?e.offsetHeight:i,r=Jt(s)!==o||Jt(i)!==n;return r&&(s=o,i=n),{width:s,height:i,$:r}}function ei(e){return Ps(e)?e:e.contextElement}function ti(e){const t=ei(e);if(!Ls(t))return Qt(1);const s=t.getBoundingClientRect(),{width:i,height:a,$:o}=Qs(t);let n=(o?Jt(s.width):s.width)/i,r=(o?Jt(s.height):s.height)/a;return n&&Number.isFinite(n)||(n=1),r&&Number.isFinite(r)||(r=1),{x:n,y:r}}const si=Qt(0);function ii(e){const t=Zs(e);return js()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:si}function ai(e,t,s,i){void 0===t&&(t=!1),void 0===s&&(s=!1);const a=e.getBoundingClientRect(),o=ei(e);let n=Qt(1);t&&(i?Ps(i)&&(n=ti(i)):n=ti(e));const r=function(e,t,s){return void 0===t&&(t=!1),!(!s||t&&s!==Zs(e))&&t}(o,s,i)?ii(o):Qt(0);let l=(a.left+r.x)/n.x,d=(a.top+r.y)/n.y,c=a.width/n.x,h=a.height/n.y;if(o){const e=Zs(o),t=i&&Ps(i)?Zs(i):i;let s=e,a=Xs(s);for(;a&&i&&t!==s;){const e=ti(a),t=a.getBoundingClientRect(),i=Ys(a),o=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,n=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=o,d+=n,s=Zs(a),a=Xs(s)}}return ys({width:c,height:h,x:l,y:d})}function oi(e,t){const s=Ws(e).scrollLeft;return t?t.left+s:ai(Vs(e)).left+s}function ni(e,t){const s=e.getBoundingClientRect();return{x:s.left+t.scrollLeft-oi(e,s),y:s.top+t.scrollTop}}const ri=new Set(["absolute","fixed"]);function li(e,t,s){let i;if("viewport"===t)i=function(e,t){const s=Zs(e),i=Vs(e),a=s.visualViewport;let o=i.clientWidth,n=i.clientHeight,r=0,l=0;if(a){o=a.width,n=a.height;const e=js();(!e||e&&"fixed"===t)&&(r=a.offsetLeft,l=a.offsetTop)}const d=oi(i);if(d<=0){const e=i.ownerDocument,t=e.body,s=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,n=Math.abs(i.clientWidth-t.clientWidth-a);n<=25&&(o-=n)}else d<=25&&(o+=d);return{width:o,height:n,x:r,y:l}}(e,s);else if("document"===t)i=function(e){const t=Vs(e),s=Ws(e),i=e.ownerDocument.body,a=Gt(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Gt(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let n=-s.scrollLeft+oi(e);const r=-s.scrollTop;return"rtl"===Ys(i).direction&&(n+=Gt(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:n,y:r}}(Vs(e));else if(Ps(t))i=function(e,t){const s=ai(e,!0,"fixed"===t),i=s.top+e.clientTop,a=s.left+e.clientLeft,o=Ls(e)?ti(e):Qt(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,s);else{const s=ii(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return ys(i)}function di(e,t){const s=Ks(e);return!(s===t||!Ps(s)||qs(s))&&("fixed"===Ys(s).position||di(s,t))}function ci(e,t,s){const i=Ls(t),a=Vs(t),o="fixed"===s,n=ai(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const l=Qt(0);function d(){l.x=oi(a)}if(i||!i&&!o)if(("body"!==Ms(t)||Is(a))&&(r=Ws(t)),i){const e=ai(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&d();o&&!i&&a&&d();const c=!a||i||o?Qt(0):ni(a,r);return{x:n.left+r.scrollLeft-l.x-c.x,y:n.top+r.scrollTop-l.y-c.y,width:n.width,height:n.height}}function hi(e){return"static"===Ys(e).position}function pi(e,t){if(!Ls(e)||"fixed"===Ys(e).position)return null;if(t)return t(e);let s=e.offsetParent;return Vs(e)===s&&(s=s.ownerDocument.body),s}function ui(e,t){const s=Zs(e);if(Os(e))return s;if(!Ls(e)){let t=Ks(e);for(;t&&!qs(t);){if(Ps(t)&&!hi(t))return t;t=Ks(t)}return s}let i=pi(e,t);for(;i&&Bs(i)&&hi(i);)i=pi(i,t);return i&&qs(i)&&hi(i)&&!Ns(i)?s:i||function(e){let t=Ks(e);for(;Ls(t)&&!qs(t);){if(Ns(t))return t;if(Os(t))return null;t=Ks(t)}return null}(e)||s}const gi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:s,offsetParent:i,strategy:a}=e;const o="fixed"===a,n=Vs(i),r=!!t&&Os(t.floating);if(i===n||r&&o)return s;let l={scrollLeft:0,scrollTop:0},d=Qt(1);const c=Qt(0),h=Ls(i);if((h||!h&&!o)&&(("body"!==Ms(i)||Is(n))&&(l=Ws(i)),Ls(i))){const e=ai(i);d=ti(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}const p=!n||h||o?Qt(0):ni(n,l);return{width:s.width*d.x,height:s.height*d.y,x:s.x*d.x-l.scrollLeft*d.x+c.x+p.x,y:s.y*d.y-l.scrollTop*d.y+c.y+p.y}},getDocumentElement:Vs,getClippingRect:function(e){let{element:t,boundary:s,rootBoundary:i,strategy:a}=e;const o=[..."clippingAncestors"===s?Os(t)?[]:function(e,t){const s=t.get(e);if(s)return s;let i=Js(e,[],!1).filter(e=>Ps(e)&&"body"!==Ms(e)),a=null;const o="fixed"===Ys(e).position;let n=o?Ks(e):e;for(;Ps(n)&&!qs(n);){const t=Ys(n),s=Ns(n);s||"fixed"!==t.position||(a=null),(o?!s&&!a:!s&&"static"===t.position&&a&&ri.has(a.position)||Is(n)&&!s&&di(e,n))?i=i.filter(e=>e!==n):a=t,n=Ks(n)}return t.set(e,i),i}(t,this._c):[].concat(s),i],n=o[0],r=o.reduce((e,s)=>{const i=li(t,s,a);return e.top=Gt(i.top,e.top),e.right=Kt(i.right,e.right),e.bottom=Kt(i.bottom,e.bottom),e.left=Gt(i.left,e.left),e},li(t,n,a));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:ui,getElementRects:async function(e){const t=this.getOffsetParent||ui,s=this.getDimensions,i=await s(e.floating);return{reference:ci(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:s}=Qs(e);return{width:t,height:s}},getScale:ti,isElement:Ps,isRTL:function(e){return"rtl"===Ys(e).direction}};function vi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mi(e,t,s,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=ei(e),c=a||o?[...d?Js(d):[],...Js(t)]:[];c.forEach(e=>{a&&e.addEventListener("scroll",s,{passive:!0}),o&&e.addEventListener("resize",s)});const h=d&&r?function(e,t){let s,i=null;const a=Vs(e);function o(){var e;clearTimeout(s),null==(e=i)||e.disconnect(),i=null}return function n(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),o();const d=e.getBoundingClientRect(),{left:c,top:h,width:p,height:u}=d;if(r||t(),!p||!u)return;const g={rootMargin:-Xt(h)+"px "+-Xt(a.clientWidth-(c+p))+"px "+-Xt(a.clientHeight-(h+u))+"px "+-Xt(c)+"px",threshold:Gt(0,Kt(1,l))||1};let v=!0;function m(t){const i=t[0].intersectionRatio;if(i!==l){if(!v)return n();i?n(!1,i):s=setTimeout(()=>{n(!1,1e-7)},1e3)}1!==i||vi(d,e.getBoundingClientRect())||n(),v=!1}try{i=new IntersectionObserver(m,{...g,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(m,g)}i.observe(e)}(!0),o}(d,s):null;let p,u=-1,g=null;n&&(g=new ResizeObserver(e=>{let[i]=e;i&&i.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),s()}),d&&!l&&g.observe(d),g.observe(t));let v=l?ai(e):null;return l&&function t(){const i=ai(e);v&&!vi(v,i)&&s();v=i,p=requestAnimationFrame(t)}(),s(),()=>{var e;c.forEach(e=>{a&&e.removeEventListener("scroll",s),o&&e.removeEventListener("resize",s)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const fi=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var s,i;const{x:a,y:o,placement:n,middlewareData:r}=t,l=await async function(e,t){const{placement:s,platform:i,elements:a}=e,o=await(null==i.isRTL?void 0:i.isRTL(a.floating)),n=as(s),r=os(s),l="y"===ds(s),d=$s.has(n)?-1:1,c=o&&l?-1:1,h=is(t,e);let{mainAxis:p,crossAxis:u,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return r&&"number"==typeof g&&(u="end"===r?-1*g:g),l?{x:u*c,y:p*d}:{x:p*d,y:u*c}}(t,e);return n===(null==(s=r.offset)?void 0:s.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:n}}}}},bi=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:i,placement:a}=t,{mainAxis:o=!0,crossAxis:n=!1,limiter:r={fn:e=>{let{x:t,y:s}=e;return{x:t,y:s}}},...l}=is(e,t),d={x:s,y:i},c=await xs(t,l),h=ds(as(a)),p=ns(h);let u=d[p],g=d[h];if(o){const e="y"===p?"bottom":"right";u=ss(u+c["y"===p?"top":"left"],u,u-c[e])}if(n){const e="y"===h?"bottom":"right";g=ss(g+c["y"===h?"top":"left"],g,g-c[e])}const v=r.fn({...t,[p]:u,[h]:g});return{...v,data:{x:v.x-s,y:v.y-i,enabled:{[p]:o,[h]:n}}}}}},wi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var s,i;const{placement:a,middlewareData:o,rects:n,initialPlacement:r,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...m}=is(e,t);if(null!=(s=o.arrow)&&s.alignmentOffset)return{};const f=as(a),b=ds(r),w=as(r)===r,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),_=p||(w||!v?[bs(r)]:function(e){const t=bs(e);return[ps(e),t,ps(t)]}(r)),x="none"!==g;!p&&x&&_.push(...fs(r,v,g,y));const k=[r,..._],C=await xs(t,m),$=[];let S=(null==(i=o.flip)?void 0:i.overflows)||[];if(c&&$.push(C[f]),h){const e=hs(a,n,y);$.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:a,overflows:$}],!$.every(e=>e<=0)){var M,Z;const e=((null==(M=o.flip)?void 0:M.index)||0)+1,t=k[e];if(t){if(!("alignment"===h&&b!==ds(t))||S.every(e=>ds(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let s=null==(Z=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:Z.placement;if(!s)switch(u){case"bestFit":{var V;const e=null==(V=S.filter(e=>{if(x){const t=ds(e.placement);return t===b||"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:V[0];e&&(s=e);break}case"initialPlacement":s=r}if(a!==s)return{reset:{placement:s}}}return{}}}},yi=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var s,i;const{placement:a,rects:o,platform:n,elements:r}=t,{apply:l=()=>{},...d}=is(e,t),c=await xs(t,d),h=as(a),p=os(a),u="y"===ds(a),{width:g,height:v}=o.floating;let m,f;"top"===h||"bottom"===h?(m=h,f=p===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(f=h,m="end"===p?"top":"bottom");const b=v-c.top-c.bottom,w=g-c.left-c.right,y=Kt(v-c[m],b),_=Kt(g-c[f],w),x=!t.middlewareData.shift;let k=y,C=_;if(null!=(s=t.middlewareData.shift)&&s.enabled.x&&(C=w),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(k=b),x&&!p){const e=Gt(c.left,0),t=Gt(c.right,0),s=Gt(c.top,0),i=Gt(c.bottom,0);u?C=g-2*(0!==e||0!==t?e+t:Gt(c.left,c.right)):k=v-2*(0!==s||0!==i?s+i:Gt(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:k});const $=await n.getDimensions(r.floating);return g!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}},_i=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:s}=t,{strategy:i="referenceHidden",...a}=is(e,t);switch(i){case"referenceHidden":{const e=ks(await xs(t,{...a,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cs(e)}}}case"escaped":{const e=ks(await xs(t,{...a,altBoundary:!0}),s.floating);return{data:{escapedOffsets:e,escaped:Cs(e)}}}default:return{}}}}},xi=(e,t,s)=>{const i=new Map,a={platform:gi,...s},o={...a.platform,_c:i};return(async(e,t,s)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:n}=s,r=o.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(t));let d=await n.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=_s(d,i,l),p=i,u={},g=0;for(let s=0;s<r.length;s++){const{name:o,fn:v}=r[s],{x:m,y:f,data:b,reset:w}=await v({x:c,y:h,initialPlacement:i,placement:p,strategy:a,middlewareData:u,rects:d,platform:n,elements:{reference:e,floating:t}});c=null!=m?m:c,h=null!=f?f:h,u={...u,[o]:{...u[o],...b}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(d=!0===w.rects?await n.getElementRects({reference:e,floating:t,strategy:a}):w.rects),({x:c,y:h}=_s(d,p,l))),s=-1)}return{x:c,y:h,placement:p,strategy:a,middlewareData:u}})(e,t,{...a,platform:o})};var ki=r`:host{display:contents}.tooltip-placeholder{display:inline-block;max-width:100%}.tooltip{word-wrap:break-word;background-color:var(--sgds-surface-fixed-dark);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 2px 0 rgba(0,0,0,.12),0 8px 16px 0 rgba(0,0,0,.14);color:var(--sgds-color-fixed-light);display:block;font-size:var(--sgds-font-size-label-sm);line-break:auto;max-width:var(--sgds-dimension-320);padding:var(--sgds-padding-xs) var(--sgds-padding-sm);text-align:left;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;z-index:var(--sgds-z-index-overlay)}div{max-width:fit-content}`;class Ci extends Oe{constructor(){super(...arguments),this._myTooltip=jt(),this._tooltipBubble=jt(),this.content="",this.placement="top",this.trigger="hover focus",this.open=!1,this._handleClickOutOfElement=e=>{this.open&&(e.composedPath().includes(this)||this.hide())}}connectedCallback(){super.connectedCallback(),this.trigger.includes("click")&&document.addEventListener("click",this._handleClickOutOfElement)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this._tooltipTargetElements.forEach(e=>{e.setAttribute("data-sgds-tooltip",this.content),this.trigger.includes("hover")&&(e.addEventListener("mouseenter",()=>this.show()),e.addEventListener("mouseleave",()=>this.hide())),this.trigger.includes("focus")&&(e.addEventListener("focus",()=>this.show()),e.addEventListener("blur",()=>this.hide())),"click"===this.trigger&&e.addEventListener("click",()=>this.toggle())})}_handleSlotChange(){this._tooltipTargetElements.forEach(e=>e.setAttribute("data-sgds-tooltip",this.content))}async updateFloatingPosition(){if(!this._myTooltip.value||!this._tooltipBubble.value)return;const{x:e,y:t,placement:s,strategy:i,middlewareData:a}=await xi(this._tooltipTargetElements[0],this._tooltipBubble.value,{strategy:"fixed",placement:this.placement,middleware:[fi(8),wi(),bi(),_i()]});this._tooltipBubble.value.setAttribute("data-placement",s),Object.assign(this._tooltipBubble.value.style,{position:i,left:`${e}px`,top:`${t}px`});const{referenceHidden:o,escaped:n}=a.hide||{};this._tooltipBubble.value.style.visibility=o||n?"hidden":"visible"}async show(){this.open||(this.open=!0,this.emit("sgds-show"),await this.updateComplete,await this.updateFloatingPosition(),this._myTooltip.value&&this._tooltipBubble.value&&(this._cleanupAutoUpdate=mi(this._tooltipTargetElements[0],this._tooltipBubble.value,()=>this.updateFloatingPosition())),this.emit("sgds-after-show"))}hide(){this.open&&(this.emit("sgds-hide"),this.open=!1,this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0),setTimeout(()=>this.emit("sgds-after-hide"),0))}toggle(){this.open?this.hide():this.show()}render(){return te`
147
147
  <div ${Yt(this._myTooltip)} class="tooltip-placeholder">
148
148
  <slot @slotchange=${()=>this._handleSlotChange()}></slot>
149
149
  ${this.open?te`<div ${Yt(this._tooltipBubble)} class="tooltip" role="tooltip">${this.content}</div>`:null}
@@ -167,7 +167,7 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
167
167
  ></sgds-close-button>`:ae}
168
168
  </div>`}render(){return this.dismissible&&this.show||!this.dismissible?this.truncated?te`<sgds-tooltip content=${this.text} @sgds-hide=${e=>e.stopPropagation()}
169
169
  >${this._renderBadge()}</sgds-tooltip
170
- >`:this._renderBadge():ae}}Si.styles=[...Oe.styles,Mt],Si.dependencies={"sgds-close-button":ft,"sgds-tooltip":Ci},t([ze({type:Boolean,reflect:!0})],Si.prototype,"show",void 0),t([ze({reflect:!0})],Si.prototype,"variant",void 0),t([ze({type:Boolean,reflect:!0})],Si.prototype,"outlined",void 0),t([ze({type:Boolean,reflect:!0})],Si.prototype,"dismissible",void 0),t([ze({type:Boolean,reflect:!0})],Si.prototype,"fullWidth",void 0),t([Pe()],Si.prototype,"truncated",void 0),t([Pe()],Si.prototype,"text",void 0),t([nt("show")],Si.prototype,"_handleShowChange",null),t([nt("text",{waitUntilFirstUpdate:!0})],Si.prototype,"_handleTruncation",null);var Mi=r`:host([size=sm]) .overflow-btn{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.overflow-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border-radius:var(--sgds-border-radius-sm);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.overflow-btn:hover{background-color:var(--sgds-bg-translucent-subtle)}.overflow-btn:focus-visible{background-color:var(--sgds-bg-translucent-subtle);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`;function Zi(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class Vi extends Oe{constructor(){super(...arguments),this.myDropdown=jt(),this.dropdownMenuId=Zi("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=jt(),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}=it(this,"dropdown.show");await Je(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=mi(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}=it(this,"dropdown.hide");await Je(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 s=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)},i=t.map(s),a=e.map(e=>{const a=s(e),o=i.indexOf(a);return-1!==o?t[o]:e}).concat(t.filter(t=>!e.some(e=>s(e)===s(t))));return a}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=[fi(8),this.noFlip?void 0:wi(),bi()].filter(Boolean);let s=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(s=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const i=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:s}),{x:a,y:o,strategy:n,placement:r}=await xi(this.myDropdown.value,this.menuRef.value,i);this.menuRef.value.setAttribute("data-placement",r),Object.assign(this.menuRef.value.style,{position:n,left:`${a}px`,top:`${o}px`})}}t([ze({type:Boolean,state:!0})],Vi.prototype,"noFlip",void 0),t([ze({type:Boolean,reflect:!0,state:!0})],Vi.prototype,"menuAlignRight",void 0),t([ze({type:String,reflect:!0,state:!0})],Vi.prototype,"drop",void 0),t([ze({type:Object})],Vi.prototype,"floatingOpts",void 0),t([ze({type:Boolean,reflect:!0})],Vi.prototype,"menuIsOpen",void 0),t([ze({type:Boolean,reflect:!0})],Vi.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],Vi.prototype,"readonly",void 0),at("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),at("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class zi extends Vi{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(),s=t.find(t=>e.composedPath().includes(t));if(!s)return;const i=t.indexOf(s);this.nextDropdownItemNo=i+1,this.prevDropdownItemNo=i<=0?t.length-1:i-1,s.disabled||(this.emit("sgds-select",{detail:{item:s}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const s=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");s&&s.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 s=(e%t.length+t.length)%t.length,i=t[s];this.emit("i-sgds-option-focus",{detail:{option:i}}),this.nextDropdownItemNo=(s+1)%t.length,this.prevDropdownItemNo=(s-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===i?"0":"-1"),e===i&&t.focus()})}}zi.styles=Vi.styles,t([Ae("ul.dropdown-menu")],zi.prototype,"menu",void 0),t([Pe()],zi.prototype,"nextDropdownItemNo",void 0),t([Pe()],zi.prototype,"prevDropdownItemNo",void 0),t([ze({type:Boolean,reflect:!0})],zi.prototype,"hidden",void 0);var Pi=r`: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%}`,Li=r`.dropdown{display:flex;height:inherit;position:relative}.dropdown-menu{max-width:var(--sgds-dimension-320)}.toggler-container{flex:1;pointer-events:none}.toggler-container ::slotted(*){pointer-events:auto}`;class Ii extends zi{constructor(){super(),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.close="default",this.menuRef=Yt()}async _handleClick(e){if(this.disabled)return;const t=this._toggler[0];if(!t)return void this.toggleMenu();if(e.composedPath().includes(t))return void this.toggleMenu();if(!this.menuIsOpen)return;const s=this.menuRef.value;s&&e.composedPath().includes(s)||this.hideMenu()}_handleCloseMenu(){const e=this._toggler[0];null==e||e.focus()}async connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._handleCloseMenu)}async disconnectedCallback(){this.removeEventListener("sgds-hide",this._handleCloseMenu)}async firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&await this.updateFloatingPosition(),this._handleDisabled()}_handleTogglerSlotChange(e){const t=e.target.assignedElements({flatten:!0})[0];t&&(t.setAttribute("aria-haspopup","menu"),t.setAttribute("aria-expanded",String(this.menuIsOpen)))}_handleMenuIsOpenChange(){const e=this._toggler[0];e&&e.setAttribute("aria-expanded",String(this.menuIsOpen))}_handleDisabled(){const e=this._toggler[0];e&&(this.disabled?e.setAttribute("disabled","true"):e.hasAttribute("disabled")&&e.removeAttribute("disabled"))}render(){return te`
170
+ >`:this._renderBadge():ae}}Si.styles=[...Oe.styles,Mt],Si.dependencies={"sgds-close-button":ft,"sgds-tooltip":Ci},t([ze({type:Boolean,reflect:!0})],Si.prototype,"show",void 0),t([ze({reflect:!0})],Si.prototype,"variant",void 0),t([ze({type:Boolean,reflect:!0})],Si.prototype,"outlined",void 0),t([ze({type:Boolean,reflect:!0})],Si.prototype,"dismissible",void 0),t([ze({type:Boolean,reflect:!0})],Si.prototype,"fullWidth",void 0),t([Pe()],Si.prototype,"truncated",void 0),t([Pe()],Si.prototype,"text",void 0),t([nt("show")],Si.prototype,"_handleShowChange",null),t([nt("text",{waitUntilFirstUpdate:!0})],Si.prototype,"_handleTruncation",null);var Mi=r`:host([size=sm]) .overflow-btn{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.overflow-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border-radius:var(--sgds-border-radius-sm);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.overflow-btn:hover{background-color:var(--sgds-bg-translucent-subtle)}.overflow-btn:focus-visible{background-color:var(--sgds-bg-translucent-subtle);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`;function Zi(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class Vi extends Oe{constructor(){super(...arguments),this.myDropdown=jt(),this.dropdownMenuId=Zi("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=jt(),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}=it(this,"dropdown.show");await Je(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=mi(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}=it(this,"dropdown.hide");await Je(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 s=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)},i=t.map(s),a=e.map(e=>{const a=s(e),o=i.indexOf(a);return-1!==o?t[o]:e}).concat(t.filter(t=>!e.some(e=>s(e)===s(t))));return a}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=[fi(8),this.noFlip?void 0:wi(),bi()].filter(Boolean);let s=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(s=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const i=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:s}),{x:a,y:o,strategy:n,placement:r}=await xi(this.myDropdown.value,this.menuRef.value,i);this.menuRef.value.setAttribute("data-placement",r),Object.assign(this.menuRef.value.style,{position:n,left:`${a}px`,top:`${o}px`})}}t([ze({type:Boolean,state:!0})],Vi.prototype,"noFlip",void 0),t([ze({type:Boolean,reflect:!0,state:!0})],Vi.prototype,"menuAlignRight",void 0),t([ze({type:String,reflect:!0,state:!0})],Vi.prototype,"drop",void 0),t([ze({type:Object})],Vi.prototype,"floatingOpts",void 0),t([ze({type:Boolean,reflect:!0})],Vi.prototype,"menuIsOpen",void 0),t([ze({type:Boolean,reflect:!0})],Vi.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],Vi.prototype,"readonly",void 0),at("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),at("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});class zi extends Vi{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(),s=t.find(t=>e.composedPath().includes(t));if(!s)return;const i=t.indexOf(s);this.nextDropdownItemNo=i+1,this.prevDropdownItemNo=i<=0?t.length-1:i-1,s.disabled||(this.emit("sgds-select",{detail:{item:s}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const s=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");s&&s.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 s=(e%t.length+t.length)%t.length,i=t[s];this.emit("i-sgds-option-focus",{detail:{option:i}}),this.nextDropdownItemNo=(s+1)%t.length,this.prevDropdownItemNo=(s-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===i?"0":"-1"),e===i&&t.focus()})}}zi.styles=Vi.styles,t([De("ul.dropdown-menu")],zi.prototype,"menu",void 0),t([Pe()],zi.prototype,"nextDropdownItemNo",void 0),t([Pe()],zi.prototype,"prevDropdownItemNo",void 0),t([ze({type:Boolean,reflect:!0})],zi.prototype,"hidden",void 0);var Pi=r`: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%}`,Li=r`.dropdown{display:flex;height:inherit;position:relative}.dropdown-menu{max-width:var(--sgds-dimension-320)}.toggler-container{flex:1;pointer-events:none}.toggler-container ::slotted(*){pointer-events:auto}`;class Ai extends zi{constructor(){super(),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.close="default",this.menuRef=Yt()}async _handleClick(e){if(this.disabled)return;const t=this._toggler[0];if(!t)return void this.toggleMenu();if(e.composedPath().includes(t))return void this.toggleMenu();if(!this.menuIsOpen)return;const s=this.menuRef.value;s&&e.composedPath().includes(s)||this.hideMenu()}_handleCloseMenu(){const e=this._toggler[0];null==e||e.focus()}async connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._handleCloseMenu)}async disconnectedCallback(){this.removeEventListener("sgds-hide",this._handleCloseMenu)}async firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&await this.updateFloatingPosition(),this._handleDisabled()}_handleTogglerSlotChange(e){const t=e.target.assignedElements({flatten:!0})[0];t&&(t.setAttribute("aria-haspopup","menu"),t.setAttribute("aria-expanded",String(this.menuIsOpen)))}_handleMenuIsOpenChange(){const e=this._toggler[0];e&&e.setAttribute("aria-expanded",String(this.menuIsOpen))}_handleDisabled(){const e=this._toggler[0];e&&(this.disabled?e.setAttribute("disabled","true"):e.hasAttribute("disabled")&&e.removeAttribute("disabled"))}render(){return te`
171
171
  <div class="dropdown" @click=${this._handleClick}>
172
172
  <div class="toggler-container" ${Yt(this.myDropdown)}>
173
173
  <slot name="toggler" @slotchange=${this._handleTogglerSlotChange}></slot>
@@ -176,7 +176,7 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
176
176
  <slot id="default" @click=${this.handleSelectSlot}></slot>
177
177
  </div>
178
178
  </div>
179
- `}}Ii.styles=[...zi.styles,Li,Pi],t([ze({type:Boolean,reflect:!0,state:!1})],Ii.prototype,"noFlip",void 0),t([ze({type:Boolean,reflect:!0,state:!1})],Ii.prototype,"menuAlignRight",void 0),t([ze({type:String,reflect:!0,state:!1})],Ii.prototype,"drop",void 0),t([ze({type:String,reflect:!0,state:!1})],Ii.prototype,"close",void 0),t([Ee({slot:"toggler",flatten:!0})],Ii.prototype,"_toggler",void 0),t([nt("menuIsOpen")],Ii.prototype,"_handleMenuIsOpenChange",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],Ii.prototype,"_handleDisabled",null);var Ai=r`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-40);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;class Di extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.ariaLabel=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e=>{"Enter"===e.key&&this.anchor.length>0&&this.anchor[0].click()}),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){return te`
179
+ `}}Ai.styles=[...zi.styles,Li,Pi],t([ze({type:Boolean,reflect:!0,state:!1})],Ai.prototype,"noFlip",void 0),t([ze({type:Boolean,reflect:!0,state:!1})],Ai.prototype,"menuAlignRight",void 0),t([ze({type:String,reflect:!0,state:!1})],Ai.prototype,"drop",void 0),t([ze({type:String,reflect:!0,state:!1})],Ai.prototype,"close",void 0),t([Ee({slot:"toggler",flatten:!0})],Ai.prototype,"_toggler",void 0),t([nt("menuIsOpen")],Ai.prototype,"_handleMenuIsOpenChange",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],Ai.prototype,"_handleDisabled",null);var Di=r`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-40);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;class Ii extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.ariaLabel=""}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e=>{"Enter"===e.key&&this.anchor.length>0&&this.anchor[0].click()}),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){return te`
180
180
  <div
181
181
  class="dropdown-item ${Ke({disabled:this.disabled,active:this.active})}"
182
182
  tabindex=${this.disabled?"-1":"0"}
@@ -184,25 +184,25 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
184
184
  >
185
185
  <slot></slot>
186
186
  </div>
187
- `}}Di.styles=[Li,Ai],Di.dependencies={"sgds-icon":_t},t([Ee({flatten:!0})],Di.prototype,"anchor",void 0),t([ze({type:Boolean})],Di.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Di.prototype,"disabled",void 0),t([ze({type:String})],Di.prototype,"ariaLabel",void 0);class Ei extends Oe{constructor(){super(...arguments),this.size="md"}render(){return te`
187
+ `}}Ii.styles=[Li,Di],Ii.dependencies={"sgds-icon":_t},t([Ee({flatten:!0})],Ii.prototype,"anchor",void 0),t([ze({type:Boolean})],Ii.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Ii.prototype,"disabled",void 0),t([ze({type:String})],Ii.prototype,"ariaLabel",void 0);class Ei extends Oe{constructor(){super(...arguments),this.size="md"}render(){return te`
188
188
  <sgds-dropdown>
189
189
  <button slot="toggler" class="overflow-btn" aria-label="More options">
190
190
  <sgds-icon name="three-dots" size=${this.size}></sgds-icon>
191
191
  </button>
192
192
  <slot></slot>
193
193
  </sgds-dropdown>
194
- `}}Ei.styles=[...Oe.styles,Mi],Ei.dependencies={"sgds-dropdown":Ii,"sgds-dropdown-item":Di,"sgds-icon":_t},t([ze({type:String,reflect:!0})],Ei.prototype,"size",void 0);var Bi=r`.breadcrumb{display:flex;gap:var(--sgds-gap-xs)}.breadcrumb sgds-breadcrumb-item:first-child,.breadcrumb slot::slotted(sgds-breadcrumb-item:first-child){flex:0 0 auto}`;class Hi extends Oe{constructor(){super(...arguments),this.ariaLabel="breadcrumb"}_replaceExcessItemsWithDropdown(e){const t=document.createElement("sgds-breadcrumb-item"),s=document.createElement("sgds-overflow-menu");s.setAttribute("aria-haspopup","menu"),s.setAttribute("size","sm");const i=e.filter((t,i)=>{if(i>0&&i<e.length-2){const e=t.querySelector("a").cloneNode(!0),i=document.createElement("sgds-dropdown-item");return i.appendChild(e),void s.appendChild(i)}return t});t.classList.add("overflow-menu"),t.appendChild(s),i.splice(1,0,t),this.defaultSlot.replaceWith(...i)}_handleSlotChange(e){const t=e.target.assignedElements({flatten:!0}).filter(e=>"sgds-breadcrumb-item"===e.tagName.toLowerCase());t.forEach((e,s)=>{s===t.length-1?(e.setAttribute("aria-current","page"),e.active=!0):e.removeAttribute("aria-current")}),t.length>=5&&this._replaceExcessItemsWithDropdown(t)}render(){return ut`
194
+ `}}Ei.styles=[...Oe.styles,Mi],Ei.dependencies={"sgds-dropdown":Ai,"sgds-dropdown-item":Ii,"sgds-icon":_t},t([ze({type:String,reflect:!0})],Ei.prototype,"size",void 0);var Bi=r`.breadcrumb{display:flex;gap:var(--sgds-gap-xs)}.breadcrumb sgds-breadcrumb-item:first-child,.breadcrumb slot::slotted(sgds-breadcrumb-item:first-child){flex:0 0 auto}`;class Hi extends Oe{constructor(){super(...arguments),this.ariaLabel="breadcrumb"}_replaceExcessItemsWithDropdown(e){const t=document.createElement("sgds-breadcrumb-item"),s=document.createElement("sgds-overflow-menu");s.setAttribute("aria-haspopup","menu"),s.setAttribute("size","sm");const i=e.filter((t,i)=>{if(i>0&&i<e.length-2){const e=t.querySelector("a").cloneNode(!0),i=document.createElement("sgds-dropdown-item");return i.appendChild(e),void s.appendChild(i)}return t});t.classList.add("overflow-menu"),t.appendChild(s),i.splice(1,0,t),this.defaultSlot.replaceWith(...i)}_handleSlotChange(e){const t=e.target.assignedElements({flatten:!0}).filter(e=>"sgds-breadcrumb-item"===e.tagName.toLowerCase());t.forEach((e,s)=>{s===t.length-1?(e.setAttribute("aria-current","page"),e.active=!0):e.removeAttribute("aria-current")}),t.length>=5&&this._replaceExcessItemsWithDropdown(t)}render(){return ut`
195
195
  <div aria-label=${Ge(this.ariaLabel)}>
196
196
  <div class="breadcrumb">
197
197
  <slot @slotchange=${this._handleSlotChange}></slot>
198
198
  </div>
199
199
  </div>
200
- `}}Hi.styles=[...Oe.styles,Bi],Hi.dependencies={"sgds-overflow-menu":Ei},t([ze({type:String})],Hi.prototype,"ariaLabel",void 0),t([Ae("slot")],Hi.prototype,"defaultSlot",void 0);var Oi=r`:host{--color-emphasis:var(--sgds-link-color-emphasis);display:inline-flex;vertical-align:middle}:host([tone=danger]),:host([variant=danger]){--color-emphasis:var(--sgds-danger-color-emphasis)}:host([tone=neutral]),:host([variant=neutral]){--color-emphasis:var(--sgds-color-default)}:host([tone=fixed-light]),:host([variant=light]){--color-emphasis:var(--sgds-color-fixed-light)}:host([variant=dark]) :host([tone=fixed-dark]){--color-emphasis:var(--sgds-color-fixed-dark)}:host([tone=danger]) .nav-link::slotted(a),:host([variant=danger]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-danger-color-default);color:var(--sgds-link-color-default,--sgds-danger-color-default)}:host([tone=danger]) .nav-link::slotted(a:focus),:host([tone=danger]) .nav-link::slotted(a:focus-visible),:host([tone=danger]) .nav-link::slotted(a:hover),:host([variant=danger]) .nav-link::slotted(a:focus),:host([variant=danger]) .nav-link::slotted(a:focus-visible),:host([variant=danger]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-danger-color-emphasis);color:var(--color-emphasis,--sgds-danger-color-emphasis)}:host([tone=neutral]) .nav-link::slotted(a),:host([variant=neutral]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-default);color:var(--sgds-link-color-default,--sgds-color-default)}:host([tone=neutral]) .nav-link::slotted(a:focus),:host([tone=neutral]) .nav-link::slotted(a:focus-visible),:host([tone=neutral]) .nav-link::slotted(a:hover),:host([variant=neutral]) .nav-link::slotted(a:focus),:host([variant=neutral]) .nav-link::slotted(a:focus-visible),:host([variant=neutral]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-color-default);color:var(--color-emphasis,--sgds-color-default)}:host([tone=fixed-light]) .nav-link::slotted(a),:host([variant=light]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);color:var(--sgds-link-color-default,--sgds-color-fixed-light)}:host([tone=fixed-light]) .nav-link::slotted(a:focus),:host([tone=fixed-light]) .nav-link::slotted(a:focus-visible),:host([tone=fixed-light]) .nav-link::slotted(a:hover),:host([variant=light]) .nav-link::slotted(a:focus),:host([variant=light]) .nav-link::slotted(a:focus-visible),:host([variant=light]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-color-fixed-light);color:var(--color-emphasis,--sgds-color-fixed-light)}:host([tone=fixed-dark]) .nav-link::slotted(a),:host([variant=dark]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-dark);color:var(--sgds-link-color-default,--sgds-color-fixed-dark)}:host([tone=fixed-dark]) .nav-link::slotted(a:focus),:host([tone=fixed-dark]) .nav-link::slotted(a:focus-visible),:host([tone=fixed-dark]) .nav-link::slotted(a:hover),:host([variant=dark]) .nav-link::slotted(a:focus),:host([variant=dark]) .nav-link::slotted(a:focus-visible),:host([variant=dark]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-color-fixed-dark);color:var(--color-emphasis,--sgds-color-fixed-dark)}:host([size=md]) .nav-link::slotted(a){--text-underline-offset:3px;font-size:var(--sgds-font-size-link-md)!important;line-height:var(--sgds-line-height-xs)!important}:host([size=lg]) .nav-link::slotted(a){--text-underline-offset:4px;font-size:var(--sgds-font-size-link-lg)!important;line-height:var(--sgds-line-height-md)!important}:host([size=sm]) .nav-link::slotted(a){--text-underline-offset:2.8px;font-size:var(--sgds-font-size-link-sm)!important;line-height:var(--sgds-line-height-2-xs)!important}:host([size=xs]) .nav-link::slotted(a){--text-underline-offset:2.2px;font-size:var(--sgds-font-size-link-xs)!important;line-height:var(--sgds-line-height-3-xs)!important}.nav-link::slotted(a):after{-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important}:host([size=xs]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-sm)!important;width:var(--sgds-icon-size-sm)!important}:host([size=sm]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-md)!important;width:var(--sgds-icon-size-md)!important}:host([size=md]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-lg)!important;width:var(--sgds-icon-size-lg)!important}:host([size=lg]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-xl)!important;width:var(--sgds-icon-size-xl)!important}::slotted(*){align-items:center;display:flex}.nav-link::slotted(a:focus-visible:not([disabled])){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.nav-link::slotted(a[disabled]){cursor:not-allowed;opacity:var(--sgds-opacity-40)}.nav-link::slotted(a){color:var(--sgds-link-color-default)!important;cursor:pointer}:host(:not([active])) .nav-link::slotted(a:not(:hover)){text-decoration:underline solid transparent!important;text-underline-offset:0;transition:text-underline-offset var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter),text-decoration-color var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter)}.nav-link::slotted(a:focus),.nav-link::slotted(a:focus-visible),.nav-link::slotted(a:hover),:host([active]) .nav-link::slotted(a){color:var(--color-emphasis)!important}.nav-link::slotted(a:hover),:host([active]) .nav-link::slotted(a){text-decoration-color:var(--color-emphasis)!important;text-underline-offset:var(--text-underline-offset);transition:text-underline-offset var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter),text-decoration-color var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter)}.nav-link::slotted(a[disabled]),:host([disabled]) .nav-link::slotted(a){pointer-events:none;text-decoration:none!important}`;class Ti extends Oe{constructor(){super(...arguments),this.size="md",this.variant="primary",this.tone="primary",this.active=!1,this.disabled=!1}_processAnchor(e){this.disabled&&e.setAttribute("disabled","true"),e.hasAttribute("disabled")?(e.setAttribute("href","javascript:void(0)"),e.setAttribute("tabindex","-1")):e.setAttribute("tabindex","0")}_processIcon(e){const t={xs:"sm",sm:"md",md:"lg",lg:"xl"};e.querySelectorAll("sgds-icon").forEach(e=>{e.setAttribute("size",t[this.size]),e.classList.remove("icon-left","icon-right"),e.previousElementSibling||e.previousSibling||e.classList.add("icon-left"),e.nextElementSibling||e.nextSibling||e.classList.add("icon-right")})}_handleSlotChange(e){const t=e.target.assignedElements().find(e=>"a"===e.tagName.toLowerCase());t&&(this._processAnchor(t),this._processIcon(t))}firstUpdated(e){super.firstUpdated(e);const t=this.querySelector("a");t&&(this._processAnchor(t),this._processIcon(t))}render(){return te`<slot class="nav-link " @slotchange=${this._handleSlotChange}></slot> `}}Ti.styles=[...Oe.styles,Oi],t([ze({type:String,reflect:!0})],Ti.prototype,"size",void 0),t([ze({type:String,reflect:!0})],Ti.prototype,"variant",void 0),t([ze({type:String,reflect:!0})],Ti.prototype,"tone",void 0),t([ze({type:Boolean,reflect:!0})],Ti.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Ti.prototype,"disabled",void 0);var Fi=r`:host{align-items:center;display:flex;font-size:var(--sgds-font-size-link-md);gap:var(--sgds-gap-xs);min-width:0}:host .nav-link::slotted(*){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([active]) .nav-link::slotted(*){--sgds-link-color-default:var(--sgds-color-default);color:var(--sgds-link-color-default,--sgds-color-default);overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host([active]) .nav-link::slotted(:focus),:host([active]) .nav-link::slotted(:focus-visible),:host([active]) .nav-link::slotted(:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,--sgds-color-default)}:host(.overflow-menu){flex-shrink:0}sgds-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.separator{color:var(--sgds-color-subtle);display:flex}:host(:last-of-type) .separator{display:none}`;class Ri extends Oe{constructor(){super(...arguments),this.active=!1,this._preventNavigation=e=>e.preventDefault()}updated(e){if(super.updated(e),e.has("active")){const e=this.querySelector("a");e&&(this.active?(e.setAttribute("tabindex","-1"),e.addEventListener("click",this._preventNavigation)):e.removeEventListener("click",this._preventNavigation))}}render(){return te`
200
+ `}}Hi.styles=[...Oe.styles,Bi],Hi.dependencies={"sgds-overflow-menu":Ei},t([ze({type:String})],Hi.prototype,"ariaLabel",void 0),t([De("slot")],Hi.prototype,"defaultSlot",void 0);var Oi=r`:host{--color-emphasis:var(--sgds-link-color-emphasis);display:inline-flex;vertical-align:middle}:host([tone=danger]),:host([variant=danger]){--color-emphasis:var(--sgds-danger-color-emphasis)}:host([tone=neutral]),:host([variant=neutral]){--color-emphasis:var(--sgds-color-default)}:host([tone=fixed-light]),:host([variant=light]){--color-emphasis:var(--sgds-color-fixed-light)}:host([variant=dark]) :host([tone=fixed-dark]){--color-emphasis:var(--sgds-color-fixed-dark)}:host([tone=danger]) .nav-link::slotted(a),:host([variant=danger]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-danger-color-default);color:var(--sgds-link-color-default,--sgds-danger-color-default)}:host([tone=danger]) .nav-link::slotted(a:focus),:host([tone=danger]) .nav-link::slotted(a:focus-visible),:host([tone=danger]) .nav-link::slotted(a:hover),:host([variant=danger]) .nav-link::slotted(a:focus),:host([variant=danger]) .nav-link::slotted(a:focus-visible),:host([variant=danger]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-danger-color-emphasis);color:var(--color-emphasis,--sgds-danger-color-emphasis)}:host([tone=neutral]) .nav-link::slotted(a),:host([variant=neutral]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-default);color:var(--sgds-link-color-default,--sgds-color-default)}:host([tone=neutral]) .nav-link::slotted(a:focus),:host([tone=neutral]) .nav-link::slotted(a:focus-visible),:host([tone=neutral]) .nav-link::slotted(a:hover),:host([variant=neutral]) .nav-link::slotted(a:focus),:host([variant=neutral]) .nav-link::slotted(a:focus-visible),:host([variant=neutral]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-color-default);color:var(--color-emphasis,--sgds-color-default)}:host([tone=fixed-light]) .nav-link::slotted(a),:host([variant=light]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);color:var(--sgds-link-color-default,--sgds-color-fixed-light)}:host([tone=fixed-light]) .nav-link::slotted(a:focus),:host([tone=fixed-light]) .nav-link::slotted(a:focus-visible),:host([tone=fixed-light]) .nav-link::slotted(a:hover),:host([variant=light]) .nav-link::slotted(a:focus),:host([variant=light]) .nav-link::slotted(a:focus-visible),:host([variant=light]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-color-fixed-light);color:var(--color-emphasis,--sgds-color-fixed-light)}:host([tone=fixed-dark]) .nav-link::slotted(a),:host([variant=dark]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-dark);color:var(--sgds-link-color-default,--sgds-color-fixed-dark)}:host([tone=fixed-dark]) .nav-link::slotted(a:focus),:host([tone=fixed-dark]) .nav-link::slotted(a:focus-visible),:host([tone=fixed-dark]) .nav-link::slotted(a:hover),:host([variant=dark]) .nav-link::slotted(a:focus),:host([variant=dark]) .nav-link::slotted(a:focus-visible),:host([variant=dark]) .nav-link::slotted(a:hover){--color-emphasis:var(--sgds-color-fixed-dark);color:var(--color-emphasis,--sgds-color-fixed-dark)}:host([size=md]) .nav-link::slotted(a){--text-underline-offset:3px;font-size:var(--sgds-font-size-link-md)!important;line-height:var(--sgds-line-height-xs)!important}:host([size=lg]) .nav-link::slotted(a){--text-underline-offset:4px;font-size:var(--sgds-font-size-link-lg)!important;line-height:var(--sgds-line-height-md)!important}:host([size=sm]) .nav-link::slotted(a){--text-underline-offset:2.8px;font-size:var(--sgds-font-size-link-sm)!important;line-height:var(--sgds-line-height-2-xs)!important}:host([size=xs]) .nav-link::slotted(a){--text-underline-offset:2.2px;font-size:var(--sgds-font-size-link-xs)!important;line-height:var(--sgds-line-height-3-xs)!important}.nav-link::slotted(a):after{-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important}:host([size=xs]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-sm)!important;width:var(--sgds-icon-size-sm)!important}:host([size=sm]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-md)!important;width:var(--sgds-icon-size-md)!important}:host([size=md]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-lg)!important;width:var(--sgds-icon-size-lg)!important}:host([size=lg]) .nav-link::slotted(a):after{height:var(--sgds-icon-size-xl)!important;width:var(--sgds-icon-size-xl)!important}::slotted(*){align-items:center;display:flex}.nav-link::slotted(a:focus-visible:not([disabled])){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.nav-link::slotted(a[disabled]){cursor:not-allowed;opacity:var(--sgds-opacity-40)}.nav-link::slotted(a){color:var(--sgds-link-color-default)!important;cursor:pointer}:host(:not([active])) .nav-link::slotted(a:not(:hover)){text-decoration:underline solid transparent!important;text-underline-offset:0;transition:text-underline-offset var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter),text-decoration-color var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter)}.nav-link::slotted(a:focus),.nav-link::slotted(a:focus-visible),.nav-link::slotted(a:hover),:host([active]) .nav-link::slotted(a){color:var(--color-emphasis)!important}.nav-link::slotted(a:hover),:host([active]) .nav-link::slotted(a){text-decoration-color:var(--color-emphasis)!important;text-underline-offset:var(--text-underline-offset);transition:text-underline-offset var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter),text-decoration-color var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter)}.nav-link::slotted(a[disabled]),:host([disabled]) .nav-link::slotted(a){pointer-events:none;text-decoration:none!important}`;class Ti extends Oe{constructor(){super(...arguments),this.size="md",this.variant="primary",this.tone="primary",this.active=!1,this.disabled=!1}_processAnchor(e){this.disabled&&e.setAttribute("disabled","true"),e.hasAttribute("disabled")?(e.setAttribute("href","javascript:void(0)"),e.setAttribute("tabindex","-1")):e.setAttribute("tabindex","0")}_processIcon(e){const t={xs:"sm",sm:"md",md:"lg",lg:"xl"};e.querySelectorAll("sgds-icon").forEach(e=>{e.setAttribute("size",t[this.size]),e.classList.remove("icon-left","icon-right"),e.previousElementSibling||e.previousSibling||e.classList.add("icon-left"),e.nextElementSibling||e.nextSibling||e.classList.add("icon-right")})}_handleSlotChange(e){const t=e.target.assignedElements().find(e=>"a"===e.tagName.toLowerCase());t&&(this._processAnchor(t),this._processIcon(t))}firstUpdated(e){super.firstUpdated(e);const t=this.querySelector("a");t&&(this._processAnchor(t),this._processIcon(t))}render(){return te`<slot class="nav-link " @slotchange=${this._handleSlotChange}></slot> `}}Ti.styles=[...Oe.styles,Oi],t([ze({type:String,reflect:!0})],Ti.prototype,"size",void 0),t([ze({type:String,reflect:!0})],Ti.prototype,"variant",void 0),t([ze({type:String,reflect:!0})],Ti.prototype,"tone",void 0),t([ze({type:Boolean,reflect:!0})],Ti.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Ti.prototype,"disabled",void 0);var Fi=r`:host{align-items:center;display:flex;font-size:var(--sgds-font-size-link-md);gap:var(--sgds-gap-xs);min-width:0}:host .nav-link::slotted(*){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([active]) .nav-link::slotted(*){--sgds-link-color-default:var(--sgds-color-default);color:var(--sgds-link-color-default,--sgds-color-default);overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host([active]) .nav-link::slotted(:focus),:host([active]) .nav-link::slotted(:focus-visible),:host([active]) .nav-link::slotted(:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,--sgds-color-default)}:host(.overflow-menu){flex-shrink:0}sgds-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.separator{color:var(--sgds-color-subtle);display:flex}:host(:last-of-type) .separator{display:none}`;class Ri extends Oe{constructor(){super(...arguments),this.active=!1,this._preventNavigation=e=>e.preventDefault()}updated(e){if(super.updated(e),e.has("active")){const e=this.querySelector("a");e&&(this.active?(e.setAttribute("tabindex","-1"),e.addEventListener("click",this._preventNavigation)):e.removeEventListener("click",this._preventNavigation))}}render(){return te`
201
201
  <sgds-link><slot class="nav-link"></slot></sgds-link>
202
202
  <div class="separator">
203
203
  <sgds-icon name="chevron-right" size="sm"></sgds-icon>
204
204
  </div>
205
- `}}Ri.styles=[Fi],Ri.dependencies={"sgds-link":Ti,"sgds-icon":_t},t([ze({type:Boolean,reflect:!0})],Ri.prototype,"active",void 0);var Ni=r`:host{--btn-font-weight:var(--sgds-font-weight-regular);--btn-color:var(--sgds-color-fixed-light);--btn-bg:var(--sgds-primary-surface-default);--btn-hover-bg:var(--sgds-primary-surface-emphasis);--btn-border-radius:var(--sgds-border-radius-md);--btn-opacity:var(--sgds-opacity-100,1)}:host([variant=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=brand]){--btn-bg:var(--sgds-primary-surface-default);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline]){--btn-border-width:var(--sgds-border-width-1)}:host([variant=outline][tone=brand]){--btn-border-color:var(--sgds-primary-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-color:var(--sgds-primary-color-default);--btn-hover-bg:var(--sgds-primary-bg-translucent)}:host([variant=ghost][tone=brand]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default)}:host([variant=primary][tone=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline][tone=danger]){--btn-border-color:var(--sgds-danger-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=ghost][tone=danger]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=primary][tone=fixed-light]){--btn-bg:var(--sgds-surface-fixed-light);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 0%,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 100%),var(--sgds-surface-fixed-light,#fff);--btn-color:var(--sgds-color-fixed-dark)}:host([variant=outline][tone=fixed-light]){--btn-border-color:var(--sgds-border-color-fixed-light);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=ghost][tone=fixed-light]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=neutral]){--btn-bg:var(--sgds-surface-inverse);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-surface-inverse);--btn-color:var(--sgds-color-inverse)}:host([variant=outline][tone=neutral]){--btn-border-color:var(--sgds-border-color-emphasis);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost][tone=neutral]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost]) .btn,:host([variant=outline]) .btn,:host([variant=primary]) .btn{color:var(--btn-color)}:host([variant=outline]) .btn{border:var(--btn-border-width) solid var(--btn-border-color)}:host([size=lg]) .btn{font-size:var(--sgds-font-size-label-lg);height:var(--sgds-dimension-56);line-height:var(--sgds-line-height-md);min-width:var(--sgds-dimension-112);padding:var(--sgds-padding-none) var(--sgds-padding-xl)}:host([size=sm]) .btn{font-size:var(--sgds-font-size-label-sm);height:var(--sgds-dimension-40);line-height:var(--sgds-line-height-2-xs);min-width:var(--sgds-dimension-80);padding:var(--sgds-padding-none) var(--sgds-padding-md)}:host([size=xs]) .btn{font-size:var(--sgds-font-size-label-xs);height:var(--sgds-dimension-32);line-height:var(--sgds-line-height-3-xs);min-width:var(--sgds-dimension-64);padding:var(--sgds-padding-none) var(--sgds-padding-sm)}.btn{align-items:center;background-color:var(--btn-bg);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--btn-border-radius);color:var(--sgds-color-fixed-light);cursor:pointer;display:inline-flex;font-size:var(--sgds-font-size-label-md);font-weight:var(--btn-font-weight);gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-48);justify-content:center;line-height:var(--sgds-line-height-xs);min-width:var(--sgds-dimension-96);opacity:var(--btn-opacity);padding:var(--sgds-padding-none) var(--sgds-padding-lg);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle;white-space:nowrap;width:inherit}.btn.active,.btn:hover{background:var(--btn-hover-bg)}.btn:focus-visible{background:var(--btn-hover-bg);border-color:transparent;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.btn.disabled,.btn:disabled{color:var(--btn-color);cursor:not-allowed;opacity:var(--sgds-opacity-40)}.btn.loading{cursor:default}.btn slot::slotted(*){color:var(--btn-color)}`;class ji extends Oe{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.active=!1,this.disabled=!1,this.target="_self"}focus(e){this.button.focus(e)}click(){this.button.click()}blur(){this.button.blur()}_handleBlur(){this.emit("sgds-blur")}_handleFocus(){this.emit("sgds-focus")}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation()}_handleKeydown(e){if("Enter"===e.key&&this.loading)return e.preventDefault(),void e.stopPropagation()}_assignSpinnerSize(e){return"xs"===e||"sm"===e?"xs":"md"===e||"lg"===e?"sm":void 0}_assignSpinnerTone(e,t){return"fixed-light"===e&&"primary"===t?"fixed-dark":"neutral"===e&&"primary"===t?"inverse":"fixed-light"===e||"primary"===t?"fixed-light":"neutral"!==e||"outline"!==t&&"ghost"!==t?"brand":"neutral"}}ji.styles=[...Oe.styles,Ni],t([Ae(".btn")],ji.prototype,"button",void 0),t([ze({reflect:!0})],ji.prototype,"variant",void 0),t([ze({reflect:!0})],ji.prototype,"tone",void 0),t([ze({reflect:!0})],ji.prototype,"size",void 0),t([ze({type:Boolean,reflect:!0})],ji.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],ji.prototype,"disabled",void 0),t([ze({type:String,reflect:!0})],ji.prototype,"href",void 0),t([ze({type:String,reflect:!0})],ji.prototype,"target",void 0),t([ze({type:String,reflect:!0})],ji.prototype,"download",void 0),t([ze({type:String})],ji.prototype,"ariaLabel",void 0),t([ze({type:Boolean})],ji.prototype,"loading",void 0);class Ui{constructor(e,t){(this.host=e).addController(this),this.options=Object.assign({form:e=>e.closest("form")},t)}hostConnected(){this.form=this.options.form(this.host)}hostDisconnected(){this.form&&(this.form=void 0)}doAction(e,t){if(this.form){const s=document.createElement("button");s.type=e,s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.clipPath="inset(50%)",s.style.overflow="hidden",s.style.whiteSpace="nowrap",t&&(["formaction","formmethod","formnovalidate","formtarget"].forEach(e=>{t.hasAttribute(e)&&s.setAttribute(e,t.getAttribute(e))}),"submit"===e&&t.hasAttribute("name")&&(s.name=t.getAttribute("name"),s.value=t.getAttribute("value")||"")),this.form.append(s),s.click(),s.remove()}}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}}var qi=r`:host{display:inline-block}:host([fullWidth]),:host([fullWidth]) .btn{width:100%}:host([fullWidth]) .btn.has-left-icon{justify-content:flex-start}:host([fullWidth]) .btn.has-right-icon{justify-content:space-between}:host([fullWidth]) .btn.has-left-icon.has-right-icon{justify-content:center}.btn span{padding:0 var(--sgds-padding-2-xs)}.btn.no-icon{gap:var(--sgds-gap-none)}.loading{cursor:default}`;class Yi extends ji{constructor(){super(...arguments),this.formSubmitController=new Ui(this,{form:e=>{if(e.hasAttribute("form")){const t=e.getRootNode(),s=e.getAttribute("form");return t.getElementById(s)}return e.closest("form")}}),this.type="button",this.fullWidth=!1,this.hasLeftIconSlot=!1,this.hasRightIconSlot=!1,this.hasSlotController=new $i(this,"leftIcon","rightIcon"),this._clickHandler=()=>{"submit"===this.type&&this.formSubmitController.submit(this),"reset"===this.type&&this.formSubmitController.reset(this)}}updated(){this.hasLeftIconSlot||(this.hasLeftIconSlot=this.hasSlotController.test("leftIcon")),this.hasRightIconSlot||(this.hasRightIconSlot=this.hasSlotController.test("rightIcon"))}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation();this.removeEventListener("click",this._clickHandler),this.addEventListener("click",this._clickHandler)}render(){const e=this.href,t=e?ht`a`:ht`button`,s=!this.hasLeftIconSlot&&!this.hasRightIconSlot;return ut`
205
+ `}}Ri.styles=[Fi],Ri.dependencies={"sgds-link":Ti,"sgds-icon":_t},t([ze({type:Boolean,reflect:!0})],Ri.prototype,"active",void 0);var Ni=r`:host{--btn-font-weight:var(--sgds-font-weight-regular);--btn-color:var(--sgds-color-fixed-light);--btn-bg:var(--sgds-primary-surface-default);--btn-hover-bg:var(--sgds-primary-surface-emphasis);--btn-border-radius:var(--sgds-border-radius-md);--btn-opacity:var(--sgds-opacity-100,1)}:host([variant=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=brand]){--btn-bg:var(--sgds-primary-surface-default);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline]){--btn-border-width:var(--sgds-border-width-1)}:host([variant=outline][tone=brand]){--btn-border-color:var(--sgds-primary-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-color:var(--sgds-primary-color-default);--btn-hover-bg:var(--sgds-primary-bg-translucent)}:host([variant=ghost][tone=brand]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default)}:host([variant=primary][tone=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline][tone=danger]){--btn-border-color:var(--sgds-danger-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=ghost][tone=danger]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=primary][tone=fixed-light]){--btn-bg:var(--sgds-surface-fixed-light);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 0%,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 100%),var(--sgds-surface-fixed-light,#fff);--btn-color:var(--sgds-color-fixed-dark)}:host([variant=outline][tone=fixed-light]){--btn-border-color:var(--sgds-border-color-fixed-light);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=ghost][tone=fixed-light]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=neutral]){--btn-bg:var(--sgds-surface-inverse);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-surface-inverse);--btn-color:var(--sgds-color-inverse)}:host([variant=outline][tone=neutral]){--btn-border-color:var(--sgds-border-color-emphasis);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost][tone=neutral]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost]) .btn,:host([variant=outline]) .btn,:host([variant=primary]) .btn{color:var(--btn-color)}:host([variant=outline]) .btn{border:var(--btn-border-width) solid var(--btn-border-color)}:host([size=lg]) .btn{font-size:var(--sgds-font-size-label-lg);height:var(--sgds-dimension-56);line-height:var(--sgds-line-height-md);min-width:var(--sgds-dimension-112);padding:var(--sgds-padding-none) var(--sgds-padding-xl)}:host([size=sm]) .btn{font-size:var(--sgds-font-size-label-sm);height:var(--sgds-dimension-40);line-height:var(--sgds-line-height-2-xs);min-width:var(--sgds-dimension-80);padding:var(--sgds-padding-none) var(--sgds-padding-md)}:host([size=xs]) .btn{font-size:var(--sgds-font-size-label-xs);height:var(--sgds-dimension-32);line-height:var(--sgds-line-height-3-xs);min-width:var(--sgds-dimension-64);padding:var(--sgds-padding-none) var(--sgds-padding-sm)}.btn{align-items:center;background-color:var(--btn-bg);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--btn-border-radius);color:var(--sgds-color-fixed-light);cursor:pointer;display:inline-flex;font-size:var(--sgds-font-size-label-md);font-weight:var(--btn-font-weight);gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-48);justify-content:center;line-height:var(--sgds-line-height-xs);min-width:var(--sgds-dimension-96);opacity:var(--btn-opacity);padding:var(--sgds-padding-none) var(--sgds-padding-lg);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle;white-space:nowrap;width:inherit}.btn.active,.btn:hover{background:var(--btn-hover-bg)}.btn:focus-visible{background:var(--btn-hover-bg);border-color:transparent;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.btn.disabled,.btn:disabled{color:var(--btn-color);cursor:not-allowed;opacity:var(--sgds-opacity-40)}.btn.loading{cursor:default}.btn slot::slotted(*){color:var(--btn-color)}`;class ji extends Oe{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.active=!1,this.disabled=!1,this.target="_self"}focus(e){this.button.focus(e)}click(){this.button.click()}blur(){this.button.blur()}_handleBlur(){this.emit("sgds-blur")}_handleFocus(){this.emit("sgds-focus")}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation()}_handleKeydown(e){if("Enter"===e.key&&this.loading)return e.preventDefault(),void e.stopPropagation()}_assignSpinnerSize(e){return"xs"===e||"sm"===e?"xs":"md"===e||"lg"===e?"sm":void 0}_assignSpinnerTone(e,t){return"fixed-light"===e&&"primary"===t?"fixed-dark":"neutral"===e&&"primary"===t?"inverse":"fixed-light"===e||"primary"===t?"fixed-light":"neutral"!==e||"outline"!==t&&"ghost"!==t?"brand":"neutral"}}ji.styles=[...Oe.styles,Ni],t([De(".btn")],ji.prototype,"button",void 0),t([ze({reflect:!0})],ji.prototype,"variant",void 0),t([ze({reflect:!0})],ji.prototype,"tone",void 0),t([ze({reflect:!0})],ji.prototype,"size",void 0),t([ze({type:Boolean,reflect:!0})],ji.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],ji.prototype,"disabled",void 0),t([ze({type:String,reflect:!0})],ji.prototype,"href",void 0),t([ze({type:String,reflect:!0})],ji.prototype,"target",void 0),t([ze({type:String,reflect:!0})],ji.prototype,"download",void 0),t([ze({type:String})],ji.prototype,"ariaLabel",void 0),t([ze({type:Boolean})],ji.prototype,"loading",void 0);class Ui{constructor(e,t){(this.host=e).addController(this),this.options=Object.assign({form:e=>e.closest("form")},t)}hostConnected(){this.form=this.options.form(this.host)}hostDisconnected(){this.form&&(this.form=void 0)}doAction(e,t){if(this.form){const s=document.createElement("button");s.type=e,s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.clipPath="inset(50%)",s.style.overflow="hidden",s.style.whiteSpace="nowrap",t&&(["formaction","formmethod","formnovalidate","formtarget"].forEach(e=>{t.hasAttribute(e)&&s.setAttribute(e,t.getAttribute(e))}),"submit"===e&&t.hasAttribute("name")&&(s.name=t.getAttribute("name"),s.value=t.getAttribute("value")||"")),this.form.append(s),s.click(),s.remove()}}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}}var qi=r`:host{display:inline-block}:host([fullWidth]),:host([fullWidth]) .btn{width:100%}:host([fullWidth]) .btn.has-left-icon{justify-content:flex-start}:host([fullWidth]) .btn.has-right-icon{justify-content:space-between}:host([fullWidth]) .btn.has-left-icon.has-right-icon{justify-content:center}.btn span{padding:0 var(--sgds-padding-2-xs)}.btn.no-icon{gap:var(--sgds-gap-none)}.loading{cursor:default}`;class Yi extends ji{constructor(){super(...arguments),this.formSubmitController=new Ui(this,{form:e=>{if(e.hasAttribute("form")){const t=e.getRootNode(),s=e.getAttribute("form");return t.getElementById(s)}return e.closest("form")}}),this.type="button",this.fullWidth=!1,this.hasLeftIconSlot=!1,this.hasRightIconSlot=!1,this.hasSlotController=new $i(this,"leftIcon","rightIcon"),this._clickHandler=()=>{"submit"===this.type&&this.formSubmitController.submit(this),"reset"===this.type&&this.formSubmitController.reset(this)}}updated(){this.hasLeftIconSlot||(this.hasLeftIconSlot=this.hasSlotController.test("leftIcon")),this.hasRightIconSlot||(this.hasRightIconSlot=this.hasSlotController.test("rightIcon"))}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation();this.removeEventListener("click",this._clickHandler),this.addEventListener("click",this._clickHandler)}render(){const e=this.href,t=e?ht`a`:ht`button`,s=!this.hasLeftIconSlot&&!this.hasRightIconSlot;return ut`
206
206
  <${t}
207
207
  class="btn ${Ke({disabled:this.disabled,active:this.active,"has-left-icon":this.hasLeftIconSlot,"has-right-icon":this.hasRightIconSlot,"no-icon":s,loading:this.loading})}"
208
208
  ?disabled=${Ge(e?void 0:this.disabled)}
@@ -230,7 +230,7 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
230
230
  <slot name="rightIcon"></slot>`}
231
231
 
232
232
  </${t}>
233
- `}}Yi.styles=[...ji.styles,$t,qi],t([ze({type:String,reflect:!0})],Yi.prototype,"name",void 0),t([ze({type:String,reflect:!0})],Yi.prototype,"value",void 0),t([ze({type:String,reflect:!0})],Yi.prototype,"type",void 0),t([ze({type:String,reflect:!0})],Yi.prototype,"form",void 0),t([ze({type:String,reflect:!0,attribute:"formaction"})],Yi.prototype,"formAction",void 0),t([ze({type:String,reflect:!0,attribute:"formmethod"})],Yi.prototype,"formMethod",void 0),t([ze({attribute:"formnovalidate",type:Boolean,reflect:!0})],Yi.prototype,"formNoValidate",void 0),t([ze({type:String,reflect:!0,attribute:"formtarget"})],Yi.prototype,"formTarget",void 0),t([ze({type:Boolean,reflect:!0})],Yi.prototype,"fullWidth",void 0),t([ze({type:Boolean})],Yi.prototype,"hasLeftIconSlot",void 0),t([ze({type:Boolean})],Yi.prototype,"hasRightIconSlot",void 0);var Wi=r`:host{height:100%}:host([disabled]){cursor:not-allowed}:host([stretchedLink]:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([stretchedLink]) slot[name=footer]::slotted(a),:host([stretchedLink]) slot[name=footer]::slotted(sgds-link),:host([stretchedLink]) slot[name=link]::slotted(a),:host([stretchedLink]) slot[name=link]::slotted(sgds-link){display:none}:host([stretchedLink]) .card:after{display:none}:host([orientation=horizontal]) .card{flex-direction:row}:host(:not([hideBorder])) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([orientation=horizontal]) .card-body{flex:1}:host([orientation=horizontal]) .card-media{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-xl)}:host([orientation=horizontal]) .card-image{width:40%}:host([imagePosition=after]) .card-image{order:1}:host([orientation=vertical][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-left-radius:var(--sgds-border-radius-none);border-top-right-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-bottom-left-radius:var(--sgds-border-radius-none);border-top-left-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal]) slot[name=image]::slotted(img){border-bottom-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:var(--sgds-border-radius-none);height:100%;object-fit:cover}:host([orientation=vertical][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-xl) var(--sgds-margin-xl) var(--sgds-padding-none)}:host([orientation=vertical][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-none) var(--sgds-margin-xl) var(--sgds-margin-xl)}:host([orientation=horizontal][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-xl) var(--sgds-margin-none) var(--sgds-margin-xl) var(--sgds-margin-xl)}:host([orientation=horizontal][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-xl) var(--sgds-margin-xl) var(--sgds-margin-xl) var(--sgds-margin-none)}:host([orientation][imageAdjustment="padding around"]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1))}:host([orientation=vertical]:not([imageAdjustment="aspect ratio"])) slot[name=image]::slotted(img){height:auto}:host([orientation=vertical][imageAdjustment="aspect ratio"]) slot[name=image]::slotted(img){object-fit:cover}.card{word-wrap:break-word;background-clip:border-box;background-color:var(--sgds-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);box-shadow:none;display:flex;flex-direction:column;height:100%;min-width:0;position:relative;transition:box-shadow .3s ease}a.card{color:initial;text-decoration:none}.card.disabled{opacity:var(--sgds-opacity-40);pointer-events:none}a.card:not(.disabled):focus-visible{--sgds-outline-offset-focus:-1px;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.card-tinted-bg{border-radius:var(--sgds-border-radius-md);bottom:0;left:0;opacity:var(--sgds-opacity-0);position:absolute;right:0;top:0}.card-image{flex:1;position:relative}.card-media{align-items:flex-start;display:flex;justify-content:space-between;line-height:0;padding:var(--sgds-padding-xl) var(--sgds-padding-xl) var(--sgds-padding-none)}.card-body{color:var(--sgds-body-color-default);display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-lg);padding:var(--sgds-padding-xl);z-index:1}.card-header-container{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}.card-header{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.card-title,slot[name=title]::slotted(*){color:var(--sgds-color-default);font-size:var(--sgds-font-size-heading-sm)!important;font-weight:var(--sgds-font-weight-semibold)!important;letter-spacing:var(--sgds-letter-spacing-tight)!important;line-height:var(--sgds-line-height-sm)!important;margin-bottom:var(--sgds-margin-none)!important}slot[name=subtitle]::slotted(*){color:var(--sgds-color-subtle);font-size:var(--sgds-font-size-overline-md)!important;font-weight:var(--sgds-font-weight-semibold)!important;letter-spacing:var(--sgds-letter-spacing-wide)!important;line-height:var(--sgds-line-height-2-xs)!important;margin:var(--sgds-margin-none)!important;text-transform:uppercase}slot[name=title]::slotted(a){color:var(--sgds-link-color-default);text-decoration:none!important}slot[name=description]::slotted(*){color:var(--sgds-color-subtle);margin-bottom:var(--sgds-margin-none)!important}slot[name=image]::slotted(img){border-top-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));display:block;width:100%}slot[name=footer]::slotted(*),slot[name=link]::slotted(*){margin-top:auto;padding-top:var(--sgds-padding-2-xs);width:fit-content}slot[name=footer]::slotted(a),slot[name=link]::slotted(a){color:var(--sgds-link-color-default);height:auto!important;text-decoration:none!important}slot[name=footer]::slotted(a:focus),slot[name=footer]::slotted(a:hover),slot[name=link]::slotted(a:focus),slot[name=link]::slotted(a:hover),slot[name=title]::slotted(a:focus),slot[name=title]::slotted(a:hover){color:var(--sgds-link-color-emphasis)}slot[name=footer]::slotted(a:focus-visible),slot[name=link]::slotted(a:focus-visible),slot[name=title]::slotted(a:focus-visible){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`,Ki=r`.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}`,Gi=r`.bg-primary{background-color:var(--sgds-primary)!important}.bg-secondary{background-color:var(--sgds-secondary)!important}.bg-success{background-color:var(--sgds-success)!important}.bg-info{background-color:var(--sgds-info)!important}.bg-warning{background-color:var(--sgds-warning)!important}.bg-danger{background-color:var(--sgds-danger)!important}.bg-light{background-color:var(--sgds-light)!important}.bg-dark{background-color:var(--sgds-dark)!important}`,Ji=r`.border-primary{border-color:var(--sgds-primary)!important}.border-secondary{border-color:var(--sgds-secondary)!important}.border-success{border-color:var(--sgds-success)!important}.border-info{border-color:var(--sgds-info)!important}.border-warning{border-color:var(--sgds-warning)!important}.border-danger{border-color:var(--sgds-danger)!important}.border-light{border-color:var(--sgds-light)!important}.border-dark{border-color:var(--sgds-dark)!important}`,Xi=r`.h1,.h2,.h3,.h4,.h5,.h6 ::slotted(h6),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),h1,h2,h3,h4,h5,h6{color:var(--sgds-heading-color);font-weight:700;line-height:1.2;margin-bottom:.5rem;margin-top:0}.h1,::slotted(h1),h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,::slotted(h1),h1{font-size:2.5rem}}.h2,::slotted(h2),h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,::slotted(h2),h2{font-size:2rem}}.h3,::slotted(h3),h3{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h3,::slotted(h3),h3{font-size:1.5rem}}.h4,::slotted(h4),h4{font-size:1.125rem}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{font-size:1rem}.h1,::slotted(h1),h1{line-height:1.2}.h2,::slotted(h2),h2{line-height:1.25}.h3,::slotted(h3),h3{line-height:1.33}.h4,::slotted(h4),h4{line-height:1.78}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{line-height:1.2}`,Qi=r`p{margin-bottom:1.5rem;margin-top:0}`;class ea extends Oe{constructor(){super(...arguments),this.stretchedLink=!1,this.disabled=!1,this.hideBorder=!1,this.tinted=!1,this.orientation="vertical"}handleTitleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});if(this.stretchedLink&&t[0]instanceof HTMLAnchorElement){(t[0].querySelector("a")||t[0]).removeAttribute("href")}}_forwardAnchorAttributes(e){const t=new Set(["class","style","id","slot","tabindex"]);if((null==e?void 0:e.href)&&!e.href.startsWith("javascript:")&&!e.href.startsWith("data:")&&!e.href.startsWith("vbscript:"))for(const{name:s,value:i}of Array.from(e.attributes))t.has(s)||s.startsWith("on")||this.card.setAttribute(s,i)}warnLinkSlotMisused(e){if(e.target.assignedNodes({flatten:!0}).length>1)return console.error("Multiple elements passed into SgdsCard's link slot")}}ea.styles=[...Oe.styles,Ki,Gi,Ji,Xi,Qi,Wi],t([Ae("a.card")],ea.prototype,"card",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"stretchedLink",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"hideBorder",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"tinted",void 0),t([ze({type:String,reflect:!0})],ea.prototype,"orientation",void 0);var ta=r`:host([noPadding]) .card{background-color:inherit;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=menu]::slotted(*){position:absolute;right:20px;top:20px;z-index:10}`;class sa extends ea{constructor(){super(...arguments),this.imagePosition="before",this.imageAdjustment="default",this.hasImageSlot=!1,this.hasIconSlot=!1,this.hasUpperSlot=!1,this.noPadding=!1,this.hasSlotController=new $i(this,"image","icon","upper")}get linkSlotItems(){if(!this.linkNode||0===this.linkNode.length)return null;const e=this.linkNode[0];return e.querySelector("a")||e}get footerSlotItems(){if(!this.footerNode||0===this.footerNode.length)return null;const e=this.footerNode[0];return e.querySelector("a")||e}firstUpdated(e){var t;if(super.firstUpdated(e),!this.hasSlotController.test("image")&&!this.hasSlotController.test("icon")&&!this.hasSlotController.test("upper")&&this.noPadding){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".card-body");e&&(e.style.padding="0px")}if(this.stretchedLink){const e=this.footerSlotItems,t=this.linkSlotItems;this._forwardAnchorAttributes((null==e?void 0:e.href)?e:t)}}updated(){this.hasImageSlot||(this.hasImageSlot=this.hasSlotController.test("image")),this.hasIconSlot||(this.hasIconSlot=this.hasSlotController.test("icon")),this.hasUpperSlot||(this.hasUpperSlot=this.hasSlotController.test("upper"))}handleImgSlotChange(e){e.target.assignedNodes({flatten:!0}).length>1&&console.error("Multiple elements passed into SgdsCard's image slot"),this.hasSlotController.test("image")&&this.hasSlotController.test("icon")&&console.error("Both image and icon slots cannot be used together in SgdsCard")}render(){const e=this.stretchedLink?ht`a`:ht`div`,t=!this.stretchedLink||this.disabled?-1:0;return ut`
233
+ `}}Yi.styles=[...ji.styles,$t,qi],t([ze({type:String,reflect:!0})],Yi.prototype,"name",void 0),t([ze({type:String,reflect:!0})],Yi.prototype,"value",void 0),t([ze({type:String,reflect:!0})],Yi.prototype,"type",void 0),t([ze({type:String,reflect:!0})],Yi.prototype,"form",void 0),t([ze({type:String,reflect:!0,attribute:"formaction"})],Yi.prototype,"formAction",void 0),t([ze({type:String,reflect:!0,attribute:"formmethod"})],Yi.prototype,"formMethod",void 0),t([ze({attribute:"formnovalidate",type:Boolean,reflect:!0})],Yi.prototype,"formNoValidate",void 0),t([ze({type:String,reflect:!0,attribute:"formtarget"})],Yi.prototype,"formTarget",void 0),t([ze({type:Boolean,reflect:!0})],Yi.prototype,"fullWidth",void 0),t([ze({type:Boolean})],Yi.prototype,"hasLeftIconSlot",void 0),t([ze({type:Boolean})],Yi.prototype,"hasRightIconSlot",void 0);var Wi=r`:host{height:100%}:host([disabled]){cursor:not-allowed}:host([stretchedLink]:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([stretchedLink]) slot[name=footer]::slotted(a),:host([stretchedLink]) slot[name=footer]::slotted(sgds-link),:host([stretchedLink]) slot[name=link]::slotted(a),:host([stretchedLink]) slot[name=link]::slotted(sgds-link){display:none}:host([stretchedLink]) .card:after{display:none}:host([orientation=horizontal]) .card{flex-direction:row}:host(:not([hideBorder])) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([orientation=horizontal]) .card-body{flex:1}:host([orientation=horizontal]) .card-media{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-xl)}:host([orientation=horizontal]) .card-image{width:40%}:host([imagePosition=after]) .card-image{order:1}:host([orientation=vertical][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-left-radius:var(--sgds-border-radius-none);border-top-right-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-bottom-left-radius:var(--sgds-border-radius-none);border-top-left-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal]) slot[name=image]::slotted(img){border-bottom-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:var(--sgds-border-radius-none);height:100%;object-fit:cover}:host([orientation=vertical][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-xl) var(--sgds-margin-xl) var(--sgds-padding-none)}:host([orientation=vertical][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-none) var(--sgds-margin-xl) var(--sgds-margin-xl)}:host([orientation=horizontal][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-xl) var(--sgds-margin-none) var(--sgds-margin-xl) var(--sgds-margin-xl)}:host([orientation=horizontal][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-xl) var(--sgds-margin-xl) var(--sgds-margin-xl) var(--sgds-margin-none)}:host([orientation][imageAdjustment="padding around"]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1))}:host([orientation=vertical]:not([imageAdjustment="aspect ratio"])) slot[name=image]::slotted(img){height:auto}:host([orientation=vertical][imageAdjustment="aspect ratio"]) slot[name=image]::slotted(img){object-fit:cover}.card{word-wrap:break-word;background-clip:border-box;background-color:var(--sgds-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);box-shadow:none;display:flex;flex-direction:column;height:100%;min-width:0;position:relative;transition:box-shadow .3s ease}a.card{color:initial;text-decoration:none}.card.disabled{opacity:var(--sgds-opacity-40);pointer-events:none}a.card:not(.disabled):focus-visible{--sgds-outline-offset-focus:-1px;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.card-tinted-bg{border-radius:var(--sgds-border-radius-md);bottom:0;left:0;opacity:var(--sgds-opacity-0);position:absolute;right:0;top:0}.card-image{flex:1;position:relative}.card-media{align-items:flex-start;display:flex;justify-content:space-between;line-height:0;padding:var(--sgds-padding-xl) var(--sgds-padding-xl) var(--sgds-padding-none)}.card-body{color:var(--sgds-body-color-default);display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-lg);padding:var(--sgds-padding-xl);z-index:1}.card-header-container{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}.card-header{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.card-title,slot[name=title]::slotted(*){color:var(--sgds-color-default);font-size:var(--sgds-font-size-heading-sm)!important;font-weight:var(--sgds-font-weight-semibold)!important;letter-spacing:var(--sgds-letter-spacing-tight)!important;line-height:var(--sgds-line-height-sm)!important;margin-bottom:var(--sgds-margin-none)!important}slot[name=subtitle]::slotted(*){color:var(--sgds-color-subtle);font-size:var(--sgds-font-size-overline-md)!important;font-weight:var(--sgds-font-weight-semibold)!important;letter-spacing:var(--sgds-letter-spacing-wide)!important;line-height:var(--sgds-line-height-2-xs)!important;margin:var(--sgds-margin-none)!important;text-transform:uppercase}slot[name=title]::slotted(a){color:var(--sgds-link-color-default);text-decoration:none!important}slot[name=description]::slotted(*){color:var(--sgds-color-subtle);margin-bottom:var(--sgds-margin-none)!important}slot[name=image]::slotted(img){border-top-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));display:block;width:100%}slot[name=footer]::slotted(*),slot[name=link]::slotted(*){margin-top:auto;padding-top:var(--sgds-padding-2-xs);width:fit-content}slot[name=footer]::slotted(a),slot[name=link]::slotted(a){color:var(--sgds-link-color-default);height:auto!important;text-decoration:none!important}slot[name=footer]::slotted(a:focus),slot[name=footer]::slotted(a:hover),slot[name=link]::slotted(a:focus),slot[name=link]::slotted(a:hover),slot[name=title]::slotted(a:focus),slot[name=title]::slotted(a:hover){color:var(--sgds-link-color-emphasis)}slot[name=footer]::slotted(a:focus-visible),slot[name=link]::slotted(a:focus-visible),slot[name=title]::slotted(a:focus-visible){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`,Ki=r`.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}`,Gi=r`.bg-primary{background-color:var(--sgds-primary)!important}.bg-secondary{background-color:var(--sgds-secondary)!important}.bg-success{background-color:var(--sgds-success)!important}.bg-info{background-color:var(--sgds-info)!important}.bg-warning{background-color:var(--sgds-warning)!important}.bg-danger{background-color:var(--sgds-danger)!important}.bg-light{background-color:var(--sgds-light)!important}.bg-dark{background-color:var(--sgds-dark)!important}`,Ji=r`.border-primary{border-color:var(--sgds-primary)!important}.border-secondary{border-color:var(--sgds-secondary)!important}.border-success{border-color:var(--sgds-success)!important}.border-info{border-color:var(--sgds-info)!important}.border-warning{border-color:var(--sgds-warning)!important}.border-danger{border-color:var(--sgds-danger)!important}.border-light{border-color:var(--sgds-light)!important}.border-dark{border-color:var(--sgds-dark)!important}`,Xi=r`.h1,.h2,.h3,.h4,.h5,.h6 ::slotted(h6),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),h1,h2,h3,h4,h5,h6{color:var(--sgds-heading-color);font-weight:700;line-height:1.2;margin-bottom:.5rem;margin-top:0}.h1,::slotted(h1),h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,::slotted(h1),h1{font-size:2.5rem}}.h2,::slotted(h2),h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,::slotted(h2),h2{font-size:2rem}}.h3,::slotted(h3),h3{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h3,::slotted(h3),h3{font-size:1.5rem}}.h4,::slotted(h4),h4{font-size:1.125rem}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{font-size:1rem}.h1,::slotted(h1),h1{line-height:1.2}.h2,::slotted(h2),h2{line-height:1.25}.h3,::slotted(h3),h3{line-height:1.33}.h4,::slotted(h4),h4{line-height:1.78}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{line-height:1.2}`,Qi=r`p{margin-bottom:1.5rem;margin-top:0}`;class ea extends Oe{constructor(){super(...arguments),this.stretchedLink=!1,this.disabled=!1,this.hideBorder=!1,this.tinted=!1,this.orientation="vertical"}handleTitleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});if(this.stretchedLink&&t[0]instanceof HTMLAnchorElement){(t[0].querySelector("a")||t[0]).removeAttribute("href")}}_forwardAnchorAttributes(e){const t=new Set(["class","style","id","slot","tabindex"]);if((null==e?void 0:e.href)&&!e.href.startsWith("javascript:")&&!e.href.startsWith("data:")&&!e.href.startsWith("vbscript:"))for(const{name:s,value:i}of Array.from(e.attributes))t.has(s)||s.startsWith("on")||this.card.setAttribute(s,i)}warnLinkSlotMisused(e){if(e.target.assignedNodes({flatten:!0}).length>1)return console.error("Multiple elements passed into SgdsCard's link slot")}}ea.styles=[...Oe.styles,Ki,Gi,Ji,Xi,Qi,Wi],t([De("a.card")],ea.prototype,"card",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"stretchedLink",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"hideBorder",void 0),t([ze({type:Boolean,reflect:!0})],ea.prototype,"tinted",void 0),t([ze({type:String,reflect:!0})],ea.prototype,"orientation",void 0);var ta=r`:host([noPadding]) .card{background-color:inherit;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=menu]::slotted(*){position:absolute;right:20px;top:20px;z-index:10}`;class sa extends ea{constructor(){super(...arguments),this.imagePosition="before",this.imageAdjustment="default",this.hasImageSlot=!1,this.hasIconSlot=!1,this.hasUpperSlot=!1,this.noPadding=!1,this.hasSlotController=new $i(this,"image","icon","upper")}get linkSlotItems(){if(!this.linkNode||0===this.linkNode.length)return null;const e=this.linkNode[0];return e.querySelector("a")||e}get footerSlotItems(){if(!this.footerNode||0===this.footerNode.length)return null;const e=this.footerNode[0];return e.querySelector("a")||e}firstUpdated(e){var t;if(super.firstUpdated(e),!this.hasSlotController.test("image")&&!this.hasSlotController.test("icon")&&!this.hasSlotController.test("upper")&&this.noPadding){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".card-body");e&&(e.style.padding="0px")}if(this.stretchedLink){const e=this.footerSlotItems,t=this.linkSlotItems;this._forwardAnchorAttributes((null==e?void 0:e.href)?e:t)}}updated(){this.hasImageSlot||(this.hasImageSlot=this.hasSlotController.test("image")),this.hasIconSlot||(this.hasIconSlot=this.hasSlotController.test("icon")),this.hasUpperSlot||(this.hasUpperSlot=this.hasSlotController.test("upper"))}handleImgSlotChange(e){e.target.assignedNodes({flatten:!0}).length>1&&console.error("Multiple elements passed into SgdsCard's image slot"),this.hasSlotController.test("image")&&this.hasSlotController.test("icon")&&console.error("Both image and icon slots cannot be used together in SgdsCard")}render(){const e=this.stretchedLink?ht`a`:ht`div`,t=!this.stretchedLink||this.disabled?-1:0;return ut`
234
234
  <${e}
235
235
  class="card ${Ke({disabled:this.disabled})}"
236
236
  tabindex=${t}
@@ -265,7 +265,7 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
265
265
  * Copyright 2020 Google LLC
266
266
  * SPDX-License-Identifier: BSD-3-Clause
267
267
  */
268
- class extends We{constructor(e){if(super(e),e.type!==Ue&&e.type!==Ne&&e.type!==qe)throw new Error("The `live` directive is not allowed on child or event bindings");if(!zt(e))throw new Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===ie||t===ae)return t;const s=e.element,i=e.name;if(e.type===Ue){if(t===s[i])return ie}else if(e.type===qe){if(!!t===s.hasAttribute(i))return ie}else if(e.type===Ne&&s.getAttribute(i)===String(t))return ie;return Dt(e),t}});var aa=r`.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)}`,oa=r`.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)}`,na=r`.form-label{color:var(--sgds-form-color-default);font-weight:var(--sgds-font-weight-semibold);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-40)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`,ra=r`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-24)}`;class la extends Oe{constructor(){super(...arguments),this.label="",this.hintText="",this.disabled=!1,this.invalid=!1,this._controlId=Zi("input"),this._labelId=Zi("label")}setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}}la.styles=[...Oe.styles,aa,oa,na,ra],t([ze({reflect:!0})],la.prototype,"label",void 0),t([ze({reflect:!0})],la.prototype,"hintText",void 0),t([ze({reflect:!0})],la.prototype,"name",void 0),t([ze({type:Boolean,reflect:!0})],la.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],la.prototype,"invalid",void 0);const da=(e="value")=>(t,s)=>{const i=t.constructor,a=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(t,o,n){var r;const l=i.getPropertyOptions(e);if(t===("string"==typeof l.attribute?l.attribute:e).toLowerCase()){const t=l.converter||x,i=("function"==typeof t?t:null!==(r=null==t?void 0:t.fromAttribute)&&void 0!==r?r:x.fromAttribute)(n,l.type);this[e]!==i&&(this[s]=i)}a.call(this,t,o,n)}};class ca{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,s){return this._internals.setValidity(e,t,s)}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 s in t)t[s]&&(this.validationError=s.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const ha=e=>{class s 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 ca(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,s){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,s)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return s.formAssociated=!0,t([De("sgds-input")],s.prototype,"sgdsInput",void 0),t([De("sgds-datepicker-input")],s.prototype,"sgdsDatepickerInput",void 0),s};var pa=r`.form-check-input[type=checkbox]{border-radius:var(--sgds-form-border-radius-md)}.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path d="M14.347 3.979a.522.522 0 0 1 0 .739L7.043 12.02a.521.521 0 0 1-.738 0L2.653 8.369a.522.522 0 1 1 .739-.738l3.282 3.283 6.934-6.935a.52.52 0 0 1 .739 0Z" fill="%23fff"/></svg>')}.form-check-input:indeterminate,.form-check-input[indeterminate]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:indeterminate:focus,.form-check-input:indeterminate:hover,.form-check-input[indeterminate]:focus-visible,.form-check-input[indeterminate]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}.form-check-input:indeterminate.is-invalid,.form-check-input[checked].is-invalid,.form-check-input[indeterminate].is-invalid{background-color:var(--sgds-form-danger-surface-default)}.form-check-label{flex:1;font-size:var(--sgds-font-size-label-md)}.form-check{margin:var(--sgds-form-padding-inline-sm) 0;padding:0}`,ua=r`input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);flex-shrink:0;height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid):not([aria-checked=true]):not(:focus-visible):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid)[checked]:focus-visible,.form-check-input:not([disabled]):not(.is-invalid)[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.form-check-input:not([disabled]).is-invalid{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-check-input:not([disabled]).is-invalid:focus-visible{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;class ga extends(ha(la)){constructor(){super(...arguments),this.hasSlotController=new $i(this,"[default]"),this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.noValidate=!1,this.invalidFeedback="",this._isTouched=!1,this._handleHostClick=e=>{e.composedPath()[0]===this&&(e.stopPropagation(),this.input.click())}}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}_handleChange(e){this.indeterminate&&(this.indeterminate=!this.indeterminate),this.checked=!this.checked,super._mixinHandleChange(e),this.emit("sgds-change",{detail:{checked:this.checked,value:this.value}}),this.checked?this.emit("sgds-check",{detail:{value:this.value}}):this.emit("sgds-uncheck",{detail:{value:this.value}})}_handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||this.click()}_handleBlur(){this._isTouched=!0,this.emit("sgds-blur")}_handleFocus(){this.emit("sgds-focus")}_handleInvalid(e){e.preventDefault(),this.invalid=!0}_handleDisabledChange(){this.setInvalid(!1)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&(this.invalid=!this.input.checkValidity())}_mixinResetFormControl(){this._isTouched=!1,this.checked=this.input.checked=this.defaultChecked,this.input.dispatchEvent(new InputEvent("reset")),this._mixinResetValidity(this.input)}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}firstUpdated(e){super.firstUpdated(e),this.checked&&this.emit("sgds-check",{detail:{value:this.value}})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleHostClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleHostClick)}render(){const e="both"===this.hasFeedback||"style"===this.hasFeedback,t="both"===this.hasFeedback||"text"===this.hasFeedback,s=this.hasSlotController.test("[default]");return te`
268
+ class extends We{constructor(e){if(super(e),e.type!==Ue&&e.type!==Ne&&e.type!==qe)throw new Error("The `live` directive is not allowed on child or event bindings");if(!zt(e))throw new Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===ie||t===ae)return t;const s=e.element,i=e.name;if(e.type===Ue){if(t===s[i])return ie}else if(e.type===qe){if(!!t===s.hasAttribute(i))return ie}else if(e.type===Ne&&s.getAttribute(i)===String(t))return ie;return It(e),t}});var aa=r`.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)}`,oa=r`.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)}`,na=r`.form-label{color:var(--sgds-form-color-default);font-weight:var(--sgds-font-weight-semibold);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-40)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`,ra=r`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-24)}`;class la extends Oe{constructor(){super(...arguments),this.label="",this.hintText="",this.disabled=!1,this.invalid=!1,this._controlId=Zi("input"),this._labelId=Zi("label")}setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}}la.styles=[...Oe.styles,aa,oa,na,ra],t([ze({reflect:!0})],la.prototype,"label",void 0),t([ze({reflect:!0})],la.prototype,"hintText",void 0),t([ze({reflect:!0})],la.prototype,"name",void 0),t([ze({type:Boolean,reflect:!0})],la.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],la.prototype,"invalid",void 0);const da=(e="value")=>(t,s)=>{const i=t.constructor,a=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(t,o,n){var r;const l=i.getPropertyOptions(e);if(t===("string"==typeof l.attribute?l.attribute:e).toLowerCase()){const t=l.converter||x,i=("function"==typeof t?t:null!==(r=null==t?void 0:t.fromAttribute)&&void 0!==r?r:x.fromAttribute)(n,l.type);this[e]!==i&&(this[s]=i)}a.call(this,t,o,n)}};class ca{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,s){return this._internals.setValidity(e,t,s)}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 s in t)t[s]&&(this.validationError=s.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const ha=e=>{class s 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 ca(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,s){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,s)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return s.formAssociated=!0,t([Ie("sgds-input")],s.prototype,"sgdsInput",void 0),t([Ie("sgds-datepicker-input")],s.prototype,"sgdsDatepickerInput",void 0),s};var pa=r`.form-check-input[type=checkbox]{border-radius:var(--sgds-form-border-radius-md)}.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path d="M14.347 3.979a.522.522 0 0 1 0 .739L7.043 12.02a.521.521 0 0 1-.738 0L2.653 8.369a.522.522 0 1 1 .739-.738l3.282 3.283 6.934-6.935a.52.52 0 0 1 .739 0Z" fill="%23fff"/></svg>')}.form-check-input:indeterminate,.form-check-input[indeterminate]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:indeterminate:focus,.form-check-input:indeterminate:hover,.form-check-input[indeterminate]:focus-visible,.form-check-input[indeterminate]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}.form-check-input:indeterminate.is-invalid,.form-check-input[checked].is-invalid,.form-check-input[indeterminate].is-invalid{background-color:var(--sgds-form-danger-surface-default)}.form-check-label{flex:1;font-size:var(--sgds-font-size-label-md)}.form-check{margin:var(--sgds-form-padding-inline-sm) 0;padding:0}`,ua=r`input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);flex-shrink:0;height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid):not([aria-checked=true]):not(:focus-visible):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid)[checked]:focus-visible,.form-check-input:not([disabled]):not(.is-invalid)[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.form-check-input:not([disabled]).is-invalid{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-check-input:not([disabled]).is-invalid:focus-visible{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;class ga extends(ha(la)){constructor(){super(...arguments),this.hasSlotController=new $i(this,"[default]"),this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.noValidate=!1,this.invalidFeedback="",this._isTouched=!1,this._handleHostClick=e=>{e.composedPath()[0]===this&&(e.stopPropagation(),this.input.click())}}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}_handleChange(e){this.indeterminate&&(this.indeterminate=!this.indeterminate),this.checked=!this.checked,super._mixinHandleChange(e),this.emit("sgds-change",{detail:{checked:this.checked,value:this.value}}),this.checked?this.emit("sgds-check",{detail:{value:this.value}}):this.emit("sgds-uncheck",{detail:{value:this.value}})}_handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||this.click()}_handleBlur(){this._isTouched=!0,this.emit("sgds-blur")}_handleFocus(){this.emit("sgds-focus")}_handleInvalid(e){e.preventDefault(),this.invalid=!0}_handleDisabledChange(){this.setInvalid(!1)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&(this.invalid=!this.input.checkValidity())}_mixinResetFormControl(){this._isTouched=!1,this.checked=this.input.checked=this.defaultChecked,this.input.dispatchEvent(new InputEvent("reset")),this._mixinResetValidity(this.input)}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}firstUpdated(e){super.firstUpdated(e),this.checked&&this.emit("sgds-check",{detail:{value:this.value}})}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleHostClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleHostClick)}render(){const e="both"===this.hasFeedback||"style"===this.hasFeedback,t="both"===this.hasFeedback||"text"===this.hasFeedback,s=this.hasSlotController.test("[default]");return te`
269
269
  <div class="form-check">
270
270
  <input
271
271
  class=${Ke({"form-check-input":!0,"is-invalid":e&&this.invalid})}
@@ -341,7 +341,7 @@ class extends We{constructor(e){if(super(e),e.type!==Ue&&e.type!==Ne&&e.type!==q
341
341
  class=${Ke({"form-label":!0,required:this.required})}
342
342
  >${this.label}</label
343
343
  >
344
- `;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)),s=await Promise.all(t);return null==s?void 0:s.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 te` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return te`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}wa.styles=[...zi.styles,Pi,oa,aa,fa,ba],t([ze({reflect:!0})],wa.prototype,"label",void 0),t([ze({reflect:!0})],wa.prototype,"hintText",void 0),t([ze({reflect:!0})],wa.prototype,"name",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"placeholder",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"autofocus",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"required",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"loading",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"value",void 0),t([Pe()],wa.prototype,"displayValue",void 0),t([da()],wa.prototype,"defaultValue",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"hasFeedback",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"invalid",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"autocomplete",void 0),t([ze({type:Array})],wa.prototype,"menuList",void 0),t([Pe()],wa.prototype,"selectedItems",void 0),t([Pe()],wa.prototype,"filteredList",void 0),t([De("input.form-control")],wa.prototype,"_input",void 0);var ya=r`:host{display:block;position:relative}.dropdown{display:flex;height:100%}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.combobox .form-control-group{height:unset;min-height:var(--sgds-dimension-48)}.combobox-input-container{align-items:center;display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);padding:calc(var(--sgds-form-padding-y) - var(--sgds-form-border-width-default)) 0;width:calc(100% - var(--sgds-icon-size-md, 1.25rem))}.combobox-input-container .form-control{flex:1 1 0;min-width:10ch}slot[id=default].d-none,slot[id=default].d-none::slotted(*){display:none}.form-clearable:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`,_a=r`: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 xa extends Oe{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 te`
344
+ `;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)),s=await Promise.all(t);return null==s?void 0:s.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 te` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return te`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}wa.styles=[...zi.styles,Pi,oa,aa,fa,ba],t([ze({reflect:!0})],wa.prototype,"label",void 0),t([ze({reflect:!0})],wa.prototype,"hintText",void 0),t([ze({reflect:!0})],wa.prototype,"name",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"placeholder",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"autofocus",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"required",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"loading",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"value",void 0),t([Pe()],wa.prototype,"displayValue",void 0),t([da()],wa.prototype,"defaultValue",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"hasFeedback",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],wa.prototype,"invalid",void 0),t([ze({type:String,reflect:!0})],wa.prototype,"autocomplete",void 0),t([ze({type:Array})],wa.prototype,"menuList",void 0),t([Pe()],wa.prototype,"selectedItems",void 0),t([Pe()],wa.prototype,"filteredList",void 0),t([Ie("input.form-control")],wa.prototype,"_input",void 0);var ya=r`:host{display:block;position:relative}.dropdown{display:flex;height:100%}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.combobox .form-control-group{height:unset;min-height:var(--sgds-dimension-48)}.combobox-input-container{align-items:center;display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);padding:calc(var(--sgds-form-padding-y) - var(--sgds-form-border-width-default)) 0;width:calc(100% - var(--sgds-icon-size-md, 1.25rem))}.combobox-input-container .form-control{flex:1 1 0;min-width:10ch}slot[id=default].d-none,slot[id=default].d-none::slotted(*){display:none}.form-clearable:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`,_a=r`: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 xa extends Oe{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 te`
345
345
  <div class="dropdown-item ${Ke(e)}" tabindex=${this.disabled?"-1":"0"}>
346
346
  ${this._renderItemContent()}
347
347
  </div>
@@ -360,7 +360,7 @@ class extends We{constructor(e){if(super(e),e.type!==Ue&&e.type!==Ne&&e.type!==q
360
360
  * Copyright 2017 Google LLC
361
361
  * SPDX-License-Identifier: BSD-3-Clause
362
362
  */
363
- const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};const $a=Ye(class extends We{constructor(e){if(super(e),e.type!==je)throw new Error("repeat() can only be used in text expressions")}_getValuesAndKeys(e,t,s){let i;void 0===s?s=t:void 0!==t&&(i=t);const a=[],o=[];let n=0;for(const t of e)a[n]=i?i(t,n):n,o[n]=s(t,n),n++;return{values:o,keys:a}}render(e,t,s){return this._getValuesAndKeys(e,t,s).values}update(e,[t,s,i]){const a=e._$committedValue;const{values:o,keys:n}=this._getValuesAndKeys(t,s,i);if(!Array.isArray(a))return this._itemKeys=n,o;const r=this._itemKeys??=[],l=[];let d,c,h=0,p=a.length-1,u=0,g=o.length-1;for(;h<=p&&u<=g;)if(null===a[h])h++;else if(null===a[p])p--;else if(r[h]===n[u])l[u]=It(a[h],o[u]),h++,u++;else if(r[p]===n[g])l[g]=It(a[p],o[g]),p--,g--;else if(r[h]===n[g])l[g]=It(a[h],o[g]),Lt(e,l[g+1],a[h]),h++,g--;else if(r[p]===n[u])l[u]=It(a[p],o[u]),Lt(e,a[h],a[p]),p--,u++;else if(void 0===d&&(d=Ca(n,u,g),c=Ca(r,h,p)),d.has(r[h]))if(d.has(r[p])){const t=c.get(n[u]),s=void 0!==t?a[t]:null;if(null===s){const t=Lt(e,a[h]);It(t,o[u]),l[u]=t}else l[u]=It(s,o[u]),Lt(e,a[h],s),a[t]=null;u++}else Et(a[p]),p--;else Et(a[h]),h++;for(;u<=g;){const t=Lt(e,l[g+1]);It(t,o[u]),l[u++]=t}for(;h<=p;){const e=a[h++];null!==e&&Et(e)}return this._itemKeys=n,Dt(e,l),ie}});var Sa=r`:host{--sgds-spinner-bg:var(--sgds-primary-surface-default);display:inline-flex}:host([variant=neutral]){--sgds-spinner-bg:var(--sgds-neutral-surface-default)}:host([tone=neutral]){--sgds-spinner-bg:var(--sgds-surface-inverse)}:host([tone=inverse]){--sgds-spinner-bg:var(--sgds-surface-default)}:host([tone=fixed-light]){--sgds-spinner-bg:var(--sgds-surface-fixed-light)}:host([tone=fixed-dark]){--sgds-spinner-bg:var(--sgds-surface-fixed-dark)}.spinner-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.spinner-wrapper.horizontal{flex-direction:row}.spinner{--border-thickness:4px;animation:spinner .75s linear infinite;border:var(--border-thickness) solid var(--sgds-bg-translucent);border-radius:50%;border-right:var(--border-thickness) solid var(--sgds-spinner-bg);color:var(--sgds-spinner-color);display:inline-flex;height:var(--sgds-dimension-32);width:var(--sgds-dimension-32)}.spinner-xs{--border-thickness:2px;height:var(--sgds-dimension-16);width:var(--sgds-dimension-16)}.spinner-sm{--border-thickness:3px;height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.spinner-lg{--border-thickness:6px;height:var(--sgds-dimension-48);width:var(--sgds-dimension-48)}.spinner-xl{--border-thickness:8px;height:var(--sgds-dimension-64);width:var(--sgds-dimension-64)}.spinner-label{color:var(--sgds-neutral-color-default);font-size:var(--sgds-font-size-label-sm)}
363
+ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};const $a=Ye(class extends We{constructor(e){if(super(e),e.type!==je)throw new Error("repeat() can only be used in text expressions")}_getValuesAndKeys(e,t,s){let i;void 0===s?s=t:void 0!==t&&(i=t);const a=[],o=[];let n=0;for(const t of e)a[n]=i?i(t,n):n,o[n]=s(t,n),n++;return{values:o,keys:a}}render(e,t,s){return this._getValuesAndKeys(e,t,s).values}update(e,[t,s,i]){const a=e._$committedValue;const{values:o,keys:n}=this._getValuesAndKeys(t,s,i);if(!Array.isArray(a))return this._itemKeys=n,o;const r=this._itemKeys??=[],l=[];let d,c,h=0,p=a.length-1,u=0,g=o.length-1;for(;h<=p&&u<=g;)if(null===a[h])h++;else if(null===a[p])p--;else if(r[h]===n[u])l[u]=At(a[h],o[u]),h++,u++;else if(r[p]===n[g])l[g]=At(a[p],o[g]),p--,g--;else if(r[h]===n[g])l[g]=At(a[h],o[g]),Lt(e,l[g+1],a[h]),h++,g--;else if(r[p]===n[u])l[u]=At(a[p],o[u]),Lt(e,a[h],a[p]),p--,u++;else if(void 0===d&&(d=Ca(n,u,g),c=Ca(r,h,p)),d.has(r[h]))if(d.has(r[p])){const t=c.get(n[u]),s=void 0!==t?a[t]:null;if(null===s){const t=Lt(e,a[h]);At(t,o[u]),l[u]=t}else l[u]=At(s,o[u]),Lt(e,a[h],s),a[t]=null;u++}else Et(a[p]),p--;else Et(a[h]),h++;for(;u<=g;){const t=Lt(e,l[g+1]);At(t,o[u]),l[u++]=t}for(;h<=p;){const e=a[h++];null!==e&&Et(e)}return this._itemKeys=n,It(e,l),ie}});var Sa=r`:host{--sgds-spinner-bg:var(--sgds-primary-surface-default);display:inline-flex}:host([variant=neutral]){--sgds-spinner-bg:var(--sgds-neutral-surface-default)}:host([tone=neutral]){--sgds-spinner-bg:var(--sgds-surface-inverse)}:host([tone=inverse]){--sgds-spinner-bg:var(--sgds-surface-default)}:host([tone=fixed-light]){--sgds-spinner-bg:var(--sgds-surface-fixed-light)}:host([tone=fixed-dark]){--sgds-spinner-bg:var(--sgds-surface-fixed-dark)}.spinner-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.spinner-wrapper.horizontal{flex-direction:row}.spinner{--border-thickness:4px;animation:spinner .75s linear infinite;border:var(--border-thickness) solid var(--sgds-bg-translucent);border-radius:50%;border-right:var(--border-thickness) solid var(--sgds-spinner-bg);color:var(--sgds-spinner-color);display:inline-flex;height:var(--sgds-dimension-32);width:var(--sgds-dimension-32)}.spinner-xs{--border-thickness:2px;height:var(--sgds-dimension-16);width:var(--sgds-dimension-16)}.spinner-sm{--border-thickness:3px;height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.spinner-lg{--border-thickness:6px;height:var(--sgds-dimension-48);width:var(--sgds-dimension-48)}.spinner-xl{--border-thickness:8px;height:var(--sgds-dimension-64);width:var(--sgds-dimension-64)}.spinner-label{color:var(--sgds-neutral-color-default);font-size:var(--sgds-font-size-label-sm)}
364
364
 
365
365
 
366
366
  /*! 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}`;class Ma extends Oe{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.orientation="vertical"}render(){return ut`
@@ -469,7 +469,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
469
469
  aria-hidden="true"
470
470
  .autocomplete=${this.autocomplete}
471
471
  />`:ae}
472
- `}}Za.styles=[...wa.styles,fa,ya],Za.childName="sgds-combo-box-option",Za.dependencies={[Za.childName]:ka,"sgds-icon":_t,"sgds-badge":Si,"sgds-spinner":Ma},t([ze({type:Boolean,reflect:!0})],Za.prototype,"multiSelect",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"badgeFullWidth",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"clearable",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"noValidate",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"async",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"emptyMenuAsync",void 0),t([ze({type:Number,reflect:!0})],Za.prototype,"scrollBottomOffset",void 0),t([ze()],Za.prototype,"filterFunction",void 0),t([De("input#multi-select-input-tracker")],Za.prototype,"_multiSelectInput",void 0),t([Ee({flatten:!0,selector:"sgds-combo-box-option"})],Za.prototype,"options",void 0),t([Pe()],Za.prototype,"optionList",void 0),t([Pe()],Za.prototype,"emptyMenuAfterFiltering",void 0),t([Pe()],Za.prototype,"isFocused",void 0),t([Pe()],Za.prototype,"isScrollEnd",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],Za.prototype,"_handleValueChange",null),t([nt("optionList",{waitUntilFirstUpdate:!0})],Za.prototype,"_handleOptionListChange",null),t([nt("menuList",{waitUntilFirstUpdate:!0})],Za.prototype,"_handleMenuListChange",null);var Va=r`:host{display:contents}:host([layout=fixed]) .table{table-layout:fixed}.table{border-collapse:collapse;display:table;table-layout:auto;width:100%}.data-table{border:var(--sgds-border-width-1) solid;border-color:var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md);display:flex;flex-direction:column;min-height:var(--sgds-dimension-56)}.footer{justify-content:space-between;padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.footer,.loading{align-items:center;display:flex}.loading{border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);justify-content:center;min-height:var(--sgds-dimension-128);padding:var(--sgds-padding-sm) var(--sgds-padding-md)}.loading .loading-menu{gap:var(--sgds-gap-xs);pointer-events:none}.loading .loading-menu,.no-data{align-items:center;color:var(--sgds-text-color-subtle);display:flex}.no-data{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);justify-content:center;min-height:var(--sgds-dimension-128);padding:var(--sgds-padding-sm) var(--sgds-padding-md)}.active:not(.sort-icon),tr:hover:not([data-header-row]){background-color:var(--sgds-bg-translucent-subtle);transition:background-color .15s ease}td,th{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);vertical-align:middle}.data-table-cell,.data-table-head{align-items:center;display:flex;min-height:var(--sgds-dimension-56);padding:var(--sgds-padding-sm) var(--sgds-padding-md)}.data-table-head{font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-2-xs)}.sort,.sort-button{align-items:center;display:inline-flex}.sort-button{background-color:var(--sgds-bg-transparent);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-form-border-radius-md);color:var(--sgds-color-subtle);cursor:pointer;height:var(--sgds-dimension-24);justify-content:center;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:var(--sgds-dimension-24)}.sort-button:hover{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-color-default)}.sort-button:focus,.sort-button:focus-visible{background-color:var(--sgds-bg-translucent-subtle);border-color:transparent;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.sort-button:disabled{background-color:var(--sgds-bg-transparent);color:var(--sgds-color-muted);cursor:not-allowed}.sort-button.active{background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-default)}.sort-icon{display:inline-flex}.data-table-cell.align-right,.data-table-head.align-right{justify-content:flex-end;text-align:right}.control-cell{width:var(--sgds-dimension-56)}:host(.checkbox-cell) .data-table-cell,:host(.checkbox-cell) .data-table-head{padding:var(--sgds-padding-sm) var(--sgds-padding-md)}:host(.expand-cell) .data-table-cell{cursor:pointer;padding:var(--sgds-padding-md)}.expandable-td{border:0;padding:0}.expandable-content{background-color:var(--sgds-surface-raised);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);padding:var(--sgds-padding-2-xl);padding-left:var(--sgds-padding-4-xl)}.hidden{display:none}`,za=r`:host{display:inline-block}.btn.btn-icon{display:flex;height:var(--sgds-dimension-48,56px);min-width:unset;padding:0;width:var(--sgds-dimension-48,56px)}.btn.btn-icon.btn-lg{height:var(--sgds-dimension-56);min-width:unset;padding:0;width:var(--sgds-dimension-56)}.btn.btn-icon.btn-sm{height:var(--sgds-dimension-40);min-width:unset;padding:0;width:var(--sgds-dimension-40)}.btn.btn-icon.btn-xs{height:var(--sgds-dimension-32);min-width:unset;padding:0;width:var(--sgds-dimension-32)}`;class Pa extends ji{_assignIconSize(e){return"xs"===e?"sm":"sm"===e?"md":"md"===e?"lg":"lg"===e?"xl":void 0}render(){const e=this.href,t=e?ht`a`:ht`button`;return ut`
472
+ `}}Za.styles=[...wa.styles,fa,ya],Za.childName="sgds-combo-box-option",Za.dependencies={[Za.childName]:ka,"sgds-icon":_t,"sgds-badge":Si,"sgds-spinner":Ma},t([ze({type:Boolean,reflect:!0})],Za.prototype,"multiSelect",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"badgeFullWidth",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"clearable",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"noValidate",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"async",void 0),t([ze({type:Boolean,reflect:!0})],Za.prototype,"emptyMenuAsync",void 0),t([ze({type:Number,reflect:!0})],Za.prototype,"scrollBottomOffset",void 0),t([ze()],Za.prototype,"filterFunction",void 0),t([Ie("input#multi-select-input-tracker")],Za.prototype,"_multiSelectInput",void 0),t([Ee({flatten:!0,selector:"sgds-combo-box-option"})],Za.prototype,"options",void 0),t([Pe()],Za.prototype,"optionList",void 0),t([Pe()],Za.prototype,"emptyMenuAfterFiltering",void 0),t([Pe()],Za.prototype,"isFocused",void 0),t([Pe()],Za.prototype,"isScrollEnd",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],Za.prototype,"_handleValueChange",null),t([nt("optionList",{waitUntilFirstUpdate:!0})],Za.prototype,"_handleOptionListChange",null),t([nt("menuList",{waitUntilFirstUpdate:!0})],Za.prototype,"_handleMenuListChange",null);var Va=r`:host{display:contents}:host([layout=fixed]) .table{table-layout:fixed}.table{border-collapse:collapse;display:table;table-layout:auto;width:100%}.data-table{border:var(--sgds-border-width-1) solid;border-color:var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md);display:flex;flex-direction:column;min-height:var(--sgds-dimension-56)}.footer{justify-content:space-between;padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.footer,.loading{align-items:center;display:flex}.loading{border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);justify-content:center;min-height:var(--sgds-dimension-128);padding:var(--sgds-padding-sm) var(--sgds-padding-md)}.loading .loading-menu{gap:var(--sgds-gap-xs);pointer-events:none}.loading .loading-menu,.no-data{align-items:center;color:var(--sgds-text-color-subtle);display:flex}.no-data{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);justify-content:center;min-height:var(--sgds-dimension-128);padding:var(--sgds-padding-sm) var(--sgds-padding-md)}.active:not(.sort-icon),tr:hover:not([data-header-row]){background-color:var(--sgds-bg-translucent-subtle);transition:background-color .15s ease}td,th{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);vertical-align:middle}.data-table-cell,.data-table-head{align-items:center;display:flex;min-height:var(--sgds-dimension-56);padding:var(--sgds-padding-sm) var(--sgds-padding-md)}.data-table-head{font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-2-xs)}.sort,.sort-button{align-items:center;display:inline-flex}.sort-button{background-color:var(--sgds-bg-transparent);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-form-border-radius-md);color:var(--sgds-color-subtle);cursor:pointer;height:var(--sgds-dimension-24);justify-content:center;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:var(--sgds-dimension-24)}.sort-button:hover{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-color-default)}.sort-button:focus,.sort-button:focus-visible{background-color:var(--sgds-bg-translucent-subtle);border-color:transparent;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.sort-button:disabled{background-color:var(--sgds-bg-transparent);color:var(--sgds-color-muted);cursor:not-allowed}.sort-button.active{background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-default)}.sort-icon{display:inline-flex}.data-table-cell.align-right,.data-table-head.align-right{justify-content:flex-end;text-align:right}.control-cell{width:var(--sgds-dimension-56)}:host(.checkbox-cell) .data-table-cell,:host(.checkbox-cell) .data-table-head{padding:var(--sgds-padding-sm) var(--sgds-padding-md)}:host(.expand-cell) .data-table-cell{cursor:pointer;padding:var(--sgds-padding-md)}.expandable-td{border:0;padding:0}.expandable-content{background-color:var(--sgds-surface-raised);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);padding:var(--sgds-padding-2-xl);padding-left:var(--sgds-padding-4-xl)}.hidden{display:none}`,za=r`:host{display:inline-block}.btn.btn-icon{display:flex;height:var(--sgds-dimension-48,56px);min-width:unset;padding:0;width:var(--sgds-dimension-48,56px)}.btn.btn-icon.btn-lg{height:var(--sgds-dimension-56);min-width:unset;padding:0;width:var(--sgds-dimension-56)}.btn.btn-icon.btn-sm{height:var(--sgds-dimension-40);min-width:unset;padding:0;width:var(--sgds-dimension-40)}.btn.btn-icon.btn-xs{height:var(--sgds-dimension-32);min-width:unset;padding:0;width:var(--sgds-dimension-32)}`;class Pa extends ji{_assignIconSize(e){return"xs"===e?"sm":"sm"===e?"md":"md"===e?"lg":"lg"===e?"xl":void 0}render(){const e=this.href,t=e?ht`a`:ht`button`;return ut`
473
473
  <${t}
474
474
  class="btn btn-icon${Ke({disabled:this.disabled,active:this.active,[`btn-${this.variant}`]:this.variant,[`btn-${this.size}`]:this.size,loading:this.loading})}"
475
475
  ?disabled=${Ge(e?void 0:this.disabled)}
@@ -495,7 +495,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
495
495
  size=${Ge(this._assignIconSize(this.size))}
496
496
  ></sgds-icon>`}
497
497
  </${t}>
498
- `}}Pa.styles=[...ji.styles,za],Pa.dependencies={"sgds-icon":_t,"sgds-spinner":Ma},t([ze({type:String,reflect:!0})],Pa.prototype,"name",void 0);var La=r`ul{margin-bottom:1rem;margin-top:0;padding-left:2rem}svg{vertical-align:middle}.pagination{display:inline-flex;gap:var(--sgds-gap-2-xs);list-style:none;padding-left:0}.page-link{align-items:center;background-color:var(--sgds-bg-transparent);border-radius:var(--sgds-border-radius-md);display:flex;height:var(--sgds-dimension-48);justify-content:center;width:var(--sgds-dimension-48)}.page-link:not(.ellipsis):focus-visible,.page-link:not(.ellipsis):hover{background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-default)}.page-link:not(.ellipsis):focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.page-item>.page-link:not(.ellipsis){cursor:pointer}.page-item.active .page-link{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}.ellipsis-disabled,.page-item.disabled .page-link{opacity:var(--sgds-opacity-40)}.ellipsis-disabled{cursor:not-allowed;pointer-events:none}.pagination-sm .page-link{font-size:var(--sgds-font-size-label-sm);height:var(--sgds-dimension-40);width:var(--sgds-dimension-40)}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pagination-description{align-items:center;display:flex}.pagination-sm .pagination-description{font-size:var(--sgds-font-size-label-sm)}`;class Ia extends Oe{constructor(){super(...arguments),this.dataLength=0,this.currentPage=1,this.itemsPerPage=5,this.variant="default",this.navigation="icon-button",this.size="md",this._limit=4,this.ellipsisContent=te`
498
+ `}}Pa.styles=[...ji.styles,za],Pa.dependencies={"sgds-icon":_t,"sgds-spinner":Ma},t([ze({type:String,reflect:!0})],Pa.prototype,"name",void 0);var La=r`ul{margin-bottom:1rem;margin-top:0;padding-left:2rem}svg{vertical-align:middle}.pagination{display:inline-flex;gap:var(--sgds-gap-2-xs);list-style:none;padding-left:0}.page-link{align-items:center;background-color:var(--sgds-bg-transparent);border-radius:var(--sgds-border-radius-md);display:flex;height:var(--sgds-dimension-48);justify-content:center;width:var(--sgds-dimension-48)}.page-link:not(.ellipsis):focus-visible,.page-link:not(.ellipsis):hover{background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-default)}.page-link:not(.ellipsis):focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.page-item>.page-link:not(.ellipsis){cursor:pointer}.page-item.active .page-link{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}.ellipsis-disabled,.page-item.disabled .page-link{opacity:var(--sgds-opacity-40)}.ellipsis-disabled{cursor:not-allowed;pointer-events:none}.pagination-sm .page-link{font-size:var(--sgds-font-size-label-sm);height:var(--sgds-dimension-40);width:var(--sgds-dimension-40)}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pagination-description{align-items:center;display:flex}.pagination-sm .pagination-description{font-size:var(--sgds-font-size-label-sm)}`;class Aa extends Oe{constructor(){super(...arguments),this.dataLength=0,this.currentPage=1,this.itemsPerPage=5,this.variant="default",this.navigation="icon-button",this.size="md",this._limit=4,this.ellipsisContent=te`
499
499
  <span aria-hidden="true">…</span>
500
500
  <span class="sr-only" role="text">Ellipsis</span>
501
501
  `,this._renderFirstEllipsis=()=>this.pages.length<=7||!(this.pages.length!==this._limit&&this.currentPage>4)?null:te`
@@ -590,15 +590,15 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
590
590
  ${"button"===this.variant?this._renderButtonPagination():ae}
591
591
  </div>
592
592
  </nav>
593
- `}}Ia.styles=[...Oe.styles,La],Ia.dependencies={"sgds-icon-button":Pa,"sgds-button":Yi,"sgds-icon":_t},t([ze({type:Number})],Ia.prototype,"dataLength",void 0),t([ze({type:Number})],Ia.prototype,"currentPage",void 0),t([ze({type:Number})],Ia.prototype,"itemsPerPage",void 0),t([ze({type:String})],Ia.prototype,"variant",void 0),t([ze({type:String})],Ia.prototype,"navigation",void 0),t([ze({type:String})],Ia.prototype,"size",void 0),t([Pe()],Ia.prototype,"_limit",void 0),t([nt("currentPage",{waitUntilFirstUpdate:!1})],Ia.prototype,"_handleValueChange",null);class Aa extends Oe{render(){return te`<slot></slot>`}}Aa.styles=[...Oe.styles,r`
593
+ `}}Aa.styles=[...Oe.styles,La],Aa.dependencies={"sgds-icon-button":Pa,"sgds-button":Yi,"sgds-icon":_t},t([ze({type:Number})],Aa.prototype,"dataLength",void 0),t([ze({type:Number})],Aa.prototype,"currentPage",void 0),t([ze({type:Number})],Aa.prototype,"itemsPerPage",void 0),t([ze({type:String})],Aa.prototype,"variant",void 0),t([ze({type:String})],Aa.prototype,"navigation",void 0),t([ze({type:String})],Aa.prototype,"size",void 0),t([Pe()],Aa.prototype,"_limit",void 0),t([nt("currentPage",{waitUntilFirstUpdate:!1})],Aa.prototype,"_handleValueChange",null);class Da extends Oe{render(){return te`<slot></slot>`}}Da.styles=[...Oe.styles,r`
594
594
  :host {
595
595
  display: contents;
596
596
  }
597
- `],t([ze({type:Number,reflect:!0})],Aa.prototype,"colspan",void 0),t([ze({type:Number,reflect:!0})],Aa.prototype,"rowspan",void 0);class Da extends Oe{constructor(){super(...arguments),this.textAlign="left",this.sorting=!1,this.sortKey=""}handleSortClick(){if(!this.sorting)return;const e="ascending"===this.ariasort?"descending":"descending"===this.ariasort?"none":"ascending";this.ariasort=e,this.emit("i-sgds-sort",{detail:{key:this.sortKey,direction:e},bubbles:!0,composed:!0})}render(){return te`<slot></slot>`}}Da.styles=[...Oe.styles,r`
597
+ `],t([ze({type:Number,reflect:!0})],Da.prototype,"colspan",void 0),t([ze({type:Number,reflect:!0})],Da.prototype,"rowspan",void 0);class Ia extends Oe{constructor(){super(...arguments),this.textAlign="left",this.sorting=!1,this.sortKey=""}handleSortClick(){if(!this.sorting)return;const e="ascending"===this.ariasort?"descending":"descending"===this.ariasort?"none":"ascending";this.ariasort=e,this.emit("i-sgds-sort",{detail:{key:this.sortKey,direction:e},bubbles:!0,composed:!0})}render(){return te`<slot></slot>`}}Ia.styles=[...Oe.styles,r`
598
598
  :host {
599
599
  display: contents;
600
600
  }
601
- `],t([ze({type:String,reflect:!0})],Da.prototype,"width",void 0),t([ze({type:Number,reflect:!0})],Da.prototype,"colspan",void 0),t([ze({type:Number,reflect:!0})],Da.prototype,"rowspan",void 0),t([ze({type:String,reflect:!0})],Da.prototype,"textAlign",void 0),t([ze({type:String,reflect:!0})],Da.prototype,"ariasort",void 0),t([ze({type:Boolean,reflect:!0})],Da.prototype,"sorting",void 0),t([ze({type:String,reflect:!0})],Da.prototype,"sortKey",void 0);class Ea extends Oe{constructor(){super(...arguments),this.rowData={},this.expand=!1,this.open=!1,this.checked=!1,this.showCheckbox=!1,this.showExpandPlaceholder=!1,this.columnAlignments=[],this.hasDataRows=!1,this._isHeaderRow=!1,this._cellSlotNames=new WeakMap}get checkbox(){var e;return null!==(e=this._checkboxEl)&&void 0!==e?e:null}connectedCallback(){super.connectedCallback(),this._lightDomObserver=new MutationObserver(()=>this._handleLightDomChange()),this._lightDomObserver.observe(this,{childList:!0}),this._handleLightDomChange()}disconnectedCallback(){var e;null===(e=this._lightDomObserver)||void 0===e||e.disconnect(),super.disconnectedCallback()}firstUpdated(){this._expandableBody&&(this._expandableBody.hidden=!this.open)}async handleExpandedChange(){if(this.open){if(this.emit("sgds-show",{cancelable:!0}).defaultPrevented)return void(this.open=!1);await et(this._expandableBody),this._expandableBody.hidden=!1;const{keyframes:e,options:t}=it(this,"row.expand.show");await Je(this._expandableBody,Qe(e,this._expandableBody.scrollHeight),t),this.emit("sgds-after-show")}else{if(this.emit("sgds-hide",{cancelable:!0}).defaultPrevented)return void(this.open=!0);await et(this._expandableBody);const{keyframes:e,options:t}=it(this,"row.expand.hide");await Je(this._expandableBody,Qe(e,this._expandableBody.scrollHeight),t),this._expandableBody.hidden=!0,this.emit("sgds-after-hide")}}async handleCheckedChange(){this.checked&&this.emit("i-sgds-change",{detail:{checked:!0}})}async show(){if(!this.open)return this.open=!0,ot(this,"sgds-after-show")}async hide(){if(this.open)return this.open=!1,ot(this,"sgds-after-hide")}getCellText(e){var t;const s=this._getCells().filter(e=>e instanceof Aa),i=s[e];return i?(null!==(t=i.textContent)&&void 0!==t?t:"").trim():""}_getCells(){return Array.from(this.children).filter(e=>e instanceof Aa||e instanceof Da)}_syncCellSlots(e){e.forEach(t=>{const s=`cell-${e.indexOf(t)}`;this._cellSlotNames.set(t,s),t.getAttribute("slot")!==s&&t.setAttribute("slot",s)})}_handleLightDomChange(){const e=this._getCells();this._syncCellSlots(e),this._isHeaderRow=e.some(e=>e instanceof Da),this.requestUpdate()}_onCheckboxChange(e){this.emit("i-sgds-change",{detail:{checked:e.target.checked}})}_toggleExpand(){this.open?this.hide():this.show()}_onExpandKeyDown(e){"Enter"===e.key&&(e.preventDefault(),this._toggleExpand())}_onSortKeyDown(e,t){"Enter"===e.key&&(e.preventDefault(),t.handleSortClick())}_renderCell(e,t){var s;const i=this._cellSlotNames.get(e);if(e instanceof Da)return te`<th
601
+ `],t([ze({type:String,reflect:!0})],Ia.prototype,"width",void 0),t([ze({type:Number,reflect:!0})],Ia.prototype,"colspan",void 0),t([ze({type:Number,reflect:!0})],Ia.prototype,"rowspan",void 0),t([ze({type:String,reflect:!0})],Ia.prototype,"textAlign",void 0),t([ze({type:String,reflect:!0})],Ia.prototype,"ariasort",void 0),t([ze({type:Boolean,reflect:!0})],Ia.prototype,"sorting",void 0),t([ze({type:String,reflect:!0})],Ia.prototype,"sortKey",void 0);class Ea extends Oe{constructor(){super(...arguments),this.rowData={},this.expand=!1,this.open=!1,this.checked=!1,this.showCheckbox=!1,this.showExpandPlaceholder=!1,this.columnAlignments=[],this.hasDataRows=!1,this._isHeaderRow=!1,this._cellSlotNames=new WeakMap}get checkbox(){var e;return null!==(e=this._checkboxEl)&&void 0!==e?e:null}connectedCallback(){super.connectedCallback(),this._lightDomObserver=new MutationObserver(()=>this._handleLightDomChange()),this._lightDomObserver.observe(this,{childList:!0}),this._handleLightDomChange()}disconnectedCallback(){var e;null===(e=this._lightDomObserver)||void 0===e||e.disconnect(),super.disconnectedCallback()}firstUpdated(){this._expandableBody&&(this._expandableBody.hidden=!this.open)}async handleExpandedChange(){if(this.open){if(this.emit("sgds-show",{cancelable:!0}).defaultPrevented)return void(this.open=!1);await et(this._expandableBody),this._expandableBody.hidden=!1;const{keyframes:e,options:t}=it(this,"row.expand.show");await Je(this._expandableBody,Qe(e,this._expandableBody.scrollHeight),t),this.emit("sgds-after-show")}else{if(this.emit("sgds-hide",{cancelable:!0}).defaultPrevented)return void(this.open=!0);await et(this._expandableBody);const{keyframes:e,options:t}=it(this,"row.expand.hide");await Je(this._expandableBody,Qe(e,this._expandableBody.scrollHeight),t),this._expandableBody.hidden=!0,this.emit("sgds-after-hide")}}async handleCheckedChange(){this.checked&&this.emit("i-sgds-change",{detail:{checked:!0}})}async show(){if(!this.open)return this.open=!0,ot(this,"sgds-after-show")}async hide(){if(this.open)return this.open=!1,ot(this,"sgds-after-hide")}getCellText(e){var t;const s=this._getCells().filter(e=>e instanceof Da),i=s[e];return i?(null!==(t=i.textContent)&&void 0!==t?t:"").trim():""}_getCells(){return Array.from(this.children).filter(e=>e instanceof Da||e instanceof Ia)}_syncCellSlots(e){e.forEach(t=>{const s=`cell-${e.indexOf(t)}`;this._cellSlotNames.set(t,s),t.getAttribute("slot")!==s&&t.setAttribute("slot",s)})}_handleLightDomChange(){const e=this._getCells();this._syncCellSlots(e),this._isHeaderRow=e.some(e=>e instanceof Ia),this.requestUpdate()}_onCheckboxChange(e){this.emit("i-sgds-change",{detail:{checked:e.target.checked}})}_toggleExpand(){this.open?this.hide():this.show()}_onExpandKeyDown(e){"Enter"===e.key&&(e.preventDefault(),this._toggleExpand())}_onSortKeyDown(e,t){"Enter"===e.key&&(e.preventDefault(),t.handleSortClick())}_renderCell(e,t){var s;const i=this._cellSlotNames.get(e);if(e instanceof Ia)return te`<th
602
602
  width=${Ge(e.width)}
603
603
  colspan=${Ge(e.colspan)}
604
604
  rowspan=${Ge(e.rowspan)}
@@ -660,7 +660,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
660
660
  </td>
661
661
  </tr>
662
662
  `:ae}
663
- `}}Ea.styles=[...Oe.styles,Va],Ea.dependencies={"sgds-checkbox":ga,"sgds-data-table-cell":Aa,"sgds-data-table-head":Da,"sgds-icon":_t},t([ze({type:Object,reflect:!0})],Ea.prototype,"rowData",void 0),t([ze({type:Boolean,reflect:!0})],Ea.prototype,"expand",void 0),t([ze({type:Boolean,reflect:!0})],Ea.prototype,"open",void 0),t([ze({type:Boolean,reflect:!0})],Ea.prototype,"checked",void 0),t([ze({type:Boolean})],Ea.prototype,"showCheckbox",void 0),t([ze({type:Boolean})],Ea.prototype,"showExpandPlaceholder",void 0),t([ze({attribute:!1})],Ea.prototype,"columnAlignments",void 0),t([ze({type:Boolean})],Ea.prototype,"hasDataRows",void 0),t([Ae(".expandable-body")],Ea.prototype,"_expandableBody",void 0),t([Ae("sgds-checkbox")],Ea.prototype,"_checkboxEl",void 0),t([Pe()],Ea.prototype,"_isHeaderRow",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],Ea.prototype,"handleExpandedChange",null),t([nt("checked")],Ea.prototype,"handleCheckedChange",null),at("row.expand.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"ease-in-out"}}),at("row.expand.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"ease-in-out"}});class Ba extends Oe{constructor(){super(...arguments),this.multiSelect=!1,this.dataLength=0,this.currentPage=1,this.itemsPerPage=5,this.footerText="",this.hideFooter=!1,this.isLoading=!1,this.serverSort=!1,this.layout="auto",this.mode="client",this.tableRows=[],this.headerRows=[],this._headerCells=[],this._initialRowPositions=new WeakMap,this._hasCapturedInitialRowPositions=!1,this._rowHandlers=new WeakMap}connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}_isRowChecked(e){var t;return e.checked||!0===(null===(t=e.checkbox)||void 0===t?void 0:t.checked)}_updateHeaderCheckbox(){const e=this.tableRows.filter(e=>this._isRowChecked(e)).length,t=e===this.tableRows.length&&e>0;this.headerRows.forEach(s=>{s.checked=t,s.checkbox&&(s.checkbox.checked=t,s.checkbox.indeterminate=e>0&&!t)})}async _syncHeaderCheckboxAfterRender(){if(!this.multiSelect||0===this.headerRows.length)return;const e=[...this.headerRows,...this.tableRows];await Promise.all(e.map(e=>e.updateComplete)),this._updateHeaderCheckbox()}_emitRowSelect(){const e=this.tableRows.filter(e=>this._isRowChecked(e)).map(e=>e.rowData);this.emit("sgds-row-select",{detail:{selected:e}})}_attachRowListener(e){const t=this._rowHandlers.get(e);t&&e.removeEventListener("i-sgds-change",t);const s=t=>{const{checked:s}=t.detail;this.headerRows.includes(e)?this.tableRows.forEach(e=>{e.checked=s,e.checkbox&&(e.checkbox.checked=s)}):(e.checked=s,this._updateHeaderCheckbox()),this._emitRowSelect()};this._rowHandlers.set(e,s),e.addEventListener("i-sgds-change",s)}_configureRows(){const e=this.tableRows.some(e=>e.expand),t=this.tableRows.length>0;this.headerRows.forEach(s=>{s.showCheckbox=this.multiSelect,s.showExpandPlaceholder=e,s.hasDataRows=t,this.multiSelect&&this._attachRowListener(s)}),this.tableRows.forEach(t=>{t.showCheckbox=this.multiSelect,t.showExpandPlaceholder=!t.expand&&e,this.multiSelect&&this._attachRowListener(t)}),this.multiSelect&&this._syncHeaderCheckboxAfterRender(),this._applyColumnAlignment()}_applyColumnAlignment(){const e=this._headerCells.reduce((e,t)=>{var s;const i=Number(t.colspan)>0?Number(t.colspan):1,a=null!==(s=t.textAlign)&&void 0!==s?s:"left";for(let t=0;t<i;t++)e.push(a);return e},[]);this.headerRows.forEach(t=>{t.columnAlignments=[...e]}),this.tableRows.forEach(t=>{t.columnAlignments=[...e]})}_extractCellText(e,t){const s=e.getCellText(t);if(s)return s;const i=Array.from(e.children).filter(e=>"sgds-data-table-cell"===e.tagName.toLowerCase())[t];return((null==i?void 0:i.textContent)||"").trim()}_toComparableValue(e,t,s){return t&&e.rowData&&t in e.rowData?e.rowData[t]:this._extractCellText(e,s)}_compareValues(e,t,s){if(e===t)return 0;const i=Number(e),a=Number(t);if(Number.isFinite(i)&&Number.isFinite(a))return"ascending"===s?i-a:a-i;const o=String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"});return"ascending"===s?o:-o}_resetOtherHeaderSortStates(e){this._headerCells.forEach(t=>{t!==e&&t.sorting&&(t.ariasort="none")})}_getRowsInInitialPositionOrder(e){return[...e].sort((e,t)=>{const s=this._initialRowPositions.get(e),i=this._initialRowPositions.get(t);return void 0===s&&void 0===i?0:void 0===s?1:void 0===i?-1:s-i})}_captureInitialRowPositions(e){this._hasCapturedInitialRowPositions||(e.forEach((e,t)=>{this._initialRowPositions.set(e,t)}),this._hasCapturedInitialRowPositions=!0)}_handleSort(e){const t=e.composedPath().find(e=>e instanceof Da);if(!t||!t.sorting)return;const{key:s,direction:i}=e.detail,a=t?this._headerCells.indexOf(t):-1;if(this._resetOtherHeaderSortStates(t),this.serverSort)return e.stopPropagation(),void this.emit("sgds-sort",{detail:{key:s,direction:i}});if(!(a<0)){if("none"===i)return this.tableRows=this._getRowsInInitialPositionOrder(this.tableRows),this._syncDomRowOrder(),void this._updateVisibleRows();if("client"===this.mode){const e=(this.currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage,o=[...this.tableRows],n=o.slice(e,t).sort((e,t)=>{const o=this._toComparableValue(e,s,a),n=this._toComparableValue(t,s,a);return this._compareValues(o,n,i)});return o.splice(e,n.length,...n),this.tableRows=o,this._syncDomRowOrder(),void this._updateVisibleRows()}this.tableRows=[...this.tableRows].sort((e,t)=>{const o=this._toComparableValue(e,s,a),n=this._toComparableValue(t,s,a);return this._compareValues(o,n,i)}),this._syncDomRowOrder(),this._updateVisibleRows()}}_syncDomRowOrder(){var e;const t=null===(e=this.tableRows[0])||void 0===e?void 0:e.parentElement;t&&this.tableRows.forEach(e=>t.appendChild(e))}_handleSlotChange(e){const t=e.target.assignedElements({flatten:!0}).filter(e=>e instanceof Ea),s=e=>Array.from(e.children).filter(e=>{const t=e.tagName.toLowerCase();return!("sgds-data-table-cell"!==t&&"sgds-data-table-head"!==t)&&"content"!==e.getAttribute("slot")});this.headerRows=t.filter(e=>s(e).some(e=>"sgds-data-table-head"===e.tagName.toLowerCase())),this.tableRows=t.filter(e=>{const t=s(e);return t.length>0&&t.every(e=>"sgds-data-table-cell"===e.tagName.toLowerCase())}),this._headerCells=this.headerRows.reduce((e,t)=>{const s=Array.from(t.children).filter(e=>e instanceof Da);return e.push(...s),e},[]),this._captureInitialRowPositions(this.tableRows),this._headerCells.forEach(e=>{e.sorting&&!e.ariasort&&(e.ariasort="none")}),this._configureRows(),this._updateVisibleRows()}_updateVisibleRows(){if("server"===this.mode)return void this.tableRows.forEach(e=>e.style.display=this.isLoading?"none":"");const e=this.dataLength||this.tableRows.length,t=Math.max(1,Math.ceil(e/this.itemsPerPage));if(this.currentPage>t)return void(this.currentPage=t);const s=(this.currentPage-1)*this.itemsPerPage,i=new Set(this.tableRows.slice(s,s+this.itemsPerPage));this.tableRows.forEach(e=>e.style.display=i.has(e)?"":"none")}updated(e){(e.has("currentPage")||e.has("itemsPerPage")||e.has("mode")||e.has("isLoading"))&&this._updateVisibleRows(),e.has("multiSelect")&&this._configureRows(),this.multiSelect&&(e.has("tableRows")||e.has("headerRows"))&&this._syncHeaderCheckboxAfterRender()}render(){const e=this.dataLength||this.tableRows.length,t=(this.currentPage-1)*this.itemsPerPage,s=Math.min(t+this.itemsPerPage,e),i=0===e?0:t+1,a=!this.isLoading&&0===this.tableRows.length;return te`
663
+ `}}Ea.styles=[...Oe.styles,Va],Ea.dependencies={"sgds-checkbox":ga,"sgds-data-table-cell":Da,"sgds-data-table-head":Ia,"sgds-icon":_t},t([ze({type:Object,reflect:!0})],Ea.prototype,"rowData",void 0),t([ze({type:Boolean,reflect:!0})],Ea.prototype,"expand",void 0),t([ze({type:Boolean,reflect:!0})],Ea.prototype,"open",void 0),t([ze({type:Boolean,reflect:!0})],Ea.prototype,"checked",void 0),t([ze({type:Boolean})],Ea.prototype,"showCheckbox",void 0),t([ze({type:Boolean})],Ea.prototype,"showExpandPlaceholder",void 0),t([ze({attribute:!1})],Ea.prototype,"columnAlignments",void 0),t([ze({type:Boolean})],Ea.prototype,"hasDataRows",void 0),t([De(".expandable-body")],Ea.prototype,"_expandableBody",void 0),t([De("sgds-checkbox")],Ea.prototype,"_checkboxEl",void 0),t([Pe()],Ea.prototype,"_isHeaderRow",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],Ea.prototype,"handleExpandedChange",null),t([nt("checked")],Ea.prototype,"handleCheckedChange",null),at("row.expand.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"ease-in-out"}}),at("row.expand.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"ease-in-out"}});class Ba extends Oe{constructor(){super(...arguments),this.multiSelect=!1,this.dataLength=0,this.currentPage=1,this.itemsPerPage=5,this.footerText="",this.hideFooter=!1,this.isLoading=!1,this.serverSort=!1,this.layout="auto",this.mode="client",this.tableRows=[],this.headerRows=[],this._headerCells=[],this._initialRowPositions=new WeakMap,this._hasCapturedInitialRowPositions=!1,this._rowHandlers=new WeakMap}connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}_isRowChecked(e){var t;return e.checked||!0===(null===(t=e.checkbox)||void 0===t?void 0:t.checked)}_updateHeaderCheckbox(){const e=this.tableRows.filter(e=>this._isRowChecked(e)).length,t=e===this.tableRows.length&&e>0;this.headerRows.forEach(s=>{s.checked=t,s.checkbox&&(s.checkbox.checked=t,s.checkbox.indeterminate=e>0&&!t)})}async _syncHeaderCheckboxAfterRender(){if(!this.multiSelect||0===this.headerRows.length)return;const e=[...this.headerRows,...this.tableRows];await Promise.all(e.map(e=>e.updateComplete)),this._updateHeaderCheckbox()}_emitRowSelect(){const e=this.tableRows.filter(e=>this._isRowChecked(e)).map(e=>e.rowData);this.emit("sgds-row-select",{detail:{selected:e}})}_attachRowListener(e){const t=this._rowHandlers.get(e);t&&e.removeEventListener("i-sgds-change",t);const s=t=>{const{checked:s}=t.detail;this.headerRows.includes(e)?this.tableRows.forEach(e=>{e.checked=s,e.checkbox&&(e.checkbox.checked=s)}):(e.checked=s,this._updateHeaderCheckbox()),this._emitRowSelect()};this._rowHandlers.set(e,s),e.addEventListener("i-sgds-change",s)}_configureRows(){const e=this.tableRows.some(e=>e.expand),t=this.tableRows.length>0;this.headerRows.forEach(s=>{s.showCheckbox=this.multiSelect,s.showExpandPlaceholder=e,s.hasDataRows=t,this.multiSelect&&this._attachRowListener(s)}),this.tableRows.forEach(t=>{t.showCheckbox=this.multiSelect,t.showExpandPlaceholder=!t.expand&&e,this.multiSelect&&this._attachRowListener(t)}),this.multiSelect&&this._syncHeaderCheckboxAfterRender(),this._applyColumnAlignment()}_applyColumnAlignment(){const e=this._headerCells.reduce((e,t)=>{var s;const i=Number(t.colspan)>0?Number(t.colspan):1,a=null!==(s=t.textAlign)&&void 0!==s?s:"left";for(let t=0;t<i;t++)e.push(a);return e},[]);this.headerRows.forEach(t=>{t.columnAlignments=[...e]}),this.tableRows.forEach(t=>{t.columnAlignments=[...e]})}_extractCellText(e,t){const s=e.getCellText(t);if(s)return s;const i=Array.from(e.children).filter(e=>"sgds-data-table-cell"===e.tagName.toLowerCase())[t];return((null==i?void 0:i.textContent)||"").trim()}_toComparableValue(e,t,s){return t&&e.rowData&&t in e.rowData?e.rowData[t]:this._extractCellText(e,s)}_compareValues(e,t,s){if(e===t)return 0;const i=Number(e),a=Number(t);if(Number.isFinite(i)&&Number.isFinite(a))return"ascending"===s?i-a:a-i;const o=String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"});return"ascending"===s?o:-o}_resetOtherHeaderSortStates(e){this._headerCells.forEach(t=>{t!==e&&t.sorting&&(t.ariasort="none")})}_getRowsInInitialPositionOrder(e){return[...e].sort((e,t)=>{const s=this._initialRowPositions.get(e),i=this._initialRowPositions.get(t);return void 0===s&&void 0===i?0:void 0===s?1:void 0===i?-1:s-i})}_captureInitialRowPositions(e){this._hasCapturedInitialRowPositions||(e.forEach((e,t)=>{this._initialRowPositions.set(e,t)}),this._hasCapturedInitialRowPositions=!0)}_handleSort(e){const t=e.composedPath().find(e=>e instanceof Ia);if(!t||!t.sorting)return;const{key:s,direction:i}=e.detail,a=t?this._headerCells.indexOf(t):-1;if(this._resetOtherHeaderSortStates(t),this.serverSort)return e.stopPropagation(),void this.emit("sgds-sort",{detail:{key:s,direction:i}});if(!(a<0)){if("none"===i)return this.tableRows=this._getRowsInInitialPositionOrder(this.tableRows),this._syncDomRowOrder(),void this._updateVisibleRows();if("client"===this.mode){const e=(this.currentPage-1)*this.itemsPerPage,t=e+this.itemsPerPage,o=[...this.tableRows],n=o.slice(e,t).sort((e,t)=>{const o=this._toComparableValue(e,s,a),n=this._toComparableValue(t,s,a);return this._compareValues(o,n,i)});return o.splice(e,n.length,...n),this.tableRows=o,this._syncDomRowOrder(),void this._updateVisibleRows()}this.tableRows=[...this.tableRows].sort((e,t)=>{const o=this._toComparableValue(e,s,a),n=this._toComparableValue(t,s,a);return this._compareValues(o,n,i)}),this._syncDomRowOrder(),this._updateVisibleRows()}}_syncDomRowOrder(){var e;const t=null===(e=this.tableRows[0])||void 0===e?void 0:e.parentElement;t&&this.tableRows.forEach(e=>t.appendChild(e))}_handleSlotChange(e){const t=e.target.assignedElements({flatten:!0}).filter(e=>e instanceof Ea),s=e=>Array.from(e.children).filter(e=>{const t=e.tagName.toLowerCase();return!("sgds-data-table-cell"!==t&&"sgds-data-table-head"!==t)&&"content"!==e.getAttribute("slot")});this.headerRows=t.filter(e=>s(e).some(e=>"sgds-data-table-head"===e.tagName.toLowerCase())),this.tableRows=t.filter(e=>{const t=s(e);return t.length>0&&t.every(e=>"sgds-data-table-cell"===e.tagName.toLowerCase())}),this._headerCells=this.headerRows.reduce((e,t)=>{const s=Array.from(t.children).filter(e=>e instanceof Ia);return e.push(...s),e},[]),this._captureInitialRowPositions(this.tableRows),this._headerCells.forEach(e=>{e.sorting&&!e.ariasort&&(e.ariasort="none")}),this._configureRows(),this._updateVisibleRows()}_updateVisibleRows(){if("server"===this.mode)return void this.tableRows.forEach(e=>e.style.display=this.isLoading?"none":"");const e=this.dataLength||this.tableRows.length,t=Math.max(1,Math.ceil(e/this.itemsPerPage));if(this.currentPage>t)return void(this.currentPage=t);const s=(this.currentPage-1)*this.itemsPerPage,i=new Set(this.tableRows.slice(s,s+this.itemsPerPage));this.tableRows.forEach(e=>e.style.display=i.has(e)?"":"none")}updated(e){(e.has("currentPage")||e.has("itemsPerPage")||e.has("mode")||e.has("isLoading"))&&this._updateVisibleRows(),e.has("multiSelect")&&this._configureRows(),this.multiSelect&&(e.has("tableRows")||e.has("headerRows"))&&this._syncHeaderCheckboxAfterRender()}render(){const e=this.dataLength||this.tableRows.length,t=(this.currentPage-1)*this.itemsPerPage,s=Math.min(t+this.itemsPerPage,e),i=0===e?0:t+1,a=!this.isLoading&&0===this.tableRows.length;return te`
664
664
  <div class="data-table">
665
665
  <div>
666
666
  <slot @slotchange=${this._handleSlotChange} @i-sgds-sort=${this._handleSort} class="table"></slot>
@@ -684,7 +684,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
684
684
  :host {
685
685
  display: block;
686
686
  }
687
- `],Ba.dependencies={"sgds-pagination":Ia,"sgds-data-table-cell":Aa,"sgds-data-table-head":Da,"sgds-spinner":Ma},t([ze({type:Boolean})],Ba.prototype,"multiSelect",void 0),t([ze({type:Number})],Ba.prototype,"dataLength",void 0),t([ze({type:Number})],Ba.prototype,"currentPage",void 0),t([ze({type:Number})],Ba.prototype,"itemsPerPage",void 0),t([ze({type:String})],Ba.prototype,"footerText",void 0),t([ze({type:Boolean})],Ba.prototype,"hideFooter",void 0),t([ze({type:Boolean})],Ba.prototype,"isLoading",void 0),t([ze({type:Boolean})],Ba.prototype,"serverSort",void 0),t([ze({type:String,reflect:!0})],Ba.prototype,"layout",void 0),t([ze({type:String})],Ba.prototype,"mode",void 0),t([Pe()],Ba.prototype,"tableRows",void 0),t([Pe()],Ba.prototype,"headerRows",void 0);const Ya={"DD/MM/YYYY":{imPattern:"`dd{/}`mm{/}`yyyy",imRangePattern:"`dd{/}`mm{/}`yyyy - `DD{/}`MM{/}`YYYY",fnsPattern:"dd/MM/yyyy"},"MM/DD/YYYY":{imPattern:"`mm{/}`dd{/}`yyyy",imRangePattern:"`mm{/}`dd{/}`yyyy - `MM{/}`DD{/}`YYYY",fnsPattern:"MM/dd/yyyy"},"YYYY/MM/DD":{imPattern:"`yyyy{/}`mm{/}`dd",imRangePattern:"`yyyy{/}`mm{/}`dd - `YYYY{/}`MM{/}`DD",fnsPattern:"yyyy/MM/dd"}},Wa=e=>{const t=e.getMonth(),s=e.getFullYear(),i=e.getDate(),a=new Date(s,t+1),o=Oa(a);return Na(e)&&o<i?Ua(a):new Date(s,t+1,i)},Ka=e=>{const t=e.getMonth(),s=e.getFullYear(),i=e.getDate(),a=new Date(s,t-1),o=Oa(a);return Na(e)&&o<i?Ua(a):new Date(s,t-1,i)},Ga=e=>{const t=new Date(e);return t.setHours(12),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t};var Ja=r`.datepicker-body{color:var(--sgds-form-color-default);display:flex;justify-content:center}table{border-collapse:collapse;text-align:center}.monthpicker,.yearpicker{display:grid;grid-template-columns:repeat(3,6rem);grid-template-rows:repeat(4,2.5rem)}.monthpicker [role=row],.yearpicker [role=row]{display:contents}button.month,button.year{background-color:transparent;border:0;border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative}button.month.active:not(.selected-ends),button.year.active:not(.selected-ends),td[data-day].active:not(.selected-ends){background-color:var(--sgds-primary-surface-translucent);border-radius:0;cursor:pointer}button.month:hover:not(.active),button.year:hover:not(.active),td[data-day]:hover:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle);cursor:pointer}button.month:focus:not(.active),button.year:focus:not(.active),td[data-day]:focus:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle)}button.month:focus-visible,button.year:focus-visible,td[data-day]:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}button.month.active:not(.selected-ends):focus,button.year.active:not(.selected-ends):focus,td[data-day].active:not(.selected-ends):focus{border-radius:var(--sgds-form-border-radius-sm)}button.year.active{background-color:var(--sgds-primary-surface-translucent);cursor:pointer}td,th{border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);height:var(--sgds-form-height-lg);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative;width:var(--sgds-form-width-md)}th{font-weight:var(--sgds-font-weight-semibold)}td[data-day]{cursor:pointer}button.month.active.selected-ends,button.year.active.selected-ends,td[data-day].active.selected-ends{background-color:var(--sgds-form-primary-surface-default);color:var(--sgds-form-color-fixed-light)}button.month.active.selected-ends:focus,button.month.active.selected-ends:hover,button.year.active.selected-ends:focus,button.year.active.selected-ends:hover,td[data-day].active.selected-ends:focus,td[data-day].active.selected-ends:hover{background-color:var(--sgds-form-primary-surface-emphasis)}td[data-day].disabled{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.today{align-items:center;display:flex;flex-direction:column;justify-content:center}.today:after{background-color:var(--sgds-form-primary-surface-default);bottom:6px;content:".";line-height:4px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;width:4px}.today.active.selected-ends:after{background-color:var(--sgds-form-color-inverse)}`;const Xa=new Date,Qa={ArrowUp:{days:-7,months:-3,years:-3},ArrowDown:{days:7,months:3,years:3},ArrowRight:{days:1,months:1,years:1},ArrowLeft:{days:-1,months:-1,years:-1}};class eo extends Oe{constructor(){super(...arguments),this.selectedDate=[],this.mode="single"}focusOnCalendar(e){e.blur(),this._focusOnCalendarCell()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyPress),this.addEventListener("blur",e=>e.stopPropagation())}updated(){3===this.focusedTabIndex&&this._focusOnCalendarCell()}_updateFocusedDate(){this.focusedDate=Ga(this.displayDate),this.focusedDate.getFullYear()<1900&&this.focusedDate.setFullYear(1900)}_setFocusedDate(e){const t=this.focusedDate.getDate(),s=this.focusedDate.getMonth(),i=this.focusedDate.getFullYear();switch(this.view){case"days":{const a=Ga(new Date(i,s,t+e));(Ta(a,new Date(0,0,1,12))||Ra(a,new Date(0,0,1,12)))&&(this.focusedDate=a);break}case"months":{const a=Ga(new Date(i,s+e,t));(Ta(a,new Date(0,0,1,12))||Ra(a,new Date(0,0,1,12)))&&(this.focusedDate=a);break}case"years":{const a=Ga(new Date(i+e,s,t));a.getFullYear()>=1900&&(this.focusedDate=a);break}}}_handleEnterDateKeyboard(e){const t=e.composedPath()[0];if(!t.classList.contains("disabled"))switch(this.view){case"days":this._onClickDay(e);break;case"months":{const{month:e}=t.dataset;this._onClickMonth(parseInt(e));break}case"years":{const{year:e}=t.dataset;this._onClickYear(parseInt(e))}}}_handleKeyPress(e){if("Enter"===e.key)return e.preventDefault(),void this._handleEnterDateKeyboard(e);if("Tab"===e.key){const e=this._getFocusedTarget();return void(3!==this.focusedTabIndex&&e.blur())}if(e.key.includes("Arrow")){e.preventDefault(),this._blurCalendarCell();const t=Qa[e.key][this.view];this._setFocusedDate(t),this._focusOnCalendarCell()}}_generateIncrementDates(){const e=Ga(this.selectedDate[0]);if(this.selectedDate.length<2)return[e];const t=Ga(this.selectedDate[1]),s=[];if(e.getTime()<t.getTime())for(let i=e;i<=t;i.setDate(i.getDate()+1))s.push(new Date(i));else for(let i=t;i<=e;i.setDate(i.getDate()+1))s.push(new Date(i));return s}_onClickDay(e){const{day:t,date:s}=e.composedPath()[0].dataset,i=new Date(this.displayDate);if(i.setDate(parseInt(t)),"click"===e.type&&(this.focusedDate=Ga(new Date(s))),"single"===this.mode)this.selectedDate=[i],this.emit("sgds-selectdates",{detail:this.selectedDate});else if("range"===this.mode){const e=[...this.selectedDate];0!==e.length&&2!==e.length||(e.length=0),e.push(i),this.selectedDate=e,this.emit("sgds-selectdates",{detail:this.selectedDate})}const a=this.minDate?Ga(new Date(this.minDate)):null,o=this.maxDate?Ga(new Date(this.maxDate)):null,n=Ga(i);(a&&n<a||o&&n>o)&&(e.stopPropagation(),e.preventDefault())}_onClickMonth(e,t=this.focusedDate.getFullYear()){const s=new Date(this.displayDate);this.view="days",s.setMonth(e),s.setFullYear(t),this.displayDate=s,this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectmonth",{detail:this.displayDate})}_onClickYear(e){const t=new Date(this.displayDate);t.setFullYear(e),this.displayDate=t,this.view="months",this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectyear",{detail:this.displayDate})}_getFocusedTarget(){const e={days:`td[data-date="${this.focusedDate.toISOString()}"]`,months:`button[data-month="${this.focusedDate.getMonth()}"][data-year="${this.focusedDate.getFullYear()}"]`,years:`button[data-year="${this.focusedDate.getFullYear()}"]`}[this.view];return this.shadowRoot.querySelector(`${e}`)}_blurCalendarCell(){const e=this._getFocusedTarget();e.setAttribute("tabindex","-1"),e.blur()}_focusOnCalendarCell(){const e=this._getFocusedTarget();e?(e.setAttribute("tabindex","0"),e.focus(),this.emit("sgds-update-focus",{detail:this.focusedDate})):this.emit("sgds-change-calendar",{detail:this.focusedDate})}_generateDays(){const e=this.selectedDate.map(e=>Ga(e)),t=this._generateIncrementDates(),s=this.minDate?Ga(new Date(this.minDate)):null,i=this.maxDate?Ga(new Date(this.maxDate)):null,a=this.displayDate.getFullYear(),o=this.displayDate.getMonth(),n=new Date(a,o,1).getDay();let r=eo.daysInMonth[o];1===o&&(a%4==0&&a%100!=0||a%400==0)&&(r=29);const l=[];let d=1;for(let c=0;c<9;c++){const h=[];for(let l=0;l<=6;l++)if(d<=r&&(c>0||l>=n)){const n=new Date(a,o,d,12,0,0,0),r=n.toISOString(),c=s&&Date.parse(r)<Date.parse(s.toISOString()),p=i&&Date.parse(r)>Date.parse(i.toISOString()),u=c||p?void 0:this._onClickDay,g=Xa.getMonth()===this.displayDate.getMonth(),v=Xa.getFullYear()===this.displayDate.getFullYear(),m=Xa.getDate()===d,f=e.length>0&&t.some(e=>Date.parse(r)===Date.parse(e.toISOString())),b=e.length>0&&t[0].toISOString()===r,w=e.length>1&&t[t.length-1].toISOString()===r,y=""+(m&&g&&v?"Today's date, ":"")+Ha(n,"PPPP");h.push(te`<td
687
+ `],Ba.dependencies={"sgds-pagination":Aa,"sgds-data-table-cell":Da,"sgds-data-table-head":Ia,"sgds-spinner":Ma},t([ze({type:Boolean})],Ba.prototype,"multiSelect",void 0),t([ze({type:Number})],Ba.prototype,"dataLength",void 0),t([ze({type:Number})],Ba.prototype,"currentPage",void 0),t([ze({type:Number})],Ba.prototype,"itemsPerPage",void 0),t([ze({type:String})],Ba.prototype,"footerText",void 0),t([ze({type:Boolean})],Ba.prototype,"hideFooter",void 0),t([ze({type:Boolean})],Ba.prototype,"isLoading",void 0),t([ze({type:Boolean})],Ba.prototype,"serverSort",void 0),t([ze({type:String,reflect:!0})],Ba.prototype,"layout",void 0),t([ze({type:String})],Ba.prototype,"mode",void 0),t([Pe()],Ba.prototype,"tableRows",void 0),t([Pe()],Ba.prototype,"headerRows",void 0);const Ya={"DD/MM/YYYY":{imPattern:"`dd{/}`mm{/}`yyyy",imRangePattern:"`dd{/}`mm{/}`yyyy - `DD{/}`MM{/}`YYYY",fnsPattern:"dd/MM/yyyy"},"MM/DD/YYYY":{imPattern:"`mm{/}`dd{/}`yyyy",imRangePattern:"`mm{/}`dd{/}`yyyy - `MM{/}`DD{/}`YYYY",fnsPattern:"MM/dd/yyyy"},"YYYY/MM/DD":{imPattern:"`yyyy{/}`mm{/}`dd",imRangePattern:"`yyyy{/}`mm{/}`dd - `YYYY{/}`MM{/}`DD",fnsPattern:"yyyy/MM/dd"}},Wa=e=>{const t=e.getMonth(),s=e.getFullYear(),i=e.getDate(),a=new Date(s,t+1),o=Oa(a);return Na(e)&&o<i?Ua(a):new Date(s,t+1,i)},Ka=e=>{const t=e.getMonth(),s=e.getFullYear(),i=e.getDate(),a=new Date(s,t-1),o=Oa(a);return Na(e)&&o<i?Ua(a):new Date(s,t-1,i)},Ga=e=>{const t=new Date(e);return t.setHours(12),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t};var Ja=r`.datepicker-body{color:var(--sgds-form-color-default);display:flex;justify-content:center}table{border-collapse:collapse;text-align:center}.monthpicker,.yearpicker{display:grid;grid-template-columns:repeat(3,6rem);grid-template-rows:repeat(4,2.5rem)}.monthpicker [role=row],.yearpicker [role=row]{display:contents}button.month,button.year{background-color:transparent;border:0;border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative}button.month.active:not(.selected-ends),button.year.active:not(.selected-ends),td[data-day].active:not(.selected-ends){background-color:var(--sgds-primary-surface-translucent);border-radius:0;cursor:pointer}button.month:hover:not(.active),button.year:hover:not(.active),td[data-day]:hover:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle);cursor:pointer}button.month:focus:not(.active),button.year:focus:not(.active),td[data-day]:focus:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle)}button.month:focus-visible,button.year:focus-visible,td[data-day]:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}button.month.active:not(.selected-ends):focus,button.year.active:not(.selected-ends):focus,td[data-day].active:not(.selected-ends):focus{border-radius:var(--sgds-form-border-radius-sm)}button.year.active{background-color:var(--sgds-primary-surface-translucent);cursor:pointer}td,th{border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);height:var(--sgds-form-height-lg);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative;width:var(--sgds-form-width-md)}th{font-weight:var(--sgds-font-weight-semibold)}td[data-day]{cursor:pointer}button.month.active.selected-ends,button.year.active.selected-ends,td[data-day].active.selected-ends{background-color:var(--sgds-form-primary-surface-default);color:var(--sgds-form-color-fixed-light)}button.month.active.selected-ends:focus,button.month.active.selected-ends:hover,button.year.active.selected-ends:focus,button.year.active.selected-ends:hover,td[data-day].active.selected-ends:focus,td[data-day].active.selected-ends:hover{background-color:var(--sgds-form-primary-surface-emphasis)}td[data-day].disabled{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.today{align-items:center;display:flex;flex-direction:column;justify-content:center}.today:after{background-color:var(--sgds-form-primary-surface-default);bottom:6px;content:".";line-height:4px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;width:4px}.today.active.selected-ends:after{background-color:var(--sgds-form-color-inverse)}`;const Xa=new Date,Qa={ArrowUp:{days:-7,months:-3,years:-3},ArrowDown:{days:7,months:3,years:3},ArrowRight:{days:1,months:1,years:1},ArrowLeft:{days:-1,months:-1,years:-1}};class eo extends Oe{constructor(){super(...arguments),this.selectedDate=[],this.mode="single"}focusOnCalendar(e){e.blur(),this._focusOnCalendarCell()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyPress),this.addEventListener("blur",e=>e.stopPropagation())}updated(){3===this.focusedTabIndex&&this._focusOnCalendarCell()}_updateFocusedDate(){this.focusedDate=Ga(this.displayDate),this.focusedDate.getFullYear()<1900&&this.focusedDate.setFullYear(1900)}_setFocusedDate(e){const t=this.focusedDate.getDate(),s=this.focusedDate.getMonth(),i=this.focusedDate.getFullYear();switch(this.view){case"days":{const a=Ga(new Date(i,s,t+e));(Ta(a,new Date(0,0,1,12))||Ra(a,new Date(0,0,1,12)))&&(this.focusedDate=a);break}case"months":{const a=Ga(new Date(i,s+e,t));(Ta(a,new Date(0,0,1,12))||Ra(a,new Date(0,0,1,12)))&&(this.focusedDate=a);break}case"years":{const a=Ga(new Date(i+e,s,t));a.getFullYear()>=1900&&(this.focusedDate=a);break}}}_handleEnterDateKeyboard(e){const t=e.composedPath()[0];if(!t.classList.contains("disabled"))switch(this.view){case"days":this._onClickDay(e);break;case"months":{const{month:e}=t.dataset;this._onClickMonth(parseInt(e));break}case"years":{const{year:e}=t.dataset;this._onClickYear(parseInt(e))}}}_handleKeyPress(e){if("Enter"===e.key)return e.preventDefault(),void this._handleEnterDateKeyboard(e);if("Tab"===e.key){const e=this._getFocusedTarget();return void(3!==this.focusedTabIndex&&e.blur())}if(e.key.includes("Arrow")){e.preventDefault(),this._blurCalendarCell();const t=Qa[e.key][this.view];this._setFocusedDate(t),this._focusOnCalendarCell()}}_generateIncrementDates(){const e=Ga(this.selectedDate[0]);if(this.selectedDate.length<2)return[e];const t=Ga(this.selectedDate[1]),s=[];if(e.getTime()<t.getTime())for(let i=e;i<=t;i.setDate(i.getDate()+1))s.push(new Date(i));else for(let i=t;i<=e;i.setDate(i.getDate()+1))s.push(new Date(i));return s}_onClickDay(e){const{day:t,date:s}=e.composedPath()[0].dataset,i=new Date(this.displayDate);if(i.setDate(parseInt(t)),"click"===e.type&&(this.focusedDate=Ga(new Date(s))),"single"===this.mode)this.selectedDate=[i],this.emit("sgds-selectdates",{detail:this.selectedDate});else if("range"===this.mode){const e=[...this.selectedDate];0!==e.length&&2!==e.length||(e.length=0),e.push(i),this.selectedDate=e,this.emit("sgds-selectdates",{detail:this.selectedDate})}const a=this.minDate?Ga(new Date(this.minDate)):null,o=this.maxDate?Ga(new Date(this.maxDate)):null,n=Ga(i);(a&&n<a||o&&n>o)&&(e.stopPropagation(),e.preventDefault())}_onClickMonth(e,t=this.focusedDate.getFullYear()){const s=new Date(this.displayDate);this.view="days",s.setMonth(e),s.setFullYear(t),this.displayDate=s,this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectmonth",{detail:this.displayDate})}_onClickYear(e){const t=new Date(this.displayDate);t.setFullYear(e),this.displayDate=t,this.view="months",this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectyear",{detail:this.displayDate})}_getFocusedTarget(){const e={days:`td[data-date="${this.focusedDate.toISOString()}"]`,months:`button[data-month="${this.focusedDate.getMonth()}"][data-year="${this.focusedDate.getFullYear()}"]`,years:`button[data-year="${this.focusedDate.getFullYear()}"]`}[this.view];return this.shadowRoot.querySelector(`${e}`)}_blurCalendarCell(){const e=this._getFocusedTarget();e.setAttribute("tabindex","-1"),e.blur()}_focusOnCalendarCell(){const e=this._getFocusedTarget();e?(e.setAttribute("tabindex","0"),e.focus(),this.emit("sgds-update-focus",{detail:this.focusedDate})):this.emit("sgds-change-calendar",{detail:this.focusedDate})}_generateDays(){const e=this.selectedDate.map(e=>Ga(e)),t=this._generateIncrementDates(),s=this.minDate?Ga(new Date(this.minDate)):null,i=this.maxDate?Ga(new Date(this.maxDate)):null,a=this.displayDate.getFullYear(),o=this.displayDate.getMonth(),n=new Date(a,o,1).getDay();let r=eo.daysInMonth[o];1===o&&(a%4==0&&a%100!=0||a%400==0)&&(r=29);const l=[];let d=1;for(let c=0;c<9;c++){const h=[];for(let l=0;l<=6;l++)if(d<=r&&(c>0||l>=n)){const n=new Date(a,o,d,12,0,0,0),r=n.toISOString(),c=s&&Date.parse(r)<Date.parse(s.toISOString()),p=i&&Date.parse(r)>Date.parse(i.toISOString()),u=c||p?void 0:this._onClickDay,g=Xa.getMonth()===this.displayDate.getMonth(),v=Xa.getFullYear()===this.displayDate.getFullYear(),m=Xa.getDate()===d,f=e.length>0&&t.some(e=>Date.parse(r)===Date.parse(e.toISOString())),b=e.length>0&&t[0].toISOString()===r,w=e.length>1&&t[t.length-1].toISOString()===r,y=""+(m&&g&&v?"Today's date, ":"")+Ha(n,"PPPP");h.push(te`<td
688
688
  key=${l}
689
689
  data-date=${r}
690
690
  data-day=${d}
@@ -863,7 +863,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
863
863
  </div>
864
864
  ${this._renderFeedback()}
865
865
  </div>
866
- `}}lo.styles=[...no.styles,ro],t([ze({type:String})],lo.prototype,"minDate",void 0),t([ze({type:String})],lo.prototype,"maxDate",void 0),t([ze({type:String,reflect:!0})],lo.prototype,"mode",void 0),t([De("input")],lo.prototype,"shadowInput",void 0);var co=r`:host{--datepicker-theme-color:var(--sgds-primary);--datepicker-hover-bg:var(--sgds-primary-100);--datepicker-bg:#fff;--datepicker-close-btn-bg:var(--datepicker-theme-color);--datepicker-close-btn-hover-bg:var(--sgds-primary-700);--datepicker-close-btn-color:#fff;--datepicker-selected-date-bg:var(--sgds-primary);--datepicker-selected-date-color:#fff}:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{background-color:var(--sgds-form-surface-default);display:flex;flex-direction:column;gap:var(--sgds-form-gap-sm);overflow:unset;padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);width:var(--sgds-dimension-320)}.dropdown{display:flex;height:100%}sgds-datepicker-input{--input-border-radius:var(--sgds-form-border-radius-md) 0 0 var(--sgds-form-border-radius-md);flex:1;margin-right:0}sgds-icon-button{--btn-border-radius:0 var(--sgds-form-border-radius-md) var(--sgds-form-border-radius-md) 0}.m-width-160{min-width:var(--sgds-dimension-160)}`;class ho extends(ha(Vi)){constructor(){super(),this.required=!1,this.disabled=!1,this.noValidate=!1,this.value="",this.initialValue=[],this.dateFormat="DD/MM/YYYY",this.minDate="",this.maxDate="",this.mode="single",this.hasFeedback=!1,this.label="",this.hintText="",this.noFlip=!1,this.drop="down",this.defaultValue="",this.invalid=!1,this.view="days",this.selectedDateRange=[],this.focusedTabIndex=3,this.initialDisplayDate=new Date,this._makeInputValueString=(e,t,s)=>{if(!e&&!t)return this.value;const i=e=>Ha(e,Ya[s].fnsPattern);switch(this.mode){case"single":e&&(this.value=i(e));break;case"range":e&&t&&(this.value=`${i(e)} - ${i(t)}`),e&&!t&&(this.value=`${i(e)} - ${this.dateFormat}`)}return this.value},this._dialogAriaLabels={days:"Choose date",months:"Choose month",years:"Choose year"},this.floatingOpts={placement:"bottom-end"}}isValueEmpty(){return""===this.value||"DD/MM/YYYY"===this.value||"DD/MM/YYYY - DD/MM/YYYY"===this.value}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}setInvalid(e){this.invalid=e,this.datepickerInput&&this.datepickerInput.setInvalid(e)}setValidity(e,t,s){return this._mixinSetValidity(e,t,s)}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}async connectedCallback(){if(super.connectedCallback(),this.addEventListener("sgds-view",this._handleViewChanged),this.addEventListener("sgds-change-calendar",this._handleDateChanged),this.addEventListener("sgds-update-focus",this._handleFocusDateChanged),this.addEventListener("sgds-selectmonth",this._handleSelectMonth),this.addEventListener("sgds-selectyear",this._handleSelectYear),this.addEventListener("sgds-selectdates",this._handleSelectDatesAndClose),this.addEventListener("i-sgds-selectdates-input",this._handleSelectDatesInput),this.addEventListener("i-sgds-empty-input",this._handleEmptyInput),this.addEventListener("keydown",this._handleTab),this.addEventListener("sgds-hide",this._handleCloseMenu),this.addEventListener("sgds-show",this._handleOpenMenu),this.addEventListener("blur",this._mixinCheckValidity),this.initialValue=this.value?this.value.split(" - ").map(e=>e.trim()):this.initialValue,this.initialDisplayDate=this.displayDate||new Date,this.initialValue&&this.initialValue.length>0){const e=new RegExp(this._getDateFormatRegex()),t=this.initialValue.filter(t=>!e.test(t));if(t.length>0)return console.error("Invalid date format in initialValue:",t);{const e=this.initialValue.map(e=>Ga(qa(e,Ya[this.dateFormat].fnsPattern)));this._handleSelectDates(e)}}else this.displayDate=this.initialDisplayDate;(await this.datepickerInputAsync).setInvalid(this.invalid)}async firstUpdated(e){if(super.firstUpdated(e),this.menuIsOpen){const e=await this.datepickerInputAsync;await this.updateFloatingPosition();(await this.calendar).focusOnCalendar(e)}}_getDateFormatRegex(){return this.dateFormat.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace("MM","\\d{2}").replace("DD","\\d{2}").replace("YYYY","\\d{4}").replace("/","\\/")}_handleTab(e){if(!this.menuIsOpen)return;const t=Array(4);e.shiftKey&&"Tab"===e.key?(e.preventDefault(),this.focusedTabIndex=(this.focusedTabIndex-1+t.length)%t.length):"Tab"===e.key&&(e.preventDefault(),this.focusedTabIndex=(this.focusedTabIndex+1+t.length)%t.length)}_handleValueChange(){this.emit("sgds-change-date")}async _handleCloseMenu(){if(0===this.selectedDateRange.length)this.displayDate=this.initialDisplayDate;else{const e=this.selectedDateRange.length;this.displayDate=this.selectedDateRange[e-1];(await this.calendar)._updateFocusedDate()}await this.updateComplete;(await this.datepickerInputAsync).focus()}async _handleOpenMenu(){const e=await this.calendar,t=await this.datepickerInputAsync;e.focusOnCalendar(t)}_handleSelectDatesInput(e){this._handleSelectDates(e.detail)}async _handleSelectDates(e){e.sort((e,t)=>e.getTime()-t.getTime()),this.displayDate=e[0],this.focusedDate=e[0],this.selectedDateRange=e;const t=this._makeInputValueString(this.selectedDateRange[0],this.selectedDateRange[1],this.dateFormat);this.value=t;(await this.datepickerInputAsync).updateMaskValue(),this._manageInternalsValid()}async _handleSelectDatesAndClose(e){await this._handleSelectDates(e.detail),("range"===this.mode&&2===this.selectedDateRange.length||"single"===this.mode&&1===this.selectedDateRange.length)&&this.hideMenu()}_handleViewChanged(e){this.view=e.detail}_handleDateChanged(e){this.displayDate=e.detail}_handleFocusDateChanged(e){this.focusedDate=e.detail}_handleSelectMonth(e){this.displayDate=e.detail}_handleSelectYear(e){this.displayDate=e.detail}async _handleInvalidInput(){this.selectedDateRange=[],this.displayDate=this.initialDisplayDate,this._mixinShouldSkipSgdsValidation()||(this.invalid=!0,this._manageInternalsBadInput())}async _handleEmptyInput(){this.required&&this._manageEmptyInput()}async _resetDatepicker(e=""){this.displayDate=this.initialDisplayDate,this.selectedDateRange=[],this.value=e,this.view="days";const t=await this.datepickerInputAsync;t.setInvalid(this.invalid),t.destroyInputMask(),await t.applyInputMask(),this._mixinResetValidity(t),this.isValueEmpty()&&this._handleEmptyInput()}_manageInternalsBadInput(){this._mixinSetValidity({badInput:!0},"Invalid date input",this.datepickerInput)}_manageEmptyInput(){this._mixinSetValidity({valueMissing:!0},"Please fill in this field",this.datepickerInput)}_manageInternalsValid(){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||(this._mixinSetValidity({}),this.invalid=this.datepickerInput.invalid=!1)}async _mixinResetFormControl(){this._resetDatepicker(this.defaultValue)}async _handleInputMaskChange(e){this.value=e.detail,this.isValueEmpty()&&this._resetDatepicker()}render(){return te`
866
+ `}}lo.styles=[...no.styles,ro],t([ze({type:String})],lo.prototype,"minDate",void 0),t([ze({type:String})],lo.prototype,"maxDate",void 0),t([ze({type:String,reflect:!0})],lo.prototype,"mode",void 0),t([Ie("input")],lo.prototype,"shadowInput",void 0);var co=r`:host{--datepicker-theme-color:var(--sgds-primary);--datepicker-hover-bg:var(--sgds-primary-100);--datepicker-bg:#fff;--datepicker-close-btn-bg:var(--datepicker-theme-color);--datepicker-close-btn-hover-bg:var(--sgds-primary-700);--datepicker-close-btn-color:#fff;--datepicker-selected-date-bg:var(--sgds-primary);--datepicker-selected-date-color:#fff}:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{background-color:var(--sgds-form-surface-default);display:flex;flex-direction:column;gap:var(--sgds-form-gap-sm);overflow:unset;padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);width:var(--sgds-dimension-320)}.dropdown{display:flex;height:100%}sgds-datepicker-input{--input-border-radius:var(--sgds-form-border-radius-md) 0 0 var(--sgds-form-border-radius-md);flex:1;margin-right:0}sgds-icon-button{--btn-border-radius:0 var(--sgds-form-border-radius-md) var(--sgds-form-border-radius-md) 0}.m-width-160{min-width:var(--sgds-dimension-160)}`;class ho extends(ha(Vi)){constructor(){super(),this.required=!1,this.disabled=!1,this.noValidate=!1,this.value="",this.initialValue=[],this.dateFormat="DD/MM/YYYY",this.minDate="",this.maxDate="",this.mode="single",this.hasFeedback=!1,this.label="",this.hintText="",this.noFlip=!1,this.drop="down",this.defaultValue="",this.invalid=!1,this.view="days",this.selectedDateRange=[],this.focusedTabIndex=3,this.initialDisplayDate=new Date,this._makeInputValueString=(e,t,s)=>{if(!e&&!t)return this.value;const i=e=>Ha(e,Ya[s].fnsPattern);switch(this.mode){case"single":e&&(this.value=i(e));break;case"range":e&&t&&(this.value=`${i(e)} - ${i(t)}`),e&&!t&&(this.value=`${i(e)} - ${this.dateFormat}`)}return this.value},this._dialogAriaLabels={days:"Choose date",months:"Choose month",years:"Choose year"},this.floatingOpts={placement:"bottom-end"}}isValueEmpty(){return""===this.value||"DD/MM/YYYY"===this.value||"DD/MM/YYYY - DD/MM/YYYY"===this.value}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}setInvalid(e){this.invalid=e,this.datepickerInput&&this.datepickerInput.setInvalid(e)}setValidity(e,t,s){return this._mixinSetValidity(e,t,s)}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}async connectedCallback(){if(super.connectedCallback(),this.addEventListener("sgds-view",this._handleViewChanged),this.addEventListener("sgds-change-calendar",this._handleDateChanged),this.addEventListener("sgds-update-focus",this._handleFocusDateChanged),this.addEventListener("sgds-selectmonth",this._handleSelectMonth),this.addEventListener("sgds-selectyear",this._handleSelectYear),this.addEventListener("sgds-selectdates",this._handleSelectDatesAndClose),this.addEventListener("i-sgds-selectdates-input",this._handleSelectDatesInput),this.addEventListener("i-sgds-empty-input",this._handleEmptyInput),this.addEventListener("keydown",this._handleTab),this.addEventListener("sgds-hide",this._handleCloseMenu),this.addEventListener("sgds-show",this._handleOpenMenu),this.addEventListener("blur",this._mixinCheckValidity),this.initialValue=this.value?this.value.split(" - ").map(e=>e.trim()):this.initialValue,this.initialDisplayDate=this.displayDate||new Date,this.initialValue&&this.initialValue.length>0){const e=new RegExp(this._getDateFormatRegex()),t=this.initialValue.filter(t=>!e.test(t));if(t.length>0)return console.error("Invalid date format in initialValue:",t);{const e=this.initialValue.map(e=>Ga(qa(e,Ya[this.dateFormat].fnsPattern)));this._handleSelectDates(e)}}else this.displayDate=this.initialDisplayDate;(await this.datepickerInputAsync).setInvalid(this.invalid)}async firstUpdated(e){if(super.firstUpdated(e),this.menuIsOpen){const e=await this.datepickerInputAsync;await this.updateFloatingPosition();(await this.calendar).focusOnCalendar(e)}}_getDateFormatRegex(){return this.dateFormat.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace("MM","\\d{2}").replace("DD","\\d{2}").replace("YYYY","\\d{4}").replace("/","\\/")}_handleTab(e){if(!this.menuIsOpen)return;const t=Array(4);e.shiftKey&&"Tab"===e.key?(e.preventDefault(),this.focusedTabIndex=(this.focusedTabIndex-1+t.length)%t.length):"Tab"===e.key&&(e.preventDefault(),this.focusedTabIndex=(this.focusedTabIndex+1+t.length)%t.length)}_handleValueChange(){this.emit("sgds-change-date")}async _handleCloseMenu(){if(0===this.selectedDateRange.length)this.displayDate=this.initialDisplayDate;else{const e=this.selectedDateRange.length;this.displayDate=this.selectedDateRange[e-1];(await this.calendar)._updateFocusedDate()}await this.updateComplete;(await this.datepickerInputAsync).focus()}async _handleOpenMenu(){const e=await this.calendar,t=await this.datepickerInputAsync;e.focusOnCalendar(t)}_handleSelectDatesInput(e){this._handleSelectDates(e.detail)}async _handleSelectDates(e){e.sort((e,t)=>e.getTime()-t.getTime()),this.displayDate=e[0],this.focusedDate=e[0],this.selectedDateRange=e;const t=this._makeInputValueString(this.selectedDateRange[0],this.selectedDateRange[1],this.dateFormat);this.value=t;(await this.datepickerInputAsync).updateMaskValue(),this._manageInternalsValid()}async _handleSelectDatesAndClose(e){await this._handleSelectDates(e.detail),("range"===this.mode&&2===this.selectedDateRange.length||"single"===this.mode&&1===this.selectedDateRange.length)&&this.hideMenu()}_handleViewChanged(e){this.view=e.detail}_handleDateChanged(e){this.displayDate=e.detail}_handleFocusDateChanged(e){this.focusedDate=e.detail}_handleSelectMonth(e){this.displayDate=e.detail}_handleSelectYear(e){this.displayDate=e.detail}async _handleInvalidInput(){this.selectedDateRange=[],this.displayDate=this.initialDisplayDate,this._mixinShouldSkipSgdsValidation()||(this.invalid=!0,this._manageInternalsBadInput())}async _handleEmptyInput(){this.required&&this._manageEmptyInput()}async _resetDatepicker(e=""){this.displayDate=this.initialDisplayDate,this.selectedDateRange=[],this.value=e,this.view="days";const t=await this.datepickerInputAsync;t.setInvalid(this.invalid),t.destroyInputMask(),await t.applyInputMask(),this._mixinResetValidity(t),this.isValueEmpty()&&this._handleEmptyInput()}_manageInternalsBadInput(){this._mixinSetValidity({badInput:!0},"Invalid date input",this.datepickerInput)}_manageEmptyInput(){this._mixinSetValidity({valueMissing:!0},"Please fill in this field",this.datepickerInput)}_manageInternalsValid(){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||(this._mixinSetValidity({}),this.invalid=this.datepickerInput.invalid=!1)}async _mixinResetFormControl(){this._resetDatepicker(this.defaultValue)}async _handleInputMaskChange(e){this.value=e.detail,this.isValueEmpty()&&this._resetDatepicker()}render(){return te`
867
867
  <div class="datepicker-container m-width-160">
868
868
  <sgds-datepicker-input
869
869
  .value=${ia(this.value)}
@@ -927,7 +927,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
927
927
  ></sgds-datepicker-calendar>
928
928
  </div>
929
929
  </div>
930
- `}}ho.styles=[...Vi.styles,Pi,co],ho.dependencies={"sgds-datepicker-input":lo,"sgds-datepicker-calendar":eo,"sgds-datepicker-header":so,"sgds-button":Yi,"sgds-icon-button":Pa},t([ze({type:Boolean,reflect:!0})],ho.prototype,"required",void 0),t([ze({reflect:!0})],ho.prototype,"name",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"noValidate",void 0),t([ze({type:String,reflect:!0})],ho.prototype,"value",void 0),t([ze({type:Array,reflect:!0})],ho.prototype,"initialValue",void 0),t([ze({type:String})],ho.prototype,"minDate",void 0),t([ze({type:String})],ho.prototype,"maxDate",void 0),t([ze({type:String,reflect:!0})],ho.prototype,"mode",void 0),t([ze({type:String,reflect:!0})],ho.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"hasFeedback",void 0),t([ze({reflect:!0})],ho.prototype,"label",void 0),t([ze({reflect:!0})],ho.prototype,"hintText",void 0),t([ze({type:Boolean,reflect:!0,state:!1})],ho.prototype,"noFlip",void 0),t([ze({type:String,reflect:!0,state:!1})],ho.prototype,"drop",void 0),t([ze({attribute:!1})],ho.prototype,"displayDate",void 0),t([da()],ho.prototype,"defaultValue",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"invalid",void 0),t([Pe()],ho.prototype,"view",void 0),t([Pe()],ho.prototype,"selectedDateRange",void 0),t([Pe()],ho.prototype,"focusedDate",void 0),t([Pe()],ho.prototype,"focusedTabIndex",void 0),t([De("sgds-datepicker-calendar")],ho.prototype,"calendar",void 0),t([De("sgds-datepicker-input")],ho.prototype,"datepickerInputAsync",void 0),t([Ae("sgds-datepicker-input")],ho.prototype,"datepickerInput",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],ho.prototype,"_handleValueChange",null);var po=r`:host([bordered][islastchild]) .container:last-child{border-bottom:none}.container{align-items:flex-start;border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs);justify-content:flex-start;padding:var(--sgds-padding-lg) var(--sgds-padding-xl)}.data-container,.label-container{flex:1}.label-container{max-width:var(--sgds-dimension-280)}.label{color:var(--sgds-color-default);font-weight:var(--sgds-font-weight-semibold)}.data,.label{font-size:var(--sgds-font-size-label-md)}.data{color:var(--sgds-color-subtle);font-weight:var(--sgds-font-weight-regular);margin:0}@media (min-width:512px){:host(:not([stacked])) .container{flex-direction:row;gap:var(--sgds-gap-2-xl)}}`;let uo=0;class go extends Oe{constructor(){super(...arguments),this.attrId=++uo,this.componentId=`sgds-description-list-${this.attrId}`,this.stacked=!1,this.bordered=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","listitem")}render(){return te`
930
+ `}}ho.styles=[...Vi.styles,Pi,co],ho.dependencies={"sgds-datepicker-input":lo,"sgds-datepicker-calendar":eo,"sgds-datepicker-header":so,"sgds-button":Yi,"sgds-icon-button":Pa},t([ze({type:Boolean,reflect:!0})],ho.prototype,"required",void 0),t([ze({reflect:!0})],ho.prototype,"name",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"noValidate",void 0),t([ze({type:String,reflect:!0})],ho.prototype,"value",void 0),t([ze({type:Array,reflect:!0})],ho.prototype,"initialValue",void 0),t([ze({type:String})],ho.prototype,"minDate",void 0),t([ze({type:String})],ho.prototype,"maxDate",void 0),t([ze({type:String,reflect:!0})],ho.prototype,"mode",void 0),t([ze({type:String,reflect:!0})],ho.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"hasFeedback",void 0),t([ze({reflect:!0})],ho.prototype,"label",void 0),t([ze({reflect:!0})],ho.prototype,"hintText",void 0),t([ze({type:Boolean,reflect:!0,state:!1})],ho.prototype,"noFlip",void 0),t([ze({type:String,reflect:!0,state:!1})],ho.prototype,"drop",void 0),t([ze({attribute:!1})],ho.prototype,"displayDate",void 0),t([da()],ho.prototype,"defaultValue",void 0),t([ze({type:Boolean,reflect:!0})],ho.prototype,"invalid",void 0),t([Pe()],ho.prototype,"view",void 0),t([Pe()],ho.prototype,"selectedDateRange",void 0),t([Pe()],ho.prototype,"focusedDate",void 0),t([Pe()],ho.prototype,"focusedTabIndex",void 0),t([Ie("sgds-datepicker-calendar")],ho.prototype,"calendar",void 0),t([Ie("sgds-datepicker-input")],ho.prototype,"datepickerInputAsync",void 0),t([De("sgds-datepicker-input")],ho.prototype,"datepickerInput",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],ho.prototype,"_handleValueChange",null);var po=r`:host([bordered][islastchild]) .container:last-child{border-bottom:none}.container{align-items:flex-start;border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs);justify-content:flex-start;padding:var(--sgds-padding-lg) var(--sgds-padding-xl)}.data-container,.label-container{flex:1}.label-container{max-width:var(--sgds-dimension-280)}.label{color:var(--sgds-color-default);font-weight:var(--sgds-font-weight-semibold)}.data,.label{font-size:var(--sgds-font-size-label-md)}.data{color:var(--sgds-color-subtle);font-weight:var(--sgds-font-weight-regular);margin:0}@media (min-width:512px){:host(:not([stacked])) .container{flex-direction:row;gap:var(--sgds-gap-2-xl)}}`;let uo=0;class go extends Oe{constructor(){super(...arguments),this.attrId=++uo,this.componentId=`sgds-description-list-${this.attrId}`,this.stacked=!1,this.bordered=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","listitem")}render(){return te`
931
931
  <div class="container">
932
932
  <div class="label-container">
933
933
  <span class="label">
@@ -986,7 +986,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
986
986
  </div>
987
987
  </div>
988
988
  </div>
989
- `}}ko.styles=[...Oe.styles,xo],ko.dependencies={"sgds-close-button":ft},t([Ae(".drawer")],ko.prototype,"drawer",void 0),t([Ae(".drawer-panel")],ko.prototype,"panel",void 0),t([Ae(".drawer-overlay")],ko.prototype,"overlay",void 0),t([ze({type:Boolean,reflect:!0})],ko.prototype,"open",void 0),t([ze({type:String,reflect:!0})],ko.prototype,"size",void 0),t([ze({type:String,reflect:!0})],ko.prototype,"placement",void 0),t([ze({type:String})],ko.prototype,"ariaLabel",void 0),t([ze({type:Boolean,reflect:!0})],ko.prototype,"contained",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],ko.prototype,"handleOpenChange",null),t([nt("contained",{waitUntilFirstUpdate:!0})],ko.prototype,"handleNoModalChange",null),at("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}}),at("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),at("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}}),at("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),at("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),at("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),at("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Co=r`.file-upload-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.file-upload-list{display:flex;flex-direction:column;gap:var(--sgds-form-gap-xl);list-style-type:none;margin-top:0}.file-upload-list.has-files{margin-top:var(--sgds-margin-xl)}.filesize{color:var(--sgds-form-color-subtle)}@keyframes fileUploadEnter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes fileUploadExit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-8px)}}.file-upload-list-item-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md);max-height:500px;overflow:hidden;transition:max-height var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard),opacity var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.file-upload-list-item-container.file-upload-exit{max-height:0;opacity:0}.file-upload-list-item{align-items:center;animation:fileUploadEnter var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter);background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-lg);padding:var(--sgds-form-padding-y) calc(var(--sgds-form-padding-x) + var(--sgds-padding-2-xl)) var(--sgds-form-padding-y) var(--sgds-form-padding-x);position:relative;transition:transform var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.file-upload-list-item.file-upload-error{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.file-upload-list-item.file-upload-exit{animation:fileUploadExit var(--sgds-motion-duration-standard) var(--sgds-motion-easing-exit)}.file-upload-list-item span:not(:first-of-type){cursor:pointer}.file-upload-item-error{align-items:flex-start;display:flex;gap:var(--sgds-form-gap-lg)}.file-upload-item-error sgds-icon{color:var(--sgds-color-muted);flex-shrink:0;margin-top:2px}.file-upload-item-error-message{color:var(--sgds-form-danger-color-default);font-size:var(--sgds-font-size-label-sm,);line-height:var(--sgds-line-height-2-xs)}ul{margin:0;padding:0}input{display:none}sgds-button{cursor:pointer;width:fit-content}sgds-close-button{position:absolute;right:8px;top:8px}sgds-icon.valid{color:var(--sgds-form-success-color-default)}sgds-icon.invalid{color:var(--sgds-color-muted)}.drag-drop-zone{align-items:center;background-color:var(--sgds-surface-raised);border:var(--sgds-border-width-1) dashed var(--sgds-border-color-default);border-radius:var(--sgds-border-radius-md);display:flex;flex-direction:column;gap:var(--sgds-gap-md);justify-content:center;padding:var(--sgds-padding-2-xl)}.drag-drop-text{font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.drag-drop-zone:focus,.drag-drop-zone:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}:host([disabled]) .file-upload-container>:not(sgds-button):not(.invalid-feedback-container){opacity:var(--sgds-opacity-50)}:host([disabled]){cursor:not-allowed;pointer-events:none}:host([disabled]) .drag-drop-zone:focus,:host([disabled]) .drag-drop-zone:focus-visible{outline:none}:host([invalid]:not([disabled])) .drag-drop-zone{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}:host([invalid]:not([disabled])) .drag-drop-zone:focus,:host([invalid]:not([disabled])) .drag-drop-zone:focus-visible{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}:host(:not([disabled]):not([invalid])) .drag-drop-zone:hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}`;class $o extends(ha(la)){constructor(){super(...arguments),this.multiple=!1,this.accept="",this.hasFeedback=!1,this.required=!1,this.variant="default",this.ariaLabel="Choose files",this.noValidate=!1,this.selectedFiles=[],this.exitingFile=null,this.fileMetadata=new Map,this._isTouched=!1,this._isProgrammaticChange=!1,this.inputRef=jt(),this._dragZoneRef=jt(),this._dragCounter=0,this._isDialogOpen=!1}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}get files(){return this.selectedFiles}setFileUploadState(e,t,s){const i=this.selectedFiles[e];i&&(this.fileMetadata.set(i,{uploading:"loading"===t,error:s}),this.requestUpdate())}_setFileList(e,t=0,s){if(this.emit("sgds-change",{detail:e}),this.emit("sgds-files-selected",{detail:e}),e.length>t){const s=Array.from(e).slice(t),i=new DataTransfer;s.forEach(e=>i.items.add(e)),this.emit("sgds-add-files",{detail:i.files})}else if(e.length===t&&t>0&&!s){const t=new DataTransfer;Array.from(e).forEach(e=>t.items.add(e)),this.emit("sgds-add-files",{detail:t.files})}e.length<t&&s&&this.emit("sgds-remove-file",{detail:{file:s,files:e}})}_handleClick(e){if(e.preventDefault(),!this.disabled){this._isDialogOpen=!0;const e=this.inputRef.value;null==e||e.click()}}_handleCancel(){this._isDialogOpen=!1,this._isTouched=!0,this._mixinShouldSkipSgdsValidation()||this.setInvalid(!this._mixinCheckValidity())}_handleChange(e){this._isDialogOpen=!1;const t=e.target,s=t.files,i=this.selectedFiles.length,a=0===s.length&&!this._isProgrammaticChange,o=s.length>0&&!this._isProgrammaticChange,n=o&&this.multiple&&this.selectedFiles.length>0;a&&this.selectedFiles.length>0?this._restoreNativeInput(t):n?this._appendFiles(t,s):s.length>0&&(this.selectedFiles=Array.from(s)),o&&this._setFileList(t.files,i),a&&!this._isTouched||super._mixinHandleChange(e)}_restoreNativeInput(e){const t=new DataTransfer;this.selectedFiles.forEach(e=>t.items.add(e)),e.files=t.files}_appendFiles(e,t){const s=[...this.selectedFiles,...Array.from(t)];this.selectedFiles=s;const i=new DataTransfer;s.forEach(e=>i.items.add(e)),e.files=i.files}_removeFileHandler(e){const t=this.selectedFiles[e];this.exitingFile=t,this.requestUpdate(),setTimeout(()=>{const s=this.inputRef.value;if(!s)return;const i=this.selectedFiles.length,a=new DataTransfer;this.selectedFiles.forEach((t,s)=>{e!==s&&a.items.add(t)}),this._isProgrammaticChange=!0,s.files=a.files,this._setFileList(a.files,i,t),this.selectedFiles=Array.from(a.files),this.exitingFile=null,this.requestUpdate(),s.dispatchEvent(new Event("change",{bubbles:!0})),this._isProgrammaticChange=!1},300)}_clearAllFiles(){const e=this.inputRef.value,t=this.selectedFiles.length,s=new DataTransfer;e&&(e.files=s.files),this._setFileList(s.files,t),this.selectedFiles=Array.from(s.files)}_mixinResetFormControl(){this._clearAllFiles(),this._mixinResetValidity(this.input)}_handleDisabledChange(){this.setInvalid(!1)}_handleBlur(){const e=this.emit("sgds-blur",{cancelable:!0});this._mixinShouldSkipSgdsValidation()||e.defaultPrevented||this._isDialogOpen||(this.setInvalid(!this._mixinCheckValidity()),this._isTouched=!0)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&this.setInvalid(!this._mixinCheckValidity())}_renderLabel(){const e=te` <label id=${this._labelId} class="form-label"> ${this.label} </label> `;return this.label&&e}_renderHintText(){const e=te` <div id="${this._controlId}Help" class="form-text">${this.hintText}</div> `;return this.hintText&&e}_renderFeedback(){return te`
989
+ `}}ko.styles=[...Oe.styles,xo],ko.dependencies={"sgds-close-button":ft},t([De(".drawer")],ko.prototype,"drawer",void 0),t([De(".drawer-panel")],ko.prototype,"panel",void 0),t([De(".drawer-overlay")],ko.prototype,"overlay",void 0),t([ze({type:Boolean,reflect:!0})],ko.prototype,"open",void 0),t([ze({type:String,reflect:!0})],ko.prototype,"size",void 0),t([ze({type:String,reflect:!0})],ko.prototype,"placement",void 0),t([ze({type:String})],ko.prototype,"ariaLabel",void 0),t([ze({type:Boolean,reflect:!0})],ko.prototype,"contained",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],ko.prototype,"handleOpenChange",null),t([nt("contained",{waitUntilFirstUpdate:!0})],ko.prototype,"handleNoModalChange",null),at("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}}),at("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),at("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}}),at("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),at("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),at("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),at("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),at("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Co=r`.file-upload-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.file-upload-list{display:flex;flex-direction:column;gap:var(--sgds-form-gap-xl);list-style-type:none;margin-top:0}.file-upload-list.has-files{margin-top:var(--sgds-margin-xl)}.filesize{color:var(--sgds-form-color-subtle)}@keyframes fileUploadEnter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes fileUploadExit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-8px)}}.file-upload-list-item-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md);max-height:500px;overflow:hidden;transition:max-height var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard),opacity var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.file-upload-list-item-container.file-upload-exit{max-height:0;opacity:0}.file-upload-list-item{align-items:center;animation:fileUploadEnter var(--sgds-motion-duration-standard) var(--sgds-motion-easing-enter);background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-lg);padding:var(--sgds-form-padding-y) calc(var(--sgds-form-padding-x) + var(--sgds-padding-2-xl)) var(--sgds-form-padding-y) var(--sgds-form-padding-x);position:relative;transition:transform var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.file-upload-list-item.file-upload-error{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.file-upload-list-item.file-upload-exit{animation:fileUploadExit var(--sgds-motion-duration-standard) var(--sgds-motion-easing-exit)}.file-upload-list-item span:not(:first-of-type){cursor:pointer}.file-upload-item-error{align-items:flex-start;display:flex;gap:var(--sgds-form-gap-lg)}.file-upload-item-error sgds-icon{color:var(--sgds-color-muted);flex-shrink:0;margin-top:2px}.file-upload-item-error-message{color:var(--sgds-form-danger-color-default);font-size:var(--sgds-font-size-label-sm,);line-height:var(--sgds-line-height-2-xs)}ul{margin:0;padding:0}input{display:none}sgds-button{cursor:pointer;width:fit-content}sgds-close-button{position:absolute;right:8px;top:8px}sgds-icon.valid{color:var(--sgds-form-success-color-default)}sgds-icon.invalid{color:var(--sgds-color-muted)}.drag-drop-zone{align-items:center;background-color:var(--sgds-surface-raised);border:var(--sgds-border-width-1) dashed var(--sgds-border-color-default);border-radius:var(--sgds-border-radius-md);display:flex;flex-direction:column;gap:var(--sgds-gap-md);justify-content:center;padding:var(--sgds-padding-2-xl)}.drag-drop-text{font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.drag-drop-zone:focus,.drag-drop-zone:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}:host([disabled]) .file-upload-container>:not(sgds-button):not(.invalid-feedback-container){opacity:var(--sgds-opacity-50)}:host([disabled]){cursor:not-allowed;pointer-events:none}:host([disabled]) .drag-drop-zone:focus,:host([disabled]) .drag-drop-zone:focus-visible{outline:none}:host([invalid]:not([disabled])) .drag-drop-zone{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}:host([invalid]:not([disabled])) .drag-drop-zone:focus,:host([invalid]:not([disabled])) .drag-drop-zone:focus-visible{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}:host(:not([disabled]):not([invalid])) .drag-drop-zone:hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}`;class $o extends(ha(la)){constructor(){super(...arguments),this.multiple=!1,this.accept="",this.hasFeedback=!1,this.required=!1,this.variant="default",this.ariaLabel="Choose files",this.noValidate=!1,this.selectedFiles=[],this.exitingFile=null,this.fileMetadata=new Map,this._isTouched=!1,this._isProgrammaticChange=!1,this.inputRef=jt(),this._dragZoneRef=jt(),this._dragCounter=0,this._isDialogOpen=!1}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}get files(){return this.selectedFiles}setFileUploadState(e,t,s){const i=this.selectedFiles[e];i&&(this.fileMetadata.set(i,{uploading:"loading"===t,error:s}),this.requestUpdate())}_setFileList(e,t=0,s){if(this.emit("sgds-change",{detail:e}),this.emit("sgds-files-selected",{detail:e}),e.length>t){const s=Array.from(e).slice(t),i=new DataTransfer;s.forEach(e=>i.items.add(e)),this.emit("sgds-add-files",{detail:i.files})}else if(e.length===t&&t>0&&!s){const t=new DataTransfer;Array.from(e).forEach(e=>t.items.add(e)),this.emit("sgds-add-files",{detail:t.files})}e.length<t&&s&&this.emit("sgds-remove-file",{detail:{file:s,files:e}})}_handleClick(e){if(e.preventDefault(),!this.disabled){this._isDialogOpen=!0;const e=this.inputRef.value;null==e||e.click()}}_handleCancel(){this._isDialogOpen=!1,this._isTouched=!0,this._mixinShouldSkipSgdsValidation()||this.setInvalid(!this._mixinCheckValidity())}_handleChange(e){this._isDialogOpen=!1;const t=e.target,s=t.files,i=this.selectedFiles.length,a=0===s.length&&!this._isProgrammaticChange,o=s.length>0&&!this._isProgrammaticChange,n=o&&this.multiple&&this.selectedFiles.length>0;a&&this.selectedFiles.length>0?this._restoreNativeInput(t):n?this._appendFiles(t,s):s.length>0&&(this.selectedFiles=Array.from(s)),o&&this._setFileList(t.files,i),a&&!this._isTouched||super._mixinHandleChange(e)}_restoreNativeInput(e){const t=new DataTransfer;this.selectedFiles.forEach(e=>t.items.add(e)),e.files=t.files}_appendFiles(e,t){const s=[...this.selectedFiles,...Array.from(t)];this.selectedFiles=s;const i=new DataTransfer;s.forEach(e=>i.items.add(e)),e.files=i.files}_removeFileHandler(e){const t=this.selectedFiles[e];this.exitingFile=t,this.requestUpdate(),setTimeout(()=>{const s=this.inputRef.value;if(!s)return;const i=this.selectedFiles.length,a=new DataTransfer;this.selectedFiles.forEach((t,s)=>{e!==s&&a.items.add(t)}),this._isProgrammaticChange=!0,s.files=a.files,this._setFileList(a.files,i,t),this.selectedFiles=Array.from(a.files),this.exitingFile=null,this.requestUpdate(),s.dispatchEvent(new Event("change",{bubbles:!0})),this._isProgrammaticChange=!1},300)}_clearAllFiles(){const e=this.inputRef.value,t=this.selectedFiles.length,s=new DataTransfer;e&&(e.files=s.files),this._setFileList(s.files,t),this.selectedFiles=Array.from(s.files)}_mixinResetFormControl(){this._clearAllFiles(),this._mixinResetValidity(this.input)}_handleDisabledChange(){this.setInvalid(!1)}_handleBlur(){const e=this.emit("sgds-blur",{cancelable:!0});this._mixinShouldSkipSgdsValidation()||e.defaultPrevented||this._isDialogOpen||(this.setInvalid(!this._mixinCheckValidity()),this._isTouched=!0)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&this.setInvalid(!this._mixinCheckValidity())}_renderLabel(){const e=te` <label id=${this._labelId} class="form-label"> ${this.label} </label> `;return this.label&&e}_renderHintText(){const e=te` <div id="${this._controlId}Help" class="form-text">${this.hintText}</div> `;return this.hintText&&e}_renderFeedback(){return te`
990
990
  <div class="invalid-feedback-container">
991
991
  <sgds-icon name="exclamation-circle-fill" size="md"></sgds-icon>
992
992
  <div id="${this._controlId}-invalid" class="invalid-feedback">
@@ -1153,11 +1153,11 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
1153
1153
  </slot>
1154
1154
  </div>
1155
1155
  </${e}>
1156
- `}}Lo.styles=[...ea.styles,Po],t([Be({slot:"icon",flatten:!0})],Lo.prototype,"_iconNode",void 0),t([Be({slot:"upper",flatten:!0})],Lo.prototype,"_upperNode",void 0),t([Ee({slot:"footer"})],Lo.prototype,"footerNode",void 0),t([Ee({slot:"link"})],Lo.prototype,"linkNode",void 0),t([ze({type:Boolean,reflect:!0})],Lo.prototype,"noPadding",void 0);var Io=r`slot{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot::slotted(*){align-items:flex-start;display:flex;gap:var(--sgds-gap-xs)}.sm{font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.lg{font-size:var(--sgds-font-size-label-lg);line-height:var(--sgds-line-height-md)}`;class Ao extends Oe{constructor(){super(...arguments),this.role="list",this.size="md"}render(){return te`
1156
+ `}}Lo.styles=[...ea.styles,Po],t([Be({slot:"icon",flatten:!0})],Lo.prototype,"_iconNode",void 0),t([Be({slot:"upper",flatten:!0})],Lo.prototype,"_upperNode",void 0),t([Ee({slot:"footer"})],Lo.prototype,"footerNode",void 0),t([Ee({slot:"link"})],Lo.prototype,"linkNode",void 0),t([ze({type:Boolean,reflect:!0})],Lo.prototype,"noPadding",void 0);var Ao=r`slot{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot::slotted(*){align-items:flex-start;display:flex;gap:var(--sgds-gap-xs)}.sm{font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.lg{font-size:var(--sgds-font-size-label-lg);line-height:var(--sgds-line-height-md)}`;class Do extends Oe{constructor(){super(...arguments),this.role="list",this.size="md"}render(){return te`
1157
1157
  <div class=${Ke({[this.size]:this.size})}>
1158
1158
  <slot></slot>
1159
1159
  </div>
1160
- `}}Ao.styles=[...Oe.styles,Io],t([ze({type:String,reflect:!0})],Ao.prototype,"role",void 0),t([ze({type:String,reflect:!0})],Ao.prototype,"size",void 0);var Do=r`:host([noPadding]) .card{background-color:inherit;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=image-badge]::slotted(*){left:20px;position:absolute;top:20px}slot[name=image-action]::slotted(*){position:absolute;right:20px;top:20px}`;class Eo extends ea{constructor(){super(...arguments),this.noPadding=!1,this.imagePosition="before",this.imageAdjustment="default"}get linkSlotItems(){if(!this.linkNode||0===this.linkNode.length)return null;const e=this.linkNode[0];return e.querySelector("a")||e}get footerSlotItems(){if(!this.footerNode||0===this.footerNode.length)return null;const e=this.footerNode[0];return e.querySelector("a")||e}firstUpdated(e){var t,s;if(super.firstUpdated(e),0===this._imageNode.length){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".card-image"),i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelector(".card-body");e&&(e.style.display="none"),i&&this.noPadding&&(i.style.padding="0px")}if(this.stretchedLink){const e=this.footerSlotItems,t=this.linkSlotItems;this._forwardAnchorAttributes((null==e?void 0:e.href)?e:t)}}handleImgSlotChange(e){if(e.target.assignedNodes({flatten:!0}).length>1)return console.error("Multiple elements passed into SgdsCard's image slot")}render(){const e=this.stretchedLink?ht`a`:ht`div`,t=!this.stretchedLink||this.disabled?-1:0;return ut`
1160
+ `}}Do.styles=[...Oe.styles,Ao],t([ze({type:String,reflect:!0})],Do.prototype,"role",void 0),t([ze({type:String,reflect:!0})],Do.prototype,"size",void 0);var Io=r`:host([noPadding]) .card{background-color:inherit;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=image-badge]::slotted(*){left:20px;position:absolute;top:20px}slot[name=image-action]::slotted(*){position:absolute;right:20px;top:20px}`;class Eo extends ea{constructor(){super(...arguments),this.noPadding=!1,this.imagePosition="before",this.imageAdjustment="default"}get linkSlotItems(){if(!this.linkNode||0===this.linkNode.length)return null;const e=this.linkNode[0];return e.querySelector("a")||e}get footerSlotItems(){if(!this.footerNode||0===this.footerNode.length)return null;const e=this.footerNode[0];return e.querySelector("a")||e}firstUpdated(e){var t,s;if(super.firstUpdated(e),0===this._imageNode.length){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".card-image"),i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelector(".card-body");e&&(e.style.display="none"),i&&this.noPadding&&(i.style.padding="0px")}if(this.stretchedLink){const e=this.footerSlotItems,t=this.linkSlotItems;this._forwardAnchorAttributes((null==e?void 0:e.href)?e:t)}}handleImgSlotChange(e){if(e.target.assignedNodes({flatten:!0}).length>1)return console.error("Multiple elements passed into SgdsCard's image slot")}render(){const e=this.stretchedLink?ht`a`:ht`div`,t=!this.stretchedLink||this.disabled?-1:0;return ut`
1161
1161
  <${e}
1162
1162
  class="card ${Ke({disabled:this.disabled})}"
1163
1163
  tabindex=${t}
@@ -1184,7 +1184,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
1184
1184
  </slot>
1185
1185
  </div>
1186
1186
  </${e}>
1187
- `}}Eo.styles=[...ea.styles,Do],t([Be({slot:"image",flatten:!0})],Eo.prototype,"_imageNode",void 0),t([Ee({slot:"footer"})],Eo.prototype,"footerNode",void 0),t([Ee({slot:"link"})],Eo.prototype,"linkNode",void 0),t([ze({type:Boolean,reflect:!0})],Eo.prototype,"noPadding",void 0),t([ze({type:String,reflect:!0})],Eo.prototype,"imagePosition",void 0),t([ze({type:String,reflect:!0})],Eo.prototype,"imageAdjustment",void 0);
1187
+ `}}Eo.styles=[...ea.styles,Io],t([Be({slot:"image",flatten:!0})],Eo.prototype,"_imageNode",void 0),t([Ee({slot:"footer"})],Eo.prototype,"footerNode",void 0),t([Ee({slot:"link"})],Eo.prototype,"linkNode",void 0),t([ze({type:Boolean,reflect:!0})],Eo.prototype,"noPadding",void 0),t([ze({type:String,reflect:!0})],Eo.prototype,"imagePosition",void 0),t([ze({type:String,reflect:!0})],Eo.prototype,"imageAdjustment",void 0);
1188
1188
  /**
1189
1189
  * @license
1190
1190
  * Copyright 2021 Google LLC
@@ -1253,7 +1253,7 @@ class Ho{constructor(e,t,s,i){if(this.subscribe=!1,this.provided=!1,this.value=v
1253
1253
  ></sgds-icon-button>
1254
1254
  </div>
1255
1255
  </nav>
1256
- `}_expandClass(){switch(this.expand){case"always":return"navbar-expand";case"never":break;default:return`navbar-expand-${this.expand}`}}}Go.styles=[...Oe.styles,Wo],Go.dependencies={"sgds-icon-button":Pa},t([Ro({context:qo}),Pe()],Go.prototype,"_breakpointReached",void 0),t([Ro({context:Yo}),Pe()],Go.prototype,"expanded",void 0),t([Pe()],Go.prototype,"expanding",void 0),t([Ae("nav")],Go.prototype,"nav",void 0),t([Ae(".navbar")],Go.prototype,"navbar",void 0),t([Ae(".navbar-toggler")],Go.prototype,"header",void 0),t([Ae(".navbar-body")],Go.prototype,"body",void 0),t([Ae(".navbar-nav-scroll")],Go.prototype,"navScroll",void 0),t([Ae("slot[name='non-collapsible']")],Go.prototype,"nonCollapsibleSlot",void 0),t([ze({type:Boolean})],Go.prototype,"hasNonCollapsibleSlot",void 0),t([ze({type:String})],Go.prototype,"brandHref",void 0),t([ze({type:String})],Go.prototype,"expand",void 0),t([ze({type:Boolean,reflect:!0})],Go.prototype,"fluid",void 0),t([Pe()],Go.prototype,"breakpointReached",void 0),t([Ee()],Go.prototype,"defaultNodes",void 0),t([Ee({slot:"end"})],Go.prototype,"endNodes",void 0),t([nt("expanding",{waitUntilFirstUpdate:!0})],Go.prototype,"handleOpenChange",null),at("mainnav.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:200,easing:"ease-in-out"}}),at("mainnav.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:200,easing:"ease-in-out"}});var Jo=r`:host([expand=always]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media (min-width:512px){:host([expand=sm]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:768px){:host([expand=md]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:1024px){:host(:not([expand])) .nav-link,:host([expand=lg]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:1280px){:host([expand=xl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:1440px){:host([expand=xxl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}.nav-link{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-2-xs,20px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);text-decoration:none}.nav-link.show,.nav-link:not(.disabled).active{border-color:var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):hover{color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):focus-visible{color:var(--sgds-primary-color-default);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.nav-link.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.dropdown-items{background-color:var(--sgds-surface-default);height:100%;left:100%;overflow-y:auto;padding:var(--sgds-padding-md) 0;position:absolute;top:0;width:100%}.dropdown-items a{align-items:center;color:var(--sgds-color-default);cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-2-xs,20px);margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);text-decoration:none}.dropdown-items a:hover{color:var(--sgds-primary-color-default)}.dropdown-items a:focus-visible{color:var(--sgds-primary-color-default);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus);outline-offset:-5px}slot[name=toggler]::slotted(*){flex:1}sgds-dropdown{display:block;height:100%}@media screen and (min-width:1024px){.dropdown-items a,.nav-link{padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;const Xo="Enter";class Qo extends Oe{constructor(){super(...arguments),this._breakpointReached=!0,this.togglerId=Zi("dropdown","button"),this.active=!1,this.disabled=!1}get defaultSlotItems(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}updated(){this._breakpointReached&&(this._copyTextToMenu(),this._resetDropdownMenu(),this._hideDropdownMenuItems())}_handleSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(e=>{var t;e.addEventListener("keydown",this._handleKeyboardMenuItemsEvent.bind(this));const s=e.shadowRoot.querySelector(".dropdown-item");s.classList.add("mainnav-dropdown-link");const i=(null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector("a"))||e.querySelector("a");i.tabIndex=-1,s.classList.contains("disabled")?(i.setAttribute("href","javascript:void(0)"),i.setAttribute("tabindex","-1")):i.addEventListener("click",e=>{e.target.closest("sgds-mainnav").hide()})})}_handleDesktopSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.classList.remove("mainnav-dropdown-link");e.shadowRoot.querySelector(".dropdown-item slot").assignedElements({flatten:!0}).forEach(e=>{t.classList.contains("disabled")&&(e.setAttribute("href","javascript:void(0)"),e.setAttribute("tabindex","-1"))})})}_handleKeyboardMenuItemsEvent(e){if(!this._breakpointReached)return;const t=this.defaultSlotItems.filter(e=>!e.hasAttribute("disabled")),s=[this.menuHeaderButton,...t],i=s.length;if(0===i)return;const a=s[0],o=s[i-1].shadowRoot.querySelector(".dropdown-item");let n=document.activeElement;if(n===this&&(n=this.shadowRoot.activeElement),"Tab"===e.key)if(e.shiftKey)n===a&&(e.preventDefault(),setTimeout(()=>{o.focus()},0));else{const t=n.shadowRoot?n.shadowRoot.querySelector(".dropdown-item"):null;t&&t===o&&(e.preventDefault(),a.focus())}}_copyTextToMenu(){this.menuHeaderText.innerHTML=this.togglerNodes[0].innerHTML}_hideDropdownMenuItems(){this.dropdownItems.style.display="none",this.dropdownItems.setAttribute("aria-hidden","true")}_resetDropdownMenu(){const e=this._getNavbarBody();return e?new Promise(t=>{const s=i=>{"transform"===i.propertyName&&(e.removeEventListener("transitionend",s),t())};getComputedStyle(e).transitionProperty.includes("transform")?(e.addEventListener("transitionend",s),e.style.removeProperty("transform")):(e.style.removeProperty("transform"),t())}):Promise.resolve()}_handleKeyboardOpen(e){this.disabled||e.key!==Xo&&" "!==e.key||(e.preventDefault(),this._openMenu())}_getNavbarBody(){const e=document.querySelector("sgds-mainnav");if(!(null==e?void 0:e.shadowRoot))return void console.warn("sgds-mainnav or its shadowRoot not found");const t=e.shadowRoot.querySelector(".navbar-body");if(t)return t;console.warn(".navbar-body not found in sgds-mainnav")}_openMenu(){this._getNavbarBody().style.transform="translateX(-100%)",this.dropdownItems.style.removeProperty("display"),this.dropdownItems.setAttribute("aria-hidden","false"),setTimeout(()=>{this.menuHeaderButton.focus()},50)}_handleHeaderKeyboardEvent(e){switch(e.key){case"Tab":this._handleKeyboardMenuItemsEvent(e);break;case Xo:case" ":e.preventDefault(),this._closeMenu()}}async _closeMenu(){await this._resetDropdownMenu(),this._hideDropdownMenuItems(),this.navLink.focus()}render(){const e=te`
1256
+ `}_expandClass(){switch(this.expand){case"always":return"navbar-expand";case"never":break;default:return`navbar-expand-${this.expand}`}}}Go.styles=[...Oe.styles,Wo],Go.dependencies={"sgds-icon-button":Pa},t([Ro({context:qo}),Pe()],Go.prototype,"_breakpointReached",void 0),t([Ro({context:Yo}),Pe()],Go.prototype,"expanded",void 0),t([Pe()],Go.prototype,"expanding",void 0),t([De("nav")],Go.prototype,"nav",void 0),t([De(".navbar")],Go.prototype,"navbar",void 0),t([De(".navbar-toggler")],Go.prototype,"header",void 0),t([De(".navbar-body")],Go.prototype,"body",void 0),t([De(".navbar-nav-scroll")],Go.prototype,"navScroll",void 0),t([De("slot[name='non-collapsible']")],Go.prototype,"nonCollapsibleSlot",void 0),t([ze({type:Boolean})],Go.prototype,"hasNonCollapsibleSlot",void 0),t([ze({type:String})],Go.prototype,"brandHref",void 0),t([ze({type:String})],Go.prototype,"expand",void 0),t([ze({type:Boolean,reflect:!0})],Go.prototype,"fluid",void 0),t([Pe()],Go.prototype,"breakpointReached",void 0),t([Ee()],Go.prototype,"defaultNodes",void 0),t([Ee({slot:"end"})],Go.prototype,"endNodes",void 0),t([nt("expanding",{waitUntilFirstUpdate:!0})],Go.prototype,"handleOpenChange",null),at("mainnav.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:200,easing:"ease-in-out"}}),at("mainnav.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:200,easing:"ease-in-out"}});var Jo=r`:host([expand=always]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media (min-width:512px){:host([expand=sm]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:768px){:host([expand=md]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:1024px){:host(:not([expand])) .nav-link,:host([expand=lg]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:1280px){:host([expand=xl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}@media (min-width:1440px){:host([expand=xxl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}}.nav-link{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-2-xs,20px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);text-decoration:none}.nav-link.show,.nav-link:not(.disabled).active{border-color:var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):hover{color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):focus-visible{color:var(--sgds-primary-color-default);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.nav-link.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.dropdown-items{background-color:var(--sgds-surface-default);height:100%;left:100%;overflow-y:auto;padding:var(--sgds-padding-md) 0;position:absolute;top:0;width:100%}.dropdown-items a{align-items:center;color:var(--sgds-color-default);cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-2-xs,20px);margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);text-decoration:none}.dropdown-items a:hover{color:var(--sgds-primary-color-default)}.dropdown-items a:focus-visible{color:var(--sgds-primary-color-default);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus);outline-offset:-5px}slot[name=toggler]::slotted(*){flex:1}sgds-dropdown{display:block;height:100%}@media screen and (min-width:1024px){.dropdown-items a,.nav-link{padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;const Xo="Enter";class Qo extends Oe{constructor(){super(...arguments),this._breakpointReached=!0,this.togglerId=Zi("dropdown","button"),this.active=!1,this.disabled=!1}get defaultSlotItems(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}updated(){this._breakpointReached&&(this._copyTextToMenu(),this._resetDropdownMenu(),this._hideDropdownMenuItems())}_handleSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(e=>{var t;e.addEventListener("keydown",this._handleKeyboardMenuItemsEvent.bind(this));const s=e.shadowRoot.querySelector(".dropdown-item");s.classList.add("mainnav-dropdown-link");const i=(null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector("a"))||e.querySelector("a");i.tabIndex=-1,s.classList.contains("disabled")?(i.setAttribute("href","javascript:void(0)"),i.setAttribute("tabindex","-1")):i.addEventListener("click",e=>{e.target.closest("sgds-mainnav").hide()})})}_handleDesktopSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.classList.remove("mainnav-dropdown-link");e.shadowRoot.querySelector(".dropdown-item slot").assignedElements({flatten:!0}).forEach(e=>{t.classList.contains("disabled")&&(e.setAttribute("href","javascript:void(0)"),e.setAttribute("tabindex","-1"))})})}_handleKeyboardMenuItemsEvent(e){if(!this._breakpointReached)return;const t=this.defaultSlotItems.filter(e=>!e.hasAttribute("disabled")),s=[this.menuHeaderButton,...t],i=s.length;if(0===i)return;const a=s[0],o=s[i-1].shadowRoot.querySelector(".dropdown-item");let n=document.activeElement;if(n===this&&(n=this.shadowRoot.activeElement),"Tab"===e.key)if(e.shiftKey)n===a&&(e.preventDefault(),setTimeout(()=>{o.focus()},0));else{const t=n.shadowRoot?n.shadowRoot.querySelector(".dropdown-item"):null;t&&t===o&&(e.preventDefault(),a.focus())}}_copyTextToMenu(){this.menuHeaderText.innerHTML=this.togglerNodes[0].innerHTML}_hideDropdownMenuItems(){this.dropdownItems.style.display="none",this.dropdownItems.setAttribute("aria-hidden","true")}_resetDropdownMenu(){const e=this._getNavbarBody();return e?new Promise(t=>{const s=i=>{"transform"===i.propertyName&&(e.removeEventListener("transitionend",s),t())};getComputedStyle(e).transitionProperty.includes("transform")?(e.addEventListener("transitionend",s),e.style.removeProperty("transform")):(e.style.removeProperty("transform"),t())}):Promise.resolve()}_handleKeyboardOpen(e){this.disabled||e.key!==Xo&&" "!==e.key||(e.preventDefault(),this._openMenu())}_getNavbarBody(){const e=document.querySelector("sgds-mainnav");if(!(null==e?void 0:e.shadowRoot))return void console.warn("sgds-mainnav or its shadowRoot not found");const t=e.shadowRoot.querySelector(".navbar-body");if(t)return t;console.warn(".navbar-body not found in sgds-mainnav")}_openMenu(){this._getNavbarBody().style.transform="translateX(-100%)",this.dropdownItems.style.removeProperty("display"),this.dropdownItems.setAttribute("aria-hidden","false"),setTimeout(()=>{this.menuHeaderButton.focus()},50)}_handleHeaderKeyboardEvent(e){switch(e.key){case"Tab":this._handleKeyboardMenuItemsEvent(e);break;case Xo:case" ":e.preventDefault(),this._closeMenu()}}async _closeMenu(){await this._resetDropdownMenu(),this._hideDropdownMenuItems(),this.navLink.focus()}render(){const e=te`
1257
1257
  <a
1258
1258
  class="${Ke({"nav-link":!0,active:this.active,disabled:this.disabled})}"
1259
1259
  aria-disabled=${this.disabled?"true":"false"}
@@ -1290,7 +1290,7 @@ class Ho{constructor(e,t,s,i){if(this.subscribe=!1,this.provided=!1,this.value=v
1290
1290
  <sgds-icon name="chevron-down" size="md"></sgds-icon>
1291
1291
  </a>
1292
1292
  <slot @slotchange=${this._handleDesktopSlotChange}></slot>
1293
- </sgds-dropdown>`;return this._breakpointReached?e:t}}Qo.styles=[...Oe.styles,Li,Pi,Jo],Qo.dependencies={"sgds-dropdown":Ii,"sgds-dropdown-item":Di,"sgds-icon":_t},t([No({context:qo,subscribe:!0}),Pe()],Qo.prototype,"_breakpointReached",void 0),t([No({context:Yo,subscribe:!0}),Pe()],Qo.prototype,"expanded",void 0),t([Ae(".nav-link")],Qo.prototype,"navLink",void 0),t([Ae(".dropdown-items")],Qo.prototype,"dropdownItems",void 0),t([Ae(".dropdown-items a")],Qo.prototype,"menuHeaderButton",void 0),t([Ae(".dropdown-items span")],Qo.prototype,"menuHeaderText",void 0),t([ze({type:Boolean})],Qo.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Qo.prototype,"disabled",void 0),t([ze({type:String})],Qo.prototype,"ariaLabel",void 0),t([Ee({slot:"toggler"})],Qo.prototype,"togglerNodes",void 0),t([Ee()],Qo.prototype,"defaultNodes",void 0);var en=r`:host([expand=always]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media screen and (min-width:512px){:host([expand=sm]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=sm]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:768px){:host([expand=md]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=md]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:1024px){:host([expand=lg]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=lg]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:1280px){:host([expand=xl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:1440px){:host([expand=xxl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xxl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (max-width:511px){:host(:not([disabled])[active][expand=sm]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:767px){:host(:not([disabled])[active][expand=md]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1023px){:host(:not([disabled])[active][expand=lg]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1279px){:host(:not([disabled])[active][expand=xl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1439px){:host(:not([disabled])[active][expand=xxl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}::slotted(*){--sgds-link-color-default:var(--sgds-color-default);--sgds-link-color-emphasis:var(--sgds-color-default);align-items:center;box-sizing:border-box;color:var(--sgds-color-default)!important;cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);height:auto!important;line-height:var(--sgds-line-height-2-xs,20px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);text-decoration:none!important}@media screen and (min-width:1024px){::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}:host(:not([disabled])[active]) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-primary-color-default)!important}:host(:not([disabled]):not([active])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default)!important}:host(:not([disabled])[active]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-primary-color-default)!important}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default)!important}:host(:not([disabled]):not([active])) ::slotted(a:active){color:var(--sgds-color-default)!important}:host(:not([disabled])[active]) ::slotted(a:active){color:var(--sgds-primary-color-default)!important}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-primary-color-default)!important;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-40)}`;class tn extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1}_handleDisabled(){this.setAttribute("aria-disabled",`${this.disabled}`)}_handleSlotChange(e){const t=e.target,s=t.assignedElements({flatten:!0}).filter(e=>"a"===e.tagName.toLowerCase()||"sgds-link"===e.tagName.toLowerCase());if(s.length>1)console.error("More than one anchor tag is added to sgds-mainnav-item");else{if(0===s.length){t.assignedNodes({flatten:!0}).forEach(e=>{if(e.nodeType===Node.TEXT_NODE){const t=document.createElement("a");t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}})}if(1===s.length){const e=s[0];if(this.active&&e.setAttribute("aria-current","true"),this.disabled)return e.setAttribute("href","javascript:void(0)"),void e.setAttribute("tabindex","-1");e.addEventListener("click",e=>{e.target.closest("sgds-mainnav").hide()})}}}render(){return te`<slot @slotchange=${this._handleSlotChange}></slot>`}}tn.styles=[...Oe.styles,en],t([ze({type:Boolean,reflect:!0})],tn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],tn.prototype,"disabled",void 0),t([nt("disabled")],tn.prototype,"_handleDisabled",null);var sn=r`b{font-weight:bolder}[role=button]{cursor:pointer}a{color:#0049dc;text-decoration:none!important}a[target=_blank]:after{height:var(--sgds-icon-size-sm,1rem)!important;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.516 2.933h.017a.4.4 0 1 1 0 .8c-.566 0-.967 0-1.28.026-.31.025-.498.073-.646.149a1.6 1.6 0 0 0-.7.699c-.075.148-.123.336-.148.645-.025.314-.026.714-.026 1.281v2.933c0 .567 0 .968.026 1.282.026.308.073.497.149.645a1.6 1.6 0 0 0 .699.699c.148.075.337.123.645.149.314.025.715.025 1.281.025h2.934c.566 0 .967 0 1.28-.025.31-.026.498-.073.646-.149a1.6 1.6 0 0 0 .7-.7c.075-.147.123-.336.148-.644.025-.314.026-.715.026-1.282a.4.4 0 0 1 .8 0v.018c0 .545 0 .979-.029 1.329-.03.358-.09.663-.233.943a2.4 2.4 0 0 1-1.049 1.049c-.28.142-.585.204-.943.233-.35.028-.784.028-1.329.028H6.516c-.545 0-.979 0-1.329-.028-.358-.03-.664-.09-.943-.233a2.4 2.4 0 0 1-1.05-1.049c-.142-.28-.203-.585-.232-.943-.029-.35-.029-.784-.029-1.33V6.517c0-.546 0-.98.029-1.33.03-.357.09-.663.233-.942a2.4 2.4 0 0 1 1.049-1.05c.28-.142.585-.203.943-.232.35-.029.784-.029 1.329-.029Zm1.75.4c0-.22.18-.4.4-.4h4c.222 0 .4.18.4.4v4a.4.4 0 0 1-.8 0V4.3L8.284 8.283a.4.4 0 0 1-.566-.566l3.984-3.984H8.667a.4.4 0 0 1-.4-.4Z' fill='%230269D0'/%3E%3C/svg%3E")!important;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.516 2.933h.017a.4.4 0 1 1 0 .8c-.566 0-.967 0-1.28.026-.31.025-.498.073-.646.149a1.6 1.6 0 0 0-.7.699c-.075.148-.123.336-.148.645-.025.314-.026.714-.026 1.281v2.933c0 .567 0 .968.026 1.282.026.308.073.497.149.645a1.6 1.6 0 0 0 .699.699c.148.075.337.123.645.149.314.025.715.025 1.281.025h2.934c.566 0 .967 0 1.28-.025.31-.026.498-.073.646-.149a1.6 1.6 0 0 0 .7-.7c.075-.147.123-.336.148-.644.025-.314.026-.715.026-1.282a.4.4 0 0 1 .8 0v.018c0 .545 0 .979-.029 1.329-.03.358-.09.663-.233.943a2.4 2.4 0 0 1-1.049 1.049c-.28.142-.585.204-.943.233-.35.028-.784.028-1.329.028H6.516c-.545 0-.979 0-1.329-.028-.358-.03-.664-.09-.943-.233a2.4 2.4 0 0 1-1.05-1.049c-.142-.28-.203-.585-.232-.943-.029-.35-.029-.784-.029-1.33V6.517c0-.546 0-.98.029-1.33.03-.357.09-.663.233-.942a2.4 2.4 0 0 1 1.049-1.05c.28-.142.585-.203.943-.232.35-.029.784-.029 1.329-.029Zm1.75.4c0-.22.18-.4.4-.4h4c.222 0 .4.18.4.4v4a.4.4 0 0 1-.8 0V4.3L8.284 8.283a.4.4 0 0 1-.566-.566l3.984-3.984H8.667a.4.4 0 0 1-.4-.4Z' fill='%230269D0'/%3E%3C/svg%3E")!important;width:var(--sgds-icon-size-sm,1rem)!important}a:hover{color:#0022b9}.sgds-masthead{color-scheme:var(--sgds-color-scheme,only light);font-family:Inter,system-ui,sans-serif;font-size:.875rem;line-height:1.25rem}.banner{background-color:light-dark(#f7f7f7,#1a1a1a)}.container{margin-left:auto;margin-right:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:.25rem var(--sgds-mainnav-mobile-padding-x,1.25rem);width:100%}:host([fluid]) .container{max-width:none}.sg-crest{flex-shrink:0;height:20px;width:20px}.sg-crest path{fill:#db0000}.masthead-layout{display:flex;gap:.25rem}.masthead-text-layout{align-items:center;display:flex;flex-wrap:wrap;gap:0 .75rem}.sgds-masthead-identify-icon{align-self:center;display:block;height:20px;transform:rotate(180deg);transition:transform .3s ease-in-out 0s;user-select:none;width:20px}.sgds-masthead-identify-icon.show{transform:rotate(0deg)}.sgds-masthead-button{align-items:center;color:light-dark(#0269d0,#60aaf4);cursor:pointer;display:flex;gap:4px}.sgds-masthead-button:hover{color:light-dark(#0151a0,#96c7f7)}.panel{background-color:light-dark(#f7f7f7,#1a1a1a)}.sgds-masthead .sgds-masthead-content{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;transition:grid-template-rows .3s cubic-bezier(.25,0,.25,1),opacity .3s cubic-bezier(.25,0,.25,1),padding .3s cubic-bezier(.25,0,.25,1)}.sgds-masthead .sgds-masthead-content.show{grid-template-rows:1fr;opacity:1;padding-bottom:1rem;padding-top:1rem}.sgds-masthead .sgds-masthead-content>.content-grid{min-height:0}.content-grid{display:grid;gap:1rem;grid-template-columns:1fr}.icon{margin-top:-.1em}.wrapper{display:flex;gap:.5rem}.content{display:flex;flex-direction:column;gap:.25rem}.content .title{font-weight:600}.content article{color:light-dark(#525252,#a5a5a5)}.banner-icon,.banner-icon-inline{height:20px;width:20px}.banner-icon path,.banner-icon-inline path{fill:light-dark(#1a1a1a,#f3f3f3)}a.trusted-websites-link{color:light-dark(#0269d0,#60aaf4);text-decoration:underline;width:fit-content}a.trusted-websites-link:hover{color:light-dark(#0151a0,#96c7f7)}.sgds-masthead-button:focus-visible,a.trusted-websites-link:focus-visible{outline:4px solid #60aaf4}@media screen and (min-width:768px){.content-grid{gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}@media screen and (min-width:1024px){.container{padding:.25rem var(--sgds-mainnav-padding-x,2rem)}}`,an=r`svg{vertical-align:middle}`;class on extends Oe{constructor(){super(...arguments),this.fluid=!1,this.toggleVisibility=!1}_handleKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this._toggleVisibility())}_toggleVisibility(){this.toggleVisibility=!this.toggleVisibility}render(){return te`
1293
+ </sgds-dropdown>`;return this._breakpointReached?e:t}}Qo.styles=[...Oe.styles,Li,Pi,Jo],Qo.dependencies={"sgds-dropdown":Ai,"sgds-dropdown-item":Ii,"sgds-icon":_t},t([No({context:qo,subscribe:!0}),Pe()],Qo.prototype,"_breakpointReached",void 0),t([No({context:Yo,subscribe:!0}),Pe()],Qo.prototype,"expanded",void 0),t([De(".nav-link")],Qo.prototype,"navLink",void 0),t([De(".dropdown-items")],Qo.prototype,"dropdownItems",void 0),t([De(".dropdown-items a")],Qo.prototype,"menuHeaderButton",void 0),t([De(".dropdown-items span")],Qo.prototype,"menuHeaderText",void 0),t([ze({type:Boolean})],Qo.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Qo.prototype,"disabled",void 0),t([ze({type:String})],Qo.prototype,"ariaLabel",void 0),t([Ee({slot:"toggler"})],Qo.prototype,"togglerNodes",void 0),t([Ee()],Qo.prototype,"defaultNodes",void 0);var en=r`:host([expand=always]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media screen and (min-width:512px){:host([expand=sm]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=sm]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:768px){:host([expand=md]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=md]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:1024px){:host([expand=lg]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=lg]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:1280px){:host([expand=xl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (min-width:1440px){:host([expand=xxl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xxl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}}@media screen and (max-width:511px){:host(:not([disabled])[active][expand=sm]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:767px){:host(:not([disabled])[active][expand=md]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1023px){:host(:not([disabled])[active][expand=lg]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1279px){:host(:not([disabled])[active][expand=xl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1439px){:host(:not([disabled])[active][expand=xxl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}::slotted(*){--sgds-link-color-default:var(--sgds-color-default);--sgds-link-color-emphasis:var(--sgds-color-default);align-items:center;box-sizing:border-box;color:var(--sgds-color-default)!important;cursor:pointer;display:flex;font-size:var(--sgds-font-size-label-sm);height:auto!important;line-height:var(--sgds-line-height-2-xs,20px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);text-decoration:none!important}@media screen and (min-width:1024px){::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}:host(:not([disabled])[active]) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-primary-color-default)!important}:host(:not([disabled]):not([active])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default)!important}:host(:not([disabled])[active]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-primary-color-default)!important}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default)!important}:host(:not([disabled]):not([active])) ::slotted(a:active){color:var(--sgds-color-default)!important}:host(:not([disabled])[active]) ::slotted(a:active){color:var(--sgds-primary-color-default)!important}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-primary-color-default)!important;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-40)}`;class tn extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1}_handleDisabled(){this.setAttribute("aria-disabled",`${this.disabled}`)}_handleSlotChange(e){const t=e.target,s=t.assignedElements({flatten:!0}).filter(e=>"a"===e.tagName.toLowerCase()||"sgds-link"===e.tagName.toLowerCase());if(s.length>1)console.error("More than one anchor tag is added to sgds-mainnav-item");else{if(0===s.length){t.assignedNodes({flatten:!0}).forEach(e=>{if(e.nodeType===Node.TEXT_NODE){const t=document.createElement("a");t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}})}if(1===s.length){const e=s[0];if(this.active&&e.setAttribute("aria-current","true"),this.disabled)return e.setAttribute("href","javascript:void(0)"),void e.setAttribute("tabindex","-1");e.addEventListener("click",e=>{e.target.closest("sgds-mainnav").hide()})}}}render(){return te`<slot @slotchange=${this._handleSlotChange}></slot>`}}tn.styles=[...Oe.styles,en],t([ze({type:Boolean,reflect:!0})],tn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],tn.prototype,"disabled",void 0),t([nt("disabled")],tn.prototype,"_handleDisabled",null);var sn=r`b{font-weight:bolder}[role=button]{cursor:pointer}a{color:#0049dc;text-decoration:none!important}a[target=_blank]:after{height:var(--sgds-icon-size-sm,1rem)!important;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.516 2.933h.017a.4.4 0 1 1 0 .8c-.566 0-.967 0-1.28.026-.31.025-.498.073-.646.149a1.6 1.6 0 0 0-.7.699c-.075.148-.123.336-.148.645-.025.314-.026.714-.026 1.281v2.933c0 .567 0 .968.026 1.282.026.308.073.497.149.645a1.6 1.6 0 0 0 .699.699c.148.075.337.123.645.149.314.025.715.025 1.281.025h2.934c.566 0 .967 0 1.28-.025.31-.026.498-.073.646-.149a1.6 1.6 0 0 0 .7-.7c.075-.147.123-.336.148-.644.025-.314.026-.715.026-1.282a.4.4 0 0 1 .8 0v.018c0 .545 0 .979-.029 1.329-.03.358-.09.663-.233.943a2.4 2.4 0 0 1-1.049 1.049c-.28.142-.585.204-.943.233-.35.028-.784.028-1.329.028H6.516c-.545 0-.979 0-1.329-.028-.358-.03-.664-.09-.943-.233a2.4 2.4 0 0 1-1.05-1.049c-.142-.28-.203-.585-.232-.943-.029-.35-.029-.784-.029-1.33V6.517c0-.546 0-.98.029-1.33.03-.357.09-.663.233-.942a2.4 2.4 0 0 1 1.049-1.05c.28-.142.585-.203.943-.232.35-.029.784-.029 1.329-.029Zm1.75.4c0-.22.18-.4.4-.4h4c.222 0 .4.18.4.4v4a.4.4 0 0 1-.8 0V4.3L8.284 8.283a.4.4 0 0 1-.566-.566l3.984-3.984H8.667a.4.4 0 0 1-.4-.4Z' fill='%230269D0'/%3E%3C/svg%3E")!important;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.516 2.933h.017a.4.4 0 1 1 0 .8c-.566 0-.967 0-1.28.026-.31.025-.498.073-.646.149a1.6 1.6 0 0 0-.7.699c-.075.148-.123.336-.148.645-.025.314-.026.714-.026 1.281v2.933c0 .567 0 .968.026 1.282.026.308.073.497.149.645a1.6 1.6 0 0 0 .699.699c.148.075.337.123.645.149.314.025.715.025 1.281.025h2.934c.566 0 .967 0 1.28-.025.31-.026.498-.073.646-.149a1.6 1.6 0 0 0 .7-.7c.075-.147.123-.336.148-.644.025-.314.026-.715.026-1.282a.4.4 0 0 1 .8 0v.018c0 .545 0 .979-.029 1.329-.03.358-.09.663-.233.943a2.4 2.4 0 0 1-1.049 1.049c-.28.142-.585.204-.943.233-.35.028-.784.028-1.329.028H6.516c-.545 0-.979 0-1.329-.028-.358-.03-.664-.09-.943-.233a2.4 2.4 0 0 1-1.05-1.049c-.142-.28-.203-.585-.232-.943-.029-.35-.029-.784-.029-1.33V6.517c0-.546 0-.98.029-1.33.03-.357.09-.663.233-.942a2.4 2.4 0 0 1 1.049-1.05c.28-.142.585-.203.943-.232.35-.029.784-.029 1.329-.029Zm1.75.4c0-.22.18-.4.4-.4h4c.222 0 .4.18.4.4v4a.4.4 0 0 1-.8 0V4.3L8.284 8.283a.4.4 0 0 1-.566-.566l3.984-3.984H8.667a.4.4 0 0 1-.4-.4Z' fill='%230269D0'/%3E%3C/svg%3E")!important;width:var(--sgds-icon-size-sm,1rem)!important}a:hover{color:#0022b9}.sgds-masthead{color-scheme:var(--sgds-color-scheme,only light);font-family:Inter,system-ui,sans-serif;font-size:.875rem;line-height:1.25rem}.banner{background-color:light-dark(#f7f7f7,#1a1a1a)}.container{margin-left:auto;margin-right:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:.25rem var(--sgds-mainnav-mobile-padding-x,1.25rem);width:100%}:host([fluid]) .container{max-width:none}.sg-crest{flex-shrink:0;height:20px;width:20px}.sg-crest path{fill:#db0000}.masthead-layout{display:flex;gap:.25rem}.masthead-text-layout{align-items:center;display:flex;flex-wrap:wrap;gap:0 .75rem}.sgds-masthead-identify-icon{align-self:center;display:block;height:20px;transform:rotate(180deg);transition:transform .3s ease-in-out 0s;user-select:none;width:20px}.sgds-masthead-identify-icon.show{transform:rotate(0deg)}.sgds-masthead-button{align-items:center;color:light-dark(#0269d0,#60aaf4);cursor:pointer;display:flex;gap:4px}.sgds-masthead-button:hover{color:light-dark(#0151a0,#96c7f7)}.panel{background-color:light-dark(#f7f7f7,#1a1a1a)}.sgds-masthead .sgds-masthead-content{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;transition:grid-template-rows .3s cubic-bezier(.25,0,.25,1),opacity .3s cubic-bezier(.25,0,.25,1),padding .3s cubic-bezier(.25,0,.25,1)}.sgds-masthead .sgds-masthead-content.show{grid-template-rows:1fr;opacity:1;padding-bottom:1rem;padding-top:1rem}.sgds-masthead .sgds-masthead-content>.content-grid{min-height:0}.content-grid{display:grid;gap:1rem;grid-template-columns:1fr}.icon{margin-top:-.1em}.wrapper{display:flex;gap:.5rem}.content{display:flex;flex-direction:column;gap:.25rem}.content .title{font-weight:600}.content article{color:light-dark(#525252,#a5a5a5)}.banner-icon,.banner-icon-inline{height:20px;width:20px}.banner-icon path,.banner-icon-inline path{fill:light-dark(#1a1a1a,#f3f3f3)}a.trusted-websites-link{color:light-dark(#0269d0,#60aaf4);text-decoration:underline;width:fit-content}a.trusted-websites-link:hover{color:light-dark(#0151a0,#96c7f7)}.sgds-masthead-button:focus-visible,a.trusted-websites-link:focus-visible{outline:4px solid #60aaf4}@media screen and (min-width:768px){.content-grid{gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}@media screen and (min-width:1024px){.container{padding:.25rem var(--sgds-mainnav-padding-x,2rem)}}`,an=r`svg{vertical-align:middle}`;class on extends Oe{constructor(){super(...arguments),this.fluid=!1,this.toggleVisibility=!1}_handleKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this._toggleVisibility())}_toggleVisibility(){this.toggleVisibility=!this.toggleVisibility}render(){return te`
1294
1294
  <div id="sgds-masthead" class="sgds-masthead">
1295
1295
  <div class="banner">
1296
1296
  <div class="container">
@@ -1477,7 +1477,7 @@ class Ho{constructor(e,t,s,i){if(this.subscribe=!1,this.provided=!1,this.value=v
1477
1477
  </div>
1478
1478
  </div>
1479
1479
  </div>
1480
- `}}cn.styles=[...Oe.styles,Xi,an,dn],cn.dependencies={"sgds-close-button":ft},t([Ae(".modal")],cn.prototype,"dialog",void 0),t([Ae(".modal-panel")],cn.prototype,"panel",void 0),t([Ae(".modal-overlay")],cn.prototype,"overlay",void 0),t([Ae(".modal-title")],cn.prototype,"heading",void 0),t([ze({type:Boolean,reflect:!0})],cn.prototype,"open",void 0),t([ze({type:Boolean,reflect:!0})],cn.prototype,"noAnimation",void 0),t([ze({reflect:!0})],cn.prototype,"size",void 0),t([ze({type:Boolean})],cn.prototype,"hasFooterSlot",void 0),t([ze({type:Boolean,reflect:!0})],cn.prototype,"noCloseButton",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],cn.prototype,"handleOpenChange",null),at("modal.show",{keyframes:[{opacity:0,transform:"scale(1) translate(0, -100%)"},{opacity:1,transform:"scale(1) translate(0, 0%)"}],options:{duration:400,easing:"ease"}}),at("modal.hide",{keyframes:[{opacity:1,transform:"scale(1) translate(0, 0)"},{opacity:0,transform:"scale(1) translate(0, -100%)"}],options:{duration:400,easing:"ease"}}),at("modal.denyClose",{keyframes:[{transform:"scale(1)"},{transform:"scale(1.02)"},{transform:"scale(1)"}],options:{duration:400}}),at("modal.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:400}}),at("modal.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:400}});
1480
+ `}}cn.styles=[...Oe.styles,Xi,an,dn],cn.dependencies={"sgds-close-button":ft},t([De(".modal")],cn.prototype,"dialog",void 0),t([De(".modal-panel")],cn.prototype,"panel",void 0),t([De(".modal-overlay")],cn.prototype,"overlay",void 0),t([De(".modal-title")],cn.prototype,"heading",void 0),t([ze({type:Boolean,reflect:!0})],cn.prototype,"open",void 0),t([ze({type:Boolean,reflect:!0})],cn.prototype,"noAnimation",void 0),t([ze({reflect:!0})],cn.prototype,"size",void 0),t([ze({type:Boolean})],cn.prototype,"hasFooterSlot",void 0),t([ze({type:Boolean,reflect:!0})],cn.prototype,"noCloseButton",void 0),t([nt("open",{waitUntilFirstUpdate:!0})],cn.prototype,"handleOpenChange",null),at("modal.show",{keyframes:[{opacity:0,transform:"scale(1) translate(0, -100%)"},{opacity:1,transform:"scale(1) translate(0, 0%)"}],options:{duration:400,easing:"ease"}}),at("modal.hide",{keyframes:[{opacity:1,transform:"scale(1) translate(0, 0)"},{opacity:0,transform:"scale(1) translate(0, -100%)"}],options:{duration:400,easing:"ease"}}),at("modal.denyClose",{keyframes:[{transform:"scale(1)"},{transform:"scale(1.02)"},{transform:"scale(1)"}],options:{duration:400}}),at("modal.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:400}}),at("modal.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:400}});
1481
1481
  /**
1482
1482
  * @license
1483
1483
  * Copyright 2018 Google LLC
@@ -1498,7 +1498,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1498
1498
  </div>
1499
1499
  ${this.label?te`<span class="label">${this.label}</span>`:ae}
1500
1500
  </div>
1501
- `}}vn.styles=[...Oe.styles,gn],t([ze({type:String,reflect:!0})],vn.prototype,"variant",void 0),t([ze({type:Number,reflect:!0})],vn.prototype,"value",void 0),t([ze({type:Number,reflect:!0})],vn.prototype,"ariamin",void 0),t([ze({type:Number,reflect:!0})],vn.prototype,"ariamax",void 0),t([ze({type:String,reflect:!0})],vn.prototype,"ariaLabel",void 0),t([ze({type:String,reflect:!0})],vn.prototype,"arialabel",void 0),t([ze({type:String,reflect:!0})],vn.prototype,"label",void 0);var mn=r`sgds-input{--input-min-width:var(--sgds-dimension-0)}.input-group{align-items:stretch;display:flex;gap:var(--sgds-gap-none)}.input-group>sgds-input{--input-border-radius:0;flex:1 1 auto;margin-inline:calc(var(--sgds-form-border-width-default)*-1);min-width:0;position:relative;z-index:1}.input-group>sgds-input:focus-within{z-index:3}.input-group>sgds-icon-button.minus-btn{--btn-border-radius:var(--sgds-form-border-radius-md) 0 0 var(--sgds-form-border-radius-md)}.input-group>sgds-icon-button.plus-btn{--btn-border-radius:0 var(--sgds-form-border-radius-md) var(--sgds-form-border-radius-md) 0}.input-group sgds-button:focus{z-index:3}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}`;class fn extends(ha(la)){constructor(){super(...arguments),this.value=0,this.step=1,this.noValidate=!1,this.readonly=!1,this.defaultValue=0}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}async _handleChange(){const e=await this._sgdsInput;(parseInt(e.value)<this.step||""===e.value)&&(e.value="0"),this.value=parseInt(e.value),this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||(this._mixinValidate(e.input),this.invalid=!this._mixinReportValidity())}async _handleInputChange(){const e=await this._sgdsInput;if(this._mixinShouldSkipSgdsValidation())return(parseInt(e.value)<this.step||""===e.value)&&(e.value="0"),this.value=parseInt(e.value),void this._mixinSetFormValue();this.invalid=!1,(parseInt(e.value)<this.step||""===e.value)&&(e.value="0"),this.value=parseInt(e.value),this._mixinSetFormValue(),this._mixinValidate(e.input)}async _mixinResetFormControl(){const e=await this._sgdsInput;this.value=this.defaultValue,e.input.value=this.value.toString(),this._mixinResetValidity(e.input)}_handleKeyDown(e){const t=["Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight",...Array.from(Array(10).keys()).map(e=>e.toString()),"Tab"];t.includes(e.key)||e.preventDefault()}_handleInvalid(){this.invalid=!0}_handleValid(){this.invalid=!1}plus(){this.plusBtn.click()}minus(){this.minusBtn.click()}async _onPlus(e){const t=await this._sgdsInput;e.preventDefault(),e.stopPropagation(),this.value=parseInt(t.value)+parseInt(t.step.toString()),this._validateOnClick(t.input),this.emit("sgds-change")}async _onMinus(e){const t=await this._sgdsInput;e.preventDefault(),e.stopPropagation(),this.value<this.step?this.value=0:this.value=parseInt(t.value)-parseInt(t.step.toString()),this._validateOnClick(t.input),this.emit("sgds-change")}async _validateOnClick(e){const t=await this._sgdsInput;await t.updateComplete,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||(this._mixinValidate(e),this.invalid=!this._mixinReportValidity())}_renderFeedback(){const e="both"===this.hasFeedback||"text"===this.hasFeedback;return this.invalid&&e?ut` <div class="invalid-feedback-container">
1501
+ `}}vn.styles=[...Oe.styles,gn],t([ze({type:String,reflect:!0})],vn.prototype,"variant",void 0),t([ze({type:Number,reflect:!0})],vn.prototype,"value",void 0),t([ze({type:Number,reflect:!0})],vn.prototype,"ariamin",void 0),t([ze({type:Number,reflect:!0})],vn.prototype,"ariamax",void 0),t([ze({type:String,reflect:!0})],vn.prototype,"ariaLabel",void 0),t([ze({type:String,reflect:!0})],vn.prototype,"arialabel",void 0),t([ze({type:String,reflect:!0})],vn.prototype,"label",void 0);var mn=r`sgds-input{--input-min-width:var(--sgds-dimension-0)}.input-group{align-items:stretch;display:flex;gap:var(--sgds-gap-none)}.input-group>sgds-input{--input-border-radius:0;flex:1 1 auto;margin-inline:calc(var(--sgds-form-border-width-default)*-1);min-width:0;position:relative;z-index:1}.input-group>sgds-input:focus-within{z-index:3}.input-group>sgds-icon-button.minus-btn{--btn-border-radius:var(--sgds-form-border-radius-md) 0 0 var(--sgds-form-border-radius-md)}.input-group>sgds-icon-button.plus-btn{--btn-border-radius:0 var(--sgds-form-border-radius-md) var(--sgds-form-border-radius-md) 0}.input-group sgds-button:focus{z-index:3}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}`;class fn extends(ha(la)){constructor(){super(...arguments),this.value=0,this.step=1,this.noValidate=!1,this.readonly=!1,this.defaultValue=0}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}async _handleChange(e){e.stopPropagation();const t=await this._sgdsInput;(parseInt(t.value)<this.step||""===t.value)&&(t.value="0"),this.value=parseInt(t.value),this._mixinSetFormValue(),this.emit("sgds-change"),this._mixinShouldSkipSgdsValidation()||(this._mixinValidate(t.input),this.invalid=!this._mixinReportValidity())}async _handleInputChange(e){e.stopPropagation();const t=await this._sgdsInput;(parseInt(t.value)<this.step||""===t.value)&&(t.value="0"),this.value=parseInt(t.value),this._mixinSetFormValue(),this.emit("sgds-input"),this._mixinShouldSkipSgdsValidation()||(this.invalid=!1,this._mixinValidate(t.input))}async _mixinResetFormControl(){const e=await this._sgdsInput;this.value=this.defaultValue,e.input.value=this.value.toString(),this._mixinResetValidity(e.input)}_handleKeyDown(e){const t=["Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight",...Array.from(Array(10).keys()).map(e=>e.toString()),"Tab"];t.includes(e.key)||e.preventDefault()}_handleInvalid(){this.invalid=!0}_handleValid(){this.invalid=!1}plus(){this.plusBtn.click()}minus(){this.minusBtn.click()}async _onPlus(e){const t=await this._sgdsInput;e.preventDefault(),e.stopPropagation(),this.value=parseInt(t.value)+parseInt(t.step.toString()),this._validateOnClick(t.input),this.emit("sgds-change")}async _onMinus(e){const t=await this._sgdsInput;e.preventDefault(),e.stopPropagation(),this.value<this.step?this.value=0:this.value=parseInt(t.value)-parseInt(t.step.toString()),this._validateOnClick(t.input),this.emit("sgds-change")}async _validateOnClick(e){const t=await this._sgdsInput;await t.updateComplete,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||(this._mixinValidate(e),this.invalid=!this._mixinReportValidity())}_renderFeedback(){const e="both"===this.hasFeedback||"text"===this.hasFeedback;return this.invalid&&e?ut` <div class="invalid-feedback-container">
1502
1502
  <slot name="invalidIcon">
1503
1503
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
1504
1504
  <path
@@ -1566,7 +1566,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1566
1566
  <div id="${this._controlId}-announcer" aria-live="assertive" class="visually-hidden">${this.value}</div>
1567
1567
  ${this._renderFeedback()}
1568
1568
  </div>
1569
- `}}fn.styles=[...la.styles,ra,an,fa,mn],fn.dependencies={"sgds-input":no,"sgds-icon-button":Pa},t([Ae("sgds-icon-button[ariaLabel^='increase by']")],fn.prototype,"plusBtn",void 0),t([Ae("sgds-icon-button[ariaLabel^='decrease by']")],fn.prototype,"minusBtn",void 0),t([ze({type:Number,reflect:!0})],fn.prototype,"value",void 0),t([ze({type:Number})],fn.prototype,"step",void 0),t([ze({type:Number})],fn.prototype,"min",void 0),t([ze({type:Number})],fn.prototype,"max",void 0),t([ze({type:String,reflect:!0})],fn.prototype,"hasFeedback",void 0),t([ze({type:String,reflect:!0})],fn.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],fn.prototype,"noValidate",void 0),t([ze({type:Boolean,reflect:!0})],fn.prototype,"readonly",void 0),t([da()],fn.prototype,"defaultValue",void 0),t([De("sgds-input")],fn.prototype,"_sgdsInput",void 0);var bn=r`:host{outline:0}.form-check-input[type=radio]{border-radius:50%}.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg width="8" height="8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z" fill="%23fff"/></svg>')}.form-check-input[checked].is-invalid{background-color:var(--sgds-form-danger-surface-default)}`;class wn extends Oe{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.invalid=!1,this.autofocus=!1,this.radioId=Zi("radio")}connectedCallback(){super.connectedCallback(),this.setInitialAttributes(),this.addEventListeners()}handleCheckedChange(){var e;this.checked&&this.autofocus&&(null===(e=this.input)||void 0===e||e.focus()),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleBlur(){this.emit("sgds-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.emit("sgds-focus")}addEventListeners(){this.addEventListener("blur",()=>this.handleBlur()),this.addEventListener("click",()=>this.handleClick()),this.addEventListener("focus",()=>this.handleFocus())}setInitialAttributes(){this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return te`
1569
+ `}}fn.styles=[...la.styles,ra,an,fa,mn],fn.dependencies={"sgds-input":no,"sgds-icon-button":Pa},t([De("sgds-icon-button[ariaLabel^='increase by']")],fn.prototype,"plusBtn",void 0),t([De("sgds-icon-button[ariaLabel^='decrease by']")],fn.prototype,"minusBtn",void 0),t([ze({type:Number,reflect:!0})],fn.prototype,"value",void 0),t([ze({type:Number})],fn.prototype,"step",void 0),t([ze({type:Number})],fn.prototype,"min",void 0),t([ze({type:Number})],fn.prototype,"max",void 0),t([ze({type:String,reflect:!0})],fn.prototype,"hasFeedback",void 0),t([ze({type:String,reflect:!0})],fn.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],fn.prototype,"noValidate",void 0),t([ze({type:Boolean,reflect:!0})],fn.prototype,"readonly",void 0),t([da()],fn.prototype,"defaultValue",void 0),t([Ie("sgds-input")],fn.prototype,"_sgdsInput",void 0);var bn=r`:host{outline:0}.form-check-input[type=radio]{border-radius:50%}.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg width="8" height="8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z" fill="%23fff"/></svg>')}.form-check-input[checked].is-invalid{background-color:var(--sgds-form-danger-surface-default)}`;class wn extends Oe{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.invalid=!1,this.autofocus=!1,this.radioId=Zi("radio")}connectedCallback(){super.connectedCallback(),this.setInitialAttributes(),this.addEventListeners()}handleCheckedChange(){var e;this.checked&&this.autofocus&&(null===(e=this.input)||void 0===e||e.focus()),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleBlur(){this.emit("sgds-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.emit("sgds-focus")}addEventListeners(){this.addEventListener("blur",()=>this.handleBlur()),this.addEventListener("click",()=>this.handleClick()),this.addEventListener("focus",()=>this.handleFocus())}setInitialAttributes(){this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return te`
1570
1570
  <div class="form-check">
1571
1571
  <input
1572
1572
  class=${Ke({"form-check-input":!0,"is-invalid":this.invalid})}
@@ -1583,7 +1583,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1583
1583
  <slot></slot>
1584
1584
  </label>
1585
1585
  </div>
1586
- `}}wn.styles=[...Oe.styles,ua,na,bn],t([ze({type:Boolean,reflect:!0})],wn.prototype,"checked",void 0),t([ze()],wn.prototype,"value",void 0),t([ze({type:Boolean,reflect:!0})],wn.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],wn.prototype,"invalid",void 0),t([ze({type:Boolean,reflect:!1})],wn.prototype,"autofocus",void 0),t([Ae("input")],wn.prototype,"input",void 0),t([nt("checked")],wn.prototype,"handleCheckedChange",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],wn.prototype,"handleDisabledChange",null);var yn=r`fieldset{border:0;gap:var(--sgds-form-gap-md);margin:0;min-width:0;padding:0}.label-hint-container,fieldset{display:flex;flex-direction:column}.label-hint-container{gap:var(--sgds-form-gap-sm)}.radio-group-validation-input{display:none}.radio-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}:host([disabled]) .label-hint-container{cursor:not-allowed;opacity:var(--sgds-opacity-40)}`;class _n extends(ha(la)){constructor(){super(...arguments),this.defaultValue="",this.value="",this.invalidFeedback="",this.hasFeedback=!1,this.required=!1,this.noValidate=!1,this.autofocus=!1,this._isTouched=!1}_handleValueChange(){this._updateCheckedRadio()}_handleInvalidChange(){this._radios.forEach(e=>e.invalid=this.invalid)}_mixinResetFormControl(){this.value=this.input.value=this.defaultValue,this._updateInputValue("reset"),this._mixinResetValidity(this.input)}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value,this.addEventListener("sgds-blur",()=>{this._isTouched=!0})}firstUpdated(e){super.firstUpdated(e);const t=this._radios;t.forEach((e,s)=>{if(t.length>1)switch(s){case 0:e.setAttribute("first-of-type","");break;case t.length-1:e.setAttribute("last-of-type","");break;default:e.setAttribute("nth-of-type","")}}),this.value&&this._updateInputValue("change")}_handleRadioClick(e){e.preventDefault();const t=e.target;if(t.disabled)return;this.value=t.value,this.emit("sgds-change",{detail:{value:this.value}}),this._updateInputValue();this._radios.forEach(e=>e.checked=e===t)}_updateInputValue(e="change"){this.input.value=this.value,this.input.dispatchEvent(new InputEvent(e))}_handleKeyDown(e){var t;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key))return;const s=this._radios.filter(e=>!e.disabled),i=null!==(t=s.find(e=>e.checked))&&void 0!==t?t:s[0],a=" "===e.key?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let o=s.indexOf(i)+a;o<0&&(o=s.length-1),o>s.length-1&&(o=0),this._radios.forEach(e=>{e.checked=!1,e.tabIndex=-1}),this.value=s[o].value,this.emit("sgds-change",{detail:{value:this.value}}),this._updateInputValue(),s[o].checked=!0,s[o].tabIndex=0,e.preventDefault()}_handleSlotChange(){const e=this._radios;e.forEach(e=>(e.autofocus=this.autofocus,e.checked=e.value===this.value,e)),this._disabledChildRadios(),e.some(e=>e.checked)||e[0]&&(e[0].tabIndex=0)}_updateCheckedRadio(){this._radios.forEach(e=>e.checked=e.value===this.value)}_renderHintText(){const e=te` <div id="${this._controlId}Help" class="form-text">${this.hintText}</div> `;return this.hintText&&e}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&(this.invalid=!this.input.checkValidity())}_handleDisabledChange(){this.setInvalid(!1),this._disabledChildRadios()}_disabledChildRadios(){if(this.disabled){this._radios.forEach(e=>e.disabled=this.disabled)}}render(){const e=te`
1586
+ `}}wn.styles=[...Oe.styles,ua,na,bn],t([ze({type:Boolean,reflect:!0})],wn.prototype,"checked",void 0),t([ze()],wn.prototype,"value",void 0),t([ze({type:Boolean,reflect:!0})],wn.prototype,"disabled",void 0),t([ze({type:Boolean,reflect:!0})],wn.prototype,"invalid",void 0),t([ze({type:Boolean,reflect:!1})],wn.prototype,"autofocus",void 0),t([De("input")],wn.prototype,"input",void 0),t([nt("checked")],wn.prototype,"handleCheckedChange",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],wn.prototype,"handleDisabledChange",null);var yn=r`fieldset{border:0;gap:var(--sgds-form-gap-md);margin:0;min-width:0;padding:0}.label-hint-container,fieldset{display:flex;flex-direction:column}.label-hint-container{gap:var(--sgds-form-gap-sm)}.radio-group-validation-input{display:none}.radio-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}:host([disabled]) .label-hint-container{cursor:not-allowed;opacity:var(--sgds-opacity-40)}`;class _n extends(ha(la)){constructor(){super(...arguments),this.defaultValue="",this.value="",this.invalidFeedback="",this.hasFeedback=!1,this.required=!1,this.noValidate=!1,this.autofocus=!1,this._isTouched=!1}_handleValueChange(){this._updateCheckedRadio()}_handleInvalidChange(){this._radios.forEach(e=>e.invalid=this.invalid)}_mixinResetFormControl(){this.value=this.input.value=this.defaultValue,this._updateInputValue("reset"),this._mixinResetValidity(this.input)}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value,this.addEventListener("sgds-blur",()=>{this._isTouched=!0})}firstUpdated(e){super.firstUpdated(e);const t=this._radios;t.forEach((e,s)=>{if(t.length>1)switch(s){case 0:e.setAttribute("first-of-type","");break;case t.length-1:e.setAttribute("last-of-type","");break;default:e.setAttribute("nth-of-type","")}}),this.value&&this._updateInputValue("change")}_handleRadioClick(e){e.preventDefault();const t=e.target;if(t.disabled)return;this.value=t.value,this.emit("sgds-change",{detail:{value:this.value}}),this._updateInputValue();this._radios.forEach(e=>e.checked=e===t)}_updateInputValue(e="change"){this.input.value=this.value,this.input.dispatchEvent(new InputEvent(e))}_handleKeyDown(e){var t;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key))return;const s=this._radios.filter(e=>!e.disabled),i=null!==(t=s.find(e=>e.checked))&&void 0!==t?t:s[0],a=" "===e.key?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let o=s.indexOf(i)+a;o<0&&(o=s.length-1),o>s.length-1&&(o=0),this._radios.forEach(e=>{e.checked=!1,e.tabIndex=-1}),this.value=s[o].value,this.emit("sgds-change",{detail:{value:this.value}}),this._updateInputValue(),s[o].checked=!0,s[o].tabIndex=0,e.preventDefault()}_handleSlotChange(){const e=this._radios;e.forEach(e=>(e.autofocus=this.autofocus,e.checked=e.value===this.value,e)),this._disabledChildRadios(),e.some(e=>e.checked)||e[0]&&(e[0].tabIndex=0)}_updateCheckedRadio(){this._radios.forEach(e=>e.checked=e.value===this.value)}_renderHintText(){const e=te` <div id="${this._controlId}Help" class="form-text">${this.hintText}</div> `;return this.hintText&&e}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&(this.invalid=!this.input.checkValidity())}_handleDisabledChange(){this.setInvalid(!1),this._disabledChildRadios()}_disabledChildRadios(){if(this.disabled){this._radios.forEach(e=>e.disabled=this.disabled)}}render(){const e=te`
1587
1587
  <slot
1588
1588
  class="radio-container"
1589
1589
  @click=${this._handleRadioClick}
@@ -1627,7 +1627,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1627
1627
  </div>
1628
1628
  `:ae}
1629
1629
  </fieldset>
1630
- `}}_n.styles=[...la.styles,yn],t([Ae("slot:not([name])")],_n.prototype,"defaultSlot",void 0),t([Pe()],_n.prototype,"defaultValue",void 0),t([ze({reflect:!0})],_n.prototype,"value",void 0),t([ze({type:String,reflect:!0})],_n.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"hasFeedback",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"required",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"noValidate",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"autofocus",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleValueChange",null),t([nt("invalid",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleInvalidChange",null),t([Pe()],_n.prototype,"_isTouched",void 0),t([Ee()],_n.prototype,"_radios",void 0),t([nt("_isTouched",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleIsTouched",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleDisabledChange",null);var xn=r`: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}`;class kn extends xa{constructor(){super(...arguments),this._renderItemContent=()=>te`<div class="normal-item-content" role="presentation">
1630
+ `}}_n.styles=[...la.styles,yn],t([De("slot:not([name])")],_n.prototype,"defaultSlot",void 0),t([Pe()],_n.prototype,"defaultValue",void 0),t([ze({reflect:!0})],_n.prototype,"value",void 0),t([ze({type:String,reflect:!0})],_n.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"hasFeedback",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"required",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"noValidate",void 0),t([ze({type:Boolean,reflect:!0})],_n.prototype,"autofocus",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleValueChange",null),t([nt("invalid",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleInvalidChange",null),t([Pe()],_n.prototype,"_isTouched",void 0),t([Ee()],_n.prototype,"_radios",void 0),t([nt("_isTouched",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleIsTouched",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],_n.prototype,"_handleDisabledChange",null);var xn=r`: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}`;class kn extends xa{constructor(){super(...arguments),this._renderItemContent=()=>te`<div class="normal-item-content" role="presentation">
1631
1631
  <slot></slot>
1632
1632
  ${this.active?te` <sgds-icon name="check"></sgds-icon> `:ae}
1633
1633
  </div>`}}kn.dependencies={"sgds-icon":_t};class Cn extends wa{constructor(){super(...arguments),this.noValidate=!1,this._blockInputKeydown=e=>{"Tab"!==e.key&&e.preventDefault()}}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",async()=>{(await this._input).focus()})}async firstUpdated(e){super.firstUpdated(e),this._updateDisplayValue(),this.input=await this._input,this._mixinValidate(this.input),this.menuIsOpen&&await this.updateFloatingPosition()}async _handleSlotChange(e){const t=e.target.assignedElements({flatten:!0});t.forEach(e=>e.addEventListener("click",e=>{e.target.disabled||this._handleItemSelected(e)})),t.forEach(e=>e.addEventListener("keydown",e=>{"Enter"===e.key&&this._handleItemSelected(e)})),this.menuList=await this._getMenuListFromOptions(t),this._updateDisplayValue(),this.input=await this._input,this._mixinValidate(this.input)}_updateDisplayValue(){if(this.value&&this.menuList.length>0){const e=this.menuList.filter(({value:e})=>e===this.value);this.displayValue=e[0].label,this._setActiveToOption()}}_setActiveToOption(){const e=this.menuList.findIndex(e=>e.value.toString()===this.value);this.options.forEach((t,s)=>{t.active=s===e})}async _handleValueChange(){this._setActiveToOption(),this.emit("sgds-change"),this.value&&this.emit("sgds-select");const e=await this._input;this._mixinSetFormValue(),this._mixinValidate(e),this._updateDisplayValue(),(this._isTouched||""!==this.value)&&(this._mixinShouldSkipSgdsValidation()||(this.invalid=!this._mixinReportValidity()))}async _handleItemSelected(e){var t,s,i;const a=e.target,o=null!==(s=null===(t=a.textContent)||void 0===t?void 0:t.trim())&&void 0!==s?s:"",n={label:o,value:null!==(i=a.getAttribute("value"))&&void 0!==i?i:o};this.value=n.value.toString(),this.displayValue=n.label,this.hideMenu()}_handleFocus(){this.emit("sgds-focus")}async _handleInputBlur(e){e.preventDefault(),this.emit("sgds-blur")}async _mixinResetFormControl(){this.value=this.defaultValue;const e=this.menuList.filter(({value:e})=>e===this.value);e.length<=0?this.displayValue="":this.displayValue=e[0].label,this._mixinResetValidity(await this._input)}_renderMenu(){const e=this.menuList.map(e=>{const t=e.value===this.value;return te`
@@ -1687,7 +1687,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1687
1687
  ${this.loading?this._renderLoadingMenu():ae}
1688
1688
  </div>
1689
1689
  </div>
1690
- `}}Cn.styles=[...wa.styles,fa,xn],Cn.childName="sgds-select-option",Cn.dependencies={"sgds-icon":_t,"sgds-spinner":Ma,[Cn.childName]:kn},t([ze({type:Boolean,reflect:!0})],Cn.prototype,"noValidate",void 0),t([Ee({flatten:!0,selector:"sgds-select-option"})],Cn.prototype,"options",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],Cn.prototype,"_handleValueChange",null);var $n=r`.sidebar{display:flex;flex-direction:column;height:100%;position:relative;transition:width var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard);width:var(--sgds-dimension-288);z-index:var(--sgds-z-index-sticky)}.sidebar:not(.overlay).sidebar--collapsed{width:var(--sgds-dimension-72)}.overlay{left:0;position:absolute;top:0}.overlay.sidebar--collapsed{width:var(--sgds-dimension-0)}.sidebar-top{align-items:center;display:flex;gap:var(--sgds-gap-md);justify-content:space-between;padding:0 var(--sgds-padding-xs)}:not(.overlay).sidebar--collapsed .sidebar-brand-name{display:none}:not(.overlay).sidebar--collapsed .sidebar-top{justify-content:center}.sidebar-main{background-color:var(--sgds-surface-default);border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--sgds-padding-lg) 0;position:relative;z-index:1}.overlay .sidebar-main{left:0;transition:left var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.overlay.sidebar--collapsed .sidebar-main{left:calc(var(--sgds-dimension-288)*-1)}.sidebar-wrapper{display:flex;flex-direction:column;height:100%;justify-content:space-between}.sidebar-content{display:flex;flex:1;flex-direction:column;gap:var(--sgds-gap-md);margin-top:var(--sgds-margin-lg);overflow-y:auto}slot[name=lower]::slotted(*){margin-top:var(--sgds-margin-lg)}.sidebar-nested-overlay{background-color:var(--sgds-surface-raised);overflow-y:auto;padding:var(--sgds-padding-md) var(--sgds-padding-xs);transition:all var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard);transition-property:opacity left;width:var(--sgds-dimension-288);z-index:0}.sidebar--overlay,.sidebar-nested-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;top:0}.sidebar--overlay{background-color:var(--sgds-bg-overlay);content:"";transition:all var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard);width:100vw}.sidebar--overlay.show{opacity:1;pointer-events:unset}.sidebar-nested-overlay.show{border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);left:var(--sgds-dimension-288);opacity:1;pointer-events:auto}:not(.overlay).sidebar--collapsed .sidebar-nested-overlay.show{left:var(--sgds-dimension-72)}.sidebar-nested-overlay sgds-icon-button{display:none}.sidebar::-webkit-scrollbar{width:var(--sgds-dimension-2)}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-xs)}.sidebar::-webkit-scrollbar-thumb:hover{background:var(--sgds-color-subtle)}@media screen and (max-width:767px){.sidebar-nested-overlay sgds-icon-button{display:block}.sidebar,.sidebar-nested-overlay{width:var(--sgds-dimension-256)}.sidebar-nested-overlay,.sidebar-nested-overlay.show{left:var(--sgds-dimension-256)}}@media screen and (max-width:511px){.sidebar--overlay{display:none}.sidebar{position:absolute;width:100dvw}.sidebar-nested-overlay{left:-100dvw;width:100dvw;z-index:2}.sidebar-nested-overlay.show,:not(.overlay).sidebar--collapsed .sidebar-nested-overlay.show{left:0}.overlay.sidebar--collapsed .sidebar-main{left:calc(100dvw*-1)}}`;const Sn="sidebar-active-group",Mn="sidebar-active",Zn="sidebar-collapsed",Vn="sidebar-drawer-items",zn="sidebar-drawer-open",Pn="sidebar-drawer-overlay";var Ln=r`.sidebar-item{border-radius:var(--sgds-border-radius-md);cursor:pointer;padding:var(--sgds-padding-xs);transition:background-color .15s ease-in-out,color .15s ease-in-out}.sidebar-item.active,.sidebar-item:focus-visible,.sidebar-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.sidebar-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.sidebar-item-label-wrapper,.sidebar-item-label-wrapper>div{align-items:center;display:flex;gap:var(--sgds-gap-xs)}.sidebar-item-label-wrapper{justify-content:space-between;padding:var(--sgds-padding-3-xs) var(--sgds-padding-2-xs)}.sidebar-item-label{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;display:-webkit-box;font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs);max-height:calc(var(--sgds-line-height-20, 20px)*2);overflow:hidden}.sidebar-item-label.offset{color:var(--sgds-color-subtle);margin-left:var(--sgds-margin-2-xl)}.sidebar-item-leaf.active .sidebar-item-label.offset,.sidebar-item-leaf:focus-visible .sidebar-item-label.offset,.sidebar-item-leaf:hover .sidebar-item-label.offset{color:var(--sgds-color-default)}.sidebar-item-leaf.active,.sidebar-item-leaf:focus-visible,.sidebar-item-leaf:hover{background-color:var(--sgds-bg-translucent-subtle)}.sidebar-item-label-wrapper .sidebar-item.active{background-color:var(--sgds-surface-raised);color:var(--sgds-primary-color-default)}.sidebar-item-label-wrapper .sidebar-item-indicator{align-items:center;display:flex;gap:var(--sgds-gap-2-xs)}.sidebar-item--collapsed{margin:auto;width:var(--sgds-dimension-40)}.sidebar-item--collapsed .sidebar-item-indicator,.sidebar-item--collapsed .sidebar-item-label{display:none}.sidebar-item--collapsed .sidebar-item-label-wrapper{justify-content:center}.sidebar-submenu{overflow:hidden}.sidebar-submenu>div{margin-top:-100%;opacity:0;pointer-events:none;transition:all var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.sidebar-submenu.show>div{margin-top:0;opacity:1;pointer-events:auto}.sidebar-submenu--collapsed{display:none}`;class In extends Oe{constructor(){super(...arguments),this.title="",this.name="",this._sidebarCollapsed=!1,this._sidebarActiveItem=null,this._sidebarActiveGroup=null,this._drawerItems=null,this._showDrawer=!1,this._isOverlay=!1,this._childLevel=1,this._selected=!1,this._hidden=!1,this._childElements=[],this._childActive=!1}connectedCallback(){super.connectedCallback(),this._getChildLevel(),this.addEventListener("keydown",this._handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown)}firstUpdated(e){super.firstUpdated(e),this._getChildLevel()}updated(){var e;if(2===this._childLevel)this._hidden=!this.closest(".sidebar-nested-overlay");else if(this._childLevel>=3){const t=!!this.closest(".sidebar-nested-overlay"),s=this.parentElement,i=null!==(e=null==s?void 0:s.showMenu)&&void 0!==e&&e;this._hidden=!t||!i}}_handleSlotChange(){this._childElements=this._defaultNodes}_handleClick(){this.emit("i-sgds-click",{detail:{element:this,level:this._childLevel}})}_handleKeyDown(e){var t,s;const i=e.target;switch(e.key){case" ":case"Enter":return e.preventDefault(),e.stopPropagation(),void(e.target===this&&this._handleClick());case"ArrowLeft":if(e.preventDefault(),e.stopPropagation(),this._sidebarActiveGroup===this)this._showDrawer&&this._handleClick();else{if(i._childLevel>=2&&(null===(t=this._sidebarActiveGroup)||void 0===t?void 0:t.shadowRoot)){const e=this._sidebarActiveGroup.shadowRoot.querySelector("[tabindex]");null==e||e.focus()}}return;case"ArrowRight":if(e.preventDefault(),e.stopPropagation(),this._sidebarActiveGroup===this){if(null===(s=this._drawerItems)||void 0===s?void 0:s.length)if(this._showDrawer){const e=this._drawerItems[0];if(null==e?void 0:e.shadowRoot){const t=e.shadowRoot.querySelector("[tabindex]");null==t||t.focus()}}else this._handleClick()}else 1===this._childLevel&&this._childElements.length>0&&this._handleClick();return}}_getChildLevel(){let e=this.parentElement,t=1;for(;"sgds-sidebar-group"===(null==e?void 0:e.tagName.toLowerCase());)t+=1,e=e.parentElement;const s=null==e?void 0:e.classList.contains("sidebar-nested-overlay");this._childLevel=s?t+1:t}}In.styles=Vi.styles,t([ze({type:String,reflect:!0})],In.prototype,"title",void 0),t([ze({type:String,reflect:!0})],In.prototype,"name",void 0),t([No({context:Zn,subscribe:!0}),Pe()],In.prototype,"_sidebarCollapsed",void 0),t([No({context:Mn,subscribe:!0}),Pe()],In.prototype,"_sidebarActiveItem",void 0),t([No({context:Sn,subscribe:!0}),Pe()],In.prototype,"_sidebarActiveGroup",void 0),t([No({context:Vn,subscribe:!0}),Pe()],In.prototype,"_drawerItems",void 0),t([No({context:zn,subscribe:!0}),Pe()],In.prototype,"_showDrawer",void 0),t([No({context:Pn,subscribe:!0}),Pe()],In.prototype,"_isOverlay",void 0),t([Pe()],In.prototype,"_childLevel",void 0),t([Pe()],In.prototype,"_selected",void 0),t([Pe()],In.prototype,"_hidden",void 0),t([Pe()],In.prototype,"_childElements",void 0),t([Pe()],In.prototype,"_childActive",void 0),t([Ee({flatten:!0})],In.prototype,"_defaultNodes",void 0);class An extends In{constructor(){super(...arguments),this._showMenu=!1}get showMenu(){return this._showMenu}_handleActiveItemContext(){this._childLevel>1&&this._sidebarActiveItem&&this.contains(this._sidebarActiveItem)&&(this._showMenu=!0)}_handleClick(){1!==this._childLevel?(this._showMenu=!this._showMenu,this._childElements.forEach(e=>{e._hidden=!this._showMenu})):super._handleClick()}_getIcon(){return 1===this._childLevel?"chevron-right":this._showMenu?"chevron-down":"chevron-up"}_handleSlotChange(){super._handleSlotChange(),this._childElements.forEach(e=>{e._hidden=!this._showMenu})}render(){return te`
1690
+ `}}Cn.styles=[...wa.styles,fa,xn],Cn.childName="sgds-select-option",Cn.dependencies={"sgds-icon":_t,"sgds-spinner":Ma,[Cn.childName]:kn},t([ze({type:Boolean,reflect:!0})],Cn.prototype,"noValidate",void 0),t([Ee({flatten:!0,selector:"sgds-select-option"})],Cn.prototype,"options",void 0),t([nt("value",{waitUntilFirstUpdate:!0})],Cn.prototype,"_handleValueChange",null);var $n=r`.sidebar{display:flex;flex-direction:column;height:100%;position:relative;transition:width var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard);width:var(--sgds-dimension-288);z-index:var(--sgds-z-index-sticky)}.sidebar:not(.overlay).sidebar--collapsed{width:var(--sgds-dimension-72)}.overlay{left:0;position:absolute;top:0}.overlay.sidebar--collapsed{width:var(--sgds-dimension-0)}.sidebar-top{align-items:center;display:flex;gap:var(--sgds-gap-md);justify-content:space-between;padding:0 var(--sgds-padding-xs)}:not(.overlay).sidebar--collapsed .sidebar-brand-name{display:none}:not(.overlay).sidebar--collapsed .sidebar-top{justify-content:center}.sidebar-main{background-color:var(--sgds-surface-default);border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--sgds-padding-lg) 0;position:relative;z-index:1}.overlay .sidebar-main{left:0;transition:left var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.overlay.sidebar--collapsed .sidebar-main{left:calc(var(--sgds-dimension-288)*-1)}.sidebar-wrapper{display:flex;flex-direction:column;height:100%;justify-content:space-between}.sidebar-content{display:flex;flex:1;flex-direction:column;gap:var(--sgds-gap-md);margin-top:var(--sgds-margin-lg);overflow-y:auto}slot[name=lower]::slotted(*){margin-top:var(--sgds-margin-lg)}.sidebar-nested-overlay{background-color:var(--sgds-surface-raised);overflow-y:auto;padding:var(--sgds-padding-md) var(--sgds-padding-xs);transition:all var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard);transition-property:opacity left;width:var(--sgds-dimension-288);z-index:0}.sidebar--overlay,.sidebar-nested-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;top:0}.sidebar--overlay{background-color:var(--sgds-bg-overlay);content:"";transition:all var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard);width:100vw}.sidebar--overlay.show{opacity:1;pointer-events:unset}.sidebar-nested-overlay.show{border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);left:var(--sgds-dimension-288);opacity:1;pointer-events:auto}:not(.overlay).sidebar--collapsed .sidebar-nested-overlay.show{left:var(--sgds-dimension-72)}.sidebar-nested-overlay sgds-icon-button{display:none}.sidebar::-webkit-scrollbar{width:var(--sgds-dimension-2)}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-xs)}.sidebar::-webkit-scrollbar-thumb:hover{background:var(--sgds-color-subtle)}@media screen and (max-width:767px){.sidebar-nested-overlay sgds-icon-button{display:block}.sidebar,.sidebar-nested-overlay{width:var(--sgds-dimension-256)}.sidebar-nested-overlay,.sidebar-nested-overlay.show{left:var(--sgds-dimension-256)}}@media screen and (max-width:511px){.sidebar--overlay{display:none}.sidebar{position:absolute;width:100dvw}.sidebar-nested-overlay{left:-100dvw;width:100dvw;z-index:2}.sidebar-nested-overlay.show,:not(.overlay).sidebar--collapsed .sidebar-nested-overlay.show{left:0}.overlay.sidebar--collapsed .sidebar-main{left:calc(100dvw*-1)}}`;const Sn="sidebar-active-group",Mn="sidebar-active",Zn="sidebar-collapsed",Vn="sidebar-drawer-items",zn="sidebar-drawer-open",Pn="sidebar-drawer-overlay";var Ln=r`.sidebar-item{border-radius:var(--sgds-border-radius-md);cursor:pointer;padding:var(--sgds-padding-xs);transition:background-color .15s ease-in-out,color .15s ease-in-out}.sidebar-item.active,.sidebar-item:focus-visible,.sidebar-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.sidebar-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.sidebar-item-label-wrapper,.sidebar-item-label-wrapper>div{align-items:center;display:flex;gap:var(--sgds-gap-xs)}.sidebar-item-label-wrapper{justify-content:space-between;padding:var(--sgds-padding-3-xs) var(--sgds-padding-2-xs)}.sidebar-item-label{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;display:-webkit-box;font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs);max-height:calc(var(--sgds-line-height-20, 20px)*2);overflow:hidden}.sidebar-item-label.offset{color:var(--sgds-color-subtle);margin-left:var(--sgds-margin-2-xl)}.sidebar-item-leaf.active .sidebar-item-label.offset,.sidebar-item-leaf:focus-visible .sidebar-item-label.offset,.sidebar-item-leaf:hover .sidebar-item-label.offset{color:var(--sgds-color-default)}.sidebar-item-leaf.active,.sidebar-item-leaf:focus-visible,.sidebar-item-leaf:hover{background-color:var(--sgds-bg-translucent-subtle)}.sidebar-item-label-wrapper .sidebar-item.active{background-color:var(--sgds-surface-raised);color:var(--sgds-primary-color-default)}.sidebar-item-label-wrapper .sidebar-item-indicator{align-items:center;display:flex;gap:var(--sgds-gap-2-xs)}.sidebar-item--collapsed{margin:auto;width:var(--sgds-dimension-40)}.sidebar-item--collapsed .sidebar-item-indicator,.sidebar-item--collapsed .sidebar-item-label{display:none}.sidebar-item--collapsed .sidebar-item-label-wrapper{justify-content:center}.sidebar-submenu{overflow:hidden}.sidebar-submenu>div{margin-top:-100%;opacity:0;pointer-events:none;transition:all var(--sgds-motion-duration-standard) var(--sgds-motion-easing-standard)}.sidebar-submenu.show>div{margin-top:0;opacity:1;pointer-events:auto}.sidebar-submenu--collapsed{display:none}`;class An extends Oe{constructor(){super(...arguments),this.title="",this.name="",this._sidebarCollapsed=!1,this._sidebarActiveItem=null,this._sidebarActiveGroup=null,this._drawerItems=null,this._showDrawer=!1,this._isOverlay=!1,this._childLevel=1,this._selected=!1,this._hidden=!1,this._childElements=[],this._childActive=!1}connectedCallback(){super.connectedCallback(),this._getChildLevel(),this.addEventListener("keydown",this._handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown)}firstUpdated(e){super.firstUpdated(e),this._getChildLevel()}updated(){var e;if(2===this._childLevel)this._hidden=!this.closest(".sidebar-nested-overlay");else if(this._childLevel>=3){const t=!!this.closest(".sidebar-nested-overlay"),s=this.parentElement,i=null!==(e=null==s?void 0:s.showMenu)&&void 0!==e&&e;this._hidden=!t||!i}}_handleSlotChange(){this._childElements=this._defaultNodes}_handleClick(){this.emit("i-sgds-click",{detail:{element:this,level:this._childLevel}})}_handleKeyDown(e){var t,s;const i=e.target;switch(e.key){case" ":case"Enter":return e.preventDefault(),e.stopPropagation(),void(e.target===this&&this._handleClick());case"ArrowLeft":if(e.preventDefault(),e.stopPropagation(),this._sidebarActiveGroup===this)this._showDrawer&&this._handleClick();else{if(i._childLevel>=2&&(null===(t=this._sidebarActiveGroup)||void 0===t?void 0:t.shadowRoot)){const e=this._sidebarActiveGroup.shadowRoot.querySelector("[tabindex]");null==e||e.focus()}}return;case"ArrowRight":if(e.preventDefault(),e.stopPropagation(),this._sidebarActiveGroup===this){if(null===(s=this._drawerItems)||void 0===s?void 0:s.length)if(this._showDrawer){const e=this._drawerItems[0];if(null==e?void 0:e.shadowRoot){const t=e.shadowRoot.querySelector("[tabindex]");null==t||t.focus()}}else this._handleClick()}else 1===this._childLevel&&this._childElements.length>0&&this._handleClick();return}}_getChildLevel(){let e=this.parentElement,t=1;for(;"sgds-sidebar-group"===(null==e?void 0:e.tagName.toLowerCase());)t+=1,e=e.parentElement;const s=null==e?void 0:e.classList.contains("sidebar-nested-overlay");this._childLevel=s?t+1:t}}An.styles=Vi.styles,t([ze({type:String,reflect:!0})],An.prototype,"title",void 0),t([ze({type:String,reflect:!0})],An.prototype,"name",void 0),t([No({context:Zn,subscribe:!0}),Pe()],An.prototype,"_sidebarCollapsed",void 0),t([No({context:Mn,subscribe:!0}),Pe()],An.prototype,"_sidebarActiveItem",void 0),t([No({context:Sn,subscribe:!0}),Pe()],An.prototype,"_sidebarActiveGroup",void 0),t([No({context:Vn,subscribe:!0}),Pe()],An.prototype,"_drawerItems",void 0),t([No({context:zn,subscribe:!0}),Pe()],An.prototype,"_showDrawer",void 0),t([No({context:Pn,subscribe:!0}),Pe()],An.prototype,"_isOverlay",void 0),t([Pe()],An.prototype,"_childLevel",void 0),t([Pe()],An.prototype,"_selected",void 0),t([Pe()],An.prototype,"_hidden",void 0),t([Pe()],An.prototype,"_childElements",void 0),t([Pe()],An.prototype,"_childActive",void 0),t([Ee({flatten:!0})],An.prototype,"_defaultNodes",void 0);class Dn extends An{constructor(){super(...arguments),this._showMenu=!1}get showMenu(){return this._showMenu}_handleActiveItemContext(){this._childLevel>1&&this._sidebarActiveItem&&this.contains(this._sidebarActiveItem)&&(this._showMenu=!0)}_handleClick(){1!==this._childLevel?(this._showMenu=!this._showMenu,this._childElements.forEach(e=>{e._hidden=!this._showMenu})):super._handleClick()}_getIcon(){return 1===this._childLevel?"chevron-right":this._showMenu?"chevron-down":"chevron-up"}_handleSlotChange(){super._handleSlotChange(),this._childElements.forEach(e=>{e._hidden=!this._showMenu})}render(){return te`
1691
1691
  <div
1692
1692
  role="button"
1693
1693
  class=${Ke({"sidebar-item":!0,"sidebar-item--collapsed":!this._isOverlay&&this._sidebarCollapsed&&1===this._childLevel,active:this._selected})}
@@ -1716,7 +1716,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1716
1716
  <slot @slotchange=${this._handleSlotChange}></slot>
1717
1717
  </div>
1718
1718
  </div>
1719
- `}}An.styles=[...Oe.styles,Ln],An.dependencies={"sgds-icon":_t},t([Pe()],An.prototype,"_showMenu",void 0),t([nt("_sidebarActiveItem")],An.prototype,"_handleActiveItemContext",null);class Dn extends Oe{constructor(){super(...arguments),this.collapsed=!1,this.active="",this.scrim=!1,this.variant="collapsible",this.ariaLabel="Sidebar navigation",this._sidebarActiveGroup=null,this._sidebarCollapsed=!1,this._sidebarActiveItem=null,this._drawerItems=[],this._showDrawer=!1,this._isOverlay=!1,this._isNarrowViewport=!1,this._boundHandleResize=this._handleResize.bind(this),this._boundHandleItemClick=this._handleItemClick.bind(this),this._handleClickOutOfElement=e=>{if((e.composedPath().find(e=>{var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains("sidebar--overlay")})||!e.composedPath().includes(this))&&(this._showDrawer=!1,this._isOverlay)){e.target.getAttribute("data-sidebar-toggler")||(this.collapsed=!0)}}}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this._handleActive()}),null===window||void 0===window||window.addEventListener("resize",this._boundHandleResize),this._handleResize(),this.addEventListener("i-sgds-click",this._boundHandleItemClick)}disconnectedCallback(){super.disconnectedCallback(),null===document||void 0===document||document.removeEventListener("click",this._handleClickOutOfElement),null===window||void 0===window||window.removeEventListener("resize",this._boundHandleResize),this.removeEventListener("i-sgds-click",this._boundHandleItemClick)}firstUpdated(){null===document||void 0===document||document.addEventListener("click",this._handleClickOutOfElement),this._updateOverlayState()}updated(){this._handleActive()}_handleCollapsed(){"persistent"!==this.variant&&(this._sidebarCollapsed=this.collapsed)}_handleActiveItem(e){if(!this._sidebarActiveItem)return;this._getAllItems().forEach(e=>e._selected=!1),this._drawerItems.forEach(e=>e._selected=!1),e&&(e._selected=!1);const t=this._sidebarActiveItem._childLevel;if(this._sidebarActiveItem._selected=!0,1===t)this._sidebarActiveItem._childElements.length>0?this._setNodesToDrawer(this._sidebarActiveItem):this._revertNodesToParent();else{let e=this._sidebarActiveItem.parentElement;for(;e instanceof An&&e._childLevel>=1;)1===e._childLevel&&(e.classList.contains("sidebar-nested-overlay")||this._setNodesToDrawer(e)),e._selected=!0,e=e.parentElement;this._sidebarActiveGroup&&(this._sidebarActiveGroup._selected=!0)}}_handleActive(){this.active?this._sidebarActiveItem=this._getActiveChild():this._sidebarActiveItem=null}_getActiveChild(){var e;const t=e=>{var s;for(const i of e){if(i.name===this.active)return i;if(null===(s=i._childElements)||void 0===s?void 0:s.length){const e=t(i._childElements);if(e)return e}}return null};return null!==(e=t(this._defaultNodes))&&void 0!==e?e:t(this._drawerItems)}_handleResize(){const e=window.innerWidth<1280;e!==this._isNarrowViewport&&(this._isNarrowViewport=e,this.collapsed=this._isNarrowViewport),this._updateOverlayState()}_updateOverlayState(){"overlay"===this.variant?this._isOverlay=!0:"collapsible"===this.variant?this._isOverlay=window.innerWidth<Uo:this._isOverlay=!1}_setNodesToDrawer(e){e&&(this._sidebarActiveGroup&&e!==this._sidebarActiveGroup&&this._revertNodesToParent(),this._sidebarActiveGroup=e,this._drawerItems=[...this._sidebarActiveGroup._childElements])}_revertNodesToParent(){this._sidebarActiveGroup&&(this._drawerItems.forEach(e=>{var t;null===(t=this._sidebarActiveGroup)||void 0===t||t.append(e)}),this._drawerItems=[]),this._sidebarActiveGroup=null}_getAllItems(){var e;const t=e=>{var s;const i=[];for(const a of e)i.push(a),(null===(s=a._childElements)||void 0===s?void 0:s.length)&&i.push(...t(a._childElements));return i};return t(null!==(e=this._defaultNodes)&&void 0!==e?e:[])}_handleItemClick(e){const t=e.detail.element;if(t===this._sidebarActiveGroup)this._showDrawer=!this._showDrawer;else{if(this.active!==t.name){const e=this._getAllItems();this.active=t.name,e.forEach(e=>e._selected=!1)}if(t._childElements.length>0)this._showDrawer=!0;else{this._showDrawer=!1;const e=t.querySelector(":scope > a");e&&e.click()}this.emit("sgds-select",{detail:{activeItem:t.name}})}}toggleCollapsed(){"persistent"!==this.variant&&(this.collapsed=!this.collapsed)}render(){return te`
1719
+ `}}Dn.styles=[...Oe.styles,Ln],Dn.dependencies={"sgds-icon":_t},t([Pe()],Dn.prototype,"_showMenu",void 0),t([nt("_sidebarActiveItem")],Dn.prototype,"_handleActiveItemContext",null);class In extends Oe{constructor(){super(...arguments),this.collapsed=!1,this.active="",this.scrim=!1,this.variant="collapsible",this.ariaLabel="Sidebar navigation",this._sidebarActiveGroup=null,this._sidebarCollapsed=!1,this._sidebarActiveItem=null,this._drawerItems=[],this._showDrawer=!1,this._isOverlay=!1,this._isNarrowViewport=!1,this._boundHandleResize=this._handleResize.bind(this),this._boundHandleItemClick=this._handleItemClick.bind(this),this._handleClickOutOfElement=e=>{if((e.composedPath().find(e=>{var t;return null===(t=null==e?void 0:e.classList)||void 0===t?void 0:t.contains("sidebar--overlay")})||!e.composedPath().includes(this))&&(this._showDrawer=!1,this._isOverlay)){e.target.getAttribute("data-sidebar-toggler")||(this.collapsed=!0)}}}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this._handleActive()}),null===window||void 0===window||window.addEventListener("resize",this._boundHandleResize),this._handleResize(),this.addEventListener("i-sgds-click",this._boundHandleItemClick)}disconnectedCallback(){super.disconnectedCallback(),null===document||void 0===document||document.removeEventListener("click",this._handleClickOutOfElement),null===window||void 0===window||window.removeEventListener("resize",this._boundHandleResize),this.removeEventListener("i-sgds-click",this._boundHandleItemClick)}firstUpdated(){null===document||void 0===document||document.addEventListener("click",this._handleClickOutOfElement),this._updateOverlayState()}updated(){this._handleActive()}_handleCollapsed(){"persistent"!==this.variant&&(this._sidebarCollapsed=this.collapsed)}_handleActiveItem(e){if(!this._sidebarActiveItem)return;this._getAllItems().forEach(e=>e._selected=!1),this._drawerItems.forEach(e=>e._selected=!1),e&&(e._selected=!1);const t=this._sidebarActiveItem._childLevel;if(this._sidebarActiveItem._selected=!0,1===t)this._sidebarActiveItem._childElements.length>0?this._setNodesToDrawer(this._sidebarActiveItem):this._revertNodesToParent();else{let e=this._sidebarActiveItem.parentElement;for(;e instanceof Dn&&e._childLevel>=1;)1===e._childLevel&&(e.classList.contains("sidebar-nested-overlay")||this._setNodesToDrawer(e)),e._selected=!0,e=e.parentElement;this._sidebarActiveGroup&&(this._sidebarActiveGroup._selected=!0)}}_handleActive(){this.active?this._sidebarActiveItem=this._getActiveChild():this._sidebarActiveItem=null}_getActiveChild(){var e;const t=e=>{var s;for(const i of e){if(i.name===this.active)return i;if(null===(s=i._childElements)||void 0===s?void 0:s.length){const e=t(i._childElements);if(e)return e}}return null};return null!==(e=t(this._defaultNodes))&&void 0!==e?e:t(this._drawerItems)}_handleResize(){const e=window.innerWidth<1280;e!==this._isNarrowViewport&&(this._isNarrowViewport=e,this.collapsed=this._isNarrowViewport),this._updateOverlayState()}_updateOverlayState(){"overlay"===this.variant?this._isOverlay=!0:"collapsible"===this.variant?this._isOverlay=window.innerWidth<Uo:this._isOverlay=!1}_setNodesToDrawer(e){e&&(this._sidebarActiveGroup&&e!==this._sidebarActiveGroup&&this._revertNodesToParent(),this._sidebarActiveGroup=e,this._drawerItems=[...this._sidebarActiveGroup._childElements])}_revertNodesToParent(){this._sidebarActiveGroup&&(this._drawerItems.forEach(e=>{var t;null===(t=this._sidebarActiveGroup)||void 0===t||t.append(e)}),this._drawerItems=[]),this._sidebarActiveGroup=null}_getAllItems(){var e;const t=e=>{var s;const i=[];for(const a of e)i.push(a),(null===(s=a._childElements)||void 0===s?void 0:s.length)&&i.push(...t(a._childElements));return i};return t(null!==(e=this._defaultNodes)&&void 0!==e?e:[])}_handleItemClick(e){const t=e.detail.element;if(t===this._sidebarActiveGroup)this._showDrawer=!this._showDrawer;else{if(this.active!==t.name){const e=this._getAllItems();this.active=t.name,e.forEach(e=>e._selected=!1)}if(t._childElements.length>0)this._showDrawer=!0;else{this._showDrawer=!1;const e=t.querySelector(":scope > a");e&&e.click()}this.emit("sgds-select",{detail:{activeItem:t.name}})}}toggleCollapsed(){"persistent"!==this.variant&&(this.collapsed=!this.collapsed)}render(){return te`
1720
1720
  <nav
1721
1721
  class=${Ke({sidebar:!0,"sidebar--collapsed":this._sidebarCollapsed,overlay:this._isOverlay})}
1722
1722
  aria-label=${this.ariaLabel}
@@ -1764,7 +1764,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1764
1764
  ${this._drawerItems}
1765
1765
  </div>
1766
1766
  </nav>
1767
- `}}Dn.styles=[...Oe.styles,$n],Dn.dependencies={"sgds-icon-button":Pa},t([ze({type:Boolean,reflect:!0})],Dn.prototype,"collapsed",void 0),t([ze({type:String,reflect:!0})],Dn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Dn.prototype,"scrim",void 0),t([ze({type:String,reflect:!0})],Dn.prototype,"variant",void 0),t([ze({type:String})],Dn.prototype,"ariaLabel",void 0),t([Ro({context:Sn}),Pe()],Dn.prototype,"_sidebarActiveGroup",void 0),t([Ro({context:Zn}),Pe()],Dn.prototype,"_sidebarCollapsed",void 0),t([Ro({context:Mn}),Pe()],Dn.prototype,"_sidebarActiveItem",void 0),t([Ro({context:Vn}),Pe()],Dn.prototype,"_drawerItems",void 0),t([Ro({context:zn}),Pe()],Dn.prototype,"_showDrawer",void 0),t([Ro({context:Pn}),Pe()],Dn.prototype,"_isOverlay",void 0),t([Ee()],Dn.prototype,"_defaultNodes",void 0),t([Pe()],Dn.prototype,"_isNarrowViewport",void 0),t([nt("collapsed")],Dn.prototype,"_handleCollapsed",null),t([nt("_sidebarActiveItem")],Dn.prototype,"_handleActiveItem",null),t([nt("active")],Dn.prototype,"_handleActive",null);var En=r`:host{--sidenav-sticky-top:0rem}.sticky{height:calc(100vh - var(--sidenav-sticky-top));overflow-y:visible;position:sticky;top:var(--sidenav-sticky-top)}`;class Bn extends Oe{constructor(){super(...arguments),this.sticky=!1}get items(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}async onToggle(e){const t="SGDS-SIDENAV-LINK"===e.target.tagName;if(e.defaultPrevented||t)return;this.items}render(){return te`
1767
+ `}}In.styles=[...Oe.styles,$n],In.dependencies={"sgds-icon-button":Pa},t([ze({type:Boolean,reflect:!0})],In.prototype,"collapsed",void 0),t([ze({type:String,reflect:!0})],In.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],In.prototype,"scrim",void 0),t([ze({type:String,reflect:!0})],In.prototype,"variant",void 0),t([ze({type:String})],In.prototype,"ariaLabel",void 0),t([Ro({context:Sn}),Pe()],In.prototype,"_sidebarActiveGroup",void 0),t([Ro({context:Zn}),Pe()],In.prototype,"_sidebarCollapsed",void 0),t([Ro({context:Mn}),Pe()],In.prototype,"_sidebarActiveItem",void 0),t([Ro({context:Vn}),Pe()],In.prototype,"_drawerItems",void 0),t([Ro({context:zn}),Pe()],In.prototype,"_showDrawer",void 0),t([Ro({context:Pn}),Pe()],In.prototype,"_isOverlay",void 0),t([Ee()],In.prototype,"_defaultNodes",void 0),t([Pe()],In.prototype,"_isNarrowViewport",void 0),t([nt("collapsed")],In.prototype,"_handleCollapsed",null),t([nt("_sidebarActiveItem")],In.prototype,"_handleActiveItem",null),t([nt("active")],In.prototype,"_handleActive",null);var En=r`:host{--sidenav-sticky-top:0rem}.sticky{height:calc(100vh - var(--sidenav-sticky-top));overflow-y:visible;position:sticky;top:var(--sidenav-sticky-top)}`;class Bn extends Oe{constructor(){super(...arguments),this.sticky=!1}get items(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}async onToggle(e){const t="SGDS-SIDENAV-LINK"===e.target.tagName;if(e.defaultPrevented||t)return;this.items}render(){return te`
1768
1768
  <nav class=${Ke({sticky:this.sticky})}>
1769
1769
  <div>
1770
1770
  <slot @click=${this.onToggle}></slot>
@@ -1796,7 +1796,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1796
1796
  </div>
1797
1797
  `,t=te` <slot @slotchange=${this._handleSlotChange} class="no-menu-default"></slot> `;return te`
1798
1798
  <div class="sidenav-item" aria-haspopup="${!this.isLink}">${this.isLink?t:e}</div>
1799
- `}}On.styles=[...Oe.styles,Hn],On.dependencies={"sgds-icon":_t},t([Ae(".sidenav-body")],On.prototype,"body",void 0),t([Ae(".sidenav-btn")],On.prototype,"header",void 0),t([ze({type:Boolean,reflect:!0})],On.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],On.prototype,"disabled",void 0),t([ze({type:String})],On.prototype,"ariaLabel",void 0),t([Pe()],On.prototype,"isLink",void 0),t([nt("active",{waitUntilFirstUpdate:!0})],On.prototype,"_handleOpenChange",null),t([Ee()],On.prototype,"_items",void 0),at("sidenav.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:200,easing:"ease-in-out"}}),at("sidenav.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:200,easing:"ease-in-out"}});var Tn=r`:host([class^=third-level]) ::slotted(a){padding-left:calc(var(--sgds-padding-xl) + var(--sgds-padding-3-xl))}::slotted(a){--sgds-link-color-default:var(--sgds-color-default);border-radius:var(--sgds-border-radius-md);color:var(--sgds-color-default,var(--sgds-link-color-default));display:block;padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-3-xl);text-decoration:none!important}:host([active]) ::slotted(a){--sgds-link-color-default:var(--sgds-primary-color-emphasis);background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-default))}:host(:not([disabled]):not([active])) ::slotted(a:hover){background-color:var(--sgds-bg-translucent-subtle)}::slotted(a:focus),::slotted(a:focus-visible),::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default,var(--sgds-link-color-emphasis))}:host([active]) ::slotted(a:focus),:host([active]) ::slotted(a:focus-visible),:host([active]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-emphasis);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-emphasis))}:host([disabled]) ::slotted(a){opacity:var(--sgds-opacity-40);pointer-events:none}:host([disabled]) ::slotted(a:focus-visible){outline:0}::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle)}::slotted(a:focus-visible){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([active]) ::slotted(a:focus-visible){background-color:var(--sgds-primary-bg-translucent)}`;class Fn extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-disabled",`${this.disabled}`)}_handleDisabled(){this.setAttribute("aria-disabled",`${this.disabled}`),this._anchor[0].setAttribute("aria-disabled",`${this.disabled}`),this.disabled||this._anchor[0].removeAttribute("tabindex")}_handleSlotChange(){this._anchor[0].setAttribute("aria-disabled",`${this.disabled}`),this.disabled&&(this._anchor[0].setAttribute("tabindex","-1"),this._anchor[0].removeAttribute("href"),this._anchor[0].setAttribute("role","link"))}render(){return te` <slot @slotchange=${this._handleSlotChange}></slot> `}}Fn.styles=[...Oe.styles,Tn],t([ze({type:Boolean,reflect:!0})],Fn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Fn.prototype,"disabled",void 0),t([Ee({flatten:!0})],Fn.prototype,"_anchor",void 0),t([nt("disabled",{waitUntilFirstUpdate:!0})],Fn.prototype,"_handleDisabled",null);var Rn=r`.skeleton{--bg:var(--sgds-bg-translucent-subtle);background-color:var(--bg);border-radius:var(--sgds-border-radius-sm);display:flex;flex-direction:column;gap:var(--sgds-gap-xs);max-width:100%}.skeleton.skeleton-paragraph{background-color:transparent}.skeleton.skeleton-paragraph.auto-size-rows>div[class*=skeleton-row]{background-color:var(--sgds-bg-translucent);border-radius:var(--sgds-border-radius-sm);height:-webkit-fill-available}.sheen{--sheen-color:var(--sgds-bg-translucent);animation:sheen 8s ease-in-out infinite;background:linear-gradient(270deg,var(--bg) 0,var(--sheen-color) 33.33%,var(--sheen-color) 66.67%,var(--bg) 100%);background-size:400% 100%}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}`;class Nn extends Oe{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="",this.sheen=!1}render(){const e={width:this.width||void 0,height:this.height||void 0,borderRadius:this.borderRadius||void 0};return te`
1799
+ `}}On.styles=[...Oe.styles,Hn],On.dependencies={"sgds-icon":_t},t([De(".sidenav-body")],On.prototype,"body",void 0),t([De(".sidenav-btn")],On.prototype,"header",void 0),t([ze({type:Boolean,reflect:!0})],On.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],On.prototype,"disabled",void 0),t([ze({type:String})],On.prototype,"ariaLabel",void 0),t([Pe()],On.prototype,"isLink",void 0),t([nt("active",{waitUntilFirstUpdate:!0})],On.prototype,"_handleOpenChange",null),t([Ee()],On.prototype,"_items",void 0),at("sidenav.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:200,easing:"ease-in-out"}}),at("sidenav.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:200,easing:"ease-in-out"}});var Tn=r`:host([class^=third-level]) ::slotted(a){padding-left:calc(var(--sgds-padding-xl) + var(--sgds-padding-3-xl))}::slotted(a){--sgds-link-color-default:var(--sgds-color-default);border-radius:var(--sgds-border-radius-md);color:var(--sgds-color-default,var(--sgds-link-color-default));display:block;padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-3-xl);text-decoration:none!important}:host([active]) ::slotted(a){--sgds-link-color-default:var(--sgds-primary-color-emphasis);background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-default))}:host(:not([disabled]):not([active])) ::slotted(a:hover){background-color:var(--sgds-bg-translucent-subtle)}::slotted(a:focus),::slotted(a:focus-visible),::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default,var(--sgds-link-color-emphasis))}:host([active]) ::slotted(a:focus),:host([active]) ::slotted(a:focus-visible),:host([active]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-emphasis);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-emphasis))}:host([disabled]) ::slotted(a){opacity:var(--sgds-opacity-40);pointer-events:none}:host([disabled]) ::slotted(a:focus-visible){outline:0}::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle)}::slotted(a:focus-visible){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([active]) ::slotted(a:focus-visible){background-color:var(--sgds-primary-bg-translucent)}`;class Fn extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-disabled",`${this.disabled}`)}_handleDisabled(){this.setAttribute("aria-disabled",`${this.disabled}`),this._anchor[0].setAttribute("aria-disabled",`${this.disabled}`),this.disabled||this._anchor[0].removeAttribute("tabindex")}_handleSlotChange(){this._anchor[0].setAttribute("aria-disabled",`${this.disabled}`),this.disabled&&(this._anchor[0].setAttribute("tabindex","-1"),this._anchor[0].removeAttribute("href"),this._anchor[0].setAttribute("role","link"))}render(){return te` <slot @slotchange=${this._handleSlotChange}></slot> `}}Fn.styles=[...Oe.styles,Tn],t([ze({type:Boolean,reflect:!0})],Fn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Fn.prototype,"disabled",void 0),t([Ee({flatten:!0})],Fn.prototype,"_anchor",void 0),t([nt("disabled",{waitUntilFirstUpdate:!0})],Fn.prototype,"_handleDisabled",null);var Rn=r`.skeleton{--bg:var(--sgds-bg-translucent-subtle);background-color:var(--bg);border-radius:var(--sgds-border-radius-sm);display:flex;flex-direction:column;gap:var(--sgds-gap-xs);max-width:100%}.skeleton.skeleton-paragraph{background-color:transparent}.skeleton.skeleton-paragraph.auto-size-rows>div[class*=skeleton-row]{background-color:var(--sgds-bg-translucent);border-radius:var(--sgds-border-radius-sm);height:-webkit-fill-available}.sheen{--sheen-color:var(--sgds-bg-translucent);animation:sheen 8s ease-in-out infinite;background:linear-gradient(270deg,var(--bg) 0,var(--sheen-color) 33.33%,var(--sheen-color) 66.67%,var(--bg) 100%);background-size:400% 100%}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}`;class Nn extends Oe{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="",this.sheen=!1}render(){const e={width:this.width||void 0,height:this.height||void 0,borderRadius:this.borderRadius||void 0};return te`
1800
1800
  <div
1801
1801
  class=${Ke({skeleton:!0,"skeleton-paragraph":this.rows>0,"auto-size-rows":this.rows>0,sheen:this.sheen&&!this.rows})}
1802
1802
  style=${Object.entries(e).filter(([e,t])=>t).map(([e,t])=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${t}`).join("; ")}
@@ -1806,7 +1806,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1806
1806
  style=${this.borderRadius?`border-radius: ${this.borderRadius}`:ae}
1807
1807
  ></div>`}):ae}
1808
1808
  </div>
1809
- `}}Nn.styles=[Rn],t([Ae(".skeleton")],Nn.prototype,"skeleton",void 0),t([ze({type:String,reflect:!0})],Nn.prototype,"width",void 0),t([ze({type:String,reflect:!0})],Nn.prototype,"height",void 0),t([ze({type:String,reflect:!0})],Nn.prototype,"borderRadius",void 0),t([ze({type:Number,reflect:!0})],Nn.prototype,"rows",void 0),t([ze({type:Boolean,reflect:!0})],Nn.prototype,"sheen",void 0);var jn=r`:host{display:contents}.stepper-item-container{flex-basis:1em;flex-grow:1;flex-shrink:1;position:relative;width:fit-content}.stepper-item,.stepper-item-container{align-items:center;display:flex;flex-direction:column}.stepper-item{gap:var(--sgds-gap-sm)}.stepper-item.vertical{align-items:flex-start;flex-direction:row;margin-bottom:var(--sgds-padding-xl)}.stepper-item.clickable:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.stepper-item:not(.first):not(.vertical):before{background:var(--sgds-border-color-translucent);content:" ";height:var(--sgds-dimension-2);left:calc(-50% + 16px);position:absolute;top:15px;width:calc(100% - var(--sgds-dimension-32))}:host(:not(.last)) .stepper-item-container .stepper-item.vertical:after{background:var(--sgds-bg-translucent);content:" ";height:calc(100% - var(--sgds-dimension-32));left:15px;position:absolute;top:32px;width:var(--sgds-dimension-2)}.stepper-item-container .stepper-item.active:not(.first):before,.stepper-item-container .stepper-item.completed:not(.first):before,:host(:not(.last)) .stepper-item-container .stepper-item.completed:after{background:var(--sgds-primary-border-color-default)}.stepper-item.clickable{cursor:pointer}.stepper-marker{align-items:center;background:var(--sgds-bg-translucent);border:var(--sgds-border-width-2) solid var(--sgds-border-color-transparent);border-radius:50%;color:var(--sgds-color-default);display:flex;flex-shrink:0;height:var(--sgds-dimension-32);justify-content:center;width:var(--sgds-dimension-32);z-index:1}.stepper-detail{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs);max-width:var(--sgds-dimension-128);text-align:center}.stepper-item.vertical .stepper-detail{max-width:unset;padding:var(--sgds-padding-2-xs) 0 0;text-align:left}.stepper-item:not(.active):not(.completed) .stepper-label{color:var(--sgds-color-subtle)}.stepper-item.clickable:focus .stepper-marker,.stepper-item.clickable:focus-visible .stepper-marker,.stepper-item.clickable:hover .stepper-marker{background-color:var(--sgds-primary-surface-emphasis);border-color:var(--sgds-border-color-transparent);color:var(--sgds-color-fixed-light)}.stepper-item.clickable:focus .stepper-label,.stepper-item.clickable:focus-visible .stepper-label,.stepper-item.clickable:hover .stepper-label{color:var(--sgds-primary-color-emphasis)}.stepper-item.clickable .stepper-label{color:var(--sgds-primary-color-default)}.stepper-item.completed .stepper-marker{background-color:var(--sgds-bg-transparent);border:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}.stepper-item.active .stepper-marker{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}.stepper-slot{color:var(--sgds-color-subtle);display:flex;flex-direction:column;font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular);gap:var(--sgds-gap-xs);letter-spacing:var(--sgds-letter-spacing-normal);line-height:var(--sgds-line-height-2-xs)}.stepper-item.disabled{opacity:var(--sgds-opacity-40)}`;class Un extends Oe{constructor(){super(...arguments),this.stepHeader="",this.clickable=!1,this.active=!1,this.disabled=!1,this.completed=!1,this.stepIndex=0,this.orientation="horizontal",this.isFirstOfType=!1}render(){const e=!this.disabled&&this.clickable;return te`
1809
+ `}}Nn.styles=[Rn],t([De(".skeleton")],Nn.prototype,"skeleton",void 0),t([ze({type:String,reflect:!0})],Nn.prototype,"width",void 0),t([ze({type:String,reflect:!0})],Nn.prototype,"height",void 0),t([ze({type:String,reflect:!0})],Nn.prototype,"borderRadius",void 0),t([ze({type:Number,reflect:!0})],Nn.prototype,"rows",void 0),t([ze({type:Boolean,reflect:!0})],Nn.prototype,"sheen",void 0);var jn=r`:host{display:contents}.stepper-item-container{flex-basis:1em;flex-grow:1;flex-shrink:1;position:relative;width:fit-content}.stepper-item,.stepper-item-container{align-items:center;display:flex;flex-direction:column}.stepper-item{gap:var(--sgds-gap-sm)}.stepper-item.vertical{align-items:flex-start;flex-direction:row;margin-bottom:var(--sgds-padding-xl)}.stepper-item.clickable:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.stepper-item:not(.first):not(.vertical):before{background:var(--sgds-border-color-translucent);content:" ";height:var(--sgds-dimension-2);left:calc(-50% + 16px);position:absolute;top:15px;width:calc(100% - var(--sgds-dimension-32))}:host(:not(.last)) .stepper-item-container .stepper-item.vertical:after{background:var(--sgds-bg-translucent);content:" ";height:calc(100% - var(--sgds-dimension-32));left:15px;position:absolute;top:32px;width:var(--sgds-dimension-2)}.stepper-item-container .stepper-item.active:not(.first):before,.stepper-item-container .stepper-item.completed:not(.first):before,:host(:not(.last)) .stepper-item-container .stepper-item.completed:after{background:var(--sgds-primary-border-color-default)}.stepper-item.clickable{cursor:pointer}.stepper-marker{align-items:center;background:var(--sgds-bg-translucent);border:var(--sgds-border-width-2) solid var(--sgds-border-color-transparent);border-radius:50%;color:var(--sgds-color-default);display:flex;flex-shrink:0;height:var(--sgds-dimension-32);justify-content:center;width:var(--sgds-dimension-32);z-index:1}.stepper-detail{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs);max-width:var(--sgds-dimension-128);text-align:center}.stepper-item.vertical .stepper-detail{max-width:unset;padding:var(--sgds-padding-2-xs) 0 0;text-align:left}.stepper-item:not(.active):not(.completed) .stepper-label{color:var(--sgds-color-subtle)}.stepper-item.clickable:focus .stepper-marker,.stepper-item.clickable:focus-visible .stepper-marker,.stepper-item.clickable:hover .stepper-marker{background-color:var(--sgds-primary-surface-emphasis);border-color:var(--sgds-border-color-transparent);color:var(--sgds-color-fixed-light)}.stepper-item.clickable:focus .stepper-label,.stepper-item.clickable:focus-visible .stepper-label,.stepper-item.clickable:hover .stepper-label{color:var(--sgds-primary-color-emphasis)}.stepper-item.clickable .stepper-label{color:var(--sgds-primary-color-default)}.stepper-item.completed .stepper-marker{background-color:var(--sgds-bg-transparent);border:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}.stepper-item.active .stepper-marker{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}.stepper-slot{color:var(--sgds-color-subtle);display:flex;flex-direction:column;font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular);gap:var(--sgds-gap-xs);letter-spacing:var(--sgds-letter-spacing-normal);line-height:var(--sgds-line-height-2-xs)}.stepper-item.disabled{opacity:var(--sgds-opacity-40)}`;class Un extends Oe{constructor(){super(...arguments),this.stepHeader="",this.clickable=!1,this.active=!1,this.disabled=!1,this.completed=!1,this.stepIndex=0,this.orientation="horizontal",this.isFirstOfType=!1}render(){const e=!this.disabled&&this.clickable;return te`
1810
1810
  <div class="stepper-item-container">
1811
1811
  <div
1812
1812
  class="stepper-item ${Ke({first:this.isFirstOfType,active:this.active,completed:this.completed,clickable:this.clickable,vertical:"vertical"===this.orientation,disabled:this.disabled})}"
@@ -1881,7 +1881,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1881
1881
  </div>
1882
1882
  </div>
1883
1883
  </nav>
1884
- `}}Gn.styles=[...Oe.styles,Wn,Mo],Gn.dependencies={"sgds-icon":_t},t([ze({type:Boolean})],Gn.prototype,"hasActionsSlot",void 0),t([Ae("nav")],Gn.prototype,"nav",void 0),t([Ae(".subnav-nav")],Gn.prototype,"mobileNav",void 0),t([Ae(".header-container")],Gn.prototype,"headerContainer",void 0),t([Ae(".subnav-toggler")],Gn.prototype,"toggler",void 0),t([Ae(".subnav-nav-group")],Gn.prototype,"navGroup",void 0),t([Ae(".subnav-actions")],Gn.prototype,"mobileActions",void 0),t([Pe()],Gn.prototype,"isCollapsed",void 0),t([Pe()],Gn.prototype,"isMenuOpen",void 0),t([nt("isMenuOpen",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleOpenChange",null),t([nt("isCollapsed",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleCollapsedChange",null),at("subnav.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:200,easing:"ease-in-out"}}),at("subnav.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:200,easing:"ease-in-out"}});var Jn=r`:host(:not([disabled])[active]:not([active=false])) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle);border-bottom:none}::slotted(*){--sgds-link-color-default:var(--sgds-color-default);box-sizing:border-box;color:var(--sgds-link-color-default,var(--sgds-color-default));cursor:pointer;display:inline-block;font-size:var(--sgds-font-size-label-sm)!important;padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-decoration:none!important;white-space:nowrap;width:100%}::slotted(*):after{height:var(--sgds-icon-size-md)!important;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important;width:var(--sgds-icon-size-md)!important}:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-color-default))}:host(:not([disabled])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default));outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-40)}@media screen and (min-width:1024px){:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);background-color:inherit;border-bottom:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}::slotted(*){border-bottom:var(--sgds-border-width-2) solid transparent;padding:var(--sgds-padding-lg) var(--sgds-padding-none)}}`;class Xn extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1}_handleDisabled(){this.setAttribute("aria-disabled",`${this.disabled}`)}_handleSlotChange(e){const t=e.target,s=t.assignedElements({flatten:!0}).filter(e=>"a"===e.tagName.toLowerCase()||"sgds-link"===e.tagName.toLowerCase());if(s.length>1)console.error("More than one anchor tag is added to sgds-subnav-item");else{if(0===s.length){t.assignedNodes({flatten:!0}).forEach(e=>{if(e.nodeType===Node.TEXT_NODE){const t=document.createElement("a");t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}})}if(1===s.length){const e=s[0];this.active&&e.setAttribute("aria-current","true"),this.disabled&&(e.setAttribute("href","javascript:void(0)"),e.setAttribute("tabindex","-1"))}}}render(){return te`<slot @slotchange=${this._handleSlotChange}></slot>`}}Xn.styles=[...Oe.styles,Jn],t([ze({type:Boolean,reflect:!0})],Xn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Xn.prototype,"disabled",void 0),t([nt("disabled")],Xn.prototype,"_handleDisabled",null);var Qn=r`input{margin:0}.form-check{align-items:center;display:flex;gap:var(--sgds-form-gap-lg)}.form-check-input{--sgds-switch-width:var(--sgds-form-width-xl);--sgds-switch-height:var(--sgds-form-height-md);--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.5 12c0-6.627 5.373-12 12-12s12 5.373 12 12-5.373 12-12 12-12-5.373-12-12Z" fill="%23fff"/></svg>');appearance:none;background-color:var(--sgds-form-surface-subtle);background-image:var(--sgds-switch-bg-image);background-position:left var(--sgds-form-padding-inline-sm) center;background-repeat:no-repeat;background-size:var(--sgds-form-width-xs) var(--sgds-form-height-sm);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-form-border-radius-full);flex-shrink:0;height:var(--sgds-switch-height);padding:0 var(--sgds-form-padding-inline-sm);transition:background-position .15s ease-in-out;width:var(--sgds-switch-width)}.form-check-input:focus,.form-check-input:focus-visible{background-color:var(--sgds-form-surface-emphasis)}.form-check-input:focus-visible{background-color:var(--sgds-form-surface-emphasis);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus);outline-offset:0}.form-check-input:not([disabled]):hover{background-color:var(--sgds-form-surface-emphasis)}.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);background-position:right var(--sgds-form-padding-inline-sm) center}.form-check-input:not([disabled])[checked]:focus-visible,.form-check-input:not([disabled])[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-40)}:host([size=sm]) .form-check{font-size:var(--sgds-font-size-label-sm)}:host([size=sm]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-md);--sgds-switch-height:var(--sgds-form-height-sm);background-size:var(--sgds-form-width-2-xs) var(--sgds-form-height-2-xs)}:host([size=lg]) .form-check{font-size:var(--sgds-font-size-label-lg)}:host([size=lg]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-3-xl);--sgds-switch-height:var(--sgds-form-height-lg);background-size:var(--sgds-form-width-sm) var(--sgds-form-height-md)}:host([icon]) .form-check-input[checked]{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16Zm8.94-21.778a.776.776 0 0 0-.424-.424.781.781 0 0 0-.854.17L13.261 20.372l-4.924-4.925a.783.783 0 1 0-1.108 1.108l5.478 5.478a.777.777 0 0 0 .692.217.787.787 0 0 0 .416-.217L24.77 11.076a.777.777 0 0 0 .17-.854Z" fill="%23fff"/></svg>')}:host([icon]) .form-check-input{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16ZM10.164 9.416a.75.75 0 0 0-.53 1.28L14.937 16l-5.303 5.303a.75.75 0 0 0 1.06 1.061l5.304-5.303 5.303 5.303a.75.75 0 1 0 1.06-1.06L17.06 16l5.303-5.303a.75.75 0 0 0-1.06-1.061l-5.304 5.304-5.303-5.304a.75.75 0 0 0-.53-.22Z" fill="%23fff"/></svg>')}.d-none{display:none}`;class er extends Oe{constructor(){super(...arguments),this.size="md",this.icon=!1,this.checked=!1,this.disabled=!1,this.hasDefaultSlot=!1,this.hasLeftLabelSlot=!1,this.defaultChecked=!1,this.hasSlotController=new $i(this,"[default]","leftLabel"),this._inputId=Zi("switch")}updated(){this.hasDefaultSlot||(this.hasDefaultSlot=this.hasSlotController.test("[default]")),this.hasLeftLabelSlot||(this.hasLeftLabelSlot=this.hasSlotController.test("leftLabel"))}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}_handleChange(){this.checked=!this.checked,this.emit("sgds-change",{detail:{checked:this.checked}})}_handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||this.click()}_handleDisabledChange(){this.input.disabled=this.disabled}render(){const e=!this.hasDefaultSlot&&!this.hasLeftLabelSlot;return te`
1884
+ `}}Gn.styles=[...Oe.styles,Wn,Mo],Gn.dependencies={"sgds-icon":_t},t([ze({type:Boolean})],Gn.prototype,"hasActionsSlot",void 0),t([De("nav")],Gn.prototype,"nav",void 0),t([De(".subnav-nav")],Gn.prototype,"mobileNav",void 0),t([De(".header-container")],Gn.prototype,"headerContainer",void 0),t([De(".subnav-toggler")],Gn.prototype,"toggler",void 0),t([De(".subnav-nav-group")],Gn.prototype,"navGroup",void 0),t([De(".subnav-actions")],Gn.prototype,"mobileActions",void 0),t([Pe()],Gn.prototype,"isCollapsed",void 0),t([Pe()],Gn.prototype,"isMenuOpen",void 0),t([nt("isMenuOpen",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleOpenChange",null),t([nt("isCollapsed",{waitUntilFirstUpdate:!0})],Gn.prototype,"handleCollapsedChange",null),at("subnav.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:200,easing:"ease-in-out"}}),at("subnav.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:200,easing:"ease-in-out"}});var Jn=r`:host(:not([disabled])[active]:not([active=false])) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle);border-bottom:none}::slotted(*){--sgds-link-color-default:var(--sgds-color-default);box-sizing:border-box;color:var(--sgds-link-color-default,var(--sgds-color-default));cursor:pointer;display:inline-block;font-size:var(--sgds-font-size-label-sm)!important;padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-decoration:none!important;white-space:nowrap;width:100%}::slotted(*):after{height:var(--sgds-icon-size-md)!important;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.145 3.667h.021a.5.5 0 1 1 0 1c-.708 0-1.209 0-1.6.032-.387.032-.622.091-.807.186a2 2 0 0 0-.875.874c-.094.185-.154.42-.185.806-.032.392-.032.893-.032 1.602v3.666c0 .709 0 1.21.032 1.602.031.386.091.621.185.806a2 2 0 0 0 .875.874c.185.095.42.154.806.186.392.032.893.032 1.601.032h3.667c.708 0 1.21 0 1.601-.032.386-.032.622-.091.807-.186a2 2 0 0 0 .874-.874c.095-.185.154-.42.186-.806.032-.392.032-.893.032-1.602a.5.5 0 1 1 1 0v.022c0 .682 0 1.224-.036 1.661-.036.448-.113.83-.29 1.18a3 3 0 0 1-1.312 1.31c-.35.178-.731.255-1.18.292-.436.035-.978.035-1.66.035h-3.71c-.682 0-1.224 0-1.661-.035-.448-.037-.83-.113-1.18-.292a3 3 0 0 1-1.31-1.31c-.179-.35-.255-.732-.292-1.18-.035-.437-.035-.98-.035-1.66V8.144c0-.682 0-1.224.035-1.661.037-.448.113-.83.291-1.18a3 3 0 0 1 1.312-1.31c.35-.178.731-.255 1.179-.292.437-.035.98-.035 1.66-.035Zm2.188.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0V5.374l-4.98 4.98a.5.5 0 0 1-.707-.708l4.98-4.98h-3.793a.5.5 0 0 1-.5-.5Z' fill='%230E0E0E'/%3E%3C/svg%3E")!important;width:var(--sgds-icon-size-md)!important}:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-color-default))}:host(:not([disabled])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default));outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-40)}@media screen and (min-width:1024px){:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);background-color:inherit;border-bottom:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}::slotted(*){border-bottom:var(--sgds-border-width-2) solid transparent;padding:var(--sgds-padding-lg) var(--sgds-padding-none)}}`;class Xn extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1}_handleDisabled(){this.setAttribute("aria-disabled",`${this.disabled}`)}_handleSlotChange(e){const t=e.target,s=t.assignedElements({flatten:!0}).filter(e=>"a"===e.tagName.toLowerCase()||"sgds-link"===e.tagName.toLowerCase());if(s.length>1)console.error("More than one anchor tag is added to sgds-subnav-item");else{if(0===s.length){t.assignedNodes({flatten:!0}).forEach(e=>{if(e.nodeType===Node.TEXT_NODE){const t=document.createElement("a");t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}})}if(1===s.length){const e=s[0];this.active&&e.setAttribute("aria-current","true"),this.disabled&&(e.setAttribute("href","javascript:void(0)"),e.setAttribute("tabindex","-1"))}}}render(){return te`<slot @slotchange=${this._handleSlotChange}></slot>`}}Xn.styles=[...Oe.styles,Jn],t([ze({type:Boolean,reflect:!0})],Xn.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],Xn.prototype,"disabled",void 0),t([nt("disabled")],Xn.prototype,"_handleDisabled",null);var Qn=r`input{margin:0}.form-check{align-items:center;display:flex;gap:var(--sgds-form-gap-lg)}.form-check-input{--sgds-switch-width:var(--sgds-form-width-xl);--sgds-switch-height:var(--sgds-form-height-md);--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.5 12c0-6.627 5.373-12 12-12s12 5.373 12 12-5.373 12-12 12-12-5.373-12-12Z" fill="%23fff"/></svg>');appearance:none;background-color:var(--sgds-form-surface-subtle);background-image:var(--sgds-switch-bg-image);background-position:left var(--sgds-form-padding-inline-sm) center;background-repeat:no-repeat;background-size:var(--sgds-form-width-xs) var(--sgds-form-height-sm);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-form-border-radius-full);flex-shrink:0;height:var(--sgds-switch-height);padding:0 var(--sgds-form-padding-inline-sm);transition:background-position .15s ease-in-out;width:var(--sgds-switch-width)}.form-check-input:focus,.form-check-input:focus-visible{background-color:var(--sgds-form-surface-emphasis)}.form-check-input:focus-visible{background-color:var(--sgds-form-surface-emphasis);outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus);outline-offset:0}.form-check-input:not([disabled]):hover{background-color:var(--sgds-form-surface-emphasis)}.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);background-position:right var(--sgds-form-padding-inline-sm) center}.form-check-input:not([disabled])[checked]:focus-visible,.form-check-input:not([disabled])[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-40)}:host([size=sm]) .form-check{font-size:var(--sgds-font-size-label-sm)}:host([size=sm]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-md);--sgds-switch-height:var(--sgds-form-height-sm);background-size:var(--sgds-form-width-2-xs) var(--sgds-form-height-2-xs)}:host([size=lg]) .form-check{font-size:var(--sgds-font-size-label-lg)}:host([size=lg]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-3-xl);--sgds-switch-height:var(--sgds-form-height-lg);background-size:var(--sgds-form-width-sm) var(--sgds-form-height-md)}:host([icon]) .form-check-input[checked]{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16Zm8.94-21.778a.776.776 0 0 0-.424-.424.781.781 0 0 0-.854.17L13.261 20.372l-4.924-4.925a.783.783 0 1 0-1.108 1.108l5.478 5.478a.777.777 0 0 0 .692.217.787.787 0 0 0 .416-.217L24.77 11.076a.777.777 0 0 0 .17-.854Z" fill="%23fff"/></svg>')}:host([icon]) .form-check-input{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16ZM10.164 9.416a.75.75 0 0 0-.53 1.28L14.937 16l-5.303 5.303a.75.75 0 0 0 1.06 1.061l5.304-5.303 5.303 5.303a.75.75 0 1 0 1.06-1.06L17.06 16l5.303-5.303a.75.75 0 0 0-1.06-1.061l-5.304 5.304-5.303-5.304a.75.75 0 0 0-.53-.22Z" fill="%23fff"/></svg>')}.d-none{display:none}`;class er extends Oe{constructor(){super(...arguments),this.size="md",this.icon=!1,this.checked=!1,this.disabled=!1,this.hasDefaultSlot=!1,this.hasLeftLabelSlot=!1,this.defaultChecked=!1,this.hasSlotController=new $i(this,"[default]","leftLabel"),this._inputId=Zi("switch")}updated(){this.hasDefaultSlot||(this.hasDefaultSlot=this.hasSlotController.test("[default]")),this.hasLeftLabelSlot||(this.hasLeftLabelSlot=this.hasSlotController.test("leftLabel"))}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}_handleChange(){this.checked=!this.checked,this.emit("sgds-change",{detail:{checked:this.checked}})}_handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;"Enter"!==e.key||t||this.click()}_handleDisabledChange(){this.input.disabled=this.disabled}render(){const e=!this.hasDefaultSlot&&!this.hasLeftLabelSlot;return te`
1885
1885
  <div class="form-check">
1886
1886
  <label
1887
1887
  for="${this._inputId}"
@@ -1907,7 +1907,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1907
1907
  <slot></slot>
1908
1908
  </label>
1909
1909
  </div>
1910
- `}}er.styles=[...Oe.styles,na,Qn],t([ze({reflect:!0,type:String})],er.prototype,"size",void 0),t([ze({reflect:!0,type:Boolean})],er.prototype,"icon",void 0),t([ze({type:Boolean,reflect:!0})],er.prototype,"checked",void 0),t([ze({type:Boolean,reflect:!0})],er.prototype,"disabled",void 0),t([ze({type:Boolean})],er.prototype,"hasDefaultSlot",void 0),t([ze({type:Boolean})],er.prototype,"hasLeftLabelSlot",void 0),t([da("checked")],er.prototype,"defaultChecked",void 0),t([Ae('input[type="checkbox"]')],er.prototype,"input",void 0),t([nt("disabled",{waitUntilFirstUpdate:!0})],er.prototype,"_handleDisabledChange",null);var tr=r`.banner-wrapper{display:block;width:100%}.banner,.banner-wrapper{background-color:var(--sgds-surface-fixed-dark)}.banner{align-items:center;color:var(--sgds-color-fixed-light);display:flex;flex-direction:row;gap:var(--sgds-gap-xl);min-height:var(--sgds-dimension-64);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);position:relative}.content{flex:1;overflow:hidden;width:100%}::slotted(sgds-system-banner-item){display:none;flex:0 0 100%;opacity:0}::slotted(sgds-system-banner-item[active]){display:block;opacity:1}.pagination{align-items:center;bottom:12px;display:flex;font-size:var(--sgds-font-size-label-xs);font-weight:var(--sgds-font-weight-regular,400);gap:var(--sgds-gap-2-xs);letter-spacing:var(--sgds-letter-spacing-normal,0);line-height:var(--sgds-line-height-3-xs);position:absolute;right:20px}.d-none{display:none}sgds-close-button{position:absolute;right:20px;top:10px}@media (min-width:1024px){.pagination,sgds-close-button{position:static}.banner{margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding-left:var(--sgds-mainnav-padding-x);padding-right:var(--sgds-mainnav-padding-x)}:host([fluid]) .banner{max-width:none}}`;class sr extends Oe{constructor(){super(...arguments),this.show=!1,this.dismissible=!1,this.noClampAction=!1,this.fluid=!1,this._intervalId=null,this._intervalTime=5e3,this._currentIndex=0}close(){this.show=!1}firstUpdated(e){super.firstUpdated(e),this.childCount=this.bannerItem.length,this.show?(this.childCount>1&&this._startAutoCycle(),this.addEventListener("mouseenter",this._pauseAutoCycle.bind(this)),this.addEventListener("mouseleave",this._resumeAutoCycle.bind(this)),this.addEventListener("focus",this._pauseAutoCycle.bind(this)),this.addEventListener("blur",this._resumeAutoCycle.bind(this))):this.banner.classList.add("d-none"),this._updateActiveItem(),this.childCount>5&&console.warn("It is not recommended to have more than 5 <sgds-system-banner-item> elements.")}disconnectedCallback(){super.disconnectedCallback(),this._stopAutoCycle()}async _handleShowChange(){this.show?(this.childCount>1&&this._startAutoCycle(),this.emit("sgds-show"),this.banner.classList.remove("d-none")):(this._stopAutoCycle(),this.emit("sgds-hide"),this.banner.classList.add("d-none"))}_updateActiveItem(){this.bannerItem.forEach((e,t)=>{t===this._currentIndex?e.setAttribute("active",""):e.removeAttribute("active")})}_next(){const e=this.bannerItem;this._currentIndex=(this._currentIndex+1)%e.length,this._updateActiveItem(),this._animateItem(e[this._currentIndex],"next"),this._resetAutoCycle()}_prev(){const e=this.bannerItem;this._currentIndex=(this._currentIndex-1+e.length)%e.length,this._updateActiveItem(),this._animateItem(e[this._currentIndex],"prev"),this._resetAutoCycle()}async _animateItem(e,t){e.getAnimations().forEach(e=>e.cancel());const s=it(this,`banner.item.${t}`);await Je(e,s.keyframes,s.options)}_startAutoCycle(){this._stopAutoCycle(),this._intervalId=setInterval(()=>this._next(),this._intervalTime)}_stopAutoCycle(){this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)}_resetAutoCycle(){this._stopAutoCycle(),this._startAutoCycle()}_pauseAutoCycle(){this._stopAutoCycle()}_resumeAutoCycle(){this.show&&this.childCount>1&&this._startAutoCycle()}render(){return te`
1910
+ `}}er.styles=[...Oe.styles,na,Qn],t([ze({reflect:!0,type:String})],er.prototype,"size",void 0),t([ze({reflect:!0,type:Boolean})],er.prototype,"icon",void 0),t([ze({type:Boolean,reflect:!0})],er.prototype,"checked",void 0),t([ze({type:Boolean,reflect:!0})],er.prototype,"disabled",void 0),t([ze({type:Boolean})],er.prototype,"hasDefaultSlot",void 0),t([ze({type:Boolean})],er.prototype,"hasLeftLabelSlot",void 0),t([da("checked")],er.prototype,"defaultChecked",void 0),t([De('input[type="checkbox"]')],er.prototype,"input",void 0),t([nt("disabled",{waitUntilFirstUpdate:!0})],er.prototype,"_handleDisabledChange",null);var tr=r`.banner-wrapper{display:block;width:100%}.banner,.banner-wrapper{background-color:var(--sgds-surface-fixed-dark)}.banner{align-items:center;color:var(--sgds-color-fixed-light);display:flex;flex-direction:row;gap:var(--sgds-gap-xl);min-height:var(--sgds-dimension-64);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);position:relative}.content{flex:1;overflow:hidden;width:100%}::slotted(sgds-system-banner-item){display:none;flex:0 0 100%;opacity:0}::slotted(sgds-system-banner-item[active]){display:block;opacity:1}.pagination{align-items:center;bottom:12px;display:flex;font-size:var(--sgds-font-size-label-xs);font-weight:var(--sgds-font-weight-regular,400);gap:var(--sgds-gap-2-xs);letter-spacing:var(--sgds-letter-spacing-normal,0);line-height:var(--sgds-line-height-3-xs);position:absolute;right:20px}.d-none{display:none}sgds-close-button{position:absolute;right:20px;top:10px}@media (min-width:1024px){.pagination,sgds-close-button{position:static}.banner{margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding-left:var(--sgds-mainnav-padding-x);padding-right:var(--sgds-mainnav-padding-x)}:host([fluid]) .banner{max-width:none}}`;class sr extends Oe{constructor(){super(...arguments),this.show=!1,this.dismissible=!1,this.noClampAction=!1,this.fluid=!1,this._intervalId=null,this._intervalTime=5e3,this._currentIndex=0}close(){this.show=!1}firstUpdated(e){super.firstUpdated(e),this.childCount=this.bannerItem.length,this.show?(this.childCount>1&&this._startAutoCycle(),this.addEventListener("mouseenter",this._pauseAutoCycle.bind(this)),this.addEventListener("mouseleave",this._resumeAutoCycle.bind(this)),this.addEventListener("focus",this._pauseAutoCycle.bind(this)),this.addEventListener("blur",this._resumeAutoCycle.bind(this))):this.banner.classList.add("d-none"),this._updateActiveItem(),this.childCount>5&&console.warn("It is not recommended to have more than 5 <sgds-system-banner-item> elements.")}disconnectedCallback(){super.disconnectedCallback(),this._stopAutoCycle()}async _handleShowChange(){this.show?(this.childCount>1&&this._startAutoCycle(),this.emit("sgds-show"),this.banner.classList.remove("d-none")):(this._stopAutoCycle(),this.emit("sgds-hide"),this.banner.classList.add("d-none"))}_updateActiveItem(){this.bannerItem.forEach((e,t)=>{t===this._currentIndex?e.setAttribute("active",""):e.removeAttribute("active")})}_next(){const e=this.bannerItem;this._currentIndex=(this._currentIndex+1)%e.length,this._updateActiveItem(),this._animateItem(e[this._currentIndex],"next"),this._resetAutoCycle()}_prev(){const e=this.bannerItem;this._currentIndex=(this._currentIndex-1+e.length)%e.length,this._updateActiveItem(),this._animateItem(e[this._currentIndex],"prev"),this._resetAutoCycle()}async _animateItem(e,t){e.getAnimations().forEach(e=>e.cancel());const s=it(this,`banner.item.${t}`);await Je(e,s.keyframes,s.options)}_startAutoCycle(){this._stopAutoCycle(),this._intervalId=setInterval(()=>this._next(),this._intervalTime)}_stopAutoCycle(){this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)}_resetAutoCycle(){this._stopAutoCycle(),this._startAutoCycle()}_pauseAutoCycle(){this._stopAutoCycle()}_resumeAutoCycle(){this.show&&this.childCount>1&&this._startAutoCycle()}render(){return te`
1911
1911
  <div class="banner-wrapper">
1912
1912
  <div
1913
1913
  class="${Ke({banner:!0})}"
@@ -1943,7 +1943,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1943
1943
  `:ae}
1944
1944
  </div>
1945
1945
  </div>
1946
- `}}sr.styles=[...Oe.styles,tr],sr.dependencies={"sgds-close-button":ft,"sgds-icon":_t,"sgds-icon-button":Pa},t([ze({type:Boolean,reflect:!0})],sr.prototype,"show",void 0),t([ze({type:Boolean,reflect:!0})],sr.prototype,"dismissible",void 0),t([Ro({context:"no-clamp-action-context"}),ze({type:Boolean})],sr.prototype,"noClampAction",void 0),t([ze({type:Boolean,reflect:!0})],sr.prototype,"fluid",void 0),t([Ee({flatten:!0})],sr.prototype,"bannerItem",void 0),t([Ae(".banner")],sr.prototype,"banner",void 0),t([Ro({context:"system-banner-children-count-context"}),Pe()],sr.prototype,"childCount",void 0),t([Pe()],sr.prototype,"_intervalId",void 0),t([Pe()],sr.prototype,"_currentIndex",void 0),t([nt("show",{waitUntilFirstUpdate:!0})],sr.prototype,"_handleShowChange",null),at("banner.item.next",{keyframes:[{opacity:0,transform:"translateY(-100%)"},{opacity:1,transform:"translateY(0)"}],options:{duration:500,easing:"cubic-bezier(0.45,0.05,0.55,0.95)"}}),at("banner.item.prev",{keyframes:[{opacity:0,transform:"translateY(100%)"},{opacity:1,transform:"translateY(0)"}],options:{duration:500,easing:"cubic-bezier(0.45,0.05,0.55,0.95)"}});var ir=r`:host([density=compact]) .tab{font-size:var(--sgds-font-size-label-sm);padding:var(--sgds-spacer-3) var(--sgds-spacer-5)}:host(:not([active])) .tab{cursor:pointer}:host([variant=solid]) .tab{background-color:var(--sgds-bg-translucent-subtle);border-radius:var(--sgds-border-radius-md)}:host([variant=solid][active]) .tab{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}:host([variant=solid]:not([active]):not([disabled])) .tab:focus,:host([variant=solid]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent)}:host([variant=solid]:not([active]):not([disabled])) .tab:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([variant=solid]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent)}:host([disabled]) .tab{cursor:not-allowed;opacity:var(--sgds-opacity-40)}:host([variant=underlined][active]) .tab{color:var(--sgds-primary-color-default)}:host([variant=underlined]:not([active]):not([disabled])) .tab:focus,:host([variant=underlined]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent-subtle);outline:0}:host([variant=underlined]:not([active]):not([disabled])) .tab:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([variant=underlined]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent-subtle)}:host([fullWidth][orientation=horizontal]) .tab{justify-content:center}.tab{align-items:center;color:var(--sgds-color-default);display:flex;gap:var(--sgds-spacer-3);padding:var(--sgds-spacer-4) var(--sgds-spacer-5);position:relative}.tab:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`;let ar=0;class or extends Oe{constructor(){super(...arguments),this.attrId=++ar,this.componentId=`sgds-tab-${this.attrId}`,this.panel="",this.active=!1,this.disabled=!1,this.ariaLabel=""}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tab")}focus(e){var t,s;null===(s=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".tab"))||void 0===s||s.focus(e)}blur(){this.tab.blur()}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.disabled&&(this.active=!1)}render(){return te`
1946
+ `}}sr.styles=[...Oe.styles,tr],sr.dependencies={"sgds-close-button":ft,"sgds-icon":_t,"sgds-icon-button":Pa},t([ze({type:Boolean,reflect:!0})],sr.prototype,"show",void 0),t([ze({type:Boolean,reflect:!0})],sr.prototype,"dismissible",void 0),t([Ro({context:"no-clamp-action-context"}),ze({type:Boolean})],sr.prototype,"noClampAction",void 0),t([ze({type:Boolean,reflect:!0})],sr.prototype,"fluid",void 0),t([Ee({flatten:!0})],sr.prototype,"bannerItem",void 0),t([De(".banner")],sr.prototype,"banner",void 0),t([Ro({context:"system-banner-children-count-context"}),Pe()],sr.prototype,"childCount",void 0),t([Pe()],sr.prototype,"_intervalId",void 0),t([Pe()],sr.prototype,"_currentIndex",void 0),t([nt("show",{waitUntilFirstUpdate:!0})],sr.prototype,"_handleShowChange",null),at("banner.item.next",{keyframes:[{opacity:0,transform:"translateY(-100%)"},{opacity:1,transform:"translateY(0)"}],options:{duration:500,easing:"cubic-bezier(0.45,0.05,0.55,0.95)"}}),at("banner.item.prev",{keyframes:[{opacity:0,transform:"translateY(100%)"},{opacity:1,transform:"translateY(0)"}],options:{duration:500,easing:"cubic-bezier(0.45,0.05,0.55,0.95)"}});var ir=r`:host([density=compact]) .tab{font-size:var(--sgds-font-size-label-sm);padding:var(--sgds-spacer-3) var(--sgds-spacer-5)}:host(:not([active])) .tab{cursor:pointer}:host([variant=solid]) .tab{background-color:var(--sgds-bg-translucent-subtle);border-radius:var(--sgds-border-radius-md)}:host([variant=solid][active]) .tab{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}:host([variant=solid]:not([active]):not([disabled])) .tab:focus,:host([variant=solid]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent)}:host([variant=solid]:not([active]):not([disabled])) .tab:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([variant=solid]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent)}:host([disabled]) .tab{cursor:not-allowed;opacity:var(--sgds-opacity-40)}:host([variant=underlined][active]) .tab{color:var(--sgds-primary-color-default)}:host([variant=underlined]:not([active]):not([disabled])) .tab:focus,:host([variant=underlined]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent-subtle);outline:0}:host([variant=underlined]:not([active]):not([disabled])) .tab:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([variant=underlined]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent-subtle)}:host([fullWidth][orientation=horizontal]) .tab{justify-content:center}.tab{align-items:center;color:var(--sgds-color-default);display:flex;gap:var(--sgds-spacer-3);padding:var(--sgds-spacer-4) var(--sgds-spacer-5);position:relative}.tab:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`;let ar=0;class or extends Oe{constructor(){super(...arguments),this.attrId=++ar,this.componentId=`sgds-tab-${this.attrId}`,this.panel="",this.active=!1,this.disabled=!1,this.ariaLabel=""}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tab")}focus(e){var t,s;null===(s=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".tab"))||void 0===s||s.focus(e)}blur(){this.tab.blur()}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.disabled&&(this.active=!1)}render(){return te`
1947
1947
  <div
1948
1948
  data-testid="inner-tab"
1949
1949
  tabindex=${this.disabled?"-1":"0"}
@@ -1953,7 +1953,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1953
1953
  <slot name="icon"></slot>
1954
1954
  <slot></slot>
1955
1955
  </div>
1956
- `}}or.styles=[ir],t([Ae(".tab")],or.prototype,"tab",void 0),t([ze({reflect:!0})],or.prototype,"panel",void 0),t([ze({type:Boolean,reflect:!0})],or.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],or.prototype,"disabled",void 0),t([ze({type:String})],or.prototype,"ariaLabel",void 0),t([nt("active")],or.prototype,"handleActiveChange",null),t([nt("disabled")],or.prototype,"handleDisabledChange",null);var nr=r`.tab-group{display:flex;flex-direction:column;gap:var(--sgds-gap-xl)}.tab-group__nav{display:flex;flex-direction:row}.tab-group__content{flex:1}:host([orientation=vertical]) .tab-group{flex-direction:row}:host([orientation=vertical]) .tab-group__nav{flex-direction:column}:host([variant=solid]) .tab-group__nav{gap:var(--sgds-gap-xs)}:host([variant=underlined][orientation=horizontal]) .tab-group__nav{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;flex-direction:row;position:relative}:host([variant=underlined][orientation=vertical]) .tab-group__nav{border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);position:relative}:host([variant=underlined][orientation=horizontal]) .tab-group__indicator{background-color:var(--sgds-primary-surface-default);bottom:-1px;height:var(--sgds-border-width-4);position:absolute;transition:left .3s cubic-bezier(.25,0,.25,1),width .3s cubic-bezier(.25,0,.25,1)}:host([variant=underlined][orientation=vertical]) .tab-group__indicator{background-color:var(--sgds-primary-surface-default);position:absolute;right:-1px;transition:top .3s cubic-bezier(.25,0,.25,1),height .3s cubic-bezier(.25,0,.25,1);width:var(--sgds-border-width-4)}:host([variant=solid]) .tab-group__indicator{display:none}:host([fullWidth][orientation=horizontal]) slot[name=nav]::slotted(sgds-tab){width:100%}`;class rr extends Oe{constructor(){super(...arguments),this._indicatorAnimating=!1,this._tabs=[],this._panels=[],this.variant="underlined",this.orientation="horizontal",this.density="default",this.fullWidth=!1}connectedCallback(){const e=Promise.all([customElements.whenDefined("sgds-tab"),customElements.whenDefined("sgds-tab-panel")]);super.connectedCallback(),this._resizeObserver=new ResizeObserver(()=>{this._activeTab&&"underlined"===this.variant&&!this._indicatorAnimating&&this._animateIndicator(void 0,this._activeTab)}),this._tabResizeObserver=new ResizeObserver(()=>{this._activeTab&&"underlined"===this.variant&&!this._indicatorAnimating&&this._animateIndicator(void 0,this._activeTab)}),this._mutationObserver=new MutationObserver(e=>{e.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this._setAriaLabels()),e.some(e=>"disabled"===e.attributeName)&&this._syncTabsAndPanels()}),this.updateComplete.then(()=>{this._syncTabsAndPanels(),this._mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this._resizeObserver.observe(this._nav),e.then(()=>{new IntersectionObserver((e,t)=>{var s;e[0].intersectionRatio>0&&(this._setAriaLabels(),this._setActiveTab(null!==(s=this._getActiveTab())&&void 0!==s?s:this._tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this._tabGroup)})})}disconnectedCallback(){this._mutationObserver.disconnect(),this._resizeObserver.unobserve(this._nav),this._tabResizeObserver.disconnect()}show(e){const t=this._tabs.find(t=>t.panel===e);t&&this._setActiveTab(t)}_getAllTabs(e={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(t=>e.includeDisabled?"sgds-tab"===t.tagName.toLowerCase():"sgds-tab"===t.tagName.toLowerCase()&&!t.disabled)}_getAllPanels(){return[...this._body.assignedElements()].filter(e=>"sgds-tab-panel"===e.tagName.toLowerCase())}_getActiveTab(){return this._tabs.find(e=>e.active)}_handleClick(e){const t=e.target.closest("sgds-tab");(null==t?void 0:t.closest("sgds-tab-group"))===this&&null!==t&&this._setActiveTab(t)}_handleKeyDown(e){const t=e.target.closest("sgds-tab");if((null==t?void 0:t.closest("sgds-tab-group"))===this&&(["Enter"," "].includes(e.key)&&null!==t&&(this._setActiveTab(t),e.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key))){const t=this._tabs.find(e=>e.matches(":focus"));if("sgds-tab"===(null==t?void 0:t.tagName.toLowerCase())){let s=this._tabs.indexOf(t);"Home"===e.key?s=0:"End"===e.key?s=this._tabs.length-1:"ArrowUp"===e.key||"ArrowLeft"===e.key?s--:"ArrowDown"!==e.key&&"ArrowRight"!==e.key||s++,s<0&&(s=this._tabs.length-1),s>this._tabs.length-1&&(s=0),this._tabs[s].focus({preventScroll:!0}),this._setActiveTab(this._tabs[s]),e.preventDefault()}}}_setActiveTab(e,t){if(t=Object.assign({emitEvents:!0},t),e!==this._activeTab&&!e.disabled){const s=this._activeTab;this._activeTab=e,this._tabs.forEach(e=>{e.active=e===this._activeTab}),this._panels.map(e=>{var t;return e.active=e.name===(null===(t=this._activeTab)||void 0===t?void 0:t.panel)}),"underlined"===this.variant&&this._animateIndicator(s,e),t.emitEvents&&(s&&this.emit("sgds-tab-hide",{detail:{name:s.panel}}),this.emit("sgds-tab-show",{detail:{name:this._activeTab.panel}}))}}_animateIndicator(e,t){if(!this._indicator||!this._nav)return;const s=this._nav.getBoundingClientRect(),i=t.getBoundingClientRect();if(e?(this._indicatorAnimating=!0,this._indicator.style.removeProperty("transition")):this._indicator.style.transition="none","vertical"===this.orientation?Object.assign(this._indicator.style,{top:i.top-s.top+"px",height:`${i.height}px`}):Object.assign(this._indicator.style,{left:i.left-s.left+"px",width:`${i.width}px`}),e){const e=()=>{this._indicatorAnimating=!1,this._indicator.removeEventListener("transitionend",e)};this._indicator.addEventListener("transitionend",e),setTimeout(()=>{this._indicatorAnimating=!1},350)}else requestAnimationFrame(()=>{this._indicator.style.removeProperty("transition")})}_setAriaLabels(){this._tabs.forEach(e=>{const t=this._panels.find(t=>t.name===e.panel);t&&(e.setAttribute("aria-controls",t.getAttribute("id")),t.setAttribute("aria-labelledby",e.getAttribute("id")))})}_syncTabsAndPanels(){this._tabs.forEach(e=>{var t;return null===(t=this._tabResizeObserver)||void 0===t?void 0:t.unobserve(e)}),this._tabs=this._getAllTabs({includeDisabled:!1}),this._panels=this._getAllPanels(),this._tabs.forEach(e=>{var t;return null===(t=this._tabResizeObserver)||void 0===t?void 0:t.observe(e)})}_updateTabsAttribute(e){if(!this._navSlot)return;this._navSlot.forEach(t=>{t.setAttribute(e,this[e])})}_handleSlotChange(){this._updateTabsAttribute("variant"),this._updateTabsAttribute("orientation"),this._updateTabsAttribute("density"),this._updateTabsAttribute("fullWidth"),this._syncTabsAndPanels()}willUpdate(e){e.has("variant")&&this._updateTabsAttribute("variant"),e.has("orientation")&&this._updateTabsAttribute("orientation"),e.has("density")&&this._updateTabsAttribute("density"),e.has("fullWidth")&&this._updateTabsAttribute("fullWidth")}render(){return te`
1956
+ `}}or.styles=[ir],t([De(".tab")],or.prototype,"tab",void 0),t([ze({reflect:!0})],or.prototype,"panel",void 0),t([ze({type:Boolean,reflect:!0})],or.prototype,"active",void 0),t([ze({type:Boolean,reflect:!0})],or.prototype,"disabled",void 0),t([ze({type:String})],or.prototype,"ariaLabel",void 0),t([nt("active")],or.prototype,"handleActiveChange",null),t([nt("disabled")],or.prototype,"handleDisabledChange",null);var nr=r`.tab-group{display:flex;flex-direction:column;gap:var(--sgds-gap-xl)}.tab-group__nav{display:flex;flex-direction:row}.tab-group__content{flex:1}:host([orientation=vertical]) .tab-group{flex-direction:row}:host([orientation=vertical]) .tab-group__nav{flex-direction:column}:host([variant=solid]) .tab-group__nav{gap:var(--sgds-gap-xs)}:host([variant=underlined][orientation=horizontal]) .tab-group__nav{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;flex-direction:row;position:relative}:host([variant=underlined][orientation=vertical]) .tab-group__nav{border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);position:relative}:host([variant=underlined][orientation=horizontal]) .tab-group__indicator{background-color:var(--sgds-primary-surface-default);bottom:-1px;height:var(--sgds-border-width-4);position:absolute;transition:left .3s cubic-bezier(.25,0,.25,1),width .3s cubic-bezier(.25,0,.25,1)}:host([variant=underlined][orientation=vertical]) .tab-group__indicator{background-color:var(--sgds-primary-surface-default);position:absolute;right:-1px;transition:top .3s cubic-bezier(.25,0,.25,1),height .3s cubic-bezier(.25,0,.25,1);width:var(--sgds-border-width-4)}:host([variant=solid]) .tab-group__indicator{display:none}:host([fullWidth][orientation=horizontal]) slot[name=nav]::slotted(sgds-tab){width:100%}`;class rr extends Oe{constructor(){super(...arguments),this._indicatorAnimating=!1,this._tabs=[],this._panels=[],this.variant="underlined",this.orientation="horizontal",this.density="default",this.fullWidth=!1}connectedCallback(){const e=Promise.all([customElements.whenDefined("sgds-tab"),customElements.whenDefined("sgds-tab-panel")]);super.connectedCallback(),this._resizeObserver=new ResizeObserver(()=>{this._activeTab&&"underlined"===this.variant&&!this._indicatorAnimating&&this._animateIndicator(void 0,this._activeTab)}),this._tabResizeObserver=new ResizeObserver(()=>{this._activeTab&&"underlined"===this.variant&&!this._indicatorAnimating&&this._animateIndicator(void 0,this._activeTab)}),this._mutationObserver=new MutationObserver(e=>{e.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this._setAriaLabels()),e.some(e=>"disabled"===e.attributeName)&&this._syncTabsAndPanels()}),this.updateComplete.then(()=>{this._syncTabsAndPanels(),this._mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this._resizeObserver.observe(this._nav),e.then(()=>{new IntersectionObserver((e,t)=>{var s;e[0].intersectionRatio>0&&(this._setAriaLabels(),this._setActiveTab(null!==(s=this._getActiveTab())&&void 0!==s?s:this._tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this._tabGroup)})})}disconnectedCallback(){this._mutationObserver.disconnect(),this._resizeObserver.unobserve(this._nav),this._tabResizeObserver.disconnect()}show(e){const t=this._tabs.find(t=>t.panel===e);t&&this._setActiveTab(t)}_getAllTabs(e={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(t=>e.includeDisabled?"sgds-tab"===t.tagName.toLowerCase():"sgds-tab"===t.tagName.toLowerCase()&&!t.disabled)}_getAllPanels(){return[...this._body.assignedElements()].filter(e=>"sgds-tab-panel"===e.tagName.toLowerCase())}_getActiveTab(){return this._tabs.find(e=>e.active)}_handleClick(e){const t=e.target.closest("sgds-tab");(null==t?void 0:t.closest("sgds-tab-group"))===this&&null!==t&&this._setActiveTab(t)}_handleKeyDown(e){const t=e.target.closest("sgds-tab");if((null==t?void 0:t.closest("sgds-tab-group"))===this&&(["Enter"," "].includes(e.key)&&null!==t&&(this._setActiveTab(t),e.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key))){const t=this._tabs.find(e=>e.matches(":focus"));if("sgds-tab"===(null==t?void 0:t.tagName.toLowerCase())){let s=this._tabs.indexOf(t);"Home"===e.key?s=0:"End"===e.key?s=this._tabs.length-1:"ArrowUp"===e.key||"ArrowLeft"===e.key?s--:"ArrowDown"!==e.key&&"ArrowRight"!==e.key||s++,s<0&&(s=this._tabs.length-1),s>this._tabs.length-1&&(s=0),this._tabs[s].focus({preventScroll:!0}),this._setActiveTab(this._tabs[s]),e.preventDefault()}}}_setActiveTab(e,t){if(t=Object.assign({emitEvents:!0},t),e!==this._activeTab&&!e.disabled){const s=this._activeTab;this._activeTab=e,this._tabs.forEach(e=>{e.active=e===this._activeTab}),this._panels.map(e=>{var t;return e.active=e.name===(null===(t=this._activeTab)||void 0===t?void 0:t.panel)}),"underlined"===this.variant&&this._animateIndicator(s,e),t.emitEvents&&(s&&this.emit("sgds-tab-hide",{detail:{name:s.panel}}),this.emit("sgds-tab-show",{detail:{name:this._activeTab.panel}}))}}_animateIndicator(e,t){if(!this._indicator||!this._nav)return;const s=this._nav.getBoundingClientRect(),i=t.getBoundingClientRect();if(e?(this._indicatorAnimating=!0,this._indicator.style.removeProperty("transition")):this._indicator.style.transition="none","vertical"===this.orientation?Object.assign(this._indicator.style,{top:i.top-s.top+"px",height:`${i.height}px`}):Object.assign(this._indicator.style,{left:i.left-s.left+"px",width:`${i.width}px`}),e){const e=()=>{this._indicatorAnimating=!1,this._indicator.removeEventListener("transitionend",e)};this._indicator.addEventListener("transitionend",e),setTimeout(()=>{this._indicatorAnimating=!1},350)}else requestAnimationFrame(()=>{this._indicator.style.removeProperty("transition")})}_setAriaLabels(){this._tabs.forEach(e=>{const t=this._panels.find(t=>t.name===e.panel);t&&(e.setAttribute("aria-controls",t.getAttribute("id")),t.setAttribute("aria-labelledby",e.getAttribute("id")))})}_syncTabsAndPanels(){this._tabs.forEach(e=>{var t;return null===(t=this._tabResizeObserver)||void 0===t?void 0:t.unobserve(e)}),this._tabs=this._getAllTabs({includeDisabled:!1}),this._panels=this._getAllPanels(),this._tabs.forEach(e=>{var t;return null===(t=this._tabResizeObserver)||void 0===t?void 0:t.observe(e)})}_updateTabsAttribute(e){if(!this._navSlot)return;this._navSlot.forEach(t=>{t.setAttribute(e,this[e])})}_handleSlotChange(){this._updateTabsAttribute("variant"),this._updateTabsAttribute("orientation"),this._updateTabsAttribute("density"),this._updateTabsAttribute("fullWidth"),this._syncTabsAndPanels()}willUpdate(e){e.has("variant")&&this._updateTabsAttribute("variant"),e.has("orientation")&&this._updateTabsAttribute("orientation"),e.has("density")&&this._updateTabsAttribute("density"),e.has("fullWidth")&&this._updateTabsAttribute("fullWidth")}render(){return te`
1957
1957
  <div class="tab-group" @click=${this._handleClick} @keydown=${this._handleKeyDown}>
1958
1958
  <div class="tab-group__nav" role="tablist">
1959
1959
  <slot name="nav" @slotchange=${this._handleSlotChange}></slot>
@@ -1964,7 +1964,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
1964
1964
  <slot class="tab-group__body" @slotchange=${this._syncTabsAndPanels}></slot>
1965
1965
  </div>
1966
1966
  </div>
1967
- `}}rr.styles=[...Oe.styles,nr],t([Ae(".tab-group")],rr.prototype,"_tabGroup",void 0),t([Ae(".tab-group__body")],rr.prototype,"_body",void 0),t([Ae(".tab-group__nav")],rr.prototype,"_nav",void 0),t([Ae(".tab-group__indicator")],rr.prototype,"_indicator",void 0),t([ze({type:String,reflect:!0})],rr.prototype,"variant",void 0),t([ze({type:String,reflect:!0})],rr.prototype,"orientation",void 0),t([ze({type:String,reflect:!0})],rr.prototype,"density",void 0),t([ze({type:Boolean,reflect:!0})],rr.prototype,"fullWidth",void 0),t([Ee({slot:"nav",flatten:!0})],rr.prototype,"_navSlot",void 0);var lr=r`:host(:not([active])){display:none}.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;let dr=0;class cr extends Oe{constructor(){super(...arguments),this.attrId=++dr,this.componentId=`sgds-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}_handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true"),this.inert=!this.active}render(){return te`
1967
+ `}}rr.styles=[...Oe.styles,nr],t([De(".tab-group")],rr.prototype,"_tabGroup",void 0),t([De(".tab-group__body")],rr.prototype,"_body",void 0),t([De(".tab-group__nav")],rr.prototype,"_nav",void 0),t([De(".tab-group__indicator")],rr.prototype,"_indicator",void 0),t([ze({type:String,reflect:!0})],rr.prototype,"variant",void 0),t([ze({type:String,reflect:!0})],rr.prototype,"orientation",void 0),t([ze({type:String,reflect:!0})],rr.prototype,"density",void 0),t([ze({type:Boolean,reflect:!0})],rr.prototype,"fullWidth",void 0),t([Ee({slot:"nav",flatten:!0})],rr.prototype,"_navSlot",void 0);var lr=r`:host(:not([active])){display:none}.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;let dr=0;class cr extends Oe{constructor(){super(...arguments),this.attrId=++dr,this.componentId=`sgds-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}_handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true"),this.inert=!this.active}render(){return te`
1968
1968
  <slot
1969
1969
  class=${Ke({"tab-panel":!0,"tab-panel--active":this.active})}
1970
1970
  ></slot>
@@ -2070,7 +2070,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2070
2070
  ${this.maxlength>0?this._wordCount():ae}
2071
2071
  </div>
2072
2072
  </div>
2073
- `}}kr.styles=[...la.styles,fa,xr],t([Ae("textarea.form-control-group")],kr.prototype,"textarea",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"name",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"value",void 0),t([ze({type:Number,reflect:!0})],kr.prototype,"minlength",void 0),t([ze({type:Number,reflect:!0})],kr.prototype,"maxlength",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"spellcheck",void 0),t([ze({type:Number})],kr.prototype,"rows",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"placeholder",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"autofocus",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"readonly",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"resize",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"inputmode",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"autocorrect",void 0),t([da()],kr.prototype,"defaultValue",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"hasFeedback",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"required",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"noValidate",void 0),t([ze({reflect:!0})],kr.prototype,"hintText",void 0),t([Pe()],kr.prototype,"_isTouched",void 0),t([nt("rows",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleRowsChange",null),t([nt("_isTouched",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleIsTouched",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleDisabledChange",null),t([nt("value",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleValueChange",null);var Cr=r`:host([noPadding]) .card{background-color:inherit;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=thumbnail]::slotted(*){height:var(--sgds-dimension-64)!important;max-width:var(--sgds-dimension-128)!important;min-width:var(--sgds-dimension-64)!important;object-fit:contain;object-position:left;width:100%}`;class $r extends ea{constructor(){super(...arguments),this.noPadding=!1}_getAnchorFromSlot(e){if(!e||0===e.length)return null;const t=e[0];return t.querySelector("a")||t}_handleThumbnailSlotChange(e){var t,s;if(0===e.target.assignedElements({flatten:!0}).length&&("vertical"===this.orientation&&0===this._upperNode.length||"horizontal"===this.orientation)){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".card-media");e&&(e.style.display="none");const i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelector(".card-body");i&&this.noPadding&&(i.style.padding="0px")}}_handleFooterSlotChange(e){const t=e.target.assignedElements({flatten:!0}),s=this._getAnchorFromSlot(t);this.stretchedLink&&this._forwardAnchorAttributes(s)}_handleLinkSlotChange(e){this.warnLinkSlotMisused(e);const t=e.target.assignedElements({flatten:!0}),s=this._getAnchorFromSlot(t);this.stretchedLink&&this._forwardAnchorAttributes(s)}render(){const e=this.stretchedLink?ht`a`:ht`div`,t=!this.stretchedLink||this.disabled?-1:0;return ut`
2073
+ `}}kr.styles=[...la.styles,fa,xr],t([De("textarea.form-control-group")],kr.prototype,"textarea",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"name",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"value",void 0),t([ze({type:Number,reflect:!0})],kr.prototype,"minlength",void 0),t([ze({type:Number,reflect:!0})],kr.prototype,"maxlength",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"spellcheck",void 0),t([ze({type:Number})],kr.prototype,"rows",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"placeholder",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"invalidFeedback",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"autofocus",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"readonly",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"resize",void 0),t([ze({type:String,reflect:!0})],kr.prototype,"inputmode",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"autocorrect",void 0),t([da()],kr.prototype,"defaultValue",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"hasFeedback",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"required",void 0),t([ze({type:Boolean,reflect:!0})],kr.prototype,"noValidate",void 0),t([ze({reflect:!0})],kr.prototype,"hintText",void 0),t([Pe()],kr.prototype,"_isTouched",void 0),t([nt("rows",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleRowsChange",null),t([nt("_isTouched",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleIsTouched",null),t([nt("disabled",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleDisabledChange",null),t([nt("value",{waitUntilFirstUpdate:!0})],kr.prototype,"_handleValueChange",null);var Cr=r`:host([noPadding]) .card{background-color:inherit;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=thumbnail]::slotted(*){height:var(--sgds-dimension-64)!important;max-width:var(--sgds-dimension-128)!important;min-width:var(--sgds-dimension-64)!important;object-fit:contain;object-position:left;width:100%}`;class $r extends ea{constructor(){super(...arguments),this.noPadding=!1}_getAnchorFromSlot(e){if(!e||0===e.length)return null;const t=e[0];return t.querySelector("a")||t}_handleThumbnailSlotChange(e){var t,s;if(0===e.target.assignedElements({flatten:!0}).length&&("vertical"===this.orientation&&0===this._upperNode.length||"horizontal"===this.orientation)){const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".card-media");e&&(e.style.display="none");const i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelector(".card-body");i&&this.noPadding&&(i.style.padding="0px")}}_handleFooterSlotChange(e){const t=e.target.assignedElements({flatten:!0}),s=this._getAnchorFromSlot(t);this.stretchedLink&&this._forwardAnchorAttributes(s)}_handleLinkSlotChange(e){this.warnLinkSlotMisused(e);const t=e.target.assignedElements({flatten:!0}),s=this._getAnchorFromSlot(t);this.stretchedLink&&this._forwardAnchorAttributes(s)}render(){const e=this.stretchedLink?ht`a`:ht`div`,t=!this.stretchedLink||this.disabled?-1:0;return ut`
2074
2074
  <${e}
2075
2075
  class="card ${Ke({disabled:this.disabled})}"
2076
2076
  tabindex=${t}
@@ -2118,7 +2118,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2118
2118
  @click=${this.handleCloseClick}
2119
2119
  ></sgds-close-button>`:ae}
2120
2120
  </div>
2121
- `}}Mr.styles=[...Oe.styles,Sr],Mr.dependencies={"sgds-close-button":ft},t([Ae("div.toast")],Mr.prototype,"toast",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"show",void 0),t([ze({type:String,reflect:!0})],Mr.prototype,"title",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"noAnimation",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"autohide",void 0),t([ze({type:Number,reflect:!0})],Mr.prototype,"delay",void 0),t([ze({type:String,reflect:!0})],Mr.prototype,"variant",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"dismissible",void 0),t([nt("show",{waitUntilFirstUpdate:!0})],Mr.prototype,"handleShowChange",null),t([Be({slot:"action",flatten:!0})],Mr.prototype,"_actionNodes",void 0),at("toast.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:400,easing:"ease"}}),at("toast.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:400,easing:"ease"}});var Zr=r`.top-start{top:var(--toast-container-top)}.middle-start,.top-start{left:var(--toast-container-left)}.middle-start{top:50%;transform:translateY(-50%)}.middle-center{left:50%;top:50%;transform:translate(-50%,-50%)}.middle-end{right:var(--toast-container-right);top:50%;transform:translateY(-50%)}.toast-container{--toast-container-top:calc(108px + var(--sgds-spacer-8));--toast-container-right:var(--sgds-spacer-8);--toast-container-left:var(--sgds-spacer-8);--toast-container-bottom:var(--sgds-spacer-8);max-width:100%;pointer-events:none;position:fixed;width:max-content;z-index:var(--sgds-z-index-overlay)}.top-center{left:50%;transform:translateX(-50%)}.top-center,.top-end{top:var(--toast-container-top)}.top-end{right:var(--toast-container-right)}.bottom-start{left:var(--toast-container-left)}.bottom-center,.bottom-start{bottom:var(--toast-container-bottom)}.bottom-center{left:50%;transform:translateX(-50%)}.bottom-end{bottom:var(--toast-container-bottom);right:var(--toast-container-right)}slot{display:flex;gap:var(--sgds-layout-gap-md)}:host([position^=top]) slot{flex-direction:column-reverse}:host([position^=bottom]) slot{flex-direction:column}`;class Vr extends Oe{render(){return ut`
2121
+ `}}Mr.styles=[...Oe.styles,Sr],Mr.dependencies={"sgds-close-button":ft},t([De("div.toast")],Mr.prototype,"toast",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"show",void 0),t([ze({type:String,reflect:!0})],Mr.prototype,"title",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"noAnimation",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"autohide",void 0),t([ze({type:Number,reflect:!0})],Mr.prototype,"delay",void 0),t([ze({type:String,reflect:!0})],Mr.prototype,"variant",void 0),t([ze({type:Boolean,reflect:!0})],Mr.prototype,"dismissible",void 0),t([nt("show",{waitUntilFirstUpdate:!0})],Mr.prototype,"handleShowChange",null),t([Be({slot:"action",flatten:!0})],Mr.prototype,"_actionNodes",void 0),at("toast.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:400,easing:"ease"}}),at("toast.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:400,easing:"ease"}});var Zr=r`.top-start{top:var(--toast-container-top)}.middle-start,.top-start{left:var(--toast-container-left)}.middle-start{top:50%;transform:translateY(-50%)}.middle-center{left:50%;top:50%;transform:translate(-50%,-50%)}.middle-end{right:var(--toast-container-right);top:50%;transform:translateY(-50%)}.toast-container{--toast-container-top:calc(108px + var(--sgds-spacer-8));--toast-container-right:var(--sgds-spacer-8);--toast-container-left:var(--sgds-spacer-8);--toast-container-bottom:var(--sgds-spacer-8);max-width:100%;pointer-events:none;position:fixed;width:max-content;z-index:var(--sgds-z-index-overlay)}.top-center{left:50%;transform:translateX(-50%)}.top-center,.top-end{top:var(--toast-container-top)}.top-end{right:var(--toast-container-right)}.bottom-start{left:var(--toast-container-left)}.bottom-center,.bottom-start{bottom:var(--toast-container-bottom)}.bottom-center{left:50%;transform:translateX(-50%)}.bottom-end{bottom:var(--toast-container-bottom);right:var(--toast-container-right)}slot{display:flex;gap:var(--sgds-layout-gap-md)}:host([position^=top]) slot{flex-direction:column-reverse}:host([position^=bottom]) slot{flex-direction:column}`;class Vr extends Oe{render(){return ut`
2122
2122
  <div
2123
2123
  class=${Ke({"toast-container":!0,[this.position]:this.position})}
2124
2124
  >
@@ -2144,14 +2144,14 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2144
2144
  clip-rule="evenodd"
2145
2145
  />
2146
2146
  </svg>
2147
- `,Ir=Object.freeze({__proto__:null,default:Lr}),Ar=te`
2147
+ `,Ar=Object.freeze({__proto__:null,default:Lr}),Dr=te`
2148
2148
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2149
2149
  <path
2150
2150
  fill="currentColor"
2151
2151
  d="M2.5 3.9a.6.6 0 0 0 0 1.2h19a.6.6 0 1 0 0-1.2h-19Zm10.1 5.6a.6.6 0 1 0-1.2 0v8.552l-3.976-3.976a.6.6 0 1 0-.848.848l5 5a.6.6 0 0 0 .848 0l5-5a.6.6 0 1 0-.848-.848L12.6 18.052V9.5Z"
2152
2152
  />
2153
2153
  </svg>
2154
- `,Dr=Object.freeze({__proto__:null,default:Ar}),Er=te`
2154
+ `,Ir=Object.freeze({__proto__:null,default:Dr}),Er=te`
2155
2155
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2156
2156
  <path
2157
2157
  fill="currentColor"
@@ -2411,7 +2411,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2411
2411
  clip-rule="evenodd"
2412
2412
  />
2413
2413
  </svg>
2414
- `,Il=Object.freeze({__proto__:null,default:Ll}),Al=te`
2414
+ `,Al=Object.freeze({__proto__:null,default:Ll}),Dl=te`
2415
2415
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2416
2416
  <path
2417
2417
  fill="currentColor"
@@ -2424,7 +2424,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2424
2424
  clip-rule="evenodd"
2425
2425
  />
2426
2426
  </svg>
2427
- `,Dl=Object.freeze({__proto__:null,default:Al}),El=te`
2427
+ `,Il=Object.freeze({__proto__:null,default:Dl}),El=te`
2428
2428
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2429
2429
  <path
2430
2430
  fill="currentColor"
@@ -2698,14 +2698,14 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2698
2698
  clip-rule="evenodd"
2699
2699
  />
2700
2700
  </svg>
2701
- `,Id=Object.freeze({__proto__:null,default:Ld}),Ad=te`
2701
+ `,Ad=Object.freeze({__proto__:null,default:Ld}),Dd=te`
2702
2702
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2703
2703
  <path
2704
2704
  fill="currentColor"
2705
2705
  d="M19.375 12.2c0-.57 0-.96-.025-1.262-.024-.295-.068-.45-.124-.562a1.378 1.378 0 0 0-.602-.602c-.111-.056-.267-.1-.561-.124a17.248 17.248 0 0 0-1.263-.025h-4.6c-.57 0-.96 0-1.262.025-.295.024-.45.068-.562.124-.259.132-.47.343-.602.602-.056.111-.1.267-.124.562-.024.302-.025.692-.025 1.262v4.6c0 .57 0 .96.025 1.262.024.295.068.45.124.562.132.259.343.47.602.602.111.056.267.1.562.124.302.024.692.025 1.262.025h4.6c.57 0 .96 0 1.262-.025.295-.024.45-.068.562-.124.259-.132.47-.343.602-.602.056-.111.1-.267.124-.561.024-.303.025-.693.025-1.263v-4.6Zm-16-.2V7.2c0-.55 0-1 .03-1.364.03-.372.095-.71.256-1.027A2.626 2.626 0 0 1 4.81 3.66c.316-.161.655-.226 1.027-.257.365-.03.815-.029 1.364-.029H12c.457 0 .832 0 1.137.02.31.022.595.067.868.18a2.625 2.625 0 0 1 1.42 1.42c.125.302.167.62.185.973a.625.625 0 0 1-1.248.064c-.015-.301-.047-.452-.091-.558a1.375 1.375 0 0 0-.745-.745c-.095-.039-.227-.07-.474-.086A17.177 17.177 0 0 0 12 4.625H7.2c-.57 0-.96 0-1.263.025-.294.024-.45.068-.561.124-.259.132-.47.343-.602.602-.056.111-.1.267-.124.561A17.25 17.25 0 0 0 4.625 7.2V12c0 .475 0 .8.018 1.052.016.247.047.38.086.474.14.337.408.605.745.745.106.043.257.076.558.091a.625.625 0 0 1-.064 1.248c-.353-.018-.671-.06-.973-.185a2.625 2.625 0 0 1-1.42-1.42 2.703 2.703 0 0 1-.18-.868c-.02-.305-.02-.68-.02-1.137Zm17.25 4.8c0 .55 0 1-.03 1.364-.03.372-.095.71-.256 1.027a2.627 2.627 0 0 1-1.148 1.148c-.316.161-.655.226-1.027.257-.365.03-.815.029-1.364.029h-4.6c-.55 0-1 0-1.364-.03-.372-.03-.71-.095-1.027-.256A2.627 2.627 0 0 1 8.66 19.19c-.161-.316-.226-.655-.257-1.027-.03-.365-.029-.815-.029-1.364v-4.6c0-.55 0-1 .03-1.364.03-.372.095-.71.256-1.027A2.626 2.626 0 0 1 9.81 8.66c.316-.161.655-.226 1.027-.257.365-.03.815-.029 1.364-.029h4.6c.55 0 1 0 1.364.03.372.03.71.095 1.027.256.494.252.896.654 1.148 1.148.161.316.226.655.257 1.027.03.365.029.815.029 1.364v4.6Z"
2706
2706
  />
2707
2707
  </svg>
2708
- `,Dd=Object.freeze({__proto__:null,default:Ad}),Ed=te`
2708
+ `,Id=Object.freeze({__proto__:null,default:Dd}),Ed=te`
2709
2709
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2710
2710
  <path
2711
2711
  fill="currentColor"
@@ -2999,7 +2999,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
2999
2999
  d="M18.6 15a.6.6 0 0 0-1.2 0v2.4H15a.6.6 0 0 0 0 1.2h2.4V21a.6.6 0 1 0 1.2 0v-2.4H21a.6.6 0 1 0 0-1.2h-2.4V15Z"
3000
3000
  />
3001
3001
  </svg>
3002
- `,Ic=Object.freeze({__proto__:null,default:Lc}),Ac=te`
3002
+ `,Ac=Object.freeze({__proto__:null,default:Lc}),Dc=te`
3003
3003
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3004
3004
  <path
3005
3005
  fill="currentColor"
@@ -3008,7 +3008,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
3008
3008
  clip-rule="evenodd"
3009
3009
  />
3010
3010
  </svg>
3011
- `,Dc=Object.freeze({__proto__:null,default:Ac}),Ec=te`
3011
+ `,Ic=Object.freeze({__proto__:null,default:Dc}),Ec=te`
3012
3012
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3013
3013
  <path
3014
3014
  fill="currentColor"
@@ -3270,7 +3270,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
3270
3270
  clip-rule="evenodd"
3271
3271
  />
3272
3272
  </svg>
3273
- `,Ih=Object.freeze({__proto__:null,default:Lh}),Ah=te`
3273
+ `,Ah=Object.freeze({__proto__:null,default:Lh}),Dh=te`
3274
3274
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3275
3275
  <path
3276
3276
  fill="currentColor"
@@ -3280,7 +3280,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
3280
3280
  />
3281
3281
  <path fill="currentColor" d="M12 7.15a.85.85 0 0 0 0 1.7h.01a.85.85 0 1 0 0-1.7H12Z" />
3282
3282
  </svg>
3283
- `,Dh=Object.freeze({__proto__:null,default:Ah}),Eh=te`
3283
+ `,Ih=Object.freeze({__proto__:null,default:Dh}),Eh=te`
3284
3284
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3285
3285
  <path
3286
3286
  fill="currentColor"
@@ -3532,14 +3532,14 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
3532
3532
  d="M6.924 6.641c0-.961.129-1.894.373-2.779a9.259 9.259 0 1 0 12.84 12.84c-.885.244-1.817.374-2.779.374-5.763 0-10.434-4.671-10.434-10.434Zm1.176 0a9.258 9.258 0 0 0 9.258 9.259c1.36 0 2.65-.293 3.811-.818a.59.59 0 0 1 .779.778A10.438 10.438 0 0 1 12.435 22C6.672 22 2 17.328 2 11.565 2 7.332 4.52 3.69 8.14 2.052a.588.588 0 0 1 .778.779A9.223 9.223 0 0 0 8.1 6.64Z"
3533
3533
  />
3534
3534
  </svg>
3535
- `,Ip=Object.freeze({__proto__:null,default:Lp}),Ap=te`
3535
+ `,Ap=Object.freeze({__proto__:null,default:Lp}),Dp=te`
3536
3536
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3537
3537
  <path
3538
3538
  fill="currentColor"
3539
3539
  d="M10.125 19a1.625 1.625 0 1 1-3.25 0 1.625 1.625 0 0 1 3.25 0Zm7 0a1.625 1.625 0 1 1-3.25 0 1.625 1.625 0 0 1 3.25 0Zm-7-7a1.625 1.625 0 1 1-3.25 0 1.625 1.625 0 0 1 3.25 0Zm7 0a1.625 1.625 0 1 1-3.25 0 1.625 1.625 0 0 1 3.25 0Zm-7-7a1.625 1.625 0 1 1-3.25 0 1.625 1.625 0 0 1 3.25 0Zm7 0a1.625 1.625 0 1 1-3.25 0 1.625 1.625 0 0 1 3.25 0Z"
3540
3540
  />
3541
3541
  </svg>
3542
- `,Dp=Object.freeze({__proto__:null,default:Ap}),Ep=te`
3542
+ `,Ip=Object.freeze({__proto__:null,default:Dp}),Ep=te`
3543
3543
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3544
3544
  <path
3545
3545
  fill="currentColor"
@@ -3809,7 +3809,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
3809
3809
  d="M11.687 6.91s.261-.256.349-.466c3.964 1.713 3.34 4.616.972 7.052-1.452 1.548-1.002 3.218-1.002 3.218s-1.77 1.142-2.381 2.135c0 0-2.565-2.261.987-6.014 3.485-3.684 1.075-5.925 1.075-5.925Z"
3810
3810
  />
3811
3811
  </svg>
3812
- `,Iu=Object.freeze({__proto__:null,default:Lu}),Au=te`
3812
+ `,Au=Object.freeze({__proto__:null,default:Lu}),Du=te`
3813
3813
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3814
3814
  <path
3815
3815
  fill="currentColor"
@@ -3818,7 +3818,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
3818
3818
  clip-rule="evenodd"
3819
3819
  />
3820
3820
  </svg>
3821
- `,Du=Object.freeze({__proto__:null,default:Au}),Eu=te`
3821
+ `,Iu=Object.freeze({__proto__:null,default:Du}),Eu=te`
3822
3822
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
3823
3823
  <path
3824
3824
  fill="currentColor"
@@ -4088,7 +4088,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
4088
4088
  clip-rule="evenodd"
4089
4089
  />
4090
4090
  </svg>
4091
- `,Ig=Object.freeze({__proto__:null,default:Lg}),Ag=te`
4091
+ `,Ag=Object.freeze({__proto__:null,default:Lg}),Dg=te`
4092
4092
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
4093
4093
  <path
4094
4094
  fill="currentColor"
@@ -4097,7 +4097,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
4097
4097
  clip-rule="evenodd"
4098
4098
  />
4099
4099
  </svg>
4100
- `,Dg=Object.freeze({__proto__:null,default:Ag}),Eg=te`
4100
+ `,Ig=Object.freeze({__proto__:null,default:Dg}),Eg=te`
4101
4101
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
4102
4102
  <path
4103
4103
  fill="currentColor"
@@ -4369,14 +4369,14 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
4369
4369
  clip-rule="evenodd"
4370
4370
  />
4371
4371
  </svg>
4372
- `,Iv=Object.freeze({__proto__:null,default:Lv}),Av=te`
4372
+ `,Av=Object.freeze({__proto__:null,default:Lv}),Dv=te`
4373
4373
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
4374
4374
  <path
4375
4375
  fill="currentColor"
4376
4376
  d="M12.058 5.678h.1c.925.003 5.61.037 6.874.377a2.261 2.261 0 0 1 1.592 1.597c.114.428.194.994.248 1.578l.011.117.025.292.009.117c.073 1.028.082 1.992.083 2.202v.084a36.093 36.093 0 0 1-.092 2.318l-.01.118-.01.117c-.056.644-.139 1.283-.264 1.753a2.258 2.258 0 0 1-1.592 1.598c-1.305.35-6.265.375-6.953.376h-.16c-.347 0-1.785-.006-3.293-.058l-.19-.007-.099-.004-.384-.016c-1.25-.055-2.438-.144-2.986-.293a2.258 2.258 0 0 1-1.592-1.596c-.125-.47-.208-1.11-.265-1.753l-.018-.235A35.32 35.32 0 0 1 3 12.07v-.14c.002-.241.011-1.077.072-2l.008-.115.003-.059.01-.117.024-.292.011-.117c.054-.584.134-1.151.248-1.578a2.258 2.258 0 0 1 1.592-1.597c.548-.147 1.737-.237 2.986-.293l.19-.008.291-.01.193-.008c1.07-.034 2.142-.053 3.213-.057h.217v-.001ZM10.2 9.289v5.42l4.676-2.708L10.2 9.289Z"
4377
4377
  />
4378
4378
  </svg>
4379
- `,Dv=Object.freeze({__proto__:null,default:Av}),Ev=te`
4379
+ `,Iv=Object.freeze({__proto__:null,default:Dv}),Ev=te`
4380
4380
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
4381
4381
  <path
4382
4382
  fill="currentColor"
@@ -4394,5 +4394,5 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends We{constructor(e){if(s
4394
4394
  clip-rule="evenodd"
4395
4395
  />
4396
4396
  </svg>
4397
- `,Ov=Object.freeze({__proto__:null,default:Hv});e.SgdsAccordion=Re,e.SgdsAccordionItem=lt,e.SgdsAlert=kt,e.SgdsAlertLink=St,e.SgdsBadge=Si,e.SgdsBreadcrumb=Hi,e.SgdsBreadcrumbItem=Ri,e.SgdsButton=Yi,e.SgdsCard=sa,e.SgdsCheckbox=ga,e.SgdsCheckboxGroup=ma,e.SgdsCloseButton=ft,e.SgdsComboBox=Za,e.SgdsComboBoxOption=ka,e.SgdsDataTable=Ba,e.SgdsDataTableCell=Aa,e.SgdsDataTableHead=Da,e.SgdsDataTableRow=Ea,e.SgdsDatepicker=ho,e.SgdsDescriptionList=go,e.SgdsDescriptionListGroup=mo,e.SgdsDivider=bo,e.SgdsDrawer=ko,e.SgdsDropdown=Ii,e.SgdsDropdownItem=Di,e.SgdsFileUpload=$o,e.SgdsFooter=Zo,e.SgdsFooterItem=zo,e.SgdsIcon=_t,e.SgdsIconButton=Pa,e.SgdsIconCard=Lo,e.SgdsIconList=Ao,e.SgdsImageCard=Eo,e.SgdsInput=no,e.SgdsLink=Ti,e.SgdsMainnav=Go,e.SgdsMainnavDropdown=Qo,e.SgdsMainnavItem=tn,e.SgdsMasthead=on,e.SgdsModal=cn,e.SgdsOverflowMenu=Ei,e.SgdsPagination=Ia,e.SgdsProgressBar=vn,e.SgdsQuantityToggle=fn,e.SgdsRadio=wn,e.SgdsRadioGroup=_n,e.SgdsSelect=Cn,e.SgdsSelectOption=kn,e.SgdsSidebar=Dn,e.SgdsSidenav=Bn,e.SgdsSidenavItem=On,e.SgdsSidenavLink=Fn,e.SgdsSkeleton=Nn,e.SgdsSpinner=Ma,e.SgdsStep=Un,e.SgdsStepper=Yn,e.SgdsSubnav=Gn,e.SgdsSubnavItem=Xn,e.SgdsSwitch=er,e.SgdsSystemBanner=sr,e.SgdsTab=or,e.SgdsTabGroup=rr,e.SgdsTabPanel=cr,e.SgdsTable=ur,e.SgdsTableCell=vr,e.SgdsTableHead=fr,e.SgdsTableOfContents=_r,e.SgdsTableRow=wr,e.SgdsTextarea=kr,e.SgdsThumbnailCard=$r,e.SgdsToast=Mr,e.SgdsToastContainer=Vr,e.SgdsTooltip=Ci,Object.defineProperty(e,"__esModule",{value:!0})});
4397
+ `,Ov=Object.freeze({__proto__:null,default:Hv});e.SgdsAccordion=Re,e.SgdsAccordionItem=lt,e.SgdsAlert=kt,e.SgdsAlertLink=St,e.SgdsBadge=Si,e.SgdsBreadcrumb=Hi,e.SgdsBreadcrumbItem=Ri,e.SgdsButton=Yi,e.SgdsCard=sa,e.SgdsCheckbox=ga,e.SgdsCheckboxGroup=ma,e.SgdsCloseButton=ft,e.SgdsComboBox=Za,e.SgdsComboBoxOption=ka,e.SgdsDataTable=Ba,e.SgdsDataTableCell=Da,e.SgdsDataTableHead=Ia,e.SgdsDataTableRow=Ea,e.SgdsDatepicker=ho,e.SgdsDescriptionList=go,e.SgdsDescriptionListGroup=mo,e.SgdsDivider=bo,e.SgdsDrawer=ko,e.SgdsDropdown=Ai,e.SgdsDropdownItem=Ii,e.SgdsFileUpload=$o,e.SgdsFooter=Zo,e.SgdsFooterItem=zo,e.SgdsIcon=_t,e.SgdsIconButton=Pa,e.SgdsIconCard=Lo,e.SgdsIconList=Do,e.SgdsImageCard=Eo,e.SgdsInput=no,e.SgdsLink=Ti,e.SgdsMainnav=Go,e.SgdsMainnavDropdown=Qo,e.SgdsMainnavItem=tn,e.SgdsMasthead=on,e.SgdsModal=cn,e.SgdsOverflowMenu=Ei,e.SgdsPagination=Aa,e.SgdsProgressBar=vn,e.SgdsQuantityToggle=fn,e.SgdsRadio=wn,e.SgdsRadioGroup=_n,e.SgdsSelect=Cn,e.SgdsSelectOption=kn,e.SgdsSidebar=In,e.SgdsSidenav=Bn,e.SgdsSidenavItem=On,e.SgdsSidenavLink=Fn,e.SgdsSkeleton=Nn,e.SgdsSpinner=Ma,e.SgdsStep=Un,e.SgdsStepper=Yn,e.SgdsSubnav=Gn,e.SgdsSubnavItem=Xn,e.SgdsSwitch=er,e.SgdsSystemBanner=sr,e.SgdsTab=or,e.SgdsTabGroup=rr,e.SgdsTabPanel=cr,e.SgdsTable=ur,e.SgdsTableCell=vr,e.SgdsTableHead=fr,e.SgdsTableOfContents=_r,e.SgdsTableRow=wr,e.SgdsTextarea=kr,e.SgdsThumbnailCard=$r,e.SgdsToast=Mr,e.SgdsToastContainer=Vr,e.SgdsTooltip=Ci,Object.defineProperty(e,"__esModule",{value:!0})});
4398
4398
  //# sourceMappingURL=index.umd.min.js.map