@politiet/sheriff-web-components 2.12.0 → 2.13.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 (57) hide show
  1. package/custom-elements.json +224 -8
  2. package/dist/frameworks/vue.d.ts +79 -30
  3. package/dist/frameworks/vue.d.ts.map +1 -1
  4. package/dist/mixins/sds-dialog-target-mixin.d.ts.map +1 -1
  5. package/dist/mixins/sds-dialog-target-mixin.js +10 -0
  6. package/dist/mixins/sds-dialog-target-mixin.js.map +1 -1
  7. package/dist/sds-alert/sds-alert.component.js +3 -3
  8. package/dist/sds-alert/sds-alert.component.js.map +1 -1
  9. package/dist/sds-alert/sds-alert.styles.d.ts.map +1 -1
  10. package/dist/sds-alert/sds-alert.styles.js +0 -6
  11. package/dist/sds-alert/sds-alert.styles.js.map +1 -1
  12. package/dist/sds-button/sds-button.component.d.ts +1 -0
  13. package/dist/sds-button/sds-button.component.d.ts.map +1 -1
  14. package/dist/sds-button/sds-button.component.js.map +1 -1
  15. package/dist/sds-button/sds-button.styles.d.ts.map +1 -1
  16. package/dist/sds-button/sds-button.styles.js +7 -2
  17. package/dist/sds-button/sds-button.styles.js.map +1 -1
  18. package/dist/sds-details/sds-details.styles.d.ts.map +1 -1
  19. package/dist/sds-details/sds-details.styles.js +4 -2
  20. package/dist/sds-details/sds-details.styles.js.map +1 -1
  21. package/dist/sds-dialog/sds-dialog.styles.d.ts.map +1 -1
  22. package/dist/sds-dialog/sds-dialog.styles.js +2 -0
  23. package/dist/sds-dialog/sds-dialog.styles.js.map +1 -1
  24. package/dist/sds-icon/sds-icon-loader.d.ts +1 -0
  25. package/dist/sds-icon/sds-icon-loader.d.ts.map +1 -1
  26. package/dist/sds-icon/sds-icon-loader.js +21 -14
  27. package/dist/sds-icon/sds-icon-loader.js.map +1 -1
  28. package/dist/sds-radio/sds-radio.d.ts +53 -1
  29. package/dist/sds-radio/sds-radio.d.ts.map +1 -1
  30. package/dist/sds-radio/sds-radio.js +218 -41
  31. package/dist/sds-radio/sds-radio.js.map +1 -1
  32. package/dist/sds-radio/sds-radio.styles.js +36 -36
  33. package/dist/sds-radio/sds-radio.styles.js.map +1 -1
  34. package/dist/sds-radio-group/sds-radio-group.d.ts +4 -2
  35. package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
  36. package/dist/sds-radio-group/sds-radio-group.js +10 -3
  37. package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
  38. package/dist/sds-text/sds-text.component.d.ts +2 -0
  39. package/dist/sds-text/sds-text.component.d.ts.map +1 -1
  40. package/dist/sds-text/sds-text.component.js +4 -0
  41. package/dist/sds-text/sds-text.component.js.map +1 -1
  42. package/dist/sds-text/sds-text.styles.d.ts.map +1 -1
  43. package/dist/sds-text/sds-text.styles.js +4 -0
  44. package/dist/sds-text/sds-text.styles.js.map +1 -1
  45. package/dist/sds-textarea/sds-textarea.styles.d.ts.map +1 -1
  46. package/dist/sds-textarea/sds-textarea.styles.js +2 -0
  47. package/dist/sds-textarea/sds-textarea.styles.js.map +1 -1
  48. package/dist/shared/assets/positioning.js +1 -1
  49. package/dist/sheriff-web-components.js +206 -194
  50. package/dist/skill/SKILL.md +127 -41
  51. package/dist/skill/references/components.md +247 -35
  52. package/dist/skill/references/react-wrappers.md +34 -9
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/dist/version.js.map +1 -1
  56. package/package.json +78 -36
  57. package/web-types.json +163 -45
@@ -1,4 +1,4 @@
1
- var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o)(t,"symbol"!=typeof s?s+"":s,o);const o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=/* @__PURE__ */Symbol(),i=/* @__PURE__ */new WeakMap;let d=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==a)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(r&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&i.set(e,t))}return t}toString(){return this.cssText}};const n=t=>new d("string"==typeof t?t:t+"",void 0,a),l=(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 d(s,t,a)},c=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return n(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:g,getOwnPropertyNames:v,getOwnPropertySymbols:u,getPrototypeOf:f}=Object,b=globalThis,m=b.trustedTypes,_=m?m.emptyScript:"",x=b.reactiveElementPolyfillSupport,y=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?_: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}},k=(t,e)=>!h(t,e),z={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),b.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let $=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=z){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&&p(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=g(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)??z}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...v(t),...u(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(c(t))}else void 0!==t&&e.push(c(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,e)=>{if(r)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=s.cssText,t.appendChild(e)}})(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:w).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:w;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??k)(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){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[y("elementProperties")]=/* @__PURE__ */new Map,$[y("finalized")]=/* @__PURE__ */new Map,x?.({ReactiveElement:$}),(b.reactiveElementVersions??=[]).push("2.1.2");const S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k},C=(t=S,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 E(t){return(e,s)=>"object"==typeof s?C(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 L(t){return E({...t,state:!0,attribute:!1})}const A=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function O(t,e){return(e,s,o)=>A(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function T(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return A(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 D=globalThis,M=t=>t,q=D.trustedTypes,R=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+B,j=`<${H}>`,N=document,F=()=>N.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,Y=/>/g,Z=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,J=/^(?:script|style|textarea|title)$/i,tt=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),et=tt(1),st=tt(2),ot=/* @__PURE__ */Symbol.for("lit-noChange"),rt=/* @__PURE__ */Symbol.for("lit-nothing"),at=/* @__PURE__ */new WeakMap,it=N.createTreeWalker(N,129);function dt(t,e){if(!U(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(e):e}let nt=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=K;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===K?"!--"===n[1]?i=G:void 0!==n[1]?i=Y:void 0!==n[2]?(J.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=Z):void 0!==n[3]&&(i=Z):i===Z?">"===n[0]?(i=r??K,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?Z:'"'===n[3]?Q:X):i===Q||i===X?i=Z:i===G||i===Y?i=K:(i=Z,r=void 0);const h=i===Z&&t[d+1].startsWith("/>")?" ":"";a+=i===K?e+j:l>=0?(o.push(s),e.slice(0,l)+V+e.slice(l)+B+h):e+B+(-2===l?d:h)}return[dt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),it.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=it.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(V)){const e=c[i++],s=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?gt:"?"===o[1]?vt:"@"===o[1]?ut:pt}),r.removeAttribute(t)}else t.startsWith(B)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=q?q.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],F()),it.nextNode(),n.push({type:2,index:++a});r.append(t[e],F())}}}else if(8===r.nodeType)if(r.data===H)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)n.push({type:7,index:a}),t+=B.length-1}a++}}static createElement(t,e){const s=N.createElement("template");return s.innerHTML=t,s}};function lt(t,e,s=t,o){if(e===ot)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=lt(t,r._$AS(t,e.values),r,o)),e}let ct=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??N).importNode(e,!0);it.currentNode=o;let r=it.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new ht(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new ft(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=it.nextNode(),a++)}return it.currentNode=N,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++}},ht=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=rt,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=lt(this,t,e),I(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>U(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!==rt&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.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=nt.createElement(dt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new ct(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new nt(t)),e}k(e){U(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=M(t).nextSibling;M(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=rt,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=rt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=lt(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==ot,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=lt(this,o[s+i],e,i),d===ot&&(d=this._$AH[i]),a||=!I(d)||d!==this._$AH[i],d===rt?t=rt:t!==rt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},gt=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}},vt=class extends pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},ut=class extends pt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??rt)===ot)return;const s=this._$AH,o=t===rt&&s!==rt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==rt&&(s===rt||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)}},ft=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){lt(this,t)}};const bt=D.litHtmlPolyfillSupport;bt?.(nt,ht),(D.litHtmlVersions??=[]).push("3.3.3");const mt=globalThis;let _t=class extends ${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 ht(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 ot}};_t._$litElement$=!0,_t.finalized=!0,mt.litElementHydrateSupport?.({LitElement:_t});const xt=mt.litElementPolyfillSupport;xt?.({LitElement:_t}),(mt.litElementVersions??=[]).push("4.2.2");class yt extends _t{constructor(){super(...arguments),this.sheriffVersion="2.12.0"}}const wt=/* @__PURE__ */Symbol.for(""),kt=t=>{if(t?.r===wt)return t?._$litStatic$},zt=t=>({_$litStatic$:t,r:wt}),$t=(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:wt}),St=/* @__PURE__ */new Map,Ct=(Et=et,(t,...e)=>{const s=e.length;let o,r;const a=[],i=[];let d,n=0,l=!1;for(;n<s;){for(d=t[n];n<s&&void 0!==(r=e[n],o=kt(r));)d+=o+t[++n],l=!0;n!==s&&i.push(r),a.push(d),n++}if(n===s&&a.push(t[s]),l){const s=a.join("$$lit$$");void 0===(t=St.get(s))&&(a.raw=a,St.set(s,t=a)),e=i}return Et(t,...e)});var Et;const Lt=l`
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:"",_=u.reactiveElementPolyfillSupport,m=(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(m("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(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("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[m("elementProperties")]=/* @__PURE__ */new Map,k[m("finalized")]=/* @__PURE__ */new Map,_?.({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 L(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 O(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$",V=`lit$${Math.random().toFixed(9).slice(2)}$`,B="?"+V,R=`<${B}>`,j=document,I=()=>j.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,F="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,K=/>/g,W=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,X=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),J=X(1),tt=X(2),et=/* @__PURE__ */Symbol.for("lit-noChange"),st=/* @__PURE__ */Symbol.for("lit-nothing"),ot=/* @__PURE__ */new WeakMap,rt=j.createTreeWalker(j,129);function at(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==q?q.createHTML(e):e}class it{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let r=0,a=0;const i=t.length-1,d=this.parts,[n,l]=((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=G:void 0!==n[1]?i=K:void 0!==n[2]?(Q.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=W):void 0!==n[3]&&(i=W):i===W?">"===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]?W:'"'===n[3]?Y:Z):i===Y||i===Z?i=W:i===G||i===K?i=U:(i=W,r=void 0);const h=i===W&&t[d+1].startsWith("/>")?" ":"";a+=i===U?e+R:l>=0?(o.push(s),e.slice(0,l)+M+e.slice(l)+V+h):e+V+(-2===l?d:h)}return[at(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(t,e);if(this.el=it.createElement(n,s),rt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=rt.nextNode())&&d.length<i;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(M)){const e=l[a++],s=o.getAttribute(t).split(V),i=/([.?@])?(.*)/.exec(e);d.push({type:1,index:r,name:i[2],strings:s,ctor:"."===i[1]?ht:"?"===i[1]?pt:"@"===i[1]?gt:ct}),o.removeAttribute(t)}else t.startsWith(V)&&(d.push({type:6,index:r}),o.removeAttribute(t));if(Q.test(o.tagName)){const t=o.textContent.split(V),e=t.length-1;if(e>0){o.textContent=T?T.emptyScript:"";for(let s=0;s<e;s++)o.append(t[s],I()),rt.nextNode(),d.push({type:2,index:++r});o.append(t[e],I())}}}else if(8===o.nodeType)if(o.data===B)d.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(V,t+1));)d.push({type:7,index:r}),t+=V.length-1}r++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}}function dt(t,e,s=t,o){if(e===et)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=N(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=dt(t,r._$AS(t,e.values),r,o)),e}class nt{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);rt.currentNode=o;let r=rt.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new lt(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new vt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=rt.nextNode(),a++)}return rt.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++}}class lt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=st,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=dt(this,t,e),N(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==et&&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!==st&&N(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=it.createElement(at(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new nt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=ot.get(t.strings);return void 0===e&&ot.set(t.strings,e=new it(t)),e}k(t){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const r of t)o===e.length?e.push(s=new lt(this.O(I()),this.O(I()),this,this.options)):s=e[o],s._$AI(r),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$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))}}class ct{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=st,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=st}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=dt(this,t,e,0),a=!N(t)||t!==this._$AH&&t!==et,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=dt(this,o[s+i],e,i),d===et&&(d=this._$AH[i]),a||=!N(d)||d!==this._$AH[i],d===st?t=st:t!==st&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ht extends ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===st?void 0:t}}class pt extends ct{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}}class gt extends ct{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??st)===et)return;const s=this._$AH,o=t===st&&s!==st||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==st&&(s===st||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)}}class vt{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){dt(this,t)}}const ut=P.litHtmlPolyfillSupport;ut?.(it,lt),(P.litHtmlVersions??=[]).push("3.3.3");const ft=globalThis;let bt=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 lt(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 et}};bt._$litElement$=!0,bt.finalized=!0,ft.litElementHydrateSupport?.({LitElement:bt});const _t=ft.litElementPolyfillSupport;_t?.({LitElement:bt}),(ft.litElementVersions??=[]).push("4.2.2");class mt extends bt{constructor(){super(...arguments),this.sheriffVersion="2.13.1"}}const xt=/* @__PURE__ */Symbol.for(""),yt=t=>{if(t?.r===xt)return t?._$litStatic$},wt=t=>({_$litStatic$:t,r:xt}),kt=(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:xt}),zt=/* @__PURE__ */new Map,$t=(St=J,(t,...e)=>{const s=e.length;let o,r;const a=[],i=[];let d,n=0,l=!1;for(;n<s;){for(d=t[n];n<s&&void 0!==(r=e[n],o=yt(r));)d+=o+t[++n],l=!0;n!==s&&i.push(r),a.push(d),n++}if(n===s&&a.push(t[s]),l){const s=a.join("$$lit$$");void 0===(t=zt.get(s))&&(a.raw=a,zt.set(s,t=a)),e=i}return St(t,...e)});var St;const Ct=d`
2
2
  :host {
3
3
  --_sds-alert-background-color: var(--sds-alert-background-color, var(--sds-color-alert-info-surface-tinted));
4
4
 
@@ -89,12 +89,6 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
89
89
  --sds-button-text-color: var(--_sds-alert-text-color);
90
90
  }
91
91
 
92
- .sds-alert__icon {
93
- display: block;
94
- position: relative;
95
- z-index: 1;
96
- }
97
-
98
92
  :host([variant='secondary']) {
99
93
  --_sds-alert-background-color: var(--sds-alert-background-color, transparent);
100
94
  --_sds-alert-border-color: var(--sds-alert-border-color, transparent);
@@ -180,7 +174,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
180
174
  margin: 0 !important;
181
175
  max-width: var(--_sds-alert-max-line-width) !important;
182
176
  }
183
- `,At=/* @__PURE__ */new Set(["focus","blur","focusin","focusout","input","change","play","pause","ended","volumechange","timeupdate","durationchange","loadeddata","loadedmetadata","loadstart","canplay","canplaythrough","playing","seeked","stalled","suspend","waiting","ratechange","close","load","unload","abort","error","resize","scroll","keyup","select"]);function Ot(t){return class extends t{dispatchSheriffEvent(t,e,s=!At.has(t)){return this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0,cancelable:s}))}dispatchKeyboardEvent(t,e){return this.dispatchEvent(new KeyboardEvent(t,{key:e.key,code:e.code,bubbles:!0,composed:!0,cancelable:!At.has(t),ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,repeat:e.repeat,isComposing:e.isComposing,location:e.location}))}}}var Tt=Object.defineProperty,Pt=(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&&Tt(e,s,a),a};const Dt={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},Mt=class extends(Ot(yt)){constructor(){super(...arguments),this.variant="primary",this.size="md",this.palette="info",this.iconTag=$t`sds-icon`,this.buttonTag=$t`sds-button`,this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},this._renderIcon=(t,e,s)=>Ct`<${this.iconTag} ${s?`class=${s}`:""} name="${t}" size=${e}></${this.iconTag}>`,this._renderRemoveButton=t=>Ct`<${this.buttonTag}
177
+ `,Et=/* @__PURE__ */new Set(["focus","blur","focusin","focusout","input","change","play","pause","ended","volumechange","timeupdate","durationchange","loadeddata","loadedmetadata","loadstart","canplay","canplaythrough","playing","seeked","stalled","suspend","waiting","ratechange","close","load","unload","abort","error","resize","scroll","keyup","select"]);function At(t){return class extends t{dispatchSheriffEvent(t,e,s=!Et.has(t)){return this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0,cancelable:s}))}dispatchKeyboardEvent(t,e){return this.dispatchEvent(new KeyboardEvent(t,{key:e.key,code:e.code,bubbles:!0,composed:!0,cancelable:!Et.has(t),ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,repeat:e.repeat,isComposing:e.isComposing,location:e.location}))}}}var Lt=Object.defineProperty,Ot=(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&&Lt(e,s,a),a};const Pt={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},Dt=class extends(At(mt)){constructor(){super(...arguments),this.variant="primary",this.size="md",this.palette="info",this.iconTag=kt`sds-icon`,this.buttonTag=kt`sds-button`,this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},this._renderIcon=(t,e)=>$t`<${this.iconTag} name="${t}" size=${e}></${this.iconTag}>`,this._renderRemoveButton=t=>$t`<${this.buttonTag}
184
178
  class="sds-alert__remove-btn"
185
179
  variant="tertiary"
186
180
  size="sm"
@@ -189,14 +183,14 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
189
183
  @click=${this._remove}
190
184
  >
191
185
  ${this._renderIcon("close-material-outlined","sm")}
192
- </${this.buttonTag}>`}render(){const t="primary"===this.variant?"md":this.size??"md",e=Dt[this.palette]??Dt.info;return et`<div class="sds-alert">
193
- <div class="sds-alert__type">${this._renderIcon(e,t,"sds-alert__icon")}</div>
186
+ </${this.buttonTag}>`}render(){const t="primary"===this.variant?"md":this.size??"md",e=Pt[this.palette]??Pt.info;return J`<div class="sds-alert">
187
+ <div class="sds-alert__type">${this._renderIcon(e,t)}</div>
194
188
  <div class="sds-alert__content">
