@politiet/sheriff-web-components 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/custom-elements.json +171 -6
  2. package/dist/frameworks/preact.d.ts +4 -1
  3. package/dist/frameworks/preact.d.ts.map +1 -1
  4. package/dist/frameworks/react.d.ts +10 -2
  5. package/dist/frameworks/react.d.ts.map +1 -1
  6. package/dist/frameworks/solidjs.d.ts +1 -0
  7. package/dist/frameworks/solidjs.d.ts.map +1 -1
  8. package/dist/frameworks/svelte.d.ts +1 -0
  9. package/dist/frameworks/svelte.d.ts.map +1 -1
  10. package/dist/frameworks/vue.d.ts +1 -0
  11. package/dist/frameworks/vue.d.ts.map +1 -1
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/mixins/sds-dialog-target-mixin.d.ts +2 -0
  17. package/dist/mixins/sds-dialog-target-mixin.d.ts.map +1 -1
  18. package/dist/mixins/sds-dialog-target-mixin.js +31 -15
  19. package/dist/mixins/sds-dialog-target-mixin.js.map +1 -1
  20. package/dist/react-wrappers/SDSPopoverWrapper.d.ts +4 -1
  21. package/dist/react-wrappers/SDSPopoverWrapper.d.ts.map +1 -1
  22. package/dist/react-wrappers/SDSPopoverWrapper.js +3 -1
  23. package/dist/react-wrappers/SDSPopoverWrapper.js.map +1 -1
  24. package/dist/react-wrappers/SDSTooltipWrapper.d.ts +6 -0
  25. package/dist/react-wrappers/SDSTooltipWrapper.d.ts.map +1 -0
  26. package/dist/react-wrappers/SDSTooltipWrapper.js +12 -0
  27. package/dist/react-wrappers/SDSTooltipWrapper.js.map +1 -0
  28. package/dist/react-wrappers/index.d.ts +1 -0
  29. package/dist/react-wrappers/index.d.ts.map +1 -1
  30. package/dist/react-wrappers/index.js +1 -0
  31. package/dist/react-wrappers/index.js.map +1 -1
  32. package/dist/sds-button/sds-button.component.js +1 -1
  33. package/dist/sds-button/sds-button.component.js.map +1 -1
  34. package/dist/sds-dialog/sds-dialog.component.js +1 -1
  35. package/dist/sds-dialog/sds-dialog.component.js.map +1 -1
  36. package/dist/sds-dialog/sds-dialog.spec.js +17 -3
  37. package/dist/sds-dialog/sds-dialog.spec.js.map +1 -1
  38. package/dist/sds-popover/sds-popover.d.ts +3 -1
  39. package/dist/sds-popover/sds-popover.d.ts.map +1 -1
  40. package/dist/sds-popover/sds-popover.js +18 -4
  41. package/dist/sds-popover/sds-popover.js.map +1 -1
  42. package/dist/sds-tooltip/assets/tooltip-styles.d.ts +3 -0
  43. package/dist/sds-tooltip/assets/tooltip-styles.d.ts.map +1 -0
  44. package/dist/sds-tooltip/assets/tooltip-styles.js +3 -0
  45. package/dist/sds-tooltip/assets/tooltip-styles.js.map +1 -0
  46. package/dist/sds-tooltip/sds-tooltip.d.ts +35 -0
  47. package/dist/sds-tooltip/sds-tooltip.d.ts.map +1 -0
  48. package/dist/sds-tooltip/sds-tooltip.js +140 -0
  49. package/dist/sds-tooltip/sds-tooltip.js.map +1 -0
  50. package/dist/sds-tooltip/sds-tooltip.spec.d.ts +2 -0
  51. package/dist/sds-tooltip/sds-tooltip.spec.d.ts.map +1 -0
  52. package/dist/sds-tooltip/sds-tooltip.spec.js +35 -0
  53. package/dist/sds-tooltip/sds-tooltip.spec.js.map +1 -0
  54. package/dist/sds-tooltip/sds-tooltip.styles.d.ts +2 -0
  55. package/dist/sds-tooltip/sds-tooltip.styles.d.ts.map +1 -0
  56. package/dist/sds-tooltip/sds-tooltip.styles.js +87 -0
  57. package/dist/sds-tooltip/sds-tooltip.styles.js.map +1 -0
  58. package/dist/shared/positioning.d.ts +2 -0
  59. package/dist/shared/positioning.d.ts.map +1 -0
  60. package/dist/shared/positioning.js +2 -0
  61. package/dist/shared/positioning.js.map +1 -0
  62. package/dist/sheriff-web-components.js +279 -196
  63. package/package.json +10 -4
  64. package/web-types.json +258 -5
  65. /package/dist/{sds-popover → shared}/assets/positioning.js +0 -0
