@politiet/sheriff-web-components 2.11.1 → 2.13.0

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 (47) hide show
  1. package/custom-elements.json +69 -1
  2. package/dist/frameworks/vue.d.ts +79 -30
  3. package/dist/frameworks/vue.d.ts.map +1 -1
  4. package/dist/sds-alert/sds-alert.component.js +3 -3
  5. package/dist/sds-alert/sds-alert.component.js.map +1 -1
  6. package/dist/sds-alert/sds-alert.styles.d.ts.map +1 -1
  7. package/dist/sds-alert/sds-alert.styles.js +0 -6
  8. package/dist/sds-alert/sds-alert.styles.js.map +1 -1
  9. package/dist/sds-button/sds-button.component.d.ts +1 -0
  10. package/dist/sds-button/sds-button.component.d.ts.map +1 -1
  11. package/dist/sds-button/sds-button.component.js.map +1 -1
  12. package/dist/sds-button/sds-button.styles.d.ts.map +1 -1
  13. package/dist/sds-button/sds-button.styles.js +2 -6
  14. package/dist/sds-button/sds-button.styles.js.map +1 -1
  15. package/dist/sds-details/sds-details.styles.d.ts.map +1 -1
  16. package/dist/sds-details/sds-details.styles.js +4 -2
  17. package/dist/sds-details/sds-details.styles.js.map +1 -1
  18. package/dist/sds-dialog/sds-dialog.styles.d.ts.map +1 -1
  19. package/dist/sds-dialog/sds-dialog.styles.js +2 -0
  20. package/dist/sds-dialog/sds-dialog.styles.js.map +1 -1
  21. package/dist/sds-icon/sds-icon-loader.d.ts +1 -0
  22. package/dist/sds-icon/sds-icon-loader.d.ts.map +1 -1
  23. package/dist/sds-icon/sds-icon-loader.js +21 -14
  24. package/dist/sds-icon/sds-icon-loader.js.map +1 -1
  25. package/dist/sds-radio/sds-radio.js +1 -1
  26. package/dist/sds-radio/sds-radio.js.map +1 -1
  27. package/dist/sds-text/sds-text.component.d.ts +2 -0
  28. package/dist/sds-text/sds-text.component.d.ts.map +1 -1
  29. package/dist/sds-text/sds-text.component.js +4 -0
  30. package/dist/sds-text/sds-text.component.js.map +1 -1
  31. package/dist/sds-text/sds-text.styles.d.ts.map +1 -1
  32. package/dist/sds-text/sds-text.styles.js +4 -0
  33. package/dist/sds-text/sds-text.styles.js.map +1 -1
  34. package/dist/sds-textarea/sds-textarea.d.ts +2 -0
  35. package/dist/sds-textarea/sds-textarea.d.ts.map +1 -1
  36. package/dist/sds-textarea/sds-textarea.js +4 -0
  37. package/dist/sds-textarea/sds-textarea.js.map +1 -1
  38. package/dist/sds-textarea/sds-textarea.styles.d.ts.map +1 -1
  39. package/dist/sds-textarea/sds-textarea.styles.js +7 -0
  40. package/dist/sds-textarea/sds-textarea.styles.js.map +1 -1
  41. package/dist/shared/assets/positioning.js +1 -1
  42. package/dist/sheriff-web-components.js +168 -163
  43. package/dist/version.d.ts +1 -1
  44. package/dist/version.js +1 -1
  45. package/dist/version.js.map +1 -1
  46. package/package.json +78 -36
  47. package/web-types.json +92 -33