195
189
  <slot name="title"></slot>
196
190
  <slot name="message"></slot>
197
191
  </div>
198
- ${this.removableLabel&&"primary"===this.variant?et`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:rt}
199
- </div>`}};Mt.styles=[Lt];let qt=Mt;Pt([E({type:String,reflect:!0})],qt.prototype,"variant"),Pt([E({type:String,reflect:!0})],qt.prototype,"size"),Pt([E({type:String,attribute:"removable-label",reflect:!0})],qt.prototype,"removableLabel"),Pt([E({type:String,attribute:"data-palette",reflect:!0})],qt.prototype,"palette");const Rt=t=>t??rt,Vt=1,Bt=2,Ht=t=>(...e)=>({_$litDirective$:t,values:e});let jt=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)}},Nt=class extends jt{constructor(t){if(super(t),this.it=rt,t.type!==Bt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this._t=void 0,this.it=t;if(t===ot)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:[]}}};Nt.directiveName="unsafeHTML",Nt.resultType=1;let Ft=class extends Nt{};Ft.directiveName="unsafeSVG",Ft.resultType=2;const It=Ht(Ft),Ut=["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"],Wt={"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>'},Kt=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Gt=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 Yt=l`
192
+ ${this.removableLabel&&"primary"===this.variant?J`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:st}
193
+ </div>`}};Dt.styles=[Ct];let Tt=Dt;Ot([S({type:String,reflect:!0})],Tt.prototype,"variant"),Ot([S({type:String,reflect:!0})],Tt.prototype,"size"),Ot([S({type:String,attribute:"removable-label",reflect:!0})],Tt.prototype,"removableLabel"),Ot([S({type:String,attribute:"data-palette",reflect:!0})],Tt.prototype,"palette");const qt=t=>t??st,Mt=1,Vt=2,Bt=t=>(...e)=>({_$litDirective$:t,values:e});class Rt{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)}}let jt=class extends Rt{constructor(t){if(super(t),this.it=st,t.type!==Vt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this._t=void 0,this.it=t;if(t===et)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:[]}}};jt.directiveName="unsafeHTML",jt.resultType=1;let It=class extends jt{};It.directiveName="unsafeSVG",It.resultType=2;const Nt=Bt(It),Ht=["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>'},Ut=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t),Gt=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 Kt=d`
200
194
  :host {
201
195
  --_sds-icon-size: var(--sds-icon-size, var(--sds-components-icon-md));
202
196
  --_sds-icon-color: var(--sds-icon-color, var(--sds-color-text-subtle, var(--sds-color-neutral-text-subtle)));
@@ -229,11 +223,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
229
223
  height: 100%;
230
224
  overflow: hidden;
231
225
  }
232
- `;var Zt=Object.defineProperty,Xt=(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&&Zt(e,s,a),a};const Qt=((t=class extends yt{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 et`
233
- <div class="sds-icon" role="${Rt(this.label?"img":void 0)}" style="${Rt(this.color?`color:${this.color}`:void 0)}" aria-label="${Rt(this.label)}">
234
- ${this.name?et`<slot aria-hidden="true">${It(this.svg)}</slot>`:et`<slot aria-hidden="true"></slot>`}
226
+ `;var Wt=Object.defineProperty,Zt=(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&&Wt(e,s,a),a};const Yt=((t=class extends mt{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 J`
227
+ <div class="sds-icon" role="${qt(this.label?"img":void 0)}" style="${qt(this.color?`color:${this.color}`:void 0)}" aria-label="${qt(this.label)}">
228
+ ${this.name?J`<slot aria-hidden="true">${Nt(this.svg)}</slot>`:J`<slot aria-hidden="true"></slot>`}
235
229
  </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=[Yt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?Kt:Gt}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Kt:Gt}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>Ut.includes(t))(t))return void e(Wt[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);Xt([E({type:String,reflect:!0})],Qt.prototype,"name"),Xt([E({type:String,reflect:!0})],Qt.prototype,"size"),Xt([E({type:String,reflect:!0})],Qt.prototype,"color"),Xt([E({type:String,reflect:!0})],Qt.prototype,"label"),Xt([L()],Qt.prototype,"svg");let Jt=Qt;var te=Object.getOwnPropertyDescriptor;let ee=class extends Jt{};ee=((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=r(a)||a);return a})([P("sds-icon")],ee);const se=Ht(class extends jt{constructor(t){if(super(t),t.type!==Vt||"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 ot}}),oe=l`
230
+ `}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=[Kt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this.pending=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?Ut:Gt}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Ut:Gt}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>Ht.includes(t))(t))return void e(Ft[t]);const s=this.cache.get(t);if("string"==typeof s)e(s);else{const s=this.pending.get(t);if(s)return void s.then(e);const o=this.resolver(t).then(e=>(this.cache.set(t,e),e)).catch(()=>"").finally(()=>{this.pending.delete(t)});this.pending.set(t,o),o.then(e)}}clear(){this.cache.clear(),this.pending.clear()}get currentLoader(){return this.resolver}},t);Zt([S({type:String,reflect:!0})],Yt.prototype,"name"),Zt([S({type:String,reflect:!0})],Yt.prototype,"size"),Zt([S({type:String,reflect:!0})],Yt.prototype,"color"),Zt([S({type:String,reflect:!0})],Yt.prototype,"label"),Zt([C()],Yt.prototype,"svg");let Qt=Yt;var Xt=Object.getOwnPropertyDescriptor;let Jt=class extends Qt{};Jt=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Xt(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-icon")],Jt);const te=Bt(class extends Rt{constructor(t){if(super(t),t.type!==Mt||"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 et}}),ee=d`
237
231
  :host {
238
232
  --_sds-button-background-color: var(--sds-button-background-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
239
233
  --_sds-button-border-color: var(--sds-button-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -383,7 +377,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
383
377
  --_sds-button-min-height: var(--sds-button-height, var(--sds-components-button-md));
384
378
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-md));
385
379
 
386
- &:host([variant='tertiary']) {
380
+ &:host([variant='tertiary']:not([inverted])) {
387
381
  --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
388
382
  }
389
383
  }
@@ -393,7 +387,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
393
387
  --_sds-button-min-height: var(--sds-button-height, var(--sds-components-button-sm));
394
388
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-sm));
395
389
 
396
- &:host([variant='tertiary']) {
390
+ &:host([variant='tertiary']:not([inverted])) {
397
391
  --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
398
392
  }
399
393
  }
@@ -461,10 +455,15 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
461
455
  :host([inverted][variant='tertiary']) {
462
456
  --_sds-button-background-color: var(--sds-button-background-color, transparent);
463
457
  --_sds-button-border-color: var(--sds-button-border-color, transparent);
458
+ --_sds-button-padding-inline: var(--sds-button-padding-inline, var(--sds-spacing-xs));
464
459
  --_sds-button-text-color: var(--sds-button-text-color, var(--sds-color-action-contrast-default, var(--sds-color-accent-action-contrast-default)));
465
460
  --sds-typography-link-text-decoration: none;
466
461
  --sds-loader-main-color: var(--sds-color-accent-action-contrast-default);
467
462
 
463
+ &:host([icon]) {
464
+ --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
465
+ }
466
+
468
467
  .sds-button:hover {
469
468
  --_sds-button-background-color: var(--sds-button-background-color, var(--sds-color-action-contrast-default, var(--sds-color-accent-action-contrast-default)));
470
469
  --_sds-button-border-color: var(--sds-button-border-color, var(--sds-color-action-contrast-default, var(--sds-color-accent-action-contrast-default)));
@@ -485,27 +484,27 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
485
484
  --_sds-button-text-color: var(--sds-button-text-color, var(--sds-color-action-contrast-default, var(--sds-color-neutral-action-contrast-default)));
486
485
  }
487
486
  }
488
- `;function re(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 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};function de(t){const e=class extends t{constructor(...t){super(...t),this.disabled=!1,this.readOnly=!1,this.internals=this.attachInternals()}get readonly(){return this.readOnly}set readonly(t){this.readOnly=t??!1}get form(){return this.internals.form}formDisabledCallback(t){this.disabled=t}firstUpdated(t){super.firstUpdated(t),this.updateValidity()}updateValidity(){}};e.formAssociated=!0,e.shadowRootOptions={..._t.shadowRootOptions,delegatesFocus:!0};let s=e;return ie([E({type:String,reflect:!0})],s.prototype,"name"),ie([E({type:Boolean,reflect:!0})],s.prototype,"disabled"),ie([E({type:Boolean,attribute:"readonly",reflect:!0})],s.prototype,"readOnly"),s}var ne=Object.defineProperty,le=(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&&ne(e,s,a),a};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};const ve=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);var a;null!=(a=r)&&"showModal"in a&&"requestClose"in a&&"close"in a&&"open"in a?(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 le([E({type:String,attribute:"command",reflect:!0})],e.prototype,"command"),le([E({type:String,attribute:"commandfor",reflect:!0})],e.prototype,"commandFor"),le([E({type:String,attribute:"data-command"})],e.prototype,"dataCommand"),le([E({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 he([E({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),he([E({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(re(Ot(yt))))){constructor(){super(),this.disabled=!1,this.icon=!1,this.inverted=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this.label=void 0,this._handleClick=t=>{this.popoverTarget?this._handlePopoverClick(t):(t.preventDefault(),t.stopImmediatePropagation(),this.disabled||(this.effectiveCommandFor&&this.effectiveCommand?this._handleDialogCommandClick():"submit"===this.type?this._handleSubmitClick():"reset"===this.type?this._handleResetClick():this.dispatchSheriffEvent("click")))},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}_resolveForm(){if(this.form){return this.getRootNode().querySelector(`form#${this.form}`)}return this.internals.form}_handlePopoverClick(t){t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("click")}_handleDialogCommandClick(){this.runDialogCommand(),this.dispatchSheriffEvent("click")}_handleSubmitClick(){this.dispatchSheriffEvent("submit")&&this._resolveForm()?.requestSubmit()}_handleResetClick(){this.dispatchSheriffEvent("reset")&&this._resolveForm()?.reset()}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?et` <a id="link" class="${se(t)}" href="${this.href}" target="${Rt(this.target)}">
487
+ `;function se(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 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};function ae(t){const e=class extends t{constructor(...t){super(...t),this.disabled=!1,this.readOnly=!1,this.internals=this.attachInternals()}get readonly(){return this.readOnly}set readonly(t){this.readOnly=t??!1}get form(){return this.internals.form}formDisabledCallback(t){this.disabled=t}firstUpdated(t){super.firstUpdated(t),this.updateValidity()}updateValidity(){}};e.formAssociated=!0,e.shadowRootOptions={...bt.shadowRootOptions,delegatesFocus:!0};let s=e;return re([S({type:String,reflect:!0})],s.prototype,"name"),re([S({type:Boolean,reflect:!0})],s.prototype,"disabled"),re([S({type:Boolean,attribute:"readonly",reflect:!0})],s.prototype,"readOnly"),s}var ie=Object.defineProperty,de=(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&&ie(e,s,a),a};var ne=Object.defineProperty,le=(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&&ne(e,s,a),a};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};const pe=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()}connectedCallback(){super.connectedCallback(),this.hasUpdated&&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);var a;null!=(a=r)&&"showModal"in a&&"requestClose"in a&&"close"in a&&"open"in a?(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?.isConnected||this._updateCommandTarget(),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 de([S({type:String,attribute:"command",reflect:!0})],e.prototype,"command"),de([S({type:String,attribute:"commandfor",reflect:!0})],e.prototype,"commandFor"),de([S({type:String,attribute:"data-command"})],e.prototype,"dataCommand"),de([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 le([S({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),le([S({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(se(At(mt))))){constructor(){super(),this.disabled=!1,this.icon=!1,this.inverted=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this.label=void 0,this._handleClick=t=>{this.popoverTarget?this._handlePopoverClick(t):(t.preventDefault(),t.stopImmediatePropagation(),this.disabled||(this.effectiveCommandFor&&this.effectiveCommand?this._handleDialogCommandClick():"submit"===this.type?this._handleSubmitClick():"reset"===this.type?this._handleResetClick():this.dispatchSheriffEvent("click")))},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}_resolveForm(){if(this.form){return this.getRootNode().querySelector(`form#${this.form}`)}return this.internals.form}_handlePopoverClick(t){t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("click")}_handleDialogCommandClick(){this.runDialogCommand(),this.dispatchSheriffEvent("click")}_handleSubmitClick(){this.dispatchSheriffEvent("submit")&&this._resolveForm()?.requestSubmit()}_handleResetClick(){this.dispatchSheriffEvent("reset")&&this._resolveForm()?.reset()}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?J` <a id="link" class="${te(t)}" href="${this.href}" target="${qt(this.target)}">
489
488
  <slot name="before"></slot>
490
489
  <slot></slot>
491
490
  <slot name="after"></slot>
492
- </a>`:et`
491
+ </a>`:J`
493
492
  <button
494
493
  id="control"
495
- form="${Rt(this.form)}"
496
- class="${se(t)}"
494
+ form="${qt(this.form)}"
495
+ class="${te(t)}"
497
496
  type="${this.type}"
498
- name="${Rt(this.name)}"
499
- value="${Rt(this.value)}"
497
+ name="${qt(this.name)}"
498
+ value="${qt(this.value)}"
500
499
  ?disabled="${this.disabled}"
501
500
  @click="${this._handleClick}"
502
- aria-label="${Rt(this.label)}"
501
+ aria-label="${qt(this.label)}"
503
502
  >
504
- ${this.loading?et`<sds-loader slot="before" ?contrast="${this.inverted||"primary"!==this.variant}"></sds-loader>`:rt} ${this.loading?rt:et`<slot name="before"></slot>`}
503
+ ${this.loading?J`<sds-loader slot="before" ?contrast="${this.inverted||"primary"!==this.variant}"></sds-loader>`:st} ${this.loading?st:J`<slot name="before"></slot>`}
505
504
  <slot></slot>
506
- ${this.loading?rt:et`<slot name="after"></slot>`}
505
+ ${this.loading?st:J`<slot name="after"></slot>`}
507
506
  </button>
508
- `}};ve.styles=[oe],ve.formAssociated=!0,ve.shadowRootOptions={...yt.shadowRootOptions,delegatesFocus:!0};let ue=ve;ge([E({type:Boolean,reflect:!0})],ue.prototype,"disabled"),ge([E({type:Boolean,reflect:!0})],ue.prototype,"icon"),ge([E({type:Boolean,reflect:!0})],ue.prototype,"inverted"),ge([E({type:Boolean,reflect:!0})],ue.prototype,"loading"),ge([E({type:String,reflect:!0})],ue.prototype,"form"),ge([E({type:String,reflect:!0})],ue.prototype,"href"),ge([E({type:String,reflect:!0})],ue.prototype,"name"),ge([E({type:String,reflect:!0})],ue.prototype,"size"),ge([E({type:String,reflect:!0})],ue.prototype,"target"),ge([E({type:String,reflect:!0})],ue.prototype,"type"),ge([E({type:String,reflect:!0})],ue.prototype,"value"),ge([E({type:String,reflect:!0})],ue.prototype,"variant"),ge([E({type:String,reflect:!0})],ue.prototype,"label"),ge([O("#control")],ue.prototype,"control");var fe=Object.getOwnPropertyDescriptor;let be=class extends ue{};be=((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=r(a)||a);return a})([P("sds-button")],be);var me=Object.getOwnPropertyDescriptor;let _e=class extends qt{};function xe(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)}_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})([P("sds-alert")],_e);const ye=l`
507
+ `}};pe.styles=[ee],pe.formAssociated=!0,pe.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0};let ge=pe;he([S({type:Boolean,reflect:!0})],ge.prototype,"disabled"),he([S({type:Boolean,reflect:!0})],ge.prototype,"icon"),he([S({type:Boolean,reflect:!0})],ge.prototype,"inverted"),he([S({type:Boolean,reflect:!0})],ge.prototype,"loading"),he([S({type:String,reflect:!0})],ge.prototype,"form"),he([S({type:String,reflect:!0})],ge.prototype,"href"),he([S({type:String,reflect:!0})],ge.prototype,"name"),he([S({type:String,reflect:!0})],ge.prototype,"size"),he([S({type:String,reflect:!0})],ge.prototype,"target"),he([S({type:String,reflect:!0})],ge.prototype,"type"),he([S({type:String,reflect:!0})],ge.prototype,"value"),he([S({type:String,reflect:!0})],ge.prototype,"variant"),he([S({type:String,reflect:!0})],ge.prototype,"label"),he([A("#control")],ge.prototype,"control");var ve=Object.getOwnPropertyDescriptor;let ue=class extends ge{};ue=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ve(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-button")],ue);var fe=Object.getOwnPropertyDescriptor;let be=class extends Tt{};function _e(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)}be=((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=r(a)||a);return a})([O("sds-alert")],be);const me=d`
509
508
  :host {
510
509
  --_sds-card-background-color: var(--sds-card-background-color, var(--sds-color-surface-tinted, var(--sds-color-main-surface-tinted)));
511
510
  --_sds-card-border-radius: var(--sds-card-border-radius, var(--sds-radius-md));
@@ -640,11 +639,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
640
639
  --_sds-card-text-line-height: var(--sds-card-text-line-height, var(--sds-typography-body-md-desktop-line-height));
641
640
  }
642
641
  }
643
- `;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 yt{constructor(){super(...arguments),this._textSlotEmpty=!1,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&&xe(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{xe(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length}}firstUpdated(){xe(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length;this.headingSlot.assignedNodes({flatten:!0}).length>0&&xe(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=et`
642
+ `;var xe=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,we=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ye(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 ke=class extends mt{constructor(){super(...arguments),this._textSlotEmpty=!1,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&&_e(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{_e(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length}}firstUpdated(){_e(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length;this.headingSlot.assignedNodes({flatten:!0}).length>0&&_e(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=J`
644
643
  <slot name="heading" id="heading" @slotchange=${this._handleHeadingSlotChange}></slot>
645
644
  <slot name="text" id="content" @slotchange=${this._handleTextSlotChange}></slot>
646
645
  <sds-icon name="arrow_forward-material-outlined" size="md" class="sds-card__icon" role="presentation"></sds-icon>
647
- `,e={"sds-card__content":!0,"sds-card__content--no-text":this._textSlotEmpty};return et`<article class="sds-card">${this.link?et`<a href="${this.link}" class=${se(e)}>${t}</a>`:et`<div class=${se(e)}>${t}</div>`}</article>`}};$e.styles=[ye],ze([E({type:String,reflect:!0})],$e.prototype,"link",2),ze([O("slot#heading")],$e.prototype,"headingSlot",2),ze([O("slot#content")],$e.prototype,"textSlot",2),ze([L()],$e.prototype,"_textSlotEmpty",2),$e=ze([P("sds-card")],$e);const Se=l`
646
+ `,e={"sds-card__content":!0,"sds-card__content--no-text":this._textSlotEmpty};return J`<article class="sds-card">${this.link?J`<a href="${this.link}" class=${te(e)}>${t}</a>`:J`<div class=${te(e)}>${t}</div>`}</article>`}};ke.styles=[me],we([S({type:String,reflect:!0})],ke.prototype,"link",2),we([A("slot#heading")],ke.prototype,"headingSlot",2),we([A("slot#content")],ke.prototype,"textSlot",2),we([C()],ke.prototype,"_textSlotEmpty",2),ke=we([O("sds-card")],ke);const ze=d`
648
647
  :host {
649
648
  --_sds-checkbox-block-gap: var(--sds-checkbox-block-gap, var(--sds-spacing-4xs));
650
649
  --_sds-checkbox-inline-gap: var(--sds-checkbox-inline-gap, var(--sds-spacing-3xs));
@@ -869,31 +868,31 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
869
868
  margin-block-start: -1px;
870
869
  }
871
870
  }
872
- `;var Ce=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Le=(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};let Ae=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this._hasSlottedLabel=!1,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")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}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=this._hasSlottedLabel||Boolean(this.label),s={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return et`
873
- <div class="${se(t)}">
871
+ `;var $e=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Ce=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Se(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&&$e(e,s,a),a};let Ee=class extends(se(At(ae(mt)))){constructor(){super(...arguments),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this._hasSlottedLabel=!1,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")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}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=this._hasSlottedLabel||Boolean(this.label),s={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return J`
872
+ <div class="${te(t)}">
874
873
  <input
875
874
  id="control"
876
875
  type="checkbox"
877
- name="${Rt(this.name)}"
878
- value="${Rt(this.value)}"
876
+ name="${qt(this.name)}"
877
+ value="${qt(this.value)}"
879
878
  .checked="${this.checked}"
880
879
  ?checked="${this.checked}"
881
880
  ?disabled="${this.disabled}"
882
881
  ?required="${this.required}"
883
882
  ?readonly="${this.readOnly}"
884
- aria-describedby="${Rt(o)}"
883
+ aria-describedby="${qt(o)}"
885
884
  aria-invalid="${this.error?"true":"false"}"
886
885
  @change="${this._handleChange}"
887
886
  @focus="${this._handleFocus}"
888
887
  @blur="${this._handleBlur}"
889
- class="${se(s)}"
888
+ class="${te(s)}"
890
889
  />
891
890
  <label for="control" class="sds-checkbox__label" ?hidden="${!e}">
892
891
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
893
892
  </label>
894
- ${this.helpText?et`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:rt}
893
+ ${this.helpText?J`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:st}
895
894
  </div>
896
- `}};Ae.styles=[Se],Le([E({type:String,reflect:!0})],Ae.prototype,"label",2),Le([E({type:String})],Ae.prototype,"value",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"checked",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"error",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"required",2),Le([E({type:String,reflect:!0})],Ae.prototype,"size",2),Le([E({type:String,attribute:"help-text"})],Ae.prototype,"helpText",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"disabled",1),Le([E({type:Boolean,attribute:!1})],Ae.prototype,"parentRequestDisabled",1),Le([O("#control")],Ae.prototype,"control",2),Le([L()],Ae.prototype,"_hasSlottedLabel",2),Ae=Le([P("sds-checkbox")],Ae);const Oe=l`
895
+ `}};Ee.styles=[ze],Ce([S({type:String,reflect:!0})],Ee.prototype,"label",2),Ce([S({type:String})],Ee.prototype,"value",2),Ce([S({type:Boolean,reflect:!0})],Ee.prototype,"checked",2),Ce([S({type:Boolean,reflect:!0})],Ee.prototype,"error",2),Ce([S({type:Boolean,reflect:!0})],Ee.prototype,"required",2),Ce([S({type:String,reflect:!0})],Ee.prototype,"size",2),Ce([S({type:String,attribute:"help-text"})],Ee.prototype,"helpText",2),Ce([S({type:Boolean,reflect:!0})],Ee.prototype,"disabled",1),Ce([S({type:Boolean,attribute:!1})],Ee.prototype,"parentRequestDisabled",1),Ce([A("#control")],Ee.prototype,"control",2),Ce([C()],Ee.prototype,"_hasSlottedLabel",2),Ee=Ce([O("sds-checkbox")],Ee);const Ae=d`
897
896
  :host {
898
897
  --_sds-checkbox-group-gap: var(--sds-checkbox-group-gap, var(--sds-spacing-xs));
899
898
  --_sds-checkbox-group-font-family: var(--sds-checkbox-group-font-family, var(--sds-typography-font-family-roboto));
@@ -985,16 +984,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
985
984
  --_sds-checkbox-group-help-text-font-size: var(--sds-checkbox-group-help-text-font-size, var(--sds-components-font-size-content-lg));
986
985
  --_sds-checkbox-group-help-text-line-height: var(--sds-checkbox-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
987
986
  }
988
- `;var Te=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,De=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Pe(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 Me=["disabled","errorMessage","readOnly","size"];let qe=class extends(Ot(yt)){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([...Me])}}_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;Me.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 et`
989
- <fieldset class="${se(t)}" aria-describedby="${Rt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
990
- ${this.legend?et`<legend class="sds-checkbox-group__legend">${this.readOnly?et`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:rt}</sds-icon>${this.legend}</legend>`:rt}
991
- ${this.helpText?et`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:rt}
987
+ `;var Le=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Pe=(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&&Le(e,s,a),a};const De=["disabled","errorMessage","readOnly","size"];let Te=class extends(At(mt)){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([...De])}}_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;De.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 J`
988
+ <fieldset class="${te(t)}" aria-describedby="${qt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
989
+ ${this.legend?J`<legend class="sds-checkbox-group__legend">${this.readOnly?J`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:st}</sds-icon>${this.legend}</legend>`:st}
990
+ ${this.helpText?J`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:st}
992
991
  <div class="sds-checkbox-group__checkboxes" @change=${this._handleCheckboxChange}>