@@ -1,4 +1,4 @@
1
- var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=/* @__PURE__ */Symbol(),r=/* @__PURE__ */new WeakMap;let a=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}};const i=t=>new a("string"==typeof t?t:t+"",void 0,o),d=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new a(s,t,o)},n=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:p,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,u=globalThis,f=u.trustedTypes,b=f?f.emptyScript:"",m=u.reactiveElementPolyfillSupport,_=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),u.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,e=[...p(t),...g(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(s)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of o){const o=document.createElement("style"),r=e.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=s.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??y)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[_("elementProperties")]=/* @__PURE__ */new Map,k[_("finalized")]=/* @__PURE__ */new Map,m?.({ReactiveElement:k}),(u.reactiveElementVersions??=[]).push("2.1.2");const z={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},$=(t=z,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function S(t){return(e,s)=>"object"==typeof s?$(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function C(t){return S({...t,state:!0,attribute:!1})}const E=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function A(t,e){return(e,s,o)=>E(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function O(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return E(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function P(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const L=globalThis,D=t=>t,T=L.trustedTypes,q=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+R,B=`<${V}>`,j=document,I=()=>j.createComment(""),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,N="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,G=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Z=/^(?:script|style|textarea|title)$/i,Q=(ot=1,(t,...e)=>({_$litType$:ot,strings:t,values:e})),J=/* @__PURE__ */Symbol.for("lit-noChange"),tt=/* @__PURE__ */Symbol.for("lit-nothing"),et=/* @__PURE__ */new WeakMap,st=j.createTreeWalker(j,129);var ot;function rt(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==q?q.createHTML(e):e}let at=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=U;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===U?"!--"===n[1]?i=W:void 0!==n[1]?i=K:void 0!==n[2]?(Z.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?G:'"'===n[3]?X:Y):i===X||i===Y?i=G:i===W||i===K?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?e+B:l>=0?(o.push(s),e.slice(0,l)+M+e.slice(l)+R+h):e+R+(-2===l?d:h)}return[rt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),st.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=c[i++],s=r.getAttribute(t).split(R),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?ct:"?"===o[1]?ht:"@"===o[1]?pt:lt}),r.removeAttribute(t)}else t.startsWith(R)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(Z.test(r.tagName)){const t=r.textContent.split(R),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],I()),st.nextNode(),n.push({type:2,index:++a});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===V)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(R,t+1));)n.push({type:7,index:a}),t+=R.length-1}a++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}};function it(t,e,s=t,o){if(e===J)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=F(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=it(t,r._$AS(t,e.values),r,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??j).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new nt(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new gt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=st.nextNode(),a++)}return st.currentNode=j,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),F(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=at.createElement(rt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new at(t)),e}k(e){H(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(I()),this.O(I()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=D(t).nextSibling;D(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=tt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=it(this,t,e,0),a=!F(t)||t!==this._$AH&&t!==J,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=it(this,o[s+i],e,i),d===J&&(d=this._$AH[i]),a||=!F(d)||d!==this._$AH[i],d===tt?t=tt:t!==tt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},ht=class extends lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},pt=class extends lt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===J)return;const s=this._$AH,o=t===tt&&s!==tt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==tt&&(s===tt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const vt=L.litHtmlPolyfillSupport;vt?.(at,nt),(L.litHtmlVersions??=[]).push("3.3.2");const ut=globalThis;let ft=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new nt(e.insertBefore(I(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}};ft._$litElement$=!0,ft.finalized=!0,ut.litElementHydrateSupport?.({LitElement:ft});const bt=ut.litElementPolyfillSupport;bt?.({LitElement:ft}),(ut.litElementVersions??=[]).push("4.2.2");const mt=/* @__PURE__ */Symbol.for(""),_t=t=>{if(t?.r===mt)return t?._$litStatic$},xt=t=>({_$litStatic$:t,r:mt}),yt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:mt}),wt=/* @__PURE__ */new Map,kt=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=_t(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=wt.get(t))&&(i.raw=i,wt.set(t,e=i)),s=d}return t(e,...s)})(Q),zt=d`
1
+ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),r=/* @__PURE__ */new WeakMap;let a=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}};const i=t=>new a("string"==typeof t?t:t+"",void 0,o),d=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new a(s,t,o)},n=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:p,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,u=globalThis,f=u.trustedTypes,b=f?f.emptyScript:"",m=u.reactiveElementPolyfillSupport,_=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,e=[...p(t),...g(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(s)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of o){const o=document.createElement("style"),r=e.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=s.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??y)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[_("elementProperties")]=/* @__PURE__ */new Map,k[_("finalized")]=/* @__PURE__ */new Map,m?.({ReactiveElement:k}),(u.reactiveElementVersions??=[]).push("2.1.2");const z={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},$=(t=z,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function S(t){return(e,s)=>"object"==typeof s?$(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function C(t){return S({...t,state:!0,attribute:!1})}const E=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function A(t,e){return(e,s,o)=>E(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function O(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return E(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function L(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const P=globalThis,D=t=>t,T=P.trustedTypes,q=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+R,B=`<${V}>`,j=document,F=()=>j.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,N="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,G=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Z=/^(?:script|style|textarea|title)$/i,Q=(ot=1,(t,...e)=>({_$litType$:ot,strings:t,values:e})),J=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=/* @__PURE__ */new WeakMap,st=j.createTreeWalker(j,129);var ot;function rt(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==q?q.createHTML(e):e}let at=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=U;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===U?"!--"===n[1]?i=W:void 0!==n[1]?i=K:void 0!==n[2]?(Z.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?G:'"'===n[3]?X:Y):i===X||i===Y?i=G:i===W||i===K?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?e+B:l>=0?(o.push(s),e.slice(0,l)+M+e.slice(l)+R+h):e+R+(-2===l?d:h)}return[rt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),st.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=c[i++],s=r.getAttribute(t).split(R),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?ct:"?"===o[1]?ht:"@"===o[1]?pt:lt}),r.removeAttribute(t)}else t.startsWith(R)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(Z.test(r.tagName)){const t=r.textContent.split(R),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],F()),st.nextNode(),n.push({type:2,index:++a});r.append(t[e],F())}}}else if(8===r.nodeType)if(r.data===V)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(R,t+1));)n.push({type:7,index:a}),t+=R.length-1}a++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}};function it(t,e,s=t,o){if(e===J)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=I(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=it(t,r._$AS(t,e.values),r,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??j).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new nt(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new gt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=st.nextNode(),a++)}return st.currentNode=j,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),I(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=at.createElement(rt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new at(t)),e}k(e){H(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(F()),this.O(F()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=D(t).nextSibling;D(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=tt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=it(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==J,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=it(this,o[s+i],e,i),d===J&&(d=this._$AH[i]),a||=!I(d)||d!==this._$AH[i],d===tt?t=tt:t!==tt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},ht=class extends lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},pt=class extends lt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===J)return;const s=this._$AH,o=t===tt&&s!==tt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==tt&&(s===tt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const vt=P.litHtmlPolyfillSupport;vt?.(at,nt),(P.litHtmlVersions??=[]).push("3.3.2");const ut=globalThis;let ft=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new nt(e.insertBefore(F(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}};ft._$litElement$=!0,ft.finalized=!0,ut.litElementHydrateSupport?.({LitElement:ft});const bt=ut.litElementPolyfillSupport;bt?.({LitElement:ft}),(ut.litElementVersions??=[]).push("4.2.2");const mt=Symbol.for(""),_t=t=>{if(t?.r===mt)return t?._$litStatic$},xt=t=>({_$litStatic$:t,r:mt}),yt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:mt}),wt=/* @__PURE__ */new Map,kt=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=_t(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=wt.get(t))&&(i.raw=i,wt.set(t,e=i)),s=d}return t(e,...s)})(Q),zt=d`
2
2
  :host {
3
3
  --_sds-alert-background-color: var(--sds-alert-background-color, var(--sds-color-alert-info-surface-tinted));
4
4
 
@@ -196,7 +196,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
196
196
  <slot name="message"></slot>
197
197
  </div>
198
198
  ${this.removableLabel&&"primary"===this.variant?Q`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:tt}
199
- </div>`}};Ot.styles=[zt];let Pt=Ot;Et([S({type:String,reflect:!0})],Pt.prototype,"variant"),Et([S({type:String,reflect:!0})],Pt.prototype,"size"),Et([S({type:String,attribute:"removable-label",reflect:!0})],Pt.prototype,"removableLabel"),Et([S({type:String,attribute:"data-palette",reflect:!0})],Pt.prototype,"palette");const Lt=t=>t??tt,Dt=1,Tt=2,qt=t=>(...e)=>({_$litDirective$:t,values:e});let Mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}},Rt=class extends Mt{constructor(t){if(super(t),this.it=tt,t.type!==Tt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Rt.directiveName="unsafeHTML",Rt.resultType=1;let Vt=class extends Rt{};Vt.directiveName="unsafeSVG",Vt.resultType=2;const Bt=qt(Vt),jt=["arrow_forward-material-outlined","check_circle-material-filled","close-material-outlined","dangerous-material-filled","InformationSquareFill-aksel-filled","lock-material-filled","search-material-filled","warning-material-filled","chevron_up-material-filled"],It={"arrow_forward-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M662.82-440.39H145.87v-79.22h516.95L423.87-758.57 480-814.7 814.7-480 480-145.87l-56.13-55.56z"/></svg>',"check_circle-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="m419.87-289.52 289.22-289.22-57.31-56.87L419.87-403.7 304.96-518.61l-56.31 56.87zm60.21 223.65q-85.47 0-161.01-32.39-75.53-32.4-131.97-88.84T98.26-318.99q-32.39-75.46-32.39-160.93 0-86.47 32.39-162.01 32.4-75.53 88.75-131.5t131.85-88.62 161.01-32.65q86.52 0 162.12 32.61 75.61 32.6 131.53 88.5 55.93 55.89 88.55 131.45Q894.7-566.58 894.7-480q0 85.55-32.65 161.07-32.65 75.53-88.62 131.9T642.01-98.26q-75.46 32.39-161.93 32.39"/></svg>',"close-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M249-193.43 193.43-249l231-231-231-231L249-766.57l231 231 231-231L766.57-711l-231 231 231 231L711-193.43l-231-231z"/></svg>',"dangerous-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M324.35-105.87 105.87-324.35v-311.87L324.35-854.7h311.87L854.7-636.22v311.87L636.22-105.87zm34.91-206.87L480-433.48l120.74 120.74 47.09-46.52L526.52-480l121.31-120.74-47.09-47.09L480-526.52 359.26-647.83l-46.52 47.09L433.48-480 312.74-359.26z"/></svg>',"InformationSquareFill-aksel-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75" clip-rule="evenodd"/></svg>',"lock-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M225.09-67q-32.68 0-55.95-23.27t-23.27-55.95v-423.82q0-32.91 23.27-56.35t55.95-23.44h58.69v-83.56q0-82.44 57.17-140.18 57.16-57.73 139.02-57.73t139.05 57.73q57.2 57.74 57.2 140.18v83.56h58.69q32.91 0 56.35 23.44t23.44 56.35v423.82q0 32.68-23.44 55.95T734.91-67zm255.08-214.13q31.83 0 54.33-22.03t22.5-52.97q0-30-22.67-54.5t-54.5-24.5-54.33 24.5-22.5 55 22.67 52.5 54.5 22M363-649.83h234v-83.43q0-49.96-33.79-84.11-33.8-34.15-82.96-34.15t-83.21 34.15Q363-783.22 363-733.26z"/></svg>',"search-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M795.43-105.17 529.04-371q-29.43 24.26-69.11 37.94-39.67 13.67-85.32 13.67-112.12 0-189.87-77.83Q107-475.04 107-585t77.83-187.78q77.82-77.83 188.28-77.83t187.78 77.83q77.33 77.82 77.33 187.93 0 43.98-13.15 83.13-13.16 39.15-39.46 73.59L853-162.74zM373.81-398.61q77.66 0 131.42-54.53Q559-507.67 559-585t-53.85-131.86-131.34-54.53q-78.33 0-132.96 54.53T186.22-585t54.55 131.86 133.04 54.53"/></svg>',"warning-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M27.56-112.65 480-894.7l452.44 782.05zm456.62-125.48q13.15 0 22.61-9.64 9.47-9.65 9.47-22.8t-9.64-22.33q-9.65-9.19-22.8-9.19t-22.61 9.36q-9.47 9.36-9.47 22.51t9.64 22.62q9.65 9.47 22.8 9.47M454-348h60v-219.48h-60z"/></svg>',"chevron_up-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 32 32"><path d="m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z"/></svg>'},Ft=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Ht=t=>fetch(`https://cdn.jsdelivr.net/npm/@politiet/sheriff-icons/dist/assets/${t}.svg`).then(e=>{if(!e.ok)throw new TypeError(`Sheriff: unknown icon: '${t}'`);return e.text()});const Nt=d`
199
+ </div>`}};Ot.styles=[zt];let Lt=Ot;Et([S({type:String,reflect:!0})],Lt.prototype,"variant"),Et([S({type:String,reflect:!0})],Lt.prototype,"size"),Et([S({type:String,attribute:"removable-label",reflect:!0})],Lt.prototype,"removableLabel"),Et([S({type:String,attribute:"data-palette",reflect:!0})],Lt.prototype,"palette");const Pt=t=>t??tt,Dt=1,Tt=2,qt=t=>(...e)=>({_$litDirective$:t,values:e});let Mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}},Rt=class extends Mt{constructor(t){if(super(t),this.it=tt,t.type!==Tt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Rt.directiveName="unsafeHTML",Rt.resultType=1;let Vt=class extends Rt{};Vt.directiveName="unsafeSVG",Vt.resultType=2;const Bt=qt(Vt),jt=["arrow_forward-material-outlined","check_circle-material-filled","close-material-outlined","dangerous-material-filled","InformationSquareFill-aksel-filled","lock-material-filled","search-material-filled","warning-material-filled","chevron_up-material-filled"],Ft={"arrow_forward-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M662.82-440.39H145.87v-79.22h516.95L423.87-758.57 480-814.7 814.7-480 480-145.87l-56.13-55.56z"/></svg>',"check_circle-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="m419.87-289.52 289.22-289.22-57.31-56.87L419.87-403.7 304.96-518.61l-56.31 56.87zm60.21 223.65q-85.47 0-161.01-32.39-75.53-32.4-131.97-88.84T98.26-318.99q-32.39-75.46-32.39-160.93 0-86.47 32.39-162.01 32.4-75.53 88.75-131.5t131.85-88.62 161.01-32.65q86.52 0 162.12 32.61 75.61 32.6 131.53 88.5 55.93 55.89 88.55 131.45Q894.7-566.58 894.7-480q0 85.55-32.65 161.07-32.65 75.53-88.62 131.9T642.01-98.26q-75.46 32.39-161.93 32.39"/></svg>',"close-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M249-193.43 193.43-249l231-231-231-231L249-766.57l231 231 231-231L766.57-711l-231 231 231 231L711-193.43l-231-231z"/></svg>',"dangerous-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M324.35-105.87 105.87-324.35v-311.87L324.35-854.7h311.87L854.7-636.22v311.87L636.22-105.87zm34.91-206.87L480-433.48l120.74 120.74 47.09-46.52L526.52-480l121.31-120.74-47.09-47.09L480-526.52 359.26-647.83l-46.52 47.09L433.48-480 312.74-359.26z"/></svg>',"InformationSquareFill-aksel-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75" clip-rule="evenodd"/></svg>',"lock-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M225.09-67q-32.68 0-55.95-23.27t-23.27-55.95v-423.82q0-32.91 23.27-56.35t55.95-23.44h58.69v-83.56q0-82.44 57.17-140.18 57.16-57.73 139.02-57.73t139.05 57.73q57.2 57.74 57.2 140.18v83.56h58.69q32.91 0 56.35 23.44t23.44 56.35v423.82q0 32.68-23.44 55.95T734.91-67zm255.08-214.13q31.83 0 54.33-22.03t22.5-52.97q0-30-22.67-54.5t-54.5-24.5-54.33 24.5-22.5 55 22.67 52.5 54.5 22M363-649.83h234v-83.43q0-49.96-33.79-84.11-33.8-34.15-82.96-34.15t-83.21 34.15Q363-783.22 363-733.26z"/></svg>',"search-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M795.43-105.17 529.04-371q-29.43 24.26-69.11 37.94-39.67 13.67-85.32 13.67-112.12 0-189.87-77.83Q107-475.04 107-585t77.83-187.78q77.82-77.83 188.28-77.83t187.78 77.83q77.33 77.82 77.33 187.93 0 43.98-13.15 83.13-13.16 39.15-39.46 73.59L853-162.74zM373.81-398.61q77.66 0 131.42-54.53Q559-507.67 559-585t-53.85-131.86-131.34-54.53q-78.33 0-132.96 54.53T186.22-585t54.55 131.86 133.04 54.53"/></svg>',"warning-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M27.56-112.65 480-894.7l452.44 782.05zm456.62-125.48q13.15 0 22.61-9.64 9.47-9.65 9.47-22.8t-9.64-22.33q-9.65-9.19-22.8-9.19t-22.61 9.36q-9.47 9.36-9.47 22.51t9.64 22.62q9.65 9.47 22.8 9.47M454-348h60v-219.48h-60z"/></svg>',"chevron_up-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 32 32"><path d="m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z"/></svg>'},It=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Ht=t=>fetch(`https://cdn.jsdelivr.net/npm/@politiet/sheriff-icons/dist/assets/${t}.svg`).then(e=>{if(!e.ok)throw new TypeError(`Sheriff: unknown icon: '${t}'`);return e.text()});const Nt=d`
200
200
  :host {
201
201
  --_sds-icon-size: var(--sds-icon-size, var(--sds-components-icon-md));
202
202
  --_sds-icon-color: var(--sds-icon-color, var(--sds-color-text-subtle, var(--sds-color-neutral-text-subtle)));
@@ -230,10 +230,10 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
230
230
  overflow: hidden;
231
231
  }
232
232
  `;var Ut=Object.defineProperty,Wt=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Ut(e,s,a),a};const Kt=((t=class extends ft{constructor(){super(...arguments),this.name="",this.color="",this.label="",this.svg=""}static setLoadLocal(t){this.iconLoader.loadLocal=t}static registerResolver(t){this.iconLoader.resolver=t}render(){return Q`
233
- <div class="sds-icon" role="${Lt(this.label?"img":void 0)}" style="${Lt(this.color?`color:${this.color}`:void 0)}" aria-label="${Lt(this.label)}">
233
+ <div class="sds-icon" role="${Pt(this.label?"img":void 0)}" style="${Pt(this.color?`color:${this.color}`:void 0)}" aria-label="${Pt(this.label)}">
234
234
  ${this.name?Q`<slot aria-hidden="true">${Bt(this.svg)}</slot>`:Q`<slot aria-hidden="true"></slot>`}
235
235
  </div>
236
- `}async fetchIcon(){if(!this.name)return void(this.svg="");const e=await new Promise(e=>{t.iconLoader.resolve(this.name,e)});this.svg=e}updated(t){super.updated(t),t.has("name")&&this.name&&this.fetchIcon()}}).styles=[Nt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?Ft:Ht}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Ft:Ht}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>jt.includes(t))(t))return void e(It[t]);let s=this.cache.get(t);"string"!=typeof s?(s||(s=this.resolver(t).catch(()=>"").then(e=>(this.cache.set(t,e),e)),this.cache.set(t,s)),s.then(e)):e(s)}clear(){this.cache.clear()}get currentLoader(){return this.resolver}},t);Wt([S({type:String,reflect:!0})],Kt.prototype,"name"),Wt([S({type:String,reflect:!0})],Kt.prototype,"size"),Wt([S({type:String,reflect:!0})],Kt.prototype,"color"),Wt([S({type:String,reflect:!0})],Kt.prototype,"label"),Wt([C()],Kt.prototype,"svg");let Gt=Kt;var Yt=Object.getOwnPropertyDescriptor;let Xt=class extends Gt{};Xt=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Yt(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-icon")],Xt);const Zt=qt(class extends Mt{constructor(t){if(super(t),t.type!==Dt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=/* @__PURE__ */new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const o of this.st)o in e||(s.remove(o),this.st.delete(o));for(const o in e){const t=!!e[o];t===this.st.has(o)||this.nt?.has(o)||(t?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return J}}),Qt=d`
236
+ `}async fetchIcon(){if(!this.name)return void(this.svg="");const e=await new Promise(e=>{t.iconLoader.resolve(this.name,e)});this.svg=e}updated(t){super.updated(t),t.has("name")&&this.name&&this.fetchIcon()}}).styles=[Nt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?It:Ht}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?It:Ht}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>jt.includes(t))(t))return void e(Ft[t]);let s=this.cache.get(t);"string"!=typeof s?(s||(s=this.resolver(t).catch(()=>"").then(e=>(this.cache.set(t,e),e)),this.cache.set(t,s)),s.then(e)):e(s)}clear(){this.cache.clear()}get currentLoader(){return this.resolver}},t);Wt([S({type:String,reflect:!0})],Kt.prototype,"name"),Wt([S({type:String,reflect:!0})],Kt.prototype,"size"),Wt([S({type:String,reflect:!0})],Kt.prototype,"color"),Wt([S({type:String,reflect:!0})],Kt.prototype,"label"),Wt([C()],Kt.prototype,"svg");let Gt=Kt;var Yt=Object.getOwnPropertyDescriptor;let Xt=class extends Gt{};Xt=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Yt(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-icon")],Xt);const Zt=qt(class extends Mt{constructor(t){if(super(t),t.type!==Dt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=/* @__PURE__ */new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const o of this.st)o in e||(s.remove(o),this.st.delete(o));for(const o in e){const t=!!e[o];t===this.st.has(o)||this.nt?.has(o)||(t?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return J}}),Qt=d`
237
237
  :host {
238
238
  --_sds-button-background-color: var(--sds-button-background-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
239
239
  --_sds-button-border-color: var(--sds-button-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -405,27 +405,152 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
405
405
  --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
406
406
  min-width: var(--_sds-button-min-height);
407
407
  }
408
- `;function Jt(t){return class extends t{focus(){this.disabled||this.control?.focus()}blur(){this.disabled||this.control?.blur()}click(){this.disabled||this.readOnly||this.control?.click()}}}var te=Object.defineProperty,ee=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&te(e,s,a),a};function se(t){const e=class extends t{constructor(...t){super(...t),this.disabled=!1,this.readOnly=!1,this.internals=this.attachInternals()}get form(){return this.internals.form}formDisabledCallback(t){this.disabled=t}};e.formAssociated=!0,e.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};let s=e;return ee([S({type:String,reflect:!0})],s.prototype,"name"),ee([S({type:Boolean,reflect:!0})],s.prototype,"disabled"),ee([S({type:Boolean,attribute:"readonly",reflect:!0})],s.prototype,"readOnly"),s}var oe=Object.defineProperty,re=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&oe(e,s,a),a};var ae=Object.defineProperty,ie=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ae(e,s,a),a};var de=Object.defineProperty,ne=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&de(e,s,a),a};const le=class extends(function(t){class e extends t{updated(t){super.updated(t),(t.has("command")||t.has("commandFor"))&&this._updateCommandTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDialogObserver()}_cleanupDialogObserver(){this._dialogOpenObserver&&(this._dialogOpenObserver.disconnect(),this._dialogOpenObserver=void 0),this._dialogElement=void 0}_observeDialog(t,e){this._dialogElement=e,this._dialogOpenObserver=new MutationObserver(s=>{for(const o of s)if("open"===o.attributeName){const s=e.hasAttribute("open");t.setAttribute("aria-expanded",String(s))}}),this._dialogOpenObserver.observe(e,{attributes:!0,attributeFilter:["open"]})}_clearAriaFields(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}_updateCommandTarget(){this._cleanupDialogObserver();const t=this.shadowRoot?.querySelector("#control");if(!t)return;if(!this.commandFor||!this.command)return void this._clearAriaFields(t);if("show-modal"!==this.command)return void this._clearAriaFields(t);const e=this.getRootNode(),s=e.getElementById?.(this.commandFor)??document.getElementById(this.commandFor);s?(t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(s.open)),t.setAttribute("aria-controls",this.commandFor),this._observeDialog(t,s)):this._clearAriaFields(t)}runDialogCommand(){if(this._dialogElement)switch(this.command){case"show-modal":this._dialogElement.showModal();break;case"close":this._dialogElement.close();break;case"request-close":this._dialogElement.requestClose()}}}return re([S({type:String,attribute:"command"})],e.prototype,"command"),re([S({type:String,attribute:"commandfor"})],e.prototype,"commandFor"),e}(function(t){class e extends t{updated(t){super.updated(t),(t.has("popoverTarget")||t.has("popoverTargetAction"))&&this._updatePopoverTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupPopoverListener()}_cleanupPopoverListener(){this._popoverToggleHandler&&this._popoverElement&&(this._popoverElement.removeEventListener("toggle",this._popoverToggleHandler),this._popoverToggleHandler=void 0,this._popoverElement=void 0)}_updatePopoverTarget(){const t=this.shadowRoot?.querySelector("#control");if(t)if(this._cleanupPopoverListener(),this.popoverTarget){const e=this.getRootNode(),s=e.getElementById?.(this.popoverTarget)??document.getElementById(this.popoverTarget);if(s){t.popoverTargetElement=s,this._popoverElement=s;const e=s.getAttribute("role");"tooltip"===e?t.setAttribute("aria-describedby",this.popoverTarget):(this._popoverToggleHandler=e=>{const s="open"===e.newState;t.setAttribute("aria-expanded",String(s))},s.addEventListener("toggle",this._popoverToggleHandler),t.setAttribute("aria-haspopup",e||"dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.popoverTarget))}this.popoverTargetAction&&(t.popoverTargetAction=this.popoverTargetAction)}else t.popoverTargetElement=null,t.popoverTargetAction="",t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-describedby")}}return ie([S({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),ie([S({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(Jt(St(ft))))){constructor(){super(),this.disabled=!1,this.icon=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this.label=void 0,this._handleClick=t=>{if(this.popoverTarget)return t.stopImmediatePropagation(),void(this.disabled||this.dispatchSheriffEvent("click"));if(this.commandFor&&this.command)return t.preventDefault(),t.stopImmediatePropagation(),void(this.disabled||(this.runDialogCommand(),this.dispatchSheriffEvent("click")));if(t.preventDefault(),t.stopImmediatePropagation(),!this.disabled)switch(this.type){case"submit":if(this.dispatchSheriffEvent("submit"))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.requestSubmit()}else this.internals.form&&this.internals.form.requestSubmit();break;case"reset":if(this.dispatchSheriffEvent("reset"))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.reset()}else this.internals.form&&this.internals.form.reset();break;default:this.dispatchSheriffEvent("click")}},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?Q` <a id="link" class="${Zt(t)}" href="${this.href}" target="${Lt(this.target)}">
408
+ `;function Jt(t){return class extends t{focus(){this.disabled||this.control?.focus()}blur(){this.disabled||this.control?.blur()}click(){this.disabled||this.readOnly||this.control?.click()}}}var te=Object.defineProperty,ee=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&te(e,s,a),a};function se(t){const e=class extends t{constructor(...t){super(...t),this.disabled=!1,this.readOnly=!1,this.internals=this.attachInternals()}get form(){return this.internals.form}formDisabledCallback(t){this.disabled=t}};e.formAssociated=!0,e.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};let s=e;return ee([S({type:String,reflect:!0})],s.prototype,"name"),ee([S({type:Boolean,reflect:!0})],s.prototype,"disabled"),ee([S({type:Boolean,attribute:"readonly",reflect:!0})],s.prototype,"readOnly"),s}const oe=d`
409
+ :host {
410
+ --_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
411
+ --_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
412
+
413
+ --_sds-dialog-border-color: var(--sds-dialog-border-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
414
+ --_sds-dialog-border-radius: var(--sds-dialog-border-radius, var(--sds-radius-md));
415
+ --_sds-dialog-border-width: var(--sds-dialog-border-width, var(--sds-border-sm));
416
+
417
+ --_sds-dialog-max-width: var(--sds-dialog-max-width, min(60ch, 100vw));
418
+ --_sds-dialog-max-height: var(--sds-dialog-max-height, calc(100dvh - var(--sds-spacing-lg)));
419
+
420
+ --_sds-dialog-margin: var(--sds-dialog-margin, auto);
421
+ --_sds-dialog-padding-block: var(--sds-dialog-padding-block, var(--sds-spacing-sm));
422
+ --_sds-dialog-padding-inline: var(--sds-dialog-padding-inline, var(--sds-spacing-sm));
423
+ --_sds-dialog-gap: var(--sds-dialog-gap, var(--sds-spacing-xs));
424
+
425
+ --_sds-dialog-font-family: var(--sds-dialog-font-family, var(--sds-typography-font-family-roboto));
426
+ --_sds-dialog-text-color: var(--sds-dialog-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
427
+
428
+ --_sds-dialog-box-shadow: var(--sds-dialog-box-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
429
+
430
+ --_sds-dialog-animation-duration: var(--sds-dialog-animation-duration, 200ms);
431
+ --_sds-dialog-close-button-offset: var(--sds-dialog-close-button-offset, var(--sds-spacing-3xs));
432
+
433
+ display: contents;
434
+ }
435
+
436
+ dialog {
437
+ color: var(--_sds-dialog-text-color);
438
+ background-color: var(--_sds-dialog-background-color);
439
+ box-shadow: var(--_sds-dialog-box-shadow);
440
+
441
+ border: var(--_sds-dialog-border-width) solid var(--_sds-dialog-border-color);
442
+ border-radius: var(--_sds-dialog-border-radius);
443
+
444
+ font-family: var(--_sds-dialog-font-family);
445
+
446
+ max-width: var(--_sds-dialog-max-width);
447
+ max-height: var(--_sds-dialog-max-height);
448
+
449
+ overflow: auto;
450
+ padding: 0;
451
+
452
+ opacity: 0;
453
+ transform: translateY(-1rem);
454
+ animation: sds-dialog-fade-in var(--_sds-dialog-animation-duration) ease-out forwards;
455
+
456
+ &:focus-visible {
457
+ outline: 3px solid var(--sds-color-states-focus-outer);
458
+ outline-offset: 3px;
459
+ }
460
+
461
+ &[open] {
462
+ display: flex;
463
+ flex-direction: column;
464
+ margin: var(--_sds-dialog-margin);
465
+ padding-block: var(--_sds-dialog-padding-block);
466
+ padding-inline: var(--_sds-dialog-padding-inline);
467
+ gap: var(--_sds-dialog-gap);
468
+ }
469
+
470
+ &.sds-dialog__empty-header:has(.sds-dialog__close-button) {
471
+ /* Set padding right to avoid overflowing the close button */
472
+ padding-right: var(--sds-dialog-padding-right, var(--sds-spacing-lg));
473
+ }
474
+
475
+ &::backdrop {
476
+ background-color: var(--_sds-dialog-backdrop-color);
477
+ /* @keyframes does not work for ::backdrop in Firefox, so use transition instead */
478
+ transition: opacity var(--_sds-dialog-animation-duration) ease-out;
479
+ opacity: 0;
480
+ }
481
+
482
+ &[open]::backdrop {
483
+ opacity: 1;
484
+ }
485
+ }
486
+
487
+ @keyframes sds-dialog-fade-in {
488
+ to {
489
+ opacity: 1;
490
+ transform: translateY(0);
491
+ }
492
+ }
493
+
494
+ .sds-dialog__close-button {
495
+ --sds-button-text-color: var(--sds-dialog-close-button-color, var(--sds-color-text-subtle, var(--sds-color-main-text-subtle)));
496
+ --sds-button-padding-inline: 0;
497
+
498
+ position: absolute;
499
+ top: var(--_sds-dialog-close-button-offset);
500
+ right: var(--_sds-dialog-close-button-offset);
501
+ z-index: 1;
502
+ }
503
+
504
+ .sds-dialog__header {
505
+ margin-right: var(--sds-spacing-lg);
506
+ }
507
+
508
+ @media (max-width: 640px) {
509
+ :host {
510
+ --_sds-dialog-max-width: var(--sds-dialog-max-width, 100%);
511
+ --_sds-dialog-margin: var(--sds-dialog-margin, var(--sds-spacing-xs));
512
+ }
513
+ }
514
+
515
+ @media (prefers-reduced-motion: reduce) {
516
+ :host {
517
+ --_sds-dialog-animation-duration: 0ms;
518
+ }
519
+ }
520
+ `;var re=Object.defineProperty,ae=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&re(e,s,a),a};const ie=class extends(St(ft)){constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._isHeaderSlotEmpty=!0,this._pointerDownInside=!1,this._handleClose=()=>{this.open=!1,this.dispatchSheriffEvent("sds-close")},this._handleClick=t=>{const e=t.target;e?.closest('[data-command="close"],[command="close"]')&&this._closeDialog()},this._handlePointerDown=t=>{const e=this._dialog.getBoundingClientRect(),{clientX:s,clientY:o}=t;this._pointerDownInside=e.top<=o&&o<=e.bottom&&e.left<=s&&s<=e.right},this._handlePointerUp=t=>{const e=this._pointerDownInside;this._pointerDownInside=!1,"any"!==this.closedby||e||t.target===this._dialog&&requestAnimationFrame(()=>{this._dialog&&this._dialog.open&&this._closeDialog()})},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},this._handleHeaderSlotChange=t=>{const e=t.target;this._isHeaderSlotEmpty=0===e.assignedElements().length},this._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const e=t.find(t=>null!=t.getAttribute("autofocus"));e instanceof HTMLElement&&document.activeElement!==e&&e.focus()}}firstUpdated(){this._setupEventListeners(),this.open&&this._openDialog()}updated(t){t.has("open")&&(this.open?this._openDialog():this._closeDialog())}_setupEventListeners(){this._dialog.addEventListener("close",this._handleClose),this._dialog.addEventListener("cancel",this._handleCancel),this._dialog.addEventListener("click",this._handleClick),this._dialog.addEventListener("pointerdown",this._handlePointerDown),this._dialog.addEventListener("pointerup",this._handlePointerUp),this._dialog.addEventListener("animationend",this._handleAutoFocus)}_openDialog(){this._dialog&&(this.modal?this._dialog.showModal():this._dialog.show())}_closeDialog(){this._dialog&&this._dialog.close()}show(){this.open=!0}showModal(){this.modal=!0,this.open=!0}close(){this.open=!1}requestClose(){this._dialog&&this._dialog.requestClose()}render(){return Q`
521
+ <dialog .closedBy="${this.closedby}" class=${this._isHeaderSlotEmpty?"sds-dialog__empty-header":""}>
522
+ <div class="sds-dialog__header">
523
+ <slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot>
524
+ ${this.closeButtonLabel?Q`
525
+ <sds-button class="sds-dialog__close-button" icon variant="tertiary" size="md" command="close" label="${this.closeButtonLabel}">
526
+ <sds-icon name="close-material-outlined" size="md"></sds-icon>
527
+ </sds-button>
528
+ `:tt}
529
+ </div>
530
+ <slot></slot>
531
+ <slot name="footer"></slot>
532
+ </dialog>
533
+ `}};ie.styles=[oe];let de=ie;ae([S({type:Boolean,reflect:!0})],de.prototype,"open"),ae([S({type:Boolean,reflect:!0})],de.prototype,"modal"),ae([S({type:String,reflect:!0})],de.prototype,"closedby"),ae([S({type:String,attribute:"close-button-label"})],de.prototype,"closeButtonLabel"),ae([A("dialog")],de.prototype,"_dialog"),ae([C()],de.prototype,"_isHeaderSlotEmpty");var ne=Object.getOwnPropertyDescriptor;let le=class extends de{};le=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ne(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-dialog")],le);var ce=Object.defineProperty,he=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ce(e,s,a),a};var pe=Object.defineProperty,ge=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&pe(e,s,a),a};var ve=Object.defineProperty,ue=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ve(e,s,a),a};const fe=class extends(function(t){class e extends t{get effectiveCommand(){return this.command??this.dataCommand}get effectiveCommandFor(){return this.commandFor??this.dataCommandFor}updated(t){super.updated(t),(t.has("command")||t.has("commandFor")||t.has("dataCommand")||t.has("dataCommandFor"))&&this._updateCommandTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDialogObserver()}_cleanupDialogObserver(){this._dialogOpenObserver&&(this._dialogOpenObserver.disconnect(),this._dialogOpenObserver=void 0),this._dialogElement=void 0}_observeDialog(t,e){this._dialogOpenObserver=new MutationObserver(s=>{for(const o of s)if("open"===o.attributeName){const s=e.hasAttribute("open");t.setAttribute("aria-expanded",String(s))}}),this._dialogOpenObserver.observe(e,{attributes:!0,attributeFilter:["open"]})}_clearAriaFields(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}_updateCommandTarget(){this._cleanupDialogObserver();const t=this.shadowRoot?.querySelector("#control");if(!t)return;const e=this.effectiveCommand,s=this.effectiveCommandFor;if(!s||!e)return void this._clearAriaFields(t);const o=this.getRootNode(),r=o.getElementById?.(s)??document.getElementById(s);r&&r instanceof le?(this._dialogElement=r,"show-modal"===e?(t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(r.open)),t.setAttribute("aria-controls",s),this._observeDialog(t,r)):this._clearAriaFields(t)):this._clearAriaFields(t)}runDialogCommand(){if(this._dialogElement)switch(this.effectiveCommand){case"show-modal":this._dialogElement.showModal();break;case"close":this._dialogElement.close();break;case"request-close":this._dialogElement.requestClose()}}}return he([S({type:String,attribute:"command",reflect:!0})],e.prototype,"command"),he([S({type:String,attribute:"commandfor",reflect:!0})],e.prototype,"commandFor"),he([S({type:String,attribute:"data-command"})],e.prototype,"dataCommand"),he([S({type:String,attribute:"data-commandfor"})],e.prototype,"dataCommandFor"),e}(function(t){class e extends t{updated(t){super.updated(t),(t.has("popoverTarget")||t.has("popoverTargetAction"))&&this._updatePopoverTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupPopoverListener()}_cleanupPopoverListener(){this._popoverToggleHandler&&this._popoverElement&&(this._popoverElement.removeEventListener("toggle",this._popoverToggleHandler),this._popoverToggleHandler=void 0,this._popoverElement=void 0)}_updatePopoverTarget(){const t=this.shadowRoot?.querySelector("#control");if(t)if(this._cleanupPopoverListener(),this.popoverTarget){const e=this.getRootNode(),s=e.getElementById?.(this.popoverTarget)??document.getElementById(this.popoverTarget);if(s){t.popoverTargetElement=s,this._popoverElement=s;const e=s.getAttribute("role");"tooltip"===e?t.setAttribute("aria-describedby",this.popoverTarget):(this._popoverToggleHandler=e=>{const s="open"===e.newState;t.setAttribute("aria-expanded",String(s))},s.addEventListener("toggle",this._popoverToggleHandler),t.setAttribute("aria-haspopup",e||"dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.popoverTarget))}this.popoverTargetAction&&(t.popoverTargetAction=this.popoverTargetAction)}else t.popoverTargetElement=null,t.popoverTargetAction="",t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-describedby")}}return ge([S({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),ge([S({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(Jt(St(ft))))){constructor(){super(),this.disabled=!1,this.icon=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this.label=void 0,this._handleClick=t=>{if(this.popoverTarget)return t.stopImmediatePropagation(),void(this.disabled||this.dispatchSheriffEvent("click"));if(this.effectiveCommandFor&&this.effectiveCommand)return t.preventDefault(),t.stopImmediatePropagation(),void(this.disabled||(this.runDialogCommand(),this.dispatchSheriffEvent("click")));if(t.preventDefault(),t.stopImmediatePropagation(),!this.disabled)switch(this.type){case"submit":if(this.dispatchSheriffEvent("submit"))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.requestSubmit()}else this.internals.form&&this.internals.form.requestSubmit();break;case"reset":if(this.dispatchSheriffEvent("reset"))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.reset()}else this.internals.form&&this.internals.form.reset();break;default:this.dispatchSheriffEvent("click")}},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?Q` <a id="link" class="${Zt(t)}" href="${this.href}" target="${Pt(this.target)}">
409
534
  <slot name="before"></slot>
410
535
  <slot></slot>
411
536
  <slot name="after"></slot>
412
537
  </a>`:Q`
413
538
  <button
414
539
  id="control"
415
- form="${Lt(this.form)}"
540
+ form="${Pt(this.form)}"
416
541
  class="${Zt(t)}"
417
542
  type="${this.type}"
418
- name="${Lt(this.name)}"
419
- value="${Lt(this.value)}"
543
+ name="${Pt(this.name)}"
544
+ value="${Pt(this.value)}"
420
545
  ?disabled="${this.disabled}"
421
546
  @click="${this._handleClick}"
422
- aria-label="${Lt(this.label)}"
547
+ aria-label="${Pt(this.label)}"
423
548
  >
424
549
  ${this.loading?Q`<sds-loader slot="before" ?contrast="${"primary"!==this.variant}"></sds-loader>`:tt} ${this.loading?tt:Q`<slot name="before"></slot>`}
425
550
  <slot></slot>
426
551
  ${this.loading?tt:Q`<slot name="after"></slot>`}
427
552
  </button>
428
- `}};le.styles=[Qt],le.formAssociated=!0,le.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};let ce=le;ne([S({type:Boolean,reflect:!0})],ce.prototype,"disabled"),ne([S({type:Boolean,reflect:!0})],ce.prototype,"icon"),ne([S({type:Boolean,reflect:!0})],ce.prototype,"loading"),ne([S({type:String,reflect:!0})],ce.prototype,"form"),ne([S({type:String,reflect:!0})],ce.prototype,"href"),ne([S({type:String,reflect:!0})],ce.prototype,"name"),ne([S({type:String,reflect:!0})],ce.prototype,"size"),ne([S({type:String,reflect:!0})],ce.prototype,"target"),ne([S({type:String,reflect:!0})],ce.prototype,"type"),ne([S({type:String,reflect:!0})],ce.prototype,"value"),ne([S({type:String,reflect:!0})],ce.prototype,"variant"),ne([S({type:String,reflect:!0})],ce.prototype,"label"),ne([A("#control")],ce.prototype,"control");var he=Object.getOwnPropertyDescriptor;let pe=class extends ce{};pe=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?he(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-button")],pe);var ge=Object.getOwnPropertyDescriptor;let ve=class extends Pt{};function ue(t,e,s,o){const r=t?.assignedNodes({flatten:!0}).filter(t=>{if(t.nodeType===Node.TEXT_NODE){return(t.textContent?.trim()??"").length>0}if(t.nodeType===Node.ELEMENT_NODE){const s=t,o=s.tagName.toUpperCase();if(!e.includes(o))return!0;return Array.from(s.childNodes).some(t=>t.nodeType===Node.ELEMENT_NODE)}return!1});r?.length>0&&console.warn(o,...r)}ve=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ge(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-alert")],ve);const fe=d`
553
+ `}};fe.styles=[Qt],fe.formAssociated=!0,fe.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};let be=fe;ue([S({type:Boolean,reflect:!0})],be.prototype,"disabled"),ue([S({type:Boolean,reflect:!0})],be.prototype,"icon"),ue([S({type:Boolean,reflect:!0})],be.prototype,"loading"),ue([S({type:String,reflect:!0})],be.prototype,"form"),ue([S({type:String,reflect:!0})],be.prototype,"href"),ue([S({type:String,reflect:!0})],be.prototype,"name"),ue([S({type:String,reflect:!0})],be.prototype,"size"),ue([S({type:String,reflect:!0})],be.prototype,"target"),ue([S({type:String,reflect:!0})],be.prototype,"type"),ue([S({type:String,reflect:!0})],be.prototype,"value"),ue([S({type:String,reflect:!0})],be.prototype,"variant"),ue([S({type:String,reflect:!0})],be.prototype,"label"),ue([A("#control")],be.prototype,"control");var me=Object.getOwnPropertyDescriptor;let _e=class extends be{};_e=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?me(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-button")],_e);var xe=Object.getOwnPropertyDescriptor;let ye=class extends Lt{};function we(t,e,s,o){const r=t?.assignedNodes({flatten:!0}).filter(t=>{if(t.nodeType===Node.TEXT_NODE){return(t.textContent?.trim()??"").length>0}if(t.nodeType===Node.ELEMENT_NODE){const s=t,o=s.tagName.toUpperCase();if(!e.includes(o))return!0;return Array.from(s.childNodes).some(t=>t.nodeType===Node.ELEMENT_NODE)}return!1});r?.length>0&&console.warn(o,...r)}ye=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?xe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-alert")],ye);const ke=d`
429
554
  :host {
430
555
  --_sds-card-background-color: var(--sds-card-background-color, var(--sds-color-surface-tinted, var(--sds-color-main-surface-tinted)));
431
556
  --_sds-card-border-radius: var(--sds-card-border-radius, var(--sds-radius-md));
@@ -549,11 +674,11 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
549
674
  --_sds-card-text-line-height: var(--sds-card-text-line-height, var(--sds-typography-body-md-desktop-line-height));
550
675
  }
551
676
  }
552
- `;var be=Object.defineProperty,me=Object.getOwnPropertyDescriptor,_e=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?me(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&be(e,s,a),a};let xe=class extends ft{constructor(){super(...arguments),this._contentWarning="[sds-card] text slot should only contain top-level <p> elements with no nested elements:",this._headerWarning="[sds-card] header slot should only contain one of <h2>–<h6> elements:",this._handleHeadingSlotChange=()=>{this.headingSlot.assignedNodes({flatten:!0}).length>0&&ue(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{ue(this.textSlot,["P"],0,this._contentWarning)}}firstUpdated(){ue(this.textSlot,["P"],0,this._contentWarning);this.headingSlot.assignedNodes({flatten:!0}).length>0&&ue(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=Q`
677
+ `;var ze=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Se=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?$e(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ze(e,s,a),a};let Ce=class extends ft{constructor(){super(...arguments),this._contentWarning="[sds-card] text slot should only contain top-level <p> elements with no nested elements:",this._headerWarning="[sds-card] header slot should only contain one of <h2>–<h6> elements:",this._handleHeadingSlotChange=()=>{this.headingSlot.assignedNodes({flatten:!0}).length>0&&we(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{we(this.textSlot,["P"],0,this._contentWarning)}}firstUpdated(){we(this.textSlot,["P"],0,this._contentWarning);this.headingSlot.assignedNodes({flatten:!0}).length>0&&we(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=Q`
553
678
  <slot name="heading" id="heading" @slotchange=${this._handleHeadingSlotChange}></slot>
554
679
  <slot name="text" id="content" @slotchange=${this._handleTextSlotChange}></slot>
555
680
  <sds-icon name="arrow_forward-material-outlined" size="md" class="sds-card__icon" role="presentation"></sds-icon>
556
- `;return Q`<article class="sds-card">${this.link?Q`<a href="${this.link}" class="sds-card__content">${t}</a>`:Q`<div class="sds-card__content">${t}</div>`}</article>`}};xe.styles=[fe],_e([S({type:String,reflect:!0})],xe.prototype,"link",2),_e([A("slot#heading")],xe.prototype,"headingSlot",2),_e([A("slot#text")],xe.prototype,"textSlot",2),xe=_e([P("sds-card")],xe);const ye=d`
681
+ `;return Q`<article class="sds-card">${this.link?Q`<a href="${this.link}" class="sds-card__content">${t}</a>`:Q`<div class="sds-card__content">${t}</div>`}</article>`}};Ce.styles=[ke],Se([S({type:String,reflect:!0})],Ce.prototype,"link",2),Se([A("slot#heading")],Ce.prototype,"headingSlot",2),Se([A("slot#text")],Ce.prototype,"textSlot",2),Ce=Se([L("sds-card")],Ce);const Ee=d`
557
682
  :host {
558
683
  --_sds-checkbox-block-gap: var(--sds-checkbox-block-gap, var(--sds-spacing-4xs));
559
684
  --_sds-checkbox-inline-gap: var(--sds-checkbox-inline-gap, var(--sds-spacing-3xs));
@@ -776,19 +901,19 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
776
901
  margin-block-start: -1px;
777
902
  }
778
903
  }
779
- `;var we=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,ze=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ke(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&we(e,s,a),a};let $e=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(e.checked?e.value:null),this._validate(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??"on")}firstUpdated(t){super.firstUpdated(t),this.control&&(this.control.required=this.required),this._validate()}formResetCallback(){this.checked=this._initialChecked,this.control&&(this.control.checked=this._initialChecked);const t=this.checked?this.value??"on":null;this.internals.setFormValue(t),this._validate()}_validate(){this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},this.control.validationMessage,this.control):this.internals.setValidity({})}updated(t){super.updated(t),t.has("required")&&this.control&&(this.control.required=this.required),t.has("checked")&&this._validate(),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}get type(){return"checkbox"}render(){const t={"sds-checkbox":!0,"sds-checkbox--error":Boolean(this.error)},e={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},s=this.helpText?"help-text":void 0;return Q`
904
+ `;var Ae=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Le=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Oe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ae(e,s,a),a};let Pe=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(e.checked?e.value:null),this._validate(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??"on")}firstUpdated(t){super.firstUpdated(t),this.control&&(this.control.required=this.required),this._validate()}formResetCallback(){this.checked=this._initialChecked,this.control&&(this.control.checked=this._initialChecked);const t=this.checked?this.value??"on":null;this.internals.setFormValue(t),this._validate()}_validate(){this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},this.control.validationMessage,this.control):this.internals.setValidity({})}updated(t){super.updated(t),t.has("required")&&this.control&&(this.control.required=this.required),t.has("checked")&&this._validate(),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}get type(){return"checkbox"}render(){const t={"sds-checkbox":!0,"sds-checkbox--error":Boolean(this.error)},e={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},s=this.helpText?"help-text":void 0;return Q`
780
905
  <div class="${Zt(t)}">
781
906
  <input
782
907
  id="control"
783
908
  type="checkbox"
784
- name="${Lt(this.name)}"
785
- value="${Lt(this.value)}"
909
+ name="${Pt(this.name)}"
910
+ value="${Pt(this.value)}"
786
911
  .checked="${this.checked}"
787
912
  ?checked="${this.checked}"
788
913
  ?disabled="${this.disabled}"
789
914
  ?required="${this.required}"
790
915
  ?readonly="${this.readOnly}"
791
- aria-describedby="${Lt(s)}"
916
+ aria-describedby="${Pt(s)}"
792
917
  aria-invalid="${this.error?"true":"false"}"
793
918
  @change="${this._handleChange}"
794
919
  @focus="${this._handleFocus}"
@@ -798,7 +923,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
798
923
  ${this.label?Q`<label for="control" class="sds-checkbox__label">${this.label}</label>`:tt}
799
924
  ${this.helpText?Q`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:tt}
800
925
  </div>
801
- `}};$e.styles=[ye],ze([S({type:String,reflect:!0})],$e.prototype,"label",2),ze([S({type:String})],$e.prototype,"value",2),ze([S({type:Boolean,reflect:!0})],$e.prototype,"checked",2),ze([S({type:Boolean,reflect:!0})],$e.prototype,"error",2),ze([S({type:Boolean,reflect:!0})],$e.prototype,"required",2),ze([S({type:String,reflect:!0})],$e.prototype,"size",2),ze([S({type:String,attribute:"help-text"})],$e.prototype,"helpText",2),ze([S({type:Boolean,reflect:!0})],$e.prototype,"disabled",1),ze([S({type:Boolean,attribute:!1})],$e.prototype,"parentRequestDisabled",1),ze([A("#control")],$e.prototype,"control",2),$e=ze([P("sds-checkbox")],$e);const Se=d`
926
+ `}};Pe.styles=[Ee],Le([S({type:String,reflect:!0})],Pe.prototype,"label",2),Le([S({type:String})],Pe.prototype,"value",2),Le([S({type:Boolean,reflect:!0})],Pe.prototype,"checked",2),Le([S({type:Boolean,reflect:!0})],Pe.prototype,"error",2),Le([S({type:Boolean,reflect:!0})],Pe.prototype,"required",2),Le([S({type:String,reflect:!0})],Pe.prototype,"size",2),Le([S({type:String,attribute:"help-text"})],Pe.prototype,"helpText",2),Le([S({type:Boolean,reflect:!0})],Pe.prototype,"disabled",1),Le([S({type:Boolean,attribute:!1})],Pe.prototype,"parentRequestDisabled",1),Le([A("#control")],Pe.prototype,"control",2),Pe=Le([L("sds-checkbox")],Pe);const De=d`
802
927
  :host {
803
928
  --_sds-checkbox-group-gap: var(--sds-checkbox-group-gap, var(--sds-spacing-xs));
804
929
  --_sds-checkbox-group-font-family: var(--sds-checkbox-group-font-family, var(--sds-typography-font-family-roboto));
@@ -890,8 +1015,8 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
890
1015
  --_sds-checkbox-group-help-text-font-size: var(--sds-checkbox-group-help-text-font-size, var(--sds-components-font-size-content-lg));
891
1016
  --_sds-checkbox-group-help-text-line-height: var(--sds-checkbox-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
892
1017
  }
893
- `;var Ce=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Ae=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ee(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ce(e,s,a),a};const Oe=["disabled","errorMessage","readOnly","size"];let Pe=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.disabled=!1,this.size="md",this._selectedValues=[],this._handleCheckboxChange=t=>{const e=t.target,s=e.value,o=e.checked;this._selectedValues=o?[...this._selectedValues,s]:this._selectedValues.filter(t=>t!==s),this.dispatchSheriffEvent("sds-update")},this._handleSlotChange=()=>{this._updateChildProps([...Oe])}}_getChildCheckboxes(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-CHECKBOX"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildCheckboxes();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;Oe.includes(o)&&this._updateChildProps([o])}get value(){return{selectedValues:this._selectedValues}}render(){const t={"sds-checkbox-group":!0,"sds-checkbox-group--disabled":this.disabled,"sds-checkbox-group--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
894
- <fieldset class="${Zt(t)}" aria-describedby="${Lt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
1018
+ `;var Te=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Me=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?qe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Te(e,s,a),a};const Re=["disabled","errorMessage","readOnly","size"];let Ve=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.disabled=!1,this.size="md",this._selectedValues=[],this._handleCheckboxChange=t=>{const e=t.target,s=e.value,o=e.checked;this._selectedValues=o?[...this._selectedValues,s]:this._selectedValues.filter(t=>t!==s),this.dispatchSheriffEvent("sds-update")},this._handleSlotChange=()=>{this._updateChildProps([...Re])}}_getChildCheckboxes(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-CHECKBOX"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildCheckboxes();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;Re.includes(o)&&this._updateChildProps([o])}get value(){return{selectedValues:this._selectedValues}}render(){const t={"sds-checkbox-group":!0,"sds-checkbox-group--disabled":this.disabled,"sds-checkbox-group--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
1019
+ <fieldset class="${Zt(t)}" aria-describedby="${Pt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
895
1020
  ${this.legend?Q`<legend class="sds-checkbox-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:tt}</sds-icon>${this.legend}</legend>`:tt}
896
1021
  ${this.helpText?Q`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:tt}
897
1022
  <div class="sds-checkbox-group__checkboxes" @change=${this._handleCheckboxChange}>
@@ -899,7 +1024,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
899
1024
  </div>
900
1025
  ${this.errorMessage?Q`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt}
901
1026
  </fieldset>
902
- `}};Pe.styles=[Se],Ae([S({type:String,reflect:!0})],Pe.prototype,"legend",2),Ae([S({type:String,attribute:"help-text",reflect:!0})],Pe.prototype,"helpText",2),Ae([S({type:String,attribute:"error-message",reflect:!0})],Pe.prototype,"errorMessage",2),Ae([S({type:Boolean,attribute:"readonly",reflect:!0})],Pe.prototype,"readOnly",2),Ae([S({type:Boolean,reflect:!0})],Pe.prototype,"disabled",2),Ae([S({type:String,reflect:!0})],Pe.prototype,"size",2),Ae([C()],Pe.prototype,"_selectedValues",2),Ae([A("slot")],Pe.prototype,"_slotElement",2),Pe=Ae([P("sds-checkbox-group")],Pe);const Le=d`
1027
+ `}};Ve.styles=[De],Me([S({type:String,reflect:!0})],Ve.prototype,"legend",2),Me([S({type:String,attribute:"help-text",reflect:!0})],Ve.prototype,"helpText",2),Me([S({type:String,attribute:"error-message",reflect:!0})],Ve.prototype,"errorMessage",2),Me([S({type:Boolean,attribute:"readonly",reflect:!0})],Ve.prototype,"readOnly",2),Me([S({type:Boolean,reflect:!0})],Ve.prototype,"disabled",2),Me([S({type:String,reflect:!0})],Ve.prototype,"size",2),Me([C()],Ve.prototype,"_selectedValues",2),Me([A("slot")],Ve.prototype,"_slotElement",2),Ve=Me([L("sds-checkbox-group")],Ve);const Be=d`
903
1028
  :host {
904
1029
  --_sds-chip-font-family: var(--sds-chip-font-family, var(--sds-typography-font-family-roboto));
905
1030
  --_sds-chip-font-weight: var(--sds-chip-font-weight, var(--sds-typography-font-weight-regular));
@@ -1044,7 +1169,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1044
1169
  white-space: nowrap;
1045
1170
  }
1046
1171
  }
1047
- `;var De=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,qe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Te(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&De(e,s,a),a};let Me=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this._initialChecked=!1,this._readOnly=!1,this._slotLabel="",this.variant="selectable",this.size="md",this.checked=!1,this._handleSlotChange=t=>{const e=t.target;this._slotLabel=e.assignedNodes().map(t=>t.textContent).join("").trim()},this._handleChange=t=>{if(t.stopImmediatePropagation(),!(t.target instanceof HTMLInputElement))return;if(this.disabled||this.readOnly)return void(t.target.checked=this.checked??!1);const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?this.value??"on":null),this.dispatchSheriffEvent("change")},this._remove=()=>{this.disabled||this.readOnly||this.dispatchSheriffEvent("sds-remove")},this._keypress=t=>{" "!==t.key&&"Enter"!==t.key||this._remove()}}get readOnly(){return this._readOnly}set readOnly(t){const e=this._readOnly;this._readOnly=t??!1,this.requestUpdate("readOnly",e)}set readonly(t){this.readOnly=t}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked??!1,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??null)}formResetCallback(){this.checked=this._initialChecked,this.internals.setFormValue(this.value??null)}render(){const t="removable"===this.variant&&!this.readOnly&&!this.disabled,e={"sds-chip":!0,"sds-chip--small":"small"===this.size||"sm"===this.size,"sds-chip--large":"large"===this.size||"lg"===this.size,"sds-chip--removable":t};return t?Q`<button class="${Zt(e)}" @click=${this._remove} @keyup="${this._keypress}">
1172
+ `;var je=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ie=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Fe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&je(e,s,a),a};let He=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this._initialChecked=!1,this._readOnly=!1,this._slotLabel="",this.variant="selectable",this.size="md",this.checked=!1,this._handleSlotChange=t=>{const e=t.target;this._slotLabel=e.assignedNodes().map(t=>t.textContent).join("").trim()},this._handleChange=t=>{if(t.stopImmediatePropagation(),!(t.target instanceof HTMLInputElement))return;if(this.disabled||this.readOnly)return void(t.target.checked=this.checked??!1);const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?this.value??"on":null),this.dispatchSheriffEvent("change")},this._remove=()=>{this.disabled||this.readOnly||this.dispatchSheriffEvent("sds-remove")},this._keypress=t=>{" "!==t.key&&"Enter"!==t.key||this._remove()}}get readOnly(){return this._readOnly}set readOnly(t){const e=this._readOnly;this._readOnly=t??!1,this.requestUpdate("readOnly",e)}set readonly(t){this.readOnly=t}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked??!1,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??null)}formResetCallback(){this.checked=this._initialChecked,this.internals.setFormValue(this.value??null)}render(){const t="removable"===this.variant&&!this.readOnly&&!this.disabled,e={"sds-chip":!0,"sds-chip--small":"small"===this.size||"sm"===this.size,"sds-chip--large":"large"===this.size||"lg"===this.size,"sds-chip--removable":t};return t?Q`<button class="${Zt(e)}" @click=${this._remove} @keyup="${this._keypress}">
1048
1173
  <slot></slot>
1049
1174
  <sds-icon name="close-material-outlined" size="s"></sds-icon>
1050
1175
  </button>`:Q`<label class="${Zt(e)}">
@@ -1052,8 +1177,8 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1052
1177
  id="control"
1053
1178
  type="checkbox"
1054
1179
  aria-label="${this._slotLabel}"
1055
- name="${Lt(this.name)}"
1056
- value="${Lt(this.value)}"
1180
+ name="${Pt(this.name)}"
1181
+ value="${Pt(this.value)}"
1057
1182
  .checked="${this.checked??!1}"
1058
1183
  ?checked="${this.checked}"
1059
1184
  ?disabled="${this.disabled}"
@@ -1061,7 +1186,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1061
1186
  @change="${this._handleChange}"
1062
1187
  />
1063
1188
  <span aria-hidden="true"><slot @slotchange="${this._handleSlotChange}"></slot></span>
1064
- </label>`}};Me.styles=[Le],qe([A("#control")],Me.prototype,"control",2),qe([C()],Me.prototype,"_slotLabel",2),qe([S({type:String,reflect:!0})],Me.prototype,"variant",2),qe([S({type:String,reflect:!0})],Me.prototype,"size",2),qe([S({type:Boolean,reflect:!0})],Me.prototype,"checked",2),qe([S({type:String})],Me.prototype,"value",2),qe([S({type:Boolean,attribute:"readonly",reflect:!0})],Me.prototype,"readOnly",1),Me=qe([P("sds-chip")],Me);const Re=d`
1189
+ </label>`}};He.styles=[Be],Ie([A("#control")],He.prototype,"control",2),Ie([C()],He.prototype,"_slotLabel",2),Ie([S({type:String,reflect:!0})],He.prototype,"variant",2),Ie([S({type:String,reflect:!0})],He.prototype,"size",2),Ie([S({type:Boolean,reflect:!0})],He.prototype,"checked",2),Ie([S({type:String})],He.prototype,"value",2),Ie([S({type:Boolean,attribute:"readonly",reflect:!0})],He.prototype,"readOnly",1),He=Ie([L("sds-chip")],He);const Ne=d`
1065
1190
  :host {
1066
1191
  --_sds-details-text-color: var(--sds-details-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1067
1192
 
@@ -1197,7 +1322,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1197
1322
  display: inline;
1198
1323
  margin: 0;
1199
1324
  }
1200
- `;var Ve=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,je=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Be(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ve(e,s,a),a};let Ie=class extends(St(ft)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._initialized=!1,this._handleToggle=t=>{const e=t.currentTarget;this.open!==e.open&&(this.open=e.open)}}updated(t){this._initialized?t.has("open")&&this.dispatchSheriffEvent("toggle",{open:!!this.open}):this._initialized=!0}render(){return Q`
1325
+ `;var Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ke=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?We(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ue(e,s,a),a};let Ge=class extends(St(ft)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._initialized=!1,this._handleToggle=t=>{const e=t.currentTarget;this.open!==e.open&&(this.open=e.open)}}updated(t){this._initialized?t.has("open")&&this.dispatchSheriffEvent("toggle",{open:!!this.open}):this._initialized=!0}render(){return Q`
1201
1326
  <details class="sds-details" .name="${this.name??""}" ?data-standalone="${this.standalone}" ?open="${this.open}" @toggle="${this._handleToggle}">
1202
1327
  <summary class="sds-details__summary">
1203
1328
  <sds-icon name="chevron_up-material-filled" role="presentation"></sds-icon>
@@ -1209,7 +1334,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1209
1334
  <slot></slot>
1210
1335
  </div>
1211
1336
  </details>
1212
- `}};Ie.styles=[Re],je([S({type:Boolean,reflect:!0})],Ie.prototype,"open",2),je([S({type:Boolean,reflect:!0})],Ie.prototype,"standalone",2),je([S({type:String,reflect:!0})],Ie.prototype,"name",2),Ie=je([P("sds-details")],Ie);const Fe=d`
1337
+ `}};Ge.styles=[Ne],Ke([S({type:Boolean,reflect:!0})],Ge.prototype,"open",2),Ke([S({type:Boolean,reflect:!0})],Ge.prototype,"standalone",2),Ke([S({type:String,reflect:!0})],Ge.prototype,"name",2),Ge=Ke([L("sds-details")],Ge);const Ye=d`
1213
1338
  :host {
1214
1339
  display: block;
1215
1340
  }
@@ -1236,132 +1361,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1236
1361
  :host([outlined]) div ::slotted(sds-details:last-child[open]) {
1237
1362
  --sds-details-summary-border-radius: 0;
1238
1363
  }
1239
- `;var He=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Ue=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ne(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&He(e,s,a),a};let We=class extends ft{constructor(){super(...arguments),this.outlined=!1,this._toggleListeners=/* @__PURE__ */new Map}updated(t){t.has("name")&&this._syncChildren()}disconnectedCallback(){super.disconnectedCallback(),this._removeListeners()}_handleSlotChange(){this._syncChildren()}_syncChildren(){this._removeListeners();const t=this._detailsChildren;t.forEach(e=>{if(e.name=this.name,this.name){const s=s=>{const{open:o}=s.detail;o&&t.forEach(t=>{t!==e&&t.open&&(t.open=!1)})};e.addEventListener("toggle",s),this._toggleListeners.set(e,s)}})}_removeListeners(){this._toggleListeners.forEach((t,e)=>{e.removeEventListener("toggle",t)}),this._toggleListeners.clear()}render(){return Q`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};We.styles=[Fe],Ue([S({type:Boolean,reflect:!0})],We.prototype,"outlined",2),Ue([S({type:String,reflect:!0})],We.prototype,"name",2),Ue([O({selector:"sds-details"})],We.prototype,"_detailsChildren",2),We=Ue([P("sds-details-group")],We);const Ke=d`
1240
- :host {
1241
- --_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1242
- --_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
1243
-
1244
- --_sds-dialog-border-color: var(--sds-dialog-border-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
1245
- --_sds-dialog-border-radius: var(--sds-dialog-border-radius, var(--sds-radius-md));
1246
- --_sds-dialog-border-width: var(--sds-dialog-border-width, var(--sds-border-sm));
1247
-
1248
- --_sds-dialog-max-width: var(--sds-dialog-max-width, min(60ch, 100vw));
1249
- --_sds-dialog-max-height: var(--sds-dialog-max-height, calc(100dvh - var(--sds-spacing-lg)));
1250
-
1251
- --_sds-dialog-margin: var(--sds-dialog-margin, auto);
1252
- --_sds-dialog-padding-block: var(--sds-dialog-padding-block, var(--sds-spacing-sm));
1253
- --_sds-dialog-padding-inline: var(--sds-dialog-padding-inline, var(--sds-spacing-sm));
1254
- --_sds-dialog-gap: var(--sds-dialog-gap, var(--sds-spacing-xs));
1255
-
1256
- --_sds-dialog-font-family: var(--sds-dialog-font-family, var(--sds-typography-font-family-roboto));
1257
- --_sds-dialog-text-color: var(--sds-dialog-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1258
-
1259
- --_sds-dialog-box-shadow: var(--sds-dialog-box-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
1260
-
1261
- --_sds-dialog-animation-duration: var(--sds-dialog-animation-duration, 200ms);
1262
- --_sds-dialog-close-button-offset: var(--sds-dialog-close-button-offset, var(--sds-spacing-3xs));
1263
-
1264
- display: contents;
1265
- }
1266
-
1267
- dialog {
1268
- color: var(--_sds-dialog-text-color);
1269
- background-color: var(--_sds-dialog-background-color);
1270
- box-shadow: var(--_sds-dialog-box-shadow);
1271
-
1272
- border: var(--_sds-dialog-border-width) solid var(--_sds-dialog-border-color);
1273
- border-radius: var(--_sds-dialog-border-radius);
1274
-
1275
- font-family: var(--_sds-dialog-font-family);
1276
-
1277
- max-width: var(--_sds-dialog-max-width);
1278
- max-height: var(--_sds-dialog-max-height);
1279
-
1280
- overflow: auto;
1281
- padding: 0;
1282
-
1283
- opacity: 0;
1284
- transform: translateY(-1rem);
1285
- animation: sds-dialog-fade-in var(--_sds-dialog-animation-duration) ease-out forwards;
1286
-
1287
- &:focus-visible {
1288
- outline: 3px solid var(--sds-color-states-focus-outer);
1289
- outline-offset: 3px;
1290
- }
1291
-
1292
- &[open] {
1293
- display: flex;
1294
- flex-direction: column;
1295
- margin: var(--_sds-dialog-margin);
1296
- padding-block: var(--_sds-dialog-padding-block);
1297
- padding-inline: var(--_sds-dialog-padding-inline);
1298
- gap: var(--_sds-dialog-gap);
1299
- }
1300
-
1301
- &.sds-dialog__empty-header:has(.sds-dialog__close-button) {
1302
- /* Set padding right to avoid overflowing the close button */
1303
- padding-right: var(--sds-dialog-padding-right, var(--sds-spacing-lg));
1304
- }
1305
-
1306
- &::backdrop {
1307
- background-color: var(--_sds-dialog-backdrop-color);
1308
- /* @keyframes does not work for ::backdrop in Firefox, so use transition instead */
1309
- transition: opacity var(--_sds-dialog-animation-duration) ease-out;
1310
- opacity: 0;
1311
- }
1312
-
1313
- &[open]::backdrop {
1314
- opacity: 1;
1315
- }
1316
- }
1317
-
1318
- @keyframes sds-dialog-fade-in {
1319
- to {
1320
- opacity: 1;
1321
- transform: translateY(0);
1322
- }
1323
- }
1324
-
1325
- .sds-dialog__close-button {
1326
- --sds-button-text-color: var(--sds-dialog-close-button-color, var(--sds-color-text-subtle, var(--sds-color-main-text-subtle)));
1327
- --sds-button-padding-inline: 0;
1328
-
1329
- position: absolute;
1330
- top: var(--_sds-dialog-close-button-offset);
1331
- right: var(--_sds-dialog-close-button-offset);
1332
- z-index: 1;
1333
- }
1334
-
1335
- .sds-dialog__header {
1336
- margin-right: var(--sds-spacing-lg);
1337
- }
1338
-
1339
- @media (max-width: 640px) {
1340
- :host {
1341
- --_sds-dialog-max-width: var(--sds-dialog-max-width, 100%);
1342
- --_sds-dialog-margin: var(--sds-dialog-margin, var(--sds-spacing-xs));
1343
- }
1344
- }
1345
-
1346
- @media (prefers-reduced-motion: reduce) {
1347
- :host {
1348
- --_sds-dialog-animation-duration: 0ms;
1349
- }
1350
- }
1351
- `;var Ge=Object.defineProperty,Ye=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Ge(e,s,a),a};const Xe=class extends(St(ft)){constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._isHeaderSlotEmpty=!0,this._pointerDownInside=!1,this._handleClose=()=>{this.open=!1,this.dispatchSheriffEvent("sds-close")},this._handleClick=t=>{const e=t.target;e?.closest('[data-command="close"],[command="close"]')&&this._closeDialog()},this._handlePointerDown=t=>{const e=this._dialog.getBoundingClientRect(),{clientX:s,clientY:o}=t;this._pointerDownInside=e.top<=o&&o<=e.bottom&&e.left<=s&&s<=e.right},this._handlePointerUp=t=>{const e=this._pointerDownInside;this._pointerDownInside=!1,"any"!==this.closedby||e||t.target===this._dialog&&requestAnimationFrame(()=>{this._dialog&&this._dialog.open&&this._closeDialog()})},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},this._handleHeaderSlotChange=t=>{const e=t.target;this._isHeaderSlotEmpty=0===e.assignedElements().length},this._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const e=t.find(t=>null!=t.getAttribute("autofocus"));e instanceof HTMLElement&&document.activeElement!==e&&e.focus()}}firstUpdated(){this._setupEventListeners(),this.open&&this._openDialog()}updated(t){t.has("open")&&(this.open?this._openDialog():this._closeDialog())}_setupEventListeners(){this._dialog.addEventListener("close",this._handleClose),this._dialog.addEventListener("cancel",this._handleCancel),this._dialog.addEventListener("click",this._handleClick),this._dialog.addEventListener("pointerdown",this._handlePointerDown),this._dialog.addEventListener("pointerup",this._handlePointerUp),this._dialog.addEventListener("animationend",this._handleAutoFocus)}_openDialog(){this._dialog&&(this.modal?this._dialog.showModal():this._dialog.show())}_closeDialog(){this._dialog&&this._dialog.close()}show(){this.open=!0}showModal(){this.modal=!0,this.open=!0}close(){this.open=!1}requestClose(){this._dialog&&this._dialog.requestClose()}render(){return Q`
1352
- <dialog .closedBy="${this.closedby}" class=${this._isHeaderSlotEmpty?"sds-dialog__empty-header":""}>
1353
- <div class="sds-dialog__header">
1354
- <slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot>
1355
- ${this.closeButtonLabel?Q`
1356
- <sds-button class="sds-dialog__close-button" icon variant="tertiary" size="md" data-command="close" label="${this.closeButtonLabel}">
1357
- <sds-icon name="close-material-outlined" size="md"></sds-icon>
1358
- </sds-button>
1359
- `:tt}
1360
- </div>
1361
- <slot></slot>
1362
- <slot name="footer"></slot>
1363
- </dialog>
1364
- `}};Xe.styles=[Ke];let Ze=Xe;Ye([S({type:Boolean,reflect:!0})],Ze.prototype,"open"),Ye([S({type:Boolean,reflect:!0})],Ze.prototype,"modal"),Ye([S({type:String,reflect:!0})],Ze.prototype,"closedby"),Ye([S({type:String,attribute:"close-button-label"})],Ze.prototype,"closeButtonLabel"),Ye([A("dialog")],Ze.prototype,"_dialog"),Ye([C()],Ze.prototype,"_isHeaderSlotEmpty");var Qe=Object.getOwnPropertyDescriptor;let Je=class extends Ze{};Je=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Qe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-dialog")],Je);const ts=d`
1364
+ `;var Xe=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Qe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ze(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Xe(e,s,a),a};let Je=class extends ft{constructor(){super(...arguments),this.outlined=!1,this._toggleListeners=/* @__PURE__ */new Map}updated(t){t.has("name")&&this._syncChildren()}disconnectedCallback(){super.disconnectedCallback(),this._removeListeners()}_handleSlotChange(){this._syncChildren()}_syncChildren(){this._removeListeners();const t=this._detailsChildren;t.forEach(e=>{if(e.name=this.name,this.name){const s=s=>{const{open:o}=s.detail;o&&t.forEach(t=>{t!==e&&t.open&&(t.open=!1)})};e.addEventListener("toggle",s),this._toggleListeners.set(e,s)}})}_removeListeners(){this._toggleListeners.forEach((t,e)=>{e.removeEventListener("toggle",t)}),this._toggleListeners.clear()}render(){return Q`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};Je.styles=[Ye],Qe([S({type:Boolean,reflect:!0})],Je.prototype,"outlined",2),Qe([S({type:String,reflect:!0})],Je.prototype,"name",2),Qe([O({selector:"sds-details"})],Je.prototype,"_detailsChildren",2),Je=Qe([L("sds-details-group")],Je);const ts=d`
1365
1365
  :host {
1366
1366
  --_sds-heading-font-family: var(--sds-heading-font-family, var(--sds-typography-font-family-roboto));
1367
1367
  --_sds-heading-text-color: var(--sds-heading-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -1520,7 +1520,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1520
1520
  --_sds-heading-line-height: var(--sds-heading-line-height, var(--sds-typography-heading-xs-desktop-line-height));
1521
1521
  }
1522
1522
  }
1523
- `;var es=Object.defineProperty,ss=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&es(e,s,a),a};const os=class extends ft{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return Q`<h1 class=${Zt(t)}><slot></slot></h1>`;case"h2":return Q`<h2 class=${Zt(t)}><slot></slot></h2>`;case"h3":return Q`<h3 class=${Zt(t)}><slot></slot></h3>`;case"h4":return Q`<h4 class=${Zt(t)}><slot></slot></h4>`;case"h5":return Q`<h5 class=${Zt(t)}><slot></slot></h5>`;case"h6":return Q`<h6 class=${Zt(t)}><slot></slot></h6>`}}};os.styles=[ts];let rs=os;ss([S({type:String,reflect:!0})],rs.prototype,"level"),ss([S({type:String,reflect:!0})],rs.prototype,"size");var as=Object.getOwnPropertyDescriptor;let is=class extends rs{};is=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?as(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-heading")],is);const ds=d`
1523
+ `;var es=Object.defineProperty,ss=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&es(e,s,a),a};const os=class extends ft{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return Q`<h1 class=${Zt(t)}><slot></slot></h1>`;case"h2":return Q`<h2 class=${Zt(t)}><slot></slot></h2>`;case"h3":return Q`<h3 class=${Zt(t)}><slot></slot></h3>`;case"h4":return Q`<h4 class=${Zt(t)}><slot></slot></h4>`;case"h5":return Q`<h5 class=${Zt(t)}><slot></slot></h5>`;case"h6":return Q`<h6 class=${Zt(t)}><slot></slot></h6>`}}};os.styles=[ts];let rs=os;ss([S({type:String,reflect:!0})],rs.prototype,"level"),ss([S({type:String,reflect:!0})],rs.prototype,"size");var as=Object.getOwnPropertyDescriptor;let is=class extends rs{};is=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?as(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-heading")],is);const ds=d`
1524
1524
  :host {
1525
1525
  --_sds-loader-main-color: var(--sds-loader-main-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
1526
1526
  --_sds-loader-secondary-color: var(--sds-loader-secondary-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
@@ -1599,7 +1599,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1599
1599
  `;var ns=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,cs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ls(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ns(e,s,a),a};let hs=class extends ft{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return Q`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1600
1600
  <circle class="sds-loader__background" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1601
1601
  <circle class="sds-loader__circle" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1602
- </svg>`}};hs.styles=[ds],cs([S({type:String,reflect:!0})],hs.prototype,"size",2),cs([S({type:Boolean,reflect:!0})],hs.prototype,"contrast",2),hs=cs([P("sds-loader")],hs);const ps=d`
1602
+ </svg>`}};hs.styles=[ds],cs([S({type:String,reflect:!0})],hs.prototype,"size",2),cs([S({type:Boolean,reflect:!0})],hs.prototype,"contrast",2),hs=cs([L("sds-loader")],hs);const ps=d`
1603
1603
  :host {
1604
1604
  --_sds-notification-background-color: var(--sds-notification-background-color, var(--sds-color-alert-info-surface-tinted));
1605
1605
 
@@ -1749,12 +1749,12 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1749
1749
  <sds-icon name="close-material-outlined" size="sm"></sds-icon>
1750
1750
  </sds-button>
1751
1751
  </div>`:tt}
1752
- </div>`}};ms.styles=[ps],us([S({type:String,reflect:!0})],ms.prototype,"variant",2),us([S({type:String,attribute:"removable-label",reflect:!0})],ms.prototype,"removableLabel",2),ms=us([P("sds-notification")],ms);const _s=d`
1752
+ </div>`}};ms.styles=[ps],us([S({type:String,reflect:!0})],ms.prototype,"variant",2),us([S({type:String,attribute:"removable-label",reflect:!0})],ms.prototype,"removableLabel",2),ms=us([L("sds-notification")],ms);const _s=d`
1753
1753
  :host {
1754
1754
  display: flex;
1755
1755
  flex-direction: column;
1756
1756
  }
1757
- `;var xs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ys(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&xs(e,s,a),a};let ks=class extends ft{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return Q`<slot></slot>`}};ks.styles=[_s],ws([S({type:String,reflect:!0,attribute:"heading-level"})],ks.prototype,"headingLevel",2),ks=ws([P("sds-process")],ks);const zs=d`
1757
+ `;var xs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ys(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&xs(e,s,a),a};let ks=class extends ft{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return Q`<slot></slot>`}};ks.styles=[_s],ws([S({type:String,reflect:!0,attribute:"heading-level"})],ks.prototype,"headingLevel",2),ks=ws([L("sds-process")],ks);const zs=d`
1758
1758
  :host {
1759
1759
  --_sds-process-step-border-width: var(--sds-process-step-border-width, 2px);
1760
1760
  --_sds-process-step-border-color: var(--sds-process-step-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -1912,7 +1912,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1912
1912
  </div>
1913
1913
  <span class="sds-process-step__line"></span>
1914
1914
  </div>
1915
- `}};Es.styles=[zs],Cs([S({type:String,reflect:!0})],Es.prototype,"heading",2),Cs([S({type:String,reflect:!0})],Es.prototype,"timestamp",2),Cs([A('slot[name="marker"]')],Es.prototype,"markerSlot",2),Cs([A(".sds-process-step")],Es.prototype,"step",2),Es=Cs([P("sds-process-step")],Es);const As=d`
1915
+ `}};Es.styles=[zs],Cs([S({type:String,reflect:!0})],Es.prototype,"heading",2),Cs([S({type:String,reflect:!0})],Es.prototype,"timestamp",2),Cs([A('slot[name="marker"]')],Es.prototype,"markerSlot",2),Cs([A(".sds-process-step")],Es.prototype,"step",2),Es=Cs([L("sds-process-step")],Es);const As=d`
1916
1916
  ${i(':host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overflow:auto;overscroll-behavior:contain}:host{--_ds-floating:var(--dsc-popover-placement);--_ds-floating-arrow-size:var(--dsc-popover-arrow-size);--dsc-popover-background:var(--ds-color-surface-default);--dsc-popover-border-width:var(--ds-border-width-default);--dsc-popover-border-style:solid;--dsc-popover-border-color:var(--ds-color-border-default);--dsc-popover-color:var(--ds-color-text-default);--dsc-popover-arrow-size:var(--ds-size-3);--dsc-popover-border-radius:var(--ds-border-radius-md);--dsc-popover-max-width:300px;--dsc-popover-padding:var(--ds-size-3) var(--ds-size-4);--dsc-popover-box-shadow:var(--ds-shadow-md);--dsc-popover-placement:top;background:var(--dsc-popover-background);border-color:var(--dsc-popover-border-color);border-radius:var(--dsc-popover-border-radius);border-style:var(--dsc-popover-border-style);border-width:var(--dsc-popover-border-width);box-shadow:var(--dsc-popover-box-shadow);box-sizing:border-box;color:var(--dsc-popover-color);max-width:var(--dsc-popover-max-width);padding:var(--dsc-popover-padding);&[data-floating|=top]:before{rotate:45deg;top:100%}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{rotate:-135deg;top:0}&[data-floating|=left]:before{left:100%;rotate:-45deg}}:host[data-variant=default]{--dsc-popover-background:var(--ds-color-surface-default)}:host[data-variant=tinted]{--dsc-popover-background:var(--ds-color-surface-tinted)}[data-popover=inline]{all:unset;cursor:pointer;font-size:inherit;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;text-underline-offset:.27em}[data-popover=inline]:not([hidden]){display:inline}[data-popover=inline]:focus-visible{box-shadow:var(--_ds--focus,var(--dsc-focus-boxShadow));outline:var(--_ds--focus,var(--dsc-focus-outline));outline-offset:var(--_ds--focus,var(--ds-border-width-focus))}[data-popover=inline]:focus-visible *{--_ds--focus: }')}
1917
1917
 
1918
1918
  :host {
@@ -1960,7 +1960,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1960
1960
  animation: none;
1961
1961
  }
1962
1962
  }
1963
- `,Os={passive:!0,capture:!0},Ps=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),Ls=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Ds(t,...e)},Ds=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)};Date.now().toString(36),Math.random().toString(36).slice(2,5);const Ts=Math.min,qs=Math.max,Ms=Math.round,Rs=Math.floor,Vs=t=>({x:t,y:t}),Bs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Is(t,e,s){return qs(t,Ts(e,s))}function Fs(t,e){return"function"==typeof t?t(e):t}function Hs(t){return t.split("-")[0]}function Ns(t){return t.split("-")[1]}function Us(t){return"x"===t?"y":"x"}function Ws(t){return"y"===t?"height":"width"}const Ks=/* @__PURE__ */new Set(["top","bottom"]);function Gs(t){return Ks.has(Hs(t))?"y":"x"}function Ys(t){return Us(Gs(t))}function Xs(t){return t.replace(/start|end/g,t=>js[t])}const Zs=["left","right"],Qs=["right","left"],Js=["top","bottom"],to=["bottom","top"];function eo(t){return t.replace(/left|right|bottom|top/g,t=>Bs[t])}function so(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function oo(t,e,s){let{reference:o,floating:r}=t;const a=Gs(e),i=Ys(e),d=Ws(i),n=Hs(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Ns(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function ro(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Fs(e,t),v="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},u=d[p?"floating"===h?"reference":"floating":h],f=so(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(u)))||s?u:u.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=so(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+v.top)/_.y,bottom:(x.bottom-f.bottom+v.bottom)/_.y,left:(f.left-x.left+v.left)/_.x,right:(x.right-f.right+v.right)/_.x}}const ao=/* @__PURE__ */new Set(["left","top"]);function io(){return"undefined"!=typeof window}function no(t){return ho(t)?(t.nodeName||"").toLowerCase():"#document"}function lo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function co(t){var e;return null==(e=(ho(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ho(t){return!!io()&&(t instanceof Node||t instanceof lo(t).Node)}function po(t){return!!io()&&(t instanceof Element||t instanceof lo(t).Element)}function go(t){return!!io()&&(t instanceof HTMLElement||t instanceof lo(t).HTMLElement)}function vo(t){return!(!io()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof lo(t).ShadowRoot)}const uo=/* @__PURE__ */new Set(["inline","contents"]);function fo(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=Eo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&!uo.has(r)}const bo=/* @__PURE__ */new Set(["table","td","th"]);function mo(t){return bo.has(no(t))}const _o=[":popover-open",":modal"];function xo(t){return _o.some(e=>{try{return t.matches(e)}catch(s){return!1}})}const yo=["transform","translate","scale","rotate","perspective"],wo=["transform","translate","scale","rotate","perspective","filter"],ko=["paint","layout","strict","content"];function zo(t){const e=$o(),s=po(t)?Eo(t):t;return yo.some(t=>!!s[t]&&"none"!==s[t])||!!s.containerType&&"normal"!==s.containerType||!e&&!!s.backdropFilter&&"none"!==s.backdropFilter||!e&&!!s.filter&&"none"!==s.filter||wo.some(t=>(s.willChange||"").includes(t))||ko.some(t=>(s.contain||"").includes(t))}function $o(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const So=/* @__PURE__ */new Set(["html","body","#document"]);function Co(t){return So.has(no(t))}function Eo(t){return lo(t).getComputedStyle(t)}function Ao(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Oo(t){if("html"===no(t))return t;const e=t.assignedSlot||t.parentNode||vo(t)&&t.host||co(t);return vo(e)?e.host:e}function Po(t){const e=Oo(t);return Co(e)?t.ownerDocument?t.ownerDocument.body:t.body:go(e)&&fo(e)?e:Po(e)}function Lo(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=Po(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=lo(r);if(a){const t=Do(i);return e.concat(i,i.visualViewport||[],fo(r)?r:[],t&&s?Lo(t):[])}return e.concat(r,Lo(r,[],s))}function Do(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function To(t){const e=Eo(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=go(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=Ms(s)!==a||Ms(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function qo(t){return po(t)?t:t.contextElement}function Mo(t){const e=qo(t);if(!go(e))return Vs(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=To(e);let i=(a?Ms(s.width):s.width)/o,d=(a?Ms(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Ro=Vs(0);function Vo(t){const e=lo(t);return $o()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ro}function Bo(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=qo(t);let i=Vs(1);e&&(o?po(o)&&(i=Mo(o)):i=Mo(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==lo(n)||!l?Vs(0):Vo(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,v=r.height/i.y;if(a){const t=lo(a),e=o&&po(o)?lo(o):o;let s=t,r=Do(s);for(;r&&o&&e!==s;){const t=Mo(r),e=r.getBoundingClientRect(),o=Eo(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,v*=t.y,h+=a,p+=i,s=lo(r),r=Do(s)}}return so({width:g,height:v,x:h,y:p})}function jo(t,e){const s=Ao(t).scrollLeft;return e?e.left+s:Bo(co(t)).left+s}function Io(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-jo(t,s),y:s.top+e.scrollTop}}const Fo=/* @__PURE__ */new Set(["absolute","fixed"]);function Ho(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=lo(t),o=co(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=$o();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=jo(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=co(t),s=Ao(t),o=t.ownerDocument.body,r=qs(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=qs(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+jo(t);const d=-s.scrollTop;return"rtl"===Eo(o).direction&&(i+=qs(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(co(t));else if(po(e))o=function(t,e){const s=Bo(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=go(t)?Mo(t):Vs(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=Vo(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return so(o)}function No(t,e){const s=Oo(t);return!(s===e||!po(s)||Co(s))&&("fixed"===Eo(s).position||No(s,e))}function Uo(t,e,s){const o=go(e),r=co(e),a="fixed"===s,i=Bo(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Vs(0);function l(){n.x=jo(r)}if(o||!o&&!a)if(("body"!==no(e)||fo(r))&&(d=Ao(e)),o){const t=Bo(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Vs(0):Io(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Wo(t){return"static"===Eo(t).position}function Ko(t,e){if(!go(t)||"fixed"===Eo(t).position)return null;if(e)return e(t);let s=t.offsetParent;return co(t)===s&&(s=s.ownerDocument.body),s}function Go(t,e){const s=lo(t);if(xo(t))return s;if(!go(t)){let e=Oo(t);for(;e&&!Co(e);){if(po(e)&&!Wo(e))return e;e=Oo(e)}return s}let o=Ko(t,e);for(;o&&mo(o)&&Wo(o);)o=Ko(o,e);return o&&Co(o)&&Wo(o)&&!zo(o)?s:o||function(t){let e=Oo(t);for(;go(e)&&!Co(e);){if(zo(e))return e;if(xo(e))return null;e=Oo(e)}return null}(t)||s}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=co(o),d=!!e&&xo(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Vs(1);const c=Vs(0),h=go(o);if((h||!h&&!a)&&(("body"!==no(o)||fo(i))&&(n=Ao(o)),go(o))){const t=Bo(o);l=Mo(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Vs(0):Io(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:co,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?xo(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=Lo(t,[],!1).filter(t=>po(t)&&"body"!==no(t)),r=null;const a="fixed"===Eo(t).position;let i=a?Oo(t):t;for(;po(i)&&!Co(i);){const e=Eo(i),s=zo(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&Fo.has(r.position)||fo(i)&&!s&&No(t,i))?o=o.filter(t=>t!==i):r=e,i=Oo(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=a[0],d=a.reduce((t,s)=>{const o=Ho(e,s,r);return t.top=qs(o.top,t.top),t.right=Ts(o.right,t.right),t.bottom=Ts(o.bottom,t.bottom),t.left=qs(o.left,t.left),t},Ho(e,i,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:Go,getElementRects:async function(t){const e=this.getOffsetParent||Go,s=this.getDimensions,o=await s(t.floating);return{reference:Uo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=To(t);return{width:e,height:s}},getScale:Mo,isElement:po,isRTL:function(t){return"rtl"===Eo(t).direction}};function Xo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Zo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Hs(s),d=Ns(s),n="y"===Gs(s),l=ao.has(i)?-1:1,c=a&&n?-1:1,h=Fs(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof v&&(g="end"===d?-1*v:v),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Qo=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Fs(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=Gs(Hs(r)),g=Us(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Is(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Is(u+h["y"===p?"top":"left"],u,u-h[t])}const f=n.fn({...e,[g]:v,[p]:u});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},Jo=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...f}=Fs(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Hs(r),m=Gs(d),_=Hs(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[eo(d)]:function(t){const e=eo(t);return[Xs(t),e,Xs(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Ns(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Qs:Zs:e?Zs:Qs;case"left":case"right":return e?Js:to;default:return[]}}(Hs(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Xs)))),a}(d,u,v,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Ns(t),r=Ys(t),a=Ws(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=eo(i)),[i,eo(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===Gs(e)||S.every(t=>Gs(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=Gs(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},tr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Fs(t,e),c=await i.detectOverflow(e,l),h=Hs(r),p=Ns(r),g="y"===Gs(r),{width:v,height:u}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=u-c.top-c.bottom,_=v-c.left-c.right,x=Ts(u-c[f],m),y=Ts(v-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=qs(c.left,0),e=qs(c.right,0),s=qs(c.top,0),o=qs(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:qs(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:qs(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return v!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},er=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Fs(t,e),c={x:s,y:o},h=Gs(r),p=Us(h);let g=c[p],v=c[h];const u=Fs(d,e),f="number"==typeof u?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=ao.has(Hs(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);v<s?v=s:v>o&&(v=o)}return{[p]:g,[h]:v}}}},sr="data-placement",or="data-autoplacement",rr=/* @__PURE__ */new Map;function ar(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&nr(o,"--_ds-floating");if(!a)return;if("closed"===e)return rr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;let i=nr(o,"--_ds-floating-overscroll"),d=Ps(o,sr)||Ps(r,sr)||a,n=Ps(o,or)||Ps(r,or),l=parseFloat(getComputedStyle(o,"::before").height)||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Zo(l||0),Qo({padding:10,limiter:er({offset:{mainAxis:h}})}),lr(),..."false"===n?[]:[Jo({padding:10,crossAxis:!1})],...i?[tr({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.clientWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=qo(t),c=r||a?[...l?Lo(l):[],...Lo(e)]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=co(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const v={rootMargin:-Rs(h)+"px "+-Rs(r.clientWidth-(c+p))+"px "+-Rs(r.clientHeight-(h+g))+"px "+-Rs(c)+"px",threshold:qs(0,Ts(1,n))||1};let u=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!u)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Xo(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),v.observe(e));let u=n?Bo(t):null;return n&&function e(){const o=Bo(t);u&&!Xo(u,o)&&s(),u=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=v)||t.disconnect(),v=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return rr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Yo,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=a.filter(Boolean),n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=oo(l,o,n),p=o,g={},v=0;for(let f=0;f<d.length;f++){var u;const{name:s,fn:a}=d[f],{x:b,y:m,data:_,reset:x}=await a({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:{...i,detectOverflow:null!=(u=i.detectOverflow)?u:ro},elements:{reference:t,floating:e}});c=null!=b?b:c,h=null!=m?m:h,g={...g,[s]:{...g[s],..._}},x&&v<=50&&(v++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(l=!0===x.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:c,y:h}=oo(l,p,n))),f=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:g}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});rr.set(o,()=>rr.delete(o)&&g())}let ir;const dr=({type:t})=>{if("mousedown"===t&&(ir=!1),"scroll"===t&&!1===ir&&(ir=!0),"mouseup"===t&&ir)for(let[e]of rr)e.showPopover()};(t=>{typeof window<"u"&&typeof document<"u"&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,[Ls(document,"mousedown scroll mouseup",dr,!0),Ls(document,"toggle ds-toggle-source",ar,Os)]))})("popover");const nr=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),lr=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Ps(e,"data-floating",t.placement),t}});var cr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,pr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?hr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&cr(e,s,a),a};let gr=class extends ft{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto")}render(){return Q`<slot></slot>`}};gr.styles=[As],pr([S({type:String,attribute:"data-placement",reflect:!0})],gr.prototype,"placement",2),pr([S({type:String,attribute:"data-autoplacement",reflect:!0})],gr.prototype,"autoPlacement",2),pr([S({type:String,attribute:"data-overscroll",reflect:!0})],gr.prototype,"overscroll",2),gr=pr([P("sds-popover")],gr);const vr=d`
1963
+ `,Os={passive:!0,capture:!0},Ls=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),Ps=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Ds(t,...e)},Ds=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)};Date.now().toString(36),Math.random().toString(36).slice(2,5);const Ts=Math.min,qs=Math.max,Ms=Math.round,Rs=Math.floor,Vs=t=>({x:t,y:t}),Bs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Fs(t,e,s){return qs(t,Ts(e,s))}function Is(t,e){return"function"==typeof t?t(e):t}function Hs(t){return t.split("-")[0]}function Ns(t){return t.split("-")[1]}function Us(t){return"x"===t?"y":"x"}function Ws(t){return"y"===t?"height":"width"}const Ks=/* @__PURE__ */new Set(["top","bottom"]);function Gs(t){return Ks.has(Hs(t))?"y":"x"}function Ys(t){return Us(Gs(t))}function Xs(t){return t.replace(/start|end/g,t=>js[t])}const Zs=["left","right"],Qs=["right","left"],Js=["top","bottom"],to=["bottom","top"];function eo(t){return t.replace(/left|right|bottom|top/g,t=>Bs[t])}function so(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function oo(t,e,s){let{reference:o,floating:r}=t;const a=Gs(e),i=Ys(e),d=Ws(i),n=Hs(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Ns(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function ro(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Is(e,t),v="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},u=d[p?"floating"===h?"reference":"floating":h],f=so(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(u)))||s?u:u.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=so(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+v.top)/_.y,bottom:(x.bottom-f.bottom+v.bottom)/_.y,left:(f.left-x.left+v.left)/_.x,right:(x.right-f.right+v.right)/_.x}}const ao=/* @__PURE__ */new Set(["left","top"]);function io(){return"undefined"!=typeof window}function no(t){return ho(t)?(t.nodeName||"").toLowerCase():"#document"}function lo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function co(t){var e;return null==(e=(ho(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ho(t){return!!io()&&(t instanceof Node||t instanceof lo(t).Node)}function po(t){return!!io()&&(t instanceof Element||t instanceof lo(t).Element)}function go(t){return!!io()&&(t instanceof HTMLElement||t instanceof lo(t).HTMLElement)}function vo(t){return!(!io()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof lo(t).ShadowRoot)}const uo=/* @__PURE__ */new Set(["inline","contents"]);function fo(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=Eo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&!uo.has(r)}const bo=/* @__PURE__ */new Set(["table","td","th"]);function mo(t){return bo.has(no(t))}const _o=[":popover-open",":modal"];function xo(t){return _o.some(e=>{try{return t.matches(e)}catch(s){return!1}})}const yo=["transform","translate","scale","rotate","perspective"],wo=["transform","translate","scale","rotate","perspective","filter"],ko=["paint","layout","strict","content"];function zo(t){const e=$o(),s=po(t)?Eo(t):t;return yo.some(t=>!!s[t]&&"none"!==s[t])||!!s.containerType&&"normal"!==s.containerType||!e&&!!s.backdropFilter&&"none"!==s.backdropFilter||!e&&!!s.filter&&"none"!==s.filter||wo.some(t=>(s.willChange||"").includes(t))||ko.some(t=>(s.contain||"").includes(t))}function $o(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const So=/* @__PURE__ */new Set(["html","body","#document"]);function Co(t){return So.has(no(t))}function Eo(t){return lo(t).getComputedStyle(t)}function Ao(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Oo(t){if("html"===no(t))return t;const e=t.assignedSlot||t.parentNode||vo(t)&&t.host||co(t);return vo(e)?e.host:e}function Lo(t){const e=Oo(t);return Co(e)?t.ownerDocument?t.ownerDocument.body:t.body:go(e)&&fo(e)?e:Lo(e)}function Po(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=Lo(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=lo(r);if(a){const t=Do(i);return e.concat(i,i.visualViewport||[],fo(r)?r:[],t&&s?Po(t):[])}return e.concat(r,Po(r,[],s))}function Do(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function To(t){const e=Eo(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=go(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=Ms(s)!==a||Ms(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function qo(t){return po(t)?t:t.contextElement}function Mo(t){const e=qo(t);if(!go(e))return Vs(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=To(e);let i=(a?Ms(s.width):s.width)/o,d=(a?Ms(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Ro=Vs(0);function Vo(t){const e=lo(t);return $o()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ro}function Bo(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=qo(t);let i=Vs(1);e&&(o?po(o)&&(i=Mo(o)):i=Mo(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==lo(n)||!l?Vs(0):Vo(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,v=r.height/i.y;if(a){const t=lo(a),e=o&&po(o)?lo(o):o;let s=t,r=Do(s);for(;r&&o&&e!==s;){const t=Mo(r),e=r.getBoundingClientRect(),o=Eo(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,v*=t.y,h+=a,p+=i,s=lo(r),r=Do(s)}}return so({width:g,height:v,x:h,y:p})}function jo(t,e){const s=Ao(t).scrollLeft;return e?e.left+s:Bo(co(t)).left+s}function Fo(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-jo(t,s),y:s.top+e.scrollTop}}const Io=/* @__PURE__ */new Set(["absolute","fixed"]);function Ho(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=lo(t),o=co(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=$o();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=jo(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=co(t),s=Ao(t),o=t.ownerDocument.body,r=qs(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=qs(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+jo(t);const d=-s.scrollTop;return"rtl"===Eo(o).direction&&(i+=qs(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(co(t));else if(po(e))o=function(t,e){const s=Bo(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=go(t)?Mo(t):Vs(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=Vo(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return so(o)}function No(t,e){const s=Oo(t);return!(s===e||!po(s)||Co(s))&&("fixed"===Eo(s).position||No(s,e))}function Uo(t,e,s){const o=go(e),r=co(e),a="fixed"===s,i=Bo(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Vs(0);function l(){n.x=jo(r)}if(o||!o&&!a)if(("body"!==no(e)||fo(r))&&(d=Ao(e)),o){const t=Bo(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Vs(0):Fo(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Wo(t){return"static"===Eo(t).position}function Ko(t,e){if(!go(t)||"fixed"===Eo(t).position)return null;if(e)return e(t);let s=t.offsetParent;return co(t)===s&&(s=s.ownerDocument.body),s}function Go(t,e){const s=lo(t);if(xo(t))return s;if(!go(t)){let e=Oo(t);for(;e&&!Co(e);){if(po(e)&&!Wo(e))return e;e=Oo(e)}return s}let o=Ko(t,e);for(;o&&mo(o)&&Wo(o);)o=Ko(o,e);return o&&Co(o)&&Wo(o)&&!zo(o)?s:o||function(t){let e=Oo(t);for(;go(e)&&!Co(e);){if(zo(e))return e;if(xo(e))return null;e=Oo(e)}return null}(t)||s}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=co(o),d=!!e&&xo(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Vs(1);const c=Vs(0),h=go(o);if((h||!h&&!a)&&(("body"!==no(o)||fo(i))&&(n=Ao(o)),go(o))){const t=Bo(o);l=Mo(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Vs(0):Fo(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:co,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?xo(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=Po(t,[],!1).filter(t=>po(t)&&"body"!==no(t)),r=null;const a="fixed"===Eo(t).position;let i=a?Oo(t):t;for(;po(i)&&!Co(i);){const e=Eo(i),s=zo(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&Io.has(r.position)||fo(i)&&!s&&No(t,i))?o=o.filter(t=>t!==i):r=e,i=Oo(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=a[0],d=a.reduce((t,s)=>{const o=Ho(e,s,r);return t.top=qs(o.top,t.top),t.right=Ts(o.right,t.right),t.bottom=Ts(o.bottom,t.bottom),t.left=qs(o.left,t.left),t},Ho(e,i,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:Go,getElementRects:async function(t){const e=this.getOffsetParent||Go,s=this.getDimensions,o=await s(t.floating);return{reference:Uo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=To(t);return{width:e,height:s}},getScale:Mo,isElement:po,isRTL:function(t){return"rtl"===Eo(t).direction}};function Xo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Zo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Hs(s),d=Ns(s),n="y"===Gs(s),l=ao.has(i)?-1:1,c=a&&n?-1:1,h=Is(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof v&&(g="end"===d?-1*v:v),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Qo=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Is(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=Gs(Hs(r)),g=Us(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Fs(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Fs(u+h["y"===p?"top":"left"],u,u-h[t])}const f=n.fn({...e,[g]:v,[p]:u});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},Jo=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...f}=Is(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Hs(r),m=Gs(d),_=Hs(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[eo(d)]:function(t){const e=eo(t);return[Xs(t),e,Xs(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Ns(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Qs:Zs:e?Zs:Qs;case"left":case"right":return e?Js:to;default:return[]}}(Hs(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Xs)))),a}(d,u,v,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Ns(t),r=Ys(t),a=Ws(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=eo(i)),[i,eo(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===Gs(e)||S.every(t=>Gs(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=Gs(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},tr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Is(t,e),c=await i.detectOverflow(e,l),h=Hs(r),p=Ns(r),g="y"===Gs(r),{width:v,height:u}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=u-c.top-c.bottom,_=v-c.left-c.right,x=Ts(u-c[f],m),y=Ts(v-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=qs(c.left,0),e=qs(c.right,0),s=qs(c.top,0),o=qs(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:qs(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:qs(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return v!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},er=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Is(t,e),c={x:s,y:o},h=Gs(r),p=Us(h);let g=c[p],v=c[h];const u=Is(d,e),f="number"==typeof u?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=ao.has(Hs(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);v<s?v=s:v>o&&(v=o)}return{[p]:g,[h]:v}}}},sr="data-placement",or="data-autoplacement",rr=/* @__PURE__ */new Map;function ar(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&nr(o,"--_ds-floating");if(!a)return;if("closed"===e)return rr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;let i=nr(o,"--_ds-floating-overscroll"),d=Ls(o,sr)||Ls(r,sr)||a,n=Ls(o,or)||Ls(r,or),l=parseFloat(getComputedStyle(o,"::before").height)||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Zo(l||0),Qo({padding:10,limiter:er({offset:{mainAxis:h}})}),lr(),..."false"===n?[]:[Jo({padding:10,crossAxis:!1})],...i?[tr({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.clientWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=qo(t),c=r||a?[...l?Po(l):[],...Po(e)]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=co(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const v={rootMargin:-Rs(h)+"px "+-Rs(r.clientWidth-(c+p))+"px "+-Rs(r.clientHeight-(h+g))+"px "+-Rs(c)+"px",threshold:qs(0,Ts(1,n))||1};let u=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!u)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Xo(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),v.observe(e));let u=n?Bo(t):null;return n&&function e(){const o=Bo(t);u&&!Xo(u,o)&&s(),u=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=v)||t.disconnect(),v=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return rr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Yo,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=a.filter(Boolean),n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=oo(l,o,n),p=o,g={},v=0;for(let f=0;f<d.length;f++){var u;const{name:s,fn:a}=d[f],{x:b,y:m,data:_,reset:x}=await a({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:{...i,detectOverflow:null!=(u=i.detectOverflow)?u:ro},elements:{reference:t,floating:e}});c=null!=b?b:c,h=null!=m?m:h,g={...g,[s]:{...g[s],..._}},x&&v<=50&&(v++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(l=!0===x.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:c,y:h}=oo(l,p,n))),f=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:g}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});rr.set(o,()=>rr.delete(o)&&g())}let ir;const dr=({type:t})=>{if("mousedown"===t&&(ir=!1),"scroll"===t&&!1===ir&&(ir=!0),"mouseup"===t&&ir)for(let[e]of rr)e.showPopover()};(t=>{typeof window<"u"&&typeof document<"u"&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,[Ps(document,"mousedown scroll mouseup",dr,!0),Ps(document,"toggle ds-toggle-source",ar,Os)]))})("popover");const nr=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),lr=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Ls(e,"data-floating",t.placement),t}});var cr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,pr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?hr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&cr(e,s,a),a};let gr=class extends ft{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return Q`<slot></slot>`}};gr.styles=[As],pr([S({type:String,reflect:!0})],gr.prototype,"placement",2),pr([S({type:String,reflect:!0})],gr.prototype,"autoPlacement",2),pr([S({type:String,reflect:!0})],gr.prototype,"overscroll",2),gr=pr([L("sds-popover")],gr);const vr=d`
1964
1964
  :host {
1965
1965
  --_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
1966
1966
  --_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
@@ -2167,15 +2167,15 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2167
2167
  <input
2168
2168
  id="control"
2169
2169
  type="radio"
2170
- name="${Lt(this.name)}"
2171
- value="${Lt(this.value)}"
2170
+ name="${Pt(this.name)}"
2171
+ value="${Pt(this.value)}"
2172
2172
  ?checked="${this.checked??!1}"
2173
2173
  .checked="${this.checked??!1}"
2174
2174
  ?disabled="${this.disabled??!1}"
2175
2175
  .disabled="${this.disabled??!1}"
2176
2176
  ?required="${this.required}"
2177
2177
  ?readonly="${this.readOnly}"
2178
- aria-describedby="${Lt(s)}"
2178
+ aria-describedby="${Pt(s)}"
2179
2179
  aria-invalid="${this.error?"true":"false"}"
2180
2180
  @change="${this._handleChange}"
2181
2181
  @focus="${this._handleFocus}"
@@ -2185,7 +2185,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2185
2185
  ${this.label?Q`<label class="sds-radio__label" for="control">${this.label}</label>`:tt}
2186
2186
  ${this.helpText?Q`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:tt}
2187
2187
  </div>
2188
- `}};mr.styles=[vr],br([S({type:Boolean,reflect:!0})],mr.prototype,"required",2),br([S({type:String,reflect:!0})],mr.prototype,"label",2),br([S({type:Boolean,reflect:!0,attribute:"hide-label"})],mr.prototype,"hideLabel",2),br([S({type:String})],mr.prototype,"value",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"checked",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"error",2),br([S({type:String,reflect:!0})],mr.prototype,"size",2),br([S({type:String,attribute:"help-text"})],mr.prototype,"helpText",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"disabled",1),br([S({type:Boolean,attribute:!1})],mr.prototype,"parentRequestDisabled",1),br([A("#control")],mr.prototype,"control",2),mr=br([P("sds-radio")],mr);const _r=d`
2188
+ `}};mr.styles=[vr],br([S({type:Boolean,reflect:!0})],mr.prototype,"required",2),br([S({type:String,reflect:!0})],mr.prototype,"label",2),br([S({type:Boolean,reflect:!0,attribute:"hide-label"})],mr.prototype,"hideLabel",2),br([S({type:String})],mr.prototype,"value",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"checked",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"error",2),br([S({type:String,reflect:!0})],mr.prototype,"size",2),br([S({type:String,attribute:"help-text"})],mr.prototype,"helpText",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"disabled",1),br([S({type:Boolean,attribute:!1})],mr.prototype,"parentRequestDisabled",1),br([A("#control")],mr.prototype,"control",2),mr=br([L("sds-radio")],mr);const _r=d`
2189
2189
  :host {
2190
2190
  --_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
2191
2191
  --_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
@@ -2284,7 +2284,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2284
2284
  --_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
2285
2285
  }
2286
2286
  `;var xr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,wr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?yr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&xr(e,s,a),a};const kr=["disabled","errorMessage","readOnly","required","size"];let zr=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...kr])}}_getChildRadios(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-RADIO"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildRadios();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"required":s.required=this.required;break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;kr.includes(o)&&this._updateChildProps([o])}render(){const t={"sds-radio-group":!0,"sds-radio-group--readonly":this.readOnly??!1,"sds-radio-group--disabled":this.disabled??!1},e={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2287
- <fieldset class="${Zt(t)}" aria-describedby="${Lt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2287
+ <fieldset class="${Zt(t)}" aria-describedby="${Pt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2288
2288
  ${this.legend?Q`<legend class="sds-radio-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:tt}${this.legend}</legend>`:tt}
2289
2289
  ${this.helpText?Q`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:tt}
2290
2290
  <div class="${Zt(e)}" @change=${this._handleRadioChange}>
@@ -2294,7 +2294,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2294
2294
  <p slot="message">${this.errorMessage}</p>
2295
2295
  </sds-alert>`:tt}
2296
2296
  </fieldset>
2297
- `}get value(){return{selectedValue:this._selectedValue}}};zr.styles=[_r],wr([S({type:String})],zr.prototype,"legend",2),wr([S({type:String,attribute:"help-text"})],zr.prototype,"helpText",2),wr([S({type:String,attribute:"error-message"})],zr.prototype,"errorMessage",2),wr([S({type:Boolean,attribute:"readonly",reflect:!0})],zr.prototype,"readOnly",2),wr([S({type:String})],zr.prototype,"direction",2),wr([S({type:Boolean,reflect:!0})],zr.prototype,"disabled",2),wr([S({type:Boolean,reflect:!0})],zr.prototype,"required",2),wr([S({type:String,reflect:!0})],zr.prototype,"size",2),wr([C()],zr.prototype,"_selectedValue",2),wr([A("slot")],zr.prototype,"_slotElement",2),zr=wr([P("sds-radio-group")],zr);const $r=d`
2297
+ `}get value(){return{selectedValue:this._selectedValue}}};zr.styles=[_r],wr([S({type:String})],zr.prototype,"legend",2),wr([S({type:String,attribute:"help-text"})],zr.prototype,"helpText",2),wr([S({type:String,attribute:"error-message"})],zr.prototype,"errorMessage",2),wr([S({type:Boolean,attribute:"readonly",reflect:!0})],zr.prototype,"readOnly",2),wr([S({type:String})],zr.prototype,"direction",2),wr([S({type:Boolean,reflect:!0})],zr.prototype,"disabled",2),wr([S({type:Boolean,reflect:!0})],zr.prototype,"required",2),wr([S({type:String,reflect:!0})],zr.prototype,"size",2),wr([C()],zr.prototype,"_selectedValue",2),wr([A("slot")],zr.prototype,"_slotElement",2),zr=wr([L("sds-radio-group")],zr);const $r=d`
2298
2298
  :host {
2299
2299
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
2300
2300
  --_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2470,7 +2470,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2470
2470
  --_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-lg));