@@ -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.11.1"}}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 s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=/* @__PURE__ */Symbol(),r=/* @__PURE__ */new WeakMap;let a=class{constructor(t,s,e){if(this._$cssResult$=!0,e!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=r.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&r.set(s,t))}return t}toString(){return this.cssText}};const i=t=>new a("string"==typeof t?t:t+"",void 0,o),d=(t,...s)=>{const e=1===t.length?t[0]:s.reduce((s,e,o)=>s+(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.")})(e)+t[o+1],t[0]);return new a(e,t,o)},n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let s="";for(const e of t.cssRules)s+=e.cssText;return i(s)})(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,s)=>t,x={toAttribute(t,s){switch(s){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let e=t;switch(s){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(o){e=null}}return e}},y=(t,s)=>!l(t,s),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,s=w){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const e=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,e,s);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,s,e){const{get:o,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:o,set(s){const a=o?.call(this);r?.call(this,s),this.requestUpdate(t,a,e)},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,s=[...p(t),...g(t)];for(const e of s)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,e]of s)this.elementProperties.set(t,e)}this._$Eh=/* @__PURE__ */new Map;for(const[s,e]of this.elementProperties){const t=this._$Eu(s,e);void 0!==t&&this._$Eh.set(t,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)s.unshift(n(t))}else void 0!==t&&s.push(n(t));return s}static _$Eu(t,s){const e=s.attribute;return!1===e?void 0:"string"==typeof e?e:"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,s=this.constructor.elementProperties;for(const e of s.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(e)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),r=s.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.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,s,e){this._$AK(t,e)}_$ET(t,s){const e=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,e);if(void 0!==o&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:x).toAttribute(s,e.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,s){const e=this.constructor,o=e._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=e.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(s,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,s,e,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),e??=a.getPropertyOptions(t),!((e.hasChanged??y)(r,s)||e.useDefault&&e.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,e))))return;this.C(t,s,e)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:e,reflect:o,wrapped:r},a){e&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??s??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||e||(s=void 0),this._$AL.set(t,s)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}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,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,e]of t){const{wrapped:t}=e,o=this[s];!0!==t||this._$AL.has(s)||void 0===o||this.C(s,void 0,e,o)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(s)}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,s,e)=>{const{kind:o,metadata:r}=e;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(e.name,t),"accessor"===o){const{name:o}=e;return{set(e){const r=s.get.call(this);s.set.call(this,e),this.requestUpdate(o,r,t,!0,e)},init(s){return void 0!==s&&this.C(o,void 0,t,s),s}}}if("setter"===o){const{name:o}=e;return function(e){const r=this[o];s.call(this,e),this.requestUpdate(o,r,t,!0,e)}}throw Error("Unsupported decorator location: "+o)};function S(t){return(s,e)=>"object"==typeof e?$(t,s,e):((t,s,e)=>{const o=s.hasOwnProperty(e);return s.constructor.createProperty(e,t),o?Object.getOwnPropertyDescriptor(s,e):void 0})(t,s,e)}function C(t){return S({...t,state:!0,attribute:!1})}const E=(t,s,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&"object"!=typeof s&&Object.defineProperty(t,s,e),e);function O(t,s){return(s,e,o)=>E(s,e,{get(){return s=this,s.renderRoot?.querySelector(t)??null;var s}})}function A(t){return(s,e)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return E(s,e,{get(){const s=this.renderRoot?.querySelector(a),e=s?.assignedElements(t)??[];return void 0===r?e:e.filter(t=>t.matches(r))}})}}function L(t){return s=>{var e;customElements.get(t)||(e=t,(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)})(s)}}const P=globalThis,D=t=>t,q=P.trustedTypes,T=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",V=`lit$${Math.random().toFixed(9).slice(2)}$`,B="?"+V,j=`<${B}>`,R=document,I=()=>R.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,K=/-->/g,W=/>/g,G=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,X=t=>(s,...e)=>({_$litType$:t,strings:s,values:e}),J=X(1),tt=X(2),st=/* @__PURE__ */Symbol.for("lit-noChange"),et=/* @__PURE__ */Symbol.for("lit-nothing"),ot=/* @__PURE__ */new WeakMap,rt=R.createTreeWalker(R,129);function at(t,s){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(s):s}class it{constructor({strings:t,_$litType$:s},e){let o;this.parts=[];let r=0,a=0;const i=t.length-1,d=this.parts,[n,l]=((t,s)=>{const e=t.length-1,o=[];let r,a=2===s?"<svg>":3===s?"<math>":"",i=U;for(let d=0;d<e;d++){const s=t[d];let e,n,l=-1,c=0;for(;c<s.length&&(i.lastIndex=c,n=i.exec(s),null!==n);)c=i.lastIndex,i===U?"!--"===n[1]?i=K:void 0!==n[1]?i=W:void 0!==n[2]?(Q.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,e=n[1],i=void 0===n[3]?G:'"'===n[3]?Y:Z):i===Y||i===Z?i=G:i===K||i===W?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?s+j:l>=0?(o.push(e),s.slice(0,l)+M+s.slice(l)+V+h):s+V+(-2===l?d:h)}return[at(t,a+(t[e]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),o]})(t,s);if(this.el=it.createElement(n,e),rt.currentNode=this.el.content,2===s||3===s){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 s=l[a++],e=o.getAttribute(t).split(V),i=/([.?@])?(.*)/.exec(s);d.push({type:1,index:r,name:i[2],strings:e,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),s=t.length-1;if(s>0){o.textContent=q?q.emptyScript:"";for(let e=0;e<s;e++)o.append(t[e],I()),rt.nextNode(),d.push({type:2,index:++r});o.append(t[s],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,s){const e=R.createElement("template");return e.innerHTML=t,e}}function dt(t,s,e=t,o){if(s===st)return s;let r=void 0!==o?e._$Co?.[o]:e._$Cl;const a=N(s)?void 0:s._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,e,o)),void 0!==o?(e._$Co??=[])[o]=r:e._$Cl=r),void 0!==r&&(s=dt(t,r._$AS(t,s.values),r,o)),s}class nt{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:e}=this._$AD,o=(t?.creationScope??R).importNode(s,!0);rt.currentNode=o;let r=rt.nextNode(),a=0,i=0,d=e[0];for(;void 0!==d;){if(a===d.index){let s;2===d.type?s=new lt(r,r.nextSibling,this,t):1===d.type?s=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(s=new vt(r,this,t)),this._$AV.push(s),d=e[++i]}a!==d?.index&&(r=rt.nextNode(),a++)}return rt.currentNode=R,o}p(t){let s=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,s),s+=e.strings.length-2):e._$AI(t[s])),s++}}class lt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,e,o){this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=e,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return void 0!==s&&11===t?.nodeType&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=dt(this,t,s),N(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==st&&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!==et&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=it.createElement(at(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===o)this._$AH.p(s);else{const t=new nt(o,this),e=t.u(this.options);t.p(s),this.T(e),this._$AH=t}}_$AC(t){let s=ot.get(t.strings);return void 0===s&&ot.set(t.strings,s=new it(t)),s}k(t){H(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let e,o=0;for(const r of t)o===s.length?s.push(e=new lt(this.O(I()),this.O(I()),this,this.options)):e=s[o],e._$AI(r),o++;o<s.length&&(this._$AR(e&&e._$AB.nextSibling,o),s.length=o)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=D(t).nextSibling;D(t).remove(),t=s}}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,s,e,o,r){this.type=1,this._$AH=et,this._$AN=void 0,this.element=t,this.name=s,this._$AM=o,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=et}_$AI(t,s=this,e,o){const r=this.strings;let a=!1;if(void 0===r)t=dt(this,t,s,0),a=!N(t)||t!==this._$AH&&t!==st,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[e+i],s,i),d===st&&(d=this._$AH[i]),a||=!N(d)||d!==this._$AH[i],d===et?t=et:t!==et&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===et?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===et?void 0:t}}class pt extends ct{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==et)}}class gt extends ct{constructor(t,s,e,o,r){super(t,s,e,o,r),this.type=5}_$AI(t,s=this){if((t=dt(this,t,s,0)??et)===st)return;const e=this._$AH,o=t===et&&e!==et||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==et&&(e===et||o);o&&this.element.removeEventListener(this.name,this,e),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,s,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=e}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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,s,e)=>{const o=e?.renderBefore??s;let r=o._$litPart$;if(void 0===r){const t=e?.renderBefore??null;o._$litPart$=r=new lt(s.insertBefore(I(),t),t,void 0,e??{})}return r._$AI(t),r})(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return st}};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.0"}}const xt=/* @__PURE__ */Symbol.for(""),yt=t=>{if(t?.r===xt)return t?._$litStatic$},wt=t=>({_$litStatic$:t,r:xt}),kt=(t,...s)=>({_$litStatic$:s.reduce((s,e,o)=>s+(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.`)})(e)+t[o+1],t[0]),r:xt}),zt=/* @__PURE__ */new Map,$t=(St=J,(t,...s)=>{const e=s.length;let o,r;const a=[],i=[];let d,n=0,l=!1;for(;n<e;){for(d=t[n];n<e&&void 0!==(r=s[n],o=yt(r));)d+=o+t[++n],l=!0;n!==e&&i.push(r),a.push(d),n++}if(n===e&&a.push(t[e]),l){const e=a.join("$$lit$$");void 0===(t=zt.get(e))&&(a.raw=a,zt.set(e,t=a)),s=i}return St(t,...s)});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 Ot(t){return class extends t{dispatchSheriffEvent(t,s,e=!Et.has(t)){return this.dispatchEvent(new CustomEvent(t,{detail:s,bubbles:!0,composed:!0,cancelable:e}))}dispatchKeyboardEvent(t,s){return this.dispatchEvent(new KeyboardEvent(t,{key:s.key,code:s.code,bubbles:!0,composed:!0,cancelable:!Et.has(t),ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,altKey:s.altKey,metaKey:s.metaKey,repeat:s.repeat,isComposing:s.isComposing,location:s.location}))}}}var At=Object.defineProperty,Lt=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&At(s,e,a),a};const Pt={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},Dt=class extends(Ot(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,s)=>$t`<${this.iconTag} name="${t}" size=${s}></${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",s=Pt[this.palette]??Pt.info;return J`<div class="sds-alert">
187
+ <div class="sds-alert__type">${this._renderIcon(s,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>`:et}
193
+ </div>`}};Dt.styles=[Ct];let qt=Dt;Lt([S({type:String,reflect:!0})],qt.prototype,"variant"),Lt([S({type:String,reflect:!0})],qt.prototype,"size"),Lt([S({type:String,attribute:"removable-label",reflect:!0})],qt.prototype,"removableLabel"),Lt([S({type:String,attribute:"data-palette",reflect:!0})],qt.prototype,"palette");const Tt=t=>t??et,Mt=1,Vt=2,Bt=t=>(...s)=>({_$litDirective$:t,values:s});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,e){this._$Ct=t,this._$AM=s,this._$Ci=e}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}let Rt=class extends jt{constructor(t){if(super(t),this.it=et,t.type!==Vt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this._t=void 0,this.it=t;if(t===st)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 s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};Rt.directiveName="unsafeHTML",Rt.resultType=1;let It=class extends Rt{};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),Kt=t=>fetch(`https://cdn.jsdelivr.net/npm/@politiet/sheriff-icons/dist/assets/${t}.svg`).then(s=>{if(!s.ok)throw new TypeError(`Sheriff: unknown icon: '${t}'`);return s.text()});const Wt=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,21 +223,21 @@ 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 Gt=Object.defineProperty,Zt=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&Gt(s,e,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="${Tt(this.label?"img":void 0)}" style="${Tt(this.color?`color:${this.color}`:void 0)}" aria-label="${Tt(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 s=await new Promise(s=>{t.iconLoader.resolve(this.name,s)});this.svg=s}updated(t){super.updated(t),t.has("name")&&this.name&&this.fetchIcon()}}).styles=[Wt],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:Kt}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Ut:Kt}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,s){if(!this._disableSystemIcons&&(t=>Ht.includes(t))(t))return void s(Ft[t]);const e=this.cache.get(t);if("string"==typeof e)s(e);else{const e=this.pending.get(t);if(e)return void e.then(s);const o=this.resolver(t).then(s=>(this.cache.set(t,s),s)).catch(()=>"").finally(()=>{this.pending.delete(t)});this.pending.set(t,o),o.then(s)}}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,s,e,o)=>{for(var r,a=o>1?void 0:o?Xt(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-icon")],Jt);const ts=Bt(class extends jt{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(s=>t[s]).join(" ")+" "}update(t,[s]){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 s)s[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(s)}const e=t.element.classList;for(const o of this.st)o in s||(e.remove(o),this.st.delete(o));for(const o in s){const t=!!s[o];t===this.st.has(o)||this.nt?.has(o)||(t?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return st}}),ss=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)));
240
- --_sds-button-border-width: var(--sds-button-border-width, var(--sds-border-md));
234
+ --_sds-button-border-width: var(--sds-button-border-width, var(--sds-border-sm));
241
235
  --_sds-button-disabled-opacity: var(--sds-button-disabled-opacity, var(--sds-color-states-disabled-opacity));
242
236
  --_sds-button-focus-color: var(--sds-button-focus-color, var(--sds-color-states-focus-outer));
243
237
  --_sds-button-focus-inner-color: var(--sds-button-focus-inner-color, var(--sds-color-states-focus-inner));
244
238
  --_sds-button-focus-spacing: var(--sds-button-focus-spacing, var(--sds-color-states-focus-spacing));
245
239
  --_sds-button-focus-outline-size: var(--sds-button-focus-outline-size, var(--sds-color-states-focus-outline-size));
246
- --_sds-button-font-family: var(--sds-button-font, var(--sds-typography-font-family-roboto));
240
+ --_sds-button-font-family: var(--sds-button-font, var(--sds-typography-font-family));
247
241
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-lg));
248
242
  --_sds-button-font-weight: var(--sds-button-font-weight, var(--sds-typography-body-md-strong-desktop-font-weight));
249
243
  --_sds-button-gap: var(--sds-button-gap, var(--sds-spacing-3xs));
@@ -381,8 +375,6 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
381
375
  :host([size='medium']), /* Deprecated */
382
376
  :host([size='md']) {
383
377
  --_sds-button-min-height: var(--sds-button-height, var(--sds-components-button-md));
384
- --_sds-button-padding-block: var(--sds-button-padding-block, var(--sds-spacing-4xs));
385
- --_sds-button-padding-inline: var(--sds-button-padding-inline, var(--sds-spacing-3xs));
386
378
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-md));
387
379
 