993
992
  <slot @slotchange=${this._handleSlotChange}></slot>
994
993
  </div>
995
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
994
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
996
995
  </fieldset>
997
- `}};qe.styles=[Oe],De([E({type:String,reflect:!0})],qe.prototype,"legend",2),De([E({type:String,attribute:"help-text",reflect:!0})],qe.prototype,"helpText",2),De([E({type:String,attribute:"error-message",reflect:!0})],qe.prototype,"errorMessage",2),De([E({type:Boolean,attribute:"readonly",reflect:!0})],qe.prototype,"readOnly",2),De([E({type:Boolean,reflect:!0})],qe.prototype,"disabled",2),De([E({type:String,reflect:!0})],qe.prototype,"size",2),De([L()],qe.prototype,"_selectedValues",2),De([O("slot")],qe.prototype,"_slotElement",2),qe=De([P("sds-checkbox-group")],qe);const Re=l`
996
+ `}};Te.styles=[Ae],Pe([S({type:String,reflect:!0})],Te.prototype,"legend",2),Pe([S({type:String,attribute:"help-text",reflect:!0})],Te.prototype,"helpText",2),Pe([S({type:String,attribute:"error-message",reflect:!0})],Te.prototype,"errorMessage",2),Pe([S({type:Boolean,attribute:"readonly",reflect:!0})],Te.prototype,"readOnly",2),Pe([S({type:Boolean,reflect:!0})],Te.prototype,"disabled",2),Pe([S({type:String,reflect:!0})],Te.prototype,"size",2),Pe([C()],Te.prototype,"_selectedValues",2),Pe([A("slot")],Te.prototype,"_slotElement",2),Te=Pe([O("sds-checkbox-group")],Te);const qe=d`
998
997
  :host {
999
998
  --_sds-chip-font-family: var(--sds-chip-font-family, var(--sds-typography-font-family-roboto));
1000
999
  --_sds-chip-font-weight: var(--sds-chip-font-weight, var(--sds-typography-font-weight-regular));
@@ -1139,16 +1138,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1139
1138
  white-space: nowrap;
1140
1139
  }
1141
1140
  }
1142
- `;var Ve=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,He=(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 je=class extends(re(Ot(de(yt)))){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)}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)}get type(){return"checkbox"}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?et`<button class="${se(e)}" @click=${this._remove} @keyup="${this._keypress}">
1141
+ `;var Me=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Be=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ve(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&&Me(e,s,a),a};let Re=class extends(se(At(ae(mt)))){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)}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)}get type(){return"checkbox"}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?J`<button class="${te(e)}" @click=${this._remove} @keyup="${this._keypress}">
1143
1142
  <slot></slot>
1144
1143
  <sds-icon name="close-material-outlined" size="s"></sds-icon>
1145
- </button>`:et`<label class="${se(e)}">
1144
+ </button>`:J`<label class="${te(e)}">
1146
1145
  <input
1147
1146
  id="control"
1148
1147
  type="checkbox"
1149
1148
  aria-label="${this._slotLabel}"
1150
- name="${Rt(this.name)}"
1151
- value="${Rt(this.value)}"
1149
+ name="${qt(this.name)}"
1150
+ value="${qt(this.value)}"
1152
1151
  .checked="${this.checked??!1}"
1153
1152
  ?checked="${this.checked}"
1154
1153
  ?disabled="${this.disabled}"
@@ -1156,7 +1155,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1156
1155
  @change="${this._handleChange}"
1157
1156
  />
1158
1157
  <span aria-hidden="true"><slot @slotchange="${this._handleSlotChange}"></slot></span>
1159
- </label>`}};je.styles=[Re],He([O("#control")],je.prototype,"control",2),He([L()],je.prototype,"_slotLabel",2),He([E({type:String,reflect:!0})],je.prototype,"variant",2),He([E({type:String,reflect:!0})],je.prototype,"size",2),He([E({type:Boolean,reflect:!0})],je.prototype,"checked",2),He([E({type:String})],je.prototype,"value",2),He([E({type:Boolean,attribute:"readonly",reflect:!0})],je.prototype,"readOnly",1),je=He([P("sds-chip")],je);const Ne=l`
1158
+ </label>`}};Re.styles=[qe],Be([A("#control")],Re.prototype,"control",2),Be([C()],Re.prototype,"_slotLabel",2),Be([S({type:String,reflect:!0})],Re.prototype,"variant",2),Be([S({type:String,reflect:!0})],Re.prototype,"size",2),Be([S({type:Boolean,reflect:!0})],Re.prototype,"checked",2),Be([S({type:String})],Re.prototype,"value",2),Be([S({type:Boolean,attribute:"readonly",reflect:!0})],Re.prototype,"readOnly",1),Re=Be([O("sds-chip")],Re);const je=d`
1160
1159
  :host {
1161
1160
  --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-info-surface-active));
1162
1161
  --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-info-text-default));
@@ -1251,23 +1250,23 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1251
1250
  --_sds-env-banner-build-grid-column: var(--sds-env-banner-build-grid-column, 3 / 4);
1252
1251
  }
1253
1252
  }
1254
- `;var Fe=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&&Fe(e,s,a),a};const Ue={opplaering:"Opplæring",local:"Local",dev:"Dev",test:"Test",stage:"Stage",prod:"Prod"},We=class extends _t{render(){const t=this.env?Ue[this.env]:rt;return et`
1253
+ `;var Ie=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&&Ie(e,s,a),a};const He={opplaering:"Opplæring",local:"Local",dev:"Dev",test:"Test",stage:"Stage",prod:"Prod"},Fe=class extends bt{render(){const t=this.env?He[this.env]:st;return J`
1255
1254
  <div class="sds-env-banner">
1256
- ${t?et`<span class="sds-env-banner__env">${t}</span>`:rt}
1257
- ${this.build?et`<span class="sds-env-banner__build">${this.build}</span>`:rt}
1255
+ ${t?J`<span class="sds-env-banner__env">${t}</span>`:st}
1256
+ ${this.build?J`<span class="sds-env-banner__build">${this.build}</span>`:st}
1258
1257
  </div>