2471
2471
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
2472
2472
  }
2473
- `;var Sr=Object.defineProperty,Cr=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Sr(e,s,a),a};const Er=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return Q`<hr />`;default:return tt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return Q` <option value=${Lt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return Q` <optgroup label=${Lt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2473
+ `;var Sr=Object.defineProperty,Cr=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Sr(e,s,a),a};const Er=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return Q`<hr />`;default:return tt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return Q` <option value=${Pt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return Q` <optgroup label=${Pt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2474
2474
  <div class="${Zt(t)}">
2475
2475
  ${this.label?Q` <label for="control" class="sds-select__label"> ${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:tt} ${this.label} </label> `:tt}
2476
2476
  ${this.helpText?Q`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:tt}
@@ -2482,12 +2482,12 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2482
2482
  <select
2483
2483
  id="control"
2484
2484
  class="sds-select__control"
2485
- name=${Lt(this.name)}
2485
+ name=${Pt(this.name)}
2486
2486
  ?disabled=${this.disabled}
2487
2487
  ?required=${this.required}
2488
- aria-readonly=${Lt(this.readOnly)}
2488
+ aria-readonly=${Pt(this.readOnly)}
2489
2489
  aria-invalid=${this.errorMessage?"true":"false"}
2490
- aria-describedby=${Lt(e)}
2490
+ aria-describedby=${Pt(e)}
2491
2491
  @keydown=${this._handleKeyDown}
2492
2492
  @change=${this._handleChange}
2493
2493
  @focus=${this._handleFocus}
@@ -2502,7 +2502,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2502
2502
  </sds-alert>
2503
2503
  `:tt}
2504
2504
  </div>
2505
- `}};Er.styles=[$r];let Ar=Er;Cr([S({type:String,reflect:!0})],Ar.prototype,"label"),Cr([S({type:String,attribute:!1})],Ar.prototype,"value"),Cr([S({type:String,attribute:"default-value"})],Ar.prototype,"defaultValue"),Cr([S({type:String,attribute:"help-text",reflect:!0})],Ar.prototype,"helpText"),Cr([S({type:String,attribute:"error-message",reflect:!0})],Ar.prototype,"errorMessage"),Cr([S({type:Boolean,reflect:!0})],Ar.prototype,"required"),Cr([S({type:String,reflect:!0})],Ar.prototype,"size"),Cr([A("#control")],Ar.prototype,"control");var Or=Object.getOwnPropertyDescriptor;let Pr=class extends Ar{};Pr=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Or(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-select")],Pr);const Lr=d`
2505
+ `}};Er.styles=[$r];let Ar=Er;Cr([S({type:String,reflect:!0})],Ar.prototype,"label"),Cr([S({type:String,attribute:!1})],Ar.prototype,"value"),Cr([S({type:String,attribute:"default-value"})],Ar.prototype,"defaultValue"),Cr([S({type:String,attribute:"help-text",reflect:!0})],Ar.prototype,"helpText"),Cr([S({type:String,attribute:"error-message",reflect:!0})],Ar.prototype,"errorMessage"),Cr([S({type:Boolean,reflect:!0})],Ar.prototype,"required"),Cr([S({type:String,reflect:!0})],Ar.prototype,"size"),Cr([A("#control")],Ar.prototype,"control");var Or=Object.getOwnPropertyDescriptor;let Lr=class extends Ar{};Lr=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Or(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-select")],Lr);const Pr=d`
2506
2506
  :host {
2507
2507
  display: flex;
2508
2508
  flex-direction: row;
@@ -2537,7 +2537,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2537
2537
 
2538
2538
  --sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
2539
2539
  }
2540
- `;var Dr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,qr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Tr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Dr(e,s,a),a};let Mr=class extends(St(ft)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return Q`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Mr.styles=[Lr],qr([S({type:String,reflect:!0})],Mr.prototype,"orientation",2),qr([O({selector:"sds-stepper-step",flatten:!0})],Mr.prototype,"steps",2),Mr=qr([P("sds-stepper")],Mr);const Rr=d`
2540
+ `;var Dr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,qr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Tr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Dr(e,s,a),a};let Mr=class extends(St(ft)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return Q`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Mr.styles=[Pr],qr([S({type:String,reflect:!0})],Mr.prototype,"orientation",2),qr([O({selector:"sds-stepper-step",flatten:!0})],Mr.prototype,"steps",2),Mr=qr([L("sds-stepper")],Mr);const Rr=d`
2541
2541
  :host {
2542
2542
  /* Sizing */
2543
2543
  --_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 28px);
@@ -2797,7 +2797,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2797
2797
  --_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
2798
2798
  --_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
2799
2799
  }
