@politiet/sheriff-web-components 2.5.0 → 2.6.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 (159) hide show
  1. package/custom-elements.json +529 -304
  2. package/dist/frameworks/preact.d.ts +12 -3
  3. package/dist/frameworks/preact.d.ts.map +1 -1
  4. package/dist/frameworks/react.d.ts +12 -3
  5. package/dist/frameworks/react.d.ts.map +1 -1
  6. package/dist/frameworks/solidjs.d.ts +3 -0
  7. package/dist/frameworks/solidjs.d.ts.map +1 -1
  8. package/dist/frameworks/svelte.d.ts +3 -0
  9. package/dist/frameworks/svelte.d.ts.map +1 -1
  10. package/dist/frameworks/vue.d.ts +3 -0
  11. package/dist/frameworks/vue.d.ts.map +1 -1
  12. package/dist/index.d.ts +6 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +3 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/mixins/index.d.ts +3 -0
  17. package/dist/mixins/index.d.ts.map +1 -0
  18. package/dist/mixins/index.js +3 -0
  19. package/dist/mixins/index.js.map +1 -0
  20. package/dist/mixins/sds-delegate-interaction-mixin.d.ts +27 -0
  21. package/dist/mixins/sds-delegate-interaction-mixin.d.ts.map +1 -0
  22. package/dist/mixins/sds-delegate-interaction-mixin.js +29 -0
  23. package/dist/mixins/sds-delegate-interaction-mixin.js.map +1 -0
  24. package/dist/mixins/sds-event-dispatcher-mixin.d.ts +3 -3
  25. package/dist/mixins/sds-event-dispatcher-mixin.d.ts.map +1 -1
  26. package/dist/mixins/sds-event-dispatcher-mixin.js +58 -1
  27. package/dist/mixins/sds-event-dispatcher-mixin.js.map +1 -1
  28. package/dist/mixins/sds-popover-target-mixin.d.ts +8 -0
  29. package/dist/mixins/sds-popover-target-mixin.d.ts.map +1 -0
  30. package/dist/mixins/sds-popover-target-mixin.js +77 -0
  31. package/dist/mixins/sds-popover-target-mixin.js.map +1 -0
  32. package/dist/mixins/types.d.ts +2 -0
  33. package/dist/mixins/types.d.ts.map +1 -0
  34. package/dist/mixins/types.js +2 -0
  35. package/dist/mixins/types.js.map +1 -0
  36. package/dist/react-wrappers/SDSPopoverWrapper.d.ts +3 -0
  37. package/dist/react-wrappers/SDSPopoverWrapper.d.ts.map +1 -0
  38. package/dist/react-wrappers/SDSPopoverWrapper.js +10 -0
  39. package/dist/react-wrappers/SDSPopoverWrapper.js.map +1 -0
  40. package/dist/react-wrappers/SDSProcessStepWrapper.d.ts +3 -0
  41. package/dist/react-wrappers/SDSProcessStepWrapper.d.ts.map +1 -0
  42. package/dist/react-wrappers/SDSProcessStepWrapper.js +10 -0
  43. package/dist/react-wrappers/SDSProcessStepWrapper.js.map +1 -0
  44. package/dist/react-wrappers/SDSProcessWrapper.d.ts +3 -0
  45. package/dist/react-wrappers/SDSProcessWrapper.d.ts.map +1 -0
  46. package/dist/react-wrappers/SDSProcessWrapper.js +10 -0
  47. package/dist/react-wrappers/SDSProcessWrapper.js.map +1 -0
  48. package/dist/react-wrappers/SDSTextFieldWrapper.d.ts +2 -0
  49. package/dist/react-wrappers/SDSTextFieldWrapper.d.ts.map +1 -1
  50. package/dist/react-wrappers/SDSTextFieldWrapper.js +1 -0
  51. package/dist/react-wrappers/SDSTextFieldWrapper.js.map +1 -1
  52. package/dist/react-wrappers/index.d.ts +3 -0
  53. package/dist/react-wrappers/index.d.ts.map +1 -1
  54. package/dist/react-wrappers/index.js +3 -0
  55. package/dist/react-wrappers/index.js.map +1 -1
  56. package/dist/sds-alert/sds-alert.component.d.ts +2 -1
  57. package/dist/sds-alert/sds-alert.component.d.ts.map +1 -1
  58. package/dist/sds-alert/sds-alert.component.js +3 -5
  59. package/dist/sds-alert/sds-alert.component.js.map +1 -1
  60. package/dist/sds-button/sds-button.component.d.ts +5 -4
  61. package/dist/sds-button/sds-button.component.d.ts.map +1 -1
  62. package/dist/sds-button/sds-button.component.js +20 -30
  63. package/dist/sds-button/sds-button.component.js.map +1 -1
  64. package/dist/sds-checkbox/sds-checkbox.d.ts +2 -4
  65. package/dist/sds-checkbox/sds-checkbox.d.ts.map +1 -1
  66. package/dist/sds-checkbox/sds-checkbox.js +5 -16
  67. package/dist/sds-checkbox/sds-checkbox.js.map +1 -1
  68. package/dist/sds-checkbox-group/sds-checkbox-group.d.ts +2 -1
  69. package/dist/sds-checkbox-group/sds-checkbox-group.d.ts.map +1 -1
  70. package/dist/sds-checkbox-group/sds-checkbox-group.js +3 -5
  71. package/dist/sds-checkbox-group/sds-checkbox-group.js.map +1 -1
  72. package/dist/sds-chip/sds-chip.d.ts +14 -12
  73. package/dist/sds-chip/sds-chip.d.ts.map +1 -1
  74. package/dist/sds-chip/sds-chip.js +29 -33
  75. package/dist/sds-chip/sds-chip.js.map +1 -1
  76. package/dist/sds-details/sds-details.d.ts +3 -1
  77. package/dist/sds-details/sds-details.d.ts.map +1 -1
  78. package/dist/sds-details/sds-details.js +3 -6
  79. package/dist/sds-details/sds-details.js.map +1 -1
  80. package/dist/sds-dialog/sds-dialog.d.ts +5 -1
  81. package/dist/sds-dialog/sds-dialog.d.ts.map +1 -1
  82. package/dist/sds-dialog/sds-dialog.js +43 -27
  83. package/dist/sds-dialog/sds-dialog.js.map +1 -1
  84. package/dist/sds-dialog/sds-dialog.styles.d.ts.map +1 -1
  85. package/dist/sds-dialog/sds-dialog.styles.js +3 -1
  86. package/dist/sds-dialog/sds-dialog.styles.js.map +1 -1
  87. package/dist/sds-icon/sds-icon.styles.d.ts.map +1 -1
  88. package/dist/sds-icon/sds-icon.styles.js +2 -1
  89. package/dist/sds-icon/sds-icon.styles.js.map +1 -1
  90. package/dist/sds-notification/sds-notification.d.ts +2 -1
  91. package/dist/sds-notification/sds-notification.d.ts.map +1 -1
  92. package/dist/sds-notification/sds-notification.js +3 -5
  93. package/dist/sds-notification/sds-notification.js.map +1 -1
  94. package/dist/sds-popover/assets/popover-styles.d.ts +3 -0
  95. package/dist/sds-popover/assets/popover-styles.d.ts.map +1 -0
  96. package/dist/sds-popover/assets/popover-styles.js +3 -0
  97. package/dist/sds-popover/assets/popover-styles.js.map +1 -0
  98. package/dist/sds-popover/assets/positioning.js +1 -0
  99. package/dist/sds-popover/sds-popover.d.ts +25 -0
  100. package/dist/sds-popover/sds-popover.d.ts.map +1 -0
  101. package/dist/sds-popover/sds-popover.js +43 -0
  102. package/dist/sds-popover/sds-popover.js.map +1 -0
  103. package/dist/sds-popover/sds-popover.styles.d.ts +2 -0
  104. package/dist/sds-popover/sds-popover.styles.d.ts.map +1 -0
  105. package/dist/sds-popover/sds-popover.styles.js +52 -0
  106. package/dist/sds-popover/sds-popover.styles.js.map +1 -0
  107. package/dist/sds-process/sds-process.d.ts +20 -0
  108. package/dist/sds-process/sds-process.d.ts.map +1 -0
  109. package/dist/sds-process/sds-process.js +29 -0
  110. package/dist/sds-process/sds-process.js.map +1 -0
  111. package/dist/sds-process/sds-process.styles.d.ts +2 -0
  112. package/dist/sds-process/sds-process.styles.d.ts.map +1 -0
  113. package/dist/sds-process/sds-process.styles.js +8 -0
  114. package/dist/sds-process/sds-process.styles.js.map +1 -0
  115. package/dist/sds-process-step/sds-process-step.d.ts +29 -0
  116. package/dist/sds-process-step/sds-process-step.d.ts.map +1 -0
  117. package/dist/sds-process-step/sds-process-step.js +75 -0
  118. package/dist/sds-process-step/sds-process-step.js.map +1 -0
  119. package/dist/sds-process-step/sds-process-step.styles.d.ts +2 -0
  120. package/dist/sds-process-step/sds-process-step.styles.d.ts.map +1 -0
  121. package/dist/sds-process-step/sds-process-step.styles.js +143 -0
  122. package/dist/sds-process-step/sds-process-step.styles.js.map +1 -0
  123. package/dist/sds-radio/sds-radio.d.ts +2 -4
  124. package/dist/sds-radio/sds-radio.d.ts.map +1 -1
  125. package/dist/sds-radio/sds-radio.js +5 -16
  126. package/dist/sds-radio/sds-radio.js.map +1 -1
  127. package/dist/sds-radio-group/sds-radio-group.d.ts +2 -1
  128. package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
  129. package/dist/sds-radio-group/sds-radio-group.js +3 -2
  130. package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
  131. package/dist/sds-select/sds-select.d.ts +2 -4
  132. package/dist/sds-select/sds-select.d.ts.map +1 -1
  133. package/dist/sds-select/sds-select.js +9 -21
  134. package/dist/sds-select/sds-select.js.map +1 -1
  135. package/dist/sds-stepper/sds-stepper.d.ts +1 -1
  136. package/dist/sds-stepper-step/sds-stepper-step.d.ts +1 -1
  137. package/dist/sds-switch/sds-switch.d.ts +2 -1
  138. package/dist/sds-switch/sds-switch.d.ts.map +1 -1
  139. package/dist/sds-switch/sds-switch.js +5 -13
  140. package/dist/sds-switch/sds-switch.js.map +1 -1
  141. package/dist/sds-textarea/sds-textarea.d.ts +3 -4
  142. package/dist/sds-textarea/sds-textarea.d.ts.map +1 -1
  143. package/dist/sds-textarea/sds-textarea.js +15 -17
  144. package/dist/sds-textarea/sds-textarea.js.map +1 -1
  145. package/dist/sds-textfield/sds-textfield.d.ts +3 -4
  146. package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
  147. package/dist/sds-textfield/sds-textfield.js +28 -28
  148. package/dist/sds-textfield/sds-textfield.js.map +1 -1
  149. package/dist/sds-textfield/sds-textfield.spec.js +3 -3
  150. package/dist/sds-textfield/sds-textfield.spec.js.map +1 -1
  151. package/dist/sheriff-web-components.js +326 -116
  152. package/dist/skill/SKILL.md +172 -0
  153. package/dist/skill/references/components.md +481 -0
  154. package/dist/skill/references/react-wrappers.md +66 -0
  155. package/dist/types.d.ts +1 -0
  156. package/dist/types.d.ts.map +1 -1
  157. package/dist/types.js.map +1 -1
  158. package/package.json +47 -28
  159. package/web-types.json +825 -371