1259
- `}};We.styles=[Ne];let Ke=We;Ie([E({type:String,reflect:!0})],Ke.prototype,"env"),Ie([E({type:String,reflect:!0})],Ke.prototype,"build");var Ge=Object.getOwnPropertyDescriptor;let Ye=class extends Ke{};Ye=((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-environment-banner")],Ye);const Ze=l`
1258
+ `}};Fe.styles=[je];let Ue=Fe;Ne([S({type:String,reflect:!0})],Ue.prototype,"env"),Ne([S({type:String,reflect:!0})],Ue.prototype,"build");var Ge=Object.getOwnPropertyDescriptor;let Ke=class extends Ue{};Ke=((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})([O("sds-environment-banner")],Ke);const We=d`
1260
1259
  :host {
1261
1260
  --_sds-details-text-color: var(--sds-details-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1262
1261
 
1263
1262
  --_sds-details-summary-padding: var(--sds-details-summary-padding, var(--sds-spacing-xs));
1264
- --_sds-details-summary-background-color: var(--sds-details-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1263
+ --_sds-details-summary-background-color: var(--sds-details-summary-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1265
1264
  --_sds-details-summary-gap: var(--sds-details-summary-gap, var(--sds-spacing-3xs));
1266
1265
  --_sds-details-summary-border-radius: var(--sds-details-summary-border-radius, 0);
1267
1266
 
1268
1267
  --_sds-details-content-padding-start: var(--sds-details-content-padding-start, calc(var(--_sds-details-summary-padding) + var(--_sds-details-summary-gap) + var(--sds-components-icon-md)));
1269
1268
  --_sds-details-content-padding: var(--sds-details-content-padding, var(--sds-spacing-xs));
1270
- --_sds-details-content-background-color: var(--sds-details-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1269
+ --_sds-details-content-background-color: var(--sds-details-content-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1271
1270
 
1272
1271
  --_sds-details-focus-outline-size: var(--sds-details-focus-outline-size, var(--sds-details-focus-outline-width, var(--sds-color-states-focus-outline-size)));
1273
1272
  --_sds-details-focus-color: var(--sds-details-focus-color, var(--sds-details-focus-outline-color, var(--sds-color-states-focus-outer)));
@@ -1275,6 +1274,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1275
1274
  --_sds-details-focus-inner-color: var(--sds-details-focus-inner-color, var(--sds-color-states-focus-inner));
1276
1275
 
1277
1276
  --_sds-details-icon-transition: var(--sds-details-icon-transition, transform 0.2s ease);
1277
+ --_sds-details-icon-color: var(--sds-details-icon-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1278
1278
 
1279
1279
  --_sds-details-border-color: var(--sds-details-border-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
1280
1280
  --_sds-details-border-bottom: var(--sds-details-border-bottom, solid 1px var(--_sds-details-border-color));
@@ -1327,6 +1327,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1327
1327
  }
1328
1328
 
1329
1329
  .sds-details__summary {
1330
+ --sds-icon-color: var(--_sds-details-icon-color);
1330
1331
  cursor: pointer;
1331
1332
  display: flex;
1332
1333
  align-items: center;
@@ -1392,7 +1393,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1392
1393
  display: inline;
1393
1394
  margin: 0;
1394
1395
  }
1395
- `;var Xe=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,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=(o?r(e,s,a):r(a))||a);return o&&a&&Xe(e,s,a),a};let ts=class extends(Ot(yt)){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 et`
1396
+ `;var Ze=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Qe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ye(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 Xe=class extends(At(mt)){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 J`
1396
1397
  <details class="sds-details" .name="${this.name??""}" ?data-standalone="${this.standalone}" ?open="${this.open}" @toggle="${this._handleToggle}">
1397
1398
  <summary class="sds-details__summary">
1398
1399
  <sds-icon name="chevron_up-material-filled" role="presentation"></sds-icon>
@@ -1404,7 +1405,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1404
1405
  <slot></slot>
1405
1406
  </div>
1406
1407
  </details>
1407
- `}};ts.styles=[Ze],Je([E({type:Boolean,reflect:!0})],ts.prototype,"open",2),Je([E({type:Boolean,reflect:!0})],ts.prototype,"standalone",2),Je([E({type:String,reflect:!0})],ts.prototype,"name",2),ts=Je([P("sds-details")],ts);const es=l`
1408
+ `}};Xe.styles=[We],Qe([S({type:Boolean,reflect:!0})],Xe.prototype,"open",2),Qe([S({type:Boolean,reflect:!0})],Xe.prototype,"standalone",2),Qe([S({type:String,reflect:!0})],Xe.prototype,"name",2),Xe=Qe([O("sds-details")],Xe);const Je=d`
1408
1409
  :host {
1409
1410
  display: block;
1410
1411
  }
@@ -1441,7 +1442,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1441
1442
  :host([outlined]) div ::slotted(sds-details:only-child[open]) {
1442
1443
  --sds-details-summary-border-radius: var(--sds-radius-md) var(--sds-radius-md) 0 0;
1443
1444
  }
1444
- `;var ss=Object.defineProperty,os=Object.getOwnPropertyDescriptor,rs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?os(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&&ss(e,s,a),a};let as=class extends yt{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 et`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};as.styles=[es],rs([E({type:Boolean,reflect:!0})],as.prototype,"outlined",2),rs([E({type:String,reflect:!0})],as.prototype,"name",2),rs([T({selector:"sds-details"})],as.prototype,"_detailsChildren",2),as=rs([P("sds-details-group")],as);const is=l`
1445
+ `;var ts=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ss=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?es(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&&ts(e,s,a),a};let os=class extends mt{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 J`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};os.styles=[Je],ss([S({type:Boolean,reflect:!0})],os.prototype,"outlined",2),ss([S({type:String,reflect:!0})],os.prototype,"name",2),ss([L({selector:"sds-details"})],os.prototype,"_detailsChildren",2),os=ss([O("sds-details-group")],os);const rs=d`
1445
1446
  :host {
1446
1447
  --_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1447
1448
  --_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
@@ -1452,6 +1453,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1452
1453
 
1453
1454
  --_sds-dialog-max-width: var(--sds-dialog-max-width, min(60ch, 100vw));
1454
1455
  --_sds-dialog-max-height: var(--sds-dialog-max-height, calc(100dvh - var(--sds-spacing-lg)));
1456
+ --_sds-dialog-min-width: var(--sds-dialog-min-width, auto);
1455
1457
 
1456
1458
  --_sds-dialog-margin: var(--sds-dialog-margin, auto);
1457
1459
  --_sds-dialog-padding-block: var(--sds-dialog-padding-block, var(--sds-spacing-sm));
@@ -1484,6 +1486,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1484
1486
 
1485
1487
  font-family: var(--_sds-dialog-font-family);
1486
1488
 
1489
+ min-width: var(--_sds-dialog-min-width);
1487
1490
  max-width: var(--_sds-dialog-max-width);
1488
1491
  max-height: var(--_sds-dialog-max-height);
1489
1492
 
@@ -1559,20 +1562,20 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1559
1562
  --_sds-dialog-animation-duration: 0ms;
1560
1563
  }
1561
1564
  }
1562
- `;var ds=Object.defineProperty,ns=(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&&ds(e,s,a),a};let ls=!1;const cs=class extends(Ot(yt)){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("close"),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()}}addEventListener(t,e,s){"sds-close"!==t||ls||(ls=!0,console.warn("[Sheriff] The 'sds-close' event on sds-dialog is deprecated and will be removed in the next major release. Listen for the 'close' event instead.")),super.addEventListener(t,e,s)}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 et`
1565
+ `;var as=Object.defineProperty,is=(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&&as(e,s,a),a};let ds=!1;const ns=class extends(At(mt)){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("close"),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()}}addEventListener(t,e,s){"sds-close"!==t||ds||(ds=!0,console.warn("[Sheriff] The 'sds-close' event on sds-dialog is deprecated and will be removed in the next major release. Listen for the 'close' event instead.")),super.addEventListener(t,e,s)}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 J`
1563
1566
  <dialog .closedBy="${this.closedby}" class=${this._isHeaderSlotEmpty?"sds-dialog__empty-header":""}>
1564
1567
  <div class="sds-dialog__header">
1565
1568
  <slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot>
1566
- ${this.closeButtonLabel?et`
1569
+ ${this.closeButtonLabel?J`
1567
1570
  <sds-button class="sds-dialog__close-button" icon variant="tertiary" size="md" command="close" label="${this.closeButtonLabel}">
1568
1571
  <sds-icon name="close-material-outlined" size="md"></sds-icon>
1569
1572
  </sds-button>
1570
- `:rt}
1573
+ `:st}
1571
1574
  </div>
1572
1575
  <slot></slot>
1573
1576
  <slot name="footer"></slot>
1574
1577
  </dialog>
1575
- `}};cs.styles=[is];let hs=cs;ns([E({type:Boolean,reflect:!0})],hs.prototype,"open"),ns([E({type:Boolean,reflect:!0})],hs.prototype,"modal"),ns([E({type:String,reflect:!0})],hs.prototype,"closedby"),ns([E({type:String,attribute:"close-button-label"})],hs.prototype,"closeButtonLabel"),ns([O("dialog")],hs.prototype,"_dialog"),ns([L()],hs.prototype,"_isHeaderSlotEmpty");var ps=Object.getOwnPropertyDescriptor;let gs=class extends hs{};gs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ps(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-dialog")],gs);const vs=l`
1578
+ `}};ns.styles=[rs];let ls=ns;is([S({type:Boolean,reflect:!0})],ls.prototype,"open"),is([S({type:Boolean,reflect:!0})],ls.prototype,"modal"),is([S({type:String,reflect:!0})],ls.prototype,"closedby"),is([S({type:String,attribute:"close-button-label"})],ls.prototype,"closeButtonLabel"),is([A("dialog")],ls.prototype,"_dialog"),is([C()],ls.prototype,"_isHeaderSlotEmpty");var cs=Object.getOwnPropertyDescriptor;let hs=class extends ls{};hs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?cs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-dialog")],hs);const ps=d`
1576
1579
  :host {
1577
1580
  --_sds-heading-font-family: var(--sds-heading-font-family, var(--sds-typography-font-family-roboto));
1578
1581
  --_sds-heading-text-color: var(--sds-heading-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -1731,7 +1734,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1731
1734
  --_sds-heading-line-height: var(--sds-heading-line-height, var(--sds-typography-heading-xs-desktop-line-height));
1732
1735
  }
1733
1736
  }
1734
- `;var us=Object.defineProperty,fs=(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&&us(e,s,a),a};const bs=class extends yt{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 et`<h1 class=${se(t)}><slot></slot></h1>`;case"h2":return et`<h2 class=${se(t)}><slot></slot></h2>`;case"h3":return et`<h3 class=${se(t)}><slot></slot></h3>`;case"h4":return et`<h4 class=${se(t)}><slot></slot></h4>`;case"h5":return et`<h5 class=${se(t)}><slot></slot></h5>`;case"h6":return et`<h6 class=${se(t)}><slot></slot></h6>`}}};bs.styles=[vs];let ms=bs;fs([E({type:String,reflect:!0})],ms.prototype,"level"),fs([E({type:String,reflect:!0})],ms.prototype,"size");var _s=Object.getOwnPropertyDescriptor;let xs=class extends ms{};xs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?_s(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-heading")],xs);const ys=l`
1737
+ `;var gs=Object.defineProperty,vs=(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&&gs(e,s,a),a};const us=class extends mt{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 J`<h1 class=${te(t)}><slot></slot></h1>`;case"h2":return J`<h2 class=${te(t)}><slot></slot></h2>`;case"h3":return J`<h3 class=${te(t)}><slot></slot></h3>`;case"h4":return J`<h4 class=${te(t)}><slot></slot></h4>`;case"h5":return J`<h5 class=${te(t)}><slot></slot></h5>`;case"h6":return J`<h6 class=${te(t)}><slot></slot></h6>`}}};us.styles=[ps];let fs=us;vs([S({type:String,reflect:!0})],fs.prototype,"level"),vs([S({type:String,reflect:!0})],fs.prototype,"size");var bs=Object.getOwnPropertyDescriptor;let _s=class extends fs{};_s=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?bs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-heading")],_s);const ms=d`
1735
1738
  :host {
1736
1739
  --_sds-internal-header-background-color: var(--sds-internal-header-background-color, var(--sds-color-action-default, var(--sds-color-accent-action-default)));
1737
1740
  --_sds-internal-header-text-color: var(--sds-internal-header-text-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
@@ -1850,12 +1853,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1850
1853
  --_sds-internal-header-title-line-height: var(--sds-internal-header-title-line-height, var(--sds-typography-heading-sm-desktop-line-height));
1851
1854
  }
1852
1855
  }
1853
- `;var ws=Object.defineProperty,ks=(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&&ws(e,s,a),a};const zs=class extends _t{constructor(){super(...arguments),this.appName="",this.homeHref=""}get internalLogo(){return st`
1856
+ `;var xs=Object.defineProperty,ys=(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&&xs(e,s,a),a};const ws=class extends bt{constructor(){super(...arguments),this.appName="",this.homeHref=""}get internalLogo(){return tt`
1854
1857
  <svg class="sds-internal-header__internal-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 32" fill="currentColor" aria-hidden="true">
1855
1858
  <path d="M6.5 24.3333H0L13.6667 0H20L6.5 24.3333Z" fill="var(--sds-color-support-3-action-default)" />
1856
1859
  <path d="M12.5 32H6L19.6667 7.66663H26L12.5 32Z" fill="var(--sds-color-neutral-border-default)" />
1857
1860
  </svg>
1858
- `}get appNameElement(){if(!this.appName)return rt;const t=et`<span class="sds-internal-header__title">${this.appName}</span>`;return this.homeHref?et`<a class="sds-internal-header__home" href=${this.homeHref}>${t}</a>`:t}render(){return et`
1861
+ `}get appNameElement(){if(!this.appName)return st;const t=J`<span class="sds-internal-header__title">${this.appName}</span>`;return this.homeHref?J`<a class="sds-internal-header__home" href=${this.homeHref}>${t}</a>`:t}render(){return J`
1859
1862
  <header class="sds-internal-header">
1860
1863
  <div class="sds-internal-header__brand">${this.internalLogo} ${this.appNameElement}</div>
1861
1864
  <div class="sds-internal-header__slots">
@@ -1867,7 +1870,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1867
1870
  </div>
1868
1871
  </div>
1869
1872
  </header>
1870
- `}};zs.styles=[ys];let $s=zs;ks([E({type:String,attribute:"app-name",reflect:!0})],$s.prototype,"appName"),ks([E({type:String,attribute:"home-href",reflect:!0})],$s.prototype,"homeHref");var Ss=Object.getOwnPropertyDescriptor;let Cs=class extends $s{};Cs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ss(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-internal-header")],Cs);const Es=l`
1873
+ `}};ws.styles=[ms];let ks=ws;ys([S({type:String,attribute:"app-name",reflect:!0})],ks.prototype,"appName"),ys([S({type:String,attribute:"home-href",reflect:!0})],ks.prototype,"homeHref");var zs=Object.getOwnPropertyDescriptor;let $s=class extends ks{};$s=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?zs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-internal-header")],$s);const Ss=d`
1871
1874
  :host {
1872
1875
  --_sds-loader-main-color: var(--sds-loader-main-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
1873
1876
  --_sds-loader-secondary-color: var(--sds-loader-secondary-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
@@ -1943,10 +1946,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1943
1946
  stroke-dashoffset: -120px;
1944
1947
  }
1945
1948
  }
1946
- `;var Ls=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Os=(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=(o?r(e,s,a):r(a))||a);return o&&a&&Ls(e,s,a),a};let Ts=class extends yt{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return et`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1949
+ `;var Cs=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,As=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Es(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&&Cs(e,s,a),a};let Ls=class extends mt{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return J`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1947
1950
  <circle class="sds-loader__background" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1948
1951
  <circle class="sds-loader__circle" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1949
- </svg>`}};Ts.styles=[Es],Os([E({type:String,reflect:!0})],Ts.prototype,"size",2),Os([E({type:Boolean,reflect:!0})],Ts.prototype,"contrast",2),Ts=Os([P("sds-loader")],Ts);const Ps=l`
1952
+ </svg>`}};Ls.styles=[Ss],As([S({type:String,reflect:!0})],Ls.prototype,"size",2),As([S({type:Boolean,reflect:!0})],Ls.prototype,"contrast",2),Ls=As([O("sds-loader")],Ls);const Os=d`
1950
1953
  :host {
1951
1954
  --_sds-notification-background-color: var(--sds-notification-background-color, var(--sds-color-alert-info-surface-tinted));
1952
1955
 
@@ -2083,25 +2086,25 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2083
2086
  margin: 0 !important;
2084
2087
  max-width: var(--_sds-notification-max-line-width) !important;
2085
2088
  }
2086
- `;var Ds=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,qs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ms(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&&Ds(e,s,a),a};const Rs={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",warning:"warning-material-filled",danger:"dangerous-material-filled",critical:"dangerous-material-filled"};let Vs=!1,Bs=class extends(Ot(yt)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},Vs||(Vs=!0,console.warn("[Sheriff] The Notification component is deprecated and will be removed in the next major release. Please migrate to the Alert component."))}updated(t){t.has("variant")&&"critical"===this.variant?this.variant="danger":t.has("variant")&&"warning"===this.variant&&(this.variant="attention")}render(){const t="danger"===this.variant||"critical"===this.variant?"danger":"accent";return et`<div class="${se({"sds-notification":!0})}">
2089
+ `;var Ps=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Ts=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ds(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&&Ps(e,s,a),a};const qs={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",warning:"warning-material-filled",danger:"dangerous-material-filled",critical:"dangerous-material-filled"};let Ms=!1,Vs=class extends(At(mt)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},Ms||(Ms=!0,console.warn("[Sheriff] The Notification component is deprecated and will be removed in the next major release. Please migrate to the Alert component."))}updated(t){t.has("variant")&&"critical"===this.variant?this.variant="danger":t.has("variant")&&"warning"===this.variant&&(this.variant="attention")}render(){const t="danger"===this.variant||"critical"===this.variant?"danger":"accent";return J`<div class="${te({"sds-notification":!0})}">
2087
2090
  <div class="sds-notification__type">
2088
- <sds-icon class="sds-notification__icon" name="${Rs[this.variant]}" size="md"></sds-icon>
2091
+ <sds-icon class="sds-notification__icon" name="${qs[this.variant]}" size="md"></sds-icon>
2089
2092
  </div>
2090
2093
  <div class="sds-notification__content">
2091
2094
  <slot name="title"></slot>
2092
2095
  <slot name="message"></slot>
2093
2096
  </div>
2094
- ${this.removableLabel?et`<div class="sds-notification__actions">
2097
+ ${this.removableLabel?J`<div class="sds-notification__actions">
2095
2098
  <sds-button icon variant="tertiary" color="${t}" size="sm" @click=${this._remove} aria-label="${this.removableLabel}">
2096
2099
  <sds-icon name="close-material-outlined" size="sm"></sds-icon>
2097
2100
  </sds-button>
2098
- </div>`:rt}
2099
- </div>`}};Bs.styles=[Ps],qs([E({type:String,reflect:!0})],Bs.prototype,"variant",2),qs([E({type:String,attribute:"removable-label",reflect:!0})],Bs.prototype,"removableLabel",2),Bs=qs([P("sds-notification")],Bs);const Hs=l`
2101
+ </div>`:st}
2102
+ </div>`}};Vs.styles=[Os],Ts([S({type:String,reflect:!0})],Vs.prototype,"variant",2),Ts([S({type:String,attribute:"removable-label",reflect:!0})],Vs.prototype,"removableLabel",2),Vs=Ts([O("sds-notification")],Vs);const Bs=d`
2100
2103
  :host {
2101
2104
  display: flex;
2102
2105
  flex-direction: column;
2103
2106
  }
2104
- `;var js=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,Fs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ns(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&&js(e,s,a),a};let Is=class extends yt{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return et`<slot></slot>`}};Is.styles=[Hs],Fs([E({type:String,reflect:!0,attribute:"heading-level"})],Is.prototype,"headingLevel",2),Is=Fs([P("sds-process")],Is);const Us=l`
2107
+ `;var Rs=Object.defineProperty,js=Object.getOwnPropertyDescriptor,Is=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?js(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&&Rs(e,s,a),a};let Ns=class extends mt{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return J`<slot></slot>`}};Ns.styles=[Bs],Is([S({type:String,reflect:!0,attribute:"heading-level"})],Ns.prototype,"headingLevel",2),Ns=Is([O("sds-process")],Ns);const Hs=d`
2105
2108
  :host {
2106
2109
  --_sds-process-step-border-width: var(--sds-process-step-border-width, 2px);
2107
2110
  --_sds-process-step-border-color: var(--sds-process-step-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -2245,22 +2248,22 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2245
2248
  :host(:last-of-type) {
2246
2249
  --_sds-process-step-line-display: none;
2247
2250
  }
2248
- `;var Ws=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Gs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ks(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&&Ws(e,s,a),a};let Ys=class extends yt{constructor(){super(),this._headingLevel="h2",this._handleMarkerSlotChange=()=>{if(!this.markerSlot||!this.step)return;const t=0===this.markerSlot.assignedNodes({flatten:!0}).length;this.step.classList.toggle("sds-process-step--sub-step",t)},this.internals=this.attachInternals(),this.internals.role="listitem"}connectedCallback(){super.connectedCallback();const t=this.closest("sds-process");t&&t.headingLevel&&(this._headingLevel=t.headingLevel)}firstUpdated(){this._handleMarkerSlotChange()}get safeHeadingLevel(){return["h2","h3","h4","h5","h6"].includes(this._headingLevel)?this._headingLevel:"h2"}render(){return Ct`
2251
+ `;var Fs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Gs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Us(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&&Fs(e,s,a),a};let Ks=class extends mt{constructor(){super(),this._headingLevel="h2",this._handleMarkerSlotChange=()=>{if(!this.markerSlot||!this.step)return;const t=0===this.markerSlot.assignedNodes({flatten:!0}).length;this.step.classList.toggle("sds-process-step--sub-step",t)},this.internals=this.attachInternals(),this.internals.role="listitem"}connectedCallback(){super.connectedCallback();const t=this.closest("sds-process");t&&t.headingLevel&&(this._headingLevel=t.headingLevel)}firstUpdated(){this._handleMarkerSlotChange()}get safeHeadingLevel(){return["h2","h3","h4","h5","h6"].includes(this._headingLevel)?this._headingLevel:"h2"}render(){return $t`
2249
2252
  <div class="sds-process-step">
2250
2253
  <div class="sds-process-step__item">
2251
2254
  <div class="sds-process-step__marker" aria-hidden="true">
2252
2255
  <slot name="marker" @slotchange=${this._handleMarkerSlotChange}></slot>
2253
2256
  </div>
2254
2257
  <div class="sds-process-step__content">
2255
- ${this.heading?Ct`<${zt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${zt(this.safeHeadingLevel)}>`:rt}
2256
- ${this.timestamp?Ct`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:rt}
2258
+ ${this.heading?$t`<${wt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${wt(this.safeHeadingLevel)}>`:st}
2259
+ ${this.timestamp?$t`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:st}
2257
2260
  <div class="sds-process-step__slot-content"><slot></slot></div>
2258
2261
  </div>
2259
2262
  </div>
2260
2263
  <span class="sds-process-step__line"></span>
2261
2264
  </div>
2262
- `}};Ys.styles=[Us],Gs([E({type:String,reflect:!0})],Ys.prototype,"heading",2),Gs([E({type:String,reflect:!0})],Ys.prototype,"timestamp",2),Gs([O('slot[name="marker"]')],Ys.prototype,"markerSlot",2),Gs([O(".sds-process-step")],Ys.prototype,"step",2),Ys=Gs([P("sds-process-step")],Ys);const Zs=l`
2263
- ${n(':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;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_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-radius:var(--dsc-popover-border-radius);border-width:var(--dsc-popover-border-width);border-style:var(--dsc-popover-border-style);border-color:var(--dsc-popover-border-color);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)}: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;text-decoration:underline dotted;text-underline-offset:.27em;font-size:inherit}[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: }')}
2265
+ `}};Ks.styles=[Hs],Gs([S({type:String,reflect:!0})],Ks.prototype,"heading",2),Gs([S({type:String,reflect:!0})],Ks.prototype,"timestamp",2),Gs([A('slot[name="marker"]')],Ks.prototype,"markerSlot",2),Gs([A(".sds-process-step")],Ks.prototype,"step",2),Ks=Gs([O("sds-process-step")],Ks);const Ws=d`
2266
+ ${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;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_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-radius:var(--dsc-popover-border-radius);border-width:var(--dsc-popover-border-width);border-style:var(--dsc-popover-border-style);border-color:var(--dsc-popover-border-color);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)}: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;text-decoration:underline dotted;text-underline-offset:.27em;font-size:inherit}[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: }')}
2264
2267
 
2265
2268
  :host {
2266
2269
  --dsc-popover-background: var(--sds-popover-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
@@ -2307,7 +2310,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2307
2310
  animation: none;
2308
2311
  }
2309
2312
  }
2310
- `,Xs={passive:!0,capture:!0},Qs=()=>typeof window<"u"&&typeof document<"u",Js=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),to=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),eo=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>so(t,...e)},so=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)},oo=(t,e)=>{Qs()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,e()))};let ro;const ao=()=>{"complete"===document.readyState&&(ro||(ro=((t,e)=>{let s=document.createElement("div");if(e)for(let[o,r]of Object.entries(e))Js(s,o,r);return s})(0,{"aria-live":"assertive"}),ro.style.overflow="hidden",ro.style.position="fixed",ro.style.whiteSpace="nowrap",ro.style.width="1px"),ro.isConnected||document.body.appendChild(ro))};oo("announce",()=>[eo(document,"focus mouseover",ao,Xs)]);var io=class extends Event{constructor(t,{oldState:e="",newState:o="",...r}={}){super(t,r),s(this,"oldState"),s(this,"newState"),this.oldState=String(e||""),this.newState=String(o||"")}},no=/* @__PURE__ */new WeakMap;function lo(t,e,s){no.set(t,setTimeout(()=>{no.has(t)&&t.dispatchEvent(new io("toggle",{cancelable:!1,oldState:e,newState:s}))},0))}var co=globalThis.ShadowRoot||function(){},ho=globalThis.HTMLDialogElement||function(){},po=/* @__PURE__ */new WeakMap,go=/* @__PURE__ */new WeakMap,vo=/* @__PURE__ */new WeakMap,uo=/* @__PURE__ */new WeakMap;function fo(t){return uo.get(t)||"hidden"}var bo=/* @__PURE__ */new WeakMap;function mo(t){return[...t].pop()}function _o(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==fo(t)||!e&&"hidden"!==fo(t)||t instanceof ho&&t.hasAttribute("open")||document.fullscreenElement===t)}function xo(t){if(!t)return 0;let e=go.get(document)||/* @__PURE__ */new Set,s=vo.get(document)||/* @__PURE__ */new Set;return s.has(t)?[...s].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function yo(t){let e,s=vo.get(t)||/* @__PURE__ */new Set,o=go.get(t)||/* @__PURE__ */new Set,r=s.size>0?s:o.size>0?o:null;return r?(e=mo(r),e.isConnected?e:(r.delete(e),yo(t))):null}function wo(t){for(let e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function ko(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?ko(t.parentNode):t}function zo(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===uo.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||ko(t))instanceof co&&(t=t.host),t instanceof Document)return}}function $o(t,e){let s=/* @__PURE__ */new Map,o=0;for(let a of e||[])s.set(a,o),o+=1;s.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,a=null,i=null;for(;!o;){if(a=zo(e)||null,null===a||!s.has(a))return;("hint"===t.popover||"auto"===a.popover)&&(o=!0),o||(e=a.parentElement)}i=s.get(a),(null===r||s.get(r)<i)&&(r=a)}(t.parentElement||ko(t)),r}function So(t){return!(t.hidden||t instanceof co||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var Co=/* @__PURE__ */new WeakMap;function Eo(t){if(!_o(t,!1))return;let e=t.ownerDocument;if(!t.dispatchEvent(new io("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!_o(t,!1))return;let s=!1,o=t.popover,r=null,a=$o(t,go.get(e)||/* @__PURE__ */new Set),i=$o(t,vo.get(e)||/* @__PURE__ */new Set);if("auto"===o&&(Ao(vo.get(e)||/* @__PURE__ */new Set,s,!0),To(a||e,s,!0),r="auto"),"hint"===o&&(i?(To(i,s,!0),r="hint"):(Ao(vo.get(e)||/* @__PURE__ */new Set,s,!0),a?(To(a,s,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!_o(t,!1))return;yo(e)||(s=!0),"auto"===r?(go.has(e)||go.set(e,/* @__PURE__ */new Set),go.get(e).add(t)):"hint"===r&&(vo.has(e)||vo.set(e,/* @__PURE__ */new Set),vo.get(e).add(t))}Co.delete(t);let d=e.activeElement;t.classList.add(":popover-open"),uo.set(t,"showing"),po.has(e)||po.set(e,/* @__PURE__ */new Set),po.get(e).add(t),qo(bo.get(t),!0),function(t){var e;null==(e=function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let s=e.querySelector("[autofocus]");if(s)return s;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(s=e.querySelector("[autofocus]"),s)return s}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(So(r))return r;r=o.nextNode()}}(t))||e.focus()}(t),s&&d&&"auto"===t.popover&&Co.set(t,d),lo(t,"closed","open")}function Lo(t,e=!1,s=!1){var o,r;if(!_o(t,!0))return;let a=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(To(t,e,s),!_o(t,!0)))return;let i=go.get(a)||/* @__PURE__ */new Set,d=i.has(t)&&mo(i)===t;if(qo(bo.get(t),!1),bo.delete(t),s&&(t.dispatchEvent(new io("beforetoggle",{oldState:"open",newState:"closed"})),d&&mo(i)!==t&&To(t,e,s),!_o(t,!0)))return;null==(o=po.get(a))||o.delete(t),i.delete(t),null==(r=vo.get(a))||r.delete(t),t.classList.remove(":popover-open"),uo.set(t,"hidden"),s&&lo(t,"open","closed");let n=Co.get(t);n&&(Co.delete(t),e&&n.focus())}function Ao(t,e=!1,s=!1){let o=wo(t);for(;o;)Lo(o,e,s),o=wo(t)}function Oo(t,e,s,o){let r=!1,a=!1;for(;r||!a;){a=!0;let i=null,d=!1;for(let s of e)if(s===t)d=!0;else if(d){i=s;break}if(!i)return;for(;"showing"===fo(i)&&e.size;)Lo(mo(e),s,o);e.has(t)&&mo(e)!==t&&(r=!0),r&&(o=!1)}}function To(t,e,s){let o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,s=!1){let o=yo(t);for(;o;)Lo(o,e,s),o=yo(t)}(o,e,s);vo.get(o)?.has(t)?Oo(t,vo.get(o),e,s):(Ao(vo.get(o)||/* @__PURE__ */new Set,e,s),go.get(o)?.has(t)&&Oo(t,go.get(o),e,s))}var Po=/* @__PURE__ */new WeakMap;function Do(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let s=e.ownerDocument;if(!yo(s))return;let o=function(t){let e=zo(t),s=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||ko(t))instanceof co&&(t=t.host),t instanceof Document)return}}(t);return xo(e)>xo(s)?e:s}(e);if(o&&"pointerdown"===t.type)Po.set(s,o);else if("pointerup"===t.type){let t=Po.get(s)===o;Po.delete(s),t&&To(o||s,!1,!0)}}var Mo=/* @__PURE__ */new WeakMap;function qo(t,e=!1){if(!t)return;Mo.has(t)||Mo.set(t,t.getAttribute("aria-expanded"));let s=t.popoverTargetElement;if(s instanceof HTMLElement&&"auto"===s.popover)t.setAttribute("aria-expanded",String(e));else{let e=Mo.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var Ro=globalThis.ShadowRoot||function(){};function Vo(t,e,s){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,s(t))}})}var Bo=/(^|[^\\]):popover-open\b/g;var Ho=null;function jo(t){let e=function(){let t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===Ho)try{(Ho=new CSSStyleSheet).replaceSync(e)}catch{Ho=!1}if(!1===Ho){let s=document.createElement("style");s.textContent=e,t instanceof Document?t.head.prepend(s):t.prepend(s)}else t.adoptedStyleSheets=[Ho,...t.adoptedStyleSheets]}const No=Math.min,Fo=Math.max,Io=Math.round,Uo=Math.floor,Wo=t=>({x:t,y:t}),Ko={left:"right",right:"left",bottom:"top",top:"bottom"};function Go(t,e,s){return Fo(t,No(e,s))}function Yo(t,e){return"function"==typeof t?t(e):t}function Zo(t){return t.split("-")[0]}function Xo(t){return t.split("-")[1]}function Qo(t){return"x"===t?"y":"x"}function Jo(t){return"y"===t?"height":"width"}function tr(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function er(t){return Qo(tr(t))}function sr(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const or=["left","right"],rr=["right","left"],ar=["top","bottom"],ir=["bottom","top"];function dr(t){const e=Zo(t);return Ko[e]+t.slice(e.length)}function nr(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 lr(t,e,s){let{reference:o,floating:r}=t;const a=tr(e),i=er(e),d=Jo(i),n=Zo(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(Xo(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function cr(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}=Yo(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=nr(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=nr(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 hr=/* @__PURE__ */new Set(["left","top"]);function pr(){return"undefined"!=typeof window}function gr(t){return fr(t)?(t.nodeName||"").toLowerCase():"#document"}function vr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ur(t){var e;return null==(e=(fr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function fr(t){return!!pr()&&(t instanceof Node||t instanceof vr(t).Node)}function br(t){return!!pr()&&(t instanceof Element||t instanceof vr(t).Element)}function mr(t){return!!pr()&&(t instanceof HTMLElement||t instanceof vr(t).HTMLElement)}function _r(t){return!(!pr()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof vr(t).ShadowRoot)}function xr(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=Ar(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&"inline"!==r&&"contents"!==r}function yr(t){return/^(table|td|th)$/.test(gr(t))}function wr(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}const kr=/transform|translate|scale|rotate|perspective|filter/,zr=/paint|layout|strict|content/,$r=t=>!!t&&"none"!==t;let Sr;function Cr(t){const e=br(t)?Ar(t):t;return $r(e.transform)||$r(e.translate)||$r(e.scale)||$r(e.rotate)||$r(e.perspective)||!Er()&&($r(e.backdropFilter)||$r(e.filter))||kr.test(e.willChange||"")||zr.test(e.contain||"")}function Er(){return null==Sr&&(Sr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sr}function Lr(t){return/^(html|body|#document)$/.test(gr(t))}function Ar(t){return vr(t).getComputedStyle(t)}function Or(t){return br(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tr(t){if("html"===gr(t))return t;const e=t.assignedSlot||t.parentNode||_r(t)&&t.host||ur(t);return _r(e)?e.host:e}function Pr(t){const e=Tr(t);return Lr(e)?t.ownerDocument?t.ownerDocument.body:t.body:mr(e)&&xr(e)?e:Pr(e)}function Dr(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=Pr(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=vr(r);if(a){const t=Mr(i);return e.concat(i,i.visualViewport||[],xr(r)?r:[],t&&s?Dr(t):[])}return e.concat(r,Dr(r,[],s))}function Mr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qr(t){const e=Ar(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=mr(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=Io(s)!==a||Io(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function Rr(t){return br(t)?t:t.contextElement}function Vr(t){const e=Rr(t);if(!mr(e))return Wo(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=qr(e);let i=(a?Io(s.width):s.width)/o,d=(a?Io(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Br=Wo(0);function Hr(t){const e=vr(t);return Er()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Br}function jr(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=Rr(t);let i=Wo(1);e&&(o?br(o)&&(i=Vr(o)):i=Vr(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==vr(n)||!l?Wo(0):Hr(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=vr(a),e=o&&br(o)?vr(o):o;let s=t,r=Mr(s);for(;r&&o&&e!==s;){const t=Vr(r),e=r.getBoundingClientRect(),o=Ar(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=vr(r),r=Mr(s)}}return nr({width:g,height:v,x:h,y:p})}function Nr(t,e){const s=Or(t).scrollLeft;return e?e.left+s:jr(ur(t)).left+s}function Fr(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-Nr(t,s),y:s.top+e.scrollTop}}function Ir(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=vr(t),o=ur(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=Er();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=Nr(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=ur(t),s=Or(t),o=t.ownerDocument.body,r=Fo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Fo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+Nr(t);const d=-s.scrollTop;return"rtl"===Ar(o).direction&&(i+=Fo(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(ur(t));else if(br(e))o=function(t,e){const s=jr(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=mr(t)?Vr(t):Wo(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=Hr(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return nr(o)}function Ur(t,e){const s=Tr(t);return!(s===e||!br(s)||Lr(s))&&("fixed"===Ar(s).position||Ur(s,e))}function Wr(t,e,s){const o=mr(e),r=ur(e),a="fixed"===s,i=jr(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Wo(0);function l(){n.x=Nr(r)}if(o||!o&&!a)if(("body"!==gr(e)||xr(r))&&(d=Or(e)),o){const t=jr(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?Wo(0):Fr(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 Kr(t){return"static"===Ar(t).position}function Gr(t,e){if(!mr(t)||"fixed"===Ar(t).position)return null;if(e)return e(t);let s=t.offsetParent;return ur(t)===s&&(s=s.ownerDocument.body),s}function Yr(t,e){const s=vr(t);if(wr(t))return s;if(!mr(t)){let e=Tr(t);for(;e&&!Lr(e);){if(br(e)&&!Kr(e))return e;e=Tr(e)}return s}let o=Gr(t,e);for(;o&&yr(o)&&Kr(o);)o=Gr(o,e);return o&&Lr(o)&&Kr(o)&&!Cr(o)?s:o||function(t){let e=Tr(t);for(;mr(e)&&!Lr(e);){if(Cr(e))return e;if(wr(e))return null;e=Tr(e)}return null}(t)||s}const Zr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=ur(o),d=!!e&&wr(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Wo(1);const c=Wo(0),h=mr(o);if((h||!h&&!a)&&(("body"!==gr(o)||xr(i))&&(n=Or(o)),h)){const t=jr(o);l=Vr(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Wo(0):Fr(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:ur,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?wr(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=Dr(t,[],!1).filter(t=>br(t)&&"body"!==gr(t)),r=null;const a="fixed"===Ar(t).position;let i=a?Tr(t):t;for(;br(i)&&!Lr(i);){const e=Ar(i),s=Cr(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||xr(i)&&!s&&Ur(t,i))?o=o.filter(t=>t!==i):r=e,i=Tr(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=Ir(e,a[0],r);let d=i.top,n=i.right,l=i.bottom,c=i.left;for(let h=1;h<a.length;h++){const t=Ir(e,a[h],r);d=Fo(t.top,d),n=No(t.right,n),l=No(t.bottom,l),c=Fo(t.left,c)}return{width:n-c,height:l-d,x:c,y:d}},getOffsetParent:Yr,getElementRects:async function(t){const e=this.getOffsetParent||Yr,s=this.getDimensions,o=await s(t.floating);return{reference:Wr(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}=qr(t);return{width:e,height:s}},getScale:Vr,isElement:br,isRTL:function(t){return"rtl"===Ar(t).direction}};function Xr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Qr=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=Zo(s),d=Xo(s),n="y"===tr(s),l=hr.has(i)?-1:1,c=a&&n?-1:1,h=Yo(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}}}}},Jr=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}=Yo(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=tr(Zo(r)),g=Qo(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Go(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Go(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}}}}}},ta=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}=Yo(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Zo(r),m=tr(d),_=Zo(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[dr(d)]:function(t){const e=dr(t);return[sr(t),e,sr(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Xo(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?rr:or:e?or:rr;case"left":case"right":return e?ar:ir;default:return[]}}(Zo(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(sr)))),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=Xo(t),r=er(t),a=Jo(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=dr(i)),[i,dr(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===tr(e)||S.every(t=>tr(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 L;const t=null==(L=S.filter(t=>{if(w){const e=tr(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:L[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},ea=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}=Yo(t,e),c=await i.detectOverflow(e,l),h=Zo(r),p=Xo(r),g="y"===tr(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=No(u-c[f],m),y=No(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=Fo(c.left,0),e=Fo(c.right,0),s=Fo(c.top,0),o=Fo(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:Fo(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:Fo(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}}:{}}}},sa=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}=Yo(t,e),c={x:s,y:o},h=tr(r),p=Qo(h);let g=c[p],v=c[h];const u=Yo(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=hr.has(Zo(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}}}};Qs()&&!(typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype)&&function(){if(typeof window>"u")return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(Bo,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||io,Vo(Document.prototype,"querySelector",t),Vo(Document.prototype,"querySelectorAll",t),Vo(Element.prototype,"querySelector",t),Vo(Element.prototype,"querySelectorAll",t),Vo(Element.prototype,"matches",t),Vo(Element.prototype,"closest",t),Vo(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Eo(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Lo(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===uo.get(this)&&void 0===t.force||!1===t.force?Lo(this,!0,!0):(void 0===t.force||!0===t.force)&&Eo(this),"showing"===uo.get(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let s=e.call(this,t);return jo(s),s}}});let s=HTMLElement.prototype.attachInternals;s&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=s.call(this);return t.shadowRoot&&jo(t.shadowRoot),t}}});let o=/* @__PURE__ */new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;let e=ko(this),s=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof Ro)&&s&&e.getElementById(s)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}r(HTMLButtonElement),r(HTMLInputElement);let a=t=>{if(t.defaultPrevented)return;let e=t.composedPath(),s=e[0];if(!(s instanceof Element)||s?.shadowRoot)return;let o=ko(s);if(!(o instanceof Ro||o instanceof Document))return;let r=e.find(t=>t.matches?.call(t,"[popovertargetaction],[popovertarget]"));return r?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let s=fo(e);"show"===t.popoverTargetAction&&"showing"===s||"hide"===t.popoverTargetAction&&"hidden"===s||("showing"===s?Lo(e,!0,!0):_o(e,!1)&&(bo.set(e,t),Eo(e)))}(r),void t.preventDefault()):void 0},i=t=>{let e=t.key,s=t.target;!t.defaultPrevented&&s&&("Escape"===e||"Esc"===e)&&To(s.ownerDocument,!0,!0)};var d;(d=document).addEventListener("click",a),d.addEventListener("keydown",i),d.addEventListener("pointerdown",Do),d.addEventListener("pointerup",Do),jo(document)}();const oa="data-placement",ra="data-autoplacement",aa=/* @__PURE__ */new Map;function ia(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&null!==Js(o,"popover")&&to(o,"--_ds-floating");if(!a)return;if("closed"===e)return aa.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;o.style.scrollMarginBottom="var(--_ds-floating-arrow-size)";let i=to(o,"--_ds-floating-overscroll"),d=Js(o,oa)||Js(r,oa)||a,n=Js(o,ra)||Js(r,ra),l=parseFloat(to(o,"scroll-margin-bottom"))||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:[Qr(l),Jr({padding:10,limiter:sa({offset:{mainAxis:h}})}),la(),..."false"===n?[]:[ta({padding:10,crossAxis:!1})],...i?[ea({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.offsetWidth}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=Rr(t),c=r||a?[...l?Dr(l):[],...e?Dr(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=ur(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:-Uo(h)+"px "+-Uo(r.clientWidth-(c+p))+"px "+-Uo(r.clientHeight-(h+g))+"px "+-Uo(c)+"px",threshold:Fo(0,No(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||Xr(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&&e&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),e&&v.observe(e));let u=n?jr(t):null;return n&&function e(){const o=jr(t);u&&!Xr(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 aa.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Zr,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=i.detectOverflow?i:{...i,detectOverflow:cr},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}=lr(l,o,n),p=o,g=0;const v={};for(let u=0;u<a.length;u++){const s=a[u];if(!s)continue;const{name:f,fn:b}=s,{x:m,y:_,data:x,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:v,rects:l,platform:d,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=_?_:h,v[f]={...v[f],...x},y&&g<50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=lr(l,p,n))),u=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:v}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});aa.set(o,()=>aa.delete(o)&&g())}let da;const na=({type:t})=>{if("mousedown"===t&&(da=!1),"scroll"===t&&!1===da&&(da=!0),"mouseup"===t&&da)for(let[e]of aa)e.showPopover()};oo("popover",()=>[eo(document,"mousedown scroll mouseup",na,!0),eo(document,"toggle ds-toggle-source",ia,Xs)]);const la=()=>({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),Js(e,"data-floating",t.placement),t}});var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,pa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ha(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&&ca(e,s,a),a};let ga=class extends yt{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 et`<slot></slot>`}};ga.styles=[Zs],pa([E({type:String,reflect:!0})],ga.prototype,"placement",2),pa([E({type:String,reflect:!0})],ga.prototype,"autoPlacement",2),pa([E({type:String,reflect:!0})],ga.prototype,"overscroll",2),ga=pa([P("sds-popover")],ga);const va=l`
2313
+ `;var Zs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Qs=(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&&Zs(e,s,a),a};let Xs=class extends mt{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 J`<slot></slot>`}};Xs.styles=[Ws],Qs([S({type:String,reflect:!0})],Xs.prototype,"placement",2),Qs([S({type:String,reflect:!0})],Xs.prototype,"autoPlacement",2),Qs([S({type:String,reflect:!0})],Xs.prototype,"overscroll",2),Xs=Qs([O("sds-popover")],Xs);const Js=d`
2311
2314
  :host {
2312
2315
  --_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
2313
2316
  --_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
@@ -2348,6 +2351,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2348
2351
 
2349
2352
  .sds-radio {
2350
2353
  display: grid;
2354
+ cursor: pointer;
2351
2355
  font-family: var(--_sds-radio-font-family);
2352
2356
  gap: var(--_sds-radio-block-gap) var(--_sds-radio-inline-gap);
2353
2357
  grid-template-areas: var(--_sds-radio-grid-template-areas);
@@ -2359,13 +2363,22 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2359
2363
  pointer-events: none;
2360
2364
  opacity: var(--_sds-radio-disabled-opacity);
2361
2365
  }
2366
+ }
2362
2367
 
2363
- &:has(:focus-visible) {
2364
- box-shadow: 0 0 0 var(--_sds-radio-focus-spacing) var(--_sds-radio-focus-color-inner);
2365
- outline: var(--_sds-radio-focus-outline-size) solid var(--_sds-radio-focus-color-outer);
2366
- outline-offset: var(--_sds-radio-focus-spacing);
2367
- border-radius: var(--_sds-radio-focus-radius);
2368
- }
2368
+ :host([readonly]) .sds-radio {
2369
+ cursor: default;
2370
+ }
2371
+
2372
+ /* The host carries role="radio" and takes focus, so the ring keys off it. */
2373
+ :host(:focus-visible) {
2374
+ outline: none;
2375
+ }
2376
+
2377
+ :host(:focus-visible) .sds-radio {
2378
+ box-shadow: 0 0 0 var(--_sds-radio-focus-spacing) var(--_sds-radio-focus-color-inner);
2379
+ outline: var(--_sds-radio-focus-outline-size) solid var(--_sds-radio-focus-color-outer);
2380
+ outline-offset: var(--_sds-radio-focus-spacing);
2381
+ border-radius: var(--_sds-radio-focus-radius);
2369
2382
  }
2370
2383
 
2371
2384
  .sds-radio--error {
@@ -2436,30 +2449,26 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2436
2449
  }
2437
2450
  }
2438
2451
 
2439
- &:hover {
2452
+ /*
2453
+ * The input is inert so it stays out of the accessibility tree, which also excludes
2454
+ * it from hit testing — it never matches :hover or :active itself. Both are driven
2455
+ * from the host instead, so hovering the label highlights the control too, the same
2456
+ * way clicking the label already selects it.
2457
+ */
2458
+ :host(:hover) &:not([readonly]) {
2440
2459
  --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2441
2460
  --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-action-hover, var(--sds-color-main-action-hover)));
2461
+ }
2442
2462
 
2443
- &[checked] {
2444
- --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-action-hover, var(--sds-color-main-action-hover)));
2445
- --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-action-hover, var(--sds-color-main-action-hover)));
2446
- --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2447
- }
2463
+ :host(:hover) &[checked]:not([readonly]) {
2464
+ --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-action-hover, var(--sds-color-main-action-hover)));
2465
+ --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-action-hover, var(--sds-color-main-action-hover)));
2466
+ --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2448
2467
  }