2800
- `;var Vr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,jr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Br(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Vr(e,s,a),a};let Ir=class extends(St(ft)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>Q`<div class="sds-stepper-step__step--static">
2800
+ `;var Vr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,jr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Br(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Vr(e,s,a),a};let Fr=class extends(St(ft)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>Q`<div class="sds-stepper-step__step--static">
2801
2801
  <span class="sds-stepper-step__counter"></span>
2802
2802
  <div class="sds-stepper-step__label"><slot></slot></div>
2803
2803
  </div>`,this._renderInteractiveStep=()=>Q`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
@@ -2811,7 +2811,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2811
2811
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
2812
2812
  ${this._renderNonInteractiveStep()}
2813
2813
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
2814
- </div>`}};Ir.styles=[Rr],Ir.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},jr([S({type:Boolean,reflect:!0})],Ir.prototype,"complete",2),jr([S({type:Boolean,reflect:!0})],Ir.prototype,"interactive",2),jr([S({type:Boolean,reflect:!0})],Ir.prototype,"active",2),Ir=jr([P("sds-stepper-step")],Ir);const Fr=d`
2814
+ </div>`}};Fr.styles=[Rr],Fr.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},jr([S({type:Boolean,reflect:!0})],Fr.prototype,"complete",2),jr([S({type:Boolean,reflect:!0})],Fr.prototype,"interactive",2),jr([S({type:Boolean,reflect:!0})],Fr.prototype,"active",2),Fr=jr([L("sds-stepper-step")],Fr);const Ir=d`
2815
2815
  :host {
2816
2816
  --_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2817
2817
  --_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2970,11 +2970,11 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2970
2970
  ?disabled="${this.disabled}"
2971
2971
  .checked="${this.checked}"
2972
2972
  ?checked="${this.checked}"
2973
- name="${Lt(this.name)}"
2973
+ name="${Pt(this.name)}"
2974
2974
  @change="${this._handleChange}"
2975
2975
  @focus="${this._handleFocus}"
2976
2976
  @blur="${this._handleBlur}"
2977
- />`,s=this.readOnly?Q`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:tt,o=Q`<label class="${Zt(t)}" for="control">${s}${this.label}</label>`;return Q`<div class="${Zt({"sds-switch":!0})}">${this.reverse?[o,e]:[e,o]}</div>`}};Wr.styles=[Fr],Ur([S({type:String,reflect:!0})],Wr.prototype,"label",2),Ur([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Wr.prototype,"hideLabel",2),Ur([S({type:Boolean,reflect:!0})],Wr.prototype,"reverse",2),Ur([S({type:Boolean,reflect:!0})],Wr.prototype,"checked",2),Ur([S({type:String,reflect:!0})],Wr.prototype,"size",2),Ur([A("#control")],Wr.prototype,"control",2),Wr=Ur([P("sds-switch")],Wr);const Kr=d`
2977
+ />`,s=this.readOnly?Q`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:tt,o=Q`<label class="${Zt(t)}" for="control">${s}${this.label}</label>`;return Q`<div class="${Zt({"sds-switch":!0})}">${this.reverse?[o,e]:[e,o]}</div>`}};Wr.styles=[Ir],Ur([S({type:String,reflect:!0})],Wr.prototype,"label",2),Ur([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Wr.prototype,"hideLabel",2),Ur([S({type:Boolean,reflect:!0})],Wr.prototype,"reverse",2),Ur([S({type:Boolean,reflect:!0})],Wr.prototype,"checked",2),Ur([S({type:String,reflect:!0})],Wr.prototype,"size",2),Ur([A("#control")],Wr.prototype,"control",2),Wr=Ur([L("sds-switch")],Wr);const Kr=d`
2978
2978
  :host {
2979
2979
  --_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
2980
2980
  --_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3037,7 +3037,90 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3037
3037
  }
3038
3038
  `;var Gr=Object.defineProperty,Yr=Object.getOwnPropertyDescriptor,Xr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Yr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Gr(e,s,a),a};let Zr=class extends ft{constructor(){super(...arguments),this.size="md"}render(){return Q`<span class="${Zt({"sds-tag":!0})}">
3039
3039
  <slot></slot>
3040
- </span>`}};Zr.styles=[Kr],Xr([S({type:String,reflect:!0})],Zr.prototype,"size",2),Zr=Xr([P("sds-tag")],Zr);const Qr=d`
3040
+ </span>`}};Zr.styles=[Kr],Xr([S({type:String,reflect:!0})],Zr.prototype,"size",2),Zr=Xr([L("sds-tag")],Zr);const Qr=d`
3041
+ ${i('[data-tooltip]{--ds-tooltip:"";--_ds-data-tooltip:var(--ds-tooltip)}:host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overflow:auto;overscroll-behavior:contain}:host{--_ds-floating:var(--dsc-tooltip-placement);--_ds-floating-arrow-size:var(--dsc-tooltip-arrow-size);--dsc-tooltip-background:var(--ds-color-neutral-text-default);--dsc-tooltip-color:var(--ds-color-neutral-background-default);--dsc-tooltip-border-radius:var(--ds-border-radius-default);--dsc-tooltip-padding:var(--ds-size-1) var(--ds-size-2);--dsc-tooltip-arrow-size:var(--ds-size-2);--dsc-tooltip-transition-duration:0.2s;--dsc-tooltip-transition-delay:150ms;--dsc-tooltip-placement:top;background:var(--dsc-tooltip-background);border:0;border-radius:var(--dsc-tooltip-border-radius);box-sizing:border-box;color:var(--dsc-tooltip-color);line-height:var(--ds-line-height-sm);padding:var(--dsc-tooltip-padding);view-transition-name:ds-tooltip;&[data-floating|=top]:before{rotate:45deg;top:100%}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{rotate:-135deg;top:0}&[data-floating|=left]:before{left:100%;rotate:-45deg}}:host:after{box-sizing:border-box;content:"";height:var(--_dsc-tooltip-safearea-height,0);left:var(--_ds-floating-arrow-x,50%);position:absolute;top:var(--_ds-floating-arrow-y,100%);translate:var(--_dsc-tooltip-safearea-translate);width:var(--_dsc-tooltip-safearea-width,0)}:host[data-floating=bottom]:after,:host[data-floating=top]:after{height:var(--dsc-tooltip-arrow-size);left:0;top:100%;width:100%}:host[data-floating=left]:after,:host[data-floating=right]:after{height:100%;left:100%;top:0;width:var(--dsc-tooltip-arrow-size)}:host[data-floating=bottom]:after{top:calc(var(--dsc-tooltip-arrow-size)*-1)}:host[data-floating=right]:after{left:calc(var(--dsc-tooltip-arrow-size)*-1)}:host:not([popover]){display:none}@media (forced-colors:active){:host{background:CanvasText}}')}
3042
+
3043
+ :host {
3044
+ --dsc-tooltip-background: var(--sds-tooltip-background, var(--sds-color-neutral-text-default));
3045
+ --dsc-tooltip-color: var(--sds-tooltip-text-color, var(--sds-color-neutral-background-default));
3046
+ --dsc-tooltip-border-radius: var(--sds-tooltip-border-radius, var(--sds-radius-sm));
3047
+ --dsc-tooltip-padding: var(--sds-tooltip-padding, var(--sds-spacing-4xs) var(--sds-spacing-3xs));
3048
+ --dsc-tooltip-arrow-size: var(--sds-tooltip-arrow-size, 8px);
3049
+
3050
+ --_sds-tooltip-max-width: var(--sds-tooltip-max-width, 30ch);
3051
+ --_sds-tooltip-font-size: var(--sds-tooltip-font-size, var(--sds-components-font-size-content-sm, 0.875rem));
3052
+ --_sds-tooltip-line-height: var(--sds-tooltip-line-height, var(--sds-components-line-height-squeezed-sm, 1.125rem));
3053
+
3054
+ slot {
3055
+ max-width: var(--_sds-tooltip-max-width);
3056
+ font-size: var(--_sds-tooltip-font-size);
3057
+ line-height: var(--_sds-tooltip-line-height);
3058
+ }
3059
+ }
3060
+
3061
+ /* Note: Designsystem's tooltip.css uses nested CSS selectors that do not work in the shadow DOM.
3062
+ These rules ensure that arrow positioning works for our tooltip.
3063
+ Do not remove unless the CSS selectors from Designsystem work out of the box. */
3064
+ :host([data-floating|='top'])::before {
3065
+ rotate: 45deg;
3066
+ top: 100%;
3067
+ }
3068
+ :host([data-floating|='right'])::before {
3069
+ left: 0;
3070
+ rotate: 135deg;
3071
+ }
3072
+ :host([data-floating|='bottom'])::before {
3073
+ rotate: -135deg;
3074
+ top: 0;
3075
+ }
3076
+ :host([data-floating|='left'])::before {
3077
+ left: 100%;
3078
+ rotate: -45deg;
3079
+ }
3080
+
3081
+ :host([data-floating='top'])::after,
3082
+ :host([data-floating='bottom'])::after {
3083
+ height: var(--dsc-tooltip-arrow-size);
3084
+ left: 0;
3085
+ width: 100%;
3086
+ }
3087
+ :host([data-floating='top'])::after {
3088
+ top: 100%;
3089
+ }
3090
+ :host([data-floating='bottom'])::after {
3091
+ top: calc(var(--dsc-tooltip-arrow-size) * -1);
3092
+ }
3093
+ :host([data-floating='left'])::after,
3094
+ :host([data-floating='right'])::after {
3095
+ height: 100%;
3096
+ top: 0;
3097
+ width: var(--dsc-tooltip-arrow-size);
3098
+ }
3099
+ :host([data-floating='right'])::after {
3100
+ left: calc(var(--dsc-tooltip-arrow-size) * -1);
3101
+ }
3102
+ :host([data-floating='left'])::after {
3103
+ left: 100%;
3104
+ }
3105
+
3106
+ @keyframes ds-fade-in {
3107
+ from {
3108
+ opacity: 0;
3109
+ }
3110
+ }
3111
+
3112
+ @media (prefers-reduced-motion: reduce) {
3113
+ :host {
3114
+ animation: none;
3115
+ }
3116
+ }
3117
+
3118
+ @media (forced-colors: active) {
3119
+ :host {
3120
+ border: 1px solid CanvasText;
3121
+ }
3122
+ }
3123
+ `;var Jr=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,ea=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ta(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Jr(e,s,a),a};let sa=class extends(St(ft)){constructor(){super(...arguments),this.placement="top",this.triggers=[],this.cleanups=[],this.onSelfMouseEnter=()=>{clearTimeout(this.hoverTimeout)},this.onSelfMouseLeave=()=>this.hide(),this.onKeyDown=t=>{"Escape"===t.key&&this.hide()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tooltip"),this.setAttribute("popover","manual"),this.setAttribute("aria-hidden","true"),this.dataset.placement=this.placement,this.bindTriggers(),requestAnimationFrame(()=>this.syncTriggerLabels())}updated(t){t.has("placement")&&(this.dataset.placement=this.placement)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.hoverTimeout),document.removeEventListener("keydown",this.onKeyDown);for(const t of this.cleanups)t();this.cleanups=[],this.triggers=[],this.activeTrigger=void 0}render(){return Q`<slot @slotchange=${this.syncTriggerLabels}></slot>`}syncTriggerLabels(){const t=this.textContent?.trim()??"";t&&this.triggers.map(e=>{const s=e.shadowRoot?.querySelector("button, a")??e;this.cleanups.push(()=>s.removeAttribute("aria-label")),s.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const e=t.getAttribute("aria-describedby");return e?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const e=()=>this.show(t),s=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",s),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",s),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r)})}this.addEventListener("mouseenter",this.onSelfMouseEnter),this.addEventListener("mouseleave",this.onSelfMouseLeave),this.cleanups.push(()=>{this.removeEventListener("mouseenter",this.onSelfMouseEnter),this.removeEventListener("mouseleave",this.onSelfMouseLeave)})}}show(t){clearTimeout(this.hoverTimeout),this.matches(":popover-open")||this.showPopover(),this.activeTrigger!==t&&(this.activeTrigger=t,this.dispatchSheriffEvent("toggle",t)),document.addEventListener("keydown",this.onKeyDown)}hide(){clearTimeout(this.hoverTimeout);try{this.hidePopover()}catch{}this.activeTrigger=void 0,document.removeEventListener("keydown",this.onKeyDown)}scheduleHide(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>this.hide(),200)}};sa.styles=[Qr],ea([S({type:String,reflect:!0})],sa.prototype,"placement",2),sa=ea([L("sds-tooltip")],sa);const oa=d`
3041
3124
  :host {
3042
3125
  --_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
3043
3126
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3451,7 +3534,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3451
3534
  --_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-leadtext-xl-strong-tall-desktop-line-height));