388
380
  &:host([variant='tertiary']) {
@@ -393,8 +385,6 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
393
385
  :host([size='small']), /* Deprecated */
394
386
  :host([size='sm']) {
395
387
  --_sds-button-min-height: var(--sds-button-height, var(--sds-components-button-sm));
396
- --_sds-button-padding-block: var(--sds-button-padding-block, 0);
397
- --_sds-button-padding-inline: var(--sds-button-padding-inline, var(--sds-spacing-3xs));
398
388
  --_sds-button-font-size: var(--sds-button-font-size, var(--sds-components-font-size-content-sm));
399
389
 
400
390
  &:host([variant='tertiary']) {
@@ -489,27 +479,27 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
489
479
  --_sds-button-text-color: var(--sds-button-text-color, var(--sds-color-action-contrast-default, var(--sds-color-neutral-action-contrast-default)));
490
480
  }
491
481
  }
492
- `;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)}">
482
+ `;function es(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 os=Object.defineProperty,rs=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&os(s,e,a),a};function as(t){const s=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(){}};s.formAssociated=!0,s.shadowRootOptions={...bt.shadowRootOptions,delegatesFocus:!0};let e=s;return rs([S({type:String,reflect:!0})],e.prototype,"name"),rs([S({type:Boolean,reflect:!0})],e.prototype,"disabled"),rs([S({type:Boolean,attribute:"readonly",reflect:!0})],e.prototype,"readOnly"),e}var is=Object.defineProperty,ds=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&is(s,e,a),a};var ns=Object.defineProperty,ls=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&ns(s,e,a),a};var cs=Object.defineProperty,hs=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&cs(s,e,a),a};const ps=class extends(function(t){class s 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,s){this._dialogOpenObserver=new MutationObserver(e=>{for(const o of e)if("open"===o.attributeName){const e=s.hasAttribute("open");t.setAttribute("aria-expanded",String(e))}}),this._dialogOpenObserver.observe(s,{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 s=this.effectiveCommand,e=this.effectiveCommandFor;if(!e||!s)return void this._clearAriaFields(t);const o=this.getRootNode(),r=o.getElementById?.(e)??document.getElementById(e);var a;null!=(a=r)&&"showModal"in a&&"requestClose"in a&&"close"in a&&"open"in a?(this._dialogElement=r,"show-modal"===s?(t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(r.open)),t.setAttribute("aria-controls",e),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 ds([S({type:String,attribute:"command",reflect:!0})],s.prototype,"command"),ds([S({type:String,attribute:"commandfor",reflect:!0})],s.prototype,"commandFor"),ds([S({type:String,attribute:"data-command"})],s.prototype,"dataCommand"),ds([S({type:String,attribute:"data-commandfor"})],s.prototype,"dataCommandFor"),s}(function(t){class s 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 s=this.getRootNode(),e=s.getElementById?.(this.popoverTarget)??document.getElementById(this.popoverTarget);if(e){t.popoverTargetElement=e,this._popoverElement=e;const s=e.getAttribute("role");"tooltip"===s?t.setAttribute("aria-describedby",this.popoverTarget):(this._popoverToggleHandler=s=>{const e="open"===s.newState;t.setAttribute("aria-expanded",String(e))},e.addEventListener("toggle",this._popoverToggleHandler),t.setAttribute("aria-haspopup",s||"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 ls([S({type:String,attribute:"popovertarget"})],s.prototype,"popoverTarget"),ls([S({type:String,attribute:"popovertargetaction"})],s.prototype,"popoverTargetAction"),s}(es(Ot(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="${ts(t)}" href="${this.href}" target="${Tt(this.target)}">
493
483
  <slot name="before"></slot>
494
484
  <slot></slot>
495
485
  <slot name="after"></slot>
496
- </a>`:et`
486
+ </a>`:J`
497
487
  <button
498
488
  id="control"
499
- form="${Rt(this.form)}"
500
- class="${se(t)}"
489
+ form="${Tt(this.form)}"
490
+ class="${ts(t)}"
501
491
  type="${this.type}"
502
- name="${Rt(this.name)}"
503
- value="${Rt(this.value)}"
492
+ name="${Tt(this.name)}"
493
+ value="${Tt(this.value)}"
504
494
  ?disabled="${this.disabled}"
505
495
  @click="${this._handleClick}"
506
- aria-label="${Rt(this.label)}"
496
+ aria-label="${Tt(this.label)}"
507
497
  >
508
- ${this.loading?et`<sds-loader slot="before" ?contrast="${this.inverted||"primary"!==this.variant}"></sds-loader>`:rt} ${this.loading?rt:et`<slot name="before"></slot>`}
498
+ ${this.loading?J`<sds-loader slot="before" ?contrast="${this.inverted||"primary"!==this.variant}"></sds-loader>`:et} ${this.loading?et:J`<slot name="before"></slot>`}
509
499
  <slot></slot>
510
- ${this.loading?rt:et`<slot name="after"></slot>`}
500
+ ${this.loading?et:J`<slot name="after"></slot>`}
511
501
  </button>
512
- `}};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`
502
+ `}};ps.styles=[ss],ps.formAssociated=!0,ps.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0};let gs=ps;hs([S({type:Boolean,reflect:!0})],gs.prototype,"disabled"),hs([S({type:Boolean,reflect:!0})],gs.prototype,"icon"),hs([S({type:Boolean,reflect:!0})],gs.prototype,"inverted"),hs([S({type:Boolean,reflect:!0})],gs.prototype,"loading"),hs([S({type:String,reflect:!0})],gs.prototype,"form"),hs([S({type:String,reflect:!0})],gs.prototype,"href"),hs([S({type:String,reflect:!0})],gs.prototype,"name"),hs([S({type:String,reflect:!0})],gs.prototype,"size"),hs([S({type:String,reflect:!0})],gs.prototype,"target"),hs([S({type:String,reflect:!0})],gs.prototype,"type"),hs([S({type:String,reflect:!0})],gs.prototype,"value"),hs([S({type:String,reflect:!0})],gs.prototype,"variant"),hs([S({type:String,reflect:!0})],gs.prototype,"label"),hs([O("#control")],gs.prototype,"control");var vs=Object.getOwnPropertyDescriptor;let us=class extends gs{};us=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?vs(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-button")],us);var fs=Object.getOwnPropertyDescriptor;let bs=class extends qt{};function _s(t,s,e,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 e=t,o=e.tagName.toUpperCase();if(!s.includes(o))return!0;return Array.from(e.childNodes).some(t=>t.nodeType===Node.ELEMENT_NODE)}return!1});r?.length>0&&console.warn(o,...r)}bs=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?fs(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-alert")],bs);const ms=d`
513
503
  :host {
514
504
  --_sds-card-background-color: var(--sds-card-background-color, var(--sds-color-surface-tinted, var(--sds-color-main-surface-tinted)));
515
505
  --_sds-card-border-radius: var(--sds-card-border-radius, var(--sds-radius-md));
@@ -644,11 +634,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
644
634
  --_sds-card-text-line-height: var(--sds-card-text-line-height, var(--sds-typography-body-md-desktop-line-height));
645
635
  }
646
636
  }
647
- `;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`
637
+ `;var xs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?ys(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&xs(s,e,a),a};let ks=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&&_s(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{_s(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length}}firstUpdated(){_s(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length;this.headingSlot.assignedNodes({flatten:!0}).length>0&&_s(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=J`
648
638
  <slot name="heading" id="heading" @slotchange=${this._handleHeadingSlotChange}></slot>
649
639
  <slot name="text" id="content" @slotchange=${this._handleTextSlotChange}></slot>
650
640
  <sds-icon name="arrow_forward-material-outlined" size="md" class="sds-card__icon" role="presentation"></sds-icon>
651
- `,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`
641
+ `,s={"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=${ts(s)}>${t}</a>`:J`<div class=${ts(s)}>${t}</div>`}</article>`}};ks.styles=[ms],ws([S({type:String,reflect:!0})],ks.prototype,"link",2),ws([O("slot#heading")],ks.prototype,"headingSlot",2),ws([O("slot#content")],ks.prototype,"textSlot",2),ws([C()],ks.prototype,"_textSlotEmpty",2),ks=ws([L("sds-card")],ks);const zs=d`
652
642
  :host {
653
643
  --_sds-checkbox-block-gap: var(--sds-checkbox-block-gap, var(--sds-spacing-4xs));
654
644
  --_sds-checkbox-inline-gap: var(--sds-checkbox-inline-gap, var(--sds-spacing-3xs));
@@ -873,31 +863,31 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
873
863
  margin-block-start: -1px;
874
864
  }
875
865
  }
876
- `;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`
877
- <div class="${se(t)}">
866
+ `;var $s=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,Cs=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ss(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&$s(s,e,a),a};let Es=class extends(es(Ot(as(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 s=t.target;this.checked=s.checked,this.internals.setFormValue(s.checked?s.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 s=t??!1,e=this._disabled;e!==s&&(this._disabled=s,this.requestUpdate("disabled",e),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=s))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const s=t??!1,e=this._parentRequestDisabled;e!==s&&(this._parentRequestDisabled=s,this.requestUpdate("parentRequestDisabled",e),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=s,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)},s=this._hasSlottedLabel||Boolean(this.label),e={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return J`
867
+ <div class="${ts(t)}">
878
868
  <input
879
869
  id="control"
880
870
  type="checkbox"
881
- name="${Rt(this.name)}"
882
- value="${Rt(this.value)}"
871
+ name="${Tt(this.name)}"
872
+ value="${Tt(this.value)}"
883
873
  .checked="${this.checked}"
884
874
  ?checked="${this.checked}"
885
875
  ?disabled="${this.disabled}"
886
876
  ?required="${this.required}"
887
877
  ?readonly="${this.readOnly}"
888
- aria-describedby="${Rt(o)}"
878
+ aria-describedby="${Tt(o)}"
889
879
  aria-invalid="${this.error?"true":"false"}"
890
880
  @change="${this._handleChange}"
891
881
  @focus="${this._handleFocus}"
892
882
  @blur="${this._handleBlur}"
893
- class="${se(s)}"
883
+ class="${ts(e)}"
894
884
  />
895
- <label for="control" class="sds-checkbox__label" ?hidden="${!e}">
885
+ <label for="control" class="sds-checkbox__label" ?hidden="${!s}">
896
886
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
897
887
  </label>
898
- ${this.helpText?et`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:rt}
888
+ ${this.helpText?J`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:et}
899
889
  </div>
900
- `}};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`
890
+ `}};Es.styles=[zs],Cs([S({type:String,reflect:!0})],Es.prototype,"label",2),Cs([S({type:String})],Es.prototype,"value",2),Cs([S({type:Boolean,reflect:!0})],Es.prototype,"checked",2),Cs([S({type:Boolean,reflect:!0})],Es.prototype,"error",2),Cs([S({type:Boolean,reflect:!0})],Es.prototype,"required",2),Cs([S({type:String,reflect:!0})],Es.prototype,"size",2),Cs([S({type:String,attribute:"help-text"})],Es.prototype,"helpText",2),Cs([S({type:Boolean,reflect:!0})],Es.prototype,"disabled",1),Cs([S({type:Boolean,attribute:!1})],Es.prototype,"parentRequestDisabled",1),Cs([O("#control")],Es.prototype,"control",2),Cs([C()],Es.prototype,"_hasSlottedLabel",2),Es=Cs([L("sds-checkbox")],Es);const Os=d`
901
891
  :host {
902
892
  --_sds-checkbox-group-gap: var(--sds-checkbox-group-gap, var(--sds-spacing-xs));
903
893
  --_sds-checkbox-group-font-family: var(--sds-checkbox-group-font-family, var(--sds-typography-font-family-roboto));
@@ -989,16 +979,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
989
979
  --_sds-checkbox-group-help-text-font-size: var(--sds-checkbox-group-help-text-font-size, var(--sds-components-font-size-content-lg));
990
980
  --_sds-checkbox-group-help-text-line-height: var(--sds-checkbox-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
991
981
  }
992
- `;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`
993
- <fieldset class="${se(t)}" aria-describedby="${Rt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
994
- ${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}
995
- ${this.helpText?et`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:rt}
982
+ `;var As=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,Ps=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ls(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&As(s,e,a),a};const Ds=["disabled","errorMessage","readOnly","size"];let qs=class extends(Ot(mt)){constructor(){super(...arguments),this.readOnly=!1,this.disabled=!1,this.size="md",this._selectedValues=[],this._handleCheckboxChange=t=>{const s=t.target,e=s.value,o=s.checked;this._selectedValues=o?[...this._selectedValues,e]:this._selectedValues.filter(t=>t!==e),this.dispatchSheriffEvent("sds-update")},this._handleSlotChange=()=>{this._updateChildProps([...Ds])}}_getChildCheckboxes(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-CHECKBOX"===t.tagName)??[]}_updateChildProps(t){const s=this._getChildCheckboxes();for(const e of s)for(const s of t)switch(s){case"readOnly":e.readOnly=this.readOnly;break;case"disabled":e.parentRequestDisabled=this.disabled;break;case"errorMessage":e.error=Boolean(this.errorMessage);break;case"size":e.size=this.size}}updated(t){super.updated(t);const s=Array.from(t.keys());(s.includes("errorMessage")||s.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,s,e){if(super.attributeChangedCallback(t,s,e),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;Ds.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)},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return J`
983
+ <fieldset class="${ts(t)}" aria-describedby="${Tt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
984
+ ${this.legend?J`<legend class="sds-checkbox-group__legend">${this.readOnly?J`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:et}</sds-icon>${this.legend}</legend>`:et}
985
+ ${this.helpText?J`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:et}
996
986
  <div class="sds-checkbox-group__checkboxes" @change=${this._handleCheckboxChange}>
997
987
  <slot @slotchange=${this._handleSlotChange}></slot>
998
988
  </div>
999
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
989
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:et}
1000
990
  </fieldset>
1001
- `}};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`
991
+ `}};qs.styles=[Os],Ps([S({type:String,reflect:!0})],qs.prototype,"legend",2),Ps([S({type:String,attribute:"help-text",reflect:!0})],qs.prototype,"helpText",2),Ps([S({type:String,attribute:"error-message",reflect:!0})],qs.prototype,"errorMessage",2),Ps([S({type:Boolean,attribute:"readonly",reflect:!0})],qs.prototype,"readOnly",2),Ps([S({type:Boolean,reflect:!0})],qs.prototype,"disabled",2),Ps([S({type:String,reflect:!0})],qs.prototype,"size",2),Ps([C()],qs.prototype,"_selectedValues",2),Ps([O("slot")],qs.prototype,"_slotElement",2),qs=Ps([L("sds-checkbox-group")],qs);const Ts=d`
1002
992
  :host {
1003
993
  --_sds-chip-font-family: var(--sds-chip-font-family, var(--sds-typography-font-family-roboto));
1004
994
  --_sds-chip-font-weight: var(--sds-chip-font-weight, var(--sds-typography-font-weight-regular));
@@ -1143,16 +1133,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1143
1133
  white-space: nowrap;
1144
1134
  }
1145
1135
  }
1146
- `;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}">
1136
+ `;var Ms=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,Bs=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Vs(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Ms(s,e,a),a};let js=class extends(es(Ot(as(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 s=t.target;this._slotLabel=s.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 s=t.target;this.checked=s.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 s=this._readOnly;this._readOnly=t??!1,this.requestUpdate("readOnly",s)}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,s={"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="${ts(s)}" @click=${this._remove} @keyup="${this._keypress}">
1147
1137
  <slot></slot>
1148
1138
  <sds-icon name="close-material-outlined" size="s"></sds-icon>
1149
- </button>`:et`<label class="${se(e)}">
1139
+ </button>`:J`<label class="${ts(s)}">
1150
1140
  <input
1151
1141
  id="control"
1152
1142
  type="checkbox"
1153
1143
  aria-label="${this._slotLabel}"
1154
- name="${Rt(this.name)}"
1155
- value="${Rt(this.value)}"
1144
+ name="${Tt(this.name)}"
1145
+ value="${Tt(this.value)}"
1156
1146
  .checked="${this.checked??!1}"
1157
1147
  ?checked="${this.checked}"
1158
1148
  ?disabled="${this.disabled}"
@@ -1160,7 +1150,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1160
1150
  @change="${this._handleChange}"
1161
1151
  />
1162
1152
  <span aria-hidden="true"><slot @slotchange="${this._handleSlotChange}"></slot></span>
1163
- </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`
1153
+ </label>`}};js.styles=[Ts],Bs([O("#control")],js.prototype,"control",2),Bs([C()],js.prototype,"_slotLabel",2),Bs([S({type:String,reflect:!0})],js.prototype,"variant",2),Bs([S({type:String,reflect:!0})],js.prototype,"size",2),Bs([S({type:Boolean,reflect:!0})],js.prototype,"checked",2),Bs([S({type:String})],js.prototype,"value",2),Bs([S({type:Boolean,attribute:"readonly",reflect:!0})],js.prototype,"readOnly",1),js=Bs([L("sds-chip")],js);const Rs=d`
1164
1154
  :host {
1165
1155
  --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-info-surface-active));
1166
1156
  --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-info-text-default));
@@ -1255,23 +1245,23 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1255
1245
  --_sds-env-banner-build-grid-column: var(--sds-env-banner-build-grid-column, 3 / 4);
1256
1246
  }
1257
1247
  }
1258
- `;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`
1248
+ `;var Is=Object.defineProperty,Ns=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&Is(s,e,a),a};const Hs={opplaering:"Opplæring",local:"Local",dev:"Dev",test:"Test",stage:"Stage",prod:"Prod"},Fs=class extends bt{render(){const t=this.env?Hs[this.env]:et;return J`
1259
1249
  <div class="sds-env-banner">
1260
- ${t?et`<span class="sds-env-banner__env">${t}</span>`:rt}
1261
- ${this.build?et`<span class="sds-env-banner__build">${this.build}</span>`:rt}
1250
+ ${t?J`<span class="sds-env-banner__env">${t}</span>`:et}
1251
+ ${this.build?J`<span class="sds-env-banner__build">${this.build}</span>`:et}
1262
1252
  </div>
1263
- `}};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`
1253
+ `}};Fs.styles=[Rs];let Us=Fs;Ns([S({type:String,reflect:!0})],Us.prototype,"env"),Ns([S({type:String,reflect:!0})],Us.prototype,"build");var Ks=Object.getOwnPropertyDescriptor;let Ws=class extends Us{};Ws=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ks(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-environment-banner")],Ws);const Gs=d`
1264
1254
  :host {
1265
1255
  --_sds-details-text-color: var(--sds-details-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1266
1256
 
1267
1257
  --_sds-details-summary-padding: var(--sds-details-summary-padding, var(--sds-spacing-xs));
1268
- --_sds-details-summary-background-color: var(--sds-details-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1258
+ --_sds-details-summary-background-color: var(--sds-details-summary-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1269
1259
  --_sds-details-summary-gap: var(--sds-details-summary-gap, var(--sds-spacing-3xs));
1270
1260
  --_sds-details-summary-border-radius: var(--sds-details-summary-border-radius, 0);
1271
1261
 
1272
1262
  --_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)));
1273
1263
  --_sds-details-content-padding: var(--sds-details-content-padding, var(--sds-spacing-xs));
1274
- --_sds-details-content-background-color: var(--sds-details-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1264
+ --_sds-details-content-background-color: var(--sds-details-content-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1275
1265
 
1276
1266
  --_sds-details-focus-outline-size: var(--sds-details-focus-outline-size, var(--sds-details-focus-outline-width, var(--sds-color-states-focus-outline-size)));
1277
1267
  --_sds-details-focus-color: var(--sds-details-focus-color, var(--sds-details-focus-outline-color, var(--sds-color-states-focus-outer)));
@@ -1279,6 +1269,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1279
1269
  --_sds-details-focus-inner-color: var(--sds-details-focus-inner-color, var(--sds-color-states-focus-inner));
1280
1270
 
1281
1271
  --_sds-details-icon-transition: var(--sds-details-icon-transition, transform 0.2s ease);
1272
+ --_sds-details-icon-color: var(--sds-details-icon-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1282
1273
 
1283
1274
  --_sds-details-border-color: var(--sds-details-border-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
1284
1275
  --_sds-details-border-bottom: var(--sds-details-border-bottom, solid 1px var(--_sds-details-border-color));
@@ -1331,6 +1322,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1331
1322
  }
1332
1323
 
1333
1324
  .sds-details__summary {
1325
+ --sds-icon-color: var(--_sds-details-icon-color);
1334
1326
  cursor: pointer;
1335
1327
  display: flex;
1336
1328
  align-items: center;
@@ -1396,7 +1388,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1396
1388
  display: inline;
1397
1389
  margin: 0;
1398
1390
  }
1399
- `;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`
1391
+ `;var Zs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Qs=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ys(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Zs(s,e,a),a};let Xs=class extends(Ot(mt)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._initialized=!1,this._handleToggle=t=>{const s=t.currentTarget;this.open!==s.open&&(this.open=s.open)}}updated(t){this._initialized?t.has("open")&&this.dispatchSheriffEvent("toggle",{open:!!this.open}):this._initialized=!0}render(){return J`
1400
1392
  <details class="sds-details" .name="${this.name??""}" ?data-standalone="${this.standalone}" ?open="${this.open}" @toggle="${this._handleToggle}">
1401
1393
  <summary class="sds-details__summary">
1402
1394
  <sds-icon name="chevron_up-material-filled" role="presentation"></sds-icon>
@@ -1408,7 +1400,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1408
1400
  <slot></slot>
1409
1401
  </div>
1410
1402
  </details>
1411
- `}};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`
1403
+ `}};Xs.styles=[Gs],Qs([S({type:Boolean,reflect:!0})],Xs.prototype,"open",2),Qs([S({type:Boolean,reflect:!0})],Xs.prototype,"standalone",2),Qs([S({type:String,reflect:!0})],Xs.prototype,"name",2),Xs=Qs([L("sds-details")],Xs);const Js=d`
1412
1404
  :host {
1413
1405
  display: block;
1414
1406
  }
@@ -1445,7 +1437,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1445
1437
  :host([outlined]) div ::slotted(sds-details:only-child[open]) {
1446
1438
  --sds-details-summary-border-radius: var(--sds-radius-md) var(--sds-radius-md) 0 0;
1447
1439
  }
1448
- `;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`
1440
+ `;var te=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ee=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?se(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&te(s,e,a),a};let oe=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(s=>{if(s.name=this.name,this.name){const e=e=>{const{open:o}=e.detail;o&&t.forEach(t=>{t!==s&&t.open&&(t.open=!1)})};s.addEventListener("toggle",e),this._toggleListeners.set(s,e)}})}_removeListeners(){this._toggleListeners.forEach((t,s)=>{s.removeEventListener("toggle",t)}),this._toggleListeners.clear()}render(){return J`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};oe.styles=[Js],ee([S({type:Boolean,reflect:!0})],oe.prototype,"outlined",2),ee([S({type:String,reflect:!0})],oe.prototype,"name",2),ee([A({selector:"sds-details"})],oe.prototype,"_detailsChildren",2),oe=ee([L("sds-details-group")],oe);const re=d`
1449
1441
  :host {
1450
1442
  --_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1451
1443
  --_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
@@ -1456,6 +1448,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1456
1448
 
1457
1449
  --_sds-dialog-max-width: var(--sds-dialog-max-width, min(60ch, 100vw));
1458
1450
  --_sds-dialog-max-height: var(--sds-dialog-max-height, calc(100dvh - var(--sds-spacing-lg)));
1451
+ --_sds-dialog-min-width: var(--sds-dialog-min-width, auto);
1459
1452
 
1460
1453
  --_sds-dialog-margin: var(--sds-dialog-margin, auto);
1461
1454
  --_sds-dialog-padding-block: var(--sds-dialog-padding-block, var(--sds-spacing-sm));
@@ -1488,6 +1481,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1488
1481
 
1489
1482
  font-family: var(--_sds-dialog-font-family);
1490
1483
 
1484
+ min-width: var(--_sds-dialog-min-width);
1491
1485
  max-width: var(--_sds-dialog-max-width);
1492
1486
  max-height: var(--_sds-dialog-max-height);
1493
1487
 
@@ -1563,20 +1557,20 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1563
1557
  --_sds-dialog-animation-duration: 0ms;
1564
1558
  }
1565
1559
  }
1566
- `;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`
1560
+ `;var ae=Object.defineProperty,ie=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&ae(s,e,a),a};let de=!1;const ne=class extends(Ot(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 s=t.target;s?.closest('[data-command="close"],[command="close"]')&&this._closeDialog()},this._handlePointerDown=t=>{const s=this._dialog.getBoundingClientRect(),{clientX:e,clientY:o}=t;this._pointerDownInside=s.top<=o&&o<=s.bottom&&s.left<=e&&e<=s.right},this._handlePointerUp=t=>{const s=this._pointerDownInside;this._pointerDownInside=!1,"any"!==this.closedby||s||t.target===this._dialog&&requestAnimationFrame(()=>{this._dialog&&this._dialog.open&&this._closeDialog()})},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},this._handleHeaderSlotChange=t=>{const s=t.target;this._isHeaderSlotEmpty=0===s.assignedElements().length},this._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const s=t.find(t=>null!=t.getAttribute("autofocus"));s instanceof HTMLElement&&document.activeElement!==s&&s.focus()}}addEventListener(t,s,e){"sds-close"!==t||de||(de=!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,s,e)}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`
1567
1561
  <dialog .closedBy="${this.closedby}" class=${this._isHeaderSlotEmpty?"sds-dialog__empty-header":""}>
1568
1562
  <div class="sds-dialog__header">
1569
1563
  <slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot>
1570
- ${this.closeButtonLabel?et`
1564
+ ${this.closeButtonLabel?J`
1571
1565
  <sds-button class="sds-dialog__close-button" icon variant="tertiary" size="md" command="close" label="${this.closeButtonLabel}">
1572
1566
  <sds-icon name="close-material-outlined" size="md"></sds-icon>
1573
1567
  </sds-button>
1574
- `:rt}
1568
+ `:et}
1575
1569
  </div>
1576
1570
  <slot></slot>
1577
1571
  <slot name="footer"></slot>
1578
1572
  </dialog>
1579
- `}};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`
1573
+ `}};ne.styles=[re];let le=ne;ie([S({type:Boolean,reflect:!0})],le.prototype,"open"),ie([S({type:Boolean,reflect:!0})],le.prototype,"modal"),ie([S({type:String,reflect:!0})],le.prototype,"closedby"),ie([S({type:String,attribute:"close-button-label"})],le.prototype,"closeButtonLabel"),ie([O("dialog")],le.prototype,"_dialog"),ie([C()],le.prototype,"_isHeaderSlotEmpty");var ce=Object.getOwnPropertyDescriptor;let he=class extends le{};he=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?ce(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-dialog")],he);const pe=d`
1580
1574
  :host {
1581
1575
  --_sds-heading-font-family: var(--sds-heading-font-family, var(--sds-typography-font-family-roboto));
1582
1576
  --_sds-heading-text-color: var(--sds-heading-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -1735,7 +1729,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1735
1729
  --_sds-heading-line-height: var(--sds-heading-line-height, var(--sds-typography-heading-xs-desktop-line-height));
1736
1730
  }
1737
1731
  }
1738
- `;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`
1732
+ `;var ge=Object.defineProperty,ve=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&ge(s,e,a),a};const ue=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=${ts(t)}><slot></slot></h1>`;case"h2":return J`<h2 class=${ts(t)}><slot></slot></h2>`;case"h3":return J`<h3 class=${ts(t)}><slot></slot></h3>`;case"h4":return J`<h4 class=${ts(t)}><slot></slot></h4>`;case"h5":return J`<h5 class=${ts(t)}><slot></slot></h5>`;case"h6":return J`<h6 class=${ts(t)}><slot></slot></h6>`}}};ue.styles=[pe];let fe=ue;ve([S({type:String,reflect:!0})],fe.prototype,"level"),ve([S({type:String,reflect:!0})],fe.prototype,"size");var be=Object.getOwnPropertyDescriptor;let _e=class extends fe{};_e=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?be(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-heading")],_e);const me=d`
1739
1733
  :host {
1740
1734
  --_sds-internal-header-background-color: var(--sds-internal-header-background-color, var(--sds-color-action-default, var(--sds-color-accent-action-default)));
1741
1735
  --_sds-internal-header-text-color: var(--sds-internal-header-text-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
@@ -1854,12 +1848,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1854
1848
  --_sds-internal-header-title-line-height: var(--sds-internal-header-title-line-height, var(--sds-typography-heading-sm-desktop-line-height));
1855
1849
  }
1856
1850
  }
1857
- `;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`
1851
+ `;var xe=Object.defineProperty,ye=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&xe(s,e,a),a};const we=class extends bt{constructor(){super(...arguments),this.appName="",this.homeHref=""}get internalLogo(){return tt`
1858
1852
  <svg class="sds-internal-header__internal-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 32" fill="currentColor" aria-hidden="true">
1859
1853
  <path d="M6.5 24.3333H0L13.6667 0H20L6.5 24.3333Z" fill="var(--sds-color-support-3-action-default)" />
1860
1854
  <path d="M12.5 32H6L19.6667 7.66663H26L12.5 32Z" fill="var(--sds-color-neutral-border-default)" />
1861
1855
  </svg>
1862
- `}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`
1856
+ `}get appNameElement(){if(!this.appName)return et;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`
1863
1857
  <header class="sds-internal-header">
1864
1858
  <div class="sds-internal-header__brand">${this.internalLogo} ${this.appNameElement}</div>
1865
1859
  <div class="sds-internal-header__slots">
@@ -1871,7 +1865,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1871
1865
  </div>
1872
1866
  </div>
1873
1867
  </header>
1874
- `}};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`
1868
+ `}};we.styles=[me];let ke=we;ye([S({type:String,attribute:"app-name",reflect:!0})],ke.prototype,"appName"),ye([S({type:String,attribute:"home-href",reflect:!0})],ke.prototype,"homeHref");var ze=Object.getOwnPropertyDescriptor;let $e=class extends ke{};$e=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?ze(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-internal-header")],$e);const Se=d`
1875
1869
  :host {
1876
1870
  --_sds-loader-main-color: var(--sds-loader-main-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
1877
1871
  --_sds-loader-secondary-color: var(--sds-loader-secondary-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
@@ -1947,10 +1941,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1947
1941
  stroke-dashoffset: -120px;
1948
1942
  }
1949
1943
  }
1950
- `;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">
1944
+ `;var Ce=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Oe=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ee(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Ce(s,e,a),a};let Ae=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">
1951
1945
  <circle class="sds-loader__background" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1952
1946
  <circle class="sds-loader__circle" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1953
- </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`
1947
+ </svg>`}};Ae.styles=[Se],Oe([S({type:String,reflect:!0})],Ae.prototype,"size",2),Oe([S({type:Boolean,reflect:!0})],Ae.prototype,"contrast",2),Ae=Oe([L("sds-loader")],Ae);const Le=d`
1954
1948
  :host {
1955
1949
  --_sds-notification-background-color: var(--sds-notification-background-color, var(--sds-color-alert-info-surface-tinted));
1956
1950
 
@@ -2087,25 +2081,25 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2087
2081
  margin: 0 !important;
2088
2082
  max-width: var(--_sds-notification-max-line-width) !important;
2089
2083
  }
2090
- `;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})}">
2084
+ `;var Pe=Object.defineProperty,De=Object.getOwnPropertyDescriptor,qe=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?De(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Pe(s,e,a),a};const Te={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 Me=!1,Ve=class extends(Ot(mt)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},Me||(Me=!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="${ts({"sds-notification":!0})}">
2091
2085
  <div class="sds-notification__type">
2092
- <sds-icon class="sds-notification__icon" name="${Rs[this.variant]}" size="md"></sds-icon>
2086
+ <sds-icon class="sds-notification__icon" name="${Te[this.variant]}" size="md"></sds-icon>
2093
2087
  </div>
2094
2088
  <div class="sds-notification__content">
2095
2089
  <slot name="title"></slot>
2096
2090
  <slot name="message"></slot>
2097
2091
  </div>
2098
- ${this.removableLabel?et`<div class="sds-notification__actions">
2092
+ ${this.removableLabel?J`<div class="sds-notification__actions">
2099
2093
  <sds-button icon variant="tertiary" color="${t}" size="sm" @click=${this._remove} aria-label="${this.removableLabel}">
2100
2094
  <sds-icon name="close-material-outlined" size="sm"></sds-icon>
2101
2095
  </sds-button>
2102
- </div>`:rt}
2103
- </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`
2096
+ </div>`:et}
2097
+ </div>`}};Ve.styles=[Le],qe([S({type:String,reflect:!0})],Ve.prototype,"variant",2),qe([S({type:String,attribute:"removable-label",reflect:!0})],Ve.prototype,"removableLabel",2),Ve=qe([L("sds-notification")],Ve);const Be=d`
2104
2098
  :host {
2105
2099
  display: flex;
2106
2100
  flex-direction: column;
2107
2101
  }