2449
2468
 
2450
- &:active:not([readonly], [checked]) {
2469
+ :host(:active) &:not([readonly], [checked]) {
2451
2470
  --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2452
2471
  --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-action-active, var(--sds-color-main-action-active)));
2453
-
2454
- &[checked] {
2455
- --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-action-active, var(--sds-color-main-action-active)));
2456
- --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-action-active, var(--sds-color-main-action-active)));
2457
- --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2458
- }
2459
- }
2460
-
2461
- &:focus-visible {
2462
- outline: none;
2463
2472
  }
2464
2473
 
2465
2474
  &.sds-radio__input--error {
@@ -2471,26 +2480,20 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2471
2480
  --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-alert-danger-action-contrast-default));
2472
2481
  }
2473
2482
 
2474
- &:hover {
2483
+ :host(:hover) &:not([readonly]) {
2475
2484
  --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2476
2485
  --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-alert-danger-action-hover));
2486
+ }
2477
2487
 
2478
- &[checked] {
2479
- --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-alert-danger-action-hover));
2480
- --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-alert-danger-action-hover));
2481
- --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2482
- }
2488
+ :host(:hover) &[checked]:not([readonly]) {
2489
+ --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-alert-danger-action-hover));
2490
+ --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-alert-danger-action-hover));
2491
+ --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2483
2492
  }