3452
3535
  }
3453
3536
  }
3454
- `;var Jr=Object.defineProperty,ta=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Jr(e,s,a),a};const ea=class extends ft{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return Q`<p><slot></slot></p>`}};ea.styles=[Qr];let sa=ea;ta([S({type:String,reflect:!0})],sa.prototype,"size"),ta([S({type:Boolean,reflect:!0})],sa.prototype,"strong"),ta([S({type:Boolean,reflect:!0})],sa.prototype,"tall");var oa=Object.getOwnPropertyDescriptor;let ra=class extends sa{};ra=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?oa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-text")],ra);const aa=d`
3537
+ `;var ra=Object.defineProperty,aa=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ra(e,s,a),a};const ia=class extends ft{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return Q`<p><slot></slot></p>`}};ia.styles=[oa];let da=ia;aa([S({type:String,reflect:!0})],da.prototype,"size"),aa([S({type:Boolean,reflect:!0})],da.prototype,"strong"),aa([S({type:Boolean,reflect:!0})],da.prototype,"tall");var na=Object.getOwnPropertyDescriptor;let la=class extends da{};la=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?na(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-text")],la);const ca=d`
3455
3538
  :host {
3456
3539
  --_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3457
3540
  --_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3622,7 +3705,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3622
3705
  --sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
3623
3706
  }