2108
- `;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`
2102
+ `;var je=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,Ie=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Re(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&je(s,e,a),a};let Ne=class extends mt{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return J`<slot></slot>`}};Ne.styles=[Be],Ie([S({type:String,reflect:!0,attribute:"heading-level"})],Ne.prototype,"headingLevel",2),Ne=Ie([L("sds-process")],Ne);const He=d`
2109
2103
  :host {
2110
2104
  --_sds-process-step-border-width: var(--sds-process-step-border-width, 2px);
2111
2105
  --_sds-process-step-border-color: var(--sds-process-step-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -2249,22 +2243,22 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2249
2243
  :host(:last-of-type) {
2250
2244
  --_sds-process-step-line-display: none;
2251
2245
  }
2252
- `;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`
2246
+ `;var Fe=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Ke=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ue(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Fe(s,e,a),a};let We=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`
2253
2247
  <div class="sds-process-step">
2254
2248
  <div class="sds-process-step__item">
2255
2249
  <div class="sds-process-step__marker" aria-hidden="true">
2256
2250
  <slot name="marker" @slotchange=${this._handleMarkerSlotChange}></slot>
2257
2251
  </div>
2258
2252
  <div class="sds-process-step__content">
2259
- ${this.heading?Ct`<${zt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${zt(this.safeHeadingLevel)}>`:rt}
2260
- ${this.timestamp?Ct`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:rt}
2253
+ ${this.heading?$t`<${wt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${wt(this.safeHeadingLevel)}>`:et}
2254
+ ${this.timestamp?$t`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:et}
2261
2255
  <div class="sds-process-step__slot-content"><slot></slot></div>
2262
2256
  </div>
2263
2257
  </div>
2264
2258
  <span class="sds-process-step__line"></span>
2265
2259
  </div>
2266
- `}};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`
2267
- ${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: }')}
2260
+ `}};We.styles=[He],Ke([S({type:String,reflect:!0})],We.prototype,"heading",2),Ke([S({type:String,reflect:!0})],We.prototype,"timestamp",2),Ke([O('slot[name="marker"]')],We.prototype,"markerSlot",2),Ke([O(".sds-process-step")],We.prototype,"step",2),We=Ke([L("sds-process-step")],We);const Ge=d`
2261
+ ${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: }')}
2268
2262
 
2269
2263
  :host {
2270
2264
  --dsc-popover-background: var(--sds-popover-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
@@ -2311,7 +2305,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2311
2305
  animation: none;
2312
2306
  }
2313
2307
  }
2314
- `,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`
2308
+ `;var Ze=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Qe=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ye(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Ze(s,e,a),a};let Xe=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>`}};Xe.styles=[Ge],Qe([S({type:String,reflect:!0})],Xe.prototype,"placement",2),Qe([S({type:String,reflect:!0})],Xe.prototype,"autoPlacement",2),Qe([S({type:String,reflect:!0})],Xe.prototype,"overscroll",2),Xe=Qe([L("sds-popover")],Xe);const Je=d`
2315
2309
  :host {
2316
2310
  --_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
2317
2311
  --_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
@@ -2520,32 +2514,32 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2520
2514
  margin-block-start: -1px;
2521
2515
  }
2522
2516
  }
2523
- `;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`
2524
- <div class="${se(t)}">
2517
+ `;var to=Object.defineProperty,so=Object.getOwnPropertyDescriptor,eo=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?so(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&to(s,e,a),a};let oo=class extends(es(Ot(as(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._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 s=this.getRootNode(),e=Array.from(s.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=e.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:e.length-1;break;case"ArrowDown":case"ArrowRight":r=o<e.length-1?o+1:0;break;default:return}const a=e[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 s=t.target;this.checked=s.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 s=t??!1,e=this._disabled;e!==s&&(this._disabled=s,this.requestUpdate("disabled",e),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=s))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const s=t??!1,e=this._parentRequestDisabled;e!==s&&(this._parentRequestDisabled=s,this.requestUpdate("parentRequestDisabled",e),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=s,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this.internals.role="none",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(),s=t.some(t=>t.checked),e=t.some(t=>t.required);t.forEach(t=>{t.control&&(e?t.internals.setValidity(s?{}:{valueMissing:!0},s?"":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 s of t)s!==this&&s.checked&&(s.checked=!1,s.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)},s=this._hasSlottedLabel||Boolean(this.label),e={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return J`
2518
+ <div class="${ts(t)}">
2525
2519
  <input
2526
2520
  id="control"
2527
2521
  type="radio"
2528
- name="${Rt(this.name)}"
2529
- value="${Rt(this.value)}"
2522
+ name="${Tt(this.name)}"
2523
+ value="${Tt(this.value)}"
2530
2524
  ?checked="${this.checked??!1}"
2531
2525
  .checked="${this.checked??!1}"
2532
2526
  ?disabled="${this.disabled??!1}"
2533
2527
  .disabled="${this.disabled??!1}"
2534
2528
  ?required="${this.required}"
2535
2529
  ?readonly="${this.readOnly}"
2536
- aria-describedby="${Rt(o)}"
2530
+ aria-describedby="${Tt(o)}"
2537
2531
  aria-invalid="${this.error?"true":"false"}"
2538
2532
  @change="${this._handleChange}"
2539
2533
  @focus="${this._handleFocus}"
2540
2534
  @blur="${this._handleBlur}"
2541
- class="${se(s)}"
2535
+ class="${ts(e)}"
2542
2536
  />
2543
- <label class="sds-radio__label" for="control" ?hidden="${!e}">
2537
+ <label class="sds-radio__label" for="control" ?hidden="${!s}">
2544
2538
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
2545
2539
  </label>
2546
- ${this.helpText?et`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:rt}
2540
+ ${this.helpText?J`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:et}
2547
2541
  </div>
2548
- `}};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`
2542
+ `}};oo.styles=[Je],eo([S({type:Boolean,reflect:!0})],oo.prototype,"required",2),eo([S({type:String,reflect:!0})],oo.prototype,"label",2),eo([S({type:Boolean,reflect:!0,attribute:"hide-label"})],oo.prototype,"hideLabel",2),eo([S({type:String})],oo.prototype,"value",2),eo([S({type:Boolean,reflect:!0})],oo.prototype,"checked",2),eo([S({type:Boolean,reflect:!0})],oo.prototype,"error",2),eo([S({type:String,reflect:!0})],oo.prototype,"size",2),eo([S({type:String,attribute:"help-text"})],oo.prototype,"helpText",2),eo([S({type:Boolean,reflect:!0})],oo.prototype,"disabled",1),eo([S({type:Boolean,attribute:!1})],oo.prototype,"parentRequestDisabled",1),eo([O("#control")],oo.prototype,"control",2),eo([C()],oo.prototype,"_hasSlottedLabel",2),oo=eo([L("sds-radio")],oo);const ro=d`
2549
2543
  :host {
2550
2544
  --_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
2551
2545
  --_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
@@ -2643,18 +2637,18 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2643
2637
  --_sds-radio-group-help-text-font-size: var(--sds-radio-group-help-text-font-size, var(--sds-components-font-size-content-lg));
2644
2638
  --_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
2645
2639
  }
2646
- `;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`
2647
- <fieldset class="${se(t)}" aria-describedby="${Rt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2648
- ${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}
2649
- ${this.helpText?et`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:rt}
2650
- <div class="${se(e)}" @change=${this._handleRadioChange}>
2640
+ `;var ao=Object.defineProperty,io=Object.getOwnPropertyDescriptor,no=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?io(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&ao(s,e,a),a};const lo=["disabled","errorMessage","readOnly","required","size"];let co=class extends(Ot(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 s=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);s&&(this._selectedValue=s.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 s=this._getChildRadios();for(const e of s)for(const s of t)switch(s){case"readOnly":e.readOnly=this.readOnly;break;case"disabled":e.parentRequestDisabled=this.disabled;break;case"errorMessage":e.error=Boolean(this.errorMessage);break;case"required":e.required=this.required;break;case"size":e.size=this.size}}updated(t){super.updated(t);const s=Array.from(t.keys());(s.includes("errorMessage")||s.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,s,e){if(super.attributeChangedCallback(t,s,e),"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},s={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return J`
2641
+ <fieldset class="${ts(t)}" aria-describedby="${Tt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
2642
+ ${this.legend?J`<legend class="sds-radio-group__legend">${this.readOnly?J`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:et}${this.legend}</legend>`:et}
2643
+ ${this.helpText?J`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:et}
2644
+ <div class="${ts(s)}" @change=${this._handleRadioChange}>
2651
2645
  <slot @slotchange=${this._handleSlotChange}></slot>
2652
2646
  </div>
2653
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger">
2647
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger">
2654
2648
  <p slot="message">${this.errorMessage}</p>
2655
- </sds-alert>`:rt}
2649
+ </sds-alert>`:et}
2656
2650
  </fieldset>
2657
- `}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`
2651
+ `}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([O("slot")],co.prototype,"_slotElement",2),co=no([L("sds-radio-group")],co);const ho=d`
2658
2652
  :host {
2659
2653
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
2660
2654
  --_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2825,12 +2819,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2825
2819
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
2826
2820
  --_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-lg));
2827
2821
  }