2484
2493
 
2485
- &:active:not([readonly], [checked]) {
2494
+ :host(:active) &:not([readonly], [checked]) {
2486
2495
  --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2487
2496
  --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-alert-danger-action-active));
2488
-
2489
- &[checked] {
2490
- --_sds-radio-input-background-color: var(--sds-radio-input-background-color, var(--sds-color-alert-danger-action-active));
2491
- --_sds-radio-input-border-color: var(--sds-radio-input-border-color, var(--sds-color-alert-danger-action-active));
2492
- --_sds-radio-input-dot-color: var(--sds-radio-input-dot-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2493
- }
2494
2497
  }
2495
2498
  }
2496
2499
  }
@@ -2516,32 +2519,28 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2516
2519
  margin-block-start: -1px;
2517
2520
  }
2518
2521
  }
2519
- `;var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ba=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?fa(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&&ua(e,s,a),a};let ma=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._hasSlottedLabel=!1,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleKeydown=t=>{if(!this.name||this.disabled||this.readOnly)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;const e=this.getRootNode(),s=Array.from(e.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=s.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:s.length-1;break;case"ArrowDown":case"ArrowRight":r=o<s.length-1?o+1:0;break;default:return}const a=s[r];a?.focus(),a?.click(),t.preventDefault()},this._handleChange=t=>{if(this.disabled||this.readOnly)return t.target.checked=this.checked??!1,void t.preventDefault();const e=t.target;this.checked=e.checked,this.checked&&this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}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.internals.role="radio",this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown)}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}_getGroupRadios(){if(!this.name)return[this];const t=this.getRootNode();return Array.from(t.querySelectorAll(`sds-radio[name="${this.name}"]`))}_updateGroupValidation(){const t=this._getGroupRadios(),e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return et`
2520
- <div class="${se(t)}">
2522
+ `;var to=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,so=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?eo(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&&to(e,s,a),a};let oo=class extends(se(At(ae(mt)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._hasSlottedLabel=!1,this._slottedLabelText="",this._rootNode=null,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._pendingGroupSync=!1,this._handleMouseDown=()=>{this.disabled||this.focus()},this._handleClick=()=>this._select(),this._handleKeydown=t=>{if(this.disabled)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;if(" "===t.key)return t.preventDefault(),void this.click();if(!this.name)return;const e=this._getGroupRadios().filter(t=>!t.disabled),s=e.indexOf(this);if(-1===s)return;let o;switch(t.key){case"ArrowUp":case"ArrowLeft":o=e[s>0?s-1:e.length-1];break;case"ArrowDown":case"ArrowRight":o=e[s<e.length-1?s+1:0];break;default:return}t.preventDefault(),e.length<2||(o?.focus(),o?.click())},this._handleFocus=t=>{t instanceof CustomEvent||(t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus"))},this._handleBlur=t=>{t instanceof CustomEvent||(t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur"))},this._handleLabelSlotChange=t=>{const e=t.target.assignedNodes();this._hasSlottedLabel=e.length>0,this._slottedLabelText=e.map(t=>t.textContent??"").join("").trim()}}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(){this._rootNode=this.getRootNode(),super.connectedCallback(),this.setAttribute("role","radio"),this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown),this.addEventListener("mousedown",this._handleMouseDown),this.addEventListener("click",this._handleClick),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur),this._scheduleGroupSync()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown),this.removeEventListener("mousedown",this._handleMouseDown),this.removeEventListener("click",this._handleClick),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur),this._syncGroup(this._getGroupRadios()),this._rootNode=null}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),t.has("name")&&(this._syncGroup(this._getGroupRadios(t.get("name"))),this._syncGroup(this.name?this._getGroupRadios():[this])),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1),(t.has("checked")||t.has("disabled"))&&this._updateGroupTabStops(this.name?this._getGroupRadios():[this]),this._syncHostAria()}_getGroupRadios(t=this.name,e=this._rootNode??this.getRootNode()){return t&&e?Array.from(e.querySelectorAll("sds-radio")).filter(e=>e.name===t):[]}_syncHostAria(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("aria-invalid",this.error?"true":"false"),this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required");const t=this._hasSlottedLabel?this._slottedLabelText:this.label??"";t?this.setAttribute("aria-label",t):this.removeAttribute("aria-label"),oo._supportsAriaElementReferences&&(this.internals.ariaDescribedByElements=this._helpTextElement?[this._helpTextElement]:[])}_select(){this.disabled||this.readOnly||this.checked||(this.checked=!0,this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change"))}_updateGroupPositions(t){t.forEach((e,s)=>{e.setAttribute("aria-posinset",String(s+1)),e.setAttribute("aria-setsize",String(t.length))})}_updateGroupTabStops(t){const e=t.filter(t=>!t.disabled),s=e.find(t=>t.checked)??e[0];for(const o of t)o.disabled?o.removeAttribute("tabindex"):o.tabIndex=o===s?0:-1}_syncGroup(t){this._updateGroupPositions(t),this._updateGroupTabStops(t)}_scheduleGroupSync(){this._pendingGroupSync||(this._pendingGroupSync=!0,queueMicrotask(()=>{this._pendingGroupSync=!1,this.isConnected&&this._syncGroup(this.name?this._getGroupRadios():[this])}))}_updateGroupValidation(){const t=this.name?this._getGroupRadios():[this],e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}focus(t){this.disabled||HTMLElement.prototype.focus.call(this,t)}blur(){HTMLElement.prototype.blur.call(this)}click(){this.disabled||this.readOnly||HTMLElement.prototype.click.call(this)}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)};return J`
2523
+ <div class="${te(t)}">
2521
2524
  <input
2522
2525
  id="control"
2523
2526
  type="radio"
2524
- name="${Rt(this.name)}"
2525
- value="${Rt(this.value)}"
2527
+ name="${qt(this.name)}"
2528
+ value="${qt(this.value)}"
2526
2529
  ?checked="${this.checked??!1}"
2527
2530
  .checked="${this.checked??!1}"
2528
2531
  ?disabled="${this.disabled??!1}"
2529
2532
  .disabled="${this.disabled??!1}"
2530
2533
  ?required="${this.required}"
2531
2534
  ?readonly="${this.readOnly}"
2532
- aria-describedby="${Rt(o)}"
2533
- aria-invalid="${this.error?"true":"false"}"
2534
- @change="${this._handleChange}"
2535
- @focus="${this._handleFocus}"
2536
- @blur="${this._handleBlur}"
2537
- class="${se(s)}"
2535
+ inert
2536
+ class="${te(s)}"
2538
2537
  />
2539
- <label class="sds-radio__label" for="control" ?hidden="${!e}">
2538
+ <label class="sds-radio__label" ?hidden="${!e}">
2540
2539
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
2541
2540
  </label>
2542
- ${this.helpText?et`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:rt}
2541
+ ${this.helpText?J`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:st}
2543
2542
  </div>
2544
- `}};ma.styles=[va],ba([E({type:Boolean,reflect:!0})],ma.prototype,"required",2),ba([E({type:String,reflect:!0})],ma.prototype,"label",2),ba([E({type:Boolean,reflect:!0,attribute:"hide-label"})],ma.prototype,"hideLabel",2),ba([E({type:String})],ma.prototype,"value",2),ba([E({type:Boolean,reflect:!0})],ma.prototype,"checked",2),ba([E({type:Boolean,reflect:!0})],ma.prototype,"error",2),ba([E({type:String,reflect:!0})],ma.prototype,"size",2),ba([E({type:String,attribute:"help-text"})],ma.prototype,"helpText",2),ba([E({type:Boolean,reflect:!0})],ma.prototype,"disabled",1),ba([E({type:Boolean,attribute:!1})],ma.prototype,"parentRequestDisabled",1),ba([O("#control")],ma.prototype,"control",2),ba([L()],ma.prototype,"_hasSlottedLabel",2),ma=ba([P("sds-radio")],ma);const _a=l`
2543
+ `}};oo.styles=[Js],oo.shadowRootOptions={...bt.shadowRootOptions,delegatesFocus:!1},oo._supportsAriaElementReferences="undefined"!=typeof ElementInternals&&"ariaDescribedByElements"in ElementInternals.prototype,so([S({type:Boolean,reflect:!0})],oo.prototype,"required",2),so([S({type:String,reflect:!0})],oo.prototype,"label",2),so([S({type:Boolean,reflect:!0,attribute:"hide-label"})],oo.prototype,"hideLabel",2),so([S({type:String})],oo.prototype,"value",2),so([S({type:Boolean,reflect:!0})],oo.prototype,"checked",2),so([S({type:Boolean,reflect:!0})],oo.prototype,"error",2),so([S({type:String,reflect:!0})],oo.prototype,"size",2),so([S({type:String,attribute:"help-text"})],oo.prototype,"helpText",2),so([S({type:Boolean,reflect:!0})],oo.prototype,"disabled",1),so([S({type:Boolean,attribute:!1})],oo.prototype,"parentRequestDisabled",1),so([A("#control")],oo.prototype,"control",2),so([A("#help-text")],oo.prototype,"_helpTextElement",2),so([C()],oo.prototype,"_hasSlottedLabel",2),so([C()],oo.prototype,"_slottedLabelText",2),oo=so([O("sds-radio")],oo);const ro=d`
2545
2544
  :host {
2546
2545
  --_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
2547
2546
  --_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
@@ -2639,18 +2638,25 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2639
2638
  --_sds-radio-group-help-text-font-size: var(--sds-radio-group-help-text-font-size, var(--sds-components-font-size-content-lg));
2640
2639
  --_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
2641
2640
  }