3624
3707
  }
3625
- `;var ia=Object.defineProperty,da=Object.getOwnPropertyDescriptor,na=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?da(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ia(e,s,a),a};let la=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){const t=this.form;t?.requestSubmit?t.requestSubmit():t?.submit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
3708
+ `;var ha=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ga=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?pa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ha(e,s,a),a};let va=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){const t=this.form;t?.requestSubmit?t.requestSubmit():t?.submit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
3626
3709
  <div class="${Zt(t)}">
3627
3710
  ${this.label?Q`<label for="sds-textfield" class="sds-textfield__label">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:tt}</sds-icon>${this.label}</label>`:tt}
3628
3711
  ${this.helpText?Q`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:tt}
@@ -3630,19 +3713,19 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3630
3713
  <input
3631
3714
  part="input"
3632
3715
  class="sds-textfield__input"
3633
- type="${Lt(this.type)}"
3716
+ type="${Pt(this.type)}"
3634
3717
  id="sds-textfield"
3635
3718
  ?disabled="${this.disabled}"
3636
3719
  ?readonly="${this.readOnly}"
3637
- placeholder="${Lt(this.placeholder)}"
3720
+ placeholder="${Pt(this.placeholder)}"
3638
3721
  .value="${this.value??""}"
3639
- name="${Lt(this.name)}"
3640
- autocomplete="${Lt(this.autocomplete)}"
3722
+ name="${Pt(this.name)}"
3723
+ autocomplete="${Pt(this.autocomplete)}"
3641
3724
  ?required="${this.required}"
3642
- pattern="${Lt(this.pattern)}"
3643
- minlength="${Lt(this.minlength)}"
3644
- maxlength="${Lt(this.maxlength)}"
3645
- aria-describedby="${Lt(e)}"
3725
+ pattern="${Pt(this.pattern)}"
3726
+ minlength="${Pt(this.minlength)}"
3727
+ maxlength="${Pt(this.maxlength)}"
3728
+ aria-describedby="${Pt(e)}"
3646
3729
  aria-invalid="${this.errorMessage?"true":"false"}"
3647
3730
  @input="${this._handleInputChange}"
3648
3731
  @change="${this._handleInputChange}"
@@ -3655,7 +3738,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3655
3738
  </div>
3656
3739
  ${this.errorMessage?Q`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt}
3657
3740
  </div>
3658
- `}};la.styles=[aa],na([S({type:String,reflect:!0})],la.prototype,"type",2),na([S({type:String})],la.prototype,"value",2),na([S({type:String,reflect:!0})],la.prototype,"label",2),na([S({type:String,reflect:!0})],la.prototype,"placeholder",2),na([S({type:String,attribute:"help-text",reflect:!0})],la.prototype,"helpText",2),na([S({type:String,attribute:"error-message",reflect:!0})],la.prototype,"errorMessage",2),na([S({type:String,reflect:!0})],la.prototype,"autocomplete",2),na([S({type:Boolean,reflect:!0})],la.prototype,"required",2),na([S({type:String,reflect:!0})],la.prototype,"pattern",2),na([S({type:Number,reflect:!0})],la.prototype,"minlength",2),na([S({type:Number,reflect:!0})],la.prototype,"maxlength",2),na([S({type:String,reflect:!0})],la.prototype,"size",2),na([C()],la.prototype,"hasIcon",2),na([A("#sds-textfield")],la.prototype,"control",2),la=na([P("sds-textfield")],la);const ca=d`
3741
+ `}};va.styles=[ca],ga([S({type:String,reflect:!0})],va.prototype,"type",2),ga([S({type:String})],va.prototype,"value",2),ga([S({type:String,reflect:!0})],va.prototype,"label",2),ga([S({type:String,reflect:!0})],va.prototype,"placeholder",2),ga([S({type:String,attribute:"help-text",reflect:!0})],va.prototype,"helpText",2),ga([S({type:String,attribute:"error-message",reflect:!0})],va.prototype,"errorMessage",2),ga([S({type:String,reflect:!0})],va.prototype,"autocomplete",2),ga([S({type:Boolean,reflect:!0})],va.prototype,"required",2),ga([S({type:String,reflect:!0})],va.prototype,"pattern",2),ga([S({type:Number,reflect:!0})],va.prototype,"minlength",2),ga([S({type:Number,reflect:!0})],va.prototype,"maxlength",2),ga([S({type:String,reflect:!0})],va.prototype,"size",2),ga([C()],va.prototype,"hasIcon",2),ga([A("#sds-textfield")],va.prototype,"control",2),va=ga([L("sds-textfield")],va);const ua=d`
3659
3742
  :host {
3660
3743
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3661
3744
  --_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3842,7 +3925,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3842
3925
  --_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
3843
3926
  --_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
3844
3927
  }
3845
- `;var ha=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ga=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?pa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ha(e,s,a),a};let va=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return tt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?Q`<sds-alert variant="secondary" data-palette="danger"
3928
+ `;var fa=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ma=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ba(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&fa(e,s,a),a};let _a=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return tt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?Q`<sds-alert variant="secondary" data-palette="danger"
3846
3929
  ><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
3847
3930
  >`:Q`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t=Boolean(this.errorMessage||this.hasTypedTooManyCharacters()),e={"sds-textarea":!0,"sds-textarea--error":t},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
3848
3931
  <div class="${Zt(e)}">
@@ -3856,17 +3939,17 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3856
3939
  id="sds-textarea"
3857
3940
  ?disabled="${this.disabled}"
3858
3941
  ?readonly="${this.readOnly}"
3859
- placeholder="${Lt(this.placeholder)}"
3942
+ placeholder="${Pt(this.placeholder)}"
3860
3943
  .value="${this.value??""}"
3861
3944
  .autocomplete="${this.autocomplete}"
3862
- name="${Lt(this.name)}"
3945
+ name="${Pt(this.name)}"
3863
3946
  ?required="${this.required}"
3864
- rows="${Lt(this.rows)}"
3865
- cols="${Lt(this.cols)}"
3866
- wrap="${Lt(this.wrap)}"
3867
- minlength="${Lt(this.minlength)}"
3868
- maxlength="${Lt(this.maxlength)}"
3869
- aria-describedby="${Lt(s)}"
3947
+ rows="${Pt(this.rows)}"
3948
+ cols="${Pt(this.cols)}"
3949
+ wrap="${Pt(this.wrap)}"
3950
+ minlength="${Pt(this.minlength)}"
3951
+ maxlength="${Pt(this.maxlength)}"
3952
+ aria-describedby="${Pt(s)}"
3870
3953
  aria-invalid="${t?"true":"false"}"
3871
3954
  @input="${this._handleInputChange}"
3872
3955
  @change="${this._handleInputChange}"
@@ -3877,4 +3960,4 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3877
3960
  </div>
3878
3961
  ${this.errorMessage?Q`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt} ${this.renderCharacterCounter()}
3879
3962
  </div>
3880
- `}};va.styles=[ca],ga([S({type:String})],va.prototype,"value",2),ga([S({type:String,reflect:!0})],va.prototype,"label",2),ga([S({type:String,reflect:!0})],va.prototype,"placeholder",2),ga([S({type:String,attribute:"help-text",reflect:!0})],va.prototype,"helpText",2),ga([S({type:String,attribute:"error-message",reflect:!0})],va.prototype,"errorMessage",2),ga([S({type:String,reflect:!0})],va.prototype,"autocomplete",2),ga([S({type:Boolean,reflect:!0})],va.prototype,"required",2),ga([S({type:Number,reflect:!0})],va.prototype,"rows",2),ga([S({type:Number,reflect:!0})],va.prototype,"cols",2),ga([S({type:String,reflect:!0})],va.prototype,"wrap",2),ga([S({type:Number,reflect:!0})],va.prototype,"minlength",2),ga([S({type:Number,reflect:!0})],va.prototype,"maxlength",2),ga([S({type:Number,reflect:!0})],va.prototype,"counter",2),ga([S({type:String,reflect:!0})],va.prototype,"size",2),ga([A("#sds-textarea")],va.prototype,"control",2),va=ga([P("sds-textarea")],va);export{ve as SDSAlert,pe as SDSButton,xe as SDSCard,$e as SDSCheckbox,Pe as SDSCheckboxGroup,Me as SDSChip,Ie as SDSDetails,We as SDSDetailsGroup,Je as SDSDialog,is as SDSHeading,Xt as SDSIcon,hs as SDSLoader,ms as SDSNotification,gr as SDSPopover,ks as SDSProcess,Es as SDSProcessStep,mr as SDSRadio,zr as SDSRadioGroup,Pr as SDSSelect,Mr as SDSStepper,Ir as SDSStepperStep,Wr as SDSSwitch,Zr as SDSTag,ra as SDSText,va as SDSTextArea,la as SDSTextField};
3963
+ `}};_a.styles=[ua],ma([S({type:String})],_a.prototype,"value",2),ma([S({type:String,reflect:!0})],_a.prototype,"label",2),ma([S({type:String,reflect:!0})],_a.prototype,"placeholder",2),ma([S({type:String,attribute:"help-text",reflect:!0})],_a.prototype,"helpText",2),ma([S({type:String,attribute:"error-message",reflect:!0})],_a.prototype,"errorMessage",2),ma([S({type:String,reflect:!0})],_a.prototype,"autocomplete",2),ma([S({type:Boolean,reflect:!0})],_a.prototype,"required",2),ma([S({type:Number,reflect:!0})],_a.prototype,"rows",2),ma([S({type:Number,reflect:!0})],_a.prototype,"cols",2),ma([S({type:String,reflect:!0})],_a.prototype,"wrap",2),ma([S({type:Number,reflect:!0})],_a.prototype,"minlength",2),ma([S({type:Number,reflect:!0})],_a.prototype,"maxlength",2),ma([S({type:Number,reflect:!0})],_a.prototype,"counter",2),ma([S({type:String,reflect:!0})],_a.prototype,"size",2),ma([A("#sds-textarea")],_a.prototype,"control",2),_a=ma([L("sds-textarea")],_a);export{ye as SDSAlert,_e as SDSButton,Ce as SDSCard,Pe as SDSCheckbox,Ve as SDSCheckboxGroup,He as SDSChip,Ge as SDSDetails,Je as SDSDetailsGroup,le as SDSDialog,is as SDSHeading,Xt as SDSIcon,hs as SDSLoader,ms as SDSNotification,gr as SDSPopover,ks as SDSProcess,Es as SDSProcessStep,mr as SDSRadio,zr as SDSRadioGroup,Lr as SDSSelect,Mr as SDSStepper,Fr as SDSStepperStep,Wr as SDSSwitch,Zr as SDSTag,la as SDSText,_a as SDSTextArea,va as SDSTextField,sa as SDSTooltip};