2828
- `;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`
2829
- <div class="${se(t)}">
2830
- <label for="control" class="sds-select__label" ?hidden="${!s}">
2831
- ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
2822
+ `;var po=Object.defineProperty,go=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&po(s,e,a),a};const vo=class extends(es(Ot(as(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 s of t){if("childList"===s.type)return void this._scheduleLightDomSync();if("characterData"===s.type)return void this._scheduleLightDomSync();if("attributes"===s.type){const t=s.target;if(!(t instanceof HTMLElement))continue;const e=t.tagName;if("OPTION"===e||"OPTGROUP"===e||"HR"===e)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 et}})}renderOption(t){const s=t.getAttribute("value"),e=t.value,o=null!=this.value&&e===this.value;return J` <option value=${Tt(null===s?void 0:s)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const s=Array.from(t.querySelectorAll("option"));return J` <optgroup label=${Tt(t.label||void 0)} ?disabled=${t.disabled}>${s.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,e=this._hasSlottedLabel||Boolean(this.label);return J`
2823
+ <div class="${ts(t)}">
2824
+ <label for="control" class="sds-select__label" ?hidden="${!e}">
2825
+ ${this.readOnly?J`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:et}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
2832
2826
  </label>
2833
- ${this.helpText?et`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:rt}
2827
+ ${this.helpText?J`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:et}
2834
2828
 
2835
2829
  <div hidden>
2836
2830
  <slot @slotchange=${this._handleSlotChange}></slot>
@@ -2839,12 +2833,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2839
2833
  <select
2840
2834
  id="control"
2841
2835
  class="sds-select__control"
2842
- name=${Rt(this.name)}
2836
+ name=${Tt(this.name)}
2843
2837
  ?disabled=${this.disabled}
2844
2838
  ?required=${this.required}
2845
- aria-readonly=${Rt(this.readOnly)}
2839
+ aria-readonly=${Tt(this.readOnly)}
2846
2840
  aria-invalid=${this.errorMessage?"true":"false"}
2847
- aria-describedby=${Rt(e)}
2841
+ aria-describedby=${Tt(s)}
2848
2842
  @keydown=${this._handleKeyDown}
2849
2843
  @change=${this._handleChange}
2850
2844
  @focus=${this._handleFocus}
@@ -2853,13 +2847,13 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2853
2847
  ${this.renderFromLightDom()}
2854
2848
  </select>
2855
2849
 
2856
- ${this.errorMessage?et`
2850
+ ${this.errorMessage?J`
2857
2851
  <sds-alert id="error-message" variant="secondary" data-palette="danger">
2858
2852
  <p slot="message">${this.errorMessage}</p>
2859
2853
  </sds-alert>
2860
- `:rt}
2854
+ `:et}
2861
2855
  </div>
2862
- `}};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`
2856
+ `}};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([O("#control")],uo.prototype,"control"),go([C()],uo.prototype,"_hasSlottedLabel");var fo=Object.getOwnPropertyDescriptor;let bo=class extends uo{};bo=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?fo(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-select")],bo);const _o=d`
2863
2857
  :host {
2864
2858
  display: flex;
2865
2859
  flex-direction: row;
@@ -2894,7 +2888,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2894
2888
 
2895
2889
  --sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
2896
2890
  }
2897
- `;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`
2891
+ `;var mo=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,yo=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?xo(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&mo(s,e,a),a};let wo=class extends(Ot(mt)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,s)=>{t.forEach((t,e)=>{t.active=e===s})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const s=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!s)return;const e=this.steps.indexOf(s);-1!==e&&(this._setActiveStep(this.steps,e),this.dispatchSheriffEvent("change",{index:e}))},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,s)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${s+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([A({selector:"sds-stepper-step",flatten:!0})],wo.prototype,"steps",2),wo=yo([L("sds-stepper")],wo);const ko=d`
2898
2892
  :host {
2899
2893
  /* Sizing */
2900
2894
  --_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 28px);
@@ -3155,21 +3149,21 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3155
3149
  --_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
3156
3150
  --_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
3157
3151
  }
