@solid-design-system/components 3.22.7 → 3.22.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. package/dist/components/es/button.js +1 -1
  2. package/dist/components/es/teaser-media.js +1 -1
  3. package/dist/components/umd/solid-components.js +2 -2
  4. package/dist/custom-elements.json +1 -1
  5. package/dist/package/components/button/button.js +2 -2
  6. package/dist/package/components/teaser-media/teaser-media.js +1 -1
  7. package/dist/versioned-components/es/accordion-group.js +1 -1
  8. package/dist/versioned-components/es/accordion.js +1 -1
  9. package/dist/versioned-components/es/audio.js +1 -1
  10. package/dist/versioned-components/es/badge.js +1 -1
  11. package/dist/versioned-components/es/brandshape.js +1 -1
  12. package/dist/versioned-components/es/button.js +1 -1
  13. package/dist/versioned-components/es/carousel-item.js +1 -1
  14. package/dist/versioned-components/es/carousel.js +3 -3
  15. package/dist/versioned-components/es/checkbox-group.js +1 -1
  16. package/dist/versioned-components/es/checkbox.js +1 -1
  17. package/dist/versioned-components/es/dialog.js +1 -1
  18. package/dist/versioned-components/es/divider.js +1 -1
  19. package/dist/versioned-components/es/drawer.js +1 -1
  20. package/dist/versioned-components/es/dropdown.js +1 -1
  21. package/dist/versioned-components/es/expandable.js +1 -1
  22. package/dist/versioned-components/es/flipcard.js +1 -1
  23. package/dist/versioned-components/es/form.js +1 -1
  24. package/dist/versioned-components/es/header.js +1 -1
  25. package/dist/versioned-components/es/icon.js +1 -1
  26. package/dist/versioned-components/es/include.js +1 -1
  27. package/dist/versioned-components/es/input.js +1 -1
  28. package/dist/versioned-components/es/link.js +1 -1
  29. package/dist/versioned-components/es/map-marker.js +1 -1
  30. package/dist/versioned-components/es/navigation-item.js +1 -1
  31. package/dist/versioned-components/es/notification.js +1 -1
  32. package/dist/versioned-components/es/option.js +1 -1
  33. package/dist/versioned-components/es/quickfact.js +1 -1
  34. package/dist/versioned-components/es/radio-button.js +1 -1
  35. package/dist/versioned-components/es/radio-group.js +1 -1
  36. package/dist/versioned-components/es/radio.js +1 -1
  37. package/dist/versioned-components/es/scrollable.js +1 -1
  38. package/dist/versioned-components/es/select.js +3 -3
  39. package/dist/versioned-components/es/solid-components2.js +1 -1
  40. package/dist/versioned-components/es/spinner.js +1 -1
  41. package/dist/versioned-components/es/step-group.js +1 -1
  42. package/dist/versioned-components/es/step.js +1 -1
  43. package/dist/versioned-components/es/switch.js +1 -1
  44. package/dist/versioned-components/es/tab-group.js +1 -1
  45. package/dist/versioned-components/es/tab-panel.js +1 -1
  46. package/dist/versioned-components/es/tab.js +1 -1
  47. package/dist/versioned-components/es/tag.js +1 -1
  48. package/dist/versioned-components/es/teaser-media.js +1 -1
  49. package/dist/versioned-components/es/teaser.js +1 -1
  50. package/dist/versioned-components/es/textarea.js +1 -1
  51. package/dist/versioned-components/es/tooltip.js +2 -2
  52. package/dist/versioned-components/es/video.js +1 -1
  53. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  54. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  55. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  56. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  57. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  58. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  59. package/dist/versioned-package/components/audio/audio.d.ts +1 -1
  60. package/dist/versioned-package/components/audio/audio.js +6 -6
  61. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  62. package/dist/versioned-package/components/badge/badge.js +1 -1
  63. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  64. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  65. package/dist/versioned-package/components/button/button.d.ts +1 -1
  66. package/dist/versioned-package/components/button/button.js +6 -6
  67. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  68. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  69. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  70. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  71. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  72. package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
  73. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  74. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  75. package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
  76. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  77. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  78. package/dist/versioned-package/components/divider/divider.js +2 -2
  79. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  80. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  81. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  82. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  83. package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
  84. package/dist/versioned-package/components/expandable/expandable.js +2 -2
  85. package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
  86. package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
  87. package/dist/versioned-package/components/header/header.d.ts +1 -1
  88. package/dist/versioned-package/components/header/header.js +4 -4
  89. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  90. package/dist/versioned-package/components/icon/icon.js +1 -1
  91. package/dist/versioned-package/components/include/include.d.ts +1 -1
  92. package/dist/versioned-package/components/include/include.js +1 -1
  93. package/dist/versioned-package/components/input/input.d.ts +1 -1
  94. package/dist/versioned-package/components/input/input.js +3 -3
  95. package/dist/versioned-package/components/link/link.d.ts +1 -1
  96. package/dist/versioned-package/components/link/link.js +2 -2
  97. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  98. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  99. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  100. package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
  101. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  102. package/dist/versioned-package/components/notification/notification.js +5 -5
  103. package/dist/versioned-package/components/option/option.d.ts +1 -1
  104. package/dist/versioned-package/components/option/option.js +2 -2
  105. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  106. package/dist/versioned-package/components/popup/popup.js +1 -1
  107. package/dist/versioned-package/components/quickfact/quickfact.d.ts +1 -1
  108. package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
  109. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  110. package/dist/versioned-package/components/radio/radio.js +2 -2
  111. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  112. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  113. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  114. package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
  115. package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
  116. package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
  117. package/dist/versioned-package/components/select/select.d.ts +4 -4
  118. package/dist/versioned-package/components/select/select.js +25 -25
  119. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  120. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  121. package/dist/versioned-package/components/step/step.d.ts +1 -1
  122. package/dist/versioned-package/components/step/step.js +2 -2
  123. package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
  124. package/dist/versioned-package/components/step-group/step-group.js +2 -2
  125. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  126. package/dist/versioned-package/components/switch/switch.js +1 -1
  127. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  128. package/dist/versioned-package/components/tab/tab.js +2 -2
  129. package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
  130. package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
  131. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  132. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  133. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  134. package/dist/versioned-package/components/tag/tag.js +2 -2
  135. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  136. package/dist/versioned-package/components/teaser-media/teaser-media.js +2 -2
  137. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  138. package/dist/versioned-package/components/textarea/textarea.js +2 -2
  139. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  140. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  141. package/dist/versioned-package/components/video/video.d.ts +1 -1
  142. package/dist/versioned-package/components/video/video.js +2 -2
  143. package/dist/versioned-package/internal/form.js +3 -3
  144. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  145. package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
  146. package/dist/versioned-styles/solid-styles.css +1 -1
  147. package/dist/vscode.html-custom-data.json +45 -45
  148. package/dist/web-types.json +46 -46
  149. package/package.json +1 -1