2642
- `;var xa=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,wa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ya(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&&xa(e,s,a),a};const ka=["disabled","errorMessage","readOnly","required","size"];let za=class extends(Ot(yt)){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([...ka])}}_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;ka.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 et`
2643
- <fieldset class="${se(t)}" aria-describedby="${Rt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2644
- ${this.legend?et`<legend class="sds-radio-group__legend">${this.readOnly?et`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:rt}${this.legend}</legend>`:rt}
2645
- ${this.helpText?et`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:rt}
2646
- <div class="${se(e)}" @change=${this._handleRadioChange}>
2641
+ `;var ao=Object.defineProperty,io=Object.getOwnPropertyDescriptor,no=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?io(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&&ao(e,s,a),a};const lo=["disabled","errorMessage","readOnly","required","size"];let co=class extends(At(mt)){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([...lo])}}_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;lo.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 J`
2642
+ <fieldset class="${te(t)}" role="none">
2643
+ ${this.legend?J`<legend id="group-legend" class="sds-radio-group__legend">${this.readOnly?J`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:st}${this.legend}</legend>`:st}
2644
+ ${this.helpText?J`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:st}
2645
+ <div
2646
+ class="${te(e)}"
2647
+ role="radiogroup"
2648
+ aria-labelledby="${qt(this.legend?"group-legend":void 0)}"
2649
+ aria-describedby="${qt(s)}"
2650
+ aria-invalid="${this.errorMessage?"true":"false"}"
2651
+ @change=${this._handleRadioChange}
2652
+ >
2647
2653
  <slot @slotchange=${this._handleSlotChange}></slot>
2648
2654
  </div>
2649
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger">
2655
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger">
2650
2656
  <p slot="message">${this.errorMessage}</p>
2651
- </sds-alert>`:rt}
2657
+ </sds-alert>`:st}
2652
2658
  </fieldset>
2653
- `}get value(){return{selectedValue:this._selectedValue}}};za.styles=[_a],wa([E({type:String})],za.prototype,"legend",2),wa([E({type:String,attribute:"help-text"})],za.prototype,"helpText",2),wa([E({type:String,attribute:"error-message"})],za.prototype,"errorMessage",2),wa([E({type:Boolean,attribute:"readonly",reflect:!0})],za.prototype,"readOnly",2),wa([E({type:String})],za.prototype,"direction",2),wa([E({type:Boolean,reflect:!0})],za.prototype,"disabled",2),wa([E({type:Boolean,reflect:!0})],za.prototype,"required",2),wa([E({type:String,reflect:!0})],za.prototype,"size",2),wa([L()],za.prototype,"_selectedValue",2),wa([O("slot")],za.prototype,"_slotElement",2),za=wa([P("sds-radio-group")],za);const $a=l`
2659
+ `}get value(){return{selectedValue:this._selectedValue}}};co.styles=[ro],no([S({type:String})],co.prototype,"legend",2),no([S({type:String,attribute:"help-text"})],co.prototype,"helpText",2),no([S({type:String,attribute:"error-message"})],co.prototype,"errorMessage",2),no([S({type:Boolean,attribute:"readonly",reflect:!0})],co.prototype,"readOnly",2),no([S({type:String})],co.prototype,"direction",2),no([S({type:Boolean,reflect:!0})],co.prototype,"disabled",2),no([S({type:Boolean,reflect:!0})],co.prototype,"required",2),no([S({type:String,reflect:!0})],co.prototype,"size",2),no([C()],co.prototype,"_selectedValue",2),no([A("slot")],co.prototype,"_slotElement",2),co=no([O("sds-radio-group")],co);const ho=d`
2654
2660
  :host {
2655
2661
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
2656
2662
  --_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2821,12 +2827,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2821
2827
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
2822
2828
  --_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-lg));
2823
2829
  }
2824
- `;var Sa=Object.defineProperty,Ca=(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&&Sa(e,s,a),a};const Ea=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},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;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)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 et`<hr />`;default:return rt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return et` <option value=${Rt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return et` <optgroup label=${Rt(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,s=this._hasSlottedLabel||Boolean(this.label);return et`
2825
- <div class="${se(t)}">
2830
+ `;var po=Object.defineProperty,go=(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&&po(e,s,a),a};const vo=class extends(se(At(ae(mt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},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;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)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 J`<hr />`;default:return st}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return J` <option value=${qt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return J` <optgroup label=${qt(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,s=this._hasSlottedLabel||Boolean(this.label);return J`
2831
+ <div class="${te(t)}">
2826
2832
  <label for="control" class="sds-select__label" ?hidden="${!s}">
2827
- ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
2833
+ ${this.readOnly?J`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
2828
2834
  </label>
2829
- ${this.helpText?et`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:rt}
2835
+ ${this.helpText?J`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:st}
2830
2836
 
2831
2837
  <div hidden>
2832
2838
  <slot @slotchange=${this._handleSlotChange}></slot>
@@ -2835,12 +2841,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2835
2841
  <select
2836
2842
  id="control"
2837
2843
  class="sds-select__control"
2838
- name=${Rt(this.name)}
2844
+ name=${qt(this.name)}
2839
2845
  ?disabled=${this.disabled}
2840
2846
  ?required=${this.required}
2841
- aria-readonly=${Rt(this.readOnly)}
2847
+ aria-readonly=${qt(this.readOnly)}
2842
2848
  aria-invalid=${this.errorMessage?"true":"false"}
2843
- aria-describedby=${Rt(e)}
2849
+ aria-describedby=${qt(e)}
2844
2850
  @keydown=${this._handleKeyDown}
2845
2851
  @change=${this._handleChange}
2846
2852
  @focus=${this._handleFocus}
@@ -2849,13 +2855,13 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2849
2855
  ${this.renderFromLightDom()}
2850
2856
  </select>
2851
2857
 
2852
- ${this.errorMessage?et`
2858
+ ${this.errorMessage?J`
2853
2859
  <sds-alert id="error-message" variant="secondary" data-palette="danger">
2854
2860
  <p slot="message">${this.errorMessage}</p>
2855
2861
  </sds-alert>
2856
- `:rt}
2862
+ `:st}
2857
2863
  </div>
2858
- `}};Ea.styles=[$a];let La=Ea;Ca([E({type:String,reflect:!0})],La.prototype,"label"),Ca([E({type:String,attribute:!1})],La.prototype,"value"),Ca([E({type:String,attribute:"default-value"})],La.prototype,"defaultValue"),Ca([E({type:String,attribute:"help-text",reflect:!0})],La.prototype,"helpText"),Ca([E({type:String,attribute:"error-message",reflect:!0})],La.prototype,"errorMessage"),Ca([E({type:Boolean,reflect:!0})],La.prototype,"required"),Ca([E({type:String,reflect:!0})],La.prototype,"size"),Ca([O("#control")],La.prototype,"control"),Ca([L()],La.prototype,"_hasSlottedLabel");var Aa=Object.getOwnPropertyDescriptor;let Oa=class extends La{};Oa=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Aa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-select")],Oa);const Ta=l`
2864
+ `}};vo.styles=[ho];let uo=vo;go([S({type:String,reflect:!0})],uo.prototype,"label"),go([S({type:String,attribute:!1})],uo.prototype,"value"),go([S({type:String,attribute:"default-value"})],uo.prototype,"defaultValue"),go([S({type:String,attribute:"help-text",reflect:!0})],uo.prototype,"helpText"),go([S({type:String,attribute:"error-message",reflect:!0})],uo.prototype,"errorMessage"),go([S({type:Boolean,reflect:!0})],uo.prototype,"required"),go([S({type:String,reflect:!0})],uo.prototype,"size"),go([A("#control")],uo.prototype,"control"),go([C()],uo.prototype,"_hasSlottedLabel");var fo=Object.getOwnPropertyDescriptor;let bo=class extends uo{};bo=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?fo(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-select")],bo);const _o=d`
2859
2865
  :host {
2860
2866
  display: flex;
2861
2867
  flex-direction: row;
@@ -2890,7 +2896,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2890
2896
 
2891
2897
  --sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
2892
2898
  }
2893
- `;var Pa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Ma=(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&&Pa(e,s,a),a};let qa=class extends(Ot(yt)){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 et`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};qa.styles=[Ta],Ma([E({type:String,reflect:!0})],qa.prototype,"orientation",2),Ma([T({selector:"sds-stepper-step",flatten:!0})],qa.prototype,"steps",2),qa=Ma([P("sds-stepper")],qa);const Ra=l`
2899
+ `;var mo=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,yo=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?xo(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&&mo(e,s,a),a};let wo=class extends(At(mt)){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 J`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};wo.styles=[_o],yo([S({type:String,reflect:!0})],wo.prototype,"orientation",2),yo([L({selector:"sds-stepper-step",flatten:!0})],wo.prototype,"steps",2),wo=yo([O("sds-stepper")],wo);const ko=d`
2894
2900
  :host {
2895
2901
  /* Sizing */
2896
2902
  --_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 28px);
@@ -3151,21 +3157,21 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3151
3157
  --_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
3152
3158
  --_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
3153
3159
  }
3154
- `;var Va=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Ha=(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&&Va(e,s,a),a};let ja=class extends(Ot(yt)){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=()=>et`<div class="sds-stepper-step__step--static">
3160
+ `;var zo=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,So=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?$o(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&&zo(e,s,a),a};let Co=class extends(At(mt)){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=()=>J`<div class="sds-stepper-step__step--static">
3155
3161
  <span class="sds-stepper-step__counter"></span>
3156
3162
  <div class="sds-stepper-step__label"><slot></slot></div>
3157
- </div>`,this._renderInteractiveStep=()=>et`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
3163
+ </div>`,this._renderInteractiveStep=()=>J`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
3158
3164
  <span class="sds-stepper-step__counter"></span>
3159
3165
  <div class="sds-stepper-step__label"><slot></slot></div>
3160
- </button>`,this.internals=this.attachInternals()}render(){return this.interactive?et`<div class="sds-stepper-step">
3166
+ </button>`,this.internals=this.attachInternals()}render(){return this.interactive?J`<div class="sds-stepper-step">
3161
3167
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
3162
3168
  ${this._renderInteractiveStep()}
3163
3169
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
3164
- </div>`:et`<div class="sds-stepper-step" role="tab" aria-disabled="true" tabindex="-1" aria-selected="false">
3170
+ </div>`:J`<div class="sds-stepper-step" role="tab" aria-disabled="true" tabindex="-1" aria-selected="false">
3165
3171
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
3166
3172
  ${this._renderNonInteractiveStep()}
3167
3173
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
3168
- </div>`}};ja.styles=[Ra],ja.shadowRootOptions={...yt.shadowRootOptions,delegatesFocus:!0},Ha([E({type:Boolean,reflect:!0})],ja.prototype,"complete",2),Ha([E({type:Boolean,reflect:!0})],ja.prototype,"interactive",2),Ha([E({type:Boolean,reflect:!0})],ja.prototype,"active",2),ja=Ha([P("sds-stepper-step")],ja);const Na=l`
3174
+ </div>`}};Co.styles=[ko],Co.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0},So([S({type:Boolean,reflect:!0})],Co.prototype,"complete",2),So([S({type:Boolean,reflect:!0})],Co.prototype,"interactive",2),So([S({type:Boolean,reflect:!0})],Co.prototype,"active",2),Co=So([O("sds-stepper-step")],Co);const Eo=d`
3169
3175
  :host {
3170
3176
  --_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
3171
3177
  --_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3315,7 +3321,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3315
3321
  .sds-switch__input:checked::before {
3316
3322
  --_sds-switch-button-position: calc(var(--_sds-switch-width) - var(--_sds-switch-button-size) - var(--_sds-switch-button-gap) - var(--_sds-switch-border-width));
3317
3323
  }
3318
- `;var Fa=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Ua=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ia(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 Wa=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._hasSlottedLabel=!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(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}get type(){return"checkbox"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=et`<input
3324
+ `;var Ao=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Oo=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Lo(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&&Ao(e,s,a),a};let Po=class extends(se(At(ae(mt)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._hasSlottedLabel=!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(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}get type(){return"checkbox"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=J`<input
3319
3325
  class="sds-switch__input"
3320
3326
  id="control"
3321
3327
  type="checkbox"
@@ -3324,13 +3330,13 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3324
3330
  ?disabled="${this.disabled}"
3325
3331
  .checked="${this.checked}"
3326
3332
  ?checked="${this.checked}"
3327
- name="${Rt(this.name)}"
3333
+ name="${qt(this.name)}"
3328
3334
  @change="${this._handleChange}"
3329
3335
  @focus="${this._handleFocus}"
3330
3336
  @blur="${this._handleBlur}"
3331
- />`,s=this.readOnly?et`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:rt,o=this._hasSlottedLabel||Boolean(this.label),r=et`<label class="${se(t)}" for="control" ?hidden="${!o}">
3337
+ />`,s=this.readOnly?J`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:st,o=this._hasSlottedLabel||Boolean(this.label),r=J`<label class="${te(t)}" for="control" ?hidden="${!o}">
3332
3338
  ${s}<slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
3333
- </label>`;return et`<div class="${se({"sds-switch":!0})}">${this.reverse?[r,e]:[e,r]}</div>`}};Wa.styles=[Na],Ua([E({type:String,reflect:!0})],Wa.prototype,"label",2),Ua([E({type:Boolean,reflect:!0,attribute:"hide-label"})],Wa.prototype,"hideLabel",2),Ua([E({type:Boolean,reflect:!0})],Wa.prototype,"reverse",2),Ua([E({type:Boolean,reflect:!0})],Wa.prototype,"checked",2),Ua([E({type:String,reflect:!0})],Wa.prototype,"size",2),Ua([O("#control")],Wa.prototype,"control",2),Ua([L()],Wa.prototype,"_hasSlottedLabel",2),Wa=Ua([P("sds-switch")],Wa);const Ka=l`
3339
+ </label>`;return J`<div class="${te({"sds-switch":!0})}">${this.reverse?[r,e]:[e,r]}</div>`}};Po.styles=[Eo],Oo([S({type:String,reflect:!0})],Po.prototype,"label",2),Oo([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Po.prototype,"hideLabel",2),Oo([S({type:Boolean,reflect:!0})],Po.prototype,"reverse",2),Oo([S({type:Boolean,reflect:!0})],Po.prototype,"checked",2),Oo([S({type:String,reflect:!0})],Po.prototype,"size",2),Oo([A("#control")],Po.prototype,"control",2),Oo([C()],Po.prototype,"_hasSlottedLabel",2),Po=Oo([O("sds-switch")],Po);const Do=d`
3334
3340
  :host {
3335
3341
  --_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
3336
3342
  --_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3391,10 +3397,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3391
3397
  --_sds-tag-font-size: var(--sds-tag-font-size, var(--sds-components-font-size-content-lg));
3392
3398
  --_sds-tag-line-height: var(--sds-tag-line-height, var(--sds-components-line-height-squeezed-lg));
3393
3399
  }
3394
- `;var Ga=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Za=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ya(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&&Ga(e,s,a),a};let Xa=class extends yt{constructor(){super(...arguments),this.size="md"}render(){return et`<span class="${se({"sds-tag":!0})}">
3400
+ `;var To=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Mo=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?qo(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&&To(e,s,a),a};let Vo=class extends mt{constructor(){super(...arguments),this.size="md"}render(){return J`<span class="${te({"sds-tag":!0})}">
3395
3401
  <slot></slot>
3396
- </span>`}};Xa.styles=[Ka],Za([E({type:String,reflect:!0})],Xa.prototype,"size",2),Xa=Za([P("sds-tag")],Xa);const Qa=l`
3397
- ${n('[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;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_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-radius:var(--dsc-tooltip-border-radius);border:0;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}:host:after{content:"";box-sizing:border-box;height:var(--_dsc-tooltip-safearea-height,0);width:var(--_dsc-tooltip-safearea-width,0);translate:var(--_dsc-tooltip-safearea-translate);position:absolute;left:var(--_ds-floating-arrow-x,50%);top:var(--_ds-floating-arrow-y,100%)}:host[data-floating=bottom]:after,:host[data-floating=top]:after{top:100%;left:0;width:100%;height:var(--dsc-tooltip-arrow-size)}:host[data-floating=left]:after,:host[data-floating=right]:after{top:0;left:100%;width:var(--dsc-tooltip-arrow-size);height:100%}: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}}')}
3402
+ </span>`}};Vo.styles=[Do],Mo([S({type:String,reflect:!0})],Vo.prototype,"size",2),Vo=Mo([O("sds-tag")],Vo);const Bo=d`
3403
+ ${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;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_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-radius:var(--dsc-tooltip-border-radius);border:0;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}:host:after{content:"";box-sizing:border-box;height:var(--_dsc-tooltip-safearea-height,0);width:var(--_dsc-tooltip-safearea-width,0);translate:var(--_dsc-tooltip-safearea-translate);position:absolute;left:var(--_ds-floating-arrow-x,50%);top:var(--_ds-floating-arrow-y,100%)}:host[data-floating=bottom]:after,:host[data-floating=top]:after{top:100%;left:0;width:100%;height:var(--dsc-tooltip-arrow-size)}:host[data-floating=left]:after,:host[data-floating=right]:after{top:0;left:100%;width:var(--dsc-tooltip-arrow-size);height:100%}: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}}')}
3398
3404
 
3399
3405
  :host {
3400
3406
  --dsc-tooltip-background: var(--sds-tooltip-background, var(--sds-color-neutral-text-default));
@@ -3476,7 +3482,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3476
3482
  border: 1px solid CanvasText;
3477
3483
  }
