@govtechsg/sgds-web-component 3.24.1-rc.2 → 3.24.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/DataTable/index.umd.min.js +290 -286
- package/components/DataTable/index.umd.min.js.map +1 -1
- package/components/DataTable/sgds-data-table-cell.d.ts +2 -1
- package/components/DataTable/sgds-data-table-cell.js +10 -2
- package/components/DataTable/sgds-data-table-cell.js.map +1 -1
- package/components/DataTable/sgds-data-table-head.d.ts +2 -1
- package/components/DataTable/sgds-data-table-head.js +10 -2
- package/components/DataTable/sgds-data-table-head.js.map +1 -1
- package/components/DataTable/sgds-data-table-row.d.ts +8 -3
- package/components/DataTable/sgds-data-table-row.js +40 -17
- package/components/DataTable/sgds-data-table-row.js.map +1 -1
- package/components/DataTable/sgds-data-table.js +17 -6
- package/components/DataTable/sgds-data-table.js.map +1 -1
- package/components/index.umd.min.js +57 -48
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +3 -3
- package/custom-elements.json +806 -785
- package/index.umd.min.js +18 -9
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/components/DataTable/sgds-data-table-cell.cjs.js +9 -1
- package/react/components/DataTable/sgds-data-table-cell.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-cell.js +10 -2
- package/react/components/DataTable/sgds-data-table-cell.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-head.cjs.js +9 -1
- package/react/components/DataTable/sgds-data-table-head.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-head.js +10 -2
- package/react/components/DataTable/sgds-data-table-head.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-row.cjs.js +39 -16
- package/react/components/DataTable/sgds-data-table-row.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table-row.js +40 -17
- package/react/components/DataTable/sgds-data-table-row.js.map +1 -1
- package/react/components/DataTable/sgds-data-table.cjs.js +17 -6
- package/react/components/DataTable/sgds-data-table.cjs.js.map +1 -1
- package/react/components/DataTable/sgds-data-table.js +17 -6
- package/react/components/DataTable/sgds-data-table.js.map +1 -1
- package/react/index.cjs.js +26 -26
- package/react/index.d.ts +3 -3
- package/react/index.js +3 -3
- package/types/react.d.ts +29 -29
|
@@ -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 P=S.ShadyDOM?.inUse&&!0===S.ShadyDOM?.noPatch?S.ShadyDOM.wrap:e=>e,z=S.trustedTypes,L=z?z.createPolicy("lit-html",{createHTML:e=>e}):void 0,D=e=>e,I=(e,t,s)=>D,A=e=>{if(re!==I)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");re=e},E=()=>{re=I},H=(e,t,s)=>re(e,t,s),B="$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]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/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=I;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=K;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===K){if("!--"===l[1])n=W;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??K,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===W||n===G?n=K:(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===K?s+F:d>=0?(i.push(r),s.slice(0,d)+B+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(B)){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]?fe:"@"===n[1]?me: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=z?z.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=P(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 P(P(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),re!==I){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=P(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=H(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=H(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&&P(s._$endNode).nextSibling,i),t.length=i)}_$clear(e=P(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=P(e).nextSibling;P(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?P(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}),P(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 fe 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}),P(this.element).toggleAttribute(this.name,!!e&&e!==ae)}}class me 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:B,_marker:O,_markerMatch:T,_HTML_RESULT:1,_getTemplateHtml:de,_TemplateInstance:pe,_isIterable:q,_resolveDirective:he,_ChildPart:ue,_AttributePart:ge,_BooleanAttributePart:fe,_EventPart:me,_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=A,_e.createSanitizer=H,_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 P=S.ShadyDOM?.inUse&&!0===S.ShadyDOM?.noPatch?S.ShadyDOM.wrap:e=>e,z=S.trustedTypes,L=z?z.createPolicy("lit-html",{createHTML:e=>e}):void 0,D=e=>e,I=(e,t,s)=>D,A=e=>{if(re!==I)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");re=e},E=()=>{re=I},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]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/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=I;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=K;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===K){if("!--"===l[1])n=W;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??K,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===W||n===G?n=K:(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===K?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]?fe:"@"===n[1]?me: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=z?z.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=P(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 P(P(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),re!==I){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=P(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&&P(s._$endNode).nextSibling,i),t.length=i)}_$clear(e=P(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=P(e).nextSibling;P(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?P(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}),P(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 fe 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}),P(this.element).toggleAttribute(this.name,!!e&&e!==ae)}}class me 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:fe,_EventPart:me,_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=A,_e.createSanitizer=B,_e._testOnlyClearSanitizerFactoryDoNotCallOrElse=E;
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 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
|
|
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,De=(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}}::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([Pe({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>
|
|
@@ -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
|
-
`}}mt.styles=[...Oe.styles,vt],t([Pe({type:String,reflect:!0})],mt.prototype,"size",void 0),t([Pe({type:String,reflect:!0})],mt.prototype,"tone",void 0),t([Pe({type:Boolean,reflect:!0})],mt.prototype,"disabled",void 0);const bt={announcement:()=>Promise.resolve().then(function(){return zr}),archive:()=>Promise.resolve().then(function(){return Dr}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Ar}),"arrow-bar-left":()=>Promise.resolve().then(function(){return Hr}),"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 Wr}),"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 ml}),"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 zl}),building:()=>Promise.resolve().then(function(){return Dl}),bus:()=>Promise.resolve().then(function(){return Al}),calculator:()=>Promise.resolve().then(function(){return Hl}),"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 Wl}),"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 md}),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 zd}),compass:()=>Promise.resolve().then(function(){return Dd}),copy:()=>Promise.resolve().then(function(){return Ad}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Hd}),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 Wd}),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 mc}),"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 zc}),"file-plus":()=>Promise.resolve().then(function(){return Dc}),"file-text":()=>Promise.resolve().then(function(){return Ac}),file:()=>Promise.resolve().then(function(){return Hc}),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 Wc}),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 mh}),"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 zh}),"info-circle-fill":()=>Promise.resolve().then(function(){return Dh}),"info-circle":()=>Promise.resolve().then(function(){return Ah}),instagram:()=>Promise.resolve().then(function(){return Hh}),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 Wh}),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 mp}),"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 zp}),moon:()=>Promise.resolve().then(function(){return Dp}),move:()=>Promise.resolve().then(function(){return Ap}),paperclip:()=>Promise.resolve().then(function(){return Hp}),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 Wp}),"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 mu}),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 zu}),"sg-crest":()=>Promise.resolve().then(function(){return Du}),share:()=>Promise.resolve().then(function(){return Au}),"shield-tick":()=>Promise.resolve().then(function(){return Hu}),"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 Wu}),"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 mg}),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 zg}),translate:()=>Promise.resolve().then(function(){return Dg}),trash:()=>Promise.resolve().then(function(){return Ag}),"trend-down":()=>Promise.resolve().then(function(){return Hg}),"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 Wg}),"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 mv}),"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 zv}),xcircle:()=>Promise.resolve().then(function(){return Dv}),youtube:()=>Promise.resolve().then(function(){return Av}),"zoom-in":()=>Promise.resolve().then(function(){return Hv}),"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([Pe({type:String,reflect:!0})],_t.prototype,"name",void 0),t([Pe({type:String,reflect:!0})],_t.prototype,"size",void 0),t([Pe({type:String})],_t.prototype,"ariaLabel",void 0),t([ze()],_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-body-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-body-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
|
+
`}}mt.styles=[...Oe.styles,vt],t([Pe({type:String,reflect:!0})],mt.prototype,"size",void 0),t([Pe({type:String,reflect:!0})],mt.prototype,"tone",void 0),t([Pe({type:Boolean,reflect:!0})],mt.prototype,"disabled",void 0);const bt={announcement:()=>Promise.resolve().then(function(){return zr}),archive:()=>Promise.resolve().then(function(){return Dr}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Ar}),"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 Wr}),"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 ml}),"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 zl}),building:()=>Promise.resolve().then(function(){return Dl}),bus:()=>Promise.resolve().then(function(){return Al}),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 Wl}),"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 md}),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 zd}),compass:()=>Promise.resolve().then(function(){return Dd}),copy:()=>Promise.resolve().then(function(){return Ad}),"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 Wd}),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 mc}),"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 zc}),"file-plus":()=>Promise.resolve().then(function(){return Dc}),"file-text":()=>Promise.resolve().then(function(){return Ac}),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 Wc}),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 mh}),"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 zh}),"info-circle-fill":()=>Promise.resolve().then(function(){return Dh}),"info-circle":()=>Promise.resolve().then(function(){return Ah}),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 Wh}),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 mp}),"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 zp}),moon:()=>Promise.resolve().then(function(){return Dp}),move:()=>Promise.resolve().then(function(){return Ap}),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 Wp}),"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 mu}),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 zu}),"sg-crest":()=>Promise.resolve().then(function(){return Du}),share:()=>Promise.resolve().then(function(){return Au}),"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 Wu}),"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 mg}),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 zg}),translate:()=>Promise.resolve().then(function(){return Dg}),trash:()=>Promise.resolve().then(function(){return Ag}),"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 Wg}),"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 mv}),"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 zv}),xcircle:()=>Promise.resolve().then(function(){return Dv}),youtube:()=>Promise.resolve().then(function(){return Av}),"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([Pe({type:String,reflect:!0})],_t.prototype,"name",void 0),t([Pe({type:String,reflect:!0})],_t.prototype,"size",void 0),t([Pe({type:String})],_t.prototype,"ariaLabel",void 0),t([ze()],_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-body-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-body-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="${We({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,Pt=e=>void 0===e.strings,zt=()=>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(zt(),a),o=Vt(i).insertBefore(zt(),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},Dt=(e,t,s=e)=>(e._$setValue(t,s),e),It={},At=(e,t=It)=>e._$committedValue=t,Et=e=>{e._$clear(),e._$startNode.remove()},
|
|
141
|
+
*/;const{_ChildPart:Zt}=we,Vt=window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch?window.ShadyDOM.wrap:e=>e,Pt=e=>void 0===e.strings,zt=()=>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(zt(),a),o=Vt(i).insertBefore(zt(),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},Dt=(e,t,s=e)=>(e._$setValue(t,s),e),It={},At=(e,t=It)=>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 Ke{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(Pt(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)}}),Kt=["top","right","bottom","left"],Wt=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,Wt(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"],fs=["bottom","top"];function ms(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:fs;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],f=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})),m="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:m,offsetParent:b,strategy:l}):m);return{top:(f.top-y.top+g.top)/w.y,bottom:(y.bottom-f.bottom+g.bottom)/w.y,left:(f.left-y.left+g.left)/w.x,right:(y.right-f.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 Kt.some(t=>e[t]>=0)}const $s=new Set(["left","top"]);function Ss(){return"undefined"!=typeof window}function Ms(e){return Ps(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=(Ps(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ps(e){return!!Ss()&&(e instanceof Node||e instanceof Zs(e).Node)}function zs(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 Ds(e){return!(!Ss()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zs(e).ShadowRoot)}const Is=new Set(["inline","contents"]);function As(e){const{overflow:t,overflowX:s,overflowY:i,display:a}=Ys(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+s)&&!Is.has(a)}const Es=new Set(["table","td","th"]);function Hs(e){return Es.has(Ms(e))}const Bs=[":popover-open",":modal"];function Os(e){return Bs.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=zs(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 Ks(e){return zs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ws(e){if("html"===Ms(e))return e;const t=e.assignedSlot||e.parentNode||Ds(e)&&e.host||Vs(e);return Ds(t)?t.host:t}function Gs(e){const t=Ws(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ls(t)&&As(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||[],As(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 zs(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?zs(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&&zs(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=Ks(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=Ks(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(zs(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=Ws(e);return!(s===t||!zs(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)||As(a))&&(r=Ks(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=Ws(e);for(;t&&!qs(t);){if(zs(t)&&!hi(t))return t;t=Ws(t)}return s}let i=pi(e,t);for(;i&&Hs(i)&&hi(i);)i=pi(i,t);return i&&qs(i)&&hi(i)&&!Ns(i)?s:i||function(e){let t=Ws(e);for(;Ls(t)&&!qs(t);){if(Ns(t))return t;if(Os(t))return null;t=Ws(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)||As(n))&&(l=Ks(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=>zs(e)&&"body"!==Ms(e)),a=null;const o="fixed"===Ys(e).position;let n=o?Ws(e):e;for(;zs(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)||As(n)&&!s&&di(e,n))?i=i.filter(e=>e!==n):a=t,n=Ws(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=Wt(i.right,e.right),e.bottom=Wt(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:zs,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 fi(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,Wt(1,l))||1};let v=!0;function f(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(f,{...g,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(f,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 mi=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,...f}=is(e,t);if(null!=(s=o.arrow)&&s.alignmentOffset)return{};const m=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(...ms(r,v,g,y));const k=[r,..._],C=await xs(t,f),$=[];let S=(null==(i=o.flip)?void 0:i.overflows)||[];if(c&&$.push(C[m]),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 f,m;"top"===h||"bottom"===h?(f=h,m=p===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(m=h,f="end"===p?"top":"bottom");const b=v-c.top-c.bottom,w=g-c.left-c.right,y=Wt(v-c[f],b),_=Wt(g-c[m],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:f,y:m,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!=f?f:c,h=null!=m?m: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-14);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:[mi(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=fi(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)}}),Kt=["top","right","bottom","left"],Wt=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,Wt(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"],fs=["bottom","top"];function ms(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:fs;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],f=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})),m="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:m,offsetParent:b,strategy:l}):m);return{top:(f.top-y.top+g.top)/w.y,bottom:(y.bottom-f.bottom+g.bottom)/w.y,left:(f.left-y.left+g.left)/w.x,right:(y.right-f.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 Kt.some(t=>e[t]>=0)}const $s=new Set(["left","top"]);function Ss(){return"undefined"!=typeof window}function Ms(e){return Ps(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=(Ps(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ps(e){return!!Ss()&&(e instanceof Node||e instanceof Zs(e).Node)}function zs(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 Ds(e){return!(!Ss()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zs(e).ShadowRoot)}const Is=new Set(["inline","contents"]);function As(e){const{overflow:t,overflowX:s,overflowY:i,display:a}=Ys(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+s)&&!Is.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=zs(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 Ks(e){return zs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ws(e){if("html"===Ms(e))return e;const t=e.assignedSlot||e.parentNode||Ds(e)&&e.host||Vs(e);return Ds(t)?t.host:t}function Gs(e){const t=Ws(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ls(t)&&As(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||[],As(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 zs(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?zs(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&&zs(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=Ks(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=Ks(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(zs(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=Ws(e);return!(s===t||!zs(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)||As(a))&&(r=Ks(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=Ws(e);for(;t&&!qs(t);){if(zs(t)&&!hi(t))return t;t=Ws(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=Ws(e);for(;Ls(t)&&!qs(t);){if(Ns(t))return t;if(Os(t))return null;t=Ws(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)||As(n))&&(l=Ks(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=>zs(e)&&"body"!==Ms(e)),a=null;const o="fixed"===Ys(e).position;let n=o?Ws(e):e;for(;zs(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)||As(n)&&!s&&di(e,n))?i=i.filter(e=>e!==n):a=t,n=Ws(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=Wt(i.right,e.right),e.bottom=Wt(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:zs,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 fi(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,Wt(1,l))||1};let v=!0;function f(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(f,{...g,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(f,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 mi=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,...f}=is(e,t);if(null!=(s=o.arrow)&&s.alignmentOffset)return{};const m=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(...ms(r,v,g,y));const k=[r,..._],C=await xs(t,f),$=[];let S=(null==(i=o.flip)?void 0:i.overflows)||[];if(c&&$.push(C[m]),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 f,m;"top"===h||"bottom"===h?(f=h,m=p===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(m=h,f="end"===p?"top":"bottom");const b=v-c.top-c.bottom,w=g-c.left-c.right,y=Wt(v-c[f],b),_=Wt(g-c[m],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:f,y:m,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!=f?f:c,h=null!=m?m: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-14);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:[mi(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=fi(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}
|
|
@@ -191,13 +191,13 @@ const dt=Symbol.for(""),ct=e=>{if(e?.r===dt)return e?._$litStatic$},ht=(e,...t)=
|
|
|
191
191
|
</button>
|
|
192
192
|
<slot></slot>
|
|
193
193
|
</sgds-dropdown>
|
|
194
|
-
`}}Ei.styles=[...Oe.styles,Mi],Ei.dependencies={"sgds-dropdown":Di,"sgds-dropdown-item":Ai,"sgds-icon":_t},t([Pe({type:String,reflect:!0})],Ei.prototype,"size",void 0);var
|
|
194
|
+
`}}Ei.styles=[...Oe.styles,Mi],Ei.dependencies={"sgds-dropdown":Di,"sgds-dropdown-item":Ai,"sgds-icon":_t},t([Pe({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
|
-
`}}Bi.styles=[...Oe.styles,Hi],Bi.dependencies={"sgds-overflow-menu":Ei},t([Pe({type:String})],Bi.prototype,"ariaLabel",void 0),t([Ie("slot")],Bi.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-16)!important;line-height:var(--sgds-line-height-24)!important}:host([size=lg]) .nav-link::slotted(a){--text-underline-offset:4px;font-size:var(--sgds-font-size-20)!important;line-height:var(--sgds-line-height-32)!important}:host([size=sm]) .nav-link::slotted(a){--text-underline-offset:2.8px;font-size:var(--sgds-font-size-14)!important;line-height:var(--sgds-line-height-20)!important}:host([size=xs]) .nav-link::slotted(a){--text-underline-offset:2.2px;font-size:var(--sgds-font-size-12)!important;line-height:var(--sgds-line-height-16)!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}@media (prefers-reduced-motion:reduce){.nav-link::slotted(a:hover),:host(:not([active])) .nav-link::slotted(a:not(:hover)),:host([active]) .nav-link::slotted(a){transition:none}}`;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([Pe({type:String,reflect:!0})],Ti.prototype,"size",void 0),t([Pe({type:String,reflect:!0})],Ti.prototype,"variant",void 0),t([Pe({type:String,reflect:!0})],Ti.prototype,"tone",void 0),t([Pe({type:Boolean,reflect:!0})],Ti.prototype,"active",void 0),t([Pe({type:Boolean,reflect:!0})],Ti.prototype,"disabled",void 0);var Fi=r`:host{align-items:center;display:flex;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([Pe({type:String})],Hi.prototype,"ariaLabel",void 0),t([Ie("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-16)!important;line-height:var(--sgds-line-height-24)!important}:host([size=lg]) .nav-link::slotted(a){--text-underline-offset:4px;font-size:var(--sgds-font-size-20)!important;line-height:var(--sgds-line-height-32)!important}:host([size=sm]) .nav-link::slotted(a){--text-underline-offset:2.8px;font-size:var(--sgds-font-size-14)!important;line-height:var(--sgds-line-height-20)!important}:host([size=xs]) .nav-link::slotted(a){--text-underline-offset:2.2px;font-size:var(--sgds-font-size-12)!important;line-height:var(--sgds-line-height-16)!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}@media (prefers-reduced-motion:reduce){.nav-link::slotted(a:hover),:host(:not([active])) .nav-link::slotted(a:not(:hover)),:host([active]) .nav-link::slotted(a){transition:none}}`;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([Pe({type:String,reflect:!0})],Ti.prototype,"size",void 0),t([Pe({type:String,reflect:!0})],Ti.prototype,"variant",void 0),t([Pe({type:String,reflect:!0})],Ti.prototype,"tone",void 0),t([Pe({type:Boolean,reflect:!0})],Ti.prototype,"active",void 0),t([Pe({type:Boolean,reflect:!0})],Ti.prototype,"disabled",void 0);var Fi=r`:host{align-items:center;display:flex;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>
|
|
@@ -590,7 +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
|
-
`}}Da.styles=[...Oe.styles,La],Da.dependencies={"sgds-icon-button":za,"sgds-button":Yi,"sgds-icon":_t},t([Pe({type:Number})],Da.prototype,"dataLength",void 0),t([Pe({type:Number})],Da.prototype,"currentPage",void 0),t([Pe({type:Number})],Da.prototype,"itemsPerPage",void 0),t([Pe({type:String})],Da.prototype,"variant",void 0),t([Pe({type:String})],Da.prototype,"navigation",void 0),t([Pe({type:String})],Da.prototype,"size",void 0),t([ze()],Da.prototype,"_limit",void 0),t([nt("currentPage",{waitUntilFirstUpdate:!1})],Da.prototype,"_handleValueChange",null);class Ia extends Oe{render(){return
|
|
593
|
+
`}}Da.styles=[...Oe.styles,La],Da.dependencies={"sgds-icon-button":za,"sgds-button":Yi,"sgds-icon":_t},t([Pe({type:Number})],Da.prototype,"dataLength",void 0),t([Pe({type:Number})],Da.prototype,"currentPage",void 0),t([Pe({type:Number})],Da.prototype,"itemsPerPage",void 0),t([Pe({type:String})],Da.prototype,"variant",void 0),t([Pe({type:String})],Da.prototype,"navigation",void 0),t([Pe({type:String})],Da.prototype,"size",void 0),t([ze()],Da.prototype,"_limit",void 0),t([nt("currentPage",{waitUntilFirstUpdate:!1})],Da.prototype,"_handleValueChange",null);class Ia extends Oe{render(){return te`<slot></slot>`}}Ia.styles=[...Oe.styles,r`
|
|
594
|
+
:host {
|
|
595
|
+
display: contents;
|
|
596
|
+
}
|
|
597
|
+
`],t([Pe({type:Number,reflect:!0})],Ia.prototype,"colspan",void 0),t([Pe({type:Number,reflect:!0})],Ia.prototype,"rowspan",void 0);class Aa 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>`}}Aa.styles=[...Oe.styles,r`
|
|
598
|
+
:host {
|
|
599
|
+
display: contents;
|
|
600
|
+
}
|
|
601
|
+
`],t([Pe({type:String,reflect:!0})],Aa.prototype,"width",void 0),t([Pe({type:Number,reflect:!0})],Aa.prototype,"colspan",void 0),t([Pe({type:Number,reflect:!0})],Aa.prototype,"rowspan",void 0),t([Pe({type:String,reflect:!0})],Aa.prototype,"textAlign",void 0),t([Pe({type:String,reflect:!0})],Aa.prototype,"ariasort",void 0),t([Pe({type:Boolean,reflect:!0})],Aa.prototype,"sorting",void 0),t([Pe({type:String,reflect:!0})],Aa.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 Ia),i=s[e];return i?(null!==(t=i.textContent)&&void 0!==t?t:"").trim():""}_getCells(){return Array.from(this.children).filter(e=>e instanceof Ia||e instanceof Aa)}_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 Aa),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 Aa)return te`<th
|
|
594
602
|
width=${Ge(e.width)}
|
|
595
603
|
colspan=${Ge(e.colspan)}
|
|
596
604
|
rowspan=${Ge(e.rowspan)}
|
|
@@ -602,7 +610,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
|
|
|
602
610
|
@keydown=${e.sorting?t=>this._onSortKeyDown(t,e):ae}
|
|
603
611
|
>
|
|
604
612
|
<div class="data-table-head ${"right"===e.textAlign?"align-right":"align-left"}">
|
|
605
|
-
${i}
|
|
613
|
+
${i?te`<slot name=${i}></slot>`:ae}
|
|
606
614
|
${e.sorting?te`
|
|
607
615
|
<button
|
|
608
616
|
type="button"
|
|
@@ -619,7 +627,9 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
|
|
|
619
627
|
`:ae}
|
|
620
628
|
</div>
|
|
621
629
|
</th>`;const a=null!==(s=this.columnAlignments[t])&&void 0!==s?s:"left";return te`<td colspan=${Ge(e.colspan)} rowspan=${Ge(e.rowspan)}>
|
|
622
|
-
<div class="data-table-cell ${"right"===a?"align-right":"align-left"}"
|
|
630
|
+
<div class="data-table-cell ${"right"===a?"align-right":"align-left"}">
|
|
631
|
+
${i?te`<slot name=${i}></slot>`:ae}
|
|
632
|
+
</div>
|
|
623
633
|
</td>`}_renderExpandCell(){return this._isHeaderRow?te`<th class="control-cell" scope="col"></th>`:te`<td class="control-cell" @click=${this._toggleExpand} @keydown=${this._onExpandKeyDown} tabindex="0">
|
|
624
634
|
<div class="data-table-cell expand-cell">
|
|
625
635
|
<sgds-icon name=${this.open?"chevron-up":"chevron-down"} size="md"></sgds-icon>
|
|
@@ -632,17 +642,16 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
|
|
|
632
642
|
<div class="data-table-cell checkbox-cell">
|
|
633
643
|
<sgds-checkbox .checked=${this.checked} @sgds-change=${this._onCheckboxChange}></sgds-checkbox>
|
|
634
644
|
</div>
|
|
635
|
-
</td>`}
|
|
636
|
-
<tr part=${
|
|
637
|
-
${this._renderHiddenSlotCell()}
|
|
645
|
+
</td>`}render(){const e=this._getCells(),t=e.length+(this.showCheckbox?1:0)+(this.expand||this.showExpandPlaceholder?1:0),s=this._isHeaderRow?"row row-header":"row row-body";return te`
|
|
646
|
+
<tr part=${s} ?data-header-row=${this._isHeaderRow} class=${this.open?"active":""}>
|
|
638
647
|
${this.expand?this._renderExpandCell():this.showExpandPlaceholder?this._renderExpandPlaceholder():ae}
|
|
639
648
|
${this.showCheckbox?this._renderCheckboxCell():ae}
|
|
640
|
-
${(()=>{let
|
|
649
|
+
${(()=>{let t=0;return e.map(e=>{const s=this._renderCell(e,t),i=Number(e.colspan)>0?Number(e.colspan):1;return t+=i,s})})()}
|
|
641
650
|
</tr>
|
|
642
651
|
|
|
643
652
|
${this.expand?te`
|
|
644
653
|
<tr class="expandable-row">
|
|
645
|
-
<td colspan=${
|
|
654
|
+
<td colspan=${t} class="expandable-td">
|
|
646
655
|
<div class="expandable-body">
|
|
647
656
|
<div class="expandable-content">
|
|
648
657
|
<slot name="content"></slot>
|
|
@@ -651,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};
|
|
|
651
660
|
</td>
|
|
652
661
|
</tr>
|
|
653
662
|
`:ae}
|
|
654
|
-
`}}Ea.styles=[...Oe.styles,Va],Ea.dependencies={"sgds-checkbox":ga,"sgds-data-table-cell":Ia,"sgds-data-table-head":Aa,"sgds-icon":_t},t([Pe({type:Object,reflect:!0})],Ea.prototype,"rowData",void 0),t([Pe({type:Boolean,reflect:!0})],Ea.prototype,"expand",void 0),t([Pe({type:Boolean,reflect:!0})],Ea.prototype,"open",void 0),t([Pe({type:Boolean,reflect:!0})],Ea.prototype,"checked",void 0),t([Pe({type:Boolean})],Ea.prototype,"showCheckbox",void 0),t([Pe({type:Boolean})],Ea.prototype,"showExpandPlaceholder",void 0),t([Pe({attribute:!1})],Ea.prototype,"columnAlignments",void 0),t([Pe({type:Boolean})],Ea.prototype,"hasDataRows",void 0),t([Ie(".expandable-body")],Ea.prototype,"_expandableBody",void 0),t([Ie("sgds-checkbox")],Ea.prototype,"_checkboxEl",void 0),t([
|
|
663
|
+
`}}Ea.styles=[...Oe.styles,Va],Ea.dependencies={"sgds-checkbox":ga,"sgds-data-table-cell":Ia,"sgds-data-table-head":Aa,"sgds-icon":_t},t([Pe({type:Object,reflect:!0})],Ea.prototype,"rowData",void 0),t([Pe({type:Boolean,reflect:!0})],Ea.prototype,"expand",void 0),t([Pe({type:Boolean,reflect:!0})],Ea.prototype,"open",void 0),t([Pe({type:Boolean,reflect:!0})],Ea.prototype,"checked",void 0),t([Pe({type:Boolean})],Ea.prototype,"showCheckbox",void 0),t([Pe({type:Boolean})],Ea.prototype,"showExpandPlaceholder",void 0),t([Pe({attribute:!1})],Ea.prototype,"columnAlignments",void 0),t([Pe({type:Boolean})],Ea.prototype,"hasDataRows",void 0),t([Ie(".expandable-body")],Ea.prototype,"_expandableBody",void 0),t([Ie("sgds-checkbox")],Ea.prototype,"_checkboxEl",void 0),t([ze()],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 Aa);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 Aa);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`
|
|
655
664
|
<div class="data-table">
|
|
656
665
|
<div>
|
|
657
666
|
<slot @slotchange=${this._handleSlotChange} @i-sgds-sort=${this._handleSort} class="table"></slot>
|
|
@@ -671,11 +680,11 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
|
|
|
671
680
|
></sgds-pagination>
|
|
672
681
|
</div>`}
|
|
673
682
|
</div>
|
|
674
|
-
`}}function
|
|
683
|
+
`}}function Ha(e,t){const s=e.getDate(),i=e.getMonth()+1,a=e.getFullYear(),o=s<10?"0"+s:String(s),n=i<10?"0"+i:String(i),r=String(a);switch(t){case"dd/MM/yyyy":default:return`${o}/${n}/${r}`;case"MM/dd/yyyy":return`${n}/${o}/${r}`;case"yyyy/MM/dd":return`${r}/${n}/${o}`;case"PPPP":{const t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),s=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),i=function(e){if(e>=11&&e<=13)return e+"th";switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}(e.getDate());return`${t}, ${s} ${i}, ${e.getFullYear()}`}}}function Oa(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Ta(e,t){return e.getTime()>t.getTime()}function Fa(e,t){return e.getTime()<t.getTime()}function Ra(e,t){return e.getTime()===t.getTime()}function Na(e){return e.getDate()===Oa(e)}function ja(e){return e instanceof Date&&!isNaN(e.getTime())}function Ua(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function qa(e,t){const s=e.split("/");let i,a,o;switch(t){case"dd/MM/yyyy":i=parseInt(s[0],10),a=parseInt(s[1],10)-1,o=parseInt(s[2],10);break;case"MM/dd/yyyy":a=parseInt(s[0],10)-1,i=parseInt(s[1],10),o=parseInt(s[2],10);break;case"yyyy/MM/dd":o=parseInt(s[0],10),a=parseInt(s[1],10)-1,i=parseInt(s[2],10);break;default:return new Date(NaN)}if(isNaN(i)||isNaN(a)||isNaN(o))return new Date(NaN);const n=new Date(o,a,i,12,0,0,0);return n.getFullYear()!==o||n.getMonth()!==a||n.getDate()!==i?new Date(NaN):n}Ba.styles=[...Oe.styles,Va,r`
|
|
675
684
|
:host {
|
|
676
685
|
display: block;
|
|
677
686
|
}
|
|
678
|
-
`],
|
|
687
|
+
`],Ba.dependencies={"sgds-pagination":Da,"sgds-data-table-cell":Ia,"sgds-data-table-head":Aa,"sgds-spinner":Ma},t([Pe({type:Boolean})],Ba.prototype,"multiSelect",void 0),t([Pe({type:Number})],Ba.prototype,"dataLength",void 0),t([Pe({type:Number})],Ba.prototype,"currentPage",void 0),t([Pe({type:Number})],Ba.prototype,"itemsPerPage",void 0),t([Pe({type:String})],Ba.prototype,"footerText",void 0),t([Pe({type:Boolean})],Ba.prototype,"hideFooter",void 0),t([Pe({type:Boolean})],Ba.prototype,"isLoading",void 0),t([Pe({type:Boolean})],Ba.prototype,"serverSort",void 0),t([Pe({type:String,reflect:!0})],Ba.prototype,"layout",void 0),t([Pe({type:String})],Ba.prototype,"mode",void 0),t([ze()],Ba.prototype,"tableRows",void 0),t([ze()],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"}},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)},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)},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(),f=Xa.getDate()===d,m=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=""+(f&&g&&v?"Today's date, ":"")+Ha(n,"PPPP");h.push(te`<td
|
|
679
688
|
key=${l}
|
|
680
689
|
data-date=${r}
|
|
681
690
|
data-day=${d}
|
|
@@ -854,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};
|
|
|
854
863
|
</div>
|
|
855
864
|
${this._renderFeedback()}
|
|
856
865
|
</div>
|
|
857
|
-
`}}lo.styles=[...no.styles,ro],t([Pe({type:String})],lo.prototype,"minDate",void 0),t([Pe({type:String})],lo.prototype,"maxDate",void 0),t([Pe({type:String,reflect:!0})],lo.prototype,"mode",void 0),t([Ae("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;font-size:var(--sgds-font-size-14)}: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=>
|
|
866
|
+
`}}lo.styles=[...no.styles,ro],t([Pe({type:String})],lo.prototype,"minDate",void 0),t([Pe({type:String})],lo.prototype,"maxDate",void 0),t([Pe({type:String,reflect:!0})],lo.prototype,"mode",void 0),t([Ae("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;font-size:var(--sgds-font-size-14)}: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((await this.datepickerInputAsync).focus(),0===this.selectedDateRange.length)this.displayDate=this.initialDisplayDate;else{const e=this.selectedDateRange.length;this.displayDate=this.selectedDateRange[e-1];(await this.calendar)._updateFocusedDate()}}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`
|
|
858
867
|
<div class="datepicker-container m-width-160">
|
|
859
868
|
<sgds-datepicker-input
|
|
860
869
|
.value=${ia(this.value)}
|
|
@@ -1144,7 +1153,7 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
|
|
|
1144
1153
|
</slot>
|
|
1145
1154
|
</div>
|
|
1146
1155
|
</${e}>
|
|
1147
|
-
`}}Lo.styles=[...ea.styles,zo],t([
|
|
1156
|
+
`}}Lo.styles=[...ea.styles,zo],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([Pe({type:Boolean,reflect:!0})],Lo.prototype,"noPadding",void 0);var Do=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-14);line-height:var(--sgds-line-height-20)}.lg{font-size:var(--sgds-font-size-20);line-height:var(--sgds-line-height-32)}`;class Io extends Oe{constructor(){super(...arguments),this.role="list",this.size="md"}render(){return te`
|
|
1148
1157
|
<div class=${We({[this.size]:this.size})}>
|
|
1149
1158
|
<slot></slot>
|
|
1150
1159
|
</div>
|
|
@@ -1175,13 +1184,13 @@ const Ca=(e,t,s)=>{const i=new Map;for(let a=t;a<=s;a++)i.set(e[a],a);return i};
|
|
|
1175
1184
|
</slot>
|
|
1176
1185
|
</div>
|
|
1177
1186
|
</${e}>
|
|
1178
|
-
`}}Eo.styles=[...ea.styles,Ao],t([
|
|
1187
|
+
`}}Eo.styles=[...ea.styles,Ao],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([Pe({type:Boolean,reflect:!0})],Eo.prototype,"noPadding",void 0),t([Pe({type:String,reflect:!0})],Eo.prototype,"imagePosition",void 0),t([Pe({type:String,reflect:!0})],Eo.prototype,"imageAdjustment",void 0);
|
|
1179
1188
|
/**
|
|
1180
1189
|
* @license
|
|
1181
1190
|
* Copyright 2021 Google LLC
|
|
1182
1191
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1183
1192
|
*/
|
|
1184
|
-
class
|
|
1193
|
+
class Bo extends Event{constructor(e,t,s,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=s,this.subscribe=i??!1}}
|
|
1185
1194
|
/**
|
|
1186
1195
|
* @license
|
|
1187
1196
|
* Copyright 2021 Google LLC
|
|
@@ -1192,7 +1201,7 @@ class Ho extends Event{constructor(e,t,s,i){super("context-request",{bubbles:!0,
|
|
|
1192
1201
|
* Copyright 2021 Google LLC
|
|
1193
1202
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1194
1203
|
*/
|
|
1195
|
-
class
|
|
1204
|
+
class Ho{constructor(e,t,s,i){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this._callback=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,void 0!==t.context){const e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=s,this.subscribe=i??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Bo(this.context,this.host,this._callback,this.subscribe))}}
|
|
1196
1205
|
/**
|
|
1197
1206
|
* @license
|
|
1198
1207
|
* Copyright 2021 Google LLC
|
|
@@ -1202,7 +1211,7 @@ class Bo{constructor(e,t,s,i){if(this.subscribe=!1,this.provided=!1,this.value=v
|
|
|
1202
1211
|
* @license
|
|
1203
1212
|
* Copyright 2021 Google LLC
|
|
1204
1213
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1205
|
-
*/class To extends Event{constructor(e,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}}class Fo extends Oo{constructor(e,t,s){super(void 0!==t.context?t.initialValue:s),this.onContextRequest=e=>{if(e.context!==this.context)return;const t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context)return;if((e.contextTarget??e.composedPath()[0])===this.host)return;const t=new Set;for(const[e,{consumerHost:s}]of this.subscriptions)t.has(e)||(t.add(e),s.dispatchEvent(new
|
|
1214
|
+
*/class To extends Event{constructor(e,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}}class Fo extends Oo{constructor(e,t,s){super(void 0!==t.context?t.initialValue:s),this.onContextRequest=e=>{if(e.context!==this.context)return;const t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context)return;if((e.contextTarget??e.composedPath()[0])===this.host)return;const t=new Set;for(const[e,{consumerHost:s}]of this.subscriptions)t.has(e)||(t.add(e),s.dispatchEvent(new Bo(this.context,s,e,!0)));e.stopPropagation()},this.host=e,void 0!==t.context?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new To(this.context,this.host))}}
|
|
1206
1215
|
/**
|
|
1207
1216
|
* @license
|
|
1208
1217
|
* Copyright 2017 Google LLC
|
|
@@ -1212,7 +1221,7 @@ class Bo{constructor(e,t,s,i){if(this.subscribe=!1,this.provided=!1,this.value=v
|
|
|
1212
1221
|
* @license
|
|
1213
1222
|
* Copyright 2022 Google LLC
|
|
1214
1223
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1215
|
-
*/function No({context:e,subscribe:t}){return(s,i)=>{"object"==typeof i?i.addInitializer(function(){new
|
|
1224
|
+
*/function No({context:e,subscribe:t}){return(s,i)=>{"object"==typeof i?i.addInitializer(function(){new Ho(this,{context:e,callback:e=>{s.set.call(this,e)},subscribe:t})}):s.constructor.addInitializer(s=>{new Ho(s,{context:e,callback:e=>{s[i]=e},subscribe:t})})}}const jo=1024,Uo=768,qo="mainnav-context",Yo="mainnav-expanded-context";var Ko=r`:host{display:block}nav{background-color:var(--sgds-surface-default);box-shadow:0 2px 2px 0 hsla(0,0%,5%,.08);position:relative;z-index:var(--sgds-z-index-floating)}.navbar{align-items:stretch;display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);justify-content:space-between;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);min-height:80px;padding:0 var(--sgds-mainnav-mobile-padding-x);width:100%}:host([fluid]) .navbar{max-width:none}.navbar-brand{align-items:center;display:flex;text-decoration:none;white-space:nowrap}.navbar-brand:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.navbar-nav{display:flex;flex-direction:column;height:100%;margin-bottom:0;margin-top:0;width:100%}nav>.navbar-body{background-color:var(--sgds-surface-default);border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-translucent);box-shadow:0 2px 2px 0 hsla(0,0%,5%,.08);padding:var(--sgds-padding-md) 0;position:absolute;transition:transform .2s ease-in-out;width:100%;z-index:var(--sgds-z-index-floating)}nav>.navbar-body .navbar-nav{height:100dvh;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px)}nav>.navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)){padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}.navbar-collapse{align-items:center;flex-basis:100%;flex-grow:1}.navbar-toggler{align-self:center}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-nav-scroll{overflow-y:auto}@media (min-width:512px){.navbar-expand-sm{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (min-width:1024px){.navbar{padding:0 var(--sgds-mainnav-padding-x)}.navbar-expand-lg{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (min-width:1280px){.navbar-expand-xl{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .nav-link{padding-left:var(--mainnav-nav-link-padding-x);padding-right:var(--mainnav-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}@media (min-width:1440px){.navbar-expand-xxl{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}}.navbar-expand{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}slot[name=non-collapsible]{align-items:center;display:flex;gap:var(--sgds-spacer-4);margin-left:auto}slot[name=non-collapsible].non-collapsible-empty{display:none}.slot-end{align-items:stretch;display:flex;gap:var(--sgds-gap-xs);margin-left:auto}.slot-end::slotted(:not([name$=-mainnav-item]):not([name$=-mainnav-dropdown])){align-self:center}`;const Wo={sm:512,md:Uo,lg:jo,xl:1280,xxl:1440,never:1/0,always:-1};class Go extends Oe{constructor(){super(...arguments),this._breakpointReached=!1,this.expanded=!1,this.expanding=!1,this.hasNonCollapsibleSlot=!1,this.brandHref="",this.collapseId=Zi("mainnav","collapse"),this.expand="lg",this.fluid=!1,this.breakpointReached=!1,this.hasSlotController=new $i(this,"non-collapsible"),this._handleMobileNavBound=this._handleMobileNav.bind(this)}get defaultSlotItems(){return[...this.defaultNodes||[]].filter(e=>void 0!==e.tagName)}get endSlotItems(){return[...this.endNodes||[]].filter(e=>void 0!==e.tagName)}connectedCallback(){super.connectedCallback(),this._handleResize(),window.addEventListener("click",e=>this._handleClickOutOfElement(e,this.body)),window.addEventListener("resize",this._handleResize.bind(this))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("click",e=>this._handleClickOutOfElement(e,this.body)),window.removeEventListener("resize",this._handleResize.bind(this))}firstUpdated(e){super.firstUpdated(e),this.breakpointReached&&this.body&&(this.expanded=!1,this.body.hidden=!0,this._handleMobileNav(),this._breakpointReached=!0)}updated(){this.hasNonCollapsibleSlot||(this.hasNonCollapsibleSlot=this.hasSlotController.test("non-collapsible"))}_handleClickOutOfElement(e,t){e.composedPath().includes(t)||e.composedPath().includes(this.header)||this.hide()}_handleSummaryClick(){this.expanded?this.hide():(document.body.style.overflow="hidden",this.show())}_handleResize(){const e=window.innerWidth<Wo[this.expand];e!==this.breakpointReached?this.requestUpdate():(this.body&&(this.body.hidden=!0),this.expanding=!1),e?(this._handleMobileNav(),this._breakpointReached||(this._breakpointReached=!0,window.addEventListener("scrollend",this._handleMobileNavBound))):(this._handleDesktopNav(),this._breakpointReached=!1,window.removeEventListener("scrollend",this._handleMobileNavBound))}async _handleMobileNav(){if(!this.nav)return;this.nav.appendChild(this.body),await customElements.whenDefined("sgds-masthead");const{bottom:e}=this.nav.getBoundingClientRect(),t=parseFloat(getComputedStyle(this.body).paddingTop)+parseFloat(getComputedStyle(this.body).paddingBottom);this.navScroll.style.maxHeight=`calc(100dvh - ${e}px - ${t}px)`}_handleDesktopNav(){var e;null===(e=this.navbar)||void 0===e||e.insertBefore(this.body,this.nonCollapsibleSlot)}async _animateToShow(){if(this.emit("sgds-show",{cancelable:!0}).defaultPrevented)return this.expanding=!1,void(this.expanded=!1);await et(this.body),this.body.hidden=!1;const{keyframes:e,options:t}=it(this,"mainnav.show");await Je(this.body,Qe(e,this.body.scrollHeight),t),this.body.style.height="auto",this.emit("sgds-after-show")}async _animateToHide(){if(this.emit("sgds-hide",{cancelable:!0}).defaultPrevented)return this.expanding=!1,void(this.expanded=!0);await et(this.body);const{keyframes:e,options:t}=it(this,"mainnav.hide");await Je(this.body,Qe(e,this.body.scrollHeight),t),this.body.hidden=!0,this.body.style.height="auto",this.emit("sgds-after-hide")}async handleOpenChange(){this.expanding?(await this._animateToShow(),this.expanded=!0):(this.header.focus(),await this._animateToHide(),this.expanded=!1)}async show(){if(!this.expanded)return this.expanding=!0,ot(this,"sgds-after-show")}async hide(){if(this.expanded)return this.expanding=!1,document.body.style.removeProperty("overflow"),ot(this,"sgds-after-hide")}_handleDefaultSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(e=>{e.setAttribute("expand",this.expand)})}_handleSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(e=>{e.setAttribute("name",e.tagName.toLowerCase()),e.setAttribute("expand",this.expand)})}render(){return this.breakpointReached=window.innerWidth<Wo[this.expand],te`
|
|
1216
1225
|
<nav>
|
|
1217
1226
|
<div class="navbar ${this._expandClass()}">
|
|
1218
1227
|
<a class="navbar-brand" href=${this.brandHref} aria-label="brand-link">
|
|
@@ -1755,13 +1764,13 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
1755
1764
|
${this._drawerItems}
|
|
1756
1765
|
</div>
|
|
1757
1766
|
</nav>
|
|
1758
|
-
`}}An.styles=[...Oe.styles,$n],An.dependencies={"sgds-icon-button":za},t([Pe({type:Boolean,reflect:!0})],An.prototype,"collapsed",void 0),t([Pe({type:String,reflect:!0})],An.prototype,"active",void 0),t([Pe({type:Boolean,reflect:!0})],An.prototype,"scrim",void 0),t([Pe({type:String,reflect:!0})],An.prototype,"variant",void 0),t([Pe({type:String})],An.prototype,"ariaLabel",void 0),t([Ro({context:Sn}),ze()],An.prototype,"_sidebarActiveGroup",void 0),t([Ro({context:Zn}),ze()],An.prototype,"_sidebarCollapsed",void 0),t([Ro({context:Mn}),ze()],An.prototype,"_sidebarActiveItem",void 0),t([Ro({context:Vn}),ze()],An.prototype,"_drawerItems",void 0),t([Ro({context:Pn}),ze()],An.prototype,"_showDrawer",void 0),t([Ro({context:zn}),ze()],An.prototype,"_isOverlay",void 0),t([Ee()],An.prototype,"_defaultNodes",void 0),t([ze()],An.prototype,"_isNarrowViewport",void 0),t([nt("collapsed")],An.prototype,"_handleCollapsed",null),t([nt("_sidebarActiveItem")],An.prototype,"_handleActiveItem",null),t([nt("active")],An.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
|
|
1767
|
+
`}}An.styles=[...Oe.styles,$n],An.dependencies={"sgds-icon-button":za},t([Pe({type:Boolean,reflect:!0})],An.prototype,"collapsed",void 0),t([Pe({type:String,reflect:!0})],An.prototype,"active",void 0),t([Pe({type:Boolean,reflect:!0})],An.prototype,"scrim",void 0),t([Pe({type:String,reflect:!0})],An.prototype,"variant",void 0),t([Pe({type:String})],An.prototype,"ariaLabel",void 0),t([Ro({context:Sn}),ze()],An.prototype,"_sidebarActiveGroup",void 0),t([Ro({context:Zn}),ze()],An.prototype,"_sidebarCollapsed",void 0),t([Ro({context:Mn}),ze()],An.prototype,"_sidebarActiveItem",void 0),t([Ro({context:Vn}),ze()],An.prototype,"_drawerItems",void 0),t([Ro({context:Pn}),ze()],An.prototype,"_showDrawer",void 0),t([Ro({context:zn}),ze()],An.prototype,"_isOverlay",void 0),t([Ee()],An.prototype,"_defaultNodes",void 0),t([ze()],An.prototype,"_isNarrowViewport",void 0),t([nt("collapsed")],An.prototype,"_handleCollapsed",null),t([nt("_sidebarActiveItem")],An.prototype,"_handleActiveItem",null),t([nt("active")],An.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`
|
|
1759
1768
|
<nav class=${We({sticky:this.sticky})}>
|
|
1760
1769
|
<div>
|
|
1761
1770
|
<slot @click=${this.onToggle}></slot>
|
|
1762
1771
|
</div>
|
|
1763
1772
|
</nav>
|
|
1764
|
-
`}}
|
|
1773
|
+
`}}Bn.styles=[...Oe.styles,En],t([Pe({type:Boolean,attribute:!0})],Bn.prototype,"sticky",void 0),t([Ee()],Bn.prototype,"defaultNodes",void 0);var Hn=r`:host([class^=second-level]) .sidenav-btn{font-weight:var(--sgds-font-weight-regular);padding-left:var(--sgds-padding-3-xl)}button{all:unset}.sidenav-btn{background:0;border:0;border-radius:var(--sgds-border-radius-md);display:flex;font-size:var(--sgds-font-size-16);font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-24);padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) calc(var(--sgds-padding-sm) + var(--sgds-padding-2-xs));text-align:initial;width:100%;.caret-icon,slot[name=caret-icon]::slotted(*){margin-bottom:auto;margin-left:auto;transform:rotate(180deg);transition:all .3s ease-in-out}}.sidenav-btn:hover:not(.disabled){background-color:var(--sgds-bg-translucent-subtle)}.sidenav-btn.active{color:var(--sgds-color-default)}.sidenav-btn.disabled{opacity:var(--sgds-opacity-40);pointer-events:none}.sidenav-btn:not(.active){.caret-icon,slot[name=caret-icon]::slotted(*){transform:rotate(0deg)}}.sidenav-btn:focus-visible:not(.disabled),.sidenav-btn:focus:not(.disabled){background-color:var(--sgds-bg-translucent-subtle)}.sidenav-btn:focus-visible:not(.disabled){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.no-menu-default::slotted(a){background:0;border:0;border-radius:var(--sgds-border-radius-md);color:inherit!important;display:flex;font-size:var(--sgds-font-size-16);font-weight:var(--sgds-font-weight-semibold)!important;gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-24)!important;padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) calc(var(--sgds-padding-sm) + var(--sgds-padding-2-xs));text-decoration:none!important}.no-menu-default::slotted(a:focus),.no-menu-default::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle)}.no-menu-default::slotted(a:focus-visible){outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}:host([class^=first-level][active]) .no-menu-default::slotted(a){background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis)!important}:host([class^=first-level][disabled]) .no-menu-default::slotted(a){opacity:var(--sgds-opacity-40);pointer-events:none}`;class On extends Oe{constructor(){super(...arguments),this.active=!1,this.disabled=!1,this.isLink=!1,this._collapseId=Zi("sidenav","collapse"),this._buttonId=Zi("sidenav","button"),this._levelId=Zi("sidenav","this"),this._firstLevelId="first-level-"+this._levelId,this._secondLevelId="second-level-"+this._levelId,this._thirdLevelId="third-level-"+this._levelId,this.index="-1"}_onToggle(){this.emit("sgds-toggle",{detail:{index:this.index}})}async show(){if(!this.isLink&&!this.active)return this.active=!0,ot(this,"sgds-after-show")}async hide(){if(!this.isLink&&this.active)return this.active=!1,ot(this,"sgds-after-hide")}connectedCallback(){super.connectedCallback(),this.classList.add(this._firstLevelId)}firstUpdated(e){super.firstUpdated(e),this.isLink||(this.body.hidden=!this.active,this.body.style.height=this.active?"auto":"0"),this._handleOpenMenu()}_handleOpenMenu(){this.active||(this.active=this._items.some(e=>e.active))}_handleSummaryClick(){this.active?this.hide():this.show(),this._onToggle(),this.header.focus()}_handleSummaryKeyDown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.active?this.hide():this.show()),"ArrowUp"!==e.key&&"ArrowLeft"!==e.key||(e.preventDefault(),this.hide()),"ArrowDown"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),this.show())}async _handleOpenChange(){if(!this.isLink)if(this.active){if(this.emit("sgds-show",{cancelable:!0}).defaultPrevented)return void(this.active=!1);await et(this.body),this.body.hidden=!1;const{keyframes:e,options:t}=it(this,"sidenav.show");await Je(this.body,Qe(e,this.body.scrollHeight),t),this.body.style.height="auto",this.emit("sgds-after-show")}else{if(this.emit("sgds-hide",{cancelable:!0}).defaultPrevented)return void(this.active=!0);await et(this.body);const{keyframes:e,options:t}=it(this,"sidenav.hide");await Je(this.body,Qe(e,this.body.scrollHeight),t),this.body.hidden=!0,this.body.style.height="auto",this.emit("sgds-after-hide")}}_handleSlotChange(e){const t=e.target.assignedElements({flatten:!0}).filter(e=>"a"===e.tagName.toLowerCase());if(t.length>1)return console.error("More than one anchor tag is added to sgds-sidenav-item");if(1===t.length){const e=t[0];return this.disabled&&e.setAttribute("tabindex","-1"),this.active&&e.setAttribute("aria-current","true"),this.isLink=!0}e.target.assignedElements({flatten:!0}).filter(e=>"sgds-sidenav-item"===e.tagName.toLowerCase()).forEach(e=>{const t=Array.from(e.classList).filter(e=>e.startsWith("first-level"))[0];e.classList.replace(t,this._secondLevelId)}),Array.from(this.classList).some(e=>e.startsWith("second-level"))&&this._items.forEach(e=>e.classList.add(this._thirdLevelId)),this._handleOpenMenu()}render(){const e=te`
|
|
1765
1774
|
<button
|
|
1766
1775
|
@click=${this._handleSummaryClick}
|
|
1767
1776
|
@keydown=${this._handleSummaryKeyDown}
|
|
@@ -1787,7 +1796,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
1787
1796
|
</div>
|
|
1788
1797
|
`,t=te` <slot @slotchange=${this._handleSlotChange} class="no-menu-default"></slot> `;return te`
|
|
1789
1798
|
<div class="sidenav-item" aria-haspopup="${!this.isLink}">${this.isLink?t:e}</div>
|
|
1790
|
-
`}}On.styles=[...Oe.styles,
|
|
1799
|
+
`}}On.styles=[...Oe.styles,Hn],On.dependencies={"sgds-icon":_t},t([Ie(".sidenav-body")],On.prototype,"body",void 0),t([Ie(".sidenav-btn")],On.prototype,"header",void 0),t([Pe({type:Boolean,reflect:!0})],On.prototype,"active",void 0),t([Pe({type:Boolean,reflect:!0})],On.prototype,"disabled",void 0),t([Pe({type:String})],On.prototype,"ariaLabel",void 0),t([ze()],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),:host([disabled]) ::slotted(a:focus-visible){outline:0}::slotted(a:focus),::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),: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([Pe({type:Boolean,reflect:!0})],Fn.prototype,"active",void 0),t([Pe({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}}@media (prefers-reduced-motion:reduce){.sheen{animation:none}}`;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`
|
|
1791
1800
|
<div
|
|
1792
1801
|
class=${We({skeleton:!0,"skeleton-paragraph":this.rows>0,"auto-size-rows":this.rows>0,sheen:this.sheen&&!this.rows})}
|
|
1793
1802
|
style=${Object.entries(e).filter(([e,t])=>t).map(([e,t])=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${t}`).join("; ")}
|
|
@@ -2086,7 +2095,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2086
2095
|
</slot>
|
|
2087
2096
|
</div>
|
|
2088
2097
|
</${e}>
|
|
2089
|
-
`}}$r.styles=[...ea.styles,Cr],t([
|
|
2098
|
+
`}}$r.styles=[...ea.styles,Cr],t([Be({slot:"upper",flatten:!0})],$r.prototype,"_upperNode",void 0),t([Pe({type:Boolean,reflect:!0})],$r.prototype,"noPadding",void 0);var Sr=r`:host([variant=info]) slot[name=icon]::slotted(*){color:var(--sgds-primary-color-default)}:host([variant=success]) slot[name=icon]::slotted(*){color:var(--sgds-success-color-default)}:host([variant=danger]) slot[name=icon]::slotted(*){color:var(--sgds-danger-color-default)}:host([variant=warning]) slot[name=icon]::slotted(*){color:var(--sgds-warning-color-fixed-light)}.toast{align-items:flex-start;background-clip:padding-box;background-color:var(--sgds-surface-default);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);display:inline-flex;flex-direction:row;gap:var(--sgds-gap-sm);max-width:var(--sgds-dimension-480);min-width:var(--sgds-dimension-280);padding:var(--sgds-padding-md);pointer-events:auto;position:relative}.toast-content{word-wrap:break-word;gap:var(--sgds-gap-sm);padding-right:var(--sgds-padding-xl)}.toast-body,.toast-content{display:flex;flex-direction:column}.toast-body{gap:var(--sgds-gap-2-xs)}.toast-body__title{font-size:var(--sgds-font-size-subtitle-sm);font-weight:var(--sgds-font-weight-semibold);margin:0}.toast-body__message,.toast-body__title{line-height:var(--sgds-line-height-2-xs)}.toast-body__message{color:var(--sgds-color-subtle,#525252);font-size:var(--sgds-font-size-label-sm);font-weight:var(--sgds-font-weight-regular)}.toast-action{word-wrap:break-word;color:var(--sgds-link-color-default)}.toast-header strong{margin-right:auto;word-break:break-all}.close-btn{position:absolute;right:10px;top:10px}.d-none{display:none}`;class Mr extends Oe{constructor(){super(...arguments),this.show=!1,this.title="Title",this.noAnimation=!1,this.autohide=!1,this.delay=5e3,this.variant="info",this.dismissible=!1}async showToast(){if(!this.show)return this.show=!0,ot(this,"sgds-after-show")}async hideToast(){if(this.show)return this.show=!1,ot(this,"sgds-after-hide")}handleCloseClick(){this.show=!1,this.emit("sgds-close")}async handleShowChange(){if(this.show){this.emit("sgds-show"),this.toast.classList.remove("d-none");const e=it(this,"toast.show");this.noAnimation||await Je(this.toast,e.keyframes,e.options),this.emit("sgds-after-show")}else{this.emit("sgds-hide");const e=it(this,"toast.hide");this.noAnimation||await Je(this.toast,e.keyframes,e.options),this.toast.classList.add("d-none"),this.emit("sgds-after-hide")}}firstUpdated(e){var t;if(super.firstUpdated(e),this.show||this.toast.classList.add("d-none"),0===this._actionNodes.length)return null===(t=this.shadowRoot.querySelector("slot[name='action']"))||void 0===t?void 0:t.classList.add("d-none")}render(){return this.autohide&&this.show&&setTimeout(()=>{this.show=!1},this.delay),te`
|
|
2090
2099
|
<div
|
|
2091
2100
|
class="toast"
|
|
2092
2101
|
role="alert"
|
|
@@ -2108,7 +2117,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2108
2117
|
@click=${this.handleCloseClick}
|
|
2109
2118
|
></sgds-close-button>`:ae}
|
|
2110
2119
|
</div>
|
|
2111
|
-
`}}Mr.styles=[...Oe.styles,Sr],Mr.dependencies={"sgds-close-button":mt},t([Ie("div.toast")],Mr.prototype,"toast",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"show",void 0),t([Pe({type:String,reflect:!0})],Mr.prototype,"title",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"noAnimation",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"autohide",void 0),t([Pe({type:Number,reflect:!0})],Mr.prototype,"delay",void 0),t([Pe({type:String,reflect:!0})],Mr.prototype,"variant",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"dismissible",void 0),t([nt("show",{waitUntilFirstUpdate:!0})],Mr.prototype,"handleShowChange",null),t([
|
|
2120
|
+
`}}Mr.styles=[...Oe.styles,Sr],Mr.dependencies={"sgds-close-button":mt},t([Ie("div.toast")],Mr.prototype,"toast",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"show",void 0),t([Pe({type:String,reflect:!0})],Mr.prototype,"title",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"noAnimation",void 0),t([Pe({type:Boolean,reflect:!0})],Mr.prototype,"autohide",void 0),t([Pe({type:Number,reflect:!0})],Mr.prototype,"delay",void 0),t([Pe({type:String,reflect:!0})],Mr.prototype,"variant",void 0),t([Pe({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`
|
|
2112
2121
|
<div
|
|
2113
2122
|
class=${We({"toast-container":!0,[this.position]:this.position})}
|
|
2114
2123
|
>
|
|
@@ -2148,14 +2157,14 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2148
2157
|
d="M20.1 2.5a.6.6 0 1 0-1.2 0v19a.6.6 0 1 0 1.2 0v-19Zm-5.6 10.1a.6.6 0 1 0 0-1.2H5.948l3.976-3.976a.6.6 0 1 0-.848-.848l-5 5a.6.6 0 0 0 0 .848l5 5a.6.6 0 0 0 .848-.848L5.948 12.6H14.5Z"
|
|
2149
2158
|
/>
|
|
2150
2159
|
</svg>
|
|
2151
|
-
`,
|
|
2160
|
+
`,Br=Object.freeze({__proto__:null,default:Er}),Hr=te`
|
|
2152
2161
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2153
2162
|
<path
|
|
2154
2163
|
fill="currentColor"
|
|
2155
2164
|
d="M3.9 21.5a.6.6 0 1 0 1.2 0v-19a.6.6 0 1 0-1.2 0v19Zm5.6-10.1a.6.6 0 0 0 0 1.2h8.551l-3.975 3.976a.6.6 0 1 0 .848.848l5-5a.6.6 0 0 0 0-.848l-5-5a.6.6 0 0 0-.848.848L18.05 11.4H9.5Z"
|
|
2156
2165
|
/>
|
|
2157
2166
|
</svg>
|
|
2158
|
-
`,Or=Object.freeze({__proto__:null,default:
|
|
2167
|
+
`,Or=Object.freeze({__proto__:null,default:Hr}),Tr=te`
|
|
2159
2168
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2160
2169
|
<path
|
|
2161
2170
|
fill="currentColor"
|
|
@@ -2423,7 +2432,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2423
2432
|
clip-rule="evenodd"
|
|
2424
2433
|
/>
|
|
2425
2434
|
</svg>
|
|
2426
|
-
`,
|
|
2435
|
+
`,Bl=Object.freeze({__proto__:null,default:El}),Hl=te`
|
|
2427
2436
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2428
2437
|
<path
|
|
2429
2438
|
fill="currentColor"
|
|
@@ -2436,7 +2445,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2436
2445
|
clip-rule="evenodd"
|
|
2437
2446
|
/>
|
|
2438
2447
|
</svg>
|
|
2439
|
-
`,Ol=Object.freeze({__proto__:null,default:
|
|
2448
|
+
`,Ol=Object.freeze({__proto__:null,default:Hl}),Tl=te`
|
|
2440
2449
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2441
2450
|
<path
|
|
2442
2451
|
fill="currentColor"
|
|
@@ -2714,7 +2723,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2714
2723
|
clip-rule="evenodd"
|
|
2715
2724
|
/>
|
|
2716
2725
|
</svg>
|
|
2717
|
-
`,
|
|
2726
|
+
`,Bd=Object.freeze({__proto__:null,default:Ed}),Hd=te`
|
|
2718
2727
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2719
2728
|
<path
|
|
2720
2729
|
fill="currentColor"
|
|
@@ -2723,7 +2732,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
2723
2732
|
clip-rule="evenodd"
|
|
2724
2733
|
/>
|
|
2725
2734
|
</svg>
|
|
2726
|
-
`,Od=Object.freeze({__proto__:null,default:
|
|
2735
|
+
`,Od=Object.freeze({__proto__:null,default:Hd}),Td=te`
|
|
2727
2736
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2728
2737
|
<path
|
|
2729
2738
|
fill="currentColor"
|
|
@@ -3007,7 +3016,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3007
3016
|
clip-rule="evenodd"
|
|
3008
3017
|
/>
|
|
3009
3018
|
</svg>
|
|
3010
|
-
`,
|
|
3019
|
+
`,Bc=Object.freeze({__proto__:null,default:Ec}),Hc=te`
|
|
3011
3020
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3012
3021
|
<path
|
|
3013
3022
|
fill="currentColor"
|
|
@@ -3020,7 +3029,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3020
3029
|
clip-rule="evenodd"
|
|
3021
3030
|
/>
|
|
3022
3031
|
</svg>
|
|
3023
|
-
`,Oc=Object.freeze({__proto__:null,default:
|
|
3032
|
+
`,Oc=Object.freeze({__proto__:null,default:Hc}),Tc=te`
|
|
3024
3033
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3025
3034
|
<path
|
|
3026
3035
|
fill="currentColor"
|
|
@@ -3277,7 +3286,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3277
3286
|
d="M12 3c-2.442 0-2.75.011-3.71.054-.959.045-1.612.196-2.185.419-.6.225-1.145.58-1.594 1.038-.458.45-.812.994-1.038 1.594-.223.571-.375 1.226-.419 2.182C3.011 9.25 3 9.556 3 12.002c0 2.444.011 2.75.054 3.71.045.958.196 1.611.419 2.184a4.42 4.42 0 0 0 1.038 1.594c.5.5 1.001.809 1.593 1.038.574.223 1.226.375 2.185.419.96.043 1.266.054 3.711.054s2.75-.011 3.71-.054c.958-.045 1.613-.196 2.186-.419.6-.226 1.144-.58 1.593-1.038.5-.5.808-1.002 1.038-1.594.222-.573.374-1.226.419-2.185.043-.96.054-1.265.054-3.71 0-2.445-.011-2.75-.054-3.711-.045-.958-.197-1.612-.419-2.184a4.417 4.417 0 0 0-1.038-1.594 4.4 4.4 0 0 0-1.594-1.038c-.574-.223-1.229-.375-2.186-.419C14.75 3.011 14.444 3 11.998 3H12Zm-.807 1.622h.808c2.403 0 2.688.008 3.636.052.878.04 1.355.187 1.672.31.42.162.72.358 1.035.673.315.315.51.614.673 1.035.123.316.27.793.309 1.67.044.95.053 1.234.053 3.636s-.01 2.687-.053 3.636c-.04.877-.187 1.353-.31 1.67a2.77 2.77 0 0 1-.673 1.034c-.315.315-.614.51-1.035.673-.315.124-.792.27-1.67.31-.95.043-1.234.053-3.637.053s-2.689-.01-3.637-.052c-.878-.041-1.353-.187-1.67-.311a2.789 2.789 0 0 1-1.036-.673 2.79 2.79 0 0 1-.675-1.035c-.122-.316-.27-.793-.309-1.67-.043-.949-.052-1.233-.052-3.637s.01-2.687.052-3.635c.04-.878.187-1.355.31-1.672.164-.42.36-.72.674-1.035a2.78 2.78 0 0 1 1.035-.673c.318-.124.794-.27 1.671-.31.83-.039 1.152-.05 2.83-.051v.002Zm5.612 1.494a1.08 1.08 0 1 0 0 2.16 1.08 1.08 0 0 0 0-2.16ZM12 7.38a4.623 4.623 0 1 0-.144 9.244A4.623 4.623 0 0 0 12 7.379ZM12 9a3 3 0 1 1 0 6.001 3 3 0 0 1 0-6Z"
|
|
3278
3287
|
/>
|
|
3279
3288
|
</svg>
|
|
3280
|
-
`,
|
|
3289
|
+
`,Bh=Object.freeze({__proto__:null,default:Eh}),Hh=te`
|
|
3281
3290
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3282
3291
|
<path fill="currentColor" d="M15.01 8.375a.625.625 0 1 1 0 1.25H15a.625.625 0 0 1 0-1.25h.01Z" />
|
|
3283
3292
|
<path
|
|
@@ -3287,7 +3296,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3287
3296
|
clip-rule="evenodd"
|
|
3288
3297
|
/>
|
|
3289
3298
|
</svg>
|
|
3290
|
-
`,Oh=Object.freeze({__proto__:null,default:
|
|
3299
|
+
`,Oh=Object.freeze({__proto__:null,default:Hh}),Th=te`
|
|
3291
3300
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3292
3301
|
<path
|
|
3293
3302
|
fill="currentColor"
|
|
@@ -3538,7 +3547,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3538
3547
|
clip-rule="evenodd"
|
|
3539
3548
|
/>
|
|
3540
3549
|
</svg>
|
|
3541
|
-
`,
|
|
3550
|
+
`,Bp=Object.freeze({__proto__:null,default:Ep}),Hp=te`
|
|
3542
3551
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3543
3552
|
<path
|
|
3544
3553
|
fill="currentColor"
|
|
@@ -3551,7 +3560,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3551
3560
|
clip-rule="evenodd"
|
|
3552
3561
|
/>
|
|
3553
3562
|
</svg>
|
|
3554
|
-
`,Op=Object.freeze({__proto__:null,default:
|
|
3563
|
+
`,Op=Object.freeze({__proto__:null,default:Hp}),Tp=te`
|
|
3555
3564
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3556
3565
|
<path
|
|
3557
3566
|
fill="currentColor"
|
|
@@ -3821,7 +3830,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3821
3830
|
clip-rule="evenodd"
|
|
3822
3831
|
/>
|
|
3823
3832
|
</svg>
|
|
3824
|
-
`,
|
|
3833
|
+
`,Bu=Object.freeze({__proto__:null,default:Eu}),Hu=te`
|
|
3825
3834
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3826
3835
|
<path
|
|
3827
3836
|
fill="currentColor"
|
|
@@ -3834,7 +3843,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
3834
3843
|
d="M15.5 9.058a.626.626 0 0 1 .885.884L14.327 12l2.058 2.058a.626.626 0 0 1-.885.884l-2.5-2.5a.626.626 0 0 1 0-.884l2.5-2.5Z"
|
|
3835
3844
|
/>
|
|
3836
3845
|
</svg>
|
|
3837
|
-
`,Ou=Object.freeze({__proto__:null,default:
|
|
3846
|
+
`,Ou=Object.freeze({__proto__:null,default:Hu}),Tu=te`
|
|
3838
3847
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
3839
3848
|
<path
|
|
3840
3849
|
fill="currentColor"
|
|
@@ -4094,14 +4103,14 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
4094
4103
|
d="M1.558 6.558a.626.626 0 0 1 .884 0l4.868 4.869c.206.205.334.332.437.42a.498.498 0 0 0 .137.095.377.377 0 0 0 .232 0 .498.498 0 0 0 .137-.095 8.72 8.72 0 0 0 .436-.42l2.738-2.738c.19-.19.36-.36.511-.489.157-.133.336-.258.56-.33a1.624 1.624 0 0 1 1.004 0c.224.072.402.197.56.33.151.129.32.299.511.49l6.802 6.8V10a.625.625 0 1 1 1.25 0v7c0 .345-.28.625-.625.625h-7a.625.625 0 1 1 0-1.25h5.49l-6.8-6.802a8.424 8.424 0 0 0-.437-.42.498.498 0 0 0-.137-.095.377.377 0 0 0-.232 0 .498.498 0 0 0-.137.095 8.424 8.424 0 0 0-.437.42L9.573 12.31c-.19.191-.36.361-.512.49a1.652 1.652 0 0 1-.56.33 1.624 1.624 0 0 1-1.003 0 1.652 1.652 0 0 1-.56-.33c-.151-.129-.32-.299-.511-.49l-4.87-4.868a.626.626 0 0 1 0-.884Z"
|
|
4095
4104
|
/>
|
|
4096
4105
|
</svg>
|
|
4097
|
-
`,
|
|
4106
|
+
`,Bg=Object.freeze({__proto__:null,default:Eg}),Hg=te`
|
|
4098
4107
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
4099
4108
|
<path
|
|
4100
4109
|
fill="currentColor"
|
|
4101
4110
|
d="M22.625 14a.625.625 0 0 1-1.25 0V8.509l-6.802 6.801c-.19.191-.36.361-.511.49a1.653 1.653 0 0 1-.56.33 1.624 1.624 0 0 1-1.004 0 1.653 1.653 0 0 1-.56-.33c-.151-.129-.32-.299-.511-.49l-2.738-2.737a8.411 8.411 0 0 0-.436-.42.495.495 0 0 0-.137-.095.377.377 0 0 0-.232 0 .495.495 0 0 0-.137.095 8.416 8.416 0 0 0-.436.42l-4.869 4.87a.626.626 0 0 1-.884-.885l4.869-4.868c.19-.191.36-.361.511-.49.158-.133.336-.258.56-.33a1.624 1.624 0 0 1 1.004 0c.224.072.402.197.56.33.151.129.32.299.511.49l2.737 2.737c.206.205.333.332.437.42a.497.497 0 0 0 .137.095.377.377 0 0 0 .232 0 .5.5 0 0 0 .137-.095 8.72 8.72 0 0 0 .436-.42l6.801-6.802H15a.625.625 0 1 1 0-1.25h7c.345 0 .625.28.625.625v7Z"
|
|
4102
4111
|
/>
|
|
4103
4112
|
</svg>
|
|
4104
|
-
`,Og=Object.freeze({__proto__:null,default:
|
|
4113
|
+
`,Og=Object.freeze({__proto__:null,default:Hg}),Tg=te`
|
|
4105
4114
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
4106
4115
|
<path
|
|
4107
4116
|
fill="currentColor"
|
|
@@ -4375,7 +4384,7 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
4375
4384
|
clip-rule="evenodd"
|
|
4376
4385
|
/>
|
|
4377
4386
|
</svg>
|
|
4378
|
-
`,
|
|
4387
|
+
`,Bv=Object.freeze({__proto__:null,default:Ev}),Hv=te`
|
|
4379
4388
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
4380
4389
|
<path
|
|
4381
4390
|
fill="currentColor"
|
|
@@ -4384,5 +4393,5 @@ const hn="important",pn=" !"+hn;const un=Ye(class extends Ke{constructor(e){if(s
|
|
|
4384
4393
|
clip-rule="evenodd"
|
|
4385
4394
|
/>
|
|
4386
4395
|
</svg>
|
|
4387
|
-
`,Ov=Object.freeze({__proto__:null,default:
|
|
4396
|
+
`,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=fa,e.SgdsCloseButton=mt,e.SgdsComboBox=Za,e.SgdsComboBoxOption=ka,e.SgdsDataTable=Ba,e.SgdsDataTableCell=Ia,e.SgdsDataTableHead=Aa,e.SgdsDataTableRow=Ea,e.SgdsDatepicker=ho,e.SgdsDescriptionList=go,e.SgdsDescriptionListGroup=fo,e.SgdsDivider=bo,e.SgdsDrawer=ko,e.SgdsDropdown=Di,e.SgdsDropdownItem=Ai,e.SgdsFileUpload=$o,e.SgdsFooter=Zo,e.SgdsFooterItem=Po,e.SgdsIcon=_t,e.SgdsIconButton=za,e.SgdsIconCard=Lo,e.SgdsIconList=Io,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=Da,e.SgdsProgressBar=vn,e.SgdsQuantityToggle=mn,e.SgdsRadio=wn,e.SgdsRadioGroup=_n,e.SgdsSelect=Cn,e.SgdsSelectOption=kn,e.SgdsSidebar=An,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=mr,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})});
|
|
4388
4397
|
//# sourceMappingURL=index.umd.min.js.map
|