3158
- `;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">
3152
+ `;var zo=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,So=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?$o(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&zo(s,e,a),a};let Co=class extends(Ot(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">
3159
3153
  <span class="sds-stepper-step__counter"></span>
3160
3154
  <div class="sds-stepper-step__label"><slot></slot></div>
3161
- </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}">
3155
+ </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}">
3162
3156
  <span class="sds-stepper-step__counter"></span>
3163
3157
  <div class="sds-stepper-step__label"><slot></slot></div>
3164
- </button>`,this.internals=this.attachInternals()}render(){return this.interactive?et`<div class="sds-stepper-step">
3158
+ </button>`,this.internals=this.attachInternals()}render(){return this.interactive?J`<div class="sds-stepper-step">
3165
3159
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
3166
3160
  ${this._renderInteractiveStep()}
3167
3161
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
3168
- </div>`:et`<div class="sds-stepper-step" role="tab" aria-disabled="true" tabindex="-1" aria-selected="false">
3162
+ </div>`:J`<div class="sds-stepper-step" role="tab" aria-disabled="true" tabindex="-1" aria-selected="false">
3169
3163
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
3170
3164
  ${this._renderNonInteractiveStep()}
3171
3165
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
3172
- </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`
3166
+ </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([L("sds-stepper-step")],Co);const Eo=d`
3173
3167
  :host {
3174
3168
  --_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
3175
3169
  --_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3319,7 +3313,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3319
3313
  .sds-switch__input:checked::before {
3320
3314
  --_sds-switch-button-position: calc(var(--_sds-switch-width) - var(--_sds-switch-button-size) - var(--_sds-switch-button-gap) - var(--_sds-switch-border-width));
3321
3315
  }
3322
- `;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
3316
+ `;var Oo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Lo=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ao(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&Oo(s,e,a),a};let Po=class extends(es(Ot(as(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 s=t.target;this.checked=s.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},s=J`<input
3323
3317
  class="sds-switch__input"
3324
3318
  id="control"
3325
3319
  type="checkbox"
@@ -3328,13 +3322,13 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3328
3322
  ?disabled="${this.disabled}"
3329
3323
  .checked="${this.checked}"
3330
3324
  ?checked="${this.checked}"
3331
- name="${Rt(this.name)}"
3325
+ name="${Tt(this.name)}"
3332
3326
  @change="${this._handleChange}"
3333
3327
  @focus="${this._handleFocus}"
3334
3328
  @blur="${this._handleBlur}"
3335
- />`,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}">
3336
- ${s}<slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
3337
- </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`
3329
+ />`,e=this.readOnly?J`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:et,o=this._hasSlottedLabel||Boolean(this.label),r=J`<label class="${ts(t)}" for="control" ?hidden="${!o}">
3330
+ ${e}<slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
3331
+ </label>`;return J`<div class="${ts({"sds-switch":!0})}">${this.reverse?[r,s]:[s,r]}</div>`}};Po.styles=[Eo],Lo([S({type:String,reflect:!0})],Po.prototype,"label",2),Lo([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Po.prototype,"hideLabel",2),Lo([S({type:Boolean,reflect:!0})],Po.prototype,"reverse",2),Lo([S({type:Boolean,reflect:!0})],Po.prototype,"checked",2),Lo([S({type:String,reflect:!0})],Po.prototype,"size",2),Lo([O("#control")],Po.prototype,"control",2),Lo([C()],Po.prototype,"_hasSlottedLabel",2),Po=Lo([L("sds-switch")],Po);const Do=d`
3338
3332
  :host {
3339
3333
  --_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
3340
3334
  --_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3395,10 +3389,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3395
3389
  --_sds-tag-font-size: var(--sds-tag-font-size, var(--sds-components-font-size-content-lg));
3396
3390
  --_sds-tag-line-height: var(--sds-tag-line-height, var(--sds-components-line-height-squeezed-lg));
3397
3391
  }
3398
- `;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})}">
3392
+ `;var qo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,Mo=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?To(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&qo(s,e,a),a};let Vo=class extends mt{constructor(){super(...arguments),this.size="md"}render(){return J`<span class="${ts({"sds-tag":!0})}">
3399
3393
  <slot></slot>
3400
- </span>`}};Xa.styles=[Ka],Za([E({type:String,reflect:!0})],Xa.prototype,"size",2),Xa=Za([P("sds-tag")],Xa);const Qa=l`
3401
- ${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}}')}
3394
+ </span>`}};Vo.styles=[Do],Mo([S({type:String,reflect:!0})],Vo.prototype,"size",2),Vo=Mo([L("sds-tag")],Vo);const Bo=d`
3395
+ ${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}}')}
3402
3396
 
3403
3397
  :host {
3404
3398
  --dsc-tooltip-background: var(--sds-tooltip-background, var(--sds-color-neutral-text-default));
@@ -3480,7 +3474,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3480
3474
  border: 1px solid CanvasText;
3481
3475
  }
3482
3476
  }
3483
- `;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`
3477
+ `;var jo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Io=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ro(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&jo(s,e,a),a};let No=class extends(Ot(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(s=>{const e=s.shadowRoot?.querySelector("button, a")??s;this.cleanups.push(()=>e.removeAttribute("aria-label")),e.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const s=t.getAttribute("aria-describedby");return s?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const s=()=>this.show(t),e=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",s),t.addEventListener("mouseleave",e),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",s),t.removeEventListener("mouseleave",e),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([L("sds-tooltip")],No);const Ho=d`
3484
3478
  :host {
3485
3479
  --_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
3486
3480
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3515,6 +3509,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3515
3509
  --_sds-text-color: var(--sds-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
3516
3510
  }
3517
3511
 
3512
+ :host([subtle]) {
3513
+ --_sds-text-color: var(--sds-text-color, var(--sds-color-text-subtle, var(--sds-color-neutral-text-subtle)));
3514
+ }
3515
+
3518
3516
  /* Mobile */
3519
3517
  :host {
3520
3518
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3895,7 +3893,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3895
3893
  --_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-leadtext-xl-strong-tall-desktop-line-height));
3896
3894
  }
3897
3895
  }
3898
- `;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`
3896
+ `;var Fo=Object.defineProperty,Uo=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&Fo(s,e,a),a};const Ko=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>`}};Ko.styles=[Ho];let Wo=Ko;Uo([S({type:String,reflect:!0})],Wo.prototype,"size"),Uo([S({type:Boolean,reflect:!0})],Wo.prototype,"strong"),Uo([S({type:Boolean,reflect:!0})],Wo.prototype,"subtle"),Uo([S({type:Boolean,reflect:!0})],Wo.prototype,"tall");var Go=Object.getOwnPropertyDescriptor;let Zo=class extends Wo{};Zo=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?Go(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-text")],Zo);const Yo=d`
3899
3897
  :host {
3900
3898
  --_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3901
3899
  --_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -4067,32 +4065,32 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4067
4065
  --sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
4068
4066
  }
4069
4067
  }
4070
- `;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`
4071
- <div class="${se(t)}">
4072
- <label for="sds-textfield" class="sds-textfield__label" ?hidden="${!s}">
4073
- ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}
4068
+ `;var Qo=Object.defineProperty,Xo=(t,s,e,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(s,e,a)||a);return a&&Qo(s,e,a),a};const Jo=class extends(es(Ot(as(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 s=t.target;this.hasIcon=s.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,s,e){this.control&&this.control.setSelectionRange(t,s,e)}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},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,e=this._hasSlottedLabel||Boolean(this.label);return J`
4069
+ <div class="${ts(t)}">
4070
+ <label for="sds-textfield" class="sds-textfield__label" ?hidden="${!e}">
4071
+ ${this.readOnly?J`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:et}
4074
4072
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
4075
4073
  </label>
4076
- ${this.helpText?et`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:rt}
4074
+ ${this.helpText?J`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:et}
4077
4075
  <div class="sds-textfield__input-container">
4078
4076
  <input
4079
4077
  part="input"
4080
4078
  class="sds-textfield__input"
4081
- type="${Rt(this.type)}"
4079
+ type="${Tt(this.type)}"
4082
4080
  id="sds-textfield"
4083
4081
  ?disabled="${this.disabled}"
4084
4082
  ?readonly="${this.readOnly}"
4085
- placeholder="${Rt(this.placeholder)}"
4083
+ placeholder="${Tt(this.placeholder)}"
4086
4084
  .value="${this.value??""}"
4087
- name="${Rt(this.name)}"
4088
- autocomplete="${Rt(this.autocomplete)}"
4085
+ name="${Tt(this.name)}"
4086
+ autocomplete="${Tt(this.autocomplete)}"
4089
4087
  ?required="${this.required}"
4090
- pattern="${Rt(this.pattern)}"
4091
- min="${Rt(this.min)}"
4092
- minlength="${Rt(this.minlength)}"
4093
- max="${Rt(this.max)}"
4094
- maxlength="${Rt(this.maxlength)}"
4095
- aria-describedby="${Rt(e)}"
4088
+ pattern="${Tt(this.pattern)}"
4089
+ min="${Tt(this.min)}"
4090
+ minlength="${Tt(this.minlength)}"
4091
+ max="${Tt(this.max)}"
4092
+ maxlength="${Tt(this.maxlength)}"
4093
+ aria-describedby="${Tt(s)}"
4096
4094
  aria-invalid="${this.errorMessage?"true":"false"}"
4097
4095
  @input="${this._handleInputChange}"
4098
4096
  @change="${this._handleInputChange}"
@@ -4103,9 +4101,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4103
4101
  />
4104
4102
  <slot name="after" @slotchange="${this.handleSlotChange}" aria-hidden="true"></slot>
4105
4103
  </div>
4106
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
4104
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:et}
4107
4105
  </div>
4108
- `}};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`
4106
+ `}};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([O("#sds-textfield")],tr.prototype,"control");var sr=Object.getOwnPropertyDescriptor;let er=class extends tr{};er=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?sr(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-textfield")],er);const or=d`
4109
4107
  :host {
4110
4108
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
4111
4109
  --_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -4119,6 +4117,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4119
4117
  --_sds-textarea-font-weight: var(--sds-textarea-font-weight, var(--sds-typography-font-weight-regular));
4120
4118
  --_sds-textarea-line-height: var(--sds-textarea-line-height, var(--sds-components-line-height-tall-content-md));
4121
4119
  --_sds-textarea-min-height: var(--sds-textarea-height, var(--sds-components-button-md));
4120
+ --_sds-textarea-max-height: var(--sds-textarea-max-height, none);
4122
4121
 
4123
4122
  --_sds-textarea-gap: var(--sds-textarea-gap, var(--sds-spacing-3xs));
4124
4123
  --_sds-textarea-padding-block: var(--sds-textarea-padding-block, var(--sds-spacing-2xs));
@@ -4181,6 +4180,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4181
4180
  background: var(--_sds-textarea-background-color);
4182
4181
  cursor: var(--_sds-textarea-cursor);
4183
4182
  max-width: var(--sds-typography-max-line-width);
4183
+ max-height: var(--_sds-textarea-max-height);
4184
4184
  width: 100%;
4185
4185
  min-height: var(--_sds-textarea-min-height);
4186
4186
  resize: var(--_sds-textarea-resize);
@@ -4260,6 +4260,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4260
4260
  }
4261
4261
  }