@@ -1,4 +1,4 @@
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,...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)},d=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let s="";for(const e of t.cssRules)s+=e.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(s)})(t):t,{is:n,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:p,getPrototypeOf:g}=Object,v=globalThis,u=v.trustedTypes,f=u?u.emptyScript:"",b=v.reactiveElementPolyfillSupport,_=(t,s)=>t,m={toAttribute(t,s){switch(s){case Boolean:t=t?f: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}},x=(t,s)=>!n(t,s),y={attribute:!0,type:String,converter:m,reflect:!1,useDefault:!1,hasChanged:x};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),v.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let w=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=y){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&&l(this.prototype,t,o)}}static getPropertyDescriptor(t,s,e){const{get:o,set:r}=c(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)??y}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,s=[...h(t),...p(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(d(t))}else void 0!==t&&s.push(d(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:m).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:m;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??x)(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){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[_("elementProperties")]=/* @__PURE__ */new Map,w[_("finalized")]=/* @__PURE__ */new Map,b?.({ReactiveElement:w}),(v.reactiveElementVersions??=[]).push("2.1.2");const k={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},z=(t=k,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 $(t){return(s,e)=>"object"==typeof e?z(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 S(t){return $({...t,state:!0,attribute:!1})}const C=(t,s,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&"object"!=typeof s&&Object.defineProperty(t,s,e),e);function E(t,s){return(s,e,o)=>C(s,e,{get(){return s=this,s.renderRoot?.querySelector(t)??null;var s}})}function O(t){return(s,e)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return C(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 A(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 q=globalThis,P=t=>t,D=q.trustedTypes,L=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,M="?"+R,B=`<${M}>`,T=document,I=()=>T.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,F="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,W=/>/g,G=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,Y=/"/g,Z=/^(?:script|style|textarea|title)$/i,Q=(et=1,(t,...s)=>({_$litType$:et,strings:t,values:s})),X=/* @__PURE__ */Symbol.for("lit-noChange"),J=/* @__PURE__ */Symbol.for("lit-nothing"),tt=/* @__PURE__ */new WeakMap,st=T.createTreeWalker(T,129);var et;function ot(t,s){if(!N(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(s):s}class rt{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=H:void 0!==n[1]?i=W:void 0!==n[2]?(Z.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,e=n[1],i=void 0===n[3]?G:'"'===n[3]?Y:K):i===Y||i===K?i=G:i===H||i===W?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?s+B:l>=0?(o.push(e),s.slice(0,l)+V+s.slice(l)+R+h):s+R+(-2===l?d:h)}return[ot(t,a+(t[e]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),o]})(t,s);if(this.el=rt.createElement(n,e),st.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=st.nextNode())&&d.length<i;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(V)){const s=l[a++],e=o.getAttribute(t).split(R),i=/([.?@])?(.*)/.exec(s);d.push({type:1,index:r,name:i[2],strings:e,ctor:"."===i[1]?lt:"?"===i[1]?ct:"@"===i[1]?ht:nt}),o.removeAttribute(t)}else t.startsWith(R)&&(d.push({type:6,index:r}),o.removeAttribute(t));if(Z.test(o.tagName)){const t=o.textContent.split(R),s=t.length-1;if(s>0){o.textContent=D?D.emptyScript:"";for(let e=0;e<s;e++)o.append(t[e],I()),st.nextNode(),d.push({type:2,index:++r});o.append(t[s],I())}}}else if(8===o.nodeType)if(o.data===M)d.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)d.push({type:7,index:r}),t+=R.length-1}r++}}static createElement(t,s){const e=T.createElement("template");return e.innerHTML=t,e}}function at(t,s,e=t,o){if(s===X)return s;let r=void 0!==o?e._$Co?.[o]:e._$Cl;const a=j(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=at(t,r._$AS(t,s.values),r,o)),s}class it{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??T).importNode(s,!0);st.currentNode=o;let r=st.nextNode(),a=0,i=0,d=e[0];for(;void 0!==d;){if(a===d.index){let s;2===d.type?s=new dt(r,r.nextSibling,this,t):1===d.type?s=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(s=new pt(r,this,t)),this._$AV.push(s),d=e[++i]}a!==d?.index&&(r=st.nextNode(),a++)}return st.currentNode=T,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 dt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,e,o){this.type=2,this._$AH=J,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=at(this,t,s),j(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>N(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!==J&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.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=rt.createElement(ot(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===o)this._$AH.p(s);else{const t=new it(o,this),e=t.u(this.options);t.p(s),this.T(e),this._$AH=t}}_$AC(t){let s=tt.get(t.strings);return void 0===s&&tt.set(t.strings,s=new rt(t)),s}k(t){N(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 dt(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=P(t).nextSibling;P(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class nt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,e,o,r){this.type=1,this._$AH=J,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=J}_$AI(t,s=this,e,o){const r=this.strings;let a=!1;if(void 0===r)t=at(this,t,s,0),a=!j(t)||t!==this._$AH&&t!==X,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=at(this,o[e+i],s,i),d===X&&(d=this._$AH[i]),a||=!j(d)||d!==this._$AH[i],d===J?t=J:t!==J&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}class ct extends nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}}class ht extends nt{constructor(t,s,e,o,r){super(t,s,e,o,r),this.type=5}_$AI(t,s=this){if((t=at(this,t,s,0)??J)===X)return;const e=this._$AH,o=t===J&&e!==J||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==J&&(e===J||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 pt{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){at(this,t)}}const gt=q.litHtmlPolyfillSupport;gt?.(rt,dt),(q.litHtmlVersions??=[]).push("3.3.2");const vt=globalThis;let ut=class extends w{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 dt(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 X}};ut._$litElement$=!0,ut.finalized=!0,vt.litElementHydrateSupport?.({LitElement:ut});const ft=vt.litElementPolyfillSupport;ft?.({LitElement:ut}),(vt.litElementVersions??=[]).push("4.2.2");const bt=/* @__PURE__ */Symbol.for(""),_t=t=>{if(t?.r===bt)return t?._$litStatic$},mt=(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:bt}),xt=/* @__PURE__ */new Map,yt=(t=>(s,...e)=>{const o=e.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=s[l];l<o&&void 0!==(a=e[l],r=_t(a));)n+=r+s[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(s[o]),c){const t=i.join("$$lit$$");void 0===(s=xt.get(t))&&(i.raw=i,xt.set(t,s=i)),e=d}return t(s,...e)})(Q),wt=i`
1
+ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=/* @__PURE__ */Symbol(),r=/* @__PURE__ */new WeakMap;let a=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}};const i=t=>new a("string"==typeof t?t:t+"",void 0,o),d=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new a(s,t,o)},n=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:p,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,u=globalThis,f=u.trustedTypes,b=f?f.emptyScript:"",m=u.reactiveElementPolyfillSupport,_=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),u.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,e=[...p(t),...g(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(s)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of o){const o=document.createElement("style"),r=e.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=s.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??y)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[_("elementProperties")]=/* @__PURE__ */new Map,k[_("finalized")]=/* @__PURE__ */new Map,m?.({ReactiveElement:k}),(u.reactiveElementVersions??=[]).push("2.1.2");const z={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},$=(t=z,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function S(t){return(e,s)=>"object"==typeof s?$(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function C(t){return S({...t,state:!0,attribute:!1})}const E=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function A(t,e){return(e,s,o)=>E(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function O(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return E(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function P(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const L=globalThis,D=t=>t,q=L.trustedTypes,T=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,R="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+M,B=`<${V}>`,I=document,F=()=>I.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,N="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,G=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Z=/^(?:script|style|textarea|title)$/i,Q=(ot=1,(t,...e)=>({_$litType$:ot,strings:t,values:e})),J=/* @__PURE__ */Symbol.for("lit-noChange"),tt=/* @__PURE__ */Symbol.for("lit-nothing"),et=/* @__PURE__ */new WeakMap,st=I.createTreeWalker(I,129);var ot;function rt(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(e):e}let at=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=U;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===U?"!--"===n[1]?i=W:void 0!==n[1]?i=K:void 0!==n[2]?(Z.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?G:'"'===n[3]?X:Y):i===X||i===Y?i=G:i===W||i===K?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?e+B:l>=0?(o.push(s),e.slice(0,l)+R+e.slice(l)+M+h):e+M+(-2===l?d:h)}return[rt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),st.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(R)){const e=c[i++],s=r.getAttribute(t).split(M),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?ct:"?"===o[1]?ht:"@"===o[1]?pt:lt}),r.removeAttribute(t)}else t.startsWith(M)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(Z.test(r.tagName)){const t=r.textContent.split(M),e=t.length-1;if(e>0){r.textContent=q?q.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],F()),st.nextNode(),n.push({type:2,index:++a});r.append(t[e],F())}}}else if(8===r.nodeType)if(r.data===V)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(M,t+1));)n.push({type:7,index:a}),t+=M.length-1}a++}}static createElement(t,e){const s=I.createElement("template");return s.innerHTML=t,s}};function it(t,e,s=t,o){if(e===J)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=j(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=it(t,r._$AS(t,e.values),r,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??I).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new nt(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new gt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=st.nextNode(),a++)}return st.currentNode=I,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),j(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=at.createElement(rt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new at(t)),e}k(e){H(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(F()),this.O(F()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=D(t).nextSibling;D(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=tt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=it(this,t,e,0),a=!j(t)||t!==this._$AH&&t!==J,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=it(this,o[s+i],e,i),d===J&&(d=this._$AH[i]),a||=!j(d)||d!==this._$AH[i],d===tt?t=tt:t!==tt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},ht=class extends lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},pt=class extends lt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===J)return;const s=this._$AH,o=t===tt&&s!==tt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==tt&&(s===tt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const vt=L.litHtmlPolyfillSupport;vt?.(at,nt),(L.litHtmlVersions??=[]).push("3.3.2");const ut=globalThis;let ft=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new nt(e.insertBefore(F(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}};ft._$litElement$=!0,ft.finalized=!0,ut.litElementHydrateSupport?.({LitElement:ft});const bt=ut.litElementPolyfillSupport;bt?.({LitElement:ft}),(ut.litElementVersions??=[]).push("4.2.2");const mt=/* @__PURE__ */Symbol.for(""),_t=t=>{if(t?.r===mt)return t?._$litStatic$},xt=t=>({_$litStatic$:t,r:mt}),yt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:mt}),wt=/* @__PURE__ */new Map,kt=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=_t(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=wt.get(t))&&(i.raw=i,wt.set(t,e=i)),s=d}return t(e,...s)})(Q),zt=d`
2
2
  :host {
3
3
  --_sds-alert-background-color: var(--sds-alert-background-color, var(--sds-color-alert-info-surface-tinted));
4
4
 
@@ -180,7 +180,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
180
180
  margin: 0 !important;
181
181
  max-width: var(--_sds-alert-max-line-width) !important;
182
182
  }
183
- `;var kt=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&&kt(s,e,a),a};const $t={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},St=class extends ut{constructor(){super(...arguments),this.variant="primary",this.size="md",this.palette="info",this.iconTag=mt`sds-icon`,this.buttonTag=mt`sds-button`,this._remove=()=>{this.dispatchEvent(new CustomEvent("sds-remove",{bubbles:!0,composed:!0}))},this._renderIcon=(t,s,e)=>yt`<${this.iconTag} ${e?`class=${e}`:""} name="${t}" size=${s}></${this.iconTag}>`,this._renderRemoveButton=t=>yt`<${this.buttonTag}
183
+ `,$t=/* @__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","load","unload","abort","error","resize","scroll","keyup","reset","select"]);function St(t){return class extends t{dispatchSheriffEvent(t,e,s=!$t.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:!$t.has(t),ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,repeat:e.repeat,isComposing:e.isComposing,location:e.location}))}}}var Ct=Object.defineProperty,Et=(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&&Ct(e,s,a),a};const At={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},Ot=class extends(St(ft)){constructor(){super(...arguments),this.variant="primary",this.size="md",this.palette="info",this.iconTag=yt`sds-icon`,this.buttonTag=yt`sds-button`,this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},this._renderIcon=(t,e,s)=>kt`<${this.iconTag} ${s?`class=${s}`:""} name="${t}" size=${e}></${this.iconTag}>`,this._renderRemoveButton=t=>kt`<${this.buttonTag}
184
184
  class="sds-alert__remove-btn"
185
185
  variant="tertiary"
186
186
  size="sm"
@@ -189,19 +189,20 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
189
189
  @click=${this._remove}
190
190
  >
191
191
  ${this._renderIcon("close-material-outlined","sm")}
192
- </${this.buttonTag}>`}render(){const t="primary"===this.variant?"md":this.size??"md",s=$t[this.palette]??$t.info;return Q`<div class="sds-alert">
193
- <div class="sds-alert__type">${this._renderIcon(s,t,"sds-alert__icon")}</div>
192
+ </${this.buttonTag}>`}render(){const t="primary"===this.variant?"md":this.size??"md",e=At[this.palette]??At.info;return Q`<div class="sds-alert">
193
+ <div class="sds-alert__type">${this._renderIcon(e,t,"sds-alert__icon")}</div>
194
194
  <div class="sds-alert__content">
195
195
  <slot name="title"></slot>
196
196
  <slot name="message"></slot>
197
197
  </div>
198
- ${this.removableLabel&&"primary"===this.variant?Q`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:J}
199
- </div>`}};St.styles=[wt];let Ct=St;zt([$({type:String,reflect:!0})],Ct.prototype,"variant"),zt([$({type:String,reflect:!0})],Ct.prototype,"size"),zt([$({type:String,attribute:"removable-label",reflect:!0})],Ct.prototype,"removableLabel"),zt([$({type:String,attribute:"data-palette",reflect:!0})],Ct.prototype,"palette");const Et=t=>t??J,Ot=1,At=2,qt=t=>(...s)=>({_$litDirective$:t,values:s});class Pt{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 Dt=class extends Pt{constructor(t){if(super(t),this.it=J,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===X)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:[]}}};Dt.directiveName="unsafeHTML",Dt.resultType=1;class Lt extends Dt{}Lt.directiveName="unsafeSVG",Lt.resultType=2;const Vt=qt(Lt),Rt=["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"],Mt={"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>'},Bt=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Tt=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 It=i`
198
+ ${this.removableLabel&&"primary"===this.variant?Q`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:tt}
199
+ </div>`}};Ot.styles=[zt];let Pt=Ot;Et([S({type:String,reflect:!0})],Pt.prototype,"variant"),Et([S({type:String,reflect:!0})],Pt.prototype,"size"),Et([S({type:String,attribute:"removable-label",reflect:!0})],Pt.prototype,"removableLabel"),Et([S({type:String,attribute:"data-palette",reflect:!0})],Pt.prototype,"palette");const Lt=t=>t??tt,Dt=1,qt=2,Tt=t=>(...e)=>({_$litDirective$:t,values:e});let Rt=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)}},Mt=class extends Rt{constructor(t){if(super(t),this.it=tt,t.type!==qt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Mt.directiveName="unsafeHTML",Mt.resultType=1;let Vt=class extends Mt{};Vt.directiveName="unsafeSVG",Vt.resultType=2;const Bt=Tt(Vt),It=["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>'},jt=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Ht=t=>fetch(`https://cdn.jsdelivr.net/npm/@politiet/sheriff-icons/dist/assets/${t}.svg`).then(e=>{if(!e.ok)throw new TypeError(`Sheriff: unknown icon: '${t}'`);return e.text()});const Nt=d`
200
200
  :host {
201
201
  --_sds-icon-size: var(--sds-icon-size, var(--sds-components-icon-md));
202
202
  --_sds-icon-color: var(--sds-icon-color, var(--sds-color-text-subtle, var(--sds-color-neutral-text-subtle)));
203
+ --_sds-icon-display: var(--sds-icon-display, inline-block);
203
204
 
204
- display: inline-block;
205
+ display: var(--_sds-icon-display);
205
206
  color: var(--_sds-icon-color);
206
207
  block-size: var(--_sds-icon-size);
207
208
  inline-size: var(--_sds-icon-size);
@@ -228,11 +229,11 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
228
229
  height: 100%;
229
230
  overflow: hidden;
230
231
  }
231
- `;var jt=Object.defineProperty,Nt=(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&&jt(s,e,a),a};const Ft=((t=class extends ut{constructor(){super(...arguments),this.name="",this.color="",this.label="",this.svg=""}static setLoadLocal(t){this.iconLoader.loadLocal=t}static registerResolver(t){this.iconLoader.resolver=t}render(){return Q`
232
- <div class="sds-icon" role="${Et(this.label?"img":void 0)}" style="${Et(this.color?`color:${this.color}`:void 0)}" aria-label="${Et(this.label)}">
233
- ${this.name?Q`<slot aria-hidden="true">${Vt(this.svg)}</slot>`:Q`<slot aria-hidden="true"></slot>`}
232
+ `;var Ut=Object.defineProperty,Wt=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Ut(e,s,a),a};const Kt=((t=class extends ft{constructor(){super(...arguments),this.name="",this.color="",this.label="",this.svg=""}static setLoadLocal(t){this.iconLoader.loadLocal=t}static registerResolver(t){this.iconLoader.resolver=t}render(){return Q`
233
+ <div class="sds-icon" role="${Lt(this.label?"img":void 0)}" style="${Lt(this.color?`color:${this.color}`:void 0)}" aria-label="${Lt(this.label)}">
234
+ ${this.name?Q`<slot aria-hidden="true">${Bt(this.svg)}</slot>`:Q`<slot aria-hidden="true"></slot>`}
234
235
  </div>
235
- `}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=[It],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?Bt:Tt}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Bt:Tt}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,s){if(!this._disableSystemIcons&&(t=>Rt.includes(t))(t))return void s(Mt[t]);let e=this.cache.get(t);"string"!=typeof e?(e||(e=this.resolver(t).catch(()=>"").then(s=>(this.cache.set(t,s),s)),this.cache.set(t,e)),e.then(s)):s(e)}clear(){this.cache.clear()}get currentLoader(){return this.resolver}},t);Nt([$({type:String,reflect:!0})],Ft.prototype,"name"),Nt([$({type:String,reflect:!0})],Ft.prototype,"size"),Nt([$({type:String,reflect:!0})],Ft.prototype,"color"),Nt([$({type:String,reflect:!0})],Ft.prototype,"label"),Nt([S()],Ft.prototype,"svg");let Ut=Ft;var Ht=Object.getOwnPropertyDescriptor;let Wt=class extends Ut{};Wt=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ht(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([A("sds-icon")],Wt);const Gt=qt(class extends Pt{constructor(t){if(super(t),t.type!==Ot||"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 X}}),Kt=i`
236
+ `}async fetchIcon(){if(!this.name)return void(this.svg="");const e=await new Promise(e=>{t.iconLoader.resolve(this.name,e)});this.svg=e}updated(t){super.updated(t),t.has("name")&&this.name&&this.fetchIcon()}}).styles=[Nt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?jt:Ht}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?jt:Ht}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>It.includes(t))(t))return void e(Ft[t]);let s=this.cache.get(t);"string"!=typeof s?(s||(s=this.resolver(t).catch(()=>"").then(e=>(this.cache.set(t,e),e)),this.cache.set(t,s)),s.then(e)):e(s)}clear(){this.cache.clear()}get currentLoader(){return this.resolver}},t);Wt([S({type:String,reflect:!0})],Kt.prototype,"name"),Wt([S({type:String,reflect:!0})],Kt.prototype,"size"),Wt([S({type:String,reflect:!0})],Kt.prototype,"color"),Wt([S({type:String,reflect:!0})],Kt.prototype,"label"),Wt([C()],Kt.prototype,"svg");let Gt=Kt;var Yt=Object.getOwnPropertyDescriptor;let Xt=class extends Gt{};Xt=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Yt(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-icon")],Xt);const Zt=Tt(class extends Rt{constructor(t){if(super(t),t.type!==Dt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=/* @__PURE__ */new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const o of this.st)o in e||(s.remove(o),this.st.delete(o));for(const o in e){const t=!!e[o];t===this.st.has(o)||this.nt?.has(o)||(t?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return J}});var Qt=Object.defineProperty,Jt=(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&&Qt(e,s,a),a};const te=d`
236
237
  :host {
237
238
  --_sds-button-background-color: var(--sds-button-background-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
238
239
  --_sds-button-border-color: var(--sds-button-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -404,26 +405,26 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
404
405
  --_sds-button-padding-inline: var(--sds-button-padding-inline, 0);
405
406
  min-width: var(--_sds-button-min-height);
406
407
  }
407
- `;var Yt=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&&Yt(s,e,a),a};const Qt=class extends ut{constructor(){super(),this.disabled=!1,this.icon=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this._handleClick=t=>{if(t.preventDefault(),t.stopImmediatePropagation(),!this.disabled)switch(this.type){case"submit":{const t=new CustomEvent("submit",{bubbles:!0,composed:!0,cancelable:!0});if(this.dispatchEvent(t))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.requestSubmit()}else this.internals.form&&this.internals.form.requestSubmit();break}case"reset":{const t=new CustomEvent("reset",{bubbles:!0,composed:!0,cancelable:!0});if(this.dispatchEvent(t))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.reset()}else this.internals.form&&this.internals.form.reset();break}default:this.dispatchEvent(new CustomEvent("click",{bubbles:!0,composed:!0}))}},this.internals=this.attachInternals()}updated(t){t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}focus(){this.disabled||this.shadowRoot?.querySelector("button")?.focus()}blur(){this.disabled||this.shadowRoot?.querySelector("button")?.blur()}click(){this.disabled||this.shadowRoot?.querySelector("button")?.click()}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?Q` <a id="link" class="${Gt(t)}" href="${this.href}" target="${Et(this.target)}">
408
+ `;function ee(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 se=Object.defineProperty,oe=(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&&se(e,s,a),a};const re=class extends(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 Jt([S({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),Jt([S({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(ee(St(ft)))){constructor(){super(),this.disabled=!1,this.icon=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this._handleClick=t=>{if(this.popoverTarget)return t.stopImmediatePropagation(),void(this.disabled||this.dispatchSheriffEvent("click"));if(t.preventDefault(),t.stopImmediatePropagation(),!this.disabled)switch(this.type){case"submit":if(this.dispatchSheriffEvent("submit"))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.requestSubmit()}else this.internals.form&&this.internals.form.requestSubmit();break;case"reset":if(this.dispatchSheriffEvent("reset"))if(this.form){const t=this.getRootNode().querySelector(`form#${this.form}`);t?.reset()}else this.internals.form&&this.internals.form.reset();break;default:this.dispatchSheriffEvent("click")}},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?Q` <a id="link" class="${Zt(t)}" href="${this.href}" target="${Lt(this.target)}">
408
409
  <slot name="before"></slot>
409
410
  <slot></slot>
410
411
  <slot name="after"></slot>
411
412
  </a>`:Q`
412
413
  <button
413
414
  id="control"
414
- form="${Et(this.form)}"
415
- class="${Gt(t)}"
415
+ form="${Lt(this.form)}"
416
+ class="${Zt(t)}"
416
417
  type="${this.type}"
417
- name="${Et(this.name)}"
418
- value="${Et(this.value)}"
418
+ name="${Lt(this.name)}"
419
+ value="${Lt(this.value)}"
419
420
  ?disabled="${this.disabled}"
420
421
  @click="${this._handleClick}"
421
422
  >
422
- ${this.loading?Q`<sds-loader slot="before" ?contrast="${"primary"!==this.variant}"></sds-loader>`:J} ${this.loading?J:Q`<slot name="before"></slot>`}
423
+ ${this.loading?Q`<sds-loader slot="before" ?contrast="${"primary"!==this.variant}"></sds-loader>`:tt} ${this.loading?tt:Q`<slot name="before"></slot>`}
423
424
  <slot></slot>
424
- ${this.loading?J:Q`<slot name="after"></slot>`}
425
+ ${this.loading?tt:Q`<slot name="after"></slot>`}
425
426
  </button>
426
- `}};Qt.styles=[Kt],Qt.formAssociated=!0,Qt.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0};let Xt=Qt;Zt([$({type:Boolean,reflect:!0})],Xt.prototype,"disabled"),Zt([$({type:Boolean,reflect:!0})],Xt.prototype,"icon"),Zt([$({type:Boolean,reflect:!0})],Xt.prototype,"loading"),Zt([$({type:String,reflect:!0})],Xt.prototype,"form"),Zt([$({type:String,reflect:!0})],Xt.prototype,"href"),Zt([$({type:String,reflect:!0})],Xt.prototype,"name"),Zt([$({type:String,reflect:!0})],Xt.prototype,"size"),Zt([$({type:String,reflect:!0})],Xt.prototype,"target"),Zt([$({type:String,reflect:!0})],Xt.prototype,"type"),Zt([$({type:String,reflect:!0})],Xt.prototype,"value"),Zt([$({type:String,reflect:!0})],Xt.prototype,"variant");var Jt=Object.getOwnPropertyDescriptor;let ts=class extends Xt{};ts=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?Jt(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([A("sds-button")],ts);var ss=Object.getOwnPropertyDescriptor;let es=class extends Ct{};function os(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)}es=((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=r(a)||a);return a})([A("sds-alert")],es);const rs=i`
427
+ `}};re.styles=[te],re.formAssociated=!0,re.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};let ae=re;oe([S({type:Boolean,reflect:!0})],ae.prototype,"disabled"),oe([S({type:Boolean,reflect:!0})],ae.prototype,"icon"),oe([S({type:Boolean,reflect:!0})],ae.prototype,"loading"),oe([S({type:String,reflect:!0})],ae.prototype,"form"),oe([S({type:String,reflect:!0})],ae.prototype,"href"),oe([S({type:String,reflect:!0})],ae.prototype,"name"),oe([S({type:String,reflect:!0})],ae.prototype,"size"),oe([S({type:String,reflect:!0})],ae.prototype,"target"),oe([S({type:String,reflect:!0})],ae.prototype,"type"),oe([S({type:String,reflect:!0})],ae.prototype,"value"),oe([S({type:String,reflect:!0})],ae.prototype,"variant"),oe([A("#control")],ae.prototype,"control");var ie=Object.getOwnPropertyDescriptor;let de=class extends ae{};de=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ie(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-button")],de);var ne=Object.getOwnPropertyDescriptor;let le=class extends Pt{};function ce(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)}le=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ne(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-alert")],le);const he=d`
427
428
  :host {
428
429
  --_sds-card-background-color: var(--sds-card-background-color, var(--sds-color-surface-tinted, var(--sds-color-main-surface-tinted)));
429
430
  --_sds-card-border-radius: var(--sds-card-border-radius, var(--sds-radius-md));
@@ -544,11 +545,11 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
544
545
  --_sds-card-text-line-height: var(--sds-card-text-line-height, var(--sds-typography-body-md-desktop-line-height));
545
546
  }
546
547
  }
547
- `;var as=Object.defineProperty,is=Object.getOwnPropertyDescriptor,ds=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?is(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};let ns=class extends ut{constructor(){super(...arguments),this._contentWarning="[sds-card] text slot should only contain top-level <p> elements with no nested elements:",this._headerWarning="[sds-card] header slot should only contain one of <h2>–<h6> elements:",this._handleHeadingSlotChange=()=>{this.headingSlot.assignedNodes({flatten:!0}).length>0&&os(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{os(this.textSlot,["P"],0,this._contentWarning)}}firstUpdated(){os(this.textSlot,["P"],0,this._contentWarning);this.headingSlot.assignedNodes({flatten:!0}).length>0&&os(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=Q`
548
+ `;var pe=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,ve=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ge(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&pe(e,s,a),a};let ue=class extends ft{constructor(){super(...arguments),this._contentWarning="[sds-card] text slot should only contain top-level <p> elements with no nested elements:",this._headerWarning="[sds-card] header slot should only contain one of <h2>–<h6> elements:",this._handleHeadingSlotChange=()=>{this.headingSlot.assignedNodes({flatten:!0}).length>0&&ce(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{ce(this.textSlot,["P"],0,this._contentWarning)}}firstUpdated(){ce(this.textSlot,["P"],0,this._contentWarning);this.headingSlot.assignedNodes({flatten:!0}).length>0&&ce(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=Q`
548
549
  <slot name="heading" id="heading" @slotchange=${this._handleHeadingSlotChange}></slot>
549
550
  <slot name="text" id="content" @slotchange=${this._handleTextSlotChange}></slot>
550
551
  <sds-icon name="arrow_forward-material-outlined" size="md" class="sds-card__icon"></sds-icon>
551
- `;return Q`<article class="sds-card">${this.link?Q`<a href="${this.link}" class="sds-card__content">${t}</a>`:Q`<div class="sds-card__content">${t}</div>`}</article>`}};ns.styles=[rs],ds([$({type:String,reflect:!0})],ns.prototype,"link",2),ds([E("slot#heading")],ns.prototype,"headingSlot",2),ds([E("slot#text")],ns.prototype,"textSlot",2),ns=ds([A("sds-card")],ns);const ls=i`
552
+ `;return Q`<article class="sds-card">${this.link?Q`<a href="${this.link}" class="sds-card__content">${t}</a>`:Q`<div class="sds-card__content">${t}</div>`}</article>`}};ue.styles=[he],ve([S({type:String,reflect:!0})],ue.prototype,"link",2),ve([A("slot#heading")],ue.prototype,"headingSlot",2),ve([A("slot#text")],ue.prototype,"textSlot",2),ue=ve([P("sds-card")],ue);const fe=d`
552
553
  :host {
553
554
  --_sds-checkbox-block-gap: var(--sds-checkbox-block-gap, var(--sds-spacing-4xs));
554
555
  --_sds-checkbox-inline-gap: var(--sds-checkbox-inline-gap, var(--sds-spacing-3xs));
@@ -770,13 +771,13 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
770
771
  margin-block-start: -1px;
771
772
  }
772
773
  }
773
- `;var cs=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,ps=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?hs(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&&cs(s,e,a),a};let gs=class extends ut{constructor(){super(),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this.readOnly=!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.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0}))},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))},this.internals=this.attachInternals()}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="checkbox",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({})}focus(){this.disabled||this.shadowRoot?.querySelector("input")?.focus()}blur(){this.disabled||this.shadowRoot?.querySelector("input")?.blur()}click(){this.disabled||this.readOnly||this.shadowRoot?.querySelector("input")?.click()}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={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)};return Q`
774
- <div class="${Gt(t)}">
774
+ `;var be=Object.defineProperty,me=Object.getOwnPropertyDescriptor,_e=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?me(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&be(e,s,a),a};let xe=class extends(ee(St(ft))){constructor(){super(),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this.readOnly=!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.internals=this.attachInternals()}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="checkbox",this.checked&&this.internals.setFormValue(this.value??"on")}firstUpdated(t){super.firstUpdated(t),this.control&&(this.control.required=this.required),this._validate()}formResetCallback(){this.checked=this._initialChecked,this.control&&(this.control.checked=this._initialChecked);const t=this.checked?this.value??"on":null;this.internals.setFormValue(t),this._validate()}_validate(){this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},this.control.validationMessage,this.control):this.internals.setValidity({})}updated(t){super.updated(t),t.has("required")&&this.control&&(this.control.required=this.required),t.has("checked")&&this._validate(),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}get type(){return"checkbox"}render(){const t={"sds-checkbox":!0,"sds-checkbox--error":Boolean(this.error)},e={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)};return Q`
775
+ <div class="${Zt(t)}">
775
776
  <input
776
777
  id="control"
777
778
  type="checkbox"
778
- name="${Et(this.name)}"
779
- value="${Et(this.value)}"
779
+ name="${Lt(this.name)}"
780
+ value="${Lt(this.value)}"
780
781
  .checked="${this.checked}"
781
782
  ?checked="${this.checked}"
782
783
  ?disabled="${this.disabled}"
@@ -785,12 +786,12 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
785
786
  @change="${this._handleChange}"
786
787
  @focus="${this._handleFocus}"
787
788
  @blur="${this._handleBlur}"
788
- class="${Gt(s)}"
789
+ class="${Zt(e)}"
789
790
  />
790
- ${this.label?Q`<label for="control" class="sds-checkbox__label">${this.label}</label>`:J}
791
- ${this.helpText?Q`<span class="sds-checkbox__help-text">${this.helpText}</span>`:J}
791
+ ${this.label?Q`<label for="control" class="sds-checkbox__label">${this.label}</label>`:tt}
792
+ ${this.helpText?Q`<span class="sds-checkbox__help-text">${this.helpText}</span>`:tt}
792
793
  </div>
793
- `}};gs.styles=[ls],gs.formAssociated=!0,gs.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},ps([$({type:String,reflect:!0})],gs.prototype,"name",2),ps([$({type:String,reflect:!0})],gs.prototype,"label",2),ps([$({type:String})],gs.prototype,"value",2),ps([$({type:Boolean,reflect:!0})],gs.prototype,"checked",2),ps([$({type:Boolean,reflect:!0})],gs.prototype,"disabled",1),ps([$({type:Boolean,reflect:!0})],gs.prototype,"error",2),ps([$({type:Boolean,reflect:!0})],gs.prototype,"required",2),ps([$({type:String,reflect:!0})],gs.prototype,"size",2),ps([$({type:String,attribute:"help-text"})],gs.prototype,"helpText",2),ps([$({type:Boolean,attribute:"readonly",reflect:!0})],gs.prototype,"readOnly",2),ps([$({type:Boolean,attribute:!1})],gs.prototype,"parentRequestDisabled",1),ps([E("#control")],gs.prototype,"control",2),gs=ps([A("sds-checkbox")],gs);const vs=i`
794
+ `}};xe.styles=[fe],xe.formAssociated=!0,xe.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},_e([S({type:String,reflect:!0})],xe.prototype,"name",2),_e([S({type:String,reflect:!0})],xe.prototype,"label",2),_e([S({type:String})],xe.prototype,"value",2),_e([S({type:Boolean,reflect:!0})],xe.prototype,"checked",2),_e([S({type:Boolean,reflect:!0})],xe.prototype,"disabled",1),_e([S({type:Boolean,reflect:!0})],xe.prototype,"error",2),_e([S({type:Boolean,reflect:!0})],xe.prototype,"required",2),_e([S({type:String,reflect:!0})],xe.prototype,"size",2),_e([S({type:String,attribute:"help-text"})],xe.prototype,"helpText",2),_e([S({type:Boolean,attribute:"readonly",reflect:!0})],xe.prototype,"readOnly",2),_e([S({type:Boolean,attribute:!1})],xe.prototype,"parentRequestDisabled",1),_e([A("#control")],xe.prototype,"control",2),xe=_e([P("sds-checkbox")],xe);const ye=d`
794
795
  :host {
795
796
  --_sds-checkbox-group-gap: var(--sds-checkbox-group-gap, var(--sds-spacing-xs));
796
797
  --_sds-checkbox-group-font-family: var(--sds-checkbox-group-font-family, var(--sds-typography-font-family-roboto));
@@ -882,16 +883,16 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
882
883
  --_sds-checkbox-group-help-text-font-size: var(--sds-checkbox-group-help-text-font-size, var(--sds-components-font-size-content-lg));
883
884
  --_sds-checkbox-group-help-text-line-height: var(--sds-checkbox-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
884
885
  }
885
- `;var us=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,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=(o?r(s,e,a):r(a))||a);return o&&a&&us(s,e,a),a};const _s=["disabled","errorMessage","readOnly","size"];let ms=class extends ut{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.dispatchEvent(new CustomEvent("sds-update",{bubbles:!0,composed:!0}))},this._handleSlotChange=()=>{this._updateChildProps([..._s])}}_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;_s.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)};return Q`
886
- <fieldset class="${Gt(t)}">
887
- ${this.legend?Q`<legend class="sds-checkbox-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:J}</sds-icon>${this.legend}</legend>`:J}
888
- ${this.helpText?Q`<p class="sds-checkbox-group__help-text">${this.helpText}</p>`:J}
886
+ `;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};const $e=["disabled","errorMessage","readOnly","size"];let Se=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.disabled=!1,this.size="md",this._selectedValues=[],this._handleCheckboxChange=t=>{const e=t.target,s=e.value,o=e.checked;this._selectedValues=o?[...this._selectedValues,s]:this._selectedValues.filter(t=>t!==s),this.dispatchSheriffEvent("sds-update")},this._handleSlotChange=()=>{this._updateChildProps([...$e])}}_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;$e.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)};return Q`
887
+ <fieldset class="${Zt(t)}">
888
+ ${this.legend?Q`<legend class="sds-checkbox-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:tt}</sds-icon>${this.legend}</legend>`:tt}
889
+ ${this.helpText?Q`<p class="sds-checkbox-group__help-text">${this.helpText}</p>`:tt}
889
890
  <div class="sds-checkbox-group__checkboxes" @change=${this._handleCheckboxChange}>
890
891
  <slot @slotchange=${this._handleSlotChange}></slot>
891
892
  </div>
892
- ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:J}
893
+ ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt}
893
894
  </fieldset>
894
- `}};ms.styles=[vs],bs([$({type:String,reflect:!0})],ms.prototype,"legend",2),bs([$({type:String,attribute:"help-text",reflect:!0})],ms.prototype,"helpText",2),bs([$({type:String,attribute:"error-message",reflect:!0})],ms.prototype,"errorMessage",2),bs([$({type:Boolean,attribute:"readonly",reflect:!0})],ms.prototype,"readOnly",2),bs([$({type:Boolean,reflect:!0})],ms.prototype,"disabled",2),bs([$({type:String,reflect:!0})],ms.prototype,"size",2),bs([S()],ms.prototype,"_selectedValues",2),bs([E("slot")],ms.prototype,"_slotElement",2),ms=bs([A("sds-checkbox-group")],ms);const xs=i`
895
+ `}};Se.styles=[ye],ze([S({type:String,reflect:!0})],Se.prototype,"legend",2),ze([S({type:String,attribute:"help-text",reflect:!0})],Se.prototype,"helpText",2),ze([S({type:String,attribute:"error-message",reflect:!0})],Se.prototype,"errorMessage",2),ze([S({type:Boolean,attribute:"readonly",reflect:!0})],Se.prototype,"readOnly",2),ze([S({type:Boolean,reflect:!0})],Se.prototype,"disabled",2),ze([S({type:String,reflect:!0})],Se.prototype,"size",2),ze([C()],Se.prototype,"_selectedValues",2),ze([A("slot")],Se.prototype,"_slotElement",2),Se=ze([P("sds-checkbox-group")],Se);const Ce=d`
895
896
  :host {
896
897
  --_sds-chip-font-family: var(--sds-chip-font-family, var(--sds-typography-font-family-roboto));
897
898
  --_sds-chip-font-weight: var(--sds-chip-font-weight, var(--sds-typography-font-weight-regular));
@@ -1036,22 +1037,22 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1036
1037
  white-space: nowrap;
1037
1038
  }
1038
1039
  }
1039
- `;var ys=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,ks=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?ws(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&&ys(s,e,a),a};let zs=class extends ut{constructor(){super(),this.variant="selectable",this.size="md",this.checked=!1,this.disabled=!1,this.readonly=!1,this._initialChecked=!1,this._toggle=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.disabled||this.readonly||(this.checked=!this.checked,this.internals.setFormValue(this.checked?this.value??"on":null),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0})))},this._remove=()=>{this.disabled||this.readonly||this.dispatchEvent(new CustomEvent("sds-remove",{bubbles:!0,composed:!0}))},this._keypress=t=>{[" ","Enter"].includes(t.key)&&("removable"===this.variant?this._remove():this._toggle(t))},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.role="checkbox",this.checked&&this.internals.setFormValue(this.value??null)}formResetCallback(){this.checked=this._initialChecked,this.internals.setFormValue(this.value??null)}focus(){this.disabled||this.shadowRoot?.querySelector("input")?.focus()}blur(){this.disabled||this.shadowRoot?.querySelector("input")?.blur()}click(){this.disabled||this.shadowRoot?.querySelector("input")?.click()}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?Q`<button class="${Gt(s)}" @click=${this._remove} @keyup="${this._keypress}">
1040
+ `;var Ee=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Oe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ae(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&&Ee(e,s,a),a};let Pe=class extends(ee(St(ft))){constructor(){super(),this._initialChecked=!1,this._readOnly=!1,this.variant="selectable",this.size="md",this.checked=!1,this.disabled=!1,this._toggle=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.disabled||this.readOnly||(this.checked=!this.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=>{[" ","Enter"].includes(t.key)&&("removable"===this.variant?this._remove():this._toggle(t))},this.internals=this.attachInternals()}get readOnly(){return this._readOnly}set readOnly(t){const e=this._readOnly;this._readOnly=t??!1,this.requestUpdate("readOnly",e)}set readonly(t){this.readOnly=t}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked??!1,this.internals.role="checkbox",this.checked&&this.internals.setFormValue(this.value??null)}formResetCallback(){this.checked=this._initialChecked,this.internals.setFormValue(this.value??null)}render(){const t="removable"===this.variant&&!this.readOnly&&!this.disabled,e={"sds-chip":!0,"sds-chip--small":"small"===this.size||"sm"===this.size,"sds-chip--large":"large"===this.size||"lg"===this.size,"sds-chip--removable":t};return t?Q`<button class="${Zt(e)}" @click=${this._remove} @keyup="${this._keypress}">
1040
1041
  <slot></slot>
1041
1042
  <sds-icon name="close-material-outlined" size="s"></sds-icon>
1042
- </button>`:Q`<label class="${Gt(s)}" @click="${this._toggle}" @keyup="${this._keypress}">
1043
+ </button>`:Q`<label class="${Zt(e)}" @click="${this._toggle}" @keyup="${this._keypress}">
1043
1044
  <input
1044
1045
  id="control"
1045
1046
  type="checkbox"
1046
- name="${Et(this.name)}"
1047
- value="${Et(this.value)}"
1047
+ name="${Lt(this.name)}"
1048
+ value="${Lt(this.value)}"
1048
1049
  .checked="${this.checked}"
1049
1050
  ?checked="${this.checked}"
1050
1051
  ?disabled="${this.disabled}"
1051
- ?readonly="${this.readonly}"
1052
+ ?readonly="${this.readOnly}"
1052
1053
  />
1053
1054
  <slot></slot>
1054
- </label>`}};zs.styles=[xs],zs.formAssociated=!0,zs.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},ks([$({type:String,reflect:!0})],zs.prototype,"variant",2),ks([$({type:String,reflect:!0})],zs.prototype,"size",2),ks([$({type:Boolean,reflect:!0})],zs.prototype,"checked",2),ks([$({type:String,reflect:!0})],zs.prototype,"name",2),ks([$({type:String})],zs.prototype,"value",2),ks([$({type:Boolean,reflect:!0})],zs.prototype,"disabled",2),ks([$({type:Boolean,reflect:!0})],zs.prototype,"readonly",2),ks([E("#control")],zs.prototype,"control",2),zs=ks([A("sds-chip")],zs);const $s=i`
1055
+ </label>`}};Pe.styles=[Ce],Pe.formAssociated=!0,Pe.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},Oe([A("#control")],Pe.prototype,"control",2),Oe([S({type:String,reflect:!0})],Pe.prototype,"variant",2),Oe([S({type:String,reflect:!0})],Pe.prototype,"size",2),Oe([S({type:Boolean,reflect:!0})],Pe.prototype,"checked",2),Oe([S({type:String,reflect:!0})],Pe.prototype,"name",2),Oe([S({type:String})],Pe.prototype,"value",2),Oe([S({type:Boolean,reflect:!0})],Pe.prototype,"disabled",2),Oe([S({type:Boolean,attribute:"readonly",reflect:!0})],Pe.prototype,"readOnly",1),Pe=Oe([P("sds-chip")],Pe);const Le=d`
1055
1056
  :host {
1056
1057
  --_sds-details-text-color: var(--sds-details-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1057
1058
 
@@ -1182,7 +1183,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1182
1183
  display: inline;
1183
1184
  margin: 0;
1184
1185
  }
1185
- `;var Ss=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,Es=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Cs(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&&Ss(s,e,a),a};let Os=class extends ut{constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._handleToggle=t=>{const s=t.currentTarget;this.open!==s.open&&(this.open=s.open),this.dispatchEvent(new CustomEvent("sds-toggle",{detail:{open:s.open},bubbles:!0,composed:!0}))}}render(){return Q`
1186
+ `;var De=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Te=(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&&De(e,s,a),a};let Re=class extends(St(ft)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._handleToggle=t=>{const e=t.currentTarget;this.open!==e.open&&(this.open=e.open),this.dispatchSheriffEvent("sds-toggle",{open:e.open})}}render(){return Q`
1186
1187
  <details class="sds-details" .name="${this.name??""}" ?data-standalone="${this.standalone}" ?open="${this.open}" @toggle="${this._handleToggle}">
1187
1188
  <summary class="sds-details__summary">
1188
1189
  <sds-icon name="chevron_up-material-filled"></sds-icon>
@@ -1194,7 +1195,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1194
1195
  <slot></slot>
1195
1196
  </div>
1196
1197
  </details>
1197
- `}};Os.styles=[$s],Es([$({type:Boolean,reflect:!0})],Os.prototype,"open",2),Es([$({type:Boolean,reflect:!0})],Os.prototype,"standalone",2),Es([$({type:String,reflect:!0})],Os.prototype,"name",2),Os=Es([A("sds-details")],Os);const As=i`
1198
+ `}};Re.styles=[Le],Te([S({type:Boolean,reflect:!0})],Re.prototype,"open",2),Te([S({type:Boolean,reflect:!0})],Re.prototype,"standalone",2),Te([S({type:String,reflect:!0})],Re.prototype,"name",2),Re=Te([P("sds-details")],Re);const Me=d`
1198
1199
  :host {
1199
1200
  --_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1200
1201
  --_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
@@ -1206,6 +1207,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1206
1207
  --_sds-dialog-max-width: var(--sds-dialog-max-width, min(60ch, 100vw));
1207
1208
  --_sds-dialog-max-height: var(--sds-dialog-max-height, calc(100dvh - var(--sds-spacing-lg)));
1208
1209
 
1210
+ --_sds-dialog-margin: var(--sds-dialog-margin, auto);
1209
1211
  --_sds-dialog-padding-block: var(--sds-dialog-padding-block, var(--sds-spacing-sm));
1210
1212
  --_sds-dialog-padding-inline: var(--sds-dialog-padding-inline, var(--sds-spacing-sm));
1211
1213
  --_sds-dialog-gap: var(--sds-dialog-gap, var(--sds-spacing-xs));
@@ -1249,6 +1251,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1249
1251
  &[open] {
1250
1252
  display: flex;
1251
1253
  flex-direction: column;
1254
+ margin: var(--_sds-dialog-margin);
1252
1255
  padding-block: var(--_sds-dialog-padding-block);
1253
1256
  padding-inline: var(--_sds-dialog-padding-inline);
1254
1257
  gap: var(--_sds-dialog-gap);
@@ -1297,7 +1300,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1297
1300
  @media (max-width: 640px) {
1298
1301
  :host {
1299
1302
  --_sds-dialog-max-width: var(--sds-dialog-max-width, 100%);
1300
- --_sds-dialog-border-radius: var(--sds-dialog-border-radius, var(--sds-spacing-zero));
1303
+ --_sds-dialog-margin: var(--sds-dialog-margin, var(--sds-spacing-xs));
1301
1304
  }
1302
1305
  }
1303
1306
 
@@ -1306,20 +1309,20 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1306
1309
  --_sds-dialog-animation-duration: 0ms;
1307
1310
  }
1308
1311
  }
1309
- `;var qs=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,Ds=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ps(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&&qs(s,e,a),a};let Ls=class extends ut{constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._handleClose=()=>{this.open=!1,this.dispatchEvent(new CustomEvent("sds-close",{bubbles:!0,composed:!0}))},this._handleClick=t=>{const s=t.target;if(s?.closest('[data-command="close"]'))return void this._closeDialog();if(s!==this._dialog)return;if("any"!==this.closedby)return;if("closedBy"in this._dialog)return;const{clientX:e,clientY:o}=t,{top:r,bottom:a,left:i,right:d}=this._dialog.getBoundingClientRect();(r>o||a<o||i>e||d<e)&&this._closeDialog()},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},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()}}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("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}render(){const t=0===this.headerSlotElements.length;return Q`
1310
- <dialog closedby="${this.closedby}" class=${t?"sds-dialog__empty-header":""}>
1312
+ `;var Ve=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Ie=(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 Fe=class extends(St(ft)){constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._pointerDownInside=!1,this._handleClose=()=>{this.open=!1,this.dispatchSheriffEvent("sds-close")},this._handleClick=t=>{const e=t.target;e?.closest('[data-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._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const e=t.find(t=>null!=t.getAttribute("autofocus"));e instanceof HTMLElement&&document.activeElement!==e&&e.focus()}}firstUpdated(){this._setupEventListeners(),this.open&&this._openDialog()}updated(t){t.has("open")&&(this.open?this._openDialog():this._closeDialog())}_setupEventListeners(){this._dialog.addEventListener("close",this._handleClose),this._dialog.addEventListener("cancel",this._handleCancel),this._dialog.addEventListener("click",this._handleClick),this._dialog.addEventListener("pointerdown",this._handlePointerDown),this._dialog.addEventListener("pointerup",this._handlePointerUp),this._dialog.addEventListener("animationend",this._handleAutoFocus)}_openDialog(){this._dialog&&(this.modal?this._dialog.showModal():this._dialog.show())}_closeDialog(){this._dialog&&this._dialog.close()}show(){this.open=!0}showModal(){this.modal=!0,this.open=!0}close(){this.open=!1}render(){const t=0===this.headerSlotElements.length;return Q`
1313
+ <dialog .closedBy="${this.closedby}" class=${t?"sds-dialog__empty-header":""}>
1311
1314
  <div class="sds-dialog__header">
1312
1315
  <slot name="header"></slot>
1313
1316
  ${this.closeButtonLabel?Q`
1314
1317
  <sds-button class="sds-dialog__close-button" icon variant="tertiary" size="md" data-command="close" aria-label="${this.closeButtonLabel}">
1315
1318
  <sds-icon name="close-material-outlined" size="md"></sds-icon>
1316
1319
  </sds-button>
1317
- `:J}
1320
+ `:tt}
1318
1321
  </div>
1319
1322
  <slot></slot>
1320
1323
  <slot name="footer"></slot>
1321
1324
  </dialog>
1322
- `}};Ls.styles=[As],Ds([$({type:Boolean,reflect:!0})],Ls.prototype,"open",2),Ds([$({type:Boolean,reflect:!0})],Ls.prototype,"modal",2),Ds([$({type:String,reflect:!0})],Ls.prototype,"closedby",2),Ds([$({type:String,attribute:"close-button-label"})],Ls.prototype,"closeButtonLabel",2),Ds([E("dialog")],Ls.prototype,"_dialog",2),Ds([O({slot:"header",flatten:!1})],Ls.prototype,"headerSlotElements",2),Ls=Ds([A("sds-dialog")],Ls);const Vs=i`
1325
+ `}};Fe.styles=[Me],Ie([S({type:Boolean,reflect:!0})],Fe.prototype,"open",2),Ie([S({type:Boolean,reflect:!0})],Fe.prototype,"modal",2),Ie([S({type:String,reflect:!0})],Fe.prototype,"closedby",2),Ie([S({type:String,attribute:"close-button-label"})],Fe.prototype,"closeButtonLabel",2),Ie([A("dialog")],Fe.prototype,"_dialog",2),Ie([O({slot:"header",flatten:!1})],Fe.prototype,"headerSlotElements",2),Fe=Ie([P("sds-dialog")],Fe);const je=d`
1323
1326
  :host {
1324
1327
  --_sds-heading-font-family: var(--sds-heading-font-family, var(--sds-typography-font-family-roboto));
1325
1328
  --_sds-heading-text-color: var(--sds-heading-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -1472,7 +1475,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1472
1475
  --_sds-heading-line-height: var(--sds-heading-line-height, var(--sds-typography-heading-xs-desktop-line-height));
1473
1476
  }
1474
1477
  }
1475
- `;var Rs=Object.defineProperty,Ms=(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&&Rs(s,e,a),a};const Bs=class extends ut{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return Q`<h1 class=${Gt(t)}><slot></slot></h1>`;case"h2":return Q`<h2 class=${Gt(t)}><slot></slot></h2>`;case"h3":return Q`<h3 class=${Gt(t)}><slot></slot></h3>`;case"h4":return Q`<h4 class=${Gt(t)}><slot></slot></h4>`;case"h5":return Q`<h5 class=${Gt(t)}><slot></slot></h5>`;case"h6":return Q`<h6 class=${Gt(t)}><slot></slot></h6>`}}};Bs.styles=[Vs];let Ts=Bs;Ms([$({type:String,reflect:!0})],Ts.prototype,"level"),Ms([$({type:String,reflect:!0})],Ts.prototype,"size");var Is=Object.getOwnPropertyDescriptor;let js=class extends Ts{};js=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?Is(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([A("sds-heading")],js);const Ns=i`
1478
+ `;var He=Object.defineProperty,Ne=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&He(e,s,a),a};const Ue=class extends ft{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return Q`<h1 class=${Zt(t)}><slot></slot></h1>`;case"h2":return Q`<h2 class=${Zt(t)}><slot></slot></h2>`;case"h3":return Q`<h3 class=${Zt(t)}><slot></slot></h3>`;case"h4":return Q`<h4 class=${Zt(t)}><slot></slot></h4>`;case"h5":return Q`<h5 class=${Zt(t)}><slot></slot></h5>`;case"h6":return Q`<h6 class=${Zt(t)}><slot></slot></h6>`}}};Ue.styles=[je];let We=Ue;Ne([S({type:String,reflect:!0})],We.prototype,"level"),Ne([S({type:String,reflect:!0})],We.prototype,"size");var Ke=Object.getOwnPropertyDescriptor;let Ge=class extends We{};Ge=((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=r(a)||a);return a})([P("sds-heading")],Ge);const Ye=d`
1476
1479
  :host {
1477
1480
  --_sds-loader-main-color: var(--sds-loader-main-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
1478
1481
  --_sds-loader-secondary-color: var(--sds-loader-secondary-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
@@ -1548,10 +1551,10 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1548
1551
  stroke-dashoffset: -120px;
1549
1552
  }
1550
1553
  }
1551
- `;var Fs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Hs=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Us(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&&Fs(s,e,a),a};let Ws=class extends ut{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return Q`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1554
+ `;var Xe=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Qe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ze(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Xe(e,s,a),a};let Je=class extends ft{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return Q`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1552
1555
  <circle class="sds-loader__background" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1553
1556
  <circle class="sds-loader__circle" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1554
- </svg>`}};Ws.styles=[Ns],Hs([$({type:String,reflect:!0})],Ws.prototype,"size",2),Hs([$({type:Boolean,reflect:!0})],Ws.prototype,"contrast",2),Ws=Hs([A("sds-loader")],Ws);const Gs=i`
1557
+ </svg>`}};Je.styles=[Ye],Qe([S({type:String,reflect:!0})],Je.prototype,"size",2),Qe([S({type:Boolean,reflect:!0})],Je.prototype,"contrast",2),Je=Qe([P("sds-loader")],Je);const ts=d`
1555
1558
  :host {
1556
1559
  --_sds-notification-background-color: var(--sds-notification-background-color, var(--sds-color-alert-info-surface-tinted));
1557
1560
 
@@ -1688,9 +1691,9 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1688
1691
  margin: 0 !important;
1689
1692
  max-width: var(--_sds-notification-max-line-width) !important;
1690
1693
  }
1691
- `;var Ks=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Zs=(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&&Ks(s,e,a),a};const Qs={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",warning:"warning-material-filled",danger:"dangerous-material-filled",critical:"dangerous-material-filled"};let Xs=!1,Js=class extends ut{constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchEvent(new CustomEvent("sds-remove",{bubbles:!0,composed:!0}))},Xs||(Xs=!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 Q`<div class="${Gt({"sds-notification":!0})}">
1694
+ `;var es=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,os=(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=(o?r(e,s,a):r(a))||a);return o&&a&&es(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 as=!1,is=class extends(St(ft)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},as||(as=!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 Q`<div class="${Zt({"sds-notification":!0})}">
1692
1695
  <div class="sds-notification__type">
1693
- <sds-icon class="sds-notification__icon" name="${Qs[this.variant]}" size="md"></sds-icon>
1696
+ <sds-icon class="sds-notification__icon" name="${rs[this.variant]}" size="md"></sds-icon>
1694
1697
  </div>
1695
1698
  <div class="sds-notification__content">
1696
1699
  <slot name="title"></slot>
@@ -1700,8 +1703,215 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1700
1703
  <sds-button icon variant="tertiary" color="${t}" size="sm" @click=${this._remove} aria-label="${this.removableLabel}">
1701
1704
  <sds-icon name="close-material-outlined" size="sm"></sds-icon>
1702
1705
  </sds-button>
1703
- </div>`:J}
1704
- </div>`}};Js.styles=[Gs],Zs([$({type:String,reflect:!0})],Js.prototype,"variant",2),Zs([$({type:String,attribute:"removable-label",reflect:!0})],Js.prototype,"removableLabel",2),Js=Zs([A("sds-notification")],Js);const te=i`
1706
+ </div>`:tt}
1707
+ </div>`}};is.styles=[ts],os([S({type:String,reflect:!0})],is.prototype,"variant",2),os([S({type:String,attribute:"removable-label",reflect:!0})],is.prototype,"removableLabel",2),is=os([P("sds-notification")],is);const ds=d`
1708
+ :host {
1709
+ display: flex;
1710
+ flex-direction: column;
1711
+ }
1712
+ `;var ns=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,cs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ls(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ns(e,s,a),a};let hs=class extends ft{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return Q`<slot></slot>`}};hs.styles=[ds],cs([S({type:String,reflect:!0,attribute:"heading-level"})],hs.prototype,"headingLevel",2),hs=cs([P("sds-process")],hs);const ps=d`
1713
+ :host {
1714
+ --_sds-process-step-border-width: var(--sds-process-step-border-width, 2px);
1715
+ --_sds-process-step-border-color: var(--sds-process-step-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
1716
+ --_sds-process-step-marker-sm: var(--sds-process-step-marker-sm, 1rem);
1717
+ --_sds-process-step-marker-lg: var(--sds-process-step-marker-lg, 2rem);
1718
+ --_sds-process-step-marker-size: var(--_sds-process-step-marker-lg);
1719
+ --_sds-process-step-marker-base: var(--sds-process-step-marker-base, 2rem);
1720
+ --_sds-process-step-marker-text-color: var(--sds-process-step-marker-text-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
1721
+ --_sds-process-step-marker-background: var(--sds-process-step-marker-background, var(--sds-color-action-contrast-subtle, var(--sds-color-main-action-contrast-subtle)));
1722
+ --_sds-process-step-marker-margin-block-start: var(--sds-process-step-marker-margin-block-start, calc((var(--_sds-process-step-marker-lg) - var(--_sds-process-step-marker-sm)) / 2));
1723
+ --_sds-process-step-marker-border-radius: var(--sds-process-step-marker-border-radius, var(--sds-radius-full));
1724
+ --_sds-process-step-grid-template-rows: var(--sds-process-step-grid-template-rows, [line-1] auto [step-start] var(--_sds-process-step-marker-size) [line-2 step-end] auto);
1725
+ --_sds-process-step-grid-template-columns: var(--sds-process-step-grid-template-columns, var(--_sds-process-step-marker-base) auto);
1726
+ --_sds-process-step-sub-step-margin-block-start: var(--sds-process-step-sub-step-margin-block-start, calc((var(--_sds-process-step-marker-sm) / 2) * -1));
1727
+
1728
+ --_sds-process-step-item-grid-template-columns: var(--sds-process-step-item-grid-template-columns, [marker] var(--_sds-process-step-marker-base) [content] auto);
1729
+ --_sds-process-step-item-grid-area: var(--sds-process-step-item-grid-area, 2 / 1 / -1 / -1);
1730
+
1731
+ --_sds-process-step-line-display: var(--sds-process-step-line-display, block);
1732
+ --_sds-process-step-line-min-height: var(--sds-process-step-line-min-height, 2rem);
1733
+
1734
+ --_sds-process-step-heading-color: var(--sds-process-step-heading-color, var(--sds-color-neutral-text-default));
1735
+ --_sds-process-step-heading-font-weight: var(--sds-process-step-heading-font-weight, var(--sds-typography-body-sm-strong-desktop-font-weight));
1736
+ --_sds-process-step-heading-font-size: var(--sds-process-step-heading-font-size, var(--sds-typography-body-md-desktop-font-size));
1737
+ --_sds-process-step-heading-line-height: var(--sds-process-step-heading-line-height, var(--sds-typography-body-md-strong-desktop-line-height));
1738
+ --_sds-process-step-heading-padding-block: var(--sds-process-step-heading-padding-block, var(--sds-spacing-3xs));
1739
+ --_sds-process-step-heading-margin-block: var(--sds-process-step-heading-margin-block, 0);
1740
+
1741
+ --_sds-process-step-timestamp-color: var(--sds-process-step-timestamp-color, var(--sds-color-neutral-text-subtle));
1742
+ --_sds-process-step-timestamp-font-weight: var(--sds-process-step-timestamp-font-weight, var(--sds-typography-body-sm-desktop-font-weight));
1743
+ --_sds-process-step-timestamp-font-size: var(--sds-process-step-timestamp-font-size, var(--sds-typography-body-sm-desktop-font-size));
1744
+ --_sds-process-step-timestamp-line-height: var(--sds-process-step-timestamp-line-height, var(--sds-typography-body-sm-desktop-line-height));
1745
+ --_sds-process-step-timestamp-padding-block-start: var(--sds-process-step-timestamp-padding-block-start, var(--sds-spacing-zero));
1746
+ --_sds-process-step-timestamp-padding-block-end: var(--sds-process-step-timestamp-padding-block-end, var(--sds-spacing-3xs));
1747
+
1748
+ --_sds-process-step-slot-content-padding-block: var(--sds-process-step-slot-content-padding-block, var(--sds-spacing-zero));
1749
+
1750
+ --sds-icon-color: var(--_sds-process-step-marker-text-color);
1751
+ }
1752
+
1753
+ .sds-process-step {
1754
+ display: grid;
1755
+ font-family: var(--sds-typography-font-family);
1756
+ grid-template-rows: var(--_sds-process-step-grid-template-rows);
1757
+ grid-template-columns: var(--_sds-process-step-grid-template-columns);
1758
+ justify-items: flex-start;
1759
+ }
1760
+
1761
+ .sds-process-step--sub-step {
1762
+ --_sds-process-step-marker-background: var(--sds-process-step-marker-background, var(--sds-color-action-default, var(--sds-color-main-action-default)));
1763
+ --_sds-process-step-marker-size: var(--_sds-process-step-marker-sm);
1764
+ --_sds-process-step-grid-template-rows: var(--sds-process-step-grid-template-rows, [line-1] auto [step-start] var(--_sds-process-step-marker-size) [line-2 step-end] auto);
1765
+ margin-block-start: var(--_sds-process-step-sub-step-margin-block-start);
1766
+
1767
+ .sds-process-step__marker {
1768
+ margin-block-start: var(--_sds-process-step-marker-margin-block-start);
1769
+ }
1770
+ }
1771
+
1772
+ .sds-process-step__item {
1773
+ grid-area: var(--_sds-process-step-item-grid-area);
1774
+ grid-template-columns: var(--_sds-process-step-item-grid-template-columns);
1775
+ gap: var(--sds-spacing-xs);
1776
+ padding: var(--_sds-process-step-border-width);
1777
+ margin: calc(var(--_sds-process-step-border-width) * -1) calc(var(--_sds-process-step-border-width) * -1) var(--sds-spacing-sm);
1778
+ justify-content: flex-start;
1779
+ width: 100%;
1780
+ display: grid;
1781
+ }
1782
+
1783
+ .sds-process-step__marker {
1784
+ width: var(--_sds-process-step-marker-size);
1785
+ height: var(--_sds-process-step-marker-size);
1786
+ border-radius: var(--_sds-process-step-marker-border-radius);
1787
+ border: var(--_sds-process-step-border-width) solid;
1788
+ color: var(--_sds-process-step-marker-text-color);
1789
+ background-color: var(--_sds-process-step-marker-background);
1790
+ border-color: var(--_sds-process-step-border-color);
1791
+ font-weight: var(--sds-typography-body-sm-strong-desktop-font-weight);
1792
+ grid-column: marker;
1793
+ place-self: baseline center;
1794
+ place-items: center;
1795
+ line-height: 1;
1796
+ display: inline-grid;
1797
+ }
1798
+
1799
+ .sds-process-step__content {
1800
+ grid-column: content;
1801
+ }
1802
+
1803
+ .sds-process-step__line {
1804
+ display: var(--_sds-process-step-line-display);
1805
+ border: calc(var(--_sds-process-step-border-width) / 2) solid var(--_sds-process-step-border-color);
1806
+ grid-column: 1;
1807
+ justify-self: center;
1808
+ width: 0;
1809
+ min-height: var(--_sds-process-step-line-min-height);
1810
+ grid-row: line-2;
1811
+ position: relative;
1812
+ top: var(--_sds-process-step-border-width);
1813
+ }
1814
+
1815
+ .sds-process-step__heading {
1816
+ color: var(--_sds-process-step-heading-color);
1817
+ font-weight: var(--_sds-process-step-heading-font-weight);
1818
+ font-size: var(--_sds-process-step-heading-font-size);
1819
+ line-height: var(--_sds-process-step-heading-line-height);
1820
+ padding-block: var(--_sds-process-step-heading-padding-block);
1821
+ margin-block: var(--_sds-process-step-heading-margin-block);
1822
+ }
1823
+
1824
+ .sds-process-step__timestamp {
1825
+ color: var(--_sds-process-step-timestamp-color);
1826
+ font-weight: var(--_sds-process-step-timestamp-font-weight);
1827
+ font-size: var(--_sds-process-step-timestamp-font-size);
1828
+ line-height: var(--_sds-process-step-timestamp-line-height);
1829
+ padding-block-start: var(--_sds-process-step-timestamp-padding-block-start);
1830
+ padding-block-end: var(--_sds-process-step-timestamp-padding-block-end);
1831
+
1832
+ &:first-child {
1833
+ --_sds-process-step-timestamp-padding-block-start: var(--sds-process-step-timestamp-padding-block-start, var(--sds-spacing-3xs));
1834
+ }
1835
+
1836
+ &:empty {
1837
+ display: none;
1838
+ }
1839
+ }
1840
+
1841
+ .sds-process-step__slot-content {
1842
+ padding-block: var(--_sds-process-step-slot-content-padding-block);
1843
+
1844
+ &:first-child {
1845
+ --_sds-process-step-slot-content-padding-block: var(--sds-process-step-slot-content-padding-block, var(--sds-spacing-3xs));
1846
+ }
1847
+ }
1848
+
1849
+ :host(:last-of-type) {
1850
+ --_sds-process-step-line-display: none;
1851
+ }
1852
+ `;var gs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,us=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?vs(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&&gs(e,s,a),a};let fs=class extends ft{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 kt`
1853
+ <div class="sds-process-step">
1854
+ <div class="sds-process-step__item">
1855
+ <div class="sds-process-step__marker" aria-hidden="true">
1856
+ <slot name="marker" @slotchange=${this._handleMarkerSlotChange}></slot>
1857
+ </div>
1858
+ <div class="sds-process-step__content">
1859
+ ${this.heading?kt`<${xt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${xt(this.safeHeadingLevel)}>`:tt}
1860
+ ${this.timestamp?kt`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:tt}
1861
+ <div class="sds-process-step__slot-content"><slot></slot></div>
1862
+ </div>
1863
+ </div>
1864
+ <span class="sds-process-step__line"></span>
1865
+ </div>
1866
+ `}};fs.styles=[ps],us([S({type:String,reflect:!0})],fs.prototype,"heading",2),us([S({type:String,reflect:!0})],fs.prototype,"timestamp",2),us([A('slot[name="marker"]')],fs.prototype,"markerSlot",2),us([A(".sds-process-step")],fs.prototype,"step",2),fs=us([P("sds-process-step")],fs);const bs=d`
1867
+ ${i(':host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overflow:auto;overscroll-behavior:contain}:host{--_ds-floating:var(--dsc-popover-placement);--_ds-floating-arrow-size:var(--dsc-popover-arrow-size);--dsc-popover-background:var(--ds-color-surface-default);--dsc-popover-border-width:var(--ds-border-width-default);--dsc-popover-border-style:solid;--dsc-popover-border-color:var(--ds-color-border-default);--dsc-popover-color:var(--ds-color-text-default);--dsc-popover-arrow-size:var(--ds-size-3);--dsc-popover-border-radius:var(--ds-border-radius-md);--dsc-popover-max-width:300px;--dsc-popover-padding:var(--ds-size-3) var(--ds-size-4);--dsc-popover-box-shadow:var(--ds-shadow-md);--dsc-popover-placement:top;background:var(--dsc-popover-background);border-color:var(--dsc-popover-border-color);border-radius:var(--dsc-popover-border-radius);border-style:var(--dsc-popover-border-style);border-width:var(--dsc-popover-border-width);box-shadow:var(--dsc-popover-box-shadow);box-sizing:border-box;color:var(--dsc-popover-color);max-width:var(--dsc-popover-max-width);padding:var(--dsc-popover-padding);&[data-floating|=top]:before{rotate:45deg;top:100%}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{rotate:-135deg;top:0}&[data-floating|=left]:before{left:100%;rotate:-45deg}}:host[data-variant=default]{--dsc-popover-background:var(--ds-color-surface-default)}:host[data-variant=tinted]{--dsc-popover-background:var(--ds-color-surface-tinted)}[data-popover=inline]{all:unset;cursor:pointer;font-size:inherit;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;text-underline-offset:.27em}[data-popover=inline]:not([hidden]){display:inline}[data-popover=inline]:focus-visible{box-shadow:var(--_ds--focus,var(--dsc-focus-boxShadow));outline:var(--_ds--focus,var(--dsc-focus-outline));outline-offset:var(--_ds--focus,var(--ds-border-width-focus))}[data-popover=inline]:focus-visible *{--_ds--focus: }')}
1868
+
1869
+ :host {
1870
+ --dsc-popover-background: var(--sds-popover-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1871
+ --dsc-popover-border-width: var(--sds-popover-border-width, var(--sds-border-sm));
1872
+ --dsc-popover-border-style: var(--sds-popover-border-style, solid);
1873
+ --dsc-popover-border-color: var(--sds-popover-border-color, var(--sds-color-border-default, var(--sds-color-main-border-default)));
1874
+ --dsc-popover-color: var(--sds-popover-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1875
+ --dsc-popover-arrow-size: var(--sds-popover-arrow-size, 12px);
1876
+ --dsc-popover-border-radius: var(--sds-popover-border-radius, var(--sds-radius-sm));
1877
+ --dsc-popover-max-width: var(--sds-popover-max-width, 300px);
1878
+ --dsc-popover-padding: var(--sds-popover-padding, var(--sds-spacing-2xs) var(--sds-spacing-xs));
1879
+ --dsc-popover-box-shadow: var(--sds-popover-shadow, 0 0 1px 0 rgba(0, 0, 0, 0.14), 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.12));
1880
+ --dsc-popover-placement: top;
1881
+ }
1882
+
1883
+ /* Note: Designsystem's popover.css uses CSS that does not work in the shadow DOM.
1884
+ These rules ensures that arrow positioning works for our popover.
1885
+ Do not remove unless the CSS selectors from Designsystem works out of the box. */
1886
+ :host([data-floating|='top'])::before {
1887
+ rotate: 45deg;
1888
+ top: 100%;
1889
+ }
1890
+ :host([data-floating|='right'])::before {
1891
+ left: 0;
1892
+ rotate: 135deg;
1893
+ }
1894
+ :host([data-floating|='bottom'])::before {
1895
+ rotate: -135deg;
1896
+ top: 0;
1897
+ }
1898
+ :host([data-floating|='left'])::before {
1899
+ left: 100%;
1900
+ rotate: -45deg;
1901
+ }
1902
+
1903
+ @keyframes ds-fade-in {
1904
+ from {
1905
+ opacity: 0;
1906
+ }
1907
+ }
1908
+
1909
+ @media (prefers-reduced-motion: reduce) {
1910
+ :host {
1911
+ animation: none;
1912
+ }
1913
+ }
1914
+ `,ms={passive:!0,capture:!0},_s=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),xs=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>ys(t,...e)},ys=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)};Date.now().toString(36),Math.random().toString(36).slice(2,5);const ws=Math.min,ks=Math.max,zs=Math.round,$s=Math.floor,Ss=t=>({x:t,y:t}),Cs={left:"right",right:"left",bottom:"top",top:"bottom"},Es={start:"end",end:"start"};function As(t,e,s){return ks(t,ws(e,s))}function Os(t,e){return"function"==typeof t?t(e):t}function Ps(t){return t.split("-")[0]}function Ls(t){return t.split("-")[1]}function Ds(t){return"x"===t?"y":"x"}function qs(t){return"y"===t?"height":"width"}const Ts=/* @__PURE__ */new Set(["top","bottom"]);function Rs(t){return Ts.has(Ps(t))?"y":"x"}function Ms(t){return Ds(Rs(t))}function Vs(t){return t.replace(/start|end/g,t=>Es[t])}const Bs=["left","right"],Is=["right","left"],Fs=["top","bottom"],js=["bottom","top"];function Hs(t){return t.replace(/left|right|bottom|top/g,t=>Cs[t])}function Ns(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 Us(t,e,s){let{reference:o,floating:r}=t;const a=Rs(e),i=Ms(e),d=qs(i),n=Ps(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(Ls(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function Ws(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}=Os(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=Ns(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=Ns(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 Ks=/* @__PURE__ */new Set(["left","top"]);function Gs(){return"undefined"!=typeof window}function Ys(t){return Qs(t)?(t.nodeName||"").toLowerCase():"#document"}function Xs(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zs(t){var e;return null==(e=(Qs(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Qs(t){return!!Gs()&&(t instanceof Node||t instanceof Xs(t).Node)}function Js(t){return!!Gs()&&(t instanceof Element||t instanceof Xs(t).Element)}function to(t){return!!Gs()&&(t instanceof HTMLElement||t instanceof Xs(t).HTMLElement)}function eo(t){return!(!Gs()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof Xs(t).ShadowRoot)}const so=/* @__PURE__ */new Set(["inline","contents"]);function oo(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=fo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&!so.has(r)}const ro=/* @__PURE__ */new Set(["table","td","th"]);function ao(t){return ro.has(Ys(t))}const io=[":popover-open",":modal"];function no(t){return io.some(e=>{try{return t.matches(e)}catch(s){return!1}})}const lo=["transform","translate","scale","rotate","perspective"],co=["transform","translate","scale","rotate","perspective","filter"],ho=["paint","layout","strict","content"];function po(t){const e=go(),s=Js(t)?fo(t):t;return lo.some(t=>!!s[t]&&"none"!==s[t])||!!s.containerType&&"normal"!==s.containerType||!e&&!!s.backdropFilter&&"none"!==s.backdropFilter||!e&&!!s.filter&&"none"!==s.filter||co.some(t=>(s.willChange||"").includes(t))||ho.some(t=>(s.contain||"").includes(t))}function go(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const vo=/* @__PURE__ */new Set(["html","body","#document"]);function uo(t){return vo.has(Ys(t))}function fo(t){return Xs(t).getComputedStyle(t)}function bo(t){return Js(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mo(t){if("html"===Ys(t))return t;const e=t.assignedSlot||t.parentNode||eo(t)&&t.host||Zs(t);return eo(e)?e.host:e}function _o(t){const e=mo(t);return uo(e)?t.ownerDocument?t.ownerDocument.body:t.body:to(e)&&oo(e)?e:_o(e)}function xo(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=_o(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=Xs(r);if(a){const t=yo(i);return e.concat(i,i.visualViewport||[],oo(r)?r:[],t&&s?xo(t):[])}return e.concat(r,xo(r,[],s))}function yo(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wo(t){const e=fo(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=to(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=zs(s)!==a||zs(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function ko(t){return Js(t)?t:t.contextElement}function zo(t){const e=ko(t);if(!to(e))return Ss(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=wo(e);let i=(a?zs(s.width):s.width)/o,d=(a?zs(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const $o=Ss(0);function So(t){const e=Xs(t);return go()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:$o}function Co(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=ko(t);let i=Ss(1);e&&(o?Js(o)&&(i=zo(o)):i=zo(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==Xs(n)||!l?Ss(0):So(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=Xs(a),e=o&&Js(o)?Xs(o):o;let s=t,r=yo(s);for(;r&&o&&e!==s;){const t=zo(r),e=r.getBoundingClientRect(),o=fo(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=Xs(r),r=yo(s)}}return Ns({width:g,height:v,x:h,y:p})}function Eo(t,e){const s=bo(t).scrollLeft;return e?e.left+s:Co(Zs(t)).left+s}function Ao(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-Eo(t,s),y:s.top+e.scrollTop}}const Oo=/* @__PURE__ */new Set(["absolute","fixed"]);function Po(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=Xs(t),o=Zs(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=go();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=Eo(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=Zs(t),s=bo(t),o=t.ownerDocument.body,r=ks(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=ks(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+Eo(t);const d=-s.scrollTop;return"rtl"===fo(o).direction&&(i+=ks(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(Zs(t));else if(Js(e))o=function(t,e){const s=Co(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=to(t)?zo(t):Ss(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=So(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Ns(o)}function Lo(t,e){const s=mo(t);return!(s===e||!Js(s)||uo(s))&&("fixed"===fo(s).position||Lo(s,e))}function Do(t,e,s){const o=to(e),r=Zs(e),a="fixed"===s,i=Co(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Ss(0);function l(){n.x=Eo(r)}if(o||!o&&!a)if(("body"!==Ys(e)||oo(r))&&(d=bo(e)),o){const t=Co(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?Ss(0):Ao(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 qo(t){return"static"===fo(t).position}function To(t,e){if(!to(t)||"fixed"===fo(t).position)return null;if(e)return e(t);let s=t.offsetParent;return Zs(t)===s&&(s=s.ownerDocument.body),s}function Ro(t,e){const s=Xs(t);if(no(t))return s;if(!to(t)){let e=mo(t);for(;e&&!uo(e);){if(Js(e)&&!qo(e))return e;e=mo(e)}return s}let o=To(t,e);for(;o&&ao(o)&&qo(o);)o=To(o,e);return o&&uo(o)&&qo(o)&&!po(o)?s:o||function(t){let e=mo(t);for(;to(e)&&!uo(e);){if(po(e))return e;if(no(e))return null;e=mo(e)}return null}(t)||s}const Mo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=Zs(o),d=!!e&&no(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Ss(1);const c=Ss(0),h=to(o);if((h||!h&&!a)&&(("body"!==Ys(o)||oo(i))&&(n=bo(o)),to(o))){const t=Co(o);l=zo(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Ss(0):Ao(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:Zs,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?no(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=xo(t,[],!1).filter(t=>Js(t)&&"body"!==Ys(t)),r=null;const a="fixed"===fo(t).position;let i=a?mo(t):t;for(;Js(i)&&!uo(i);){const e=fo(i),s=po(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&Oo.has(r.position)||oo(i)&&!s&&Lo(t,i))?o=o.filter(t=>t!==i):r=e,i=mo(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=a[0],d=a.reduce((t,s)=>{const o=Po(e,s,r);return t.top=ks(o.top,t.top),t.right=ws(o.right,t.right),t.bottom=ws(o.bottom,t.bottom),t.left=ks(o.left,t.left),t},Po(e,i,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:Ro,getElementRects:async function(t){const e=this.getOffsetParent||Ro,s=this.getDimensions,o=await s(t.floating);return{reference:Do(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}=wo(t);return{width:e,height:s}},getScale:zo,isElement:Js,isRTL:function(t){return"rtl"===fo(t).direction}};function Vo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Bo=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=Ps(s),d=Ls(s),n="y"===Rs(s),l=Ks.has(i)?-1:1,c=a&&n?-1:1,h=Os(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}}}}},Io=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}=Os(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=Rs(Ps(r)),g=Ds(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=As(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=As(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}}}}}},Fo=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}=Os(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Ps(r),m=Rs(d),_=Ps(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[Hs(d)]:function(t){const e=Hs(t);return[Vs(t),e,Vs(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Ls(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Is:Bs:e?Bs:Is;case"left":case"right":return e?Fs:js;default:return[]}}(Ps(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Vs)))),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=Ls(t),r=Ms(t),a=qs(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Hs(i)),[i,Hs(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===Rs(e)||S.every(t=>Rs(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=Rs(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},jo=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}=Os(t,e),c=await i.detectOverflow(e,l),h=Ps(r),p=Ls(r),g="y"===Rs(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=ws(u-c[f],m),y=ws(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=ks(c.left,0),e=ks(c.right,0),s=ks(c.top,0),o=ks(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:ks(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:ks(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}}:{}}}},Ho=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}=Os(t,e),c={x:s,y:o},h=Rs(r),p=Ds(h);let g=c[p],v=c[h];const u=Os(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=Ks.has(Ps(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}}}},No="data-placement",Uo="data-autoplacement",Wo=/* @__PURE__ */new Map;function Ko(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&Xo(o,"--_ds-floating");if(!a)return;if("closed"===e)return Wo.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;let i=Xo(o,"--_ds-floating-overscroll"),d=_s(o,No)||_s(r,No)||a,n=_s(o,Uo)||_s(r,Uo),l=parseFloat(getComputedStyle(o,"::before").height)||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Bo(l||0),Io({padding:10,limiter:Ho({offset:{mainAxis:h}})}),Zo(),..."false"===n?[]:[Fo({padding:10,crossAxis:!1})],...i?[jo({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.clientWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=ko(t),c=r||a?[...l?xo(l):[],...xo(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=Zs(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:-$s(h)+"px "+-$s(r.clientWidth-(c+p))+"px "+-$s(r.clientHeight-(h+g))+"px "+-$s(c)+"px",threshold:ks(0,ws(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||Vo(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),v.observe(e));let u=n?Co(t):null;return n&&function e(){const o=Co(t);u&&!Vo(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 Wo.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Mo,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=a.filter(Boolean),n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=Us(l,o,n),p=o,g={},v=0;for(let f=0;f<d.length;f++){var u;const{name:s,fn:a}=d[f],{x:b,y:m,data:_,reset:x}=await a({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:{...i,detectOverflow:null!=(u=i.detectOverflow)?u:Ws},elements:{reference:t,floating:e}});c=null!=b?b:c,h=null!=m?m:h,g={...g,[s]:{...g[s],..._}},x&&v<=50&&(v++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(l=!0===x.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:c,y:h}=Us(l,p,n))),f=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:g}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});Wo.set(o,()=>Wo.delete(o)&&g())}let Go;const Yo=({type:t})=>{if("mousedown"===t&&(Go=!1),"scroll"===t&&!1===Go&&(Go=!0),"mouseup"===t&&Go)for(let[e]of Wo)e.showPopover()};(t=>{typeof window<"u"&&typeof document<"u"&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,[xs(document,"mousedown scroll mouseup",Yo,!0),xs(document,"toggle ds-toggle-source",Ko,ms)]))})("popover");const Xo=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Zo=()=>({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),_s(e,"data-floating",t.placement),t}});var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,tr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Jo(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Qo(e,s,a),a};let er=class extends ft{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto")}render(){return Q`<slot></slot>`}};er.styles=[bs],tr([S({type:String,attribute:"data-placement",reflect:!0})],er.prototype,"placement",2),tr([S({type:String,attribute:"data-autoplacement",reflect:!0})],er.prototype,"autoPlacement",2),tr([S({type:String,attribute:"data-overscroll",reflect:!0})],er.prototype,"overscroll",2),er=tr([P("sds-popover")],er);const sr=d`
1705
1915
  :host {
1706
1916
  --_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
1707
1917
  --_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
@@ -1903,13 +2113,13 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1903
2113
  margin-block-start: -1px;
1904
2114
  }
1905
2115
  }
1906
- `;var se=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&&se(s,e,a),a};let re=class extends ut{constructor(){super(),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.readOnly=!1,this.size="md",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;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.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0}))},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))},this.internals=this.attachInternals()}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="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(),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 form(){return this.internals.form}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)}focus(){this.disabled||this.shadowRoot?.querySelector("input")?.focus()}blur(){this.disabled||this.shadowRoot?.querySelector("input")?.blur()}click(){this.disabled||this.readOnly||this.shadowRoot?.querySelector("input")?.click()}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},s={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)};return Q`
1907
- <div class="${Gt(t)}">
2116
+ `;var or=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,ar=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?rr(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&&or(e,s,a),a};let ir=class extends(ee(St(ft))){constructor(){super(),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.readOnly=!1,this.size="md",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;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.internals=this.attachInternals()}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 form(){return this.internals.form}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={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)};return Q`
2117
+ <div class="${Zt(t)}">
1908
2118
  <input
1909
2119
  id="control"
1910
2120
  type="radio"
1911
- name="${Et(this.name)}"
1912
- value="${Et(this.value)}"
2121
+ name="${Lt(this.name)}"
2122
+ value="${Lt(this.value)}"
1913
2123
  ?checked="${this.checked??!1}"
1914
2124
  .checked="${this.checked??!1}"
1915
2125
  ?disabled="${this.disabled??!1}"
@@ -1919,12 +2129,12 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
1919
2129
  @change="${this._handleChange}"
1920
2130
  @focus="${this._handleFocus}"
1921
2131
  @blur="${this._handleBlur}"
1922
- class="${Gt(s)}"
2132
+ class="${Zt(e)}"
1923
2133
  />
1924
- ${this.label?Q`<label class="sds-radio__label" for="control">${this.label}</label>`:J}
1925
- ${this.helpText?Q`<span class="sds-radio__help-text">${this.helpText}</span>`:J}
2134
+ ${this.label?Q`<label class="sds-radio__label" for="control">${this.label}</label>`:tt}
2135
+ ${this.helpText?Q`<span class="sds-radio__help-text">${this.helpText}</span>`:tt}
1926
2136
  </div>
1927
- `}};re.styles=[te],re.formAssociated=!0,re.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},oe([$({type:Boolean,reflect:!0})],re.prototype,"required",2),oe([$({type:String,reflect:!0})],re.prototype,"label",2),oe([$({type:Boolean,reflect:!0,attribute:"hide-label"})],re.prototype,"hideLabel",2),oe([$({type:String,reflect:!0})],re.prototype,"name",2),oe([$({type:String})],re.prototype,"value",2),oe([$({type:Boolean,reflect:!0})],re.prototype,"checked",2),oe([$({type:Boolean,reflect:!0})],re.prototype,"error",2),oe([$({type:Boolean,attribute:"readonly",reflect:!0})],re.prototype,"readOnly",2),oe([$({type:String,reflect:!0})],re.prototype,"size",2),oe([$({type:String,attribute:"help-text"})],re.prototype,"helpText",2),oe([$({type:Boolean,reflect:!0})],re.prototype,"disabled",1),oe([$({type:Boolean,attribute:!1})],re.prototype,"parentRequestDisabled",1),oe([E("#control")],re.prototype,"control",2),re=oe([A("sds-radio")],re);const ae=i`
2137
+ `}};ir.styles=[sr],ir.formAssociated=!0,ir.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},ar([S({type:Boolean,reflect:!0})],ir.prototype,"required",2),ar([S({type:String,reflect:!0})],ir.prototype,"label",2),ar([S({type:Boolean,reflect:!0,attribute:"hide-label"})],ir.prototype,"hideLabel",2),ar([S({type:String,reflect:!0})],ir.prototype,"name",2),ar([S({type:String})],ir.prototype,"value",2),ar([S({type:Boolean,reflect:!0})],ir.prototype,"checked",2),ar([S({type:Boolean,reflect:!0})],ir.prototype,"error",2),ar([S({type:Boolean,attribute:"readonly",reflect:!0})],ir.prototype,"readOnly",2),ar([S({type:String,reflect:!0})],ir.prototype,"size",2),ar([S({type:String,attribute:"help-text"})],ir.prototype,"helpText",2),ar([S({type:Boolean,reflect:!0})],ir.prototype,"disabled",1),ar([S({type:Boolean,attribute:!1})],ir.prototype,"parentRequestDisabled",1),ar([A("#control")],ir.prototype,"control",2),ir=ar([P("sds-radio")],ir);const dr=d`
1928
2138
  :host {
1929
2139
  --_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
1930
2140
  --_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
@@ -2022,18 +2232,18 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2022
2232
  --_sds-radio-group-help-text-font-size: var(--sds-radio-group-help-text-font-size, var(--sds-components-font-size-content-lg));
2023
2233
  --_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
2024
2234
  }
2025
- `;var ie=Object.defineProperty,de=Object.getOwnPropertyDescriptor,ne=(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&&ie(s,e,a),a};const le=["disabled","errorMessage","readOnly","required","size"];let ce=class extends ut{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.dispatchEvent(new CustomEvent("sds-update",{bubbles:!0,composed:!0})))},this._handleSlotChange=()=>{this._updateChildProps([...le])}}_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;le.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};return Q`
2026
- <fieldset class="${Gt(t)}">
2027
- ${this.legend?Q`<legend class="sds-radio-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:J}${this.legend}</legend>`:J}
2028
- ${this.helpText?Q`<p class="sds-radio-group__help-text">${this.helpText}</p>`:J}
2029
- <div class="${Gt(s)}" @change=${this._handleRadioChange}>
2235
+ `;var nr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,cr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?lr(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&&nr(e,s,a),a};const hr=["disabled","errorMessage","readOnly","required","size"];let pr=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...hr])}}_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;hr.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};return Q`
2236
+ <fieldset class="${Zt(t)}">
2237
+ ${this.legend?Q`<legend class="sds-radio-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:tt}${this.legend}</legend>`:tt}
2238
+ ${this.helpText?Q`<p class="sds-radio-group__help-text">${this.helpText}</p>`:tt}
2239
+ <div class="${Zt(e)}" @change=${this._handleRadioChange}>
2030
2240
  <slot @slotchange=${this._handleSlotChange}></slot>
2031
2241
  </div>
2032
2242
  ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger">
2033
2243
  <p slot="message">${this.errorMessage}</p>
2034
- </sds-alert>`:J}
2244
+ </sds-alert>`:tt}
2035
2245
  </fieldset>
2036
- `}get value(){return{selectedValue:this._selectedValue}}};ce.styles=[ae],ne([$({type:String})],ce.prototype,"legend",2),ne([$({type:String,attribute:"help-text"})],ce.prototype,"helpText",2),ne([$({type:String,attribute:"error-message"})],ce.prototype,"errorMessage",2),ne([$({type:Boolean,attribute:"readonly",reflect:!0})],ce.prototype,"readOnly",2),ne([$({type:String})],ce.prototype,"direction",2),ne([$({type:Boolean,reflect:!0})],ce.prototype,"disabled",2),ne([$({type:Boolean,reflect:!0})],ce.prototype,"required",2),ne([$({type:String,reflect:!0})],ce.prototype,"size",2),ne([S()],ce.prototype,"_selectedValue",2),ne([E("slot")],ce.prototype,"_slotElement",2),ce=ne([A("sds-radio-group")],ce);const he=i`
2246
+ `}get value(){return{selectedValue:this._selectedValue}}};pr.styles=[dr],cr([S({type:String})],pr.prototype,"legend",2),cr([S({type:String,attribute:"help-text"})],pr.prototype,"helpText",2),cr([S({type:String,attribute:"error-message"})],pr.prototype,"errorMessage",2),cr([S({type:Boolean,attribute:"readonly",reflect:!0})],pr.prototype,"readOnly",2),cr([S({type:String})],pr.prototype,"direction",2),cr([S({type:Boolean,reflect:!0})],pr.prototype,"disabled",2),cr([S({type:Boolean,reflect:!0})],pr.prototype,"required",2),cr([S({type:String,reflect:!0})],pr.prototype,"size",2),cr([C()],pr.prototype,"_selectedValue",2),cr([A("slot")],pr.prototype,"_slotElement",2),pr=cr([P("sds-radio-group")],pr);const gr=d`
2037
2247
  :host {
2038
2248
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
2039
2249
  --_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2209,22 +2419,22 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2209
2419
  --_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-lg));
2210
2420
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
2211
2421
  }
2212
- `;var pe=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,ve=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?ge(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};let ue=class extends ut{constructor(){super(),this.disabled=!1,this.required=!1,this.readOnly=!1,this.size="md",this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}))))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0}))},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())},this.internals=this.attachInternals()}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){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()}focus(){this.disabled||this.readOnly||!this.control||this.control.focus()}blur(){this.disabled||this.readOnly||!this.control||this.control.blur()}click(){this.disabled||this.readOnly||!this.control||this.control.click()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return Q`<hr />`;default:return J}})}renderOption(t){const s=t.getAttribute("value"),e=t.value,o=null!=this.value&&e===this.value;return Q` <option value=${Et(null===s?void 0:s)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const s=Array.from(t.querySelectorAll("option"));return Q` <optgroup label=${Et(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)};return Q`
2213
- <div class="${Gt(t)}">
2214
- ${this.label?Q` <label for="select" class="sds-select__label"> ${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:J} ${this.label} </label> `:J}
2215
- ${this.helpText?Q`<p class="sds-select__help-text">${this.helpText}</p>`:J}
2422
+ `;var vr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ur(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&vr(e,s,a),a};let br=class extends(ee(St(ft))){constructor(){super(),this.disabled=!1,this.required=!1,this.readOnly=!1,this.size="md",this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())},this.internals=this.attachInternals()}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){this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return Q`<hr />`;default:return tt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return Q` <option value=${Lt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return Q` <optgroup label=${Lt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)};return Q`
2423
+ <div class="${Zt(t)}">
2424
+ ${this.label?Q` <label for="control" class="sds-select__label"> ${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:tt} ${this.label} </label> `:tt}
2425
+ ${this.helpText?Q`<p class="sds-select__help-text">${this.helpText}</p>`:tt}
2216
2426
 
2217
2427
  <div hidden>
2218
2428
  <slot @slotchange=${this._handleSlotChange}></slot>
2219
2429
  </div>
2220
2430
 
2221
2431
  <select
2222
- id="select"
2432
+ id="control"
2223
2433
  class="sds-select__control"
2224
- name=${Et(this.name)}
2434
+ name=${Lt(this.name)}
2225
2435
  ?disabled=${this.disabled}
2226
2436
  ?required=${this.required}
2227
- aria-readonly=${Et(this.readOnly)}
2437
+ aria-readonly=${Lt(this.readOnly)}
2228
2438
  aria-invalid=${this.errorMessage?"true":"false"}
2229
2439
  @keydown=${this._handleKeyDown}
2230
2440
  @change=${this._handleChange}
@@ -2238,9 +2448,9 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2238
2448
  <sds-alert variant="secondary" data-palette="danger">
2239
2449
  <p slot="message">${this.errorMessage}</p>
2240
2450
  </sds-alert>
2241
- `:J}
2451
+ `:tt}
2242
2452
  </div>
2243
- `}};function fe(t){return class extends t{dispatchSheriffEvent(t,s){return this.dispatchEvent(new CustomEvent(t,{detail:s,bubbles:!0,composed:!0}))}}}ue.styles=[he],ue.formAssociated=!0,ue.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},ve([$({type:String,reflect:!0})],ue.prototype,"name",2),ve([$({type:String,reflect:!0})],ue.prototype,"label",2),ve([$({type:String,attribute:!1})],ue.prototype,"value",2),ve([$({type:String,attribute:"default-value"})],ue.prototype,"defaultValue",2),ve([$({type:String,attribute:"help-text",reflect:!0})],ue.prototype,"helpText",2),ve([$({type:String,attribute:"error-message",reflect:!0})],ue.prototype,"errorMessage",2),ve([$({type:Boolean,reflect:!0})],ue.prototype,"disabled",2),ve([$({type:Boolean,reflect:!0})],ue.prototype,"required",2),ve([$({type:Boolean,attribute:"readonly",reflect:!0})],ue.prototype,"readOnly",2),ve([$({type:String,reflect:!0})],ue.prototype,"size",2),ve([E("#select")],ue.prototype,"control",2),ue=ve([A("sds-select")],ue);const be=i`
2453
+ `}};br.styles=[gr],br.formAssociated=!0,br.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},fr([S({type:String,reflect:!0})],br.prototype,"name",2),fr([S({type:String,reflect:!0})],br.prototype,"label",2),fr([S({type:String,attribute:!1})],br.prototype,"value",2),fr([S({type:String,attribute:"default-value"})],br.prototype,"defaultValue",2),fr([S({type:String,attribute:"help-text",reflect:!0})],br.prototype,"helpText",2),fr([S({type:String,attribute:"error-message",reflect:!0})],br.prototype,"errorMessage",2),fr([S({type:Boolean,reflect:!0})],br.prototype,"disabled",2),fr([S({type:Boolean,reflect:!0})],br.prototype,"required",2),fr([S({type:Boolean,attribute:"readonly",reflect:!0})],br.prototype,"readOnly",2),fr([S({type:String,reflect:!0})],br.prototype,"size",2),fr([A("#control")],br.prototype,"control",2),br=fr([P("sds-select")],br);const mr=d`
2244
2454
  :host {
2245
2455
  /* Sizing */
2246
2456
  --_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 32px);
@@ -2498,7 +2708,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2498
2708
  --_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
2499
2709
  --_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
2500
2710
  }
2501
- `;var _e=Object.defineProperty,me=Object.getOwnPropertyDescriptor,xe=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?me(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&&_e(s,e,a),a};let ye=class extends(fe(ut)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>Q`<div class="sds-stepper-step__step--static">
2711
+ `;var _r=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,yr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?xr(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&&_r(e,s,a),a};let wr=class extends(St(ft)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>Q`<div class="sds-stepper-step__step--static">
2502
2712
  <span class="sds-stepper-step__counter"></span>
2503
2713
  <div class="sds-stepper-step__label"><slot></slot></div>
2504
2714
  </div>`,this._renderInteractiveStep=()=>Q`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
@@ -2512,7 +2722,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2512
2722
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
2513
2723
  ${this._renderNonInteractiveStep()}
2514
2724
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
2515
- </div>`}};ye.styles=[be],ye.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},xe([$({type:Boolean,reflect:!0})],ye.prototype,"complete",2),xe([$({type:Boolean,reflect:!0})],ye.prototype,"interactive",2),xe([$({type:Boolean,reflect:!0})],ye.prototype,"active",2),ye=xe([A("sds-stepper-step")],ye);const we=i`
2725
+ </div>`}};wr.styles=[mr],wr.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},yr([S({type:Boolean,reflect:!0})],wr.prototype,"complete",2),yr([S({type:Boolean,reflect:!0})],wr.prototype,"interactive",2),yr([S({type:Boolean,reflect:!0})],wr.prototype,"active",2),wr=yr([P("sds-stepper-step")],wr);const kr=d`
2516
2726
  :host {
2517
2727
  display: flex;
2518
2728
  flex-direction: row;
@@ -2546,7 +2756,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2546
2756
 
2547
2757
  --sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
2548
2758
  }
2549
- `;var ke=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,$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=(o?r(s,e,a):r(a))||a);return o&&a&&ke(s,e,a),a};let Se=class extends(fe(ut)){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 ye);if(!s)return;const e=this.steps.indexOf(s);-1!==e&&(this._setActiveStep(this.steps,e),this.dispatchSheriffEvent("change",{index:e}))},this.role="tablist",this.internals=this.attachInternals()}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 Q`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Se.styles=[we],$e([$({type:String,reflect:!0})],Se.prototype,"orientation",2),$e([O({selector:"sds-stepper-step",flatten:!0})],Se.prototype,"steps",2),Se=$e([A("sds-stepper")],Se);const Ce=i`
2759
+ `;var zr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Sr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?$r(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&&zr(e,s,a),a};let Cr=class extends(St(ft)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof wr);if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.role="tablist",this.internals=this.attachInternals()}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return Q`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Cr.styles=[kr],Sr([S({type:String,reflect:!0})],Cr.prototype,"orientation",2),Sr([O({selector:"sds-stepper-step",flatten:!0})],Cr.prototype,"steps",2),Cr=Sr([P("sds-stepper")],Cr);const Er=d`
2550
2760
  :host {
2551
2761
  --_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2552
2762
  --_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2696,7 +2906,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2696
2906
  .sds-switch__input:checked::before {
2697
2907
  --_sds-switch-button-position: calc(var(--_sds-switch-width) - var(--_sds-switch-button-size) - var(--_sds-switch-button-gap) - var(--_sds-switch-border-width));
2698
2908
  }
2699
- `;var Ee=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ae=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Oe(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&&Ee(s,e,a),a};let qe=class extends ut{constructor(){super(),this.disabled=!1,this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.readOnly=!1,this.size="md",this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),!this.disabled){const s=t.target;this.checked=s.checked,this.internals.setFormValue(this.checked?"on":"off"),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0}))}},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0}))},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.disabled||this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}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"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},s=Q`<input
2909
+ `;var Ar=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,Pr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Or(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ar(e,s,a),a};let Lr=class extends(St(ft)){constructor(){super(),this.disabled=!1,this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.readOnly=!1,this.size="md",this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),!this.disabled){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.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.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}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"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=Q`<input
2700
2910
  class="sds-switch__input"
2701
2911
  id="control"
2702
2912
  type="checkbox"
@@ -2705,11 +2915,11 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2705
2915
  ?disabled="${this.disabled}"
2706
2916
  .checked="${this.checked}"
2707
2917
  ?checked="${this.checked}"
2708
- name="${Et(this.name)}"
2918
+ name="${Lt(this.name)}"
2709
2919
  @change="${this._handleChange}"
2710
2920
  @focus="${this._handleFocus}"
2711
2921
  @blur="${this._handleBlur}"
2712
- />`,e=this.readOnly?Q`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:J,o=Q`<label class="${Gt(t)}" for="control">${e}${this.label}</label>`;return Q`<div class="${Gt({"sds-switch":!0})}">${this.reverse?[o,s]:[s,o]}</div>`}};qe.styles=[Ce],qe.formAssociated=!0,qe.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},Ae([$({type:Boolean,reflect:!0})],qe.prototype,"disabled",2),Ae([$({type:String,reflect:!0})],qe.prototype,"label",2),Ae([$({type:Boolean,reflect:!0,attribute:"hide-label"})],qe.prototype,"hideLabel",2),Ae([$({type:String,reflect:!0})],qe.prototype,"name",2),Ae([$({type:Boolean,reflect:!0})],qe.prototype,"reverse",2),Ae([$({type:Boolean,reflect:!0})],qe.prototype,"checked",2),Ae([$({type:Boolean,attribute:"readonly",reflect:!0})],qe.prototype,"readOnly",2),Ae([$({type:String,reflect:!0})],qe.prototype,"size",2),Ae([E("#control")],qe.prototype,"control",2),qe=Ae([A("sds-switch")],qe);const Pe=i`
2922
+ />`,s=this.readOnly?Q`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:tt,o=Q`<label class="${Zt(t)}" for="control">${s}${this.label}</label>`;return Q`<div class="${Zt({"sds-switch":!0})}">${this.reverse?[o,e]:[e,o]}</div>`}};Lr.styles=[Er],Lr.formAssociated=!0,Lr.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},Pr([S({type:Boolean,reflect:!0})],Lr.prototype,"disabled",2),Pr([S({type:String,reflect:!0})],Lr.prototype,"label",2),Pr([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Lr.prototype,"hideLabel",2),Pr([S({type:String,reflect:!0})],Lr.prototype,"name",2),Pr([S({type:Boolean,reflect:!0})],Lr.prototype,"reverse",2),Pr([S({type:Boolean,reflect:!0})],Lr.prototype,"checked",2),Pr([S({type:Boolean,attribute:"readonly",reflect:!0})],Lr.prototype,"readOnly",2),Pr([S({type:String,reflect:!0})],Lr.prototype,"size",2),Pr([A("#control")],Lr.prototype,"control",2),Lr=Pr([P("sds-switch")],Lr);const Dr=d`
2713
2923
  :host {
2714
2924
  --_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
2715
2925
  --_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2770,9 +2980,9 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
2770
2980
  --_sds-tag-font-size: var(--sds-tag-font-size, var(--sds-components-font-size-content-lg));
2771
2981
  --_sds-tag-line-height: var(--sds-tag-line-height, var(--sds-components-line-height-squeezed-lg));
2772
2982
  }
2773
- `;var De=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Ve=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Le(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&&De(s,e,a),a};let Re=class extends ut{constructor(){super(...arguments),this.size="md"}render(){return Q`<span class="${Gt({"sds-tag":!0})}">
2983
+ `;var qr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Rr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Tr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&qr(e,s,a),a};let Mr=class extends ft{constructor(){super(...arguments),this.size="md"}render(){return Q`<span class="${Zt({"sds-tag":!0})}">
2774
2984
  <slot></slot>
2775
- </span>`}};Re.styles=[Pe],Ve([$({type:String,reflect:!0})],Re.prototype,"size",2),Re=Ve([A("sds-tag")],Re);const Me=i`
2985
+ </span>`}};Mr.styles=[Dr],Rr([S({type:String,reflect:!0})],Mr.prototype,"size",2),Mr=Rr([P("sds-tag")],Mr);const Vr=d`
2776
2986
  :host {
2777
2987
  --_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
2778
2988
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3047,7 +3257,7 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
3047
3257
  --_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-body-xl-desktop-line-height));
3048
3258
  }
3049
3259
  }
3050
- `;var Be=Object.defineProperty,Te=(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&&Be(s,e,a),a};const Ie=class extends ut{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return Q`<p><slot></slot></p>`}};Ie.styles=[Me];let je=Ie;Te([$({type:String,reflect:!0})],je.prototype,"size"),Te([$({type:Boolean,reflect:!0})],je.prototype,"strong"),Te([$({type:Boolean,reflect:!0})],je.prototype,"tall");var Ne=Object.getOwnPropertyDescriptor;let Fe=class extends je{};Fe=((t,s,e,o)=>{for(var r,a=o>1?void 0:o?Ne(s,e):s,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([A("sds-text")],Fe);const Ue=i`
3260
+ `;var Br=Object.defineProperty,Ir=(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&&Br(e,s,a),a};const Fr=class extends ft{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return Q`<p><slot></slot></p>`}};Fr.styles=[Vr];let jr=Fr;Ir([S({type:String,reflect:!0})],jr.prototype,"size"),Ir([S({type:Boolean,reflect:!0})],jr.prototype,"strong"),Ir([S({type:Boolean,reflect:!0})],jr.prototype,"tall");var Hr=Object.getOwnPropertyDescriptor;let Nr=class extends jr{};Nr=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Hr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-text")],Nr);const Ur=d`
3051
3261
  :host {
3052
3262
  --_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3053
3263
  --_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3214,26 +3424,26 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
3214
3424
  --sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
3215
3425
  }
3216
3426
  }
3217
- `;var He=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ge=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?We(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&&He(s,e,a),a};let Ke=class extends ut{constructor(){super(),this.type="text",this.disabled=!1,this.readOnly=!1,this.required=!1,this.size="md",this.hasIcon=!1,this._defaultValue=null,this.handleSlotChange=t=>{const s=t.target;this.hasIcon=s.assignedNodes({flatten:!0}).length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchEvent(new CustomEvent(t.type,{bubbles:!0,composed:!0})))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0}))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0}))},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))},this._handleKeyDown=t=>{if("Enter"!==t.key)return;t.stopImmediatePropagation();const s=this.internals?.form;s?.requestSubmit?s.requestSubmit():s?.submit()},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}focus(){this.disabled||this.control.focus()}blur(){this.disabled||this.control.blur()}click(){this.disabled||this.control.click()}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};return Q`
3218
- <div class="${Gt(t)}">
3219
- ${this.label?Q`<label for="sds-textfield" class="sds-textfield__label">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:J}</sds-icon>${this.label}</label>`:J}
3220
- ${this.helpText?Q`<p class="sds-textfield__help-text">${this.helpText}</p>`:J}
3427
+ `;var Wr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Gr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Kr(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&&Wr(e,s,a),a};let Yr=class extends(ee(St(ft))){constructor(){super(),this.type="text",this.disabled=!1,this.readOnly=!1,this.required=!1,this.size="md",this.hasIcon=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){const t=this.internals?.form;t?.requestSubmit?t.requestSubmit():t?.submit()}},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon};return Q`
3428
+ <div class="${Zt(t)}">
3429
+ ${this.label?Q`<label for="sds-textfield" class="sds-textfield__label">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:tt}</sds-icon>${this.label}</label>`:tt}
3430
+ ${this.helpText?Q`<p class="sds-textfield__help-text">${this.helpText}</p>`:tt}
3221
3431
  <div class="sds-textfield__input-container">
3222
3432
  <input
3223
3433
  part="input"
3224
3434
  class="sds-textfield__input"
3225
- type="${Et(this.type)}"
3435
+ type="${Lt(this.type)}"
3226
3436
  id="sds-textfield"
3227
3437
  ?disabled="${this.disabled}"
3228
3438
  ?readonly="${this.readOnly}"
3229
- placeholder="${Et(this.placeholder)}"
3439
+ placeholder="${Lt(this.placeholder)}"
3230
3440
  .value="${this.value??""}"
3231
- name="${Et(this.name)}"
3232
- autocomplete="${Et(this.autocomplete)}"
3441
+ name="${Lt(this.name)}"
3442
+ autocomplete="${Lt(this.autocomplete)}"
3233
3443
  ?required="${this.required}"
3234
- pattern="${Et(this.pattern)}"
3235
- minlength="${Et(this.minlength)}"
3236
- maxlength="${Et(this.maxlength)}"
3444
+ pattern="${Lt(this.pattern)}"
3445
+ minlength="${Lt(this.minlength)}"
3446
+ maxlength="${Lt(this.maxlength)}"
3237
3447
  @input="${this._handleInputChange}"
3238
3448
  @change="${this._handleInputChange}"
3239
3449
  @select="${this._handleSelect}"
@@ -3243,9 +3453,9 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
3243
3453
  />
3244
3454
  <slot name="after" @slotchange="${this.handleSlotChange}" aria-hidden="true"></slot>
3245
3455
  </div>
3246
- ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:J}
3456
+ ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt}
3247
3457
  </div>
3248
- `}};Ke.styles=[Ue],Ke.formAssociated=!0,Ke.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},Ge([$({type:String,reflect:!0})],Ke.prototype,"type",2),Ge([$({type:String})],Ke.prototype,"value",2),Ge([$({type:String,reflect:!0})],Ke.prototype,"name",2),Ge([$({type:String,reflect:!0})],Ke.prototype,"label",2),Ge([$({type:String,reflect:!0})],Ke.prototype,"placeholder",2),Ge([$({type:String,attribute:"help-text",reflect:!0})],Ke.prototype,"helpText",2),Ge([$({type:String,attribute:"error-message",reflect:!0})],Ke.prototype,"errorMessage",2),Ge([$({type:Boolean,reflect:!0})],Ke.prototype,"disabled",2),Ge([$({type:Boolean,attribute:"readonly",reflect:!0})],Ke.prototype,"readOnly",2),Ge([$({type:String,reflect:!0})],Ke.prototype,"autocomplete",2),Ge([$({type:Boolean,reflect:!0})],Ke.prototype,"required",2),Ge([$({type:String,reflect:!0})],Ke.prototype,"pattern",2),Ge([$({type:Number,reflect:!0})],Ke.prototype,"minlength",2),Ge([$({type:Number,reflect:!0})],Ke.prototype,"maxlength",2),Ge([$({type:String,reflect:!0})],Ke.prototype,"size",2),Ge([S()],Ke.prototype,"hasIcon",2),Ge([E("#sds-textfield")],Ke.prototype,"control",2),Ke=Ge([A("sds-textfield")],Ke);const Ye=i`
3458
+ `}};Yr.styles=[Ur],Yr.formAssociated=!0,Yr.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},Gr([S({type:String,reflect:!0})],Yr.prototype,"type",2),Gr([S({type:String})],Yr.prototype,"value",2),Gr([S({type:String,reflect:!0})],Yr.prototype,"name",2),Gr([S({type:String,reflect:!0})],Yr.prototype,"label",2),Gr([S({type:String,reflect:!0})],Yr.prototype,"placeholder",2),Gr([S({type:String,attribute:"help-text",reflect:!0})],Yr.prototype,"helpText",2),Gr([S({type:String,attribute:"error-message",reflect:!0})],Yr.prototype,"errorMessage",2),Gr([S({type:Boolean,reflect:!0})],Yr.prototype,"disabled",2),Gr([S({type:Boolean,attribute:"readonly",reflect:!0})],Yr.prototype,"readOnly",2),Gr([S({type:String,reflect:!0})],Yr.prototype,"autocomplete",2),Gr([S({type:Boolean,reflect:!0})],Yr.prototype,"required",2),Gr([S({type:String,reflect:!0})],Yr.prototype,"pattern",2),Gr([S({type:Number,reflect:!0})],Yr.prototype,"minlength",2),Gr([S({type:Number,reflect:!0})],Yr.prototype,"maxlength",2),Gr([S({type:String,reflect:!0})],Yr.prototype,"size",2),Gr([C()],Yr.prototype,"hasIcon",2),Gr([A("#sds-textfield")],Yr.prototype,"control",2),Yr=Gr([P("sds-textfield")],Yr);const Xr=d`
3249
3459
  :host {
3250
3460
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3251
3461
  --_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3429,30 +3639,30 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
3429
3639
  --_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
3430
3640
  --_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
3431
3641
  }
3432
- `;var Ze=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Xe=(t,s,e,o)=>{for(var r,a=o>1?void 0:o?Qe(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 Je=class extends ut{constructor(){super(),this.disabled=!1,this.readOnly=!1,this.required=!1,this.size="md",this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchEvent(new CustomEvent(t.type,{bubbles:!0,composed:!0})))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0}))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchEvent(new CustomEvent("focus",{bubbles:!0,composed:!0}))},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchEvent(new CustomEvent("blur",{bubbles:!0,composed:!0}))},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return J;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?Q`<sds-alert variant="secondary" data-palette="danger"
3642
+ `;var Zr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,Jr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Qr(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&&Zr(e,s,a),a};let ta=class extends(ee(St(ft))){constructor(){super(),this.disabled=!1,this.readOnly=!1,this.required=!1,this.size="md",this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return tt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?Q`<sds-alert variant="secondary" data-palette="danger"
3433
3643
  ><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
3434
- >`:Q`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}focus(){this.disabled||this.control.focus()}blur(){this.disabled||this.control.blur()}click(){this.disabled||this.control.click()}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-textarea":!0,"sds-textarea--error":Boolean(this.errorMessage||this.hasTypedTooManyCharacters())};return Q`
3435
- <div class="${Gt(t)}">
3644
+ >`:Q`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textarea":!0,"sds-textarea--error":Boolean(this.errorMessage||this.hasTypedTooManyCharacters())};return Q`
3645
+ <div class="${Zt(t)}">
3436
3646
  ${this.label||this.helpText?Q`<div>
3437
- ${this.label?Q`<label for="sds-textarea" class="sds-textarea__label">${this.label}</label>`:J}
3438
- ${this.helpText?Q`<p class="sds-textarea__help-text">${this.helpText}</p>`:J}
3439
- </div>`:J}
3647
+ ${this.label?Q`<label for="sds-textarea" class="sds-textarea__label">${this.label}</label>`:tt}
3648
+ ${this.helpText?Q`<p class="sds-textarea__help-text">${this.helpText}</p>`:tt}
3649
+ </div>`:tt}
3440
3650
  <div class="sds-textarea__input-container">
3441
3651
  <textarea
3442
3652
  class="sds-textarea__input"
3443
3653
  id="sds-textarea"
3444
3654
  ?disabled="${this.disabled}"
3445
3655
  ?readonly="${this.readOnly}"
3446
- placeholder="${Et(this.placeholder)}"
3656
+ placeholder="${Lt(this.placeholder)}"
3447
3657
  .value="${this.value??""}"
3448
3658
  .autocomplete="${this.autocomplete}"
3449
- name="${Et(this.name)}"
3659
+ name="${Lt(this.name)}"
3450
3660
  ?required="${this.required}"
3451
- rows="${Et(this.rows)}"
3452
- cols="${Et(this.cols)}"
3453
- wrap="${Et(this.wrap)}"
3454
- minlength="${Et(this.minlength)}"
3455
- maxlength="${Et(this.maxlength)}"
3661
+ rows="${Lt(this.rows)}"
3662
+ cols="${Lt(this.cols)}"
3663
+ wrap="${Lt(this.wrap)}"
3664
+ minlength="${Lt(this.minlength)}"
3665
+ maxlength="${Lt(this.maxlength)}"
3456
3666
  @input="${this._handleInputChange}"
3457
3667
  @change="${this._handleInputChange}"
3458
3668
  @select="${this._handleSelect}"
@@ -3460,6 +3670,6 @@ var t;const s=globalThis,e=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.native
3460
3670
  @blur="${this._handleBlur}"
3461
3671
  ></textarea>
3462
3672
  </div>
3463
- ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:J} ${this.renderCharacterCounter()}
3673
+ ${this.errorMessage?Q`<sds-alert variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt} ${this.renderCharacterCounter()}
3464
3674
  </div>
3465
- `}};Je.styles=[Ye],Je.formAssociated=!0,Je.shadowRootOptions={...ut.shadowRootOptions,delegatesFocus:!0},Xe([$({type:String})],Je.prototype,"value",2),Xe([$({type:String,reflect:!0})],Je.prototype,"name",2),Xe([$({type:String,reflect:!0})],Je.prototype,"label",2),Xe([$({type:String,reflect:!0})],Je.prototype,"placeholder",2),Xe([$({type:String,attribute:"help-text",reflect:!0})],Je.prototype,"helpText",2),Xe([$({type:String,attribute:"error-message",reflect:!0})],Je.prototype,"errorMessage",2),Xe([$({type:Boolean,reflect:!0})],Je.prototype,"disabled",2),Xe([$({type:Boolean,attribute:"readonly",reflect:!0})],Je.prototype,"readOnly",2),Xe([$({type:String,reflect:!0})],Je.prototype,"autocomplete",2),Xe([$({type:Boolean,reflect:!0})],Je.prototype,"required",2),Xe([$({type:Number,reflect:!0})],Je.prototype,"rows",2),Xe([$({type:Number,reflect:!0})],Je.prototype,"cols",2),Xe([$({type:String,reflect:!0})],Je.prototype,"wrap",2),Xe([$({type:Number,reflect:!0})],Je.prototype,"minlength",2),Xe([$({type:Number,reflect:!0})],Je.prototype,"maxlength",2),Xe([$({type:Number,reflect:!0})],Je.prototype,"counter",2),Xe([$({type:String,reflect:!0})],Je.prototype,"size",2),Xe([E("#sds-textarea")],Je.prototype,"control",2),Je=Xe([A("sds-textarea")],Je);export{es as SDSAlert,ts as SDSButton,ns as SDSCard,gs as SDSCheckbox,ms as SDSCheckboxGroup,zs as SDSChip,Os as SDSDetails,Ls as SDSDialog,js as SDSHeading,Wt as SDSIcon,Ws as SDSLoader,Js as SDSNotification,re as SDSRadio,ce as SDSRadioGroup,ue as SDSSelect,Se as SDSStepper,ye as SDSStepperStep,qe as SDSSwitch,Re as SDSTag,Fe as SDSText,Je as SDSTextArea,Ke as SDSTextField};
3675
+ `}};ta.styles=[Xr],ta.formAssociated=!0,ta.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},Jr([S({type:String})],ta.prototype,"value",2),Jr([S({type:String,reflect:!0})],ta.prototype,"name",2),Jr([S({type:String,reflect:!0})],ta.prototype,"label",2),Jr([S({type:String,reflect:!0})],ta.prototype,"placeholder",2),Jr([S({type:String,attribute:"help-text",reflect:!0})],ta.prototype,"helpText",2),Jr([S({type:String,attribute:"error-message",reflect:!0})],ta.prototype,"errorMessage",2),Jr([S({type:Boolean,reflect:!0})],ta.prototype,"disabled",2),Jr([S({type:Boolean,attribute:"readonly",reflect:!0})],ta.prototype,"readOnly",2),Jr([S({type:String,reflect:!0})],ta.prototype,"autocomplete",2),Jr([S({type:Boolean,reflect:!0})],ta.prototype,"required",2),Jr([S({type:Number,reflect:!0})],ta.prototype,"rows",2),Jr([S({type:Number,reflect:!0})],ta.prototype,"cols",2),Jr([S({type:String,reflect:!0})],ta.prototype,"wrap",2),Jr([S({type:Number,reflect:!0})],ta.prototype,"minlength",2),Jr([S({type:Number,reflect:!0})],ta.prototype,"maxlength",2),Jr([S({type:Number,reflect:!0})],ta.prototype,"counter",2),Jr([S({type:String,reflect:!0})],ta.prototype,"size",2),Jr([A("#sds-textarea")],ta.prototype,"control",2),ta=Jr([P("sds-textarea")],ta);export{le as SDSAlert,de as SDSButton,ue as SDSCard,xe as SDSCheckbox,Se as SDSCheckboxGroup,Pe as SDSChip,Re as SDSDetails,Fe as SDSDialog,Ge as SDSHeading,Xt as SDSIcon,Je as SDSLoader,is as SDSNotification,er as SDSPopover,hs as SDSProcess,fs as SDSProcessStep,ir as SDSRadio,pr as SDSRadioGroup,br as SDSSelect,Cr as SDSStepper,wr as SDSStepperStep,Lr as SDSSwitch,Mr as SDSTag,Nr as SDSText,ta as SDSTextArea,Yr as SDSTextField};