@@ -1 +1 @@
1
- import"./spinner.js";import{S as t,t as e,c as r,i,e as o,n as a,a as s}from"./solid-components2.js";import{F as n,v as l}from"./form.js";import{H as d}from"./slot.js";import{s as p,n as h}from"./static.js";import{o as c}from"./if-defined.js";import{r as m}from"./state.js";import{o as u}from"./query-assigned-elements.js";import{w as b}from"./watch.js";var v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,f=(t,e,r,i)=>{for(var o,a=i>1?void 0:i?y(e,r):e,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i?o(e,r,a):o(a))||a);return i&&a&&v(e,r,a),a};let g=class extends t{constructor(){super(...arguments),this.formControlController=new n(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),r=t.getAttribute("form");return e.getElementById(r)}return t.closest("form")}}),this.hasSlotController=new d(this,"[default]","icon-left","icon-right"),this.invalid=!1,this.title="",this.variant="primary",this.inverted=!1,this.size="lg",this.disabled=!1,this.loading=!1,this.type="button",this.name="",this.value="",this.href=""}get validity(){return this.isButton()?this.button.validity:l}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),r=t?p`a`:p`button`,i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return h`<${r} part="base" class="${e("font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline\n w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center\n border transition-colors duration-200 ease-in-out rounded-default\n select-none cursor-[inherit]",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",i["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?"text-primary bg-white border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:bg-neutral-600 disabled:text-white":"text-white bg-primary border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:bg-neutral-500",secondary:this.inverted?"text-white border-white\n hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100\n active:text-primary-200 active:bg-primary-800 active:border-primary-200\n disabled:text-neutral-600 disabled:border-neutral-600":"text-primary border-primary\n hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100\n active:text-primary-800 active:border-primary-800 active:bg-primary-200\n disabled:text-neutral-500 disabled:border-neutral-500",tertiary:this.inverted?"text-white border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:text-neutral-600":"text-primary border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:text-neutral-500",cta:`text-white bg-accent-500 border-transparent\n hover:bg-accent-550\n active:bg-accent-700\n ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${c(t?void 0:this.disabled)}" type="${c(t?void 0:this.type)}" title="${this.title}" name="${c(t?void 0:this.name)}" value="${c(t?void 0:this.value)}" href="${c(t?this.href:void 0)}" target="${c(t?this.target:void 0)}" download="${c(t?this.download:void 0)}" rel="${c(t&&this.target?"noreferrer noopener":void 0)}" role="${c(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${e("flex flex-auto items-center pointer-events-none",i["icon-only"]&&"hidden",this.loading&&"invisible",i["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" class="${e(i["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${e("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",i["icon-only"]&&"hidden",i["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?h`<sd-spinner class="${e("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${r}>`}};g.styles=[r,t.styles,i`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`],f([o("a, button")],g.prototype,"button",2),f([u({selector:"sd-icon"})],g.prototype,"_iconsInDefaultSlot",2),f([m()],g.prototype,"invalid",2),f([a()],g.prototype,"title",2),f([a({reflect:!0})],g.prototype,"variant",2),f([a({type:Boolean,reflect:!0})],g.prototype,"inverted",2),f([a({reflect:!0})],g.prototype,"size",2),f([a({type:Boolean,reflect:!0})],g.prototype,"disabled",2),f([a({type:Boolean,reflect:!0})],g.prototype,"loading",2),f([a()],g.prototype,"type",2),f([a()],g.prototype,"name",2),f([a()],g.prototype,"value",2),f([a()],g.prototype,"href",2),f([a()],g.prototype,"target",2),f([a()],g.prototype,"download",2),f([a()],g.prototype,"form",2),f([a({attribute:"formaction"})],g.prototype,"formAction",2),f([a({attribute:"formenctype"})],g.prototype,"formEnctype",2),f([a({attribute:"formmethod"})],g.prototype,"formMethod",2),f([a({attribute:"formnovalidate",type:Boolean})],g.prototype,"formNoValidate",2),f([a({attribute:"formtarget"})],g.prototype,"formTarget",2),f([b("disabled",{waitUntilFirstUpdate:!0})],g.prototype,"handleDisabledChange",1),g=f([s("sd-button")],g);export{g as default};
1
+ import"./spinner.js";import{S as t,t as e,c as r,i,e as o,n as a,a as s}from"./solid-components2.js";import{F as n,v as l}from"./form.js";import{H as d}from"./slot.js";import{s as p,n as h}from"./static.js";import{o as c}from"./if-defined.js";import{r as m}from"./state.js";import{o as u}from"./query-assigned-elements.js";import{w as b}from"./watch.js";var v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,f=(t,e,r,i)=>{for(var o,a=i>1?void 0:i?y(e,r):e,s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i?o(e,r,a):o(a))||a);return i&&a&&v(e,r,a),a};let g=class extends t{constructor(){super(...arguments),this.formControlController=new n(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),r=t.getAttribute("form");return e.getElementById(r)}return t.closest("form")}}),this.hasSlotController=new d(this,"[default]","icon-left","icon-right"),this.invalid=!1,this.title="",this.variant="primary",this.inverted=!1,this.size="lg",this.disabled=!1,this.loading=!1,this.type="button",this.name="",this.value="",this.href=""}get validity(){return this.isButton()?this.button.validity:l}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),r=t?p`a`:p`button`,i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return h`<${r} part="base" class="${e("font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline\n w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center\n border transition-colors duration-200 ease-in-out rounded-default\n select-none cursor-[inherit]",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",i["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?"text-primary bg-white border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:bg-neutral-600 disabled:text-white":"text-white bg-primary border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:bg-neutral-500",secondary:this.inverted?"text-white border-white\n hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100\n active:text-primary-200 active:bg-primary-800 active:border-primary-200\n disabled:text-neutral-600 disabled:border-neutral-600":"text-primary border-primary\n hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100\n active:text-primary-800 active:border-primary-800 active:bg-primary-200\n disabled:text-neutral-500 disabled:border-neutral-500",tertiary:this.inverted?"text-white border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:text-neutral-600":"text-primary border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:text-neutral-500",cta:`text-white bg-accent-500 border-transparent\n hover:bg-accent-550\n active:bg-accent-700\n ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${c(t?void 0:this.disabled)}" type="${c(t?void 0:this.type)}" title="${this.title}" name="${c(t?void 0:this.name)}" value="${c(t?void 0:this.value)}" href="${c(t?this.href:void 0)}" target="${c(t?this.target:void 0)}" download="${c(t?this.download:void 0)}" rel="${c(t&&this.target?"noreferrer noopener":void 0)}" role="${c(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${e("flex flex-auto items-center pointer-events-none",i["icon-only"]&&"hidden",this.loading&&"invisible",i["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${e(i["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${e("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",i["icon-only"]&&"hidden",i["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?h`<sd-spinner class="${e("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${r}>`}};g.styles=[r,t.styles,i`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`],f([o("a, button")],g.prototype,"button",2),f([u({selector:"sd-icon"})],g.prototype,"_iconsInDefaultSlot",2),f([m()],g.prototype,"invalid",2),f([a()],g.prototype,"title",2),f([a({reflect:!0})],g.prototype,"variant",2),f([a({type:Boolean,reflect:!0})],g.prototype,"inverted",2),f([a({reflect:!0})],g.prototype,"size",2),f([a({type:Boolean,reflect:!0})],g.prototype,"disabled",2),f([a({type:Boolean,reflect:!0})],g.prototype,"loading",2),f([a()],g.prototype,"type",2),f([a()],g.prototype,"name",2),f([a()],g.prototype,"value",2),f([a()],g.prototype,"href",2),f([a()],g.prototype,"target",2),f([a()],g.prototype,"download",2),f([a()],g.prototype,"form",2),f([a({attribute:"formaction"})],g.prototype,"formAction",2),f([a({attribute:"formenctype"})],g.prototype,"formEnctype",2),f([a({attribute:"formmethod"})],g.prototype,"formMethod",2),f([a({attribute:"formnovalidate",type:Boolean})],g.prototype,"formNoValidate",2),f([a({attribute:"formtarget"})],g.prototype,"formTarget",2),f([b("disabled",{waitUntilFirstUpdate:!0})],g.prototype,"handleDisabledChange",1),g=f([s("sd-button")],g);export{g as default};
@@ -1 +1 @@
1
- import{S as e,x as t,t as a,i as r,n as s,e as i,a as o}from"./solid-components2.js";import{H as l}from"./slot.js";var d=Object.defineProperty,n=Object.getOwnPropertyDescriptor,h=(e,t,a,r)=>{for(var s,i=r>1?void 0:r?n(t,a):t,o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r?s(t,a,i):s(i))||i);return r&&i&&d(t,a,i),i};let p=class extends e{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new l(this,"[default]","media","meta","headline","expandable")}render(){const e={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return t`<div class="relative flex flex-col group" part="base"><div class="${a("mb-4",!e["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${a("flex-1","gradient-white"===this.variant&&"bg-gradient-to-t from-white/[.8] to-60%","gradient-dark"===this.variant&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${a({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-white":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${a("gap-2 mb-4",!e["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div class="${a("hidden",e["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable"><slot name="expandable"></slot></div><div part="main" class="${a(!e["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};p.styles=[e.styles,r`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],h([s({reflect:!0})],p.prototype,"variant",2),h([i('[part="base"]')],p.prototype,"teaserMedia",2),p=h([o("sd-teaser-media")],p);export{p as default};
1
+ import{S as e,x as t,t as a,i as r,n as s,e as i,a as o}from"./solid-components2.js";import{H as l}from"./slot.js";var d=Object.defineProperty,n=Object.getOwnPropertyDescriptor,h=(e,t,a,r)=>{for(var s,i=r>1?void 0:r?n(t,a):t,o=e.length-1;o>=0;o--)(s=e[o])&&(i=(r?s(t,a,i):s(i))||i);return r&&i&&d(t,a,i),i};let p=class extends e{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new l(this,"[default]","media","meta","headline","expandable")}render(){const e={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return t`<div class="relative flex flex-col group" part="base"><div class="${a("mb-4",!e["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${a("flex-1","gradient-white"===this.variant&&"bg-gradient-to-t from-white/[.8] to-60%","gradient-dark"===this.variant&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${a({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-white":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${a("gap-2 mb-4",!e["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div class="${a("hidden",e["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div><div part="main" class="${a(!e["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};p.styles=[e.styles,r`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],h([s({reflect:!0})],p.prototype,"variant",2),h([i('[part="base"]')],p.prototype,"teaserMedia",2),p=h([o("sd-teaser-media")],p);export{p as default};
@@ -79,7 +79,7 @@ function Ve(t){return(e,i)=>{const{slot:o,selector:r}=t??{},s="slot"+(o?`[name=$
79
79
  * Copyright 2018 Google LLC
80
80
  * SPDX-License-Identifier: BSD-3-Clause
81
81
  */
82
- const Do=t=>t??Ae;var Oo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,To=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Oo(e,i,s),s};let Po=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");return e.getElementById(i)}return t.closest("form")}}),this.hasSlotController=new qi(this,"[default]","icon-left","icon-right"),this.invalid=!1,this.title="",this.variant="primary",this.inverted=!1,this.size="lg",this.disabled=!1,this.loading=!1,this.type="button",this.name="",this.value="",this.href=""}get validity(){return this.isButton()?this.button.validity:Ao}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?Eo`a`:Eo`button`,i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return Io`<${e} part="base" class="${Ze("font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline\n w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center\n border transition-colors duration-200 ease-in-out rounded-default\n select-none cursor-[inherit]",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",i["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?"text-primary bg-white border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:bg-neutral-600 disabled:text-white":"text-white bg-primary border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:bg-neutral-500",secondary:this.inverted?"text-white border-white\n hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100\n active:text-primary-200 active:bg-primary-800 active:border-primary-200\n disabled:text-neutral-600 disabled:border-neutral-600":"text-primary border-primary\n hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100\n active:text-primary-800 active:border-primary-800 active:bg-primary-200\n disabled:text-neutral-500 disabled:border-neutral-500",tertiary:this.inverted?"text-white border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:text-neutral-600":"text-primary border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:text-neutral-500",cta:`text-white bg-accent-500 border-transparent\n hover:bg-accent-550\n active:bg-accent-700\n ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${Do(t?void 0:this.disabled)}" type="${Do(t?void 0:this.type)}" title="${this.title}" name="${Do(t?void 0:this.name)}" value="${Do(t?void 0:this.value)}" href="${Do(t?this.href:void 0)}" target="${Do(t?this.target:void 0)}" download="${Do(t?this.download:void 0)}" rel="${Do(t&&this.target?"noreferrer noopener":void 0)}" role="${Do(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${Ze("flex flex-auto items-center pointer-events-none",i["icon-only"]&&"hidden",this.loading&&"invisible",i["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" class="${Ze(i["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${Ze("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",i["icon-only"]&&"hidden",i["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?Io`<sd-spinner class="${Ze("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};Po.styles=[$e,We.styles,Ft`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`],To([Le("a, button")],Po.prototype,"button",2),To([Ve({selector:"sd-icon"})],Po.prototype,"_iconsInDefaultSlot",2),To([Ge()],Po.prototype,"invalid",2),To([Re()],Po.prototype,"title",2),To([Re({reflect:!0})],Po.prototype,"variant",2),To([Re({type:Boolean,reflect:!0})],Po.prototype,"inverted",2),To([Re({reflect:!0})],Po.prototype,"size",2),To([Re({type:Boolean,reflect:!0})],Po.prototype,"disabled",2),To([Re({type:Boolean,reflect:!0})],Po.prototype,"loading",2),To([Re()],Po.prototype,"type",2),To([Re()],Po.prototype,"name",2),To([Re()],Po.prototype,"value",2),To([Re()],Po.prototype,"href",2),To([Re()],Po.prototype,"target",2),To([Re()],Po.prototype,"download",2),To([Re()],Po.prototype,"form",2),To([Re({attribute:"formaction"})],Po.prototype,"formAction",2),To([Re({attribute:"formenctype"})],Po.prototype,"formEnctype",2),To([Re({attribute:"formmethod"})],Po.prototype,"formMethod",2),To([Re({attribute:"formnovalidate",type:Boolean})],Po.prototype,"formNoValidate",2),To([Re({attribute:"formtarget"})],Po.prototype,"formTarget",2),To([bi("disabled",{waitUntilFirstUpdate:!0})],Po.prototype,"handleDisabledChange",1),Po=To([Qe("sd-button")],Po);const Fo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Po}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty,Object.getOwnPropertyDescriptor;let jo=class extends We{static isCarouselItem(t){return t instanceof Element&&"slide"===t.getAttribute("aria-roledescription")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return ye`<slot></slot>`}};jo.styles=[We.styles,$e,Ft`:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],jo=((t,e,i,o)=>{for(var r,s=e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(s)||s);return s})([Qe("sd-carousel-item")],jo);const Qo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jo}},Symbol.toStringTag,{value:"Module"}));class Yo{constructor(t,e){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},t.addController(this),this.host=t,this.tickCallback=e}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(t){this.stop(),this.stopped=!1,this.timerId=window.setInterval((()=>{this.paused||this.tickCallback()}),t)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}}const Uo=Object.freeze(Object.defineProperty({__proto__:null,AutoplayController:Yo},Symbol.toStringTag,{value:"Module"})),Ro=Symbol(),Go=t=>(e,i,o)=>{const r=o.value;o.value=function(...e){clearTimeout(this[Ro]),this[Ro]=window.setTimeout((()=>{r.apply(this,e)}),t)}};var Ho=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor;class qo{constructor(t){this.pointers=new Set,this.dragging=!1,this.scrolling=!1,this.mouseDragging=!1,this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate()),this.handleScrollEnd()},this.handlePointerDown=t=>{"touch"!==t.pointerType&&(this.pointers.add(t.pointerId),this.mouseDragging&&!this.dragging&&0===t.button&&(t.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove)))},this.handlePointerMove=t=>{const e=this.host.scrollContainer,i=!!t.movementX||!!t.movementY;!this.dragging&&i?(e.setPointerCapture(t.pointerId),this.handleDragStart()):e.hasPointerCapture(t.pointerId)&&this.handleDrag(t)},this.handlePointerUp=t=>{this.pointers.delete(t.pointerId),this.host.scrollContainer.releasePointerCapture(t.pointerId),0===this.pointers.size&&this.handleDragEnd()},this.handleTouchEnd=t=>{for(const e of t.changedTouches)this.pointers.delete(e.identifier)},this.handleTouchStart=t=>{for(const e of t.touches)this.pointers.add(e.identifier)},this.host=t,t.addController(this)}async hostConnected(){const t=this.host;await t.updateComplete;const e=t.scrollContainer;e.addEventListener("scroll",this.handleScroll,{passive:!0}),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){const t=this.host.scrollContainer;t.removeEventListener("scroll",this.handleScroll),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointerup",this.handlePointerUp),t.removeEventListener("pointercancel",this.handlePointerUp),t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd)}handleScrollEnd(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}handleDragStart(){const t=this.host;this.dragging=!0,t.scrollContainer.style.setProperty("scroll-snap-type","unset"),t.requestUpdate()}handleDrag(t){this.host.scrollContainer.scrollBy({left:-t.movementX,top:-t.movementY})}async handleDragEnd(){const t=this.host,e=t.scrollContainer;e.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;const i=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type");const r=e.scrollLeft,s=e.scrollTop;e.style.setProperty("scroll-snap-type","unset"),e.scrollTo({left:i,top:o,behavior:"auto"}),e.scrollTo({left:r,top:s,behavior:Si()?"auto":"smooth"}),this.scrolling&&await Ti(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),t.requestUpdate()}}((t,e,i,o)=>{for(var r,s=Lo(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(e,i,s)||s);s&&Ho(e,i,s)})([Go(100)],qo.prototype,"handleScrollEnd");const Vo=Object.freeze(Object.defineProperty({__proto__:null,ScrollController:qo},Symbol.toStringTag,{value:"Module"}));var $o=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,No=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&$o(e,i,s),s};let Ko=class extends We{constructor(){super(...arguments),this.variant="number",this.inverted=!1,this.loop=!1,this.autoplay=!1,this.slidesPerPage=1,this.slidesPerMove=1,this.activeSlide=0,this.currentPage=1,this.pausedAutoplay=!1,this.autoplayController=new Yo(this,(()=>this.next())),this.scrollController=new qo(this),this.slides=this.getElementsByTagName("sd-carousel-item"),this.intersectionObserverEntries=new Map,this.localize=new S(this),this.handleSlotChange=t=>{t.some((t=>[...t.addedNodes,...t.removedNodes].some((t=>jo.isCarouselItem(t)&&!t.hasAttribute("data-clone")))))&&this.initializeSlides(),this.requestUpdate()},this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));const t=new IntersectionObserver((t=>{t.forEach((t=>{this.intersectionObserverEntries.set(t.target,t);const e=t.target;e.toggleAttribute("inert",!t.isIntersecting),e.classList.toggle("--in-view",t.isIntersecting),e.setAttribute("aria-hidden",t.isIntersecting?"false":"true")}))}),{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach((t=>{this.intersectionObserverEntries.set(t.target,t)}))}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}static getPageCount(t,e,i){return Math.ceil((t-e)/i)+1>0?Math.ceil((t-e)/i)+1:1}static getCurrentPage(t,e,i,o){return Math.ceil((t-i)/o)-Math.ceil((t-i-e)/o)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter((e=>!t||!e.hasAttribute("data-clone")))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=t.target,i="rtl"===this.localize.dir(),o=null!==e.closest('[part~="pagination-item"]'),r="ArrowDown"===t.key||!i&&"ArrowRight"===t.key||i&&"ArrowLeft"===t.key,s="ArrowUp"===t.key||!i&&"ArrowLeft"===t.key||i&&"ArrowRight"===t.key;t.preventDefault(),s&&this.previous(),r&&this.next(),"Home"===t.key&&this.goToSlide(0),"End"===t.key&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then((()=>{var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector('[part~="pagination-item--active"]');e&&e.focus()}))}}handleScrollEnd(){const t=this.getSlides(),e=[...this.intersectionObserverEntries.values()].find((t=>t.isIntersecting));if(this.loop&&null!=e&&e.target.hasAttribute("data-clone")){const t=Number(e.target.getAttribute("data-clone"));this.goToSlide(t,"auto")}else e&&(this.activeSlide=t.indexOf(e.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),null==(t=this.autoplayControls)||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),null==(e=this.autoplayControls)||e.setAttribute("aria-pressed","true"))}initializeSlides(){const t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach(((i,o)=>{e.unobserve(i),i.classList.remove("--in-view"),i.classList.remove("--is-active"),i.setAttribute("aria-label",this.localize.term("slideNum",o+1,t.length)),i.hasAttribute("data-clone")&&i.remove()})),this.loop){const e=this.slidesPerPage,i=t.slice(-e),o=t.slice(0,e);i.reverse().forEach(((e,i)=>{const o=e.cloneNode(!0);o.setAttribute("data-clone",String(t.length-i-1)),this.prepend(o)})),o.forEach(((t,e)=>{const i=t.cloneNode(!0);i.setAttribute("data-clone",String(e)),this.append(i)}))}this.getSlides({excludeClones:!1}).forEach((t=>{e.observe(t)})),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){const t=this.getSlides();t.forEach(((t,e)=>{t.classList.toggle("--is-active",e===this.activeSlide)}));const e=Ko.getCurrentPage(t.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==e&&(this.currentPage=e),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}});const i=Ko.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>i&&requestAnimationFrame((()=>{this.nextTillFirst()}))}handleSlidesPerMoveChange(){const t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach(((t,i)=>{Math.abs(i-e)%e==0?t.style.removeProperty("scroll-snap-align"):t.style.setProperty("scroll-snap-align","none")}))}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(t="smooth"){let e=this.activeSlide||this.activeSlide-this.slidesPerMove,i=!1;for(;!i&&e>0;)e-=1,i=Math.abs(e-this.slidesPerMove)%this.slidesPerMove==0;this.currentPage-1==0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,t):this.goToSlide(e,t)}next(t="smooth"){this.currentPage+1<=Ko.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;0!==this.activeSlide;)this.goToSlide(this.activeSlide+1,t);this.currentPage=Ko.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){const{slidesPerPage:i,loop:o,scrollContainer:r}=this,s=this.getSlides(),a=this.getSlides({excludeClones:!1}),n=(t+s.length)%s.length;this.activeSlide=n;const l=function(t,e,i){return(t=>Object.is(t,-0)?0:t)(t<0?0:t>i?i:t)}
82
+ const Do=t=>t??Ae;var Oo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,To=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Oo(e,i,s),s};let Po=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");return e.getElementById(i)}return t.closest("form")}}),this.hasSlotController=new qi(this,"[default]","icon-left","icon-right"),this.invalid=!1,this.title="",this.variant="primary",this.inverted=!1,this.size="lg",this.disabled=!1,this.loading=!1,this.type="button",this.name="",this.value="",this.href=""}get validity(){return this.isButton()?this.button.validity:Ao}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?Eo`a`:Eo`button`,i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return Io`<${e} part="base" class="${Ze("font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline\n w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center\n border transition-colors duration-200 ease-in-out rounded-default\n select-none cursor-[inherit]",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",i["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?"text-primary bg-white border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:bg-neutral-600 disabled:text-white":"text-white bg-primary border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:bg-neutral-500",secondary:this.inverted?"text-white border-white\n hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100\n active:text-primary-200 active:bg-primary-800 active:border-primary-200\n disabled:text-neutral-600 disabled:border-neutral-600":"text-primary border-primary\n hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100\n active:text-primary-800 active:border-primary-800 active:bg-primary-200\n disabled:text-neutral-500 disabled:border-neutral-500",tertiary:this.inverted?"text-white border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:text-neutral-600":"text-primary border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:text-neutral-500",cta:`text-white bg-accent-500 border-transparent\n hover:bg-accent-550\n active:bg-accent-700\n ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${Do(t?void 0:this.disabled)}" type="${Do(t?void 0:this.type)}" title="${this.title}" name="${Do(t?void 0:this.name)}" value="${Do(t?void 0:this.value)}" href="${Do(t?this.href:void 0)}" target="${Do(t?this.target:void 0)}" download="${Do(t?this.download:void 0)}" rel="${Do(t&&this.target?"noreferrer noopener":void 0)}" role="${Do(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${Ze("flex flex-auto items-center pointer-events-none",i["icon-only"]&&"hidden",this.loading&&"invisible",i["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${Ze(i["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${Ze("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",i["icon-only"]&&"hidden",i["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?Io`<sd-spinner class="${Ze("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};Po.styles=[$e,We.styles,Ft`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`],To([Le("a, button")],Po.prototype,"button",2),To([Ve({selector:"sd-icon"})],Po.prototype,"_iconsInDefaultSlot",2),To([Ge()],Po.prototype,"invalid",2),To([Re()],Po.prototype,"title",2),To([Re({reflect:!0})],Po.prototype,"variant",2),To([Re({type:Boolean,reflect:!0})],Po.prototype,"inverted",2),To([Re({reflect:!0})],Po.prototype,"size",2),To([Re({type:Boolean,reflect:!0})],Po.prototype,"disabled",2),To([Re({type:Boolean,reflect:!0})],Po.prototype,"loading",2),To([Re()],Po.prototype,"type",2),To([Re()],Po.prototype,"name",2),To([Re()],Po.prototype,"value",2),To([Re()],Po.prototype,"href",2),To([Re()],Po.prototype,"target",2),To([Re()],Po.prototype,"download",2),To([Re()],Po.prototype,"form",2),To([Re({attribute:"formaction"})],Po.prototype,"formAction",2),To([Re({attribute:"formenctype"})],Po.prototype,"formEnctype",2),To([Re({attribute:"formmethod"})],Po.prototype,"formMethod",2),To([Re({attribute:"formnovalidate",type:Boolean})],Po.prototype,"formNoValidate",2),To([Re({attribute:"formtarget"})],Po.prototype,"formTarget",2),To([bi("disabled",{waitUntilFirstUpdate:!0})],Po.prototype,"handleDisabledChange",1),Po=To([Qe("sd-button")],Po);const Fo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Po}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty,Object.getOwnPropertyDescriptor;let jo=class extends We{static isCarouselItem(t){return t instanceof Element&&"slide"===t.getAttribute("aria-roledescription")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return ye`<slot></slot>`}};jo.styles=[We.styles,$e,Ft`:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],jo=((t,e,i,o)=>{for(var r,s=e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(s)||s);return s})([Qe("sd-carousel-item")],jo);const Qo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jo}},Symbol.toStringTag,{value:"Module"}));class Yo{constructor(t,e){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},t.addController(this),this.host=t,this.tickCallback=e}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(t){this.stop(),this.stopped=!1,this.timerId=window.setInterval((()=>{this.paused||this.tickCallback()}),t)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}}const Uo=Object.freeze(Object.defineProperty({__proto__:null,AutoplayController:Yo},Symbol.toStringTag,{value:"Module"})),Ro=Symbol(),Go=t=>(e,i,o)=>{const r=o.value;o.value=function(...e){clearTimeout(this[Ro]),this[Ro]=window.setTimeout((()=>{r.apply(this,e)}),t)}};var Ho=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor;class qo{constructor(t){this.pointers=new Set,this.dragging=!1,this.scrolling=!1,this.mouseDragging=!1,this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate()),this.handleScrollEnd()},this.handlePointerDown=t=>{"touch"!==t.pointerType&&(this.pointers.add(t.pointerId),this.mouseDragging&&!this.dragging&&0===t.button&&(t.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove)))},this.handlePointerMove=t=>{const e=this.host.scrollContainer,i=!!t.movementX||!!t.movementY;!this.dragging&&i?(e.setPointerCapture(t.pointerId),this.handleDragStart()):e.hasPointerCapture(t.pointerId)&&this.handleDrag(t)},this.handlePointerUp=t=>{this.pointers.delete(t.pointerId),this.host.scrollContainer.releasePointerCapture(t.pointerId),0===this.pointers.size&&this.handleDragEnd()},this.handleTouchEnd=t=>{for(const e of t.changedTouches)this.pointers.delete(e.identifier)},this.handleTouchStart=t=>{for(const e of t.touches)this.pointers.add(e.identifier)},this.host=t,t.addController(this)}async hostConnected(){const t=this.host;await t.updateComplete;const e=t.scrollContainer;e.addEventListener("scroll",this.handleScroll,{passive:!0}),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){const t=this.host.scrollContainer;t.removeEventListener("scroll",this.handleScroll),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointerup",this.handlePointerUp),t.removeEventListener("pointercancel",this.handlePointerUp),t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd)}handleScrollEnd(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}handleDragStart(){const t=this.host;this.dragging=!0,t.scrollContainer.style.setProperty("scroll-snap-type","unset"),t.requestUpdate()}handleDrag(t){this.host.scrollContainer.scrollBy({left:-t.movementX,top:-t.movementY})}async handleDragEnd(){const t=this.host,e=t.scrollContainer;e.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;const i=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type");const r=e.scrollLeft,s=e.scrollTop;e.style.setProperty("scroll-snap-type","unset"),e.scrollTo({left:i,top:o,behavior:"auto"}),e.scrollTo({left:r,top:s,behavior:Si()?"auto":"smooth"}),this.scrolling&&await Ti(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),t.requestUpdate()}}((t,e,i,o)=>{for(var r,s=Lo(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(e,i,s)||s);s&&Ho(e,i,s)})([Go(100)],qo.prototype,"handleScrollEnd");const Vo=Object.freeze(Object.defineProperty({__proto__:null,ScrollController:qo},Symbol.toStringTag,{value:"Module"}));var $o=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,No=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&$o(e,i,s),s};let Ko=class extends We{constructor(){super(...arguments),this.variant="number",this.inverted=!1,this.loop=!1,this.autoplay=!1,this.slidesPerPage=1,this.slidesPerMove=1,this.activeSlide=0,this.currentPage=1,this.pausedAutoplay=!1,this.autoplayController=new Yo(this,(()=>this.next())),this.scrollController=new qo(this),this.slides=this.getElementsByTagName("sd-carousel-item"),this.intersectionObserverEntries=new Map,this.localize=new S(this),this.handleSlotChange=t=>{t.some((t=>[...t.addedNodes,...t.removedNodes].some((t=>jo.isCarouselItem(t)&&!t.hasAttribute("data-clone")))))&&this.initializeSlides(),this.requestUpdate()},this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));const t=new IntersectionObserver((t=>{t.forEach((t=>{this.intersectionObserverEntries.set(t.target,t);const e=t.target;e.toggleAttribute("inert",!t.isIntersecting),e.classList.toggle("--in-view",t.isIntersecting),e.setAttribute("aria-hidden",t.isIntersecting?"false":"true")}))}),{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach((t=>{this.intersectionObserverEntries.set(t.target,t)}))}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}static getPageCount(t,e,i){return Math.ceil((t-e)/i)+1>0?Math.ceil((t-e)/i)+1:1}static getCurrentPage(t,e,i,o){return Math.ceil((t-i)/o)-Math.ceil((t-i-e)/o)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter((e=>!t||!e.hasAttribute("data-clone")))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=t.target,i="rtl"===this.localize.dir(),o=null!==e.closest('[part~="pagination-item"]'),r="ArrowDown"===t.key||!i&&"ArrowRight"===t.key||i&&"ArrowLeft"===t.key,s="ArrowUp"===t.key||!i&&"ArrowLeft"===t.key||i&&"ArrowRight"===t.key;t.preventDefault(),s&&this.previous(),r&&this.next(),"Home"===t.key&&this.goToSlide(0),"End"===t.key&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then((()=>{var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector('[part~="pagination-item--active"]');e&&e.focus()}))}}handleScrollEnd(){const t=this.getSlides(),e=[...this.intersectionObserverEntries.values()].find((t=>t.isIntersecting));if(this.loop&&null!=e&&e.target.hasAttribute("data-clone")){const t=Number(e.target.getAttribute("data-clone"));this.goToSlide(t,"auto")}else e&&(this.activeSlide=t.indexOf(e.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),null==(t=this.autoplayControls)||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),null==(e=this.autoplayControls)||e.setAttribute("aria-pressed","true"))}initializeSlides(){const t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach(((i,o)=>{e.unobserve(i),i.classList.remove("--in-view"),i.classList.remove("--is-active"),i.setAttribute("aria-label",this.localize.term("slideNum",o+1,t.length)),i.hasAttribute("data-clone")&&i.remove()})),this.loop){const e=this.slidesPerPage,i=t.slice(-e),o=t.slice(0,e);i.reverse().forEach(((e,i)=>{const o=e.cloneNode(!0);o.setAttribute("data-clone",String(t.length-i-1)),this.prepend(o)})),o.forEach(((t,e)=>{const i=t.cloneNode(!0);i.setAttribute("data-clone",String(e)),this.append(i)}))}this.getSlides({excludeClones:!1}).forEach((t=>{e.observe(t)})),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){const t=this.getSlides();t.forEach(((t,e)=>{t.classList.toggle("--is-active",e===this.activeSlide)}));const e=Ko.getCurrentPage(t.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==e&&(this.currentPage=e),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}});const i=Ko.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>i&&requestAnimationFrame((()=>{this.nextTillFirst()}))}handleSlidesPerMoveChange(){const t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach(((t,i)=>{Math.abs(i-e)%e==0?t.style.removeProperty("scroll-snap-align"):t.style.setProperty("scroll-snap-align","none")}))}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(t="smooth"){let e=this.activeSlide||this.activeSlide-this.slidesPerMove,i=!1;for(;!i&&e>0;)e-=1,i=Math.abs(e-this.slidesPerMove)%this.slidesPerMove==0;this.currentPage-1==0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,t):this.goToSlide(e,t)}next(t="smooth"){this.currentPage+1<=Ko.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;0!==this.activeSlide;)this.goToSlide(this.activeSlide+1,t);this.currentPage=Ko.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){const{slidesPerPage:i,loop:o,scrollContainer:r}=this,s=this.getSlides(),a=this.getSlides({excludeClones:!1}),n=(t+s.length)%s.length;this.activeSlide=n;const l=function(t,e,i){return(t=>Object.is(t,-0)?0:t)(t<0?0:t>i?i:t)}
83
83
  /**
84
84
  * @license
85
85
  * Copyright 2021 Google LLC
@@ -110,7 +110,7 @@ const Do=t=>t??Ae;var Oo=Object.defineProperty,zo=Object.getOwnPropertyDescripto
110
110
  removable-indicator:tag__removable-indicator,
111
111
  " size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=null!==e.closest(".select__clear"),o=null!==e.closest("sd-icon-button");if(!i&&!o){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),i=e.indexOf(this.currentOption);let o=Math.max(0,i);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(o=i+1,o>e.length-1&&(o=0)):"ArrowUp"===t.key?(o=i-1,o<0&&(o=e.length-1)):"Home"===t.key?o=0:"End"===t.key&&(o=e.length-1),this.setCurrentOption(e[o])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),i=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==i&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),i.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),i.length&&i.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return ye`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof i?ui(i):i}</div>`}return e===this.maxOptionsVisible?ye`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:ye``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Ei(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:t,options:e}=zi(this,"select.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.currentOption&&gr(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Ei(this);const{keyframes:t,options:e}=zi(this,"select.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,Ti(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,Ti(this,"sd-after-hide");this.open=!1}checkValidity(){var t;return null==(t=this.valueInput)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){this.hasSlotController.test("[default]");const t=this.hasSlotController.test("label"),e=(this.hasSlotController.test("clear-icon"),this.hasSlotController.test("expand-icon"),this.hasSlotController.test("help-text")),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.clearable&&!this.disabled&&this.value.length>0,s=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",a=this.disabled?"cursor-not-allowed":"cursor-pointer",n={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],l={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return ye`<div part="form-control" class="${Ze("relative text-left",a,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${i&&"inline-block"}" aria-hidden="${i?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ze("relative w-full bg-white","disabled"===s?"text-neutral-500":"text-black")}"><div part="border" class="${Ze("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[s],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${Ze("inline-flex relative w-full","bottom"===this.currentPlacement?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
112
112
  popup:popup__content,
113
- "><div part="combobox" class="${Ze("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${Ze("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?ye`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${Ze("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?ye`<button part="clear-button" class="${Ze("select__clear flex justify-center",n)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ze("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ze(n,l,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${Ze("flex-shrink-0 text-success",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${Ze("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",l)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${Ze("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};za.dependencies={"sd-icon":Ai,"sd-popup":ei,"sd-tag":Ba},za.styles=[$e,We.styles,Ft`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],Oa([Ve({selector:"sd-option"})],za.prototype,"_optionsInDefaultSlot",2),Oa([Le("sd-popup")],za.prototype,"popup",2),Oa([Le('[part="combobox"]')],za.prototype,"combobox",2),Oa([Le('[part="display-input"]')],za.prototype,"displayInput",2),Oa([Le(".value-input")],za.prototype,"valueInput",2),Oa([Le('[part="listbox"]')],za.prototype,"listbox",2),Oa([Le("#invalid-message")],za.prototype,"invalidMessage",2),Oa([Ge()],za.prototype,"hasHover",2),Oa([Ge()],za.prototype,"displayLabel",2),Oa([Ge()],za.prototype,"hasFocus",2),Oa([Ge()],za.prototype,"currentOption",2),Oa([Ge()],za.prototype,"selectedOptions",2),Oa([Ge()],za.prototype,"showValidStyle",2),Oa([Ge()],za.prototype,"showInvalidStyle",2),Oa([ir()],za.prototype,"defaultValue",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"open",2),Oa([Re({reflect:!0})],za.prototype,"size",2),Oa([Re({reflect:!0})],za.prototype,"placement",2),Oa([Re()],za.prototype,"label",2),Oa([Re()],za.prototype,"placeholder",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"disabled",2),Oa([Re({attribute:"help-text"})],za.prototype,"helpText",2),Oa([Ge()],za.prototype,"currentPlacement",2),Oa([Re({type:Boolean})],za.prototype,"clearable",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"multiple",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"useTags",2),Oa([Re({attribute:"max-options-visible",type:Number})],za.prototype,"maxOptionsVisible",2),Oa([Re({reflect:!0})],za.prototype,"form",2),Oa([Re()],za.prototype,"name",2),Oa([Re({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],za.prototype,"value",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"required",2),Oa([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],za.prototype,"styleOnValid",2),Oa([Re({type:Boolean})],za.prototype,"hoist",2),Oa([Re()],za.prototype,"getTag",2),Oa([bi("useTags",{waitUntilFirstUpdate:!0})],za.prototype,"handleUseTagsChange",1),Oa([bi("disabled",{waitUntilFirstUpdate:!0})],za.prototype,"handleDisabledChange",1),Oa([bi("open",{waitUntilFirstUpdate:!0})],za.prototype,"handleOpenChange",1),Oa([bi("size",{waitUntilFirstUpdate:!0})],za.prototype,"applySizeToOptions",1),Oa([bi("value",{waitUntilFirstUpdate:!0})],za.prototype,"handleValueChange",1),za=Oa([Qe("sd-select")],za),Oi("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Oi("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Ta=Object.freeze(Object.defineProperty({__proto__:null,get default(){return za}},Symbol.toStringTag,{value:"Module"}));var Pa=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,ja=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Fa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Pa(e,i,s),s};let Qa=class extends We{constructor(){super(...arguments),this.steps=[],this.size="lg",this.orientation="horizontal",this.activeStep=0,this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{let t;this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0,this.steps.forEach(((e,i)=>{e.index=i+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=i)})),this.setActiveStep(t||this.activeStep)}))}updateSize(){this.steps.forEach((t=>{t.size=this.size}))}updateOrientation(){this.steps.forEach((t=>{t.orientation=this.orientation}))}getAllSteps(){return[...this.body.assignedElements()].filter((t=>"sd-step"===t.tagName.toLowerCase()))}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach(((e,i)=>{i===t?e.current=!0:i>t?e.disabled=!0:e.current=!1})))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach((t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0}))}render(){return ye`<div part="base" role="${this.notInteractive?"group":"navigation"}" class="${Ze("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};Qa.styles=[We.styles,$e,Ft`:host{width:-moz-max-content;width:max-content}`],ja([Le("[part=body]")],Qa.prototype,"body",2),ja([Re({reflect:!0})],Qa.prototype,"size",2),ja([Re({reflect:!0})],Qa.prototype,"orientation",2),ja([Re({type:Number,reflect:!0,attribute:"active-step"})],Qa.prototype,"activeStep",2),ja([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Qa.prototype,"notInteractive",2),ja([bi("size",{waitUntilFirstUpdate:!0})],Qa.prototype,"updateSize",1),ja([bi("orientation",{waitUntilFirstUpdate:!0})],Qa.prototype,"updateOrientation",1),ja([bi("notInteractive")],Qa.prototype,"handleInteractivityChange",1),Qa=ja([Qe("sd-step-group")],Qa);const Ya=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Qa}},Symbol.toStringTag,{value:"Module"}));var Ua=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ga=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ra(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ua(e,i,s),s};let Ha=class extends We{constructor(){super(...arguments),this.size="lg",this.orientation="horizontal",this.disabled=!1,this.current=!1,this.noTail=!1,this.notInteractive=!1,this.label="",this.description="",this.index=1,this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){const t=this.isLink(),e=this.notInteractive?Eo`div`:t?Eo`a`:Eo`button`;return Io`<div part="base" class="${Ze("flex pt-1","horizontal"===this.orientation?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${Ze("flex shrink-0 gap-2",this.noTail&&"w-max","horizontal"===this.orientation?"flex-row":"flex-col items-stretch","horizontal"===this.orientation?"lg"===this.size?"translateLg":"translateSm":"lg"===this.size?"mt-1":"mt-3")}"><${e} part="circle" ?disabled="${this.disabled}" tabindex="${this.disabled||this.current?"-1":"0"}" href="${Do(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${Ze("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled||this.current?"focus-visible:outline-none":"focus-visible:focus-outline",this.notInteractive?"lg"===this.size?"w-[72px]":"w-12":"lg"===this.size?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-500",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive?"border-neutral-400":"group-hover:cursor-pointer",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${Ze(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary","lg"===this.size?"text-lg":"text-sm")}">${this.disabled||this.current||this.notInteractive?Io`${this.index}`:Io`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":Io`<div part="tail" class="${Ze("horizontal"===this.orientation?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",this.disabled||this.current||this.notInteractive?"border-neutral-400":" border-primary group-hover:border-primary-500")}"></div>`}</div><div part="text-container" class="${Ze("mt-4 mr-4 break-words flex flex-col gap-2","horizontal"===this.orientation?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-500")}"><div part="label" class="${Ze("!font-bold sd-paragraph",this.disabled&&"!text-neutral-500",this.disabled||this.current||this.notInteractive?"text-black":"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer")}"><slot name="label">${this.label}</slot></div><div part="description" class="${Ze("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||Io`<slot></slot>`}</div></div></div>`}};Ha.styles=[We.styles,$e,Pt(".sd-paragraph,.sd-prose p{font-size:var(--sd-font-size-base,1rem)}.sd-paragraph,.sd-paragraph--size-sm,.sd-prose p,.sd-prose p--size-sm{font-weight:400;line-height:var(--sd-line-height-normal,150%);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-font-size-sm,.875rem)}.sd-paragraph--inverted,.sd-prose--inverted p{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),Ft`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],Ga([Re({reflect:!0})],Ha.prototype,"size",2),Ga([Re({reflect:!0})],Ha.prototype,"orientation",2),Ga([Re({type:Boolean,reflect:!0})],Ha.prototype,"disabled",2),Ga([Re({type:Boolean,reflect:!0})],Ha.prototype,"current",2),Ga([Re({reflect:!0,type:Boolean,attribute:"no-tail"})],Ha.prototype,"noTail",2),Ga([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ha.prototype,"notInteractive",2),Ga([Re()],Ha.prototype,"label",2),Ga([Re()],Ha.prototype,"description",2),Ga([Re({type:Number,reflect:!0,attribute:"index"})],Ha.prototype,"index",2),Ga([Re()],Ha.prototype,"href",2),Ga([bi("current")],Ha.prototype,"handleCurrentChange",1),Ga([bi("disabled")],Ha.prototype,"handleDisabledChange",1),Ga([bi("notInteractive")],Ha.prototype,"handleInteractivityChange",1),Ha=Ga([Qe("sd-step")],Ha);const La=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ha}},Symbol.toStringTag,{value:"Module"}));var qa=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,$a=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Va(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&qa(e,i,s),s};let Za=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.showInvalidStyle=!1,this.title="",this.name="",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return ye`<label part="base" class="${Ze("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${Do(this.value)}" .checked="${sr(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${Ze("relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error bg-error hover:bg-error-400":this.checked?"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${Ze("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${Ze("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Za.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`],$a([Le("input")],Za.prototype,"input",2),$a([Le("#invalid-message")],Za.prototype,"invalidMessage",2),$a([Ge()],Za.prototype,"showInvalidStyle",2),$a([Re()],Za.prototype,"title",2),$a([Re()],Za.prototype,"name",2),$a([Re()],Za.prototype,"value",2),$a([Re({type:Boolean,reflect:!0})],Za.prototype,"disabled",2),$a([Re({type:Boolean,reflect:!0})],Za.prototype,"checked",2),$a([ir("checked")],Za.prototype,"defaultChecked",2),$a([Re({reflect:!0})],Za.prototype,"form",2),$a([Re({type:Boolean,reflect:!0})],Za.prototype,"required",2),$a([bi("disabled",{waitUntilFirstUpdate:!0})],Za.prototype,"handleDisabledChange",1),$a([bi(["checked"],{waitUntilFirstUpdate:!0})],Za.prototype,"handleStateChange",1),Za=$a([Qe("sd-switch")],Za);const Na=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Za}},Symbol.toStringTag,{value:"Module"}));var Ka=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Wa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ja(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ka(e,i,s),s};let _a=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.variant="default",this.activation="auto"}connectedCallback(){const t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.activeTab??this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sd-tab"===e.tagName.toLowerCase():"sd-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sd-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.matches(":focus")))}handleClick(t){const e=t.target.closest("sd-tab");(null==e?void 0:e.closest("sd-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sd-tab");if((null==e?void 0:e.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&gr(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&gr(this.tabs[t-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.tabs.find((t=>t.matches(":focus"))),i="rtl"===this.localize.dir();if("sd-tab"===(null==e?void 0:e.tagName.toLowerCase())){let o=this.tabs.indexOf(e);"Home"===t.key?o=0:"End"===t.key?o=this.tabs.length-1:t.key===(i?"ArrowRight":"ArrowLeft")||"ArrowUp"===t.key?o--:(t.key===(i?"ArrowLeft":"ArrowRight")||"ArrowDown"===t.key)&&o++,o<0&&(o=this.tabs.length-1),o>this.tabs.length-1&&(o=0),this.tabs[o].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[o],{scrollBehavior:"smooth"}),gr(this.tabs[o],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e={emitEvents:!0,scrollBehavior:"auto",...e},t!==this.activeTab&&!t.disabled){const i=this.activeTab;this.activeTab=t,this.tabs.map((t=>t.active=t===this.activeTab)),this.panels.map((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),gr(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sd-tab-hide",{detail:{name:i.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.updateComplete.then((()=>this.updateScrollControls())),0!==this.tabs.length&&"container"===this.tabs[0].variant&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return ye`<div part="base" class="${Ze("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${Ze(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?ye`<button part="scroll-button--start" exportparts="base:scroll-button__base" class="${Ze("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" class="${Ze("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${Ze("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?ye`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${Ze("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" class="${Ze("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${Ze("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};_a.styles=[We.styles,Pt(Zi),$e,Ft`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}`],Wa([Le("[part=base]")],_a.prototype,"tabGroup",2),Wa([Le("[part=body]")],_a.prototype,"body",2),Wa([Le("[part=scroll-container]")],_a.prototype,"nav",2),Wa([Ge()],_a.prototype,"hasScrollControls",2),Wa([Ge()],_a.prototype,"variant",2),Wa([Re()],_a.prototype,"activation",2),_a=Wa([Qe("sd-tab-group")],_a);const Xa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _a}},Symbol.toStringTag,{value:"Module"}));var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,on=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?en(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&tn(e,i,s),s};let rn=0,sn=class extends We{constructor(){super(...arguments),this.attrId=++rn,this.componentId=`sd-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return ye`<slot part="base" class="${Ze("block",this.active&&"tab-panel--active")}"></slot>`}};sn.styles=[We.styles,$e,Ft`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],on([Re({reflect:!0})],sn.prototype,"name",2),on([Re({type:Boolean,reflect:!0})],sn.prototype,"active",2),on([bi("active")],sn.prototype,"handleActiveChange",1),sn=on([Qe("sd-tab-panel")],sn);const an=Object.freeze(Object.defineProperty({__proto__:null,get default(){return sn}},Symbol.toStringTag,{value:"Module"}));var nn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,dn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ln(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&nn(e,i,s),s};let hn=0,cn=class extends We{constructor(){super(...arguments),this.attrId=++hn,this.componentId=`sd-tab-${this.attrId}`,this.variant="default",this.active=!1,this.disabled=!1,this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,ye`<div part="base" class="${Ze("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2","container"===this.variant&&" rounded-[4px_4px_0_0]","container"===this.variant&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${this.disabled?"-1":"0"}"><slot name="left" class="${Ze("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${Ze(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${Ze((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent","default"===this.variant?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${Ze(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};cn.styles=[We.styles,$e,Ft`:host{box-sizing:border-box;display:block}.tab--active-container-border::after{content:'';position:absolute;height:100%;width:100%;border-width:1px;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity));border-bottom:none;border-radius:4px 4px 0 0}`],dn([Le("[part=base]")],cn.prototype,"tab",2),dn([Re({type:String,reflect:!0})],cn.prototype,"variant",2),dn([Re({type:Boolean,reflect:!0})],cn.prototype,"active",2),dn([Re({type:Boolean,reflect:!0})],cn.prototype,"disabled",2),dn([Re({reflect:!0})],cn.prototype,"panel",2),dn([bi("active")],cn.prototype,"handleActiveChange",1),dn([bi("disabled")],cn.prototype,"handleDisabledChange",1),cn=dn([Qe("sd-tab")],cn);const pn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return cn}},Symbol.toStringTag,{value:"Module"}));var un=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,mn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?gn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&un(e,i,s),s};let bn=class extends We{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new qi(this,"[default]","media","meta","headline","expandable")}render(){const t={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return ye`<div class="relative flex flex-col group" part="base"><div class="${Ze("mb-4",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${Ze("flex-1","gradient-white"===this.variant&&"bg-gradient-to-t from-white/[.8] to-60%","gradient-dark"===this.variant&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${Ze({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-white":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${Ze("gap-2 mb-4",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div class="${Ze("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable"><slot name="expandable"></slot></div><div part="main" class="${Ze(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};bn.styles=[We.styles,Ft`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],mn([Re({reflect:!0})],bn.prototype,"variant",2),mn([Le('[part="base"]')],bn.prototype,"teaserMedia",2),bn=mn([Qe("sd-teaser-media")],bn);const vn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return bn}},Symbol.toStringTag,{value:"Module"}));var yn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,wn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?fn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&yn(e,i,s),s};let An=class extends We{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new qi(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){const t="white border-neutral-400"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),o=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),ye`<div class="${Ze("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&t&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${Ze(!t&&"vertical"===this._orientation&&"mb-4",!i&&"hidden","white border-neutral-400"===this.variant&&"vertical"===this._orientation&&"mx-[-1px] mt-[-1px]")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(t?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${Ze("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${Ze("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${Ze("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="main" class="${Ze(!e&&"hidden")}"><slot></slot></div></div></div>`}};An.styles=[We.styles,Ft`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],wn([Re({reflect:!0})],An.prototype,"variant",2),wn([Re({reflect:!0,type:Number})],An.prototype,"breakpoint",2),wn([Re({type:Boolean,reflect:!0})],An.prototype,"inset",2),wn([Le('[part="base"]')],An.prototype,"teaser",2),wn([Ge()],An.prototype,"_orientation",2),An=wn([Qe("sd-teaser")],An);const xn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return An}},Symbol.toStringTag,{value:"Module"}));var kn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,Sn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Cn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&kn(e,i,s),s};let En=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new qi(this,"help-text","label"),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.title="",this.name="",this.value="",this.size="lg",this.label="",this.helpText="",this.placeholder="",this.rows=4,this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.setTextareaHeight()}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.textarea.scrollTop=t.top),void("number"==typeof t.left&&(this.textarea.scrollLeft=t.left))):{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.textarea.setRangeText(t,e,i,o),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return null==(t=this.textarea)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",s="sm"===this.size?"text-sm":"text-base",a={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return ye`<div part="form-control" class="flex flex-col h-full text-left"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ze(i?"inline-block":"hidden",s)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ze("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${Ze("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[r])}"></div><div part="base" class="${Ze("textarea h-full px-4 flex items-top rounded-default group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===r?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${Ze("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",s)}" title="${this.title}" name="${Do(this.name)}" .value="${sr(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" rows="${Do(this.rows)}" autocapitalize="${Do(this.autocapitalize)}" autocorrect="${Do(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${Do(this.spellcheck)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?ye`<sd-icon class="${Ze("text-error absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon class="${Ze("text-success absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ze("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};En.styles=[$e,We.styles,Ft`:host{display:block;height:100%}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],Sn([Le("#input")],En.prototype,"textarea",2),Sn([Le("#invalid-message")],En.prototype,"invalidMessage",2),Sn([Ge()],En.prototype,"hasFocus",2),Sn([Ge()],En.prototype,"showValidStyle",2),Sn([Ge()],En.prototype,"showInvalidStyle",2),Sn([Re()],En.prototype,"title",2),Sn([Re()],En.prototype,"name",2),Sn([Re()],En.prototype,"value",2),Sn([Re({reflect:!0})],En.prototype,"size",2),Sn([Re()],En.prototype,"label",2),Sn([Re({attribute:"help-text"})],En.prototype,"helpText",2),Sn([Re()],En.prototype,"placeholder",2),Sn([Re({type:Number})],En.prototype,"rows",2),Sn([Re({type:Boolean,reflect:!0})],En.prototype,"disabled",2),Sn([Re({type:Boolean,reflect:!0})],En.prototype,"readonly",2),Sn([Re({reflect:!0})],En.prototype,"form",2),Sn([Re({type:Boolean,reflect:!0})],En.prototype,"required",2),Sn([Re({type:Number})],En.prototype,"minlength",2),Sn([Re({type:Number})],En.prototype,"maxlength",2),Sn([Re()],En.prototype,"autocapitalize",2),Sn([Re()],En.prototype,"autocorrect",2),Sn([Re()],En.prototype,"autocomplete",2),Sn([Re({type:Boolean})],En.prototype,"autofocus",2),Sn([Re()],En.prototype,"enterkeyhint",2),Sn([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],En.prototype,"styleOnValid",2),Sn([Re({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],En.prototype,"spellcheck",2),Sn([Re()],En.prototype,"inputmode",2),Sn([ir()],En.prototype,"defaultValue",2),Sn([bi("disabled",{waitUntilFirstUpdate:!0})],En.prototype,"handleDisabledChange",1),Sn([bi("rows",{waitUntilFirstUpdate:!0})],En.prototype,"handleRowsChange",1),Sn([bi("value",{waitUntilFirstUpdate:!0})],En.prototype,"handleValueChange",1),En=Sn([Qe("sd-textarea")],En);const Bn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return En}},Symbol.toStringTag,{value:"Module"}));var In=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Dn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Mn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&In(e,i,s),s};let On=class extends We{constructor(){super(...arguments),this.isFocusTriggered=!1,this.localize=new S(this),this.size="lg",this.content="",this.placement="top",this.disabled=!1,this.open=!1,this.trigger="click focus",this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then((()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}))}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered)return void(this.isFocusTriggered=!1);this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){const t=Ci(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=Ci(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await Ei(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(this,"tooltip.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Ei(this.body);const{keyframes:t,options:e}=zi(this,"tooltip.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Ti(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Ti(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return ye`<sd-popup part="base" exportparts="
113
+ "><div part="combobox" class="${Ze("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${Ze("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?ye`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${Ze("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?ye`<button part="clear-button" class="${Ze("select__clear flex justify-center",n)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ze("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ze(n,l,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${Ze("flex-shrink-0 text-success",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${Ze("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",l)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${Ze("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};za.dependencies={"sd-icon":Ai,"sd-popup":ei,"sd-tag":Ba},za.styles=[$e,We.styles,Ft`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],Oa([Ve({selector:"sd-option"})],za.prototype,"_optionsInDefaultSlot",2),Oa([Le("sd-popup")],za.prototype,"popup",2),Oa([Le('[part="combobox"]')],za.prototype,"combobox",2),Oa([Le('[part="display-input"]')],za.prototype,"displayInput",2),Oa([Le(".value-input")],za.prototype,"valueInput",2),Oa([Le('[part="listbox"]')],za.prototype,"listbox",2),Oa([Le("#invalid-message")],za.prototype,"invalidMessage",2),Oa([Ge()],za.prototype,"hasHover",2),Oa([Ge()],za.prototype,"displayLabel",2),Oa([Ge()],za.prototype,"hasFocus",2),Oa([Ge()],za.prototype,"currentOption",2),Oa([Ge()],za.prototype,"selectedOptions",2),Oa([Ge()],za.prototype,"showValidStyle",2),Oa([Ge()],za.prototype,"showInvalidStyle",2),Oa([ir()],za.prototype,"defaultValue",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"open",2),Oa([Re({reflect:!0})],za.prototype,"size",2),Oa([Re({reflect:!0})],za.prototype,"placement",2),Oa([Re()],za.prototype,"label",2),Oa([Re()],za.prototype,"placeholder",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"disabled",2),Oa([Re({attribute:"help-text"})],za.prototype,"helpText",2),Oa([Ge()],za.prototype,"currentPlacement",2),Oa([Re({type:Boolean})],za.prototype,"clearable",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"multiple",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"useTags",2),Oa([Re({attribute:"max-options-visible",type:Number})],za.prototype,"maxOptionsVisible",2),Oa([Re({reflect:!0})],za.prototype,"form",2),Oa([Re()],za.prototype,"name",2),Oa([Re({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],za.prototype,"value",2),Oa([Re({type:Boolean,reflect:!0})],za.prototype,"required",2),Oa([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],za.prototype,"styleOnValid",2),Oa([Re({type:Boolean})],za.prototype,"hoist",2),Oa([Re()],za.prototype,"getTag",2),Oa([bi("useTags",{waitUntilFirstUpdate:!0})],za.prototype,"handleUseTagsChange",1),Oa([bi("disabled",{waitUntilFirstUpdate:!0})],za.prototype,"handleDisabledChange",1),Oa([bi("open",{waitUntilFirstUpdate:!0})],za.prototype,"handleOpenChange",1),Oa([bi("size",{waitUntilFirstUpdate:!0})],za.prototype,"applySizeToOptions",1),Oa([bi("value",{waitUntilFirstUpdate:!0})],za.prototype,"handleValueChange",1),za=Oa([Qe("sd-select")],za),Oi("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Oi("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Ta=Object.freeze(Object.defineProperty({__proto__:null,get default(){return za}},Symbol.toStringTag,{value:"Module"}));var Pa=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,ja=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Fa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Pa(e,i,s),s};let Qa=class extends We{constructor(){super(...arguments),this.steps=[],this.size="lg",this.orientation="horizontal",this.activeStep=0,this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{let t;this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0,this.steps.forEach(((e,i)=>{e.index=i+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=i)})),this.setActiveStep(t||this.activeStep)}))}updateSize(){this.steps.forEach((t=>{t.size=this.size}))}updateOrientation(){this.steps.forEach((t=>{t.orientation=this.orientation}))}getAllSteps(){return[...this.body.assignedElements()].filter((t=>"sd-step"===t.tagName.toLowerCase()))}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach(((e,i)=>{i===t?e.current=!0:i>t?e.disabled=!0:e.current=!1})))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach((t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0}))}render(){return ye`<div part="base" role="${this.notInteractive?"group":"navigation"}" class="${Ze("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};Qa.styles=[We.styles,$e,Ft`:host{width:-moz-max-content;width:max-content}`],ja([Le("[part=body]")],Qa.prototype,"body",2),ja([Re({reflect:!0})],Qa.prototype,"size",2),ja([Re({reflect:!0})],Qa.prototype,"orientation",2),ja([Re({type:Number,reflect:!0,attribute:"active-step"})],Qa.prototype,"activeStep",2),ja([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Qa.prototype,"notInteractive",2),ja([bi("size",{waitUntilFirstUpdate:!0})],Qa.prototype,"updateSize",1),ja([bi("orientation",{waitUntilFirstUpdate:!0})],Qa.prototype,"updateOrientation",1),ja([bi("notInteractive")],Qa.prototype,"handleInteractivityChange",1),Qa=ja([Qe("sd-step-group")],Qa);const Ya=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Qa}},Symbol.toStringTag,{value:"Module"}));var Ua=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ga=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ra(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ua(e,i,s),s};let Ha=class extends We{constructor(){super(...arguments),this.size="lg",this.orientation="horizontal",this.disabled=!1,this.current=!1,this.noTail=!1,this.notInteractive=!1,this.label="",this.description="",this.index=1,this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){const t=this.isLink(),e=this.notInteractive?Eo`div`:t?Eo`a`:Eo`button`;return Io`<div part="base" class="${Ze("flex pt-1","horizontal"===this.orientation?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${Ze("flex shrink-0 gap-2",this.noTail&&"w-max","horizontal"===this.orientation?"flex-row":"flex-col items-stretch","horizontal"===this.orientation?"lg"===this.size?"translateLg":"translateSm":"lg"===this.size?"mt-1":"mt-3")}"><${e} part="circle" ?disabled="${this.disabled}" tabindex="${this.disabled||this.current?"-1":"0"}" href="${Do(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${Ze("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled||this.current?"focus-visible:outline-none":"focus-visible:focus-outline",this.notInteractive?"lg"===this.size?"w-[72px]":"w-12":"lg"===this.size?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-500",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive?"border-neutral-400":"group-hover:cursor-pointer",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${Ze(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary","lg"===this.size?"text-lg":"text-sm")}">${this.disabled||this.current||this.notInteractive?Io`${this.index}`:Io`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":Io`<div part="tail" class="${Ze("horizontal"===this.orientation?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",this.disabled||this.current||this.notInteractive?"border-neutral-400":" border-primary group-hover:border-primary-500")}"></div>`}</div><div part="text-container" class="${Ze("mt-4 mr-4 break-words flex flex-col gap-2","horizontal"===this.orientation?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-500")}"><div part="label" class="${Ze("!font-bold sd-paragraph",this.disabled&&"!text-neutral-500",this.disabled||this.current||this.notInteractive?"text-black":"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer")}"><slot name="label">${this.label}</slot></div><div part="description" class="${Ze("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||Io`<slot></slot>`}</div></div></div>`}};Ha.styles=[We.styles,$e,Pt(".sd-paragraph,.sd-prose p{font-size:var(--sd-font-size-base,1rem)}.sd-paragraph,.sd-paragraph--size-sm,.sd-prose p,.sd-prose p--size-sm{font-weight:400;line-height:var(--sd-line-height-normal,150%);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-font-size-sm,.875rem)}.sd-paragraph--inverted,.sd-prose--inverted p{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),Ft`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],Ga([Re({reflect:!0})],Ha.prototype,"size",2),Ga([Re({reflect:!0})],Ha.prototype,"orientation",2),Ga([Re({type:Boolean,reflect:!0})],Ha.prototype,"disabled",2),Ga([Re({type:Boolean,reflect:!0})],Ha.prototype,"current",2),Ga([Re({reflect:!0,type:Boolean,attribute:"no-tail"})],Ha.prototype,"noTail",2),Ga([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ha.prototype,"notInteractive",2),Ga([Re()],Ha.prototype,"label",2),Ga([Re()],Ha.prototype,"description",2),Ga([Re({type:Number,reflect:!0,attribute:"index"})],Ha.prototype,"index",2),Ga([Re()],Ha.prototype,"href",2),Ga([bi("current")],Ha.prototype,"handleCurrentChange",1),Ga([bi("disabled")],Ha.prototype,"handleDisabledChange",1),Ga([bi("notInteractive")],Ha.prototype,"handleInteractivityChange",1),Ha=Ga([Qe("sd-step")],Ha);const La=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ha}},Symbol.toStringTag,{value:"Module"}));var qa=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,$a=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Va(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&qa(e,i,s),s};let Za=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.showInvalidStyle=!1,this.title="",this.name="",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return ye`<label part="base" class="${Ze("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${Do(this.value)}" .checked="${sr(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${Ze("relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error bg-error hover:bg-error-400":this.checked?"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${Ze("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${Ze("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Za.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`],$a([Le("input")],Za.prototype,"input",2),$a([Le("#invalid-message")],Za.prototype,"invalidMessage",2),$a([Ge()],Za.prototype,"showInvalidStyle",2),$a([Re()],Za.prototype,"title",2),$a([Re()],Za.prototype,"name",2),$a([Re()],Za.prototype,"value",2),$a([Re({type:Boolean,reflect:!0})],Za.prototype,"disabled",2),$a([Re({type:Boolean,reflect:!0})],Za.prototype,"checked",2),$a([ir("checked")],Za.prototype,"defaultChecked",2),$a([Re({reflect:!0})],Za.prototype,"form",2),$a([Re({type:Boolean,reflect:!0})],Za.prototype,"required",2),$a([bi("disabled",{waitUntilFirstUpdate:!0})],Za.prototype,"handleDisabledChange",1),$a([bi(["checked"],{waitUntilFirstUpdate:!0})],Za.prototype,"handleStateChange",1),Za=$a([Qe("sd-switch")],Za);const Na=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Za}},Symbol.toStringTag,{value:"Module"}));var Ka=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Wa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ja(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ka(e,i,s),s};let _a=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.variant="default",this.activation="auto"}connectedCallback(){const t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.activeTab??this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sd-tab"===e.tagName.toLowerCase():"sd-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sd-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.matches(":focus")))}handleClick(t){const e=t.target.closest("sd-tab");(null==e?void 0:e.closest("sd-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sd-tab");if((null==e?void 0:e.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&gr(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&gr(this.tabs[t-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.tabs.find((t=>t.matches(":focus"))),i="rtl"===this.localize.dir();if("sd-tab"===(null==e?void 0:e.tagName.toLowerCase())){let o=this.tabs.indexOf(e);"Home"===t.key?o=0:"End"===t.key?o=this.tabs.length-1:t.key===(i?"ArrowRight":"ArrowLeft")||"ArrowUp"===t.key?o--:(t.key===(i?"ArrowLeft":"ArrowRight")||"ArrowDown"===t.key)&&o++,o<0&&(o=this.tabs.length-1),o>this.tabs.length-1&&(o=0),this.tabs[o].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[o],{scrollBehavior:"smooth"}),gr(this.tabs[o],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e={emitEvents:!0,scrollBehavior:"auto",...e},t!==this.activeTab&&!t.disabled){const i=this.activeTab;this.activeTab=t,this.tabs.map((t=>t.active=t===this.activeTab)),this.panels.map((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),gr(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sd-tab-hide",{detail:{name:i.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.updateComplete.then((()=>this.updateScrollControls())),0!==this.tabs.length&&"container"===this.tabs[0].variant&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return ye`<div part="base" class="${Ze("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${Ze(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?ye`<button part="scroll-button--start" exportparts="base:scroll-button__base" class="${Ze("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" class="${Ze("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${Ze("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?ye`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${Ze("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" class="${Ze("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${Ze("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};_a.styles=[We.styles,Pt(Zi),$e,Ft`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}`],Wa([Le("[part=base]")],_a.prototype,"tabGroup",2),Wa([Le("[part=body]")],_a.prototype,"body",2),Wa([Le("[part=scroll-container]")],_a.prototype,"nav",2),Wa([Ge()],_a.prototype,"hasScrollControls",2),Wa([Ge()],_a.prototype,"variant",2),Wa([Re()],_a.prototype,"activation",2),_a=Wa([Qe("sd-tab-group")],_a);const Xa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _a}},Symbol.toStringTag,{value:"Module"}));var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,on=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?en(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&tn(e,i,s),s};let rn=0,sn=class extends We{constructor(){super(...arguments),this.attrId=++rn,this.componentId=`sd-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return ye`<slot part="base" class="${Ze("block",this.active&&"tab-panel--active")}"></slot>`}};sn.styles=[We.styles,$e,Ft`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],on([Re({reflect:!0})],sn.prototype,"name",2),on([Re({type:Boolean,reflect:!0})],sn.prototype,"active",2),on([bi("active")],sn.prototype,"handleActiveChange",1),sn=on([Qe("sd-tab-panel")],sn);const an=Object.freeze(Object.defineProperty({__proto__:null,get default(){return sn}},Symbol.toStringTag,{value:"Module"}));var nn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,dn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ln(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&nn(e,i,s),s};let hn=0,cn=class extends We{constructor(){super(...arguments),this.attrId=++hn,this.componentId=`sd-tab-${this.attrId}`,this.variant="default",this.active=!1,this.disabled=!1,this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,ye`<div part="base" class="${Ze("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2","container"===this.variant&&" rounded-[4px_4px_0_0]","container"===this.variant&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${this.disabled?"-1":"0"}"><slot name="left" class="${Ze("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${Ze(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${Ze((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent","default"===this.variant?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${Ze(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};cn.styles=[We.styles,$e,Ft`:host{box-sizing:border-box;display:block}.tab--active-container-border::after{content:'';position:absolute;height:100%;width:100%;border-width:1px;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity));border-bottom:none;border-radius:4px 4px 0 0}`],dn([Le("[part=base]")],cn.prototype,"tab",2),dn([Re({type:String,reflect:!0})],cn.prototype,"variant",2),dn([Re({type:Boolean,reflect:!0})],cn.prototype,"active",2),dn([Re({type:Boolean,reflect:!0})],cn.prototype,"disabled",2),dn([Re({reflect:!0})],cn.prototype,"panel",2),dn([bi("active")],cn.prototype,"handleActiveChange",1),dn([bi("disabled")],cn.prototype,"handleDisabledChange",1),cn=dn([Qe("sd-tab")],cn);const pn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return cn}},Symbol.toStringTag,{value:"Module"}));var un=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,mn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?gn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&un(e,i,s),s};let bn=class extends We{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new qi(this,"[default]","media","meta","headline","expandable")}render(){const t={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return ye`<div class="relative flex flex-col group" part="base"><div class="${Ze("mb-4",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${Ze("flex-1","gradient-white"===this.variant&&"bg-gradient-to-t from-white/[.8] to-60%","gradient-dark"===this.variant&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${Ze({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-white":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${Ze("gap-2 mb-4",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div class="${Ze("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div><div part="main" class="${Ze(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};bn.styles=[We.styles,Ft`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],mn([Re({reflect:!0})],bn.prototype,"variant",2),mn([Le('[part="base"]')],bn.prototype,"teaserMedia",2),bn=mn([Qe("sd-teaser-media")],bn);const vn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return bn}},Symbol.toStringTag,{value:"Module"}));var yn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,wn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?fn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&yn(e,i,s),s};let An=class extends We{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new qi(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){const t="white border-neutral-400"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),o=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),ye`<div class="${Ze("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&t&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${Ze(!t&&"vertical"===this._orientation&&"mb-4",!i&&"hidden","white border-neutral-400"===this.variant&&"vertical"===this._orientation&&"mx-[-1px] mt-[-1px]")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(t?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${Ze("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${Ze("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${Ze("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="main" class="${Ze(!e&&"hidden")}"><slot></slot></div></div></div>`}};An.styles=[We.styles,Ft`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],wn([Re({reflect:!0})],An.prototype,"variant",2),wn([Re({reflect:!0,type:Number})],An.prototype,"breakpoint",2),wn([Re({type:Boolean,reflect:!0})],An.prototype,"inset",2),wn([Le('[part="base"]')],An.prototype,"teaser",2),wn([Ge()],An.prototype,"_orientation",2),An=wn([Qe("sd-teaser")],An);const xn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return An}},Symbol.toStringTag,{value:"Module"}));var kn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,Sn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Cn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&kn(e,i,s),s};let En=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new qi(this,"help-text","label"),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.title="",this.name="",this.value="",this.size="lg",this.label="",this.helpText="",this.placeholder="",this.rows=4,this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.setTextareaHeight()}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.textarea.scrollTop=t.top),void("number"==typeof t.left&&(this.textarea.scrollLeft=t.left))):{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.textarea.setRangeText(t,e,i,o),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return null==(t=this.textarea)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",s="sm"===this.size?"text-sm":"text-base",a={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return ye`<div part="form-control" class="flex flex-col h-full text-left"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ze(i?"inline-block":"hidden",s)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ze("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${Ze("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[r])}"></div><div part="base" class="${Ze("textarea h-full px-4 flex items-top rounded-default group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===r?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${Ze("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",s)}" title="${this.title}" name="${Do(this.name)}" .value="${sr(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" rows="${Do(this.rows)}" autocapitalize="${Do(this.autocapitalize)}" autocorrect="${Do(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${Do(this.spellcheck)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?ye`<sd-icon class="${Ze("text-error absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon class="${Ze("text-success absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ze("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};En.styles=[$e,We.styles,Ft`:host{display:block;height:100%}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],Sn([Le("#input")],En.prototype,"textarea",2),Sn([Le("#invalid-message")],En.prototype,"invalidMessage",2),Sn([Ge()],En.prototype,"hasFocus",2),Sn([Ge()],En.prototype,"showValidStyle",2),Sn([Ge()],En.prototype,"showInvalidStyle",2),Sn([Re()],En.prototype,"title",2),Sn([Re()],En.prototype,"name",2),Sn([Re()],En.prototype,"value",2),Sn([Re({reflect:!0})],En.prototype,"size",2),Sn([Re()],En.prototype,"label",2),Sn([Re({attribute:"help-text"})],En.prototype,"helpText",2),Sn([Re()],En.prototype,"placeholder",2),Sn([Re({type:Number})],En.prototype,"rows",2),Sn([Re({type:Boolean,reflect:!0})],En.prototype,"disabled",2),Sn([Re({type:Boolean,reflect:!0})],En.prototype,"readonly",2),Sn([Re({reflect:!0})],En.prototype,"form",2),Sn([Re({type:Boolean,reflect:!0})],En.prototype,"required",2),Sn([Re({type:Number})],En.prototype,"minlength",2),Sn([Re({type:Number})],En.prototype,"maxlength",2),Sn([Re()],En.prototype,"autocapitalize",2),Sn([Re()],En.prototype,"autocorrect",2),Sn([Re()],En.prototype,"autocomplete",2),Sn([Re({type:Boolean})],En.prototype,"autofocus",2),Sn([Re()],En.prototype,"enterkeyhint",2),Sn([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],En.prototype,"styleOnValid",2),Sn([Re({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],En.prototype,"spellcheck",2),Sn([Re()],En.prototype,"inputmode",2),Sn([ir()],En.prototype,"defaultValue",2),Sn([bi("disabled",{waitUntilFirstUpdate:!0})],En.prototype,"handleDisabledChange",1),Sn([bi("rows",{waitUntilFirstUpdate:!0})],En.prototype,"handleRowsChange",1),Sn([bi("value",{waitUntilFirstUpdate:!0})],En.prototype,"handleValueChange",1),En=Sn([Qe("sd-textarea")],En);const Bn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return En}},Symbol.toStringTag,{value:"Module"}));var In=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Dn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Mn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&In(e,i,s),s};let On=class extends We{constructor(){super(...arguments),this.isFocusTriggered=!1,this.localize=new S(this),this.size="lg",this.content="",this.placement="top",this.disabled=!1,this.open=!1,this.trigger="click focus",this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then((()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}))}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered)return void(this.isFocusTriggered=!1);this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){const t=Ci(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=Ci(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await Ei(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(this,"tooltip.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Ei(this.body);const{keyframes:t,options:e}=zi(this,"tooltip.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Ti(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Ti(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return ye`<sd-popup part="base" exportparts="
114
114
  popup:base__popup,
115
115
  arrow:base__arrow
116
116
  " class="${Ze(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*("sm"===this.size?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${Ze("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${Ze(this.disabled&&"sd-interactive--disabled")}"></sd-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-popup>`}};On.styles=[We.styles,Pt(Zi),Ft`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-popup{--arrow-color:rgb(var(--sd-color-primary, 0 53 142) / 1);--arrow-size:10px}sd-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup::part(arrow){--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup[placement^=top]::part(popup){transform-origin:bottom}sd-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],Dn([Le("slot:not([name])")],On.prototype,"defaultSlot",2),Dn([Le("#tooltip")],On.prototype,"body",2),Dn([Le("sd-popup")],On.prototype,"popup",2),Dn([Re()],On.prototype,"size",2),Dn([Re()],On.prototype,"content",2),Dn([Re({reflect:!0})],On.prototype,"placement",2),Dn([Re({type:Boolean,reflect:!0})],On.prototype,"disabled",2),Dn([Re({type:Boolean,reflect:!0})],On.prototype,"open",2),Dn([Re()],On.prototype,"trigger",2),Dn([Re({type:Boolean})],On.prototype,"hoist",2),Dn([bi("open",{waitUntilFirstUpdate:!0})],On.prototype,"handleOpenChange",1),Dn([bi(["content","hoist","placement"])],On.prototype,"handleOptionsChange",1),Dn([bi("disabled")],On.prototype,"handleDisabledChange",1),On=Dn([Qe("sd-tooltip")],On),Oi("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Oi("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const zn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return On}},Symbol.toStringTag,{value:"Module"}));var Tn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Fn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Pn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Tn(e,i,s),s};let jn=class extends We{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new qi(this,"[default]","play-icon","poster")}get poster(){const t=this.shadowRoot.querySelector("slot[name=poster]");return(null==t?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}play(){this.emit("sd-play"),this.playing=!0,this.fadeoutPoster()}handleKeydown(t){t instanceof KeyboardEvent&&("Enter"===t.key||" "===t.key)&&(this.play(),setTimeout((()=>{var t;null==(t=this.querySelector("video"))||t.focus()})))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.handleButtonResize())),this.updateComplete.then((()=>{this.resizeObserver.observe(this.hostEl)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return ye`<div part="base" aria-label="Video Player" class="cursor-pointer"><button part="play-button" aria-label="Play video" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${Ze(this.playing&&"pointer-events-none","w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${Ze(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition")}"><slot name="play-icon" part="play-icon" class="${Ze(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="system" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?ye`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${Ze(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[rgba(0,0,0,0.65)] w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};jn.styles=[We.styles,Ft`:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){transition-property:opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}::slotted([slot=poster]){position:absolute;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);z-index:10;width:100%}#default-play-icon,::slotted([slot=play-icon]){position:absolute;left:50%;top:50%;--tw-translate-x:-50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}`],Fn([Le("[part=base]")],jn.prototype,"hostEl",2),Fn([Re({type:Boolean,reflect:!0})],jn.prototype,"playing",2),Fn([Re({type:Boolean,reflect:!0})],jn.prototype,"overlay",2),Fn([Re({type:Boolean})],jn.prototype,"isBelowBreakpoint",2),jn=Fn([Qe("sd-video")],jn);const Qn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jn}},Symbol.toStringTag,{value:"Module"}));t.LocalizeController=S,t.registerIconLibrary=u,t.setupAutocomplete=function(t,{setValueOnSelection:e,scrollSelectionIntoView:i}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){const o=t?"string"==typeof t?document.querySelector(t):t:document.querySelector("#autoComplete"),r=o.shadowRoot.querySelector("input"),s=t=>t[0];return r.addEventListener("init",(()=>{var t,e;const i=null==(t=o.shadowRoot)?void 0:t.querySelector("ul");null==i||i.setAttribute("part","listbox");const r=document.createElement("sd-popup");r.appendChild(i),null==(e=o.shadowRoot)||e.appendChild(r),null==r||r.setAttribute("exportparts","popup__content"),r&&(r.active=!1,r.autoSize="vertical",r.autoSizePadding=16,r.placement="bottom-start",r.anchor=o,r.sync="width");const a=s`sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-width:2px;border-top-width:0;--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255) / var(--tw-bg-opacity));padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-3,.75rem);padding-bottom:var(--sd-spacing-3,.75rem);--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup li{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}sd-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246) / var(--tw-bg-opacity))}sd-popup li{list-style-type:''}sd-popup li mark{background-color:transparent;font-weight:700}sd-popup li:not(:has(sd-option)){cursor:pointer;padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-3,.75rem);padding-bottom:var(--sd-spacing-3,.75rem);font-size:var(--sd-font-size-base,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24) / var(--tw-text-opacity))}sd-popup li:not(:has(sd-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233) / var(--tw-bg-opacity))}sd-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233) / var(--tw-bg-opacity))}`,n=new CSSStyleSheet;n.replaceSync(a),o.shadowRoot.adoptedStyleSheets=[...o.shadowRoot.adoptedStyleSheets,n]})),e&&r.addEventListener("selection",(t=>{var e;o.value=null==(e=null==t?void 0:t.detail)?void 0:e.selection.value})),r.addEventListener("open",(()=>{var t,e,i,r,s,a;null==(e=null==(t=o.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.setAttribute("active","true"),null==(r=null==(i=o.shadowRoot)?void 0:i.querySelector('[part="border"]'))||r.classList.add("rounded-b-none"),null==(a=null==(s=o.shadowRoot)?void 0:s.querySelector('[part="form-control"]'))||a.classList.add("z-50")})),r.addEventListener("close",(()=>{var t,e,i,r,s,a;null==(e=null==(t=o.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.removeAttribute("active"),null==(r=null==(i=o.shadowRoot)?void 0:i.querySelector('[part="border"]'))||r.classList.remove("rounded-b-none"),null==(a=null==(s=o.shadowRoot)?void 0:s.querySelector('[part="form-control"]'))||a.classList.remove("z-50")})),i&&r.addEventListener("navigate",(()=>{const t=o.shadowRoot.querySelector('[aria-selected="true"]');null==t||t.scrollIntoView({block:"nearest"})})),{config:{selector:()=>r,resultsList:{tag:"ul"},wrapper:!1}}},t.unregisterIconLibrary=g,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})},"object"==typeof exports&&typeof module<"u"?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=typeof globalThis<"u"?globalThis:t||self)["Solid Components"]={});