4262
4262
 
4263
+ :host([autosize]) .sds-textarea__input {
4264
+ field-sizing: content;
4265
+ resize: none;
4266
+ }
4267
+
4263
4268
  :host([readonly]) {
4264
4269
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
4265
4270
  --_sds-textarea-border-color: var(--sds-textarea-border-color, var(--sds-color-border-subtle, var(--sds-color-neutral-border-subtle)));
@@ -4301,16 +4306,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4301
4306
  --_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
4302
4307
  --_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
4303
4308
  }
4304
- `;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.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"
4309
+ `;var rr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ir=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?ar(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(s,e,a):r(a))||a);return o&&a&&rr(s,e,a),a};let dr=class extends(es(Ot(as(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 et;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?J`<sds-alert variant="secondary" data-palette="danger"
4305
4310
  ><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
4306
- >`: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`
4307
- <div class="${se(s)}">
4308
- <div style="${e||this.helpText?rt:"display: none"}">
4309
- <label for="sds-textarea" class="sds-textarea__label" ?hidden="${!e}">
4310
- ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}
4311
+ >`: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,s,e){this.control&&this.control.setSelectionRange(t,s,e)}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()),s=this._hasSlottedLabel||Boolean(this.label),e={"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`
4312
+ <div class="${ts(e)}">
4313
+ <div style="${s||this.helpText?et:"display: none"}">
4314
+ <label for="sds-textarea" class="sds-textarea__label" ?hidden="${!s}">
4315
+ ${this.readOnly?J`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:et}
4311
4316
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
4312
4317
  </label>
4313
- ${this.helpText?et`<p id="help-text" class="sds-textarea__help-text">${this.helpText}</p>`:rt}
4318
+ ${this.helpText?J`<p id="help-text" class="sds-textarea__help-text">${this.helpText}</p>`:et}
4314
4319
  </div>
4315
4320
  <div class="sds-textarea__input-container">
4316
4321
  <textarea
@@ -4318,17 +4323,17 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4318
4323
  id="sds-textarea"
4319
4324
  ?disabled="${this.disabled}"
4320
4325
  ?readonly="${this.readOnly}"
4321
- placeholder="${Rt(this.placeholder)}"
4326
+ placeholder="${Tt(this.placeholder)}"
4322
4327
  .value="${this.value??""}"
4323
4328
  .autocomplete="${this.autocomplete}"
4324
- name="${Rt(this.name)}"
4329
+ name="${Tt(this.name)}"
4325
4330
  ?required="${this.required}"
4326
- rows="${Rt(this.rows)}"
4327
- cols="${Rt(this.cols)}"
4328
- wrap="${Rt(this.wrap)}"
4329
- minlength="${Rt(this.minlength)}"
4330
- maxlength="${Rt(this.maxlength)}"
4331
- aria-describedby="${Rt(o)}"
4331
+ rows="${Tt(this.rows)}"
4332
+ cols="${Tt(this.cols)}"
4333
+ wrap="${Tt(this.wrap)}"
4334
+ minlength="${Tt(this.minlength)}"
4335
+ maxlength="${Tt(this.maxlength)}"
4336
+ aria-describedby="${Tt(o)}"
4332
4337
  aria-invalid="${t?"true":"false"}"
4333
4338
  @input="${this._handleInputChange}"
4334
4339
  @change="${this._handleInputChange}"
@@ -4337,7 +4342,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4337
4342
  @blur="${this._handleBlur}"
4338
4343
  ></textarea>
4339
4344
  </div>
4340
- ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
4345
+ ${this.errorMessage?J`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:et}
4341
4346
  ${this.renderCharacterCounter()}
4342
4347
  </div>
4343
- `}};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,"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};
4348
+ `}};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([O("#sds-textarea")],dr.prototype,"control",2),ir([C()],dr.prototype,"_hasSlottedLabel",2),dr=ir([L("sds-textarea")],dr);export{bs as SDSAlert,us as SDSButton,ks as SDSCard,Es as SDSCheckbox,qs as SDSCheckboxGroup,js as SDSChip,Xs as SDSDetails,oe as SDSDetailsGroup,he as SDSDialog,Ws as SDSEnvironmentBanner,_e as SDSHeading,Jt as SDSIcon,$e as SDSInternalHeader,Ae as SDSLoader,Ve as SDSNotification,Xe as SDSPopover,Ne as SDSProcess,We 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,er as SDSTextField,No as SDSTooltip};