@solid-design-system/components 4.4.2 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{cdn-versioned/chunks/chunk.JDSUZDP4.js → cdn/chunks/chunk.V2NDECMV.js} +1 -1
- package/cdn/chunks/chunk.YBNWPLWL.js +1 -0
- package/cdn/components/map-marker/map-marker.d.ts +1 -0
- package/cdn/components/map-marker/map-marker.js +1 -1
- package/cdn/components/teaser/teaser.js +1 -1
- package/cdn/custom-elements.json +20 -1
- package/cdn/solid-components.bundle.js +5 -5
- package/cdn/solid-components.iife.js +4 -4
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +5 -0
- package/cdn/web-types.json +11 -1
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.247MZWMU.js +1 -1
- package/cdn-versioned/chunks/chunk.2BLQ3VDT.js +4 -4
- package/cdn-versioned/chunks/chunk.2HJF2D4H.js +2 -2
- package/cdn-versioned/chunks/chunk.43NFQGWL.js +1 -1
- package/cdn-versioned/chunks/chunk.5AILWWY2.js +1 -1
- package/cdn-versioned/chunks/chunk.5TTHL3M2.js +3 -3
- package/cdn-versioned/chunks/chunk.5YWPH3S7.js +2 -2
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.7TRFUW6U.js +1 -1
- package/cdn-versioned/chunks/chunk.BHWV44KN.js +1 -1
- package/cdn-versioned/chunks/chunk.BWMHPT4Y.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CNGIUOE5.js +1 -1
- package/cdn-versioned/chunks/chunk.DDLTKNEO.js +1 -1
- package/cdn-versioned/chunks/chunk.DLY5AX2P.js +1 -1
- package/cdn-versioned/chunks/chunk.E5FCRWHS.js +1 -1
- package/cdn-versioned/chunks/chunk.F45IDVYA.js +1 -1
- package/cdn-versioned/chunks/chunk.FHU3KJ7Y.js +1 -1
- package/cdn-versioned/chunks/chunk.FVXID42E.js +1 -1
- package/cdn-versioned/chunks/chunk.HT2MRC4Z.js +1 -1
- package/cdn-versioned/chunks/chunk.I2WEQVU3.js +1 -1
- package/cdn-versioned/chunks/chunk.IUC5UQ2V.js +1 -1
- package/cdn-versioned/chunks/chunk.JCNKLGIS.js +1 -1
- package/cdn-versioned/chunks/chunk.KLNBBP4R.js +4 -4
- package/cdn-versioned/chunks/chunk.KV424MMD.js +1 -1
- package/cdn-versioned/chunks/chunk.KWNRVZ54.js +1 -1
- package/cdn-versioned/chunks/chunk.LET4FMBB.js +1 -1
- package/cdn-versioned/chunks/chunk.LKO4ZRE7.js +1 -1
- package/cdn-versioned/chunks/chunk.NFQN6UG4.js +1 -1
- package/cdn-versioned/chunks/chunk.NOJV6ZZF.js +1 -1
- package/cdn-versioned/chunks/chunk.NQXQB7LN.js +1 -1
- package/cdn-versioned/chunks/chunk.NW6W2FSS.js +1 -1
- package/cdn-versioned/chunks/chunk.NZT4ORYP.js +1 -1
- package/cdn-versioned/chunks/chunk.O3IRROA2.js +1 -1
- package/cdn-versioned/chunks/chunk.ONLECFTO.js +1 -1
- package/cdn-versioned/chunks/chunk.PDIUABFP.js +1 -1
- package/cdn-versioned/chunks/chunk.PGBIGG5I.js +1 -1
- package/cdn-versioned/chunks/chunk.QWMQJ6TF.js +1 -1
- package/cdn-versioned/chunks/chunk.RCLIOOS5.js +1 -1
- package/cdn-versioned/chunks/chunk.RGJXEMYT.js +1 -1
- package/cdn-versioned/chunks/chunk.SDZ6E4CH.js +1 -1
- package/{cdn/chunks/chunk.JDSUZDP4.js → cdn-versioned/chunks/chunk.V2NDECMV.js} +1 -1
- package/cdn-versioned/chunks/chunk.V3YHI2G2.js +1 -1
- package/cdn-versioned/chunks/chunk.VZSFEHBE.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WJ55QSS3.js +1 -1
- package/cdn-versioned/chunks/chunk.WMV7GLXF.js +1 -1
- package/cdn-versioned/chunks/chunk.WUTY672B.js +1 -1
- package/cdn-versioned/chunks/chunk.XYZ5DKTA.js +1 -1
- package/cdn-versioned/chunks/chunk.Y4PTSCEB.js +1 -1
- package/cdn-versioned/chunks/chunk.YBNWPLWL.js +1 -0
- package/cdn-versioned/chunks/chunk.ZN24IDXT.js +1 -1
- package/cdn-versioned/chunks/chunk.ZVVSLR3B.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +2 -1
- package/cdn-versioned/components/map-marker/map-marker.js +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +4 -4
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/teaser/teaser.js +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +221 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +17 -17
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +85 -80
- package/cdn-versioned/web-types.json +147 -137
- package/dist/chunks/{chunk.WJHCLJNK.js → chunk.5W3UXUG2.js} +1 -1
- package/dist/chunks/{chunk.Z3T4BG2M.js → chunk.QUK3F6GK.js} +5 -1
- package/dist/components/map-marker/map-marker.d.ts +1 -0
- package/dist/components/map-marker/map-marker.js +1 -1
- package/dist/components/teaser/teaser.js +1 -1
- package/dist/custom-elements.json +20 -1
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +5 -0
- package/dist/web-types.json +11 -1
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.3UO2LKG5.js +13 -13
- package/dist-versioned/chunks/chunk.3YTMF6YZ.js +2 -2
- package/dist-versioned/chunks/chunk.5AX4S2QZ.js +2 -2
- package/dist-versioned/chunks/chunk.5V7TZU4Q.js +5 -5
- package/dist-versioned/chunks/{chunk.WJHCLJNK.js → chunk.5W3UXUG2.js} +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6MMBMCHF.js +9 -9
- package/dist-versioned/chunks/chunk.6S3CCHLZ.js +1 -1
- package/dist-versioned/chunks/chunk.73HAOWEX.js +2 -2
- package/dist-versioned/chunks/chunk.7SZFMAVT.js +1 -1
- package/dist-versioned/chunks/chunk.AWASHA2T.js +1 -1
- package/dist-versioned/chunks/chunk.BFHRLREK.js +1 -1
- package/dist-versioned/chunks/chunk.CVHGDRIM.js +2 -2
- package/dist-versioned/chunks/chunk.DI4CIT2A.js +1 -1
- package/dist-versioned/chunks/chunk.DNHLNGIL.js +13 -13
- package/dist-versioned/chunks/chunk.F4BRIYYD.js +1 -1
- package/dist-versioned/chunks/chunk.G6KPFA3G.js +4 -4
- package/dist-versioned/chunks/chunk.GQXJC6ZE.js +2 -2
- package/dist-versioned/chunks/chunk.GWCHNKGW.js +1 -1
- package/dist-versioned/chunks/chunk.H54CZFCF.js +5 -5
- package/dist-versioned/chunks/chunk.HJ3ZUH4A.js +1 -1
- package/dist-versioned/chunks/chunk.I2JBWY5C.js +2 -2
- package/dist-versioned/chunks/chunk.IKWY7WM6.js +3 -3
- package/dist-versioned/chunks/chunk.JD5XFZKL.js +2 -2
- package/dist-versioned/chunks/chunk.JMAPLJHF.js +2 -2
- package/dist-versioned/chunks/chunk.JPGDK3CW.js +2 -2
- package/dist-versioned/chunks/chunk.K5MKZJEB.js +5 -5
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L5QYLWGO.js +6 -6
- package/dist-versioned/chunks/chunk.LRQ55FZL.js +1 -1
- package/dist-versioned/chunks/chunk.LUV3NLSJ.js +3 -3
- package/dist-versioned/chunks/chunk.MCUC6LS6.js +2 -2
- package/dist-versioned/chunks/chunk.MKZ5TRQH.js +1 -1
- package/dist-versioned/chunks/chunk.MYCUDMGG.js +2 -2
- package/dist-versioned/chunks/chunk.OENW3EQT.js +5 -5
- package/dist-versioned/chunks/chunk.ONBGPY5D.js +5 -5
- package/dist-versioned/chunks/chunk.QN2ROZHZ.js +3 -3
- package/dist-versioned/chunks/{chunk.Z3T4BG2M.js → chunk.QUK3F6GK.js} +6 -2
- package/dist-versioned/chunks/chunk.RFVRT5UG.js +2 -2
- package/dist-versioned/chunks/chunk.SH45GYZL.js +1 -1
- package/dist-versioned/chunks/chunk.T5VRGBLR.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UXEDWUMA.js +26 -26
- package/dist-versioned/chunks/chunk.WHFYHMF4.js +2 -2
- package/dist-versioned/chunks/chunk.WPHOQL7V.js +2 -2
- package/dist-versioned/chunks/chunk.WZGJQPPD.js +2 -2
- package/dist-versioned/chunks/chunk.X7HEAUGJ.js +2 -2
- package/dist-versioned/chunks/chunk.XCNH2K2U.js +5 -5
- package/dist-versioned/chunks/chunk.XNH47HGG.js +29 -29
- package/dist-versioned/chunks/chunk.Y6WJUTMM.js +6 -6
- package/dist-versioned/chunks/chunk.ZH6BP5XL.js +3 -3
- package/dist-versioned/chunks/chunk.ZJGD23K6.js +3 -3
- package/dist-versioned/chunks/chunk.ZWJNBDIV.js +11 -11
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +4 -4
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +2 -1
- package/dist-versioned/components/map-marker/map-marker.js +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +4 -4
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/teaser/teaser.js +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +221 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +85 -80
- package/dist-versioned/web-types.json +147 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.4QAJB6AU.js +0 -1
- package/cdn-versioned/chunks/chunk.4QAJB6AU.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var SolidComponents=(()=>{var Qe=Object.defineProperty,wo=Object.defineProperties,Pr=Object.getOwnPropertyDescriptor,xo=Object.getOwnPropertyDescriptors,ko=Object.getOwnPropertyNames,wi=Object.getOwnPropertySymbols;var er=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Ir=(s,i,t)=>i in s?Qe(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,D=(s,i)=>{for(var t in i||(i={}))er.call(i,t)&&Ir(s,t,i[t]);if(wi)for(var t of wi(i))Fr.call(i,t)&&Ir(s,t,i[t]);return s},rt=(s,i)=>wo(s,xo(i));var xi=(s,i)=>{var t={};for(var e in s)er.call(s,e)&&i.indexOf(e)<0&&(t[e]=s[e]);if(s!=null&&wi)for(var e of wi(s))i.indexOf(e)<0&&Fr.call(s,e)&&(t[e]=s[e]);return t};var Vr=(s,i)=>{for(var t in i)Qe(s,t,{get:i[t],enumerable:!0})},Co=(s,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of ko(i))!er.call(s,r)&&r!==t&&Qe(s,r,{get:()=>i[r],enumerable:!(e=Pr(i,r))||e.enumerable});return s};var Eo=s=>Co(Qe({},"__esModule",{value:!0}),s),o=(s,i,t,e)=>{for(var r=e>1?void 0:e?Pr(i,t):i,a=s.length-1,n;a>=0;a--)(n=s[a])&&(r=(e?n(i,t,r):n(r))||r);return e&&r&&Qe(i,t,r),r};var fl={};Vr(fl,{LocalizeController:()=>S,SdAccordion:()=>ft,SdAccordionGroup:()=>te,SdAnimation:()=>W,SdAudio:()=>J,SdBadge:()=>Nt,SdBrandshape:()=>_t,SdButton:()=>V,SdCarousel:()=>N,SdCarouselItem:()=>ee,SdCheckbox:()=>Q,SdCheckboxGroup:()=>$t,SdCombobox:()=>T,SdDialog:()=>kt,SdDivider:()=>Ft,SdDrawer:()=>dt,SdDropdown:()=>G,SdExpandable:()=>Mt,SdFlipcard:()=>Ct,SdHeader:()=>re,SdIcon:()=>lt,SdInclude:()=>Vt,SdInput:()=>A,SdLink:()=>wt,SdMapMarker:()=>Lt,SdNavigationItem:()=>it,SdNotification:()=>ut,SdOptgroup:()=>Dt,SdOption:()=>ct,SdPopup:()=>I,SdQuickfact:()=>me,SdRadio:()=>ht,SdRadioButton:()=>bt,SdRadioGroup:()=>Z,SdScrollable:()=>mt,SdSelect:()=>L,SdSpinner:()=>ce,SdStep:()=>ot,SdStepGroup:()=>gt,SdSwitch:()=>at,SdTab:()=>Et,SdTabGroup:()=>zt,SdTabPanel:()=>Xt,SdTag:()=>st,SdTeaser:()=>St,SdTeaserMedia:()=>se,SdTextarea:()=>M,SdTooltip:()=>nt,SdVideo:()=>Wt,registerIconLibrary:()=>fs,setupAutocomplete:()=>ml,unregisterIconLibrary:()=>ur});var ki=globalThis,Ci=ki.ShadowRoot&&(ki.ShadyCSS===void 0||ki.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ir=Symbol(),Br=new WeakMap,Je=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==ir)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(Ci&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Br.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Br.set(t,i))}return i}toString(){return this.cssText}},Ei=s=>new Je(typeof s=="string"?s:s+"",void 0,ir),v=(s,...i)=>{let t=s.length===1?s[0]:i.reduce((e,r,a)=>e+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[a+1],s[0]);return new Je(t,s,ir)},rr=(s,i)=>{if(Ci)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),r=ki.litNonce;r!==void 0&&e.setAttribute("nonce",r),e.textContent=t.cssText,s.appendChild(e)}},$i=Ci?s=>s:s=>s instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Ei(t)})(s):s;var{is:$o,defineProperty:To,getOwnPropertyDescriptor:Lo,getOwnPropertyNames:zo,getOwnPropertySymbols:Ao,getPrototypeOf:Oo}=Object,ye=globalThis,Rr=ye.trustedTypes,Mo=Rr?Rr.emptyScript:"",sr=ye.reactiveElementPolyfillSupport,Ge=(s,i)=>s,we={toAttribute(s,i){switch(i){case Boolean:s=s?Mo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,i){let t=s;switch(i){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(e){t=null}}return t}},Ti=(s,i)=>!$o(s,i),Ur={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Ti},Nr,qr;(Nr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(qr=ye.litPropertyMetadata)!=null||(ye.litPropertyMetadata=new WeakMap);var ne=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Ur){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),r=this.getPropertyDescriptor(i,e,t);r!==void 0&&To(this.prototype,i,r)}}static getPropertyDescriptor(i,t,e){var n;let{get:r,set:a}=(n=Lo(this.prototype,i))!=null?n:{get(){return this[t]},set(d){this[t]=d}};return{get(){return r==null?void 0:r.call(this)},set(d){let h=r==null?void 0:r.call(this);a.call(this,d),this.requestUpdate(i,h,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Ur}static _$Ei(){if(this.hasOwnProperty(Ge("elementProperties")))return;let i=Oo(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ge("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ge("properties"))){let t=this.properties,e=[...zo(t),...Ao(t)];for(let r of e)this.createProperty(r,t[r])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let r=this._$Eu(t,e);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let r of e)t.unshift($i(r))}else i!==void 0&&t.push($i(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return rr(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var a;let e=this.constructor.elementProperties.get(i),r=this.constructor._$Eu(i,e);if(r!==void 0&&e.reflect===!0){let n=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:we).toAttribute(t,e.type);this._$Em=i,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(i,t){var a;let e=this.constructor,r=e._$Eh.get(i);if(r!==void 0&&this._$Em!==r){let n=e.getPropertyOptions(r),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:we;this._$Em=r,this[r]=d.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(i,t,e){var r;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((r=e.hasChanged)!=null?r:Ti)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var r;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[n,d]of a)d.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],d)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(a=>{var n;return(n=a.hostUpdate)==null?void 0:n.call(a)}),this.update(t)):this._$EU()}catch(a){throw i=!1,this._$EU(),a}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostUpdated)==null?void 0:r.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Kr;ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[Ge("elementProperties")]=new Map,ne[Ge("finalized")]=new Map,sr==null||sr({ReactiveElement:ne}),((Kr=ye.reactiveElementVersions)!=null?Kr:ye.reactiveElementVersions=[]).push("2.0.4");var ei=globalThis,Li=ei.trustedTypes,jr=Li?Li.createPolicy("lit-html",{createHTML:s=>s}):void 0,nr="$lit$",le=`lit$${Math.random().toFixed(9).slice(2)}$`,lr="?"+le,Do=`<${lr}>`,Le=document,ii=()=>Le.createComment(""),ri=s=>s===null||typeof s!="object"&&typeof s!="function",dr=Array.isArray,Gr=s=>dr(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",or=`[
|
|
1
|
+
"use strict";var SolidComponents=(()=>{var Qe=Object.defineProperty,wo=Object.defineProperties,Pr=Object.getOwnPropertyDescriptor,xo=Object.getOwnPropertyDescriptors,ko=Object.getOwnPropertyNames,wi=Object.getOwnPropertySymbols;var er=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var Ir=(s,i,t)=>i in s?Qe(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,D=(s,i)=>{for(var t in i||(i={}))er.call(i,t)&&Ir(s,t,i[t]);if(wi)for(var t of wi(i))Fr.call(i,t)&&Ir(s,t,i[t]);return s},rt=(s,i)=>wo(s,xo(i));var xi=(s,i)=>{var t={};for(var e in s)er.call(s,e)&&i.indexOf(e)<0&&(t[e]=s[e]);if(s!=null&&wi)for(var e of wi(s))i.indexOf(e)<0&&Fr.call(s,e)&&(t[e]=s[e]);return t};var Vr=(s,i)=>{for(var t in i)Qe(s,t,{get:i[t],enumerable:!0})},Co=(s,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of ko(i))!er.call(s,r)&&r!==t&&Qe(s,r,{get:()=>i[r],enumerable:!(e=Pr(i,r))||e.enumerable});return s};var Eo=s=>Co(Qe({},"__esModule",{value:!0}),s),o=(s,i,t,e)=>{for(var r=e>1?void 0:e?Pr(i,t):i,a=s.length-1,n;a>=0;a--)(n=s[a])&&(r=(e?n(i,t,r):n(r))||r);return e&&r&&Qe(i,t,r),r};var fl={};Vr(fl,{LocalizeController:()=>S,SdAccordion:()=>ft,SdAccordionGroup:()=>te,SdAnimation:()=>W,SdAudio:()=>J,SdBadge:()=>Nt,SdBrandshape:()=>_t,SdButton:()=>V,SdCarousel:()=>N,SdCarouselItem:()=>ee,SdCheckbox:()=>Q,SdCheckboxGroup:()=>Tt,SdCombobox:()=>T,SdDialog:()=>kt,SdDivider:()=>Ft,SdDrawer:()=>dt,SdDropdown:()=>G,SdExpandable:()=>Mt,SdFlipcard:()=>Ct,SdHeader:()=>re,SdIcon:()=>lt,SdInclude:()=>Vt,SdInput:()=>A,SdLink:()=>wt,SdMapMarker:()=>Et,SdNavigationItem:()=>it,SdNotification:()=>ut,SdOptgroup:()=>Dt,SdOption:()=>ct,SdPopup:()=>I,SdQuickfact:()=>me,SdRadio:()=>ht,SdRadioButton:()=>bt,SdRadioGroup:()=>Z,SdScrollable:()=>mt,SdSelect:()=>L,SdSpinner:()=>ce,SdStep:()=>ot,SdStepGroup:()=>gt,SdSwitch:()=>at,SdTab:()=>$t,SdTabGroup:()=>zt,SdTabPanel:()=>Xt,SdTag:()=>st,SdTeaser:()=>St,SdTeaserMedia:()=>se,SdTextarea:()=>M,SdTooltip:()=>nt,SdVideo:()=>Wt,registerIconLibrary:()=>fs,setupAutocomplete:()=>ml,unregisterIconLibrary:()=>ur});var ki=globalThis,Ci=ki.ShadowRoot&&(ki.ShadyCSS===void 0||ki.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ir=Symbol(),Br=new WeakMap,Je=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==ir)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(Ci&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Br.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Br.set(t,i))}return i}toString(){return this.cssText}},Ei=s=>new Je(typeof s=="string"?s:s+"",void 0,ir),v=(s,...i)=>{let t=s.length===1?s[0]:i.reduce((e,r,a)=>e+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[a+1],s[0]);return new Je(t,s,ir)},rr=(s,i)=>{if(Ci)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),r=ki.litNonce;r!==void 0&&e.setAttribute("nonce",r),e.textContent=t.cssText,s.appendChild(e)}},$i=Ci?s=>s:s=>s instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Ei(t)})(s):s;var{is:$o,defineProperty:To,getOwnPropertyDescriptor:Lo,getOwnPropertyNames:zo,getOwnPropertySymbols:Ao,getPrototypeOf:Oo}=Object,ye=globalThis,Rr=ye.trustedTypes,Mo=Rr?Rr.emptyScript:"",sr=ye.reactiveElementPolyfillSupport,Ge=(s,i)=>s,we={toAttribute(s,i){switch(i){case Boolean:s=s?Mo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,i){let t=s;switch(i){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(e){t=null}}return t}},Ti=(s,i)=>!$o(s,i),Ur={attribute:!0,type:String,converter:we,reflect:!1,hasChanged:Ti},Nr,qr;(Nr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(qr=ye.litPropertyMetadata)!=null||(ye.litPropertyMetadata=new WeakMap);var ne=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Ur){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),r=this.getPropertyDescriptor(i,e,t);r!==void 0&&To(this.prototype,i,r)}}static getPropertyDescriptor(i,t,e){var n;let{get:r,set:a}=(n=Lo(this.prototype,i))!=null?n:{get(){return this[t]},set(d){this[t]=d}};return{get(){return r==null?void 0:r.call(this)},set(d){let h=r==null?void 0:r.call(this);a.call(this,d),this.requestUpdate(i,h,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Ur}static _$Ei(){if(this.hasOwnProperty(Ge("elementProperties")))return;let i=Oo(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ge("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ge("properties"))){let t=this.properties,e=[...zo(t),...Ao(t)];for(let r of e)this.createProperty(r,t[r])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let r=this._$Eu(t,e);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let r of e)t.unshift($i(r))}else i!==void 0&&t.push($i(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return rr(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var a;let e=this.constructor.elementProperties.get(i),r=this.constructor._$Eu(i,e);if(r!==void 0&&e.reflect===!0){let n=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:we).toAttribute(t,e.type);this._$Em=i,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(i,t){var a;let e=this.constructor,r=e._$Eh.get(i);if(r!==void 0&&this._$Em!==r){let n=e.getPropertyOptions(r),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:we;this._$Em=r,this[r]=d.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(i,t,e){var r;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((r=e.hasChanged)!=null?r:Ti)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var r;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[n,d]of a)d.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],d)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(a=>{var n;return(n=a.hostUpdate)==null?void 0:n.call(a)}),this.update(t)):this._$EU()}catch(a){throw i=!1,this._$EU(),a}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostUpdated)==null?void 0:r.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Kr;ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[Ge("elementProperties")]=new Map,ne[Ge("finalized")]=new Map,sr==null||sr({ReactiveElement:ne}),((Kr=ye.reactiveElementVersions)!=null?Kr:ye.reactiveElementVersions=[]).push("2.0.4");var ei=globalThis,Li=ei.trustedTypes,jr=Li?Li.createPolicy("lit-html",{createHTML:s=>s}):void 0,nr="$lit$",le=`lit$${Math.random().toFixed(9).slice(2)}$`,lr="?"+le,Do=`<${lr}>`,Le=document,ii=()=>Le.createComment(""),ri=s=>s===null||typeof s!="object"&&typeof s!="function",dr=Array.isArray,Gr=s=>dr(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",or=`[
|
|
2
2
|
\f\r]`,ti=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yr=/-->/g,Zr=/>/g,$e=RegExp(`>|${or}(?:([^\\s"'>=/]+)(${or}*=${or}*(?:[^
|
|
3
3
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xr=/'/g,Wr=/"/g,ts=/^(?:script|style|textarea|title)$/i,cr=s=>(i,...t)=>({_$litType$:s,strings:i,values:t}),p=cr(1),qe=cr(2),es=cr(3),yt=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Qr=new WeakMap,Te=Le.createTreeWalker(Le,129);function is(s,i){if(!dr(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return jr!==void 0?jr.createHTML(i):i}var rs=(s,i)=>{let t=s.length-1,e=[],r,a=i===2?"<svg>":i===3?"<math>":"",n=ti;for(let d=0;d<t;d++){let h=s[d],u,f,b=-1,k=0;for(;k<h.length&&(n.lastIndex=k,f=n.exec(h),f!==null);)k=n.lastIndex,n===ti?f[1]==="!--"?n=Yr:f[1]!==void 0?n=Zr:f[2]!==void 0?(ts.test(f[2])&&(r=RegExp("</"+f[2],"g")),n=$e):f[3]!==void 0&&(n=$e):n===$e?f[0]===">"?(n=r!=null?r:ti,b=-1):f[1]===void 0?b=-2:(b=n.lastIndex-f[2].length,u=f[1],n=f[3]===void 0?$e:f[3]==='"'?Wr:Xr):n===Wr||n===Xr?n=$e:n===Yr||n===Zr?n=ti:(n=$e,r=void 0);let x=n===$e&&s[d+1].startsWith("/>")?" ":"";a+=n===ti?h+Do:b>=0?(e.push(u),h.slice(0,b)+nr+h.slice(b)+le+x):h+le+(b===-2?d:x)}return[is(s,a+(s[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},si=class s{constructor({strings:i,_$litType$:t},e){let r;this.parts=[];let a=0,n=0,d=i.length-1,h=this.parts,[u,f]=rs(i,t);if(this.el=s.createElement(u,e),Te.currentNode=this.el.content,t===2||t===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(r=Te.nextNode())!==null&&h.length<d;){if(r.nodeType===1){if(r.hasAttributes())for(let b of r.getAttributeNames())if(b.endsWith(nr)){let k=f[n++],x=r.getAttribute(b).split(le),$=/([.?@])?(.*)/.exec(k);h.push({type:1,index:a,name:$[2],strings:x,ctor:$[1]==="."?Ai:$[1]==="?"?Oi:$[1]==="@"?Mi:Ae}),r.removeAttribute(b)}else b.startsWith(le)&&(h.push({type:6,index:a}),r.removeAttribute(b));if(ts.test(r.tagName)){let b=r.textContent.split(le),k=b.length-1;if(k>0){r.textContent=Li?Li.emptyScript:"";for(let x=0;x<k;x++)r.append(b[x],ii()),Te.nextNode(),h.push({type:2,index:++a});r.append(b[k],ii())}}}else if(r.nodeType===8)if(r.data===lr)h.push({type:2,index:a});else{let b=-1;for(;(b=r.data.indexOf(le,b+1))!==-1;)h.push({type:7,index:a}),b+=le.length-1}a++}}static createElement(i,t){let e=Le.createElement("template");return e.innerHTML=i,e}};function ze(s,i,t=s,e){var n,d,h;if(i===yt)return i;let r=e!==void 0?(n=t._$Co)==null?void 0:n[e]:t._$Cl,a=ri(i)?void 0:i._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((d=r==null?void 0:r._$AO)==null||d.call(r,!1),a===void 0?r=void 0:(r=new a(s),r._$AT(s,t,e)),e!==void 0?((h=t._$Co)!=null?h:t._$Co=[])[e]=r:t._$Cl=r),r!==void 0&&(i=ze(s,r._$AS(s,i.values),r,e)),i}var zi=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;let{el:{content:t},parts:e}=this._$AD,r=((u=i==null?void 0:i.creationScope)!=null?u:Le).importNode(t,!0);Te.currentNode=r;let a=Te.nextNode(),n=0,d=0,h=e[0];for(;h!==void 0;){if(n===h.index){let f;h.type===2?f=new Ne(a,a.nextSibling,this,i):h.type===1?f=new h.ctor(a,h.name,h.strings,this,i):h.type===6&&(f=new Di(a,this,i)),this._$AV.push(f),h=e[++d]}n!==(h==null?void 0:h.index)&&(a=Te.nextNode(),n++)}return Te.currentNode=Le,r}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Ne=class s{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this._$Cv}constructor(i,t,e,r){var a;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=ze(this,i,t),ri(i)?i===Y||i==null||i===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):i!==this._$AH&&i!==yt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Gr(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==Y&&ri(this._$AH)?this._$AA.nextSibling.data=i:this.T(Le.createTextNode(i)),this._$AH=i}$(i){var a;let{values:t,_$litType$:e}=i,r=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=si.createElement(is(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(t);else{let n=new zi(r,this),d=n.u(this.options);n.p(t),this.T(d),this._$AH=n}}_$AC(i){let t=Qr.get(i.strings);return t===void 0&&Qr.set(i.strings,t=new si(i)),t}k(i){dr(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,r=0;for(let a of i)r===t.length?t.push(e=new s(this.O(ii()),this.O(ii()),this,this.options)):e=t[r],e._$AI(a),r++;r<t.length&&(this._$AR(e&&e._$AB.nextSibling,r),t.length=r)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let r=i.nextSibling;i.remove(),i=r}}setConnected(i){var t;this._$AM===void 0&&(this._$Cv=i,(t=this._$AP)==null||t.call(this,i))}},Ae=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,r,a){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=i,this.name=t,this._$AM=r,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}_$AI(i,t=this,e,r){let a=this.strings,n=!1;if(a===void 0)i=ze(this,i,t,0),n=!ri(i)||i!==this._$AH&&i!==yt,n&&(this._$AH=i);else{let d=i,h,u;for(i=a[0],h=0;h<a.length-1;h++)u=ze(this,d[e+h],t,h),u===yt&&(u=this._$AH[h]),n||(n=!ri(u)||u!==this._$AH[h]),u===Y?i=Y:i!==Y&&(i+=(u!=null?u:"")+a[h+1]),this._$AH[h]=u}n&&!r&&this.j(i)}j(i){i===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},Ai=class extends Ae{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===Y?void 0:i}},Oi=class extends Ae{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==Y)}},Mi=class extends Ae{constructor(i,t,e,r,a){super(i,t,e,r,a),this.type=5}_$AI(i,t=this){var n;if((i=(n=ze(this,i,t,0))!=null?n:Y)===yt)return;let e=this._$AH,r=i===Y&&e!==Y||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,a=i!==Y&&(e===Y||r);r&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Di=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){ze(this,i)}},ss={M:nr,P:le,A:lr,C:1,L:rs,R:zi,D:Gr,V:ze,I:Ne,H:Ae,N:Oi,U:Mi,B:Ai,F:Di},ar=ei.litHtmlPolyfillSupport,Jr;ar==null||ar(si,Ne),((Jr=ei.litHtmlVersions)!=null?Jr:ei.litHtmlVersions=[]).push("3.2.1");var os=(s,i,t)=>{var a,n;let e=(a=t==null?void 0:t.renderBefore)!=null?a:i,r=e._$litPart$;if(r===void 0){let d=(n=t==null?void 0:t.renderBefore)!=null?n:null;e._$litPart$=r=new Ne(i.insertBefore(ii(),d),d,void 0,t!=null?t:{})}return r._$AI(s),r};var xe=class extends ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=os(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return yt}},as;xe._$litElement$=!0,xe.finalized=!0,(as=globalThis.litElementHydrateSupport)==null||as.call(globalThis,{LitElement:xe});var hr=globalThis.litElementPolyfillSupport;hr==null||hr({LitElement:xe});var ns;((ns=globalThis.litElementVersions)!=null?ns:globalThis.litElementVersions=[]).push("4.1.1");var So=(s,i)=>window.customElements.get(s)?(console.warn(`Custom element ${s} already defined. Registration skipped.`),i):(window.customElements.define(s,i),i),_o=(s,i)=>{let{kind:t,elements:e}=i;return{kind:t,elements:e,finisher(r){if(window.customElements.get(s)){console.warn(`Custom element ${s} already defined. Registration skipped.`);return}window.customElements.define(s,r)}}},y=s=>i=>typeof i=="function"?So(s,i):_o(s,i);var Ho={name:"default",resolver:s=>{let i=s.split("/");return(i[0]==="content"||i[0]==="system")&&(s="union-investment/"+s),`https://celum-icons.fe.union-investment.de/${s}.svg`},mutator:s=>{let i={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return i.currentColorFills=s.querySelectorAll('[fill="#00358e" i]'),i.currentColorStrokes=s.querySelectorAll('[stroke="#00358e" i]'),i.greenFills=s.querySelectorAll('[fill="#2d9d00" i]'),i.greenStrokes=s.querySelectorAll('[stroke="#2d9d00" i]'),i.currentColorFills.forEach(t=>{t.setAttribute("fill","currentColor")}),i.currentColorStrokes.forEach(t=>{t.setAttribute("stroke","currentColor")}),i.greenFills.forEach(t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")}),i.greenStrokes.forEach(t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")}),s}},ls=Ho;var ds={"status-check":`
|
|
4
4
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 12">
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
disabled:text-neutral-500`,cta:`text-white ${this.visuallyDisabled?"bg-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"bg-accent-500 border-transparent hover:bg-accent-550 active:bg-accent-700"}
|
|
109
109
|
${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||this.visuallyDisabled?"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="${c("flex flex-auto items-center pointer-events-none",r["icon-only"]&&"hidden",this.loading&&"invisible",r["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${c(r["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${c("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",r["icon-only"]&&"hidden",r["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?F`<sd-spinner class="${c("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};V.styles=[...m.styles,v`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top: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)}`],o([g("a, button")],V.prototype,"button",2),o([Ke({selector:"sd-icon"})],V.prototype,"_iconsInDefaultSlot",2),o([E()],V.prototype,"invalid",2),o([l()],V.prototype,"title",2),o([l({reflect:!0})],V.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],V.prototype,"inverted",2),o([l({reflect:!0})],V.prototype,"size",2),o([l({type:Boolean,reflect:!0})],V.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],V.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],V.prototype,"loading",2),o([l()],V.prototype,"type",2),o([l()],V.prototype,"name",2),o([l()],V.prototype,"value",2),o([l()],V.prototype,"href",2),o([l()],V.prototype,"target",2),o([l()],V.prototype,"download",2),o([l()],V.prototype,"form",2),o([l({attribute:"formaction"})],V.prototype,"formAction",2),o([l({attribute:"formenctype"})],V.prototype,"formEnctype",2),o([l({attribute:"formmethod"})],V.prototype,"formMethod",2),o([l({attribute:"formnovalidate",type:Boolean})],V.prototype,"formNoValidate",2),o([l({attribute:"formtarget"})],V.prototype,"formTarget",2),o([w("disabled",{waitUntilFirstUpdate:!0})],V.prototype,"handleDisabledChange",1),V=o([y("sd-button")],V);var Vi=class{constructor(i,t){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())};i.addController(this),this.host=i,this.tickCallback=t}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(i){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},i)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};function As(s,i,t){let e=r=>Object.is(r,-0)?0:r;return s<i?e(i):s>t?e(t):e(s)}function*Os(s,i){if(s!==void 0){let t=0;for(let e of s)yield i(e,t++)}}function*Ms(s,i,t=1){let e=i===void 0?0:s;i!=null||(i=s);for(let r=e;t>0?r<i:i<r;r+=t)yield r}var Ds=Symbol(),Bi=s=>(i,t,e)=>{let r=e.value;e.value=function(...a){clearTimeout(this[Ds]),this[Ds]=window.setTimeout(()=>{r.apply(this,a)},s)}};var hi=class{constructor(i){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=i=>{if(i.pointerType==="touch")return;this.pointers.add(i.pointerId),this.mouseDragging&&!this.dragging&&i.button===0&&(i.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove))};this.handlePointerMove=i=>{let t=this.host.scrollContainer,e=!!i.movementX||!!i.movementY;!this.dragging&&e?(t.setPointerCapture(i.pointerId),this.handleDragStart()):t.hasPointerCapture(i.pointerId)&&this.handleDrag(i)};this.handlePointerUp=i=>{this.pointers.delete(i.pointerId),this.host.scrollContainer.releasePointerCapture(i.pointerId),this.pointers.size===0&&this.handleDragEnd()};this.handleTouchEnd=i=>{for(let t of i.changedTouches)this.pointers.delete(t.identifier)};this.handleTouchStart=i=>{for(let t of i.touches)this.pointers.add(t.identifier)};this.host=i,i.addController(this)}async hostConnected(){let i=this.host;await i.updateComplete;let t=i.scrollContainer;t.addEventListener("scroll",this.handleScroll,{passive:!0}),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointerup",this.handlePointerUp),t.addEventListener("pointercancel",this.handlePointerUp),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),t.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){let 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(){let i=this.host;this.dragging=!0,i.scrollContainer.style.setProperty("scroll-snap-type","unset"),i.requestUpdate()}handleDrag(i){this.host.scrollContainer.scrollBy({left:-i.movementX,top:-i.movementY})}async handleDragEnd(){let i=this.host,t=i.scrollContainer;t.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;let e=t.scrollLeft,r=t.scrollTop;t.style.removeProperty("scroll-snap-type");let a=t.scrollLeft,n=t.scrollTop;t.style.setProperty("scroll-snap-type","unset"),t.scrollTo({left:e,top:r,behavior:"auto"}),t.scrollTo({left:a,top:n,behavior:ni()?"auto":"smooth"}),this.scrolling&&await U(t,"scrollend"),t.style.removeProperty("scroll-snap-type"),i.requestUpdate()}};o([Bi(100)],hi.prototype,"handleScrollEnd",1);var ee=class extends m{static isCarouselItem(i){return i instanceof Element&&i.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return p`<slot></slot>`}};ee.styles=[...m.styles,v`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`],ee=o([y("sd-carousel-item")],ee);var N=class extends m{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 Vi(this,()=>this.next());this.scrollController=new hi(this);this.slides=this.getElementsByTagName("sd-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new S(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(a=>ee.isCarouselItem(a)&&!a.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),["click","keydown"].forEach(e=>this.addEventListener(e,this.handleUserInteraction));let t=new IntersectionObserver(e=>{e.forEach(r=>{this.intersectionObserverEntries.set(r.target,r);let a=r.target;a.toggleAttribute("inert",!r.isIntersecting),a.classList.toggle("--in-view",r.isIntersecting),a.setAttribute("aria-hidden",r.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach(e=>{this.intersectionObserverEntries.set(e.target,e)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["click","keydown"].forEach(t=>this.removeEventListener(t,this.handleUserInteraction))}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,a){return Math.ceil((t-r)/a)-Math.ceil((t-r-e)/a)+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)){let e=t.target,r=this.localize.dir()==="rtl",a=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",d=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),d&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),a&&this.updateComplete.then(()=>{var u;let h=(u=this.shadowRoot)==null?void 0:u.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(a=>a.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let a=Number(r.target.getAttribute("data-clone"));this.goToSlide(a,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),(t=this.autoplayControls)==null||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","true"))}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,a)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",a+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop){let r=this.slidesPerPage,a=t.slice(-r),n=t.slice(0,r);a.reverse().forEach((d,h)=>{let u=d.cloneNode(!0);u.setAttribute("data-clone",String(t.length-h-1)),this.prepend(u)}),n.forEach((d,h)=>{let u=d.cloneNode(!0);u.setAttribute("data-clone",String(h)),this.append(u)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((a,n)=>{a.classList.toggle("--is-active",n===this.activeSlide)});let e=this.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]}});let r=this.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>r&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,a)=>{Math.abs(a-e)%e===0?r.style.removeProperty("scroll-snap-align"):r.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,r=!1;for(;!r&&e>0;)e-=1,r=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<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,t);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){let{slidesPerPage:r,loop:a,scrollContainer:n}=this,d=this.getSlides(),h=this.getSlides({excludeClones:!1}),u=(t+d.length)%d.length;this.activeSlide=u;let f=As(t+(a?r:0),0,h.length+1),b=h[f],k=n.getBoundingClientRect(),x=b.getBoundingClientRect();if(n.scrollTo({left:x.left-k.left+n.scrollLeft,top:x.top-k.top+n.scrollTop,behavior:ni()?"auto":e}),this.userInteracted&&!this.loop){let $=this.activeSlide===d.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,z=this.activeSlide===0;$?this.previousButton.focus({preventScroll:!0}):z&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:t,slidesPerMove:e}=this,r=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),a=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||a>1,d=this.loop||a<r,h=this.localize.dir()==="ltr";return p`<div part="base" class="${c("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${c(`carousel__slides mb-6
|
|
110
110
|
grid max-h-full w-full items-center justify-items-center overflow-auto`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",`overscroll-x-contain grid-flow-col auto-rows-[100%]
|
|
111
|
-
snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?p`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${Os(Ms(r),u=>{let f=u+1===a;return p`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${b=>{this.goToSlide(u*e),this.unblockAutoplay(b,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:p`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${u=>{this.pausedAutoplay=!this.pausedAutoplay,u.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};N.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],N.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],N.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],N.prototype,"nextButton",2),o([bs('[part~="pagination-item"]')],N.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],N.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],N.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],N.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],N.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],N.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],N.prototype,"slidesPerMove",2),o([g("slot:not([name])")],N.prototype,"defaultSlot",2),o([g(".carousel__slides")],N.prototype,"scrollContainer",2),o([g(".carousel__pagination")],N.prototype,"paginationContainer",2),o([E()],N.prototype,"activeSlide",2),o([E()],N.prototype,"currentPage",2),o([E()],N.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],N.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],N.prototype,"initializeSlides",1),o([w("activeSlide")],N.prototype,"handleSlideChange",1),o([w("slidesPerMove")],N.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],N.prototype,"handleAutoplayChange",1),N=o([y("sd-carousel")],N);var Ht=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(a===u){let b=h.converter||we,x=(typeof b=="function"?b:(f=b==null?void 0:b.fromAttribute)!=null?f:we.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:c0}=ss;var Ri=s=>s.strings===void 0;var Pn={},Ss=(s,i=Pn)=>s._$AH=i;var he=de(class extends ke{constructor(s){if(super(s),s.type!==Ot.PROPERTY&&s.type!==Ot.ATTRIBUTE&&s.type!==Ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ri(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===yt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Ot.PROPERTY){if(i===t[e])return yt}else if(s.type===Ot.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return yt}else if(s.type===Ot.ATTRIBUTE&&t.getAttribute(e)===i+"")return yt;return Ss(s),i}});var Q=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,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(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,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.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return p`<label part="base" class="${c("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${C(this.value)}" .indeterminate="${he(this.indeterminate)}" .checked="${he(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @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"} ${this.indeterminate?" control--indeterminate":""}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Q.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([g('input[type="checkbox"]')],Q.prototype,"input",2),o([g("#invalid-message")],Q.prototype,"invalidMessage",2),o([l()],Q.prototype,"title",2),o([l()],Q.prototype,"name",2),o([l()],Q.prototype,"value",2),o([l({reflect:!0})],Q.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"indeterminate",2),o([Ht("checked")],Q.prototype,"defaultChecked",2),o([l({reflect:!0})],Q.prototype,"form",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"required",2),o([E()],Q.prototype,"showInvalidStyle",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleStateChange",1),Q=o([y("sd-checkbox")],Q);var $t=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,d=this.hasSlotController.test("tooltip");return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${e||d?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${d?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${n}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>`}};$t.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],$t.prototype,"size",2),o([l({reflect:!0})],$t.prototype,"orientation",2),o([l()],$t.prototype,"label",2),o([l({attribute:"help-text"})],$t.prototype,"helpText",2),o([w("size",{waitUntilFirstUpdate:!0})],$t.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],$t.prototype,"handleInvalid",1),$t=o([y("sd-checkbox-group")],$t);var _s=s=>s;var $r=s=>Array.from(s.assignedElements({flatten:!0})),Fn=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),Vn=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",Hs=s=>s.map(Fn),Is=s=>s.filter(Vn),Ui=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function Ps(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Tr=new Set;function Bn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function De(s){if(Tr.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Bn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function Se(s){Tr.delete(s),Tr.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function qt(s,i,t="vertical",e="smooth"){let r=Ps(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<u?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var ie=Math.min,xt=Math.max,ui=Math.round,mi=Math.floor,Kt=s=>({x:s,y:s}),Rn={left:"right",right:"left",bottom:"top",top:"bottom"},Un={start:"end",end:"start"};function qi(s,i,t){return xt(s,ie(i,t))}function _e(s,i){return typeof s=="function"?s(i):s}function pe(s){return s.split("-")[0]}function He(s){return s.split("-")[1]}function Lr(s){return s==="x"?"y":"x"}function Ki(s){return s==="y"?"height":"width"}function Ee(s){return["top","bottom"].includes(pe(s))?"y":"x"}function ji(s){return Lr(Ee(s))}function Fs(s,i,t){t===void 0&&(t=!1);let e=He(s),r=ji(s),a=Ki(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=pi(n)),[n,pi(n)]}function Vs(s){let i=pi(s);return[Ni(s),i,Ni(i)]}function Ni(s){return s.replace(/start|end/g,i=>Un[i])}function Nn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Bs(s,i,t,e){let r=He(s),a=Nn(pe(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ni)))),a}function pi(s){return s.replace(/left|right|bottom|top/g,i=>Rn[i])}function qn(s){return D({top:0,right:0,bottom:0,left:0},s)}function zr(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Rs(s,i,t){let{reference:e,floating:r}=s,a=Ee(i),n=ji(i),d=Ki(n),h=pe(i),u=a==="y",f=e.x+e.width/2-r.width/2,b=e.y+e.height/2-r.height/2,k=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:b};break;case"left":x={x:e.x-r.width,y:b};break;default:x={x:e.x,y:e.y}}switch(He(i)){case"start":x[n]-=k*(t&&u?-1:1);break;case"end":x[n]+=k*(t&&u?-1:1);break}return x}var Us=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:b}=Rs(u,e,h),k=e,x={},$=0;for(let z=0;z<d.length;z++){let{name:P,fn:_}=d[z],{x:q,y:K,data:tt,reset:et}=await _({x:f,y:b,initialPlacement:e,placement:k,strategy:r,middlewareData:x,rects:u,platform:n,elements:{reference:s,floating:i}});f=q!=null?q:f,b=K!=null?K:b,x=rt(D({},x),{[P]:D(D({},x[P]),tt)}),et&&$<=50&&($++,typeof et=="object"&&(et.placement&&(k=et.placement),et.rects&&(u=et.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):et.rects),{x:f,y:b}=Rs(u,k,h)),z=-1)}return{x:f,y:b,placement:k,strategy:r,middlewareData:x}};async function Yi(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:b="floating",altBoundary:k=!1,padding:x=0}=_e(i,s),$=zr(x),P=d[k?b==="floating"?"reference":"floating":b],_=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(P)))==null||t?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:u,rootBoundary:f,strategy:h})),q=b==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,K=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),tt=await(a.isElement==null?void 0:a.isElement(K))?await(a.getScale==null?void 0:a.getScale(K))||{x:1,y:1}:{x:1,y:1},et=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:q,offsetParent:K,strategy:h}):q);return{top:(_.top-et.top+$.top)/tt.y,bottom:(et.bottom-_.bottom+$.bottom)/tt.y,left:(_.left-et.left+$.left)/tt.x,right:(et.right-_.right+$.right)/tt.x}}var Ns=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:u,padding:f=0}=_e(s,i)||{};if(u==null)return{};let b=zr(f),k={x:t,y:e},x=ji(r),$=Ki(x),z=await n.getDimensions(u),P=x==="y",_=P?"top":"left",q=P?"bottom":"right",K=P?"clientHeight":"clientWidth",tt=a.reference[$]+a.reference[x]-k[x]-a.floating[$],et=k[x]-a.reference[x],Bt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),vt=Bt?Bt[K]:0;(!vt||!await(n.isElement==null?void 0:n.isElement(Bt)))&&(vt=d.floating[K]||a.floating[$]);let oe=tt/2-et/2,Qt=vt/2-z[$]/2-1,Rt=ie(b[_],Qt),fe=ie(b[q],Qt),Jt=Rt,be=vt-z[$]-fe,At=vt/2-z[$]/2+oe,Ut=qi(Jt,At,be),Re=!h.arrow&&He(r)!=null&&At!==Ut&&a.reference[$]/2-(At<Jt?Rt:fe)-z[$]/2<0,ae=Re?At<Jt?At-Jt:At-be:0;return{[x]:k[x]+ae,data:D({[x]:Ut,centerOffset:At-Ut-ae},Re&&{alignmentOffset:ae}),reset:Re}}});var qs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:u}=i,At=_e(s,i),{mainAxis:f=!0,crossAxis:b=!0,fallbackPlacements:k,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:z=!0}=At,P=xi(At,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let _=pe(r),q=Ee(d),K=pe(d)===d,tt=await(h.isRTL==null?void 0:h.isRTL(u.floating)),et=k||(K||!z?[pi(d)]:Vs(d)),Bt=$!=="none";!k&&Bt&&et.push(...Bs(d,z,$,tt));let vt=[d,...et],oe=await Yi(i,P),Qt=[],Rt=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Qt.push(oe[_]),b){let Ut=Fs(r,n,tt);Qt.push(oe[Ut[0]],oe[Ut[1]])}if(Rt=[...Rt,{placement:r,overflows:Qt}],!Qt.every(Ut=>Ut<=0)){var fe,Jt;let Ut=(((fe=a.flip)==null?void 0:fe.index)||0)+1,Re=vt[Ut];if(Re)return{data:{index:Ut,overflows:Rt},reset:{placement:Re}};let ae=(Jt=Rt.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,ge)=>Ue.overflows[1]-ge.overflows[1])[0])==null?void 0:Jt.placement;if(!ae)switch(x){case"bestFit":{var be;let Ue=(be=Rt.filter(ge=>{if(Bt){let ve=Ee(ge.placement);return ve===q||ve==="y"}return!0}).map(ge=>[ge.placement,ge.overflows.filter(ve=>ve>0).reduce((ve,yo)=>ve+yo,0)]).sort((ge,ve)=>ge[1]-ve[1])[0])==null?void 0:be[0];Ue&&(ae=Ue);break}case"initialPlacement":ae=d;break}if(r!==ae)return{reset:{placement:ae}}}return{}}}};async function Kn(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=pe(t),d=He(t),h=Ee(t)==="y",u=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,b=_e(i,s),{mainAxis:k,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:k*u}:{x:k*u,y:x*f}}var Ks=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await Kn(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:rt(D({},h),{placement:n})}}}},js=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,P=_e(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:_=>{let{x:q,y:K}=_;return{x:q,y:K}}}}=P,h=xi(P,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},f=await Yi(i,h),b=Ee(pe(r)),k=Lr(b),x=u[k],$=u[b];if(a){let _=k==="y"?"top":"left",q=k==="y"?"bottom":"right",K=x+f[_],tt=x-f[q];x=qi(K,x,tt)}if(n){let _=b==="y"?"top":"left",q=b==="y"?"bottom":"right",K=$+f[_],tt=$-f[q];$=qi(K,$,tt)}let z=d.fn(rt(D({},i),{[k]:x,[b]:$}));return rt(D({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[k]:a,[b]:n}}})}}};var Ys=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Rt=_e(s,i),{apply:h=()=>{}}=Rt,u=xi(Rt,["apply"]),f=await Yi(i,u),b=pe(r),k=He(r),x=Ee(r)==="y",{width:$,height:z}=a.floating,P,_;b==="top"||b==="bottom"?(P=b,_=k===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(_=b,P=k==="end"?"top":"bottom");let q=z-f.top-f.bottom,K=$-f.left-f.right,tt=ie(z-f[P],q),et=ie($-f[_],K),Bt=!i.middlewareData.shift,vt=tt,oe=et;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(oe=K),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(vt=q),Bt&&!k){let fe=xt(f.left,0),Jt=xt(f.right,0),be=xt(f.top,0),At=xt(f.bottom,0);x?oe=$-2*(fe!==0||Jt!==0?fe+Jt:xt(f.left,f.right)):vt=z-2*(be!==0||At!==0?be+At:xt(f.top,f.bottom))}await h(rt(D({},i),{availableWidth:oe,availableHeight:vt}));let Qt=await n.getDimensions(d.floating);return $!==Qt.width||z!==Qt.height?{reset:{rects:!0}}:{}}}};function Zi(){return typeof window!="undefined"}function Pe(s){return Xs(s)?(s.nodeName||"").toLowerCase():"#document"}function Tt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function jt(s){var i;return(i=(Xs(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Xs(s){return Zi()?s instanceof Node||s instanceof Tt(s).Node:!1}function It(s){return Zi()?s instanceof Element||s instanceof Tt(s).Element:!1}function Yt(s){return Zi()?s instanceof HTMLElement||s instanceof Tt(s).HTMLElement:!1}function Zs(s){return!Zi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Tt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Pt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ws(s){return["table","td","th"].includes(Pe(s))}function fi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Xi(s){let i=Wi(),t=It(s)?Pt(s):s;return["transform","translate","scale","rotate","perspective"].some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function Qs(s){let i=ue(s);for(;Yt(i)&&!Fe(i);){if(Xi(i))return i;if(fi(i))return null;i=ue(i)}return null}function Wi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(Pe(s))}function Pt(s){return Tt(s).getComputedStyle(s)}function bi(s){return It(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ue(s){if(Pe(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Zs(s)&&s.host||jt(s);return Zs(i)?i.host:i}function Js(s){let i=ue(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:Yt(i)&&Xe(i)?i:Js(i)}function Ze(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Js(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=Tt(r);if(a){let d=Qi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?Ze(d):[])}return i.concat(r,Ze(r,[],t))}function Qi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function eo(s){let i=Pt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=Yt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=ui(t)!==a||ui(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function Or(s){return It(s)?s:s.contextElement}function We(s){let i=Or(s);if(!Yt(i))return Kt(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=eo(i),n=(a?ui(t.width):t.width)/e,d=(a?ui(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var jn=Kt(0);function io(s){let i=Tt(s);return!Wi()||!i.visualViewport?jn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Yn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Tt(s)?!1:i}function Ve(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=Or(s),n=Kt(1);i&&(e?It(e)&&(n=We(e)):n=We(s));let d=Yn(a,t,e)?io(a):Kt(0),h=(r.left+d.x)/n.x,u=(r.top+d.y)/n.y,f=r.width/n.x,b=r.height/n.y;if(a){let k=Tt(a),x=e&&It(e)?Tt(e):e,$=k,z=Qi($);for(;z&&e&&x!==$;){let P=We(z),_=z.getBoundingClientRect(),q=Pt(z),K=_.left+(z.clientLeft+parseFloat(q.paddingLeft))*P.x,tt=_.top+(z.clientTop+parseFloat(q.paddingTop))*P.y;h*=P.x,u*=P.y,f*=P.x,b*=P.y,h+=K,u+=tt,$=Tt(z),z=Qi($)}}return Ie({width:f,height:b,x:h,y:u})}function Mr(s,i){let t=bi(s).scrollLeft;return i?i.left+t:Ve(jt(s)).left+t}function ro(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Mr(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Zn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=jt(e),d=i?fi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},u=Kt(1),f=Kt(0),b=Yt(e);if((b||!b&&!a)&&((Pe(e)!=="body"||Xe(n))&&(h=bi(e)),Yt(e))){let x=Ve(e);u=We(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let k=n&&!b&&!a?ro(n,h,!0):Kt(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+f.x+k.x,y:t.y*u.y-h.scrollTop*u.y+f.y+k.y}}function Xn(s){return Array.from(s.getClientRects())}function Wn(s){let i=jt(s),t=bi(s),e=s.ownerDocument.body,r=xt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=xt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Mr(s),d=-t.scrollTop;return Pt(e).direction==="rtl"&&(n+=xt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Qn(s,i){let t=Tt(s),e=jt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let u=Wi();(!u||u&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Jn(s,i){let t=Ve(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=Yt(s)?We(s):Kt(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,u=e*a.y;return{width:n,height:d,x:h,y:u}}function Gs(s,i,t){let e;if(i==="viewport")e=Qn(s,t);else if(i==="document")e=Wn(jt(s));else if(It(i))e=Jn(i,t);else{let r=io(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function so(s,i){let t=ue(s);return t===i||!It(t)||Fe(t)?!1:Pt(t).position==="fixed"||so(t,i)}function Gn(s,i){let t=i.get(s);if(t)return t;let e=Ze(s,[],!1).filter(d=>It(d)&&Pe(d)!=="body"),r=null,a=Pt(s).position==="fixed",n=a?ue(s):s;for(;It(n)&&!Fe(n);){let d=Pt(n),h=Xi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&so(s,n))?e=e.filter(f=>f!==n):r=d,n=ue(n)}return i.set(s,e),e}function tl(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?fi(i)?[]:Gn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((u,f)=>{let b=Gs(i,f,r);return u.top=xt(b.top,u.top),u.right=ie(b.right,u.right),u.bottom=ie(b.bottom,u.bottom),u.left=xt(b.left,u.left),u},Gs(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function el(s){let{width:i,height:t}=eo(s);return{width:i,height:t}}function il(s,i,t){let e=Yt(i),r=jt(i),a=t==="fixed",n=Ve(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Kt(0);if(e||!e&&!a)if((Pe(i)!=="body"||Xe(r))&&(d=bi(i)),e){let k=Ve(i,!0,a,i);h.x=k.x+i.clientLeft,h.y=k.y+i.clientTop}else r&&(h.x=Mr(r));let u=r&&!e&&!a?ro(r,d):Kt(0),f=n.left+d.scrollLeft-h.x-u.x,b=n.top+d.scrollTop-h.y-u.y;return{x:f,y:b,width:n.width,height:n.height}}function Ar(s){return Pt(s).position==="static"}function to(s,i){if(!Yt(s)||Pt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return jt(s)===t&&(t=t.ownerDocument.body),t}function oo(s,i){let t=Tt(s);if(fi(s))return t;if(!Yt(s)){let r=ue(s);for(;r&&!Fe(r);){if(It(r)&&!Ar(r))return r;r=ue(r)}return t}let e=to(s,i);for(;e&&Ws(e)&&Ar(e);)e=to(e,i);return e&&Fe(e)&&Ar(e)&&!Xi(e)?t:e||Qs(s)||t}var rl=async function(s){let i=this.getOffsetParent||oo,t=this.getDimensions,e=await t(s.floating);return{reference:il(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function sl(s){return Pt(s).direction==="rtl"}var ol={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:jt,getClippingRect:tl,getOffsetParent:oo,getElementRects:rl,getClientRects:Xn,getDimensions:el,getScale:We,isElement:It,isRTL:sl};function ao(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function al(s,i){let t=null,e,r=jt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let u=s.getBoundingClientRect(),{left:f,top:b,width:k,height:x}=u;if(d||i(),!k||!x)return;let $=mi(b),z=mi(r.clientWidth-(f+k)),P=mi(r.clientHeight-(b+x)),_=mi(f),K={rootMargin:-$+"px "+-z+"px "+-P+"px "+-_+"px",threshold:xt(0,ie(1,h))||1},tt=!0;function et(Bt){let vt=Bt[0].intersectionRatio;if(vt!==h){if(!tt)return n();vt?n(!1,vt):e=setTimeout(()=>{n(!1,1e-7)},1e3)}vt===1&&!ao(u,s.getBoundingClientRect())&&n(),tt=!1}try{t=new IntersectionObserver(et,rt(D({},K),{root:r.ownerDocument}))}catch(Bt){t=new IntersectionObserver(et,K)}t.observe(s)}return n(!0),a}function no(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=Or(s),f=r||a?[...u?Ze(u):[],...Ze(i)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});let b=u&&d?al(u,t):null,k=-1,x=null;n&&(x=new ResizeObserver(_=>{let[q]=_;q&&q.target===u&&x&&(x.unobserve(i),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var K;(K=x)==null||K.observe(i)})),t()}),u&&!h&&x.observe(u),x.observe(i));let $,z=h?Ve(s):null;h&&P();function P(){let _=Ve(s);z&&!ao(z,_)&&t(),z=_,$=requestAnimationFrame(P)}return t(),()=>{var _;f.forEach(q=>{r&&q.removeEventListener("scroll",t),a&&q.removeEventListener("resize",t)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame($)}}var lo=Ks;var co=js,ho=qs,Dr=Ys;var po=Ns;var uo=(s,i,t)=>{let e=new Map,r=D({platform:ol},t),a=rt(D({},r.platform),{_c:e});return Us(s,i,rt(D({},r),{platform:a}))};var I=class extends m{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=no(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[lo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Dr({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ho({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(co({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Dr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(po({element:this.arrowEl,padding:this.arrowPadding})),uo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let u=a.arrow.x,f=a.arrow.y,b="",k="",x="",$="";if(this.arrowPlacement==="start"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",k=d?z:"",$=d?"":z}else if(this.arrowPlacement==="end"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";k=d?"":z,$=d?z:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof u=="number"?`${u}px`:"",b=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:b,right:k,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};I.styles=[...m.styles,v`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([g('[part="popup"]')],I.prototype,"popup",2),o([g('[part="arrow"]')],I.prototype,"arrowEl",2),o([l()],I.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],I.prototype,"active",2),o([l({reflect:!0})],I.prototype,"placement",2),o([l({reflect:!0})],I.prototype,"strategy",2),o([l({type:Number})],I.prototype,"distance",2),o([l({type:Number})],I.prototype,"skidding",2),o([l({type:Boolean})],I.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],I.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],I.prototype,"arrowPadding",2),o([l({type:Boolean})],I.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],I.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],I.prototype,"flipFallbackStrategy",2),o([l({type:Object})],I.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],I.prototype,"flipPadding",2),o([l({type:Boolean})],I.prototype,"shift",2),o([l({type:Object})],I.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],I.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],I.prototype,"autoSize",2),o([l()],I.prototype,"sync",2),o([l({type:Object})],I.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],I.prototype,"autoSizePadding",2),I=o([y("sd-popup")],I);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){let t=this.isLink(),e=t?X`a`:X`button`;return F`<${e} part="base" type="${C(t?void 0:"button")}" href="${C(t?this.href:void 0)}" rel="${C(t&&this.target?"noreferrer noopener":void 0)}" target="${C(t?this.target:void 0)}" download="${C(t?this.download:void 0)}" ?disabled="${C(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${C(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?F`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([g("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new O(this,"help-text","label");this.localize=new S(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=_s;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Ui(t.value),a=Ui(t.getTextLabel()),n=Ui(e);return r.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
111
|
+
snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?p`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${Os(Ms(r),u=>{let f=u+1===a;return p`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${b=>{this.goToSlide(u*e),this.unblockAutoplay(b,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:p`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${u=>{this.pausedAutoplay=!this.pausedAutoplay,u.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};N.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],N.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],N.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],N.prototype,"nextButton",2),o([bs('[part~="pagination-item"]')],N.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],N.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],N.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],N.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],N.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],N.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],N.prototype,"slidesPerMove",2),o([g("slot:not([name])")],N.prototype,"defaultSlot",2),o([g(".carousel__slides")],N.prototype,"scrollContainer",2),o([g(".carousel__pagination")],N.prototype,"paginationContainer",2),o([E()],N.prototype,"activeSlide",2),o([E()],N.prototype,"currentPage",2),o([E()],N.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],N.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],N.prototype,"initializeSlides",1),o([w("activeSlide")],N.prototype,"handleSlideChange",1),o([w("slidesPerMove")],N.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],N.prototype,"handleAutoplayChange",1),N=o([y("sd-carousel")],N);var Ht=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(a===u){let b=h.converter||we,x=(typeof b=="function"?b:(f=b==null?void 0:b.fromAttribute)!=null?f:we.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:c0}=ss;var Ri=s=>s.strings===void 0;var Pn={},Ss=(s,i=Pn)=>s._$AH=i;var he=de(class extends ke{constructor(s){if(super(s),s.type!==Ot.PROPERTY&&s.type!==Ot.ATTRIBUTE&&s.type!==Ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ri(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===yt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Ot.PROPERTY){if(i===t[e])return yt}else if(s.type===Ot.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return yt}else if(s.type===Ot.ATTRIBUTE&&t.getAttribute(e)===i+"")return yt;return Ss(s),i}});var Q=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,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(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,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.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return p`<label part="base" class="${c("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${C(this.value)}" .indeterminate="${he(this.indeterminate)}" .checked="${he(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @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"} ${this.indeterminate?" control--indeterminate":""}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Q.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([g('input[type="checkbox"]')],Q.prototype,"input",2),o([g("#invalid-message")],Q.prototype,"invalidMessage",2),o([l()],Q.prototype,"title",2),o([l()],Q.prototype,"name",2),o([l()],Q.prototype,"value",2),o([l({reflect:!0})],Q.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"indeterminate",2),o([Ht("checked")],Q.prototype,"defaultChecked",2),o([l({reflect:!0})],Q.prototype,"form",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"required",2),o([E()],Q.prototype,"showInvalidStyle",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleStateChange",1),Q=o([y("sd-checkbox")],Q);var Tt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,d=this.hasSlotController.test("tooltip");return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${e||d?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${d?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${n}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>`}};Tt.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],Tt.prototype,"size",2),o([l({reflect:!0})],Tt.prototype,"orientation",2),o([l()],Tt.prototype,"label",2),o([l({attribute:"help-text"})],Tt.prototype,"helpText",2),o([w("size",{waitUntilFirstUpdate:!0})],Tt.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],Tt.prototype,"handleInvalid",1),Tt=o([y("sd-checkbox-group")],Tt);var _s=s=>s;var $r=s=>Array.from(s.assignedElements({flatten:!0})),Fn=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),Vn=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",Hs=s=>s.map(Fn),Is=s=>s.filter(Vn),Ui=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function Ps(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Tr=new Set;function Bn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function De(s){if(Tr.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Bn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function Se(s){Tr.delete(s),Tr.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function qt(s,i,t="vertical",e="smooth"){let r=Ps(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<u?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var ie=Math.min,xt=Math.max,ui=Math.round,mi=Math.floor,Kt=s=>({x:s,y:s}),Rn={left:"right",right:"left",bottom:"top",top:"bottom"},Un={start:"end",end:"start"};function qi(s,i,t){return xt(s,ie(i,t))}function _e(s,i){return typeof s=="function"?s(i):s}function pe(s){return s.split("-")[0]}function He(s){return s.split("-")[1]}function Lr(s){return s==="x"?"y":"x"}function Ki(s){return s==="y"?"height":"width"}function Ee(s){return["top","bottom"].includes(pe(s))?"y":"x"}function ji(s){return Lr(Ee(s))}function Fs(s,i,t){t===void 0&&(t=!1);let e=He(s),r=ji(s),a=Ki(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=pi(n)),[n,pi(n)]}function Vs(s){let i=pi(s);return[Ni(s),i,Ni(i)]}function Ni(s){return s.replace(/start|end/g,i=>Un[i])}function Nn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Bs(s,i,t,e){let r=He(s),a=Nn(pe(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ni)))),a}function pi(s){return s.replace(/left|right|bottom|top/g,i=>Rn[i])}function qn(s){return D({top:0,right:0,bottom:0,left:0},s)}function zr(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Rs(s,i,t){let{reference:e,floating:r}=s,a=Ee(i),n=ji(i),d=Ki(n),h=pe(i),u=a==="y",f=e.x+e.width/2-r.width/2,b=e.y+e.height/2-r.height/2,k=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:b};break;case"left":x={x:e.x-r.width,y:b};break;default:x={x:e.x,y:e.y}}switch(He(i)){case"start":x[n]-=k*(t&&u?-1:1);break;case"end":x[n]+=k*(t&&u?-1:1);break}return x}var Us=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:b}=Rs(u,e,h),k=e,x={},$=0;for(let z=0;z<d.length;z++){let{name:P,fn:_}=d[z],{x:q,y:K,data:tt,reset:et}=await _({x:f,y:b,initialPlacement:e,placement:k,strategy:r,middlewareData:x,rects:u,platform:n,elements:{reference:s,floating:i}});f=q!=null?q:f,b=K!=null?K:b,x=rt(D({},x),{[P]:D(D({},x[P]),tt)}),et&&$<=50&&($++,typeof et=="object"&&(et.placement&&(k=et.placement),et.rects&&(u=et.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):et.rects),{x:f,y:b}=Rs(u,k,h)),z=-1)}return{x:f,y:b,placement:k,strategy:r,middlewareData:x}};async function Yi(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:b="floating",altBoundary:k=!1,padding:x=0}=_e(i,s),$=zr(x),P=d[k?b==="floating"?"reference":"floating":b],_=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(P)))==null||t?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:u,rootBoundary:f,strategy:h})),q=b==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,K=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),tt=await(a.isElement==null?void 0:a.isElement(K))?await(a.getScale==null?void 0:a.getScale(K))||{x:1,y:1}:{x:1,y:1},et=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:q,offsetParent:K,strategy:h}):q);return{top:(_.top-et.top+$.top)/tt.y,bottom:(et.bottom-_.bottom+$.bottom)/tt.y,left:(_.left-et.left+$.left)/tt.x,right:(et.right-_.right+$.right)/tt.x}}var Ns=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:u,padding:f=0}=_e(s,i)||{};if(u==null)return{};let b=zr(f),k={x:t,y:e},x=ji(r),$=Ki(x),z=await n.getDimensions(u),P=x==="y",_=P?"top":"left",q=P?"bottom":"right",K=P?"clientHeight":"clientWidth",tt=a.reference[$]+a.reference[x]-k[x]-a.floating[$],et=k[x]-a.reference[x],Bt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),vt=Bt?Bt[K]:0;(!vt||!await(n.isElement==null?void 0:n.isElement(Bt)))&&(vt=d.floating[K]||a.floating[$]);let oe=tt/2-et/2,Qt=vt/2-z[$]/2-1,Rt=ie(b[_],Qt),fe=ie(b[q],Qt),Jt=Rt,be=vt-z[$]-fe,At=vt/2-z[$]/2+oe,Ut=qi(Jt,At,be),Re=!h.arrow&&He(r)!=null&&At!==Ut&&a.reference[$]/2-(At<Jt?Rt:fe)-z[$]/2<0,ae=Re?At<Jt?At-Jt:At-be:0;return{[x]:k[x]+ae,data:D({[x]:Ut,centerOffset:At-Ut-ae},Re&&{alignmentOffset:ae}),reset:Re}}});var qs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:u}=i,At=_e(s,i),{mainAxis:f=!0,crossAxis:b=!0,fallbackPlacements:k,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:z=!0}=At,P=xi(At,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let _=pe(r),q=Ee(d),K=pe(d)===d,tt=await(h.isRTL==null?void 0:h.isRTL(u.floating)),et=k||(K||!z?[pi(d)]:Vs(d)),Bt=$!=="none";!k&&Bt&&et.push(...Bs(d,z,$,tt));let vt=[d,...et],oe=await Yi(i,P),Qt=[],Rt=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Qt.push(oe[_]),b){let Ut=Fs(r,n,tt);Qt.push(oe[Ut[0]],oe[Ut[1]])}if(Rt=[...Rt,{placement:r,overflows:Qt}],!Qt.every(Ut=>Ut<=0)){var fe,Jt;let Ut=(((fe=a.flip)==null?void 0:fe.index)||0)+1,Re=vt[Ut];if(Re)return{data:{index:Ut,overflows:Rt},reset:{placement:Re}};let ae=(Jt=Rt.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,ge)=>Ue.overflows[1]-ge.overflows[1])[0])==null?void 0:Jt.placement;if(!ae)switch(x){case"bestFit":{var be;let Ue=(be=Rt.filter(ge=>{if(Bt){let ve=Ee(ge.placement);return ve===q||ve==="y"}return!0}).map(ge=>[ge.placement,ge.overflows.filter(ve=>ve>0).reduce((ve,yo)=>ve+yo,0)]).sort((ge,ve)=>ge[1]-ve[1])[0])==null?void 0:be[0];Ue&&(ae=Ue);break}case"initialPlacement":ae=d;break}if(r!==ae)return{reset:{placement:ae}}}return{}}}};async function Kn(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=pe(t),d=He(t),h=Ee(t)==="y",u=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,b=_e(i,s),{mainAxis:k,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:k*u}:{x:k*u,y:x*f}}var Ks=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await Kn(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:rt(D({},h),{placement:n})}}}},js=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,P=_e(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:_=>{let{x:q,y:K}=_;return{x:q,y:K}}}}=P,h=xi(P,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},f=await Yi(i,h),b=Ee(pe(r)),k=Lr(b),x=u[k],$=u[b];if(a){let _=k==="y"?"top":"left",q=k==="y"?"bottom":"right",K=x+f[_],tt=x-f[q];x=qi(K,x,tt)}if(n){let _=b==="y"?"top":"left",q=b==="y"?"bottom":"right",K=$+f[_],tt=$-f[q];$=qi(K,$,tt)}let z=d.fn(rt(D({},i),{[k]:x,[b]:$}));return rt(D({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[k]:a,[b]:n}}})}}};var Ys=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Rt=_e(s,i),{apply:h=()=>{}}=Rt,u=xi(Rt,["apply"]),f=await Yi(i,u),b=pe(r),k=He(r),x=Ee(r)==="y",{width:$,height:z}=a.floating,P,_;b==="top"||b==="bottom"?(P=b,_=k===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(_=b,P=k==="end"?"top":"bottom");let q=z-f.top-f.bottom,K=$-f.left-f.right,tt=ie(z-f[P],q),et=ie($-f[_],K),Bt=!i.middlewareData.shift,vt=tt,oe=et;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(oe=K),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(vt=q),Bt&&!k){let fe=xt(f.left,0),Jt=xt(f.right,0),be=xt(f.top,0),At=xt(f.bottom,0);x?oe=$-2*(fe!==0||Jt!==0?fe+Jt:xt(f.left,f.right)):vt=z-2*(be!==0||At!==0?be+At:xt(f.top,f.bottom))}await h(rt(D({},i),{availableWidth:oe,availableHeight:vt}));let Qt=await n.getDimensions(d.floating);return $!==Qt.width||z!==Qt.height?{reset:{rects:!0}}:{}}}};function Zi(){return typeof window!="undefined"}function Pe(s){return Xs(s)?(s.nodeName||"").toLowerCase():"#document"}function Lt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function jt(s){var i;return(i=(Xs(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Xs(s){return Zi()?s instanceof Node||s instanceof Lt(s).Node:!1}function It(s){return Zi()?s instanceof Element||s instanceof Lt(s).Element:!1}function Yt(s){return Zi()?s instanceof HTMLElement||s instanceof Lt(s).HTMLElement:!1}function Zs(s){return!Zi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Lt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Pt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ws(s){return["table","td","th"].includes(Pe(s))}function fi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Xi(s){let i=Wi(),t=It(s)?Pt(s):s;return["transform","translate","scale","rotate","perspective"].some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function Qs(s){let i=ue(s);for(;Yt(i)&&!Fe(i);){if(Xi(i))return i;if(fi(i))return null;i=ue(i)}return null}function Wi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(Pe(s))}function Pt(s){return Lt(s).getComputedStyle(s)}function bi(s){return It(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ue(s){if(Pe(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Zs(s)&&s.host||jt(s);return Zs(i)?i.host:i}function Js(s){let i=ue(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:Yt(i)&&Xe(i)?i:Js(i)}function Ze(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Js(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=Lt(r);if(a){let d=Qi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?Ze(d):[])}return i.concat(r,Ze(r,[],t))}function Qi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function eo(s){let i=Pt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=Yt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=ui(t)!==a||ui(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function Or(s){return It(s)?s:s.contextElement}function We(s){let i=Or(s);if(!Yt(i))return Kt(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=eo(i),n=(a?ui(t.width):t.width)/e,d=(a?ui(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var jn=Kt(0);function io(s){let i=Lt(s);return!Wi()||!i.visualViewport?jn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Yn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Lt(s)?!1:i}function Ve(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=Or(s),n=Kt(1);i&&(e?It(e)&&(n=We(e)):n=We(s));let d=Yn(a,t,e)?io(a):Kt(0),h=(r.left+d.x)/n.x,u=(r.top+d.y)/n.y,f=r.width/n.x,b=r.height/n.y;if(a){let k=Lt(a),x=e&&It(e)?Lt(e):e,$=k,z=Qi($);for(;z&&e&&x!==$;){let P=We(z),_=z.getBoundingClientRect(),q=Pt(z),K=_.left+(z.clientLeft+parseFloat(q.paddingLeft))*P.x,tt=_.top+(z.clientTop+parseFloat(q.paddingTop))*P.y;h*=P.x,u*=P.y,f*=P.x,b*=P.y,h+=K,u+=tt,$=Lt(z),z=Qi($)}}return Ie({width:f,height:b,x:h,y:u})}function Mr(s,i){let t=bi(s).scrollLeft;return i?i.left+t:Ve(jt(s)).left+t}function ro(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Mr(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Zn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=jt(e),d=i?fi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},u=Kt(1),f=Kt(0),b=Yt(e);if((b||!b&&!a)&&((Pe(e)!=="body"||Xe(n))&&(h=bi(e)),Yt(e))){let x=Ve(e);u=We(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let k=n&&!b&&!a?ro(n,h,!0):Kt(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+f.x+k.x,y:t.y*u.y-h.scrollTop*u.y+f.y+k.y}}function Xn(s){return Array.from(s.getClientRects())}function Wn(s){let i=jt(s),t=bi(s),e=s.ownerDocument.body,r=xt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=xt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Mr(s),d=-t.scrollTop;return Pt(e).direction==="rtl"&&(n+=xt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Qn(s,i){let t=Lt(s),e=jt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let u=Wi();(!u||u&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Jn(s,i){let t=Ve(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=Yt(s)?We(s):Kt(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,u=e*a.y;return{width:n,height:d,x:h,y:u}}function Gs(s,i,t){let e;if(i==="viewport")e=Qn(s,t);else if(i==="document")e=Wn(jt(s));else if(It(i))e=Jn(i,t);else{let r=io(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function so(s,i){let t=ue(s);return t===i||!It(t)||Fe(t)?!1:Pt(t).position==="fixed"||so(t,i)}function Gn(s,i){let t=i.get(s);if(t)return t;let e=Ze(s,[],!1).filter(d=>It(d)&&Pe(d)!=="body"),r=null,a=Pt(s).position==="fixed",n=a?ue(s):s;for(;It(n)&&!Fe(n);){let d=Pt(n),h=Xi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&so(s,n))?e=e.filter(f=>f!==n):r=d,n=ue(n)}return i.set(s,e),e}function tl(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?fi(i)?[]:Gn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((u,f)=>{let b=Gs(i,f,r);return u.top=xt(b.top,u.top),u.right=ie(b.right,u.right),u.bottom=ie(b.bottom,u.bottom),u.left=xt(b.left,u.left),u},Gs(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function el(s){let{width:i,height:t}=eo(s);return{width:i,height:t}}function il(s,i,t){let e=Yt(i),r=jt(i),a=t==="fixed",n=Ve(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Kt(0);if(e||!e&&!a)if((Pe(i)!=="body"||Xe(r))&&(d=bi(i)),e){let k=Ve(i,!0,a,i);h.x=k.x+i.clientLeft,h.y=k.y+i.clientTop}else r&&(h.x=Mr(r));let u=r&&!e&&!a?ro(r,d):Kt(0),f=n.left+d.scrollLeft-h.x-u.x,b=n.top+d.scrollTop-h.y-u.y;return{x:f,y:b,width:n.width,height:n.height}}function Ar(s){return Pt(s).position==="static"}function to(s,i){if(!Yt(s)||Pt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return jt(s)===t&&(t=t.ownerDocument.body),t}function oo(s,i){let t=Lt(s);if(fi(s))return t;if(!Yt(s)){let r=ue(s);for(;r&&!Fe(r);){if(It(r)&&!Ar(r))return r;r=ue(r)}return t}let e=to(s,i);for(;e&&Ws(e)&&Ar(e);)e=to(e,i);return e&&Fe(e)&&Ar(e)&&!Xi(e)?t:e||Qs(s)||t}var rl=async function(s){let i=this.getOffsetParent||oo,t=this.getDimensions,e=await t(s.floating);return{reference:il(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function sl(s){return Pt(s).direction==="rtl"}var ol={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:jt,getClippingRect:tl,getOffsetParent:oo,getElementRects:rl,getClientRects:Xn,getDimensions:el,getScale:We,isElement:It,isRTL:sl};function ao(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function al(s,i){let t=null,e,r=jt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let u=s.getBoundingClientRect(),{left:f,top:b,width:k,height:x}=u;if(d||i(),!k||!x)return;let $=mi(b),z=mi(r.clientWidth-(f+k)),P=mi(r.clientHeight-(b+x)),_=mi(f),K={rootMargin:-$+"px "+-z+"px "+-P+"px "+-_+"px",threshold:xt(0,ie(1,h))||1},tt=!0;function et(Bt){let vt=Bt[0].intersectionRatio;if(vt!==h){if(!tt)return n();vt?n(!1,vt):e=setTimeout(()=>{n(!1,1e-7)},1e3)}vt===1&&!ao(u,s.getBoundingClientRect())&&n(),tt=!1}try{t=new IntersectionObserver(et,rt(D({},K),{root:r.ownerDocument}))}catch(Bt){t=new IntersectionObserver(et,K)}t.observe(s)}return n(!0),a}function no(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=Or(s),f=r||a?[...u?Ze(u):[],...Ze(i)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});let b=u&&d?al(u,t):null,k=-1,x=null;n&&(x=new ResizeObserver(_=>{let[q]=_;q&&q.target===u&&x&&(x.unobserve(i),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var K;(K=x)==null||K.observe(i)})),t()}),u&&!h&&x.observe(u),x.observe(i));let $,z=h?Ve(s):null;h&&P();function P(){let _=Ve(s);z&&!ao(z,_)&&t(),z=_,$=requestAnimationFrame(P)}return t(),()=>{var _;f.forEach(q=>{r&&q.removeEventListener("scroll",t),a&&q.removeEventListener("resize",t)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame($)}}var lo=Ks;var co=js,ho=qs,Dr=Ys;var po=Ns;var uo=(s,i,t)=>{let e=new Map,r=D({platform:ol},t),a=rt(D({},r.platform),{_c:e});return Us(s,i,rt(D({},r),{platform:a}))};var I=class extends m{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=no(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[lo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Dr({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ho({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(co({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Dr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(po({element:this.arrowEl,padding:this.arrowPadding})),uo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let u=a.arrow.x,f=a.arrow.y,b="",k="",x="",$="";if(this.arrowPlacement==="start"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",k=d?z:"",$=d?"":z}else if(this.arrowPlacement==="end"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";k=d?"":z,$=d?z:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof u=="number"?`${u}px`:"",b=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:b,right:k,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};I.styles=[...m.styles,v`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([g('[part="popup"]')],I.prototype,"popup",2),o([g('[part="arrow"]')],I.prototype,"arrowEl",2),o([l()],I.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],I.prototype,"active",2),o([l({reflect:!0})],I.prototype,"placement",2),o([l({reflect:!0})],I.prototype,"strategy",2),o([l({type:Number})],I.prototype,"distance",2),o([l({type:Number})],I.prototype,"skidding",2),o([l({type:Boolean})],I.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],I.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],I.prototype,"arrowPadding",2),o([l({type:Boolean})],I.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],I.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],I.prototype,"flipFallbackStrategy",2),o([l({type:Object})],I.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],I.prototype,"flipPadding",2),o([l({type:Boolean})],I.prototype,"shift",2),o([l({type:Object})],I.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],I.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],I.prototype,"autoSize",2),o([l()],I.prototype,"sync",2),o([l({type:Object})],I.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],I.prototype,"autoSizePadding",2),I=o([y("sd-popup")],I);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){let t=this.isLink(),e=t?X`a`:X`button`;return F`<${e} part="base" type="${C(t?void 0:"button")}" href="${C(t?this.href:void 0)}" rel="${C(t&&this.target?"noreferrer noopener":void 0)}" target="${C(t?this.target:void 0)}" download="${C(t?this.download:void 0)}" ?disabled="${C(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${C(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?F`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([g("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new O(this,"help-text","label");this.localize=new S(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=_s;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Ui(t.value),a=Ui(t.getTextLabel()),n=Ui(e);return r.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
112
112
|
base:tag__base,
|
|
113
113
|
content:tag__content,
|
|
114
114
|
removable-indicator:tag__removable-indicator,
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
removable-indicator:tag__removable-indicator,
|
|
119
119
|
" size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let r=t.composedPath().some(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||r)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let r=t.target.closest("sd-option"),a=this.value;r&&!r.disabled&&(this.multiple?(this.toggleOptionSelection(r),this.lastOption=r,this.setOrderedSelectedOptions(r),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(r),this.setSelectedOptions(r)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==a&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let r=this.getCurrentOption(),a=e.indexOf(r),n=Math.max(0,a);if(t){let d=a+1;n=d>e.length-1?0:d}else{let d=a-1;n=d<0?e.length-1:d}this.setCurrentOption(e[n]),qt(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t){let e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach(r=>{r.current=!1,r.setAttribute("aria-selected","false")}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(r=>e.includes(r.value)):t.find(r=>r.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(r=>{r.selected=this.compareOptions(r,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(r=>this.compareOptions(r,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(r=>this.compareOptions(r,e))?this.selectedOptions=this.selectedOptions.filter(r=>!this.compareOptions(r,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,r,a;let t=this.selectedOptions.some(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((r=this.selectedOptions[0])==null?void 0:r.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(r=>this.filter(r,t)||t==="").map(r=>{var b,k,x;let a=r.cloneNode(!0);if(a.current=a.value===((b=this.lastOption)==null?void 0:b.value),a.selected=r.selected,a.checkbox=r.checkbox,a.size=r.size,!(((k=r.parentElement)==null?void 0:k.tagName.toLowerCase())==="sd-optgroup"))return a;let d=r.parentElement,h=(x=d.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),u=e.find($=>$.id===d.id);if(u){u==null||u.appendChild(a),h&&(u==null||u.appendChild(h));return}let f=d.cloneNode();return f.appendChild(a),h&&f.appendChild(h),e.push(f),f}).filter(Boolean)}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){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await j(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:r,options:a}=R(this,"combobox.show",{dir:this.localize.dir()});await B(this.popup.popup,r,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await j(this);let{keyframes:t,options:e}=R(this,"combobox.hide",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([U(this,"sd-after-show"),U(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,U(this,"sd-after-hide")}checkValidity(){return this.valueInput.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()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return Hs($r(this.defaultSlot)).flat()}getSlottedOptGroups(){return Is($r(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let r=this.findOptionByValue(t,this.value);this.selectedTextLabel=(r==null?void 0:r.getTextLabel())||"",t.forEach((a,n)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-combobox-option-${n}`}),e.forEach((a,n)=>{a.id=a.id||`sd-combobox-optgroup-${n}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),r=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,n=this.helpText?!0:!!r,d=this.clearable&&!this.disabled&&!this.visuallyDisabled,h=this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":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",u=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",f=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],k={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],x={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${c("relative text-left",u,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${a&&"inline-block mb-2"}" aria-hidden="${!a}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&!this.disabled&&!this.visuallyDisabled&&"bg-neutral-200",{disabled:"border-neutral-500",visuallyDisabled:"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"}[h],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
120
120
|
popup:popup__content,
|
|
121
|
-
"><div part="combobox" class="${c("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}">${t.left?p`<slot part="left" name="left" class="${c("inline-flex",k,f,x)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${c("flex items-center gap-1",k)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none bg-transparent flex-auto min-w-0",u,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map($=>$==null?void 0:$.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",u)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${d?p`<button part="clear-button" class="${c("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("text-icon-fill-neutral-800",x)}" name="closing-round" library="system"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c(b,x,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${c("flex-shrink-0 text-success",b,x)}" library="system" name="status-check"></sd-icon>`:""}<slot name="right" part="right" class="${c("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",x)}"><sd-icon class="${c("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};T.dependencies={"sd-icon":lt,"sd-popup":I,"sd-tag":st},T.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}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,1))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],o([g("sd-popup")],T.prototype,"popup",2),o([g('[part="combobox"]')],T.prototype,"combobox",2),o([g('[part="display-input"]')],T.prototype,"displayInput",2),o([g(".value-input")],T.prototype,"valueInput",2),o([g('[part="listbox"]')],T.prototype,"listbox",2),o([g('[part="tags"]')],T.prototype,"tagWrapper",2),o([g('[part="filtered-listbox"]')],T.prototype,"filteredWrapper",2),o([g("slot:not([name])")],T.prototype,"defaultSlot",2),o([g("#invalid-message")],T.prototype,"invalidMessage",2),o([E()],T.prototype,"hasHover",2),o([E()],T.prototype,"hasFocus",2),o([E()],T.prototype,"displayInputValue",2),o([E()],T.prototype,"selectedTextLabel",2),o([E()],T.prototype,"selectedOptions",2),o([E()],T.prototype,"filteredOptions",2),o([E()],T.prototype,"allOptions",2),o([E()],T.prototype,"lastOption",2),o([E()],T.prototype,"showValidStyle",2),o([E()],T.prototype,"showInvalidStyle",2),o([l()],T.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],T.prototype,"value",2),o([Ht()],T.prototype,"defaultValue",2),o([l({reflect:!0})],T.prototype,"size",2),o([l()],T.prototype,"placeholder",2),o([l({attribute:"max-options-tag-label"})],T.prototype,"maxOptionsTagLabel",2),o([l({reflect:!0,type:Boolean})],T.prototype,"disabled",2),o([l({reflect:!0,type:Boolean,attribute:"visually-disabled"})],T.prototype,"visuallyDisabled",2),o([l({type:Boolean})],T.prototype,"clearable",2),o([l({reflect:!0,type:Boolean})],T.prototype,"open",2),o([l({type:Boolean})],T.prototype,"hoist",2),o([l()],T.prototype,"label",2),o([l({reflect:!0})],T.prototype,"placement",2),o([l({attribute:"help-text"})],T.prototype,"helpText",2),o([l({reflect:!0})],T.prototype,"form",2),o([l({reflect:!0,type:Boolean})],T.prototype,"required",2),o([E()],T.prototype,"currentPlacement",2),o([l()],T.prototype,"getOption",2),o([l({type:Boolean,reflect:!0})],T.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],T.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],T.prototype,"maxOptionsVisible",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],T.prototype,"styleOnValid",2),o([l()],T.prototype,"filter",2),o([l()],T.prototype,"getTag",2),o([w("filter",{waitUntilFirstUpdate:!0})],T.prototype,"handleFilterChange",1),o([w("useTags",{waitUntilFirstUpdate:!0})],T.prototype,"handleUseTagsChange",1),o([w("size",{waitUntilFirstUpdate:!0})],T.prototype,"applySizeToOptions",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],T.prototype,"handleDisabledChange",1),o([w("value",{waitUntilFirstUpdate:!0})],T.prototype,"handleValueChange",1),o([w("displayInputValue",{waitUntilFirstUpdate:!0})],T.prototype,"handleDisplayInputValueChange",1),o([w("open",{waitUntilFirstUpdate:!0})],T.prototype,"handleOpenChange",1),T=o([y("sd-combobox")],T);H("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});function mo(s){let i=s.tagName.toLowerCase();return s.getAttribute("tabindex")==="-1"||s.hasAttribute("disabled")||s.hasAttribute("aria-disabled")&&s.getAttribute("aria-disabled")!=="false"||i==="input"&&s.getAttribute("type")==="radio"&&!s.hasAttribute("checked")||s.offsetParent===null&&!(s.getRootNode()instanceof ShadowRoot)||window.getComputedStyle(s).visibility==="hidden"?!1:(i==="audio"||i==="video")&&s.hasAttribute("controls")||s.hasAttribute("tabindex")||s.hasAttribute("contenteditable")&&s.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function Ji(s){var a,n;let i=[];function t(d){d instanceof HTMLElement&&(i.push(d),d.shadowRoot!==null&&d.shadowRoot.mode==="open"&&t(d.shadowRoot)),[...d.children].forEach(h=>t(h))}t(s);let e=(a=i.find(d=>mo(d)))!=null?a:null,r=(n=i.reverse().find(d=>mo(d)))!=null?n:null;return{start:e,end:r}}var gi=[],Be=class{constructor(i){this.tabDirection="forward";this.element=i,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){gi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){gi=gi.filter(i=>i!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return gi[gi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){let{start:i,end:t}=Ji(this.element),e=this.tabDirection==="forward"?i:t;typeof(e==null?void 0:e.focus)=="function"&&e.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(i){i.key==="Tab"&&i.shiftKey&&(this.tabDirection="backward",requestAnimationFrame(()=>this.checkFocus()))}handleKeyUp(){this.tabDirection="forward"}};var kt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"footer");this.localize=new S(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new Be(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),De(this))}disconnectedCallback(){super.disconnectedCallback(),Se(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=R(this,"dialog.denyClose",{dir:this.localize.dir()});B(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),De(this);let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([j(this.dialog),j(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});let e=R(this,"dialog.show",{dir:this.localize.dir()}),r=R(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([B(this.panel,e.keyframes,e.options),B(this.overlay,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([j(this.dialog),j(this.overlay)]);let t=R(this,"dialog.hide",{dir:this.localize.dir()}),e=R(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([B(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),B(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Se(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&setTimeout(()=>r.focus()),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return p`<div part="base" class="${c("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${c("flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?p`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:p`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":p`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};kt.styles=[...m.styles,v`:host{--width:662px}[part=panel]{max-height:80vh;width:var(--width)}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],o([g('[part="base"]')],kt.prototype,"dialog",2),o([g('[part="panel"]')],kt.prototype,"panel",2),o([g('[part="overlay"]')],kt.prototype,"overlay",2),o([l({type:Boolean,reflect:!0})],kt.prototype,"open",2),o([l({reflect:!0})],kt.prototype,"headline",2),o([l({attribute:"no-close-button",type:Boolean,reflect:!0})],kt.prototype,"noCloseButton",2),o([w("open",{waitUntilFirstUpdate:!0})],kt.prototype,"handleOpenChange",1),kt=o([y("sd-dialog")],kt);H("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});H("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});H("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});H("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});H("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Ft=class extends m{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return p`<hr part="main" aria-orientation="${this.orientation}" class="${c(this.inverted?"border-primary-400":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};Ft.styles=[...m.styles,v`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],o([l({reflect:!0})],Ft.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],Ft.prototype,"inverted",2),Ft=o([y("sd-divider")],Ft);function Sr(s){return s.charAt(0).toUpperCase()+s.slice(1)}var dt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"footer");this.localize=new S(this);this.modal=new Be(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),De(this)))}disconnectedCallback(){super.disconnectedCallback(),Se(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=R(this,"drawer.denyClose",{dir:this.localize.dir()});B(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var e;let t=(e=this.closeButton.shadowRoot)==null?void 0:e.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),De(this));let r=this.querySelector("[autofocus]");r&&r.removeAttribute("autofocus"),await Promise.all([j(this.drawer),j(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(r?r.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),r?r.setAttribute("autofocus",""):this.closeButton.focus()});let a=R(this,`drawer.show${Sr(this.placement)}`,{dir:this.localize.dir()}),n=R(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([B(this.panel,a.keyframes,a.options),B(this.overlay,n.keyframes,n.options)]),t==null||t.setAttribute("aria-controls","drawer"),t==null||t.setAttribute("aria-expanded","true"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Se(this)),await Promise.all([j(this.drawer),j(this.overlay)]);let r=R(this,`drawer.hide${Sr(this.placement)}`,{dir:this.localize.dir()}),a=R(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([B(this.overlay,a.keyframes,a.options).then(()=>{this.overlay.hidden=!0}),B(this.panel,r.keyframes,r.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.drawer.setAttribute("inert",""),this.overlay.hidden=!1,this.panel.hidden=!1;let n=this.originalTrigger;typeof(n==null?void 0:n.focus)=="function"&&setTimeout(()=>n.focus()),t==null||t.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),De(this)),this.open&&this.contained&&(this.modal.deactivate(),Se(this))}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return p`<section id="drawer" part="base" class="${c("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}" aria-label="${this.label}"><div part="overlay" class="${c("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${c("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-labelledby="label" tabindex="0"><p class="sr-only" id="label">${this.label}</p>${this.noHeader?p`<sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 right-2"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button>`:p`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4" tabindex="0"><slot></slot></div><footer part="footer" class="${c(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></section>`}};dt.styles=[...m.styles,v`:host{--width:25rem;display:contents}:host([contained]){z-index:auto}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],o([g("[part=base]")],dt.prototype,"drawer",2),o([g("[part=panel]")],dt.prototype,"panel",2),o([g("[part=overlay]")],dt.prototype,"overlay",2),o([g("[part=close-button]")],dt.prototype,"closeButton",2),o([l({type:Boolean,reflect:!0})],dt.prototype,"open",2),o([l({attribute:"label",reflect:!0})],dt.prototype,"label",2),o([l({reflect:!0})],dt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],dt.prototype,"contained",2),o([l({attribute:"no-header",type:Boolean})],dt.prototype,"noHeader",2),o([w("open",{waitUntilFirstUpdate:!0})],dt.prototype,"handleOpenChange",1),o([w("contained",{waitUntilFirstUpdate:!0})],dt.prototype,"handleNoModalChange",1),dt=o([y("sd-drawer")],dt);H("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});H("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});H("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});H("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});H("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});H("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});H("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var G=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(a=>Ji(a).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":r=e.button;break;case"sd-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var a,n,d,h,u,f,b,k,x,$,z,P;let r=((u=(h=(d=(n=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:n.activeElement)==null?void 0:d.shadowRoot)==null?void 0:h.activeElement)==null?void 0:u.getRootNode())instanceof ShadowRoot?(x=(k=(b=(f=document.activeElement)==null?void 0:f.shadowRoot)==null?void 0:b.activeElement)==null?void 0:k.shadowRoot)==null?void 0:x.activeElement:(($=this.containingElement)==null?void 0:$.getRootNode())instanceof ShadowRoot?(P=(z=document.activeElement)==null?void 0:z.shadowRoot)==null?void 0:P.activeElement:document.activeElement;(!this.containingElement||(r==null?void 0:r.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;qt(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),a=r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await j(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=R(this,"dropdown.show",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await j(this);let{keyframes:t,options:e}=R(this,"dropdown.hide",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return p`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${c("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};G.styles=[...m.styles,v`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([g("#dropdown")],G.prototype,"popup",2),o([g("[part=trigger]")],G.prototype,"trigger",2),o([g("[part=panel]")],G.prototype,"panel",2),o([l({type:Boolean,reflect:!0})],G.prototype,"open",2),o([l({type:Boolean,reflect:!0})],G.prototype,"rounded",2),o([l({reflect:!0})],G.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],G.prototype,"disabled",2),o([l({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],G.prototype,"stayOpenOnSelect",2),o([l({attribute:!1})],G.prototype,"containingElement",2),o([l({type:Number})],G.prototype,"distance",2),o([l({type:Number})],G.prototype,"skidding",2),o([l({type:Boolean,reflect:!0,attribute:"no-auto-size"})],G.prototype,"noAutoSize",2),o([l({type:Boolean,reflect:!0,attribute:"no-flip"})],G.prototype,"noFlip",2),o([l({type:Boolean})],G.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],G.prototype,"handleOpenChange",1),G=o([y("sd-dropdown")],G);H("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Mt=class extends m{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new S(this)}updateMaxHeight(){var e;let t=(e=this.contentPreview)==null?void 0:e.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${t}px`),this.style.setProperty("--max-height",t)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}onOpenChange(){this.open?(this.emit("sd-show"),this.updateComplete.then(()=>{this.emit("sd-after-show")})):(this.emit("sd-hide"),this.updateComplete.then(()=>{this.emit("sd-after-hide")})),this.details.setAttribute("open",this.open.toString())}async show(){if(!this.open)return this.onToggleClick(),U(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),U(this,"sd-after-hide")}render(){return p`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${c("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${c("h-full justify-center w-full text-base flex items-center toggle")}">${this.open?p`<slot name="toggle-open"><sd-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-icon>${this.localize.term("showLess")}</slot>`:p`<slot name="toggle-closed"><sd-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-icon>${this.localize.term("showMore")}</slot>`}</div></button><details part="details" aria-hidden="${!this.open}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(r=>{let a=r.cloneNode(!0);t.appendChild(a)}),this.appendChild(t)}};Mt.styles=[...m.styles,v`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content{max-block-size:var(--max-height-pixel,1000vh)}:host(:not([open])) .content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);position:absolute;width:100%}:host([inverted]:not([open])) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}`],o([g(".content-preview")],Mt.prototype,"contentPreview",2),o([g("details")],Mt.prototype,"details",2),o([l({type:Boolean,reflect:!0})],Mt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],Mt.prototype,"inverted",2),o([w("open",{waitUntilFirstUpdate:!0})],Mt.prototype,"onOpenChange",1),Mt=o([y("sd-expandable")],Mt);var Ct=class extends m{constructor(){super(...arguments);this.flipDirection="horizontal";this.placement="top";this.frontVariant="primary";this.backVariant="primary";this.activeSide="front"}connectedCallback(){super.connectedCallback()}flipFront(){this.activeSide="back",this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),setTimeout(()=>{this.back.focus()})}flipBack(){this.activeSide="front",this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),setTimeout(()=>{this.front.focus()})}handleFrontKeydown(t){t.code==="Enter"&&this.front===t.target&&this.flipFront()}handleBackKeydown(t){t.code==="Enter"&&this.back===t.target&&this.flipBack()}render(){return p`<div part="base" class="${c("flip-card relative h-full w-full")}"><div part="front" tabindex="0" aria-hidden="${this.activeSide==="back"}" inert="${C(this.activeSide==="back"||void 0)}" class="${c("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.frontVariant==="primary"&&"bg-primary",this.frontVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-front" class="${c("absolute h-full w-full -z-20",(this.frontVariant==="primary"||this.frontVariant==="primary-100")&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.frontVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/75 to-primary-800/60":"bg-gradient-to-b from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-white/0 mb-auto":"bg-gradient-to-t from-white/60 to-white/0 mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto":"bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"}[this.frontVariant])}"></div><sd-button part="front-button" size="md" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.frontVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.frontVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-icon library="system" name="reload" label="Flip to Back"></sd-icon></sd-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide==="front"}" inert="${C(this.activeSide==="front"||void 0)}" class="${c("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.backVariant==="primary"&&"bg-primary",this.backVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-back" class="${c("absolute h-full w-full -z-20",(this.backVariant==="primary"||this.backVariant==="primary-100")&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.backVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/75 to-primary-800/60":"bg-gradient-to-b from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-white/0 mb-auto":"bg-gradient-to-t from-white/60 to-white/0 mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto":"bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"}[this.backVariant])}"></div><sd-button size="md" part="back-button" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.backVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.backVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-icon library="system" name="reload" label="Flip to Front"></sd-icon></sd-button></div></div>`}};Ct.styles=[...m.styles,v`:host{aspect-ratio:3/4;display:block;--name:"";--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}`],o([g('[part="front"]')],Ct.prototype,"front",2),o([g('[part="back"]')],Ct.prototype,"back",2),o([l({reflect:!0,attribute:"flip-direction"})],Ct.prototype,"flipDirection",2),o([l({reflect:!0})],Ct.prototype,"placement",2),o([l({type:String,reflect:!0,attribute:"front-variant"})],Ct.prototype,"frontVariant",2),o([l({type:String,reflect:!0,attribute:"back-variant"})],Ct.prototype,"backVariant",2),o([E()],Ct.prototype,"activeSide",2),Ct=o([y("sd-flipcard")],Ct);var re=class extends m{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),(t=this.resizeObserver)==null||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.onResize()}),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return p`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};re.styles=[...m.styles,v`:host{display:block}:host([fixed]){left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:"";height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`],o([l({reflect:!0,type:Boolean})],re.prototype,"fixed",2),o([Bi(100)],re.prototype,"onResize",1),re=o([y("sd-header")],re);var Vt=class extends m{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(t){let e=document.createElement("script");[...t.attributes].forEach(r=>e.setAttribute(r.name,r.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{let t=this.src,e=await Hi(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sd-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(r=>this.executeScript(r)),this.emit("sd-load")}catch(t){this.emit("sd-error",{detail:{status:-1}})}}render(){return p`<slot></slot>`}};Vt.styles=[...m.styles,v`:host{display:block}`],o([l()],Vt.prototype,"src",2),o([l()],Vt.prototype,"mode",2),o([l({attribute:"allow-scripts",type:Boolean})],Vt.prototype,"allowScripts",2),o([w("src")],Vt.prototype,"handleSrcChange",1),Vt=o([y("sd-include")],Vt);var vi=(s,i)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let r of t)(e=r._$AO)==null||e.call(r,i,!1),vi(r,i);return!0},Gi=s=>{let i,t;do{if((i=s._$AM)===void 0)break;t=i._$AN,t.delete(s),s=i}while((t==null?void 0:t.size)===0)},fo=s=>{for(let i;i=s._$AM;s=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(s))break;t.add(s),dl(i)}};function nl(s){this._$AN!==void 0?(Gi(this),this._$AM=s,fo(this)):this._$AM=s}function ll(s,i=!1,t=0){let e=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(e))for(let a=t;a<e.length;a++)vi(e[a],!1),Gi(e[a]);else e!=null&&(vi(e,!1),Gi(e));else vi(this,s)}var dl=s=>{var i,t;s.type==Ot.CHILD&&((i=s._$AP)!=null||(s._$AP=ll),(t=s._$AQ)!=null||(s._$AQ=nl))},tr=class extends ke{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),fo(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,r;i!==this.isConnected&&(this.isConnected=i,i?(e=this.reconnected)==null||e.call(this):(r=this.disconnected)==null||r.call(this)),t&&(vi(this,i),Gi(this))}setValue(i){if(Ri(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var _r=class extends tr{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Ot.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return Y}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=D({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),yt}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(r=>{r.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Hr=de(_r);var bo,cl=(bo=navigator.userAgentData)==null?void 0:bo.brands.some(s=>s.brand.includes("Chromium")),hl=cl?!1:navigator.userAgent.includes("Firefox"),A=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this);this.hasSlotController=new O(this,"help-text","label","left","right","message","placeholder");this.localize=new S(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleSearchClick(t){this.emit("sd-search"),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.input.setRangeText(t,e,r,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,d=this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":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",h=this.size==="sm"?"text-sm":"text-base",u={disabled:"border-neutral-500",visuallyDisabled:"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"}[d],f=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],k={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${c(this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e||n?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",h)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",u)}"></div><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-all",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",d==="disabled"||d==="visuallyDisabled"?"text-neutral-500":"text-black")}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",f,k)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder-neutral-500":"placeholder-neutral-700",this.size==="sm"?"h-6":"h-8",h,this.visuallyDisabled&&"cursor-not-allowed")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${C(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${C(this.placeholder)}" minlength="${C(this.minlength)}" maxlength="${C(this.maxlength)}" min="${C(this.min)}" max="${C(this.max)}" step="${C(this.step)}" .value="${he(this.value)}" autocapitalize="${C(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${C(this.type==="password"?"off":this.autocomplete)}" autocorrect="${C(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${C(this.pattern)}" enterkeyhint="${C(this.enterkeyhint)}" inputmode="${C(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?p`<button part="clear-button" class="${c("flex justify-center",b)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("icon-fill-neutral-800",k)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?p`<slot name="show-password-icon"><sd-icon class="${c(f,b,k)}" library="system" name="eye"></sd-icon></slot>`:p`<slot name="hide-password-icon"><sd-icon class="${c(f,b,k)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!hl?p`<sd-icon class="${c(f,b,k)}" library="system" name="calendar"></sd-icon>`:""} ${this.type==="time"?p`<sd-icon class="${c(f,b,k)}" library="system" name="clock"></sd-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",b)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${c(f,k)}" library="system" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",b,k)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",b,k)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",f,b,k)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?p`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Hr({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${c(f,b,k)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Hr({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${c(f,b,k)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};A.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`],o([g("#input")],A.prototype,"input",2),o([g("#invalid-message")],A.prototype,"invalidMessage",2),o([E()],A.prototype,"hasFocus",2),o([E()],A.prototype,"showValidStyle",2),o([E()],A.prototype,"showInvalidStyle",2),o([l({reflect:!0})],A.prototype,"type",2),o([l({reflect:!0})],A.prototype,"size",2),o([l()],A.prototype,"inputmode",2),o([l()],A.prototype,"value",2),o([Ht()],A.prototype,"defaultValue",2),o([l()],A.prototype,"placeholder",2),o([l()],A.prototype,"label",2),o([l({attribute:"help-text"})],A.prototype,"helpText",2),o([l({type:Boolean})],A.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],A.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],A.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],A.prototype,"readonly",2),o([l({attribute:"password-toggle",type:Boolean})],A.prototype,"passwordToggle",2),o([l({attribute:"password-visible",type:Boolean})],A.prototype,"passwordVisible",2),o([l({attribute:"spin-buttons",type:Boolean})],A.prototype,"spinButtons",2),o([l({type:Number})],A.prototype,"minlength",2),o([l({type:Number})],A.prototype,"maxlength",2),o([l()],A.prototype,"min",2),o([l()],A.prototype,"max",2),o([l({reflect:!0})],A.prototype,"form",2),o([l()],A.prototype,"name",2),o([l()],A.prototype,"title",2),o([l({type:Boolean,reflect:!0})],A.prototype,"required",2),o([l()],A.prototype,"pattern",2),o([l()],A.prototype,"step",2),o([l()],A.prototype,"autocapitalize",2),o([l()],A.prototype,"autocorrect",2),o([l()],A.prototype,"autocomplete",2),o([l({type:Boolean})],A.prototype,"autofocus",2),o([l()],A.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],A.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],A.prototype,"spellcheck",2),o([w("disabled",{waitUntilFirstUpdate:!0})],A.prototype,"handleDisabledChange",1),o([w("step",{waitUntilFirstUpdate:!0})],A.prototype,"handleStepChange",1),o([w("value",{waitUntilFirstUpdate:!0})],A.prototype,"handleValueChange",1),A=o([y("sd-input")],A);var wt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href="";this.visuallyDisabled=!1}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){this.visuallyDisabled&&(t.preventDefault(),t.stopPropagation())}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){let t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return p`<a part="base" class="${c("inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:outline-none":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"],this.standalone&&"flex items-start")}" href="${C(this.href||void 0)}" target="${C(this.target||void 0)}" download="${C(this.download)}" rel="${C(this.target?"noreferrer noopener":void 0)}" aria-disabled="${!this.href||this.visuallyDisabled?"true":"false"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${c("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${c("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};wt.styles=[...m.styles,v`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],o([g("a")],wt.prototype,"button",2),o([l({type:Boolean,reflect:!0})],wt.prototype,"standalone",2),o([l({reflect:!0})],wt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],wt.prototype,"inverted",2),o([l()],wt.prototype,"href",2),o([l({type:Boolean,attribute:"visually-disabled"})],wt.prototype,"visuallyDisabled",2),o([l()],wt.prototype,"target",2),o([l()],wt.prototype,"download",2),wt=o([y("sd-link")],wt);var Lt=class extends m{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.marker={cluster:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`;return F`<${e} part="base" class="${c("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${C(t?this.href:void 0)}" target="${C(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${C(this.notInteractive||t?void 0:"button")}" aria-labelledby="${C(this.notInteractive?void 0:"content")}"><div part="marker" class="${c("inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",this.variant==="main"&&this.state==="hover"&&"fill-accent-550",this.variant==="main"&&this.state==="active"&&"fill-accent-700",this.variant==="main"&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700",this.variant==="place"&&this.state==="default"&&"fill-white",this.variant==="place"&&this.state==="hover"&&"fill-primary-100",this.variant==="place"&&this.state==="active"&&"fill-primary-200",this.variant==="place"&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent",place:""}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${c("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Lt.styles=[...m.styles,v`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}`],o([l({reflect:!0})],Lt.prototype,"variant",2),o([l({reflect:!0})],Lt.prototype,"state",2),o([l({type:Boolean,reflect:!0})],Lt.prototype,"animated",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],Lt.prototype,"notInteractive",2),o([l()],Lt.prototype,"href",2),o([l()],Lt.prototype,"target",2),Lt=o([y("sd-map-marker")],Lt);var it=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"[default]","description","children");this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?X`summary`:this.separated?X`div`:this.isLink?X`a`:X`button`}render(){let t=this.tag,e=this.isLink,r=this.isButton,a=this.isAccordion,n={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},d=this.vertical?"pb-3":"pb-2",h=F`<${t} part="base" class="${c("cursor-pointer relative focus-visible:focus-outline",{md:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",a?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${C(a?"navigation-item-details":void 0)}" aria-current="${C(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${C(r?this.disabled:void 0)}" href="${C(e?this.href:void 0)}" target="${C(e?this.target:void 0)}" download="${C(e?this.download:void 0)}" rel="${C(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:a?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${c("relative pt-3 inline-flex justify-between items-center",a?"grow":"w-full",n.description||this.separated?"pb-1":d,this.calculatePaddingX)}">${this.divider&&this.vertical?F`<sd-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?F`<a class="${c("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!n.description&&"py-4")}" href="${C(e?this.href:void 0)}" target="${C(e?this.target:void 0)}" download="${C(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:F`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||n.children)&&this.vertical?this.separated?F`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("mr-4 h-6 w-6 transition-all",a||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:F`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",a?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${n.description&&this.vertical?F`<slot name="description" part="description" class="${c("inline-block text-sm text-left text-black",a||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,d)}"></slot>`:""}</${t}>`;return a?F`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${h}<slot name="children"></slot></details>`:this.separated?F`<div part="details" id="navigation-item-details" class="relative flex flex-col">${h}${this.open?F`<slot name="children"></slot>`:""}</div>`:F`${h}`}};it.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],o([g('a[part="base"], button[part="base"]')],it.prototype,"button",2),o([l({type:Boolean,reflect:!0})],it.prototype,"vertical",2),o([l({reflect:!0})],it.prototype,"size",2),o([l({reflect:!0})],it.prototype,"href",2),o([l()],it.prototype,"target",2),o([l()],it.prototype,"download",2),o([l({type:Boolean,reflect:!0})],it.prototype,"current",2),o([l({type:Boolean,reflect:!0})],it.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],it.prototype,"chevron",2),o([l({type:Boolean,reflect:!0})],it.prototype,"relaxed",2),o([l({type:Boolean,reflect:!0})],it.prototype,"divider",2),o([l({type:Boolean,reflect:!0})],it.prototype,"indented",2),o([l({type:Boolean,reflect:!0})],it.prototype,"open",2),o([l({type:Boolean,reflect:!0})],it.prototype,"separated",2),it=o([y("sd-navigation-item")],it);var go=Object.assign(document.createElement("div"),{role:"region",className:"sd-toast-stack sd-toast-stack--top-right"}),vo=Object.assign(document.createElement("div"),{role:"region",className:"sd-toast-stack sd-toast-stack--bottom-center"}),ut=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now();this.tabDirection="forward";this.focused=!1}get stack(){return{"top-right":go,"bottom-center":vo}[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications")),this.handleFocusIn=this.handleFocusIn.bind(this),document.addEventListener("focusin",this.handleFocusIn)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.handleFocusIn)}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}checkFocus(){if(!(!this.focused||!this.closable)&&!this.matches(":focus-within")){let t=this.tabDirection==="forward"?this.base:this.close;typeof(t==null?void 0:t.focus)=="function"&&t.focus({preventScroll:!0})}}handleFocusIn(){this.focused=!0}handleKeyDown(t){if(this.tabDirection="forward",this.closable&&t.key==="Escape"){this.hide();return}t.key==="Tab"&&t.shiftKey&&(this.tabDirection="backwards"),requestAnimationFrame(()=>this.checkFocus())}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await j(this.base),this.base.hidden=!1;let{keyframes:t,options:e}=R(this,"notification.show",{dir:this.localize.dir()});await B(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await j(this.base);let{keyframes:t,options:e}=R(this,"notification.hide",{dir:this.localize.dir()});await B(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}async toast(){return new Promise(t=>{let e=this.toastStack==="bottom-center"?vo:go;e.parentElement===null&&document.body.append(e),e.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{e.removeChild(this),t(),e.querySelector("sd-notification")===null&&e.remove()},{once:!0})})}render(){return p`<div part="base" class="${c("w-full overflow-hidden flex items-stretch relative m-2 focus-visible:focus-outline")}" role="alert" id="notification" tabindex="0" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><slot name="icon" part="icon" class="${c("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${c("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?p`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?p`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${c("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};ut.styles=[...m.styles,v`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],o([g('[part~="base"]')],ut.prototype,"base",2),o([g('[part~="close-button"]')],ut.prototype,"close",2),o([l({reflect:!0})],ut.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"open",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"closable",2),o([l({type:Number})],ut.prototype,"duration",2),o([l({type:Boolean,reflect:!0,attribute:"duration-indicator"})],ut.prototype,"durationIndicator",2),o([l({reflect:!0,attribute:"toast-stack"})],ut.prototype,"toastStack",2),o([w("open",{waitUntilFirstUpdate:!0})],ut.prototype,"handleOpenChange",1),o([w("duration")],ut.prototype,"handleDurationChange",1),ut=o([y("sd-notification")],ut);H("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});H("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});var ct=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var t;return((t=this.textContent)!=null?t:"").trim()}render(){let t={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return p`<div part="base" class="${c("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${c("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?p`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t.left?p`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${t.right?p`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ct.styles=[...m.styles,v`:host{display:block;outline:2px solid transparent!important;outline-offset:2px!important;position:relative;width:100%}`],o([g('[part="base"]')],ct.prototype,"defaultSlot",2),o([E()],ct.prototype,"current",2),o([E()],ct.prototype,"selected",2),o([E()],ct.prototype,"hasHover",2),o([l({reflect:!0})],ct.prototype,"size",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"checkbox",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"disabled",2),o([l({reflect:!0})],ct.prototype,"value",2),o([w("disabled")],ct.prototype,"handleDisabledChange",1),o([w("selected")],ct.prototype,"handleSelectedChange",1),o([w("value")],ct.prototype,"handleValueChange",1),ct=o([y("sd-option")],ct);var Dt=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return F`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-divider id="divider" class="pt-2 pb-4" part="divider"></sd-divider><div part="label-container" class="${c(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};Dt.dependencies={"sd-divider":Ft},Dt.styles=[...m.styles,v`:host{--display-divider:block}#divider{display:var(--display-divider)}`],o([g("slot:not([name])")],Dt.prototype,"defaultSlot",2),o([l({reflect:!0,type:Boolean})],Dt.prototype,"disabled",2),o([l()],Dt.prototype,"label",2),o([w("disabled",{waitUntilFirstUpdate:!0})],Dt.prototype,"handleDisabledChange",1),Dt=o([y("sd-optgroup")],Dt);var me=class extends ft{constructor(){super(...arguments);this.expandable=!1}render(){let t=this.expandable?X`details`:X`div`,e=this.expandable?X`summary`:X`div`;return F`
|
|
121
|
+
"><div part="combobox" class="${c("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}">${t.left?p`<slot part="left" name="left" class="${c("inline-flex",k,f,x)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${c("flex items-center gap-1",k)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none bg-transparent flex-auto min-w-0",u,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map($=>$==null?void 0:$.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",u)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${d?p`<button part="clear-button" class="${c("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("text-icon-fill-neutral-800",x)}" name="closing-round" library="system"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c(b,x,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${c("flex-shrink-0 text-success",b,x)}" library="system" name="status-check"></sd-icon>`:""}<slot name="right" part="right" class="${c("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",x)}"><sd-icon class="${c("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};T.dependencies={"sd-icon":lt,"sd-popup":I,"sd-tag":st},T.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}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,1))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],o([g("sd-popup")],T.prototype,"popup",2),o([g('[part="combobox"]')],T.prototype,"combobox",2),o([g('[part="display-input"]')],T.prototype,"displayInput",2),o([g(".value-input")],T.prototype,"valueInput",2),o([g('[part="listbox"]')],T.prototype,"listbox",2),o([g('[part="tags"]')],T.prototype,"tagWrapper",2),o([g('[part="filtered-listbox"]')],T.prototype,"filteredWrapper",2),o([g("slot:not([name])")],T.prototype,"defaultSlot",2),o([g("#invalid-message")],T.prototype,"invalidMessage",2),o([E()],T.prototype,"hasHover",2),o([E()],T.prototype,"hasFocus",2),o([E()],T.prototype,"displayInputValue",2),o([E()],T.prototype,"selectedTextLabel",2),o([E()],T.prototype,"selectedOptions",2),o([E()],T.prototype,"filteredOptions",2),o([E()],T.prototype,"allOptions",2),o([E()],T.prototype,"lastOption",2),o([E()],T.prototype,"showValidStyle",2),o([E()],T.prototype,"showInvalidStyle",2),o([l()],T.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],T.prototype,"value",2),o([Ht()],T.prototype,"defaultValue",2),o([l({reflect:!0})],T.prototype,"size",2),o([l()],T.prototype,"placeholder",2),o([l({attribute:"max-options-tag-label"})],T.prototype,"maxOptionsTagLabel",2),o([l({reflect:!0,type:Boolean})],T.prototype,"disabled",2),o([l({reflect:!0,type:Boolean,attribute:"visually-disabled"})],T.prototype,"visuallyDisabled",2),o([l({type:Boolean})],T.prototype,"clearable",2),o([l({reflect:!0,type:Boolean})],T.prototype,"open",2),o([l({type:Boolean})],T.prototype,"hoist",2),o([l()],T.prototype,"label",2),o([l({reflect:!0})],T.prototype,"placement",2),o([l({attribute:"help-text"})],T.prototype,"helpText",2),o([l({reflect:!0})],T.prototype,"form",2),o([l({reflect:!0,type:Boolean})],T.prototype,"required",2),o([E()],T.prototype,"currentPlacement",2),o([l()],T.prototype,"getOption",2),o([l({type:Boolean,reflect:!0})],T.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],T.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],T.prototype,"maxOptionsVisible",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],T.prototype,"styleOnValid",2),o([l()],T.prototype,"filter",2),o([l()],T.prototype,"getTag",2),o([w("filter",{waitUntilFirstUpdate:!0})],T.prototype,"handleFilterChange",1),o([w("useTags",{waitUntilFirstUpdate:!0})],T.prototype,"handleUseTagsChange",1),o([w("size",{waitUntilFirstUpdate:!0})],T.prototype,"applySizeToOptions",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],T.prototype,"handleDisabledChange",1),o([w("value",{waitUntilFirstUpdate:!0})],T.prototype,"handleValueChange",1),o([w("displayInputValue",{waitUntilFirstUpdate:!0})],T.prototype,"handleDisplayInputValueChange",1),o([w("open",{waitUntilFirstUpdate:!0})],T.prototype,"handleOpenChange",1),T=o([y("sd-combobox")],T);H("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});function mo(s){let i=s.tagName.toLowerCase();return s.getAttribute("tabindex")==="-1"||s.hasAttribute("disabled")||s.hasAttribute("aria-disabled")&&s.getAttribute("aria-disabled")!=="false"||i==="input"&&s.getAttribute("type")==="radio"&&!s.hasAttribute("checked")||s.offsetParent===null&&!(s.getRootNode()instanceof ShadowRoot)||window.getComputedStyle(s).visibility==="hidden"?!1:(i==="audio"||i==="video")&&s.hasAttribute("controls")||s.hasAttribute("tabindex")||s.hasAttribute("contenteditable")&&s.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function Ji(s){var a,n;let i=[];function t(d){d instanceof HTMLElement&&(i.push(d),d.shadowRoot!==null&&d.shadowRoot.mode==="open"&&t(d.shadowRoot)),[...d.children].forEach(h=>t(h))}t(s);let e=(a=i.find(d=>mo(d)))!=null?a:null,r=(n=i.reverse().find(d=>mo(d)))!=null?n:null;return{start:e,end:r}}var gi=[],Be=class{constructor(i){this.tabDirection="forward";this.element=i,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){gi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){gi=gi.filter(i=>i!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return gi[gi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){let{start:i,end:t}=Ji(this.element),e=this.tabDirection==="forward"?i:t;typeof(e==null?void 0:e.focus)=="function"&&e.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(i){i.key==="Tab"&&i.shiftKey&&(this.tabDirection="backward",requestAnimationFrame(()=>this.checkFocus()))}handleKeyUp(){this.tabDirection="forward"}};var kt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"footer");this.localize=new S(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new Be(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),De(this))}disconnectedCallback(){super.disconnectedCallback(),Se(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=R(this,"dialog.denyClose",{dir:this.localize.dir()});B(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),De(this);let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([j(this.dialog),j(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});let e=R(this,"dialog.show",{dir:this.localize.dir()}),r=R(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([B(this.panel,e.keyframes,e.options),B(this.overlay,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([j(this.dialog),j(this.overlay)]);let t=R(this,"dialog.hide",{dir:this.localize.dir()}),e=R(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([B(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),B(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Se(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&setTimeout(()=>r.focus()),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return p`<div part="base" class="${c("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${c("flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?p`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:p`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":p`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};kt.styles=[...m.styles,v`:host{--width:662px}[part=panel]{max-height:80vh;width:var(--width)}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],o([g('[part="base"]')],kt.prototype,"dialog",2),o([g('[part="panel"]')],kt.prototype,"panel",2),o([g('[part="overlay"]')],kt.prototype,"overlay",2),o([l({type:Boolean,reflect:!0})],kt.prototype,"open",2),o([l({reflect:!0})],kt.prototype,"headline",2),o([l({attribute:"no-close-button",type:Boolean,reflect:!0})],kt.prototype,"noCloseButton",2),o([w("open",{waitUntilFirstUpdate:!0})],kt.prototype,"handleOpenChange",1),kt=o([y("sd-dialog")],kt);H("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});H("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});H("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});H("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});H("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Ft=class extends m{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return p`<hr part="main" aria-orientation="${this.orientation}" class="${c(this.inverted?"border-primary-400":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};Ft.styles=[...m.styles,v`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],o([l({reflect:!0})],Ft.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],Ft.prototype,"inverted",2),Ft=o([y("sd-divider")],Ft);function Sr(s){return s.charAt(0).toUpperCase()+s.slice(1)}var dt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"footer");this.localize=new S(this);this.modal=new Be(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),De(this)))}disconnectedCallback(){super.disconnectedCallback(),Se(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=R(this,"drawer.denyClose",{dir:this.localize.dir()});B(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var e;let t=(e=this.closeButton.shadowRoot)==null?void 0:e.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),De(this));let r=this.querySelector("[autofocus]");r&&r.removeAttribute("autofocus"),await Promise.all([j(this.drawer),j(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(r?r.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),r?r.setAttribute("autofocus",""):this.closeButton.focus()});let a=R(this,`drawer.show${Sr(this.placement)}`,{dir:this.localize.dir()}),n=R(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([B(this.panel,a.keyframes,a.options),B(this.overlay,n.keyframes,n.options)]),t==null||t.setAttribute("aria-controls","drawer"),t==null||t.setAttribute("aria-expanded","true"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Se(this)),await Promise.all([j(this.drawer),j(this.overlay)]);let r=R(this,`drawer.hide${Sr(this.placement)}`,{dir:this.localize.dir()}),a=R(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([B(this.overlay,a.keyframes,a.options).then(()=>{this.overlay.hidden=!0}),B(this.panel,r.keyframes,r.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.drawer.setAttribute("inert",""),this.overlay.hidden=!1,this.panel.hidden=!1;let n=this.originalTrigger;typeof(n==null?void 0:n.focus)=="function"&&setTimeout(()=>n.focus()),t==null||t.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),De(this)),this.open&&this.contained&&(this.modal.deactivate(),Se(this))}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return p`<section id="drawer" part="base" class="${c("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}" aria-label="${this.label}"><div part="overlay" class="${c("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${c("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-labelledby="label" tabindex="0"><p class="sr-only" id="label">${this.label}</p>${this.noHeader?p`<sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 right-2"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button>`:p`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4" tabindex="0"><slot></slot></div><footer part="footer" class="${c(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></section>`}};dt.styles=[...m.styles,v`:host{--width:25rem;display:contents}:host([contained]){z-index:auto}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],o([g("[part=base]")],dt.prototype,"drawer",2),o([g("[part=panel]")],dt.prototype,"panel",2),o([g("[part=overlay]")],dt.prototype,"overlay",2),o([g("[part=close-button]")],dt.prototype,"closeButton",2),o([l({type:Boolean,reflect:!0})],dt.prototype,"open",2),o([l({attribute:"label",reflect:!0})],dt.prototype,"label",2),o([l({reflect:!0})],dt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],dt.prototype,"contained",2),o([l({attribute:"no-header",type:Boolean})],dt.prototype,"noHeader",2),o([w("open",{waitUntilFirstUpdate:!0})],dt.prototype,"handleOpenChange",1),o([w("contained",{waitUntilFirstUpdate:!0})],dt.prototype,"handleNoModalChange",1),dt=o([y("sd-drawer")],dt);H("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});H("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});H("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});H("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});H("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});H("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});H("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var G=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(a=>Ji(a).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":r=e.button;break;case"sd-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var a,n,d,h,u,f,b,k,x,$,z,P;let r=((u=(h=(d=(n=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:n.activeElement)==null?void 0:d.shadowRoot)==null?void 0:h.activeElement)==null?void 0:u.getRootNode())instanceof ShadowRoot?(x=(k=(b=(f=document.activeElement)==null?void 0:f.shadowRoot)==null?void 0:b.activeElement)==null?void 0:k.shadowRoot)==null?void 0:x.activeElement:(($=this.containingElement)==null?void 0:$.getRootNode())instanceof ShadowRoot?(P=(z=document.activeElement)==null?void 0:z.shadowRoot)==null?void 0:P.activeElement:document.activeElement;(!this.containingElement||(r==null?void 0:r.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;qt(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),a=r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await j(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=R(this,"dropdown.show",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await j(this);let{keyframes:t,options:e}=R(this,"dropdown.hide",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return p`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${c("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};G.styles=[...m.styles,v`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([g("#dropdown")],G.prototype,"popup",2),o([g("[part=trigger]")],G.prototype,"trigger",2),o([g("[part=panel]")],G.prototype,"panel",2),o([l({type:Boolean,reflect:!0})],G.prototype,"open",2),o([l({type:Boolean,reflect:!0})],G.prototype,"rounded",2),o([l({reflect:!0})],G.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],G.prototype,"disabled",2),o([l({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],G.prototype,"stayOpenOnSelect",2),o([l({attribute:!1})],G.prototype,"containingElement",2),o([l({type:Number})],G.prototype,"distance",2),o([l({type:Number})],G.prototype,"skidding",2),o([l({type:Boolean,reflect:!0,attribute:"no-auto-size"})],G.prototype,"noAutoSize",2),o([l({type:Boolean,reflect:!0,attribute:"no-flip"})],G.prototype,"noFlip",2),o([l({type:Boolean})],G.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],G.prototype,"handleOpenChange",1),G=o([y("sd-dropdown")],G);H("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Mt=class extends m{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new S(this)}updateMaxHeight(){var e;let t=(e=this.contentPreview)==null?void 0:e.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${t}px`),this.style.setProperty("--max-height",t)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}onOpenChange(){this.open?(this.emit("sd-show"),this.updateComplete.then(()=>{this.emit("sd-after-show")})):(this.emit("sd-hide"),this.updateComplete.then(()=>{this.emit("sd-after-hide")})),this.details.setAttribute("open",this.open.toString())}async show(){if(!this.open)return this.onToggleClick(),U(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),U(this,"sd-after-hide")}render(){return p`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${c("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${c("h-full justify-center w-full text-base flex items-center toggle")}">${this.open?p`<slot name="toggle-open"><sd-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-icon>${this.localize.term("showLess")}</slot>`:p`<slot name="toggle-closed"><sd-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-icon>${this.localize.term("showMore")}</slot>`}</div></button><details part="details" aria-hidden="${!this.open}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(r=>{let a=r.cloneNode(!0);t.appendChild(a)}),this.appendChild(t)}};Mt.styles=[...m.styles,v`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content{max-block-size:var(--max-height-pixel,1000vh)}:host(:not([open])) .content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);position:absolute;width:100%}:host([inverted]:not([open])) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}`],o([g(".content-preview")],Mt.prototype,"contentPreview",2),o([g("details")],Mt.prototype,"details",2),o([l({type:Boolean,reflect:!0})],Mt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],Mt.prototype,"inverted",2),o([w("open",{waitUntilFirstUpdate:!0})],Mt.prototype,"onOpenChange",1),Mt=o([y("sd-expandable")],Mt);var Ct=class extends m{constructor(){super(...arguments);this.flipDirection="horizontal";this.placement="top";this.frontVariant="primary";this.backVariant="primary";this.activeSide="front"}connectedCallback(){super.connectedCallback()}flipFront(){this.activeSide="back",this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),setTimeout(()=>{this.back.focus()})}flipBack(){this.activeSide="front",this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),setTimeout(()=>{this.front.focus()})}handleFrontKeydown(t){t.code==="Enter"&&this.front===t.target&&this.flipFront()}handleBackKeydown(t){t.code==="Enter"&&this.back===t.target&&this.flipBack()}render(){return p`<div part="base" class="${c("flip-card relative h-full w-full")}"><div part="front" tabindex="0" aria-hidden="${this.activeSide==="back"}" inert="${C(this.activeSide==="back"||void 0)}" class="${c("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.frontVariant==="primary"&&"bg-primary",this.frontVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-front" class="${c("absolute h-full w-full -z-20",(this.frontVariant==="primary"||this.frontVariant==="primary-100")&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.frontVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/75 to-primary-800/60":"bg-gradient-to-b from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-white/0 mb-auto":"bg-gradient-to-t from-white/60 to-white/0 mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto":"bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"}[this.frontVariant])}"></div><sd-button part="front-button" size="md" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.frontVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.frontVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-icon library="system" name="reload" label="Flip to Back"></sd-icon></sd-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide==="front"}" inert="${C(this.activeSide==="front"||void 0)}" class="${c("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.backVariant==="primary"&&"bg-primary",this.backVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-back" class="${c("absolute h-full w-full -z-20",(this.backVariant==="primary"||this.backVariant==="primary-100")&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.backVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/75 to-primary-800/60":"bg-gradient-to-b from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-white/0 mb-auto":"bg-gradient-to-t from-white/60 to-white/0 mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto":"bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"}[this.backVariant])}"></div><sd-button size="md" part="back-button" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.backVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.backVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-icon library="system" name="reload" label="Flip to Front"></sd-icon></sd-button></div></div>`}};Ct.styles=[...m.styles,v`:host{aspect-ratio:3/4;display:block;--name:"";--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}`],o([g('[part="front"]')],Ct.prototype,"front",2),o([g('[part="back"]')],Ct.prototype,"back",2),o([l({reflect:!0,attribute:"flip-direction"})],Ct.prototype,"flipDirection",2),o([l({reflect:!0})],Ct.prototype,"placement",2),o([l({type:String,reflect:!0,attribute:"front-variant"})],Ct.prototype,"frontVariant",2),o([l({type:String,reflect:!0,attribute:"back-variant"})],Ct.prototype,"backVariant",2),o([E()],Ct.prototype,"activeSide",2),Ct=o([y("sd-flipcard")],Ct);var re=class extends m{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),(t=this.resizeObserver)==null||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.onResize()}),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return p`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};re.styles=[...m.styles,v`:host{display:block}:host([fixed]){left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:"";height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`],o([l({reflect:!0,type:Boolean})],re.prototype,"fixed",2),o([Bi(100)],re.prototype,"onResize",1),re=o([y("sd-header")],re);var Vt=class extends m{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(t){let e=document.createElement("script");[...t.attributes].forEach(r=>e.setAttribute(r.name,r.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{let t=this.src,e=await Hi(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sd-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(r=>this.executeScript(r)),this.emit("sd-load")}catch(t){this.emit("sd-error",{detail:{status:-1}})}}render(){return p`<slot></slot>`}};Vt.styles=[...m.styles,v`:host{display:block}`],o([l()],Vt.prototype,"src",2),o([l()],Vt.prototype,"mode",2),o([l({attribute:"allow-scripts",type:Boolean})],Vt.prototype,"allowScripts",2),o([w("src")],Vt.prototype,"handleSrcChange",1),Vt=o([y("sd-include")],Vt);var vi=(s,i)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let r of t)(e=r._$AO)==null||e.call(r,i,!1),vi(r,i);return!0},Gi=s=>{let i,t;do{if((i=s._$AM)===void 0)break;t=i._$AN,t.delete(s),s=i}while((t==null?void 0:t.size)===0)},fo=s=>{for(let i;i=s._$AM;s=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(s))break;t.add(s),dl(i)}};function nl(s){this._$AN!==void 0?(Gi(this),this._$AM=s,fo(this)):this._$AM=s}function ll(s,i=!1,t=0){let e=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(e))for(let a=t;a<e.length;a++)vi(e[a],!1),Gi(e[a]);else e!=null&&(vi(e,!1),Gi(e));else vi(this,s)}var dl=s=>{var i,t;s.type==Ot.CHILD&&((i=s._$AP)!=null||(s._$AP=ll),(t=s._$AQ)!=null||(s._$AQ=nl))},tr=class extends ke{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),fo(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,r;i!==this.isConnected&&(this.isConnected=i,i?(e=this.reconnected)==null||e.call(this):(r=this.disconnected)==null||r.call(this)),t&&(vi(this,i),Gi(this))}setValue(i){if(Ri(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var _r=class extends tr{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Ot.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return Y}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=D({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),yt}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(r=>{r.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Hr=de(_r);var bo,cl=(bo=navigator.userAgentData)==null?void 0:bo.brands.some(s=>s.brand.includes("Chromium")),hl=cl?!1:navigator.userAgent.includes("Firefox"),A=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this);this.hasSlotController=new O(this,"help-text","label","left","right","message","placeholder");this.localize=new S(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleSearchClick(t){this.emit("sd-search"),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.input.setRangeText(t,e,r,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,d=this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":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",h=this.size==="sm"?"text-sm":"text-base",u={disabled:"border-neutral-500",visuallyDisabled:"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"}[d],f=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],k={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${c(this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e||n?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",h)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",u)}"></div><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-all",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",d==="disabled"||d==="visuallyDisabled"?"text-neutral-500":"text-black")}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",f,k)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder-neutral-500":"placeholder-neutral-700",this.size==="sm"?"h-6":"h-8",h,this.visuallyDisabled&&"cursor-not-allowed")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${C(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${C(this.placeholder)}" minlength="${C(this.minlength)}" maxlength="${C(this.maxlength)}" min="${C(this.min)}" max="${C(this.max)}" step="${C(this.step)}" .value="${he(this.value)}" autocapitalize="${C(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${C(this.type==="password"?"off":this.autocomplete)}" autocorrect="${C(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${C(this.pattern)}" enterkeyhint="${C(this.enterkeyhint)}" inputmode="${C(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?p`<button part="clear-button" class="${c("flex justify-center",b)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("icon-fill-neutral-800",k)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?p`<slot name="show-password-icon"><sd-icon class="${c(f,b,k)}" library="system" name="eye"></sd-icon></slot>`:p`<slot name="hide-password-icon"><sd-icon class="${c(f,b,k)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!hl?p`<sd-icon class="${c(f,b,k)}" library="system" name="calendar"></sd-icon>`:""} ${this.type==="time"?p`<sd-icon class="${c(f,b,k)}" library="system" name="clock"></sd-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",b)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${c(f,k)}" library="system" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",b,k)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",b,k)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",f,b,k)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?p`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Hr({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${c(f,b,k)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Hr({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${c(f,b,k)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};A.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`],o([g("#input")],A.prototype,"input",2),o([g("#invalid-message")],A.prototype,"invalidMessage",2),o([E()],A.prototype,"hasFocus",2),o([E()],A.prototype,"showValidStyle",2),o([E()],A.prototype,"showInvalidStyle",2),o([l({reflect:!0})],A.prototype,"type",2),o([l({reflect:!0})],A.prototype,"size",2),o([l()],A.prototype,"inputmode",2),o([l()],A.prototype,"value",2),o([Ht()],A.prototype,"defaultValue",2),o([l()],A.prototype,"placeholder",2),o([l()],A.prototype,"label",2),o([l({attribute:"help-text"})],A.prototype,"helpText",2),o([l({type:Boolean})],A.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],A.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],A.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],A.prototype,"readonly",2),o([l({attribute:"password-toggle",type:Boolean})],A.prototype,"passwordToggle",2),o([l({attribute:"password-visible",type:Boolean})],A.prototype,"passwordVisible",2),o([l({attribute:"spin-buttons",type:Boolean})],A.prototype,"spinButtons",2),o([l({type:Number})],A.prototype,"minlength",2),o([l({type:Number})],A.prototype,"maxlength",2),o([l()],A.prototype,"min",2),o([l()],A.prototype,"max",2),o([l({reflect:!0})],A.prototype,"form",2),o([l()],A.prototype,"name",2),o([l()],A.prototype,"title",2),o([l({type:Boolean,reflect:!0})],A.prototype,"required",2),o([l()],A.prototype,"pattern",2),o([l()],A.prototype,"step",2),o([l()],A.prototype,"autocapitalize",2),o([l()],A.prototype,"autocorrect",2),o([l()],A.prototype,"autocomplete",2),o([l({type:Boolean})],A.prototype,"autofocus",2),o([l()],A.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],A.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],A.prototype,"spellcheck",2),o([w("disabled",{waitUntilFirstUpdate:!0})],A.prototype,"handleDisabledChange",1),o([w("step",{waitUntilFirstUpdate:!0})],A.prototype,"handleStepChange",1),o([w("value",{waitUntilFirstUpdate:!0})],A.prototype,"handleValueChange",1),A=o([y("sd-input")],A);var wt=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href="";this.visuallyDisabled=!1}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){this.visuallyDisabled&&(t.preventDefault(),t.stopPropagation())}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){let t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return p`<a part="base" class="${c("inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:outline-none":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"],this.standalone&&"flex items-start")}" href="${C(this.href||void 0)}" target="${C(this.target||void 0)}" download="${C(this.download)}" rel="${C(this.target?"noreferrer noopener":void 0)}" aria-disabled="${!this.href||this.visuallyDisabled?"true":"false"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${c("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${c("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};wt.styles=[...m.styles,v`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],o([g("a")],wt.prototype,"button",2),o([l({type:Boolean,reflect:!0})],wt.prototype,"standalone",2),o([l({reflect:!0})],wt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],wt.prototype,"inverted",2),o([l()],wt.prototype,"href",2),o([l({type:Boolean,attribute:"visually-disabled"})],wt.prototype,"visuallyDisabled",2),o([l()],wt.prototype,"target",2),o([l()],wt.prototype,"download",2),wt=o([y("sd-link")],wt);var Et=class extends m{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`;return F`<${e} part="base" class="${c("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${C(t?this.href:void 0)}" target="${C(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${C(this.notInteractive||t?void 0:"button")}" aria-label="${C(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${C(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${c("inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",this.variant==="main"&&this.state==="hover"&&"fill-accent-550",this.variant==="main"&&this.state==="active"&&"fill-accent-700",this.variant==="main"&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700",this.variant==="place"&&this.state==="default"&&"fill-white",this.variant==="place"&&this.state==="hover"&&"fill-primary-100",this.variant==="place"&&this.state==="active"&&"fill-primary-200",this.variant==="place"&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent",place:""}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${c("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Et.styles=[...m.styles,v`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}`],o([l({reflect:!0})],Et.prototype,"variant",2),o([l({reflect:!0})],Et.prototype,"state",2),o([l({type:Boolean,reflect:!0})],Et.prototype,"animated",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],Et.prototype,"notInteractive",2),o([l()],Et.prototype,"href",2),o([l()],Et.prototype,"target",2),o([l()],Et.prototype,"label",2),Et=o([y("sd-map-marker")],Et);var it=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"[default]","description","children");this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?X`summary`:this.separated?X`div`:this.isLink?X`a`:X`button`}render(){let t=this.tag,e=this.isLink,r=this.isButton,a=this.isAccordion,n={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},d=this.vertical?"pb-3":"pb-2",h=F`<${t} part="base" class="${c("cursor-pointer relative focus-visible:focus-outline",{md:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",a?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${C(a?"navigation-item-details":void 0)}" aria-current="${C(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${C(r?this.disabled:void 0)}" href="${C(e?this.href:void 0)}" target="${C(e?this.target:void 0)}" download="${C(e?this.download:void 0)}" rel="${C(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:a?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${c("relative pt-3 inline-flex justify-between items-center",a?"grow":"w-full",n.description||this.separated?"pb-1":d,this.calculatePaddingX)}">${this.divider&&this.vertical?F`<sd-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?F`<a class="${c("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!n.description&&"py-4")}" href="${C(e?this.href:void 0)}" target="${C(e?this.target:void 0)}" download="${C(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:F`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||n.children)&&this.vertical?this.separated?F`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("mr-4 h-6 w-6 transition-all",a||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:F`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",a?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${n.description&&this.vertical?F`<slot name="description" part="description" class="${c("inline-block text-sm text-left text-black",a||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,d)}"></slot>`:""}</${t}>`;return a?F`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${h}<slot name="children"></slot></details>`:this.separated?F`<div part="details" id="navigation-item-details" class="relative flex flex-col">${h}${this.open?F`<slot name="children"></slot>`:""}</div>`:F`${h}`}};it.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],o([g('a[part="base"], button[part="base"]')],it.prototype,"button",2),o([l({type:Boolean,reflect:!0})],it.prototype,"vertical",2),o([l({reflect:!0})],it.prototype,"size",2),o([l({reflect:!0})],it.prototype,"href",2),o([l()],it.prototype,"target",2),o([l()],it.prototype,"download",2),o([l({type:Boolean,reflect:!0})],it.prototype,"current",2),o([l({type:Boolean,reflect:!0})],it.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],it.prototype,"chevron",2),o([l({type:Boolean,reflect:!0})],it.prototype,"relaxed",2),o([l({type:Boolean,reflect:!0})],it.prototype,"divider",2),o([l({type:Boolean,reflect:!0})],it.prototype,"indented",2),o([l({type:Boolean,reflect:!0})],it.prototype,"open",2),o([l({type:Boolean,reflect:!0})],it.prototype,"separated",2),it=o([y("sd-navigation-item")],it);var go=Object.assign(document.createElement("div"),{role:"region",className:"sd-toast-stack sd-toast-stack--top-right"}),vo=Object.assign(document.createElement("div"),{role:"region",className:"sd-toast-stack sd-toast-stack--bottom-center"}),ut=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now();this.tabDirection="forward";this.focused=!1}get stack(){return{"top-right":go,"bottom-center":vo}[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications")),this.handleFocusIn=this.handleFocusIn.bind(this),document.addEventListener("focusin",this.handleFocusIn)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.handleFocusIn)}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}checkFocus(){if(!(!this.focused||!this.closable)&&!this.matches(":focus-within")){let t=this.tabDirection==="forward"?this.base:this.close;typeof(t==null?void 0:t.focus)=="function"&&t.focus({preventScroll:!0})}}handleFocusIn(){this.focused=!0}handleKeyDown(t){if(this.tabDirection="forward",this.closable&&t.key==="Escape"){this.hide();return}t.key==="Tab"&&t.shiftKey&&(this.tabDirection="backwards"),requestAnimationFrame(()=>this.checkFocus())}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await j(this.base),this.base.hidden=!1;let{keyframes:t,options:e}=R(this,"notification.show",{dir:this.localize.dir()});await B(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await j(this.base);let{keyframes:t,options:e}=R(this,"notification.hide",{dir:this.localize.dir()});await B(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}async toast(){return new Promise(t=>{let e=this.toastStack==="bottom-center"?vo:go;e.parentElement===null&&document.body.append(e),e.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{e.removeChild(this),t(),e.querySelector("sd-notification")===null&&e.remove()},{once:!0})})}render(){return p`<div part="base" class="${c("w-full overflow-hidden flex items-stretch relative m-2 focus-visible:focus-outline")}" role="alert" id="notification" tabindex="0" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><slot name="icon" part="icon" class="${c("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${c("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?p`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?p`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${c("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};ut.styles=[...m.styles,v`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],o([g('[part~="base"]')],ut.prototype,"base",2),o([g('[part~="close-button"]')],ut.prototype,"close",2),o([l({reflect:!0})],ut.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"open",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"closable",2),o([l({type:Number})],ut.prototype,"duration",2),o([l({type:Boolean,reflect:!0,attribute:"duration-indicator"})],ut.prototype,"durationIndicator",2),o([l({reflect:!0,attribute:"toast-stack"})],ut.prototype,"toastStack",2),o([w("open",{waitUntilFirstUpdate:!0})],ut.prototype,"handleOpenChange",1),o([w("duration")],ut.prototype,"handleDurationChange",1),ut=o([y("sd-notification")],ut);H("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});H("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});var ct=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var t;return((t=this.textContent)!=null?t:"").trim()}render(){let t={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return p`<div part="base" class="${c("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${c("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?p`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t.left?p`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${t.right?p`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ct.styles=[...m.styles,v`:host{display:block;outline:2px solid transparent!important;outline-offset:2px!important;position:relative;width:100%}`],o([g('[part="base"]')],ct.prototype,"defaultSlot",2),o([E()],ct.prototype,"current",2),o([E()],ct.prototype,"selected",2),o([E()],ct.prototype,"hasHover",2),o([l({reflect:!0})],ct.prototype,"size",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"checkbox",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"disabled",2),o([l({reflect:!0})],ct.prototype,"value",2),o([w("disabled")],ct.prototype,"handleDisabledChange",1),o([w("selected")],ct.prototype,"handleSelectedChange",1),o([w("value")],ct.prototype,"handleValueChange",1),ct=o([y("sd-option")],ct);var Dt=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return F`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-divider id="divider" class="pt-2 pb-4" part="divider"></sd-divider><div part="label-container" class="${c(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};Dt.dependencies={"sd-divider":Ft},Dt.styles=[...m.styles,v`:host{--display-divider:block}#divider{display:var(--display-divider)}`],o([g("slot:not([name])")],Dt.prototype,"defaultSlot",2),o([l({reflect:!0,type:Boolean})],Dt.prototype,"disabled",2),o([l()],Dt.prototype,"label",2),o([w("disabled",{waitUntilFirstUpdate:!0})],Dt.prototype,"handleDisabledChange",1),Dt=o([y("sd-optgroup")],Dt);var me=class extends ft{constructor(){super(...arguments);this.expandable=!1}render(){let t=this.expandable?X`details`:X`div`,e=this.expandable?X`summary`:X`div`;return F`
|
|
122
122
|
<${t} part="base" class="sm:p-6">
|
|
123
123
|
<${e}
|
|
124
124
|
part="header"
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
popup:popup__content,
|
|
170
170
|
"><div part="combobox" class="${c("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="${c("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",h,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .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||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?p`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(b=>b==null?void 0:b.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",h)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?p`<button part="clear-button" class="${c("select__clear flex justify-center",u,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("text-icon-fill-neutral-800",f)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c(u,f,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${c("flex-shrink-0 text-success",u,f)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${c("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",f)}"><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="${c("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"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 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${r?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};L.dependencies={"sd-icon":lt,"sd-popup":I,"sd-tag":st},L.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}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,1))}`],o([Ke({selector:"sd-option"})],L.prototype,"_optionsInDefaultSlot",2),o([g("sd-popup")],L.prototype,"popup",2),o([g('[part="combobox"]')],L.prototype,"combobox",2),o([g('[part="display-input"]')],L.prototype,"displayInput",2),o([g(".value-input")],L.prototype,"valueInput",2),o([g('[part="listbox"]')],L.prototype,"listbox",2),o([g("#invalid-message")],L.prototype,"invalidMessage",2),o([E()],L.prototype,"hasHover",2),o([E()],L.prototype,"displayLabel",2),o([E()],L.prototype,"deletedTagLabel",2),o([E()],L.prototype,"hasFocus",2),o([E()],L.prototype,"currentOption",2),o([E()],L.prototype,"selectedOptions",2),o([E()],L.prototype,"showValidStyle",2),o([E()],L.prototype,"showInvalidStyle",2),o([Ht()],L.prototype,"defaultValue",2),o([l({type:Boolean,reflect:!0})],L.prototype,"open",2),o([l({reflect:!0})],L.prototype,"size",2),o([l({reflect:!0})],L.prototype,"placement",2),o([l()],L.prototype,"label",2),o([l()],L.prototype,"placeholder",2),o([l({attribute:"max-options-tag-label"})],L.prototype,"maxOptionsTagLabel",2),o([l({type:Boolean,reflect:!0})],L.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],L.prototype,"visuallyDisabled",2),o([l({attribute:"help-text"})],L.prototype,"helpText",2),o([E()],L.prototype,"currentPlacement",2),o([l({type:Boolean})],L.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],L.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],L.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],L.prototype,"maxOptionsVisible",2),o([l({reflect:!0})],L.prototype,"form",2),o([l()],L.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],L.prototype,"value",2),o([l({type:Boolean,reflect:!0})],L.prototype,"required",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],L.prototype,"styleOnValid",2),o([l({type:Boolean})],L.prototype,"hoist",2),o([l()],L.prototype,"getTag",2),o([w("useTags",{waitUntilFirstUpdate:!0})],L.prototype,"handleUseTagsChange",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],L.prototype,"handleDisabledChange",1),o([w("open",{waitUntilFirstUpdate:!0})],L.prototype,"handleOpenChange",1),o([w("size",{waitUntilFirstUpdate:!0})],L.prototype,"applySizeToOptions",1),o([w("value",{waitUntilFirstUpdate:!0})],L.prototype,"handleValueChange",1),L=o([y("sd-select")],L);H("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var ot=class extends m{constructor(){super(...arguments);this.hasSlotController=new O(this,"label","[default]");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(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`,r=this.hasSlotController.test("label"),a=this.label?!0:r,n=this.hasSlotController.test("[default]"),d=this.description?!0:n;return F`<div role="listitem" part="base" class="${c("flex pt-1",this.orientation==="horizontal"?"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="${c("flex shrink-0 gap-2",this.noTail&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",this.orientation==="horizontal"?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3")}"><${e} part="circle" href="${C(t?this.href:void 0)}" aria-disabled="${C(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${C(this.notInteractive||!a?void 0:"label")}" aria-describedby="${C(this.notInteractive||!d?void 0:"description")}" class="${c("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?this.size==="lg"?"w-[72px]":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${c(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary",this.size==="lg"?"text-lg":"text-sm")}">${!this.disabled&&!this.current&&!this.notInteractive?F`<sd-icon name="status-check" library="system"></sd-icon>`:F`${this.index}`}</slot></${e}>${this.noTail?"":F`<div part="tail" class="${c(this.orientation==="horizontal"?"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-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div><div part="text-container" class="${c("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${c("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive?"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer":"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${c("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||F`<slot></slot>`}</div></div></div>`}};ot.styles=[...m.styles,v`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],o([l({reflect:!0})],ot.prototype,"size",2),o([l({reflect:!0})],ot.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],ot.prototype,"current",2),o([l({reflect:!0,type:Boolean,attribute:"no-tail"})],ot.prototype,"noTail",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],ot.prototype,"notInteractive",2),o([l()],ot.prototype,"label",2),o([l()],ot.prototype,"description",2),o([l({type:Number,reflect:!0,attribute:"index"})],ot.prototype,"index",2),o([l()],ot.prototype,"href",2),o([w("current")],ot.prototype,"handleCurrentChange",1),o([w("disabled")],ot.prototype,"handleDisabledChange",1),o([w("notInteractive")],ot.prototype,"handleInteractivityChange",1),ot=o([y("sd-step")],ot);var gt=class extends m{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1;this.label=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((e,r)=>{e.index=r+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=r)}),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=>t.tagName.toLowerCase()==="sd-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((e,r)=>{r===t?e.current=!0:r>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 p`<div role="${this.notInteractive?"group":"navigation"}" class="h-full" aria-label="${this.label}"><div role="list" part="base" class="${c("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};gt.styles=[...m.styles,v`:host{width:-moz-max-content;width:max-content}`],o([g("[part=body]")],gt.prototype,"body",2),o([l({reflect:!0})],gt.prototype,"size",2),o([l({reflect:!0})],gt.prototype,"orientation",2),o([l({type:Number,reflect:!0,attribute:"active-step"})],gt.prototype,"activeStep",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],gt.prototype,"notInteractive",2),o([l({type:String})],gt.prototype,"label",2),o([w("size",{waitUntilFirstUpdate:!0})],gt.prototype,"updateSize",1),o([w("orientation",{waitUntilFirstUpdate:!0})],gt.prototype,"updateOrientation",1),o([w("notInteractive")],gt.prototype,"handleInteractivityChange",1),gt=o([y("sd-step-group")],gt);var at=class extends m{constructor(){super(...arguments);this.formControlController=new pt(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 p`<label part="base" class="${c("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="${C(this.value)}" .checked="${he(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="${c(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
|
|
171
171
|
peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
|
|
172
|
-
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="${c("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white translate-x-2":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="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};at.styles=[...m.styles,v`: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:" *"}`],o([g("input")],at.prototype,"input",2),o([g("#invalid-message")],at.prototype,"invalidMessage",2),o([E()],at.prototype,"showInvalidStyle",2),o([l()],at.prototype,"title",2),o([l()],at.prototype,"name",2),o([l()],at.prototype,"value",2),o([l({type:Boolean,reflect:!0})],at.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],at.prototype,"checked",2),o([Ht("checked")],at.prototype,"defaultChecked",2),o([l({reflect:!0})],at.prototype,"form",2),o([l({type:Boolean,reflect:!0})],at.prototype,"required",2),o([w("disabled",{waitUntilFirstUpdate:!0})],at.prototype,"handleDisabledChange",1),o([w(["checked"],{waitUntilFirstUpdate:!0})],at.prototype,"handleStateChange",1),at=o([y("sd-switch")],at);var pl=0,Et=class extends m{constructor(){super(...arguments);this.attrId=++pl;this.componentId=`sd-tab-${this.attrId}`;this.hasSlotController=new O(this,"left");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(){this.id=this.id.length>0?this.id:this.componentId;let t={left:this.hasSlotController.test("left")};return p`<div part="base" class="${c("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",this.variant==="container"&&" rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><slot name="left" class="${c(t.left&&"block pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${c(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${c((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent",this.variant==="default"?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${c(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Et.styles=[...m.styles,v`:host{box-sizing:border-box;display:block}.tab--active-container-border:after{border-width:1px;content:"";height:100%;position:absolute;width:100%;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));border-bottom:none;border-radius:4px 4px 0 0}`],o([g("[part=base]")],Et.prototype,"tab",2),o([l({type:String,reflect:!0})],Et.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],Et.prototype,"active",2),o([l({type:Boolean,reflect:!0})],Et.prototype,"disabled",2),o([l({reflect:!0})],Et.prototype,"panel",2),o([w("active")],Et.prototype,"handleActiveChange",1),o([w("disabled")],Et.prototype,"handleDisabledChange",1),Et=o([y("sd-tab")],Et);var zt=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(r=>!["aria-labelledby","aria-controls"].includes(r.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(r=>r.attributeName==="disabled")&&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((r,a)=>{var n;r[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((n=this.activeTab)!=null?n:this.tabs[0],{emitEvents:!1}),a.unobserve(r[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(r=>t.includeDisabled?r.tagName.toLowerCase()==="sd-tab":r.tagName.toLowerCase()==="sd-tab"&&!r.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let r=t.target.closest("sd-tab");(r==null?void 0:r.closest("sd-tab-group"))===this&&r!==null&&this.setActiveTab(r,{scrollBehavior:"smooth"})}handleKeyDown(t){let r=t.target.closest("sd-tab");if((r==null?void 0:r.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&r!==null&&(this.setActiveTab(r,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&qt(this.tabs[n+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&qt(this.tabs[n-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.tabs.find(h=>h.matches(":focus")),d=this.localize.dir()==="rtl";if((n==null?void 0:n.tagName.toLowerCase())==="sd-tab"){let h=this.tabs.indexOf(n);t.key==="Home"?h=0:t.key==="End"?h=this.tabs.length-1:t.key===(d?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?h--:(t.key===(d?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&h++,h<0&&(h=this.tabs.length-1),h>this.tabs.length-1&&(h=0),this.tabs[h].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[h],{scrollBehavior:"smooth"}),qt(this.tabs[h],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=D({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){let r=this.activeTab;this.activeTab=t,this.tabs.map(a=>a.active=a===this.activeTab),this.panels.map(a=>{var n;return a.active=a.name===((n=this.activeTab)==null?void 0:n.panel)}),qt(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(r&&this.emit("sd-tab-hide",{detail:{name:r.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let e=this.panels.find(r=>r.name===t.panel);e&&t.setAttribute("aria-controls",e.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){let e=this.tabs.find(r=>r.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){let t=this.localize.dir()==="rtl";return p`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?p`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("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="${c("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?p`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};zt.styles=[...m.styles,v`: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)}:focus-within::slotted(sd-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-tab-panel){--padding:1rem 0}`],o([g("[part=base]")],zt.prototype,"tabGroup",2),o([g("[part=body]")],zt.prototype,"body",2),o([g("[part=scroll-container]")],zt.prototype,"nav",2),o([E()],zt.prototype,"hasScrollControls",2),o([E()],zt.prototype,"variant",2),o([l()],zt.prototype,"activation",2),zt=o([y("sd-tab-group")],zt);var ul=0,Xt=class extends m{constructor(){super(...arguments);this.attrId=++ul;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 p`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};Xt.styles=[...m.styles,v`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],o([l({reflect:!0})],Xt.prototype,"name",2),o([l({type:Boolean,reflect:!0})],Xt.prototype,"active",2),o([w("active")],Xt.prototype,"handleActiveChange",1),Xt=o([y("sd-tab-panel")],Xt);var St=class extends m{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new O(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?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(){let t=this.variant==="white border-neutral-400"||this.inset,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")};return p`<div class="${c("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],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&t&&"py-8 px-10")}" part="base"><div part="media" id="media" aria-hidden="true" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${c(!t&&this._orientation==="vertical"&&"mb-4",!e["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${t?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${c("flex flex-col text-left",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&t&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${c("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="meta" class="${c("gap-2 mb-4",!e["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${c(!e["teaser-has-default"]&&"hidden")}" aria-labelledby="media"><slot></slot></div></div></div>`}};St.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],St.prototype,"variant",2),o([l({reflect:!0,type:Number})],St.prototype,"breakpoint",2),o([l({type:Boolean,reflect:!0})],St.prototype,"inset",2),o([g('[part="base"]')],St.prototype,"teaser",2),o([E()],St.prototype,"_orientation",2),St=o([y("sd-teaser")],St);var se=class extends m{constructor(){super(...arguments);this.variant="white";this.hasSlotController=new O(this,"[default]","media","meta","headline","expandable")}render(){let 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 p`<div class="relative flex flex-col group" part="base"><div class="${c("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="${c("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/[.8] to-60%",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${c({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-light":"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="${c("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. <h2>)</slot></div><div class="${c("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="${c(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};se.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],se.prototype,"variant",2),o([g('[part="base"]')],se.prototype,"teaserMedia",2),se=o([y("sd-teaser-media")],se);var M=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this);this.hasSlotController=new O(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.visuallyDisabled=!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(){if(this.visuallyDisabled){this.textarea.value=this.value;return}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){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,r="none"){this.textarea.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.textarea.setRangeText(t,e,r,a),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(t=this.textarea)==null?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(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=!!t.tooltip,n=this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus&&!this.visuallyDisabled?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d=this.size==="sm"?"text-sm":"text-base",h={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e||a?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",d)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",visuallyDisabled:"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"}[n])}"></div><div part="base" class="${c("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&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",n==="disabled"||n==="visuallyDisabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${c("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",d)}" title="${this.title}" name="${C(this.name)}" .value="${he(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${C(this.placeholder)}" minlength="${C(this.minlength)}" maxlength="${C(this.maxlength)}" rows="${C(this.rows)}" autocapitalize="${C(this.autocapitalize)}" autocorrect="${C(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${C(this.spellcheck)}" enterkeyhint="${C(this.enterkeyhint)}" inputmode="${C(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?p`<sd-icon class="${c("text-error absolute right-4 bg-white group-hover:bg-neutral-200",h)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon class="${c("text-success absolute right-4 bg-white group-hover:bg-neutral-200",h)}" 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="${c("text-sm text-neutral-700 mt-2",r?"block":"hidden")}" aria-hidden="${r?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};M.styles=[...m.styles,v`:host{display:block;height:100%}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([required]) #label:after{content:" *"}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],o([g("#input")],M.prototype,"textarea",2),o([g("#invalid-message")],M.prototype,"invalidMessage",2),o([E()],M.prototype,"hasFocus",2),o([E()],M.prototype,"showValidStyle",2),o([E()],M.prototype,"showInvalidStyle",2),o([l()],M.prototype,"title",2),o([l()],M.prototype,"name",2),o([l()],M.prototype,"value",2),o([l({reflect:!0})],M.prototype,"size",2),o([l()],M.prototype,"label",2),o([l({attribute:"help-text"})],M.prototype,"helpText",2),o([l()],M.prototype,"placeholder",2),o([l({type:Number})],M.prototype,"rows",2),o([l({type:Boolean,reflect:!0})],M.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],M.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],M.prototype,"readonly",2),o([l({reflect:!0})],M.prototype,"form",2),o([l({type:Boolean,reflect:!0})],M.prototype,"required",2),o([l({type:Number})],M.prototype,"minlength",2),o([l({type:Number})],M.prototype,"maxlength",2),o([l()],M.prototype,"autocapitalize",2),o([l()],M.prototype,"autocorrect",2),o([l()],M.prototype,"autocomplete",2),o([l({type:Boolean})],M.prototype,"autofocus",2),o([l()],M.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],M.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],M.prototype,"spellcheck",2),o([l()],M.prototype,"inputmode",2),o([Ht()],M.prototype,"defaultValue",2),o([w("disabled",{waitUntilFirstUpdate:!0})],M.prototype,"handleDisabledChange",1),o([w("rows",{waitUntilFirstUpdate:!0})],M.prototype,"handleRowsChange",1),o([w("value",{waitUntilFirstUpdate:!0})],M.prototype,"handleValueChange",1),M=o([y("sd-textarea")],M);var nt=class extends m{constructor(){super(...arguments);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;this.handleMouseInteraction=()=>{this.interactionType="mouse"};this.handleKeyboardInteraction=()=>{this.interactionType="keyboard"}}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),document.addEventListener("mousedown",this.handleMouseInteraction),document.addEventListener("keydown",this.handleKeyboardInteraction),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.formatDefaultSlot(this.defaultSlot),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),document.removeEventListener("mousedown",this.handleMouseInteraction),document.removeEventListener("keydown",this.handleKeyboardInteraction)}formatDefaultSlot(t){t.assignedNodes({flatten:!0}).forEach(r=>{var a,n;r.nodeType===Node.TEXT_NODE&&!((a=r==null?void 0:r.textContent)!=null&&a.trim())&&((n=r==null?void 0:r.parentNode)==null||n.removeChild(r))})}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.interactionType==="keyboard"&&this.show()}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let t=vr(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasTrigger("hover")){let t=vr(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 j(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=R(this,"tooltip.show",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await j(this.body);let{keyframes:t,options:e}=R(this,"tooltip.hide",{dir:this.localize.dir()});await B(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,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.blur(),U(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return p`<sd-popup part="base" exportparts="
|
|
172
|
+
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="${c("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white translate-x-2":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="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};at.styles=[...m.styles,v`: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:" *"}`],o([g("input")],at.prototype,"input",2),o([g("#invalid-message")],at.prototype,"invalidMessage",2),o([E()],at.prototype,"showInvalidStyle",2),o([l()],at.prototype,"title",2),o([l()],at.prototype,"name",2),o([l()],at.prototype,"value",2),o([l({type:Boolean,reflect:!0})],at.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],at.prototype,"checked",2),o([Ht("checked")],at.prototype,"defaultChecked",2),o([l({reflect:!0})],at.prototype,"form",2),o([l({type:Boolean,reflect:!0})],at.prototype,"required",2),o([w("disabled",{waitUntilFirstUpdate:!0})],at.prototype,"handleDisabledChange",1),o([w(["checked"],{waitUntilFirstUpdate:!0})],at.prototype,"handleStateChange",1),at=o([y("sd-switch")],at);var pl=0,$t=class extends m{constructor(){super(...arguments);this.attrId=++pl;this.componentId=`sd-tab-${this.attrId}`;this.hasSlotController=new O(this,"left");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(){this.id=this.id.length>0?this.id:this.componentId;let t={left:this.hasSlotController.test("left")};return p`<div part="base" class="${c("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",this.variant==="container"&&" rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><slot name="left" class="${c(t.left&&"block pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${c(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${c((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent",this.variant==="default"?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${c(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};$t.styles=[...m.styles,v`:host{box-sizing:border-box;display:block}.tab--active-container-border:after{border-width:1px;content:"";height:100%;position:absolute;width:100%;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));border-bottom:none;border-radius:4px 4px 0 0}`],o([g("[part=base]")],$t.prototype,"tab",2),o([l({type:String,reflect:!0})],$t.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],$t.prototype,"active",2),o([l({type:Boolean,reflect:!0})],$t.prototype,"disabled",2),o([l({reflect:!0})],$t.prototype,"panel",2),o([w("active")],$t.prototype,"handleActiveChange",1),o([w("disabled")],$t.prototype,"handleDisabledChange",1),$t=o([y("sd-tab")],$t);var zt=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(r=>!["aria-labelledby","aria-controls"].includes(r.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(r=>r.attributeName==="disabled")&&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((r,a)=>{var n;r[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((n=this.activeTab)!=null?n:this.tabs[0],{emitEvents:!1}),a.unobserve(r[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(r=>t.includeDisabled?r.tagName.toLowerCase()==="sd-tab":r.tagName.toLowerCase()==="sd-tab"&&!r.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let r=t.target.closest("sd-tab");(r==null?void 0:r.closest("sd-tab-group"))===this&&r!==null&&this.setActiveTab(r,{scrollBehavior:"smooth"})}handleKeyDown(t){let r=t.target.closest("sd-tab");if((r==null?void 0:r.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&r!==null&&(this.setActiveTab(r,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&qt(this.tabs[n+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&qt(this.tabs[n-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.tabs.find(h=>h.matches(":focus")),d=this.localize.dir()==="rtl";if((n==null?void 0:n.tagName.toLowerCase())==="sd-tab"){let h=this.tabs.indexOf(n);t.key==="Home"?h=0:t.key==="End"?h=this.tabs.length-1:t.key===(d?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?h--:(t.key===(d?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&h++,h<0&&(h=this.tabs.length-1),h>this.tabs.length-1&&(h=0),this.tabs[h].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[h],{scrollBehavior:"smooth"}),qt(this.tabs[h],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=D({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){let r=this.activeTab;this.activeTab=t,this.tabs.map(a=>a.active=a===this.activeTab),this.panels.map(a=>{var n;return a.active=a.name===((n=this.activeTab)==null?void 0:n.panel)}),qt(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(r&&this.emit("sd-tab-hide",{detail:{name:r.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let e=this.panels.find(r=>r.name===t.panel);e&&t.setAttribute("aria-controls",e.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){let e=this.tabs.find(r=>r.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){let t=this.localize.dir()==="rtl";return p`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?p`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("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="${c("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?p`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};zt.styles=[...m.styles,v`: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)}:focus-within::slotted(sd-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-tab-panel){--padding:1rem 0}`],o([g("[part=base]")],zt.prototype,"tabGroup",2),o([g("[part=body]")],zt.prototype,"body",2),o([g("[part=scroll-container]")],zt.prototype,"nav",2),o([E()],zt.prototype,"hasScrollControls",2),o([E()],zt.prototype,"variant",2),o([l()],zt.prototype,"activation",2),zt=o([y("sd-tab-group")],zt);var ul=0,Xt=class extends m{constructor(){super(...arguments);this.attrId=++ul;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 p`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};Xt.styles=[...m.styles,v`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],o([l({reflect:!0})],Xt.prototype,"name",2),o([l({type:Boolean,reflect:!0})],Xt.prototype,"active",2),o([w("active")],Xt.prototype,"handleActiveChange",1),Xt=o([y("sd-tab-panel")],Xt);var St=class extends m{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new O(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?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(){let t=this.variant==="white border-neutral-400"||this.inset,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")};return p`<div class="${c("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],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&t&&"py-8 px-10")}" part="base"><div part="media" id="media" aria-hidden="true" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${c(!t&&this._orientation==="vertical"&&"mb-4",!e["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${t?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${c("flex flex-col text-left",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&t&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${c("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="meta" class="${c("gap-2 mb-4",!e["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${c(!e["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="media"><slot></slot></div></div></div>`}};St.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],St.prototype,"variant",2),o([l({reflect:!0,type:Number})],St.prototype,"breakpoint",2),o([l({type:Boolean,reflect:!0})],St.prototype,"inset",2),o([g('[part="base"]')],St.prototype,"teaser",2),o([E()],St.prototype,"_orientation",2),St=o([y("sd-teaser")],St);var se=class extends m{constructor(){super(...arguments);this.variant="white";this.hasSlotController=new O(this,"[default]","media","meta","headline","expandable")}render(){let 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 p`<div class="relative flex flex-col group" part="base"><div class="${c("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="${c("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/[.8] to-60%",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${c({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-light":"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="${c("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. <h2>)</slot></div><div class="${c("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="${c(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};se.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],se.prototype,"variant",2),o([g('[part="base"]')],se.prototype,"teaserMedia",2),se=o([y("sd-teaser-media")],se);var M=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this);this.hasSlotController=new O(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.visuallyDisabled=!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(){if(this.visuallyDisabled){this.textarea.value=this.value;return}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){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,r="none"){this.textarea.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.textarea.setRangeText(t,e,r,a),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(t=this.textarea)==null?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(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=!!t.tooltip,n=this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus&&!this.visuallyDisabled?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d=this.size==="sm"?"text-sm":"text-base",h={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e||a?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",d)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",visuallyDisabled:"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"}[n])}"></div><div part="base" class="${c("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&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",n==="disabled"||n==="visuallyDisabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${c("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",d)}" title="${this.title}" name="${C(this.name)}" .value="${he(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${C(this.placeholder)}" minlength="${C(this.minlength)}" maxlength="${C(this.maxlength)}" rows="${C(this.rows)}" autocapitalize="${C(this.autocapitalize)}" autocorrect="${C(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${C(this.spellcheck)}" enterkeyhint="${C(this.enterkeyhint)}" inputmode="${C(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?p`<sd-icon class="${c("text-error absolute right-4 bg-white group-hover:bg-neutral-200",h)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon class="${c("text-success absolute right-4 bg-white group-hover:bg-neutral-200",h)}" 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="${c("text-sm text-neutral-700 mt-2",r?"block":"hidden")}" aria-hidden="${r?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};M.styles=[...m.styles,v`:host{display:block;height:100%}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([required]) #label:after{content:" *"}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],o([g("#input")],M.prototype,"textarea",2),o([g("#invalid-message")],M.prototype,"invalidMessage",2),o([E()],M.prototype,"hasFocus",2),o([E()],M.prototype,"showValidStyle",2),o([E()],M.prototype,"showInvalidStyle",2),o([l()],M.prototype,"title",2),o([l()],M.prototype,"name",2),o([l()],M.prototype,"value",2),o([l({reflect:!0})],M.prototype,"size",2),o([l()],M.prototype,"label",2),o([l({attribute:"help-text"})],M.prototype,"helpText",2),o([l()],M.prototype,"placeholder",2),o([l({type:Number})],M.prototype,"rows",2),o([l({type:Boolean,reflect:!0})],M.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],M.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],M.prototype,"readonly",2),o([l({reflect:!0})],M.prototype,"form",2),o([l({type:Boolean,reflect:!0})],M.prototype,"required",2),o([l({type:Number})],M.prototype,"minlength",2),o([l({type:Number})],M.prototype,"maxlength",2),o([l()],M.prototype,"autocapitalize",2),o([l()],M.prototype,"autocorrect",2),o([l()],M.prototype,"autocomplete",2),o([l({type:Boolean})],M.prototype,"autofocus",2),o([l()],M.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],M.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],M.prototype,"spellcheck",2),o([l()],M.prototype,"inputmode",2),o([Ht()],M.prototype,"defaultValue",2),o([w("disabled",{waitUntilFirstUpdate:!0})],M.prototype,"handleDisabledChange",1),o([w("rows",{waitUntilFirstUpdate:!0})],M.prototype,"handleRowsChange",1),o([w("value",{waitUntilFirstUpdate:!0})],M.prototype,"handleValueChange",1),M=o([y("sd-textarea")],M);var nt=class extends m{constructor(){super(...arguments);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;this.handleMouseInteraction=()=>{this.interactionType="mouse"};this.handleKeyboardInteraction=()=>{this.interactionType="keyboard"}}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),document.addEventListener("mousedown",this.handleMouseInteraction),document.addEventListener("keydown",this.handleKeyboardInteraction),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.formatDefaultSlot(this.defaultSlot),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),document.removeEventListener("mousedown",this.handleMouseInteraction),document.removeEventListener("keydown",this.handleKeyboardInteraction)}formatDefaultSlot(t){t.assignedNodes({flatten:!0}).forEach(r=>{var a,n;r.nodeType===Node.TEXT_NODE&&!((a=r==null?void 0:r.textContent)!=null&&a.trim())&&((n=r==null?void 0:r.parentNode)==null||n.removeChild(r))})}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.interactionType==="keyboard"&&this.show()}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let t=vr(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasTrigger("hover")){let t=vr(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 j(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=R(this,"tooltip.show",{dir:this.localize.dir()});await B(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await j(this.body);let{keyframes:t,options:e}=R(this,"tooltip.hide",{dir:this.localize.dir()});await B(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,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.blur(),U(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return p`<sd-popup part="base" exportparts="
|
|
173
173
|
popup:base__popup,
|
|
174
174
|
arrow:base__arrow
|
|
175
175
|
" class="${c(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${c(this.size==="lg"?"text-xl":"text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-icon library="system" name="info-circle" label="Tooltip" class="${c(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>`}};nt.styles=[...m.styles,v`: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 rgba(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 rgba(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]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([g("slot:not([name])")],nt.prototype,"defaultSlot",2),o([g("#tooltip")],nt.prototype,"body",2),o([g("sd-popup")],nt.prototype,"popup",2),o([l()],nt.prototype,"size",2),o([l()],nt.prototype,"content",2),o([l({reflect:!0})],nt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],nt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],nt.prototype,"open",2),o([l()],nt.prototype,"trigger",2),o([l({type:Boolean})],nt.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],nt.prototype,"handleOpenChange",1),o([w(["content","hoist","placement"])],nt.prototype,"handleOptionsChange",1),o([w("disabled")],nt.prototype,"handleDisabledChange",1),nt=o([y("sd-tooltip")],nt);H("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});H("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});var Wt=class extends m{constructor(){super(...arguments);this.localize=new S(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new O(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}setVideoInert(t){var e,r;t?(e=this.video)==null||e.setAttribute("inert",""):(r=this.video)==null||r.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.fadeoutPoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var e;(e=this.video)==null||e.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return p`<div part="base" class="cursor-pointer"><button part="play-button" aria-label="${this.localize.term("playVideo")}" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${c(this.playing&&"pointer-events-none","group 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="${c(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 outline-2 outline-offset-2 group-focus-visible:outline")}"><slot name="play-icon" part="play-icon" class="${c(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")?p`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<slot></slot></div>`}};Wt.styles=[...m.styles,v`:host{display:inline-block;overflow:hidden;position:relative}.play-pause-transition,::slotted([slot=poster]){transition-duration:.3s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}::slotted([slot=poster]){left:var(--sd-spacing-0,0);position:absolute;top:var(--sd-spacing-0,0);width:100%;z-index:10}#default-play-icon,::slotted([slot=play-icon]){left:50%;position:absolute;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))}`],o([g("[part=base]")],Wt.prototype,"hostEl",2),o([l({type:Boolean,reflect:!0})],Wt.prototype,"playing",2),o([l({type:Boolean})],Wt.prototype,"isBelowBreakpoint",2),Wt=o([y("sd-video")],Wt);function ml(s,{setValueOnSelection:i,scrollSelectionIntoView:t}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){let e=s?typeof s=="string"?document.querySelector(s):s:document.querySelector("#autoComplete"),r=e.shadowRoot.querySelector("input"),a=n=>n[0];return r.addEventListener("init",()=>{var f,b;let n=(f=e.shadowRoot)==null?void 0:f.querySelector("ul");n==null||n.setAttribute("part","listbox");let d=document.createElement("sd-popup");d.appendChild(n),(b=e.shadowRoot)==null||b.appendChild(d),d==null||d.setAttribute("exportparts","popup__content"),d&&(d.active=!1,d.autoSize="vertical",d.autoSizePadding=16,d.placement="bottom-start",d.anchor=e,d.sync="width");let h=a`sd-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(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-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}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,1))}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;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}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,1))}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,1))}`,u=new CSSStyleSheet;u.replaceSync(h),e.shadowRoot.adoptedStyleSheets=[...e.shadowRoot.adoptedStyleSheets,u]}),i&&r.addEventListener("selection",n=>{var d;e.value=(d=n==null?void 0:n.detail)==null?void 0:d.selection.value}),r.addEventListener("open",()=>{var n,d,h,u,f,b;(d=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-popup"))==null||d.setAttribute("active","true"),(u=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||u.classList.add("rounded-b-none"),(b=(f=e.shadowRoot)==null?void 0:f.querySelector('[part="form-control"]'))==null||b.classList.add("z-50")}),r.addEventListener("close",()=>{var n,d,h,u,f,b;(d=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-popup"))==null||d.removeAttribute("active"),(u=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||u.classList.remove("rounded-b-none"),(b=(f=e.shadowRoot)==null?void 0:f.querySelector('[part="form-control"]'))==null||b.classList.remove("z-50")}),t&&r.addEventListener("navigate",()=>{let n=e.shadowRoot.querySelector('[aria-selected="true"]');n==null||n.scrollIntoView({block:"nearest"})}),{config:{selector:()=>r,resultsList:{tag:"ul"},wrapper:!1}}}return Eo(fl);})();
|