3478
3484
  }
3479
- `;var Ja=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ti(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&&Ja(e,s,a),a};let si=class extends(Ot(yt)){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 et`<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)}};si.styles=[Qa],ei([E({type:String,reflect:!0})],si.prototype,"placement",2),si=ei([P("sds-tooltip")],si);const oi=l`
3485
+ `;var Ro=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Io=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?jo(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&&Ro(e,s,a),a};let No=class extends(At(mt)){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 J`<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)}};No.styles=[Bo],Io([S({type:String,reflect:!0})],No.prototype,"placement",2),No=Io([O("sds-tooltip")],No);const Ho=d`
3480
3486
  :host {
3481
3487
  --_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
3482
3488
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3511,6 +3517,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3511
3517
  --_sds-text-color: var(--sds-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
3512
3518
  }
3513
3519
 
3520
+ :host([subtle]) {
3521
+ --_sds-text-color: var(--sds-text-color, var(--sds-color-text-subtle, var(--sds-color-neutral-text-subtle)));
3522
+ }
3523
+
3514
3524
  /* Mobile */
3515
3525
  :host {
3516
3526
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3891,7 +3901,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3891
3901
  --_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-leadtext-xl-strong-tall-desktop-line-height));
3892
3902
  }
3893
3903
  }
3894
- `;var ri=Object.defineProperty,ai=(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&&ri(e,s,a),a};const ii=class extends yt{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return et`<p><slot></slot></p>`}};ii.styles=[oi];let di=ii;ai([E({type:String,reflect:!0})],di.prototype,"size"),ai([E({type:Boolean,reflect:!0})],di.prototype,"strong"),ai([E({type:Boolean,reflect:!0})],di.prototype,"tall");var ni=Object.getOwnPropertyDescriptor;let li=class extends di{};li=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ni(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-text")],li);const ci=l`
3904
+ `;var Fo=Object.defineProperty,Uo=(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&&Fo(e,s,a),a};const Go=class extends mt{constructor(){super(...arguments),this.size="md",this.strong=!1,this.subtle=!1,this.tall=!1}render(){return J`<p><slot></slot></p>`}};Go.styles=[Ho];let Ko=Go;Uo([S({type:String,reflect:!0})],Ko.prototype,"size"),Uo([S({type:Boolean,reflect:!0})],Ko.prototype,"strong"),Uo([S({type:Boolean,reflect:!0})],Ko.prototype,"subtle"),Uo([S({type:Boolean,reflect:!0})],Ko.prototype,"tall");var Wo=Object.getOwnPropertyDescriptor;let Zo=class extends Ko{};Zo=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Wo(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-text")],Zo);const Yo=d`
3895
3905
  :host {
3896
3906
  --_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3897
3907
  --_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -4063,32 +4073,32 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4063
4073
  --sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
4064
4074
  }
4065
4075
  }
4066
- `;var hi=Object.defineProperty,pi=(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&&hi(e,s,a),a};const gi=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._hasSlottedLabel=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().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){for(const t of Array.from(this.form?.elements??[]))if(t instanceof HTMLButtonElement||t instanceof HTMLInputElement){if("submit"!==t.type)continue;if(t.disabled)return;return void t.click()}this.form?.requestSubmit()}}}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&&(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,s=this._hasSlottedLabel||Boolean(this.label);return et`
4067
- <div class="${se(t)}">
4076
+ `;var Qo=Object.defineProperty,Xo=(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&&Qo(e,s,a),a};const Jo=class extends(se(At(ae(mt)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._hasSlottedLabel=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().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){for(const t of Array.from(this.form?.elements??[]))if(t instanceof HTMLButtonElement||t instanceof HTMLInputElement){if("submit"!==t.type)continue;if(t.disabled)return;return void t.click()}this.form?.requestSubmit()}}}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&&(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,s=this._hasSlottedLabel||Boolean(this.label);return J`
4077
+ <div class="${te(t)}">
4068
4078
  <label for="sds-textfield" class="sds-textfield__label" ?hidden="${!s}">
4069
- ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}
4079
+ ${this.readOnly?J`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}
4070
4080
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
4071
4081
  </label>
4072
- ${this.helpText?et`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:rt}
4082
+ ${this.helpText?J`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:st}
4073
4083
  <div class="sds-textfield__input-container">
4074
4084
  <input
4075
4085
  part="input"
4076
4086
  class="sds-textfield__input"
4077
- type="${Rt(this.type)}"
4087
+ type="${qt(this.type)}"
4078
4088
  id="sds-textfield"
4079
4089
  ?disabled="${this.disabled}"
4080
4090
  ?readonly="${this.readOnly}"
4081
- placeholder="${Rt(this.placeholder)}"
4091
+ placeholder="${qt(this.placeholder)}"
4082
4092
  .value="${this.value??""}"
4083
- name="${Rt(this.name)}"
4084
- autocomplete="${Rt(this.autocomplete)}"
4093
+ name="${qt(this.name)}"
4094
+ autocomplete="${qt(this.autocomplete)}"
4085
4095
  ?required="${this.required}"
4086
- pattern="${Rt(this.pattern)}"
4087
- min="${Rt(this.min)}"
4088
- minlength="${Rt(this.minlength)}"
4089
- max="${Rt(this.max)}"
4090
- maxlength="${Rt(this.maxlength)}"
4091
- aria-describedby="${Rt(e)}"
4096
+ pattern="${qt(this.pattern)}"
4097
+ min="${qt(this.min)}"
4098
+ minlength="${qt(this.minlength)}"
4099
+ max="${qt(this.max)}"
4100
+ maxlength="${qt(this.maxlength)}"
4101
+ aria-describedby="${qt(e)}"
4092
4102
  aria-invalid="${this.errorMessage?"true":"false"}"
4093
4103
  @input="${this._handleInputChange}"
4094
4104
  @change="${this._handleInputChange}"
@@ -4099,9 +4109,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4099
4109
  />
4100
4110
  <slot name="after" @slotchange="${this.handleSlotChange}" aria-hidden="true"></slot>
4101
4111
  </div>
4102
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
4112
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
4103
4113
  </div>
4104
- `}};gi.styles=[ci];let vi=gi;pi([E({type:String,reflect:!0})],vi.prototype,"type"),pi([E({type:String})],vi.prototype,"value"),pi([E({type:String,reflect:!0})],vi.prototype,"label"),pi([E({type:String,reflect:!0})],vi.prototype,"placeholder"),pi([E({type:String,attribute:"help-text",reflect:!0})],vi.prototype,"helpText"),pi([E({type:String,attribute:"error-message",reflect:!0})],vi.prototype,"errorMessage"),pi([E({type:String,reflect:!0})],vi.prototype,"autocomplete"),pi([E({type:Boolean,reflect:!0})],vi.prototype,"required"),pi([E({type:String,reflect:!0})],vi.prototype,"pattern"),pi([E({type:Number,reflect:!0})],vi.prototype,"minlength"),pi([E({type:Number,reflect:!0})],vi.prototype,"maxlength"),pi([E({type:String,reflect:!0})],vi.prototype,"min"),pi([E({type:String,reflect:!0})],vi.prototype,"max"),pi([E({type:String,reflect:!0})],vi.prototype,"size"),pi([L()],vi.prototype,"hasIcon"),pi([L()],vi.prototype,"_hasSlottedLabel"),pi([O("#sds-textfield")],vi.prototype,"control");var ui=Object.getOwnPropertyDescriptor;let fi=class extends vi{};fi=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ui(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-textfield")],fi);const bi=l`
4114
+ `}};Jo.styles=[Yo];let tr=Jo;Xo([S({type:String,reflect:!0})],tr.prototype,"type"),Xo([S({type:String})],tr.prototype,"value"),Xo([S({type:String,reflect:!0})],tr.prototype,"label"),Xo([S({type:String,reflect:!0})],tr.prototype,"placeholder"),Xo([S({type:String,attribute:"help-text",reflect:!0})],tr.prototype,"helpText"),Xo([S({type:String,attribute:"error-message",reflect:!0})],tr.prototype,"errorMessage"),Xo([S({type:String,reflect:!0})],tr.prototype,"autocomplete"),Xo([S({type:Boolean,reflect:!0})],tr.prototype,"required"),Xo([S({type:String,reflect:!0})],tr.prototype,"pattern"),Xo([S({type:Number,reflect:!0})],tr.prototype,"minlength"),Xo([S({type:Number,reflect:!0})],tr.prototype,"maxlength"),Xo([S({type:String,reflect:!0})],tr.prototype,"min"),Xo([S({type:String,reflect:!0})],tr.prototype,"max"),Xo([S({type:String,reflect:!0})],tr.prototype,"size"),Xo([C()],tr.prototype,"hasIcon"),Xo([C()],tr.prototype,"_hasSlottedLabel"),Xo([A("#sds-textfield")],tr.prototype,"control");var er=Object.getOwnPropertyDescriptor;let sr=class extends tr{};sr=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?er(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([O("sds-textfield")],sr);const or=d`
4105
4115
  :host {
4106
4116
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
4107
4117
  --_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -4115,6 +4125,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4115
4125
  --_sds-textarea-font-weight: var(--sds-textarea-font-weight, var(--sds-typography-font-weight-regular));
4116
4126
  --_sds-textarea-line-height: var(--sds-textarea-line-height, var(--sds-components-line-height-tall-content-md));
4117
4127
  --_sds-textarea-min-height: var(--sds-textarea-height, var(--sds-components-button-md));
4128
+ --_sds-textarea-max-height: var(--sds-textarea-max-height, none);
4118
4129
 
4119
4130
  --_sds-textarea-gap: var(--sds-textarea-gap, var(--sds-spacing-3xs));
4120
4131
  --_sds-textarea-padding-block: var(--sds-textarea-padding-block, var(--sds-spacing-2xs));
@@ -4177,6 +4188,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4177
4188
  background: var(--_sds-textarea-background-color);
4178
4189
  cursor: var(--_sds-textarea-cursor);
4179
4190
  max-width: var(--sds-typography-max-line-width);
4191
+ max-height: var(--_sds-textarea-max-height);
4180
4192
  width: 100%;
4181
4193
  min-height: var(--_sds-textarea-min-height);
4182
4194
  resize: var(--_sds-textarea-resize);
@@ -4302,16 +4314,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4302
4314
  --_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
4303
4315
  --_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
4304
4316
  }
4305
- `;var mi=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,xi=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?_i(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&&mi(e,s,a),a};let yi=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.autosize=!1,this.required=!1,this.size="md",this._hasSlottedLabel=!1,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")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}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&&(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 rt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?et`<sds-alert variant="secondary" data-palette="danger"
4317
+ `;var rr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ir=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ar(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&&rr(e,s,a),a};let dr=class extends(se(At(ae(mt)))){constructor(){super(...arguments),this.autosize=!1,this.required=!1,this.size="md",this._hasSlottedLabel=!1,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")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}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&&(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 st;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?J`<sds-alert variant="secondary" data-palette="danger"
4306
4318
  ><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
4307
- >`:et`<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=this._hasSlottedLabel||Boolean(this.label),s={"sds-textarea":!0,"sds-textarea--error":t},o=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return et`
4308
- <div class="${se(s)}">
4309
- <div style="${e||this.helpText?rt:"display: none"}">
4319
+ >`:J`<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=this._hasSlottedLabel||Boolean(this.label),s={"sds-textarea":!0,"sds-textarea--error":t},o=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return J`
4320
+ <div class="${te(s)}">
4321
+ <div style="${e||this.helpText?st:"display: none"}">
4310
4322
  <label for="sds-textarea" class="sds-textarea__label" ?hidden="${!e}">
4311
- ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}
4323
+ ${this.readOnly?J`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}
4312
4324
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
4313
4325
  </label>
4314
- ${this.helpText?et`<p id="help-text" class="sds-textarea__help-text">${this.helpText}</p>`:rt}
4326
+ ${this.helpText?J`<p id="help-text" class="sds-textarea__help-text">${this.helpText}</p>`:st}
4315
4327
  </div>
4316
4328
  <div class="sds-textarea__input-container">
4317
4329
  <textarea
@@ -4319,17 +4331,17 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4319
4331
  id="sds-textarea"
4320
4332
  ?disabled="${this.disabled}"
4321
4333
  ?readonly="${this.readOnly}"
4322
- placeholder="${Rt(this.placeholder)}"
4334
+ placeholder="${qt(this.placeholder)}"
4323
4335
  .value="${this.value??""}"
4324
4336
  .autocomplete="${this.autocomplete}"
4325
- name="${Rt(this.name)}"
4337
+ name="${qt(this.name)}"
4326
4338
  ?required="${this.required}"
4327
- rows="${Rt(this.rows)}"
4328
- cols="${Rt(this.cols)}"
4329
- wrap="${Rt(this.wrap)}"
4330
- minlength="${Rt(this.minlength)}"
4331
- maxlength="${Rt(this.maxlength)}"
4332
- aria-describedby="${Rt(o)}"
4339
+ rows="${qt(this.rows)}"
4340
+ cols="${qt(this.cols)}"
4341
+ wrap="${qt(this.wrap)}"
4342
+ minlength="${qt(this.minlength)}"
4343
+ maxlength="${qt(this.maxlength)}"
4344
+ aria-describedby="${qt(o)}"
4333
4345
  aria-invalid="${t?"true":"false"}"
4334
4346
  @input="${this._handleInputChange}"
4335
4347
  @change="${this._handleInputChange}"
@@ -4338,7 +4350,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4338
4350
  @blur="${this._handleBlur}"
4339
4351
  ></textarea>
4340
4352
  </div>
4341
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
4353
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
4342
4354
  ${this.renderCharacterCounter()}
4343
4355
  </div>
4344
- `}};yi.styles=[bi],xi([E({type:String})],yi.prototype,"value",2),xi([E({type:String,reflect:!0})],yi.prototype,"label",2),xi([E({type:String,reflect:!0})],yi.prototype,"placeholder",2),xi([E({type:String,attribute:"help-text",reflect:!0})],yi.prototype,"helpText",2),xi([E({type:String,attribute:"error-message",reflect:!0})],yi.prototype,"errorMessage",2),xi([E({type:String,reflect:!0})],yi.prototype,"autocomplete",2),xi([E({type:Boolean,reflect:!0})],yi.prototype,"autosize",2),xi([E({type:Boolean,reflect:!0})],yi.prototype,"required",2),xi([E({type:Number,reflect:!0})],yi.prototype,"rows",2),xi([E({type:Number,reflect:!0})],yi.prototype,"cols",2),xi([E({type:String,reflect:!0})],yi.prototype,"wrap",2),xi([E({type:Number,reflect:!0})],yi.prototype,"minlength",2),xi([E({type:Number,reflect:!0})],yi.prototype,"maxlength",2),xi([E({type:Number,reflect:!0})],yi.prototype,"counter",2),xi([E({type:String,reflect:!0})],yi.prototype,"size",2),xi([O("#sds-textarea")],yi.prototype,"control",2),xi([L()],yi.prototype,"_hasSlottedLabel",2),yi=xi([P("sds-textarea")],yi);export{_e as SDSAlert,be as SDSButton,$e as SDSCard,Ae as SDSCheckbox,qe as SDSCheckboxGroup,je as SDSChip,ts as SDSDetails,as as SDSDetailsGroup,gs as SDSDialog,Ye as SDSEnvironmentBanner,xs as SDSHeading,ee as SDSIcon,Cs as SDSInternalHeader,Ts as SDSLoader,Bs as SDSNotification,ga as SDSPopover,Is as SDSProcess,Ys as SDSProcessStep,ma as SDSRadio,za as SDSRadioGroup,Oa as SDSSelect,qa as SDSStepper,ja as SDSStepperStep,Wa as SDSSwitch,Xa as SDSTag,li as SDSText,yi as SDSTextArea,fi as SDSTextField,si as SDSTooltip};
4356
+ `}};dr.styles=[or],ir([S({type:String})],dr.prototype,"value",2),ir([S({type:String,reflect:!0})],dr.prototype,"label",2),ir([S({type:String,reflect:!0})],dr.prototype,"placeholder",2),ir([S({type:String,attribute:"help-text",reflect:!0})],dr.prototype,"helpText",2),ir([S({type:String,attribute:"error-message",reflect:!0})],dr.prototype,"errorMessage",2),ir([S({type:String,reflect:!0})],dr.prototype,"autocomplete",2),ir([S({type:Boolean,reflect:!0})],dr.prototype,"autosize",2),ir([S({type:Boolean,reflect:!0})],dr.prototype,"required",2),ir([S({type:Number,reflect:!0})],dr.prototype,"rows",2),ir([S({type:Number,reflect:!0})],dr.prototype,"cols",2),ir([S({type:String,reflect:!0})],dr.prototype,"wrap",2),ir([S({type:Number,reflect:!0})],dr.prototype,"minlength",2),ir([S({type:Number,reflect:!0})],dr.prototype,"maxlength",2),ir([S({type:Number,reflect:!0})],dr.prototype,"counter",2),ir([S({type:String,reflect:!0})],dr.prototype,"size",2),ir([A("#sds-textarea")],dr.prototype,"control",2),ir([C()],dr.prototype,"_hasSlottedLabel",2),dr=ir([O("sds-textarea")],dr);export{be as SDSAlert,ue as SDSButton,ke as SDSCard,Ee as SDSCheckbox,Te as SDSCheckboxGroup,Re as SDSChip,Xe as SDSDetails,os as SDSDetailsGroup,hs as SDSDialog,Ke as SDSEnvironmentBanner,_s as SDSHeading,Jt as SDSIcon,$s as SDSInternalHeader,Ls as SDSLoader,Vs as SDSNotification,Xs as SDSPopover,Ns as SDSProcess,Ks as SDSProcessStep,oo as SDSRadio,co as SDSRadioGroup,bo as SDSSelect,wo as SDSStepper,Co as SDSStepperStep,Po as SDSSwitch,Vo as SDSTag,Zo as SDSText,dr as SDSTextArea,sr as SDSTextField,No as SDSTooltip};