@solid-design-system/components 6.3.0 → 6.4.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/chunks/chunk.XQWDDXL2.js +2 -0
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2DPSCPM4.js +2 -2
- package/cdn-versioned/chunks/chunk.2HJLVWCE.js +2 -2
- package/cdn-versioned/chunks/chunk.2KV3QDYA.js +2 -2
- package/cdn-versioned/chunks/chunk.3ETEQAPR.js +2 -2
- package/cdn-versioned/chunks/chunk.47H4SDKN.js +2 -2
- package/cdn-versioned/chunks/chunk.4LGCXG7D.js +2 -2
- package/cdn-versioned/chunks/chunk.4P5PT6MV.js +2 -2
- package/cdn-versioned/chunks/chunk.5M2K2EXR.js +2 -2
- package/cdn-versioned/chunks/chunk.5OE2GCRH.js +2 -2
- package/cdn-versioned/chunks/chunk.6GU6NFBF.js +1 -1
- package/cdn-versioned/chunks/chunk.745GDIND.js +2 -2
- package/cdn-versioned/chunks/chunk.ALCKOGA7.js +1 -1
- package/cdn-versioned/chunks/chunk.BZ3VHECJ.js +3 -3
- package/cdn-versioned/chunks/chunk.C44GZOLG.js +9 -9
- package/cdn-versioned/chunks/chunk.C4QT4K6T.js +2 -2
- package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
- package/cdn-versioned/chunks/chunk.CJ34NUTS.js +1 -1
- package/cdn-versioned/chunks/chunk.CMY3VPYA.js +2 -2
- package/cdn-versioned/chunks/chunk.D5FVDNYV.js +2 -2
- package/cdn-versioned/chunks/chunk.DC6UQXYF.js +2 -2
- package/cdn-versioned/chunks/chunk.DEEJ4ON7.js +2 -2
- package/cdn-versioned/chunks/chunk.DXGVZ3KG.js +1 -1
- package/cdn-versioned/chunks/chunk.E64WXH47.js +1 -1
- package/cdn-versioned/chunks/chunk.EASLRW3B.js +2 -2
- package/cdn-versioned/chunks/chunk.G42N3VHE.js +2 -2
- package/cdn-versioned/chunks/chunk.GP2QVZP5.js +1 -1
- package/cdn-versioned/chunks/chunk.H77CNSMK.js +2 -2
- package/cdn-versioned/chunks/chunk.HHASCDC2.js +5 -5
- package/cdn-versioned/chunks/chunk.I234MSSB.js +2 -2
- package/cdn-versioned/chunks/chunk.I3TTTGLW.js +1 -1
- package/cdn-versioned/chunks/chunk.IAEOXYGB.js +1 -1
- package/cdn-versioned/chunks/chunk.JRSX44R6.js +2 -2
- package/cdn-versioned/chunks/chunk.KKKGNXIR.js +2 -2
- package/cdn-versioned/chunks/chunk.KM5W4EDY.js +2 -2
- package/cdn-versioned/chunks/chunk.L6PAHLSN.js +2 -2
- package/cdn-versioned/chunks/chunk.MWO5B7BA.js +2 -2
- package/cdn-versioned/chunks/chunk.OAVVKKBJ.js +2 -2
- package/cdn-versioned/chunks/chunk.OG2BQH6T.js +2 -2
- package/cdn-versioned/chunks/chunk.PDHMAKVQ.js +2 -2
- package/cdn-versioned/chunks/chunk.PPIS2HQ5.js +1 -1
- package/cdn-versioned/chunks/chunk.PRGLNPUF.js +1 -1
- package/cdn-versioned/chunks/chunk.PT6G5HKE.js +1 -1
- package/cdn-versioned/chunks/chunk.Q6GEIXGA.js +2 -2
- package/cdn-versioned/chunks/chunk.QMKNC76J.js +2 -2
- package/cdn-versioned/chunks/chunk.QUGI3FMS.js +2 -2
- package/cdn-versioned/chunks/chunk.RBVWPWFK.js +2 -2
- package/cdn-versioned/chunks/chunk.S4II2NTI.js +2 -2
- package/cdn-versioned/chunks/chunk.S7VIPIYX.js +2 -2
- package/cdn-versioned/chunks/chunk.TWNEU4H4.js +3 -3
- package/cdn-versioned/chunks/chunk.TWTQHJPN.js +2 -2
- package/cdn-versioned/chunks/chunk.U44PXBV2.js +2 -2
- package/cdn-versioned/chunks/chunk.U5N7L5RI.js +2 -2
- package/cdn-versioned/chunks/chunk.UVRZTPOZ.js +2 -2
- package/cdn-versioned/chunks/chunk.VAUP57XZ.js +2 -2
- package/cdn-versioned/chunks/chunk.VMUNNUNV.js +1 -1
- package/cdn-versioned/chunks/chunk.VTDQOKJM.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WOZKICWV.js +5 -5
- package/cdn-versioned/chunks/chunk.XAPH6XNH.js +2 -2
- package/cdn-versioned/chunks/chunk.XQWDDXL2.js +2 -0
- package/cdn-versioned/chunks/chunk.XTRMRKZ6.js +2 -2
- package/cdn-versioned/chunks/chunk.Z6TAAGCD.js +2 -2
- package/cdn-versioned/chunks/chunk.ZTELVJ34.js +1 -1
- package/cdn-versioned/chunks/chunk.ZVHLKL7F.js +2 -2
- 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/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- 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/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +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 +1 -1
- 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 +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- 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/tag/tag.js +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/theme-listener/theme-listener.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 +244 -244
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +80 -80
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +80 -80
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +94 -94
- package/cdn-versioned/web-types.json +157 -157
- package/dist/chunks/{chunk.NW7LJJS2.js → chunk.L2RS3IA6.js} +7 -6
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.22PWID5B.js +2 -2
- package/dist-versioned/chunks/chunk.2EWH2DC2.js +1 -1
- package/dist-versioned/chunks/chunk.2HTII44Q.js +4 -4
- package/dist-versioned/chunks/chunk.2VPWVTT6.js +4 -4
- package/dist-versioned/chunks/chunk.3EJL5IKL.js +1 -1
- package/dist-versioned/chunks/chunk.3PTRIEGP.js +2 -2
- package/dist-versioned/chunks/chunk.4UT3FCHQ.js +2 -2
- package/dist-versioned/chunks/chunk.5XWO3USG.js +3 -3
- package/dist-versioned/chunks/chunk.75WDCMIC.js +24 -24
- package/dist-versioned/chunks/chunk.ASEJW6QN.js +5 -5
- package/dist-versioned/chunks/chunk.AUSBWPVD.js +7 -7
- package/dist-versioned/chunks/chunk.AZPOFDJP.js +4 -4
- package/dist-versioned/chunks/chunk.BBLAIT57.js +2 -2
- package/dist-versioned/chunks/chunk.BSP6J6R2.js +2 -2
- package/dist-versioned/chunks/chunk.BTNS6ZNO.js +4 -4
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +3 -3
- package/dist-versioned/chunks/chunk.D4UC3BVQ.js +12 -12
- package/dist-versioned/chunks/chunk.D7CJJHHA.js +1 -1
- package/dist-versioned/chunks/chunk.DCHRUIDY.js +1 -1
- package/dist-versioned/chunks/chunk.DCOB6WLB.js +3 -3
- package/dist-versioned/chunks/chunk.DFHY67LW.js +5 -5
- package/dist-versioned/chunks/chunk.DTTVI7KT.js +11 -11
- package/dist-versioned/chunks/chunk.DXDDB6AB.js +1 -1
- package/dist-versioned/chunks/chunk.FKFGVTXH.js +3 -3
- package/dist-versioned/chunks/chunk.FSUOT4WC.js +12 -12
- package/dist-versioned/chunks/chunk.IJIPMNT2.js +3 -3
- package/dist-versioned/chunks/chunk.IYXPHPNO.js +1 -1
- package/dist-versioned/chunks/chunk.JGRI4R23.js +1 -1
- package/dist-versioned/chunks/chunk.K66JHYHC.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/{chunk.NW7LJJS2.js → chunk.L2RS3IA6.js} +13 -12
- package/dist-versioned/chunks/chunk.L3OEOSPQ.js +1 -1
- package/dist-versioned/chunks/chunk.L6ZE3RXX.js +14 -14
- package/dist-versioned/chunks/chunk.LBDV5GNR.js +4 -4
- package/dist-versioned/chunks/chunk.LZVVDTSP.js +26 -26
- package/dist-versioned/chunks/chunk.M2D3WWF3.js +8 -8
- package/dist-versioned/chunks/chunk.MH7JHBWP.js +2 -2
- package/dist-versioned/chunks/chunk.MLRNCOWA.js +3 -3
- package/dist-versioned/chunks/chunk.NEUULRS7.js +5 -5
- package/dist-versioned/chunks/chunk.OJXVBFUH.js +5 -5
- package/dist-versioned/chunks/chunk.P5FGSFP3.js +1 -1
- package/dist-versioned/chunks/chunk.PBXAIJQ4.js +5 -5
- package/dist-versioned/chunks/chunk.Q7ZMX7IB.js +3 -3
- package/dist-versioned/chunks/chunk.QM4E25CD.js +5 -5
- package/dist-versioned/chunks/chunk.R56JDQAF.js +2 -2
- package/dist-versioned/chunks/chunk.RFDAZXJG.js +3 -3
- package/dist-versioned/chunks/chunk.SCWR4Q4K.js +10 -10
- package/dist-versioned/chunks/chunk.SQYISG5I.js +4 -4
- package/dist-versioned/chunks/chunk.SVYFJMYF.js +3 -3
- package/dist-versioned/chunks/chunk.T46LX45D.js +6 -6
- package/dist-versioned/chunks/chunk.TNJNUASM.js +1 -1
- package/dist-versioned/chunks/chunk.TUMONDN4.js +4 -4
- package/dist-versioned/chunks/chunk.TVWV4PUH.js +2 -2
- package/dist-versioned/chunks/chunk.U2BN2DBY.js +4 -4
- package/dist-versioned/chunks/chunk.UDPSGKZL.js +4 -4
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UPCVQSXM.js +3 -3
- package/dist-versioned/chunks/chunk.UWQPJU3Q.js +3 -3
- package/dist-versioned/chunks/chunk.XALPLS2Y.js +6 -6
- package/dist-versioned/chunks/chunk.XV2UO6TF.js +2 -2
- package/dist-versioned/chunks/chunk.YATRFNET.js +28 -28
- package/dist-versioned/chunks/chunk.YFRD2UEO.js +8 -8
- package/dist-versioned/chunks/chunk.YNBR5ZDU.js +4 -4
- package/dist-versioned/chunks/chunk.ZMEUQIVY.js +9 -9
- 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/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/dist-versioned/components/combobox/combobox.js +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- 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/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +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 +1 -1
- 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 +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/select/select.js +1 -1
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- 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/tag/tag.js +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/theme-listener/theme-listener.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 +244 -244
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +94 -94
- package/dist-versioned/web-types.json +157 -157
- package/package.json +1 -1
- package/cdn/chunks/chunk.HYUIC2O6.js +0 -2
- package/cdn-versioned/chunks/chunk.HYUIC2O6.js +0 -2
|
@@ -159,72 +159,72 @@ var Wr=Object.defineProperty,Mo=Object.defineProperties,So=Object.getOwnProperty
|
|
|
159
159
|
<path d="M6.843 10.167a.834.834 0 1 1-1.667 0 .834.834 0 0 1 1.667 0ZM6.01 1a2.777 2.777 0 0 0-2.778 2.777.834.834 0 0 0 1.667 0 1.111 1.111 0 0 1 2.222 0c0 .24-.517.792-.834 1.111-.555.586-1.11 1.192-1.11 1.944v.015a.834.834 0 0 0 1.666.014c.196-.316.416-.59.666-.833.6-.64 1.278-1.362 1.278-2.262A2.777 2.777 0 0 0 6.01 1Z"/>
|
|
160
160
|
</svg>
|
|
161
161
|
`},Ko={name:"sd-status-assets",resolver:s=>s in da?`data:image/svg+xml,${encodeURIComponent(da[s])}`:"",mutator:s=>s.setAttribute("fill","currentColor")},ca=Ko;var fr=[la,oa,ca],gr=[];function ha(s){gr.push(s)}function ua(s){gr=gr.filter(i=>i!==s)}function as(s){return fr.find(i=>i.name===s)}function jo(s,i){pa(s),fr.push({name:s,resolver:i.resolver,mutator:i.mutator}),gr.forEach(t=>{t.library===s&&t.setIcon()})}function pa(s){fr=fr.filter(i=>i.name!==s)}var Wo={attribute:!0,type:String,converter:Oe,reflect:!1,hasChanged:lr},Yo=(s=Wo,i,t)=>{let{kind:e,metadata:r}=t,o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),e==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(t.name,s),e==="accessor"){let{name:n}=t;return{set(l){let h=i.get.call(this);i.set.call(this,l),this.requestUpdate(n,h,s)},init(l){return l!==void 0&&this.C(n,void 0,s,l),l}}}if(e==="setter"){let{name:n}=t;return function(l){let h=this[n];i.call(this,l),this.requestUpdate(n,h,s)}}throw Error("Unsupported decorator location: "+e)};function d(s){return(i,t)=>typeof t=="object"?Yo(s,i,t):((e,r,o)=>{let n=r.hasOwnProperty(o);return r.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(r,o):void 0})(s,i,t)}function L(s){return d(vt(B({},s),{state:!0,attribute:!1}))}var de=(s,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(s,i,t),t);function v(s,i){return(t,e,r)=>{let o=n=>{var l,h;return(h=(l=n.renderRoot)==null?void 0:l.querySelector(s))!=null?h:null};if(i){let{get:n,set:l}=typeof e=="object"?t:r!=null?r:(()=>{let h=Symbol();return{get(){return this[h]},set(u){this[h]=u}}})();return de(t,e,{get(){let h=n.call(this);return h===void 0&&(h=o(this),(h!==null||this.hasUpdated)&&l.call(this,h)),h}})}return de(t,e,{get(){return o(this)}})}}var os;function br(s){return(i,t)=>de(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:os!=null?os:os=document.createDocumentFragment()).querySelectorAll(s)}})}function ma(s){return(i,t)=>de(i,t,{async get(){var e,r;return await this.updateComplete,(r=(e=this.renderRoot)==null?void 0:e.querySelector(s))!=null?r:null}})}function gi(s){return(i,t)=>{let{slot:e,selector:r}=s!=null?s:{},o="slot"+(e?`[name=${e}]`:":not([name])");return de(i,t,{get(){var h,u;let n=(h=this.renderRoot)==null?void 0:h.querySelector(o),l=(u=n==null?void 0:n.assignedElements(s))!=null?u:[];return r===void 0?l:l.filter((m=>m.matches(r)))}})}}var ns=new Map;function vr(s,i="cors"){if(ns.has(s))return ns.get(s);let t=fetch(s,{mode:i}).then(async e=>({ok:e.ok,status:e.status,html:await e.text()}));return ns.set(s,t),t}var ls=new Map;async function fa(s){if(ls.has(s))return ls.get(s);let i=await vr(s),t={ok:i.ok,status:i.status,svg:null};if(i.ok){let e=document.createElement("div");e.innerHTML=i.html;let r=e.firstElementChild;t.svg=(r==null?void 0:r.tagName.toLowerCase())==="svg"?r.outerHTML:""}return ls.set(s,t),t}var Kt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},te=s=>(...i)=>({_$litDirective$:s,values:i}),Ie=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this._$Ct=i,this._$AM=t,this._$Ci=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var ti=class extends Ie{constructor(i){if(super(i),this.it=W,i.type!==Kt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===W||i==null)return this._t=void 0,this.it=i;if(i===zt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ti.directiveName="unsafeHTML",ti.resultType=1;var Hi=te(ti);var Vi=class extends ti{};Vi.directiveName="unsafeSVG",Vi.resultType=2;var yr=te(Vi);function E(s,i){let t=B({waitUntilFirstUpdate:!1},i);return(e,r)=>{let{update:o}=e,n=Array.isArray(s)?s:[s];e.update=function(l){n.forEach(h=>{let u=h;if(l.has(u)){let m=l.get(u),f=this[u];m!==f&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[r](m,f)}}),o.call(this,l)}}}function ds(s,i){let t=/var\((--[\w-]+)(?:,\s*([^)]+))?\)/.exec(s);if(!t)return s;let[,e,r]=t;return getComputedStyle(i).getPropertyValue(e).trim()||r||null}function K(s,i,t){return new Promise(e=>{var l;if((t==null?void 0:t.duration)===1/0)throw new Error("Promise-based animations must be finite.");let r=Fi(),o=typeof t.duration=="string"?bi((l=ds(t.duration,s))!=null?l:""):t.duration,n=s.animate(i,vt(B({},t),{duration:r&&(t==null?void 0:t.reducedMotion)!=="allow"?0:o}));n.addEventListener("cancel",e,{once:!0}),n.addEventListener("finish",e,{once:!0})})}function bi(s){return s=s.toString().toLowerCase(),s.indexOf("ms")>-1?parseFloat(s):s.indexOf("s")>-1?parseFloat(s)*1e3:parseFloat(s)}function Fi(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Y(s){return Promise.all(s.getAnimations().map(i=>new Promise(t=>{let e=requestAnimationFrame(t);i.addEventListener("cancel",()=>e,{once:!0}),i.addEventListener("finish",()=>e,{once:!0}),i.cancel()})))}function we(s,i){return s.map(t=>vt(B({},t),{height:t.height==="auto"?`${i}px`:t.height}))}var Xo=nr,wr={"sd-duration":s=>bi(s)},g=class extends _e{connectedCallback(){super.connectedCallback(),this.onThemeChange&&this.renderRoot.addEventListener("sd-theme-change",this.onThemeChange.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.onThemeChange&&this.renderRoot.removeEventListener("sd-theme-change",this.onThemeChange.bind(this))}emit(i,t){let e=new CustomEvent(i,B({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(e),e}token(i,t){var o,n,l;let e=ds(`var(${i})`,this);if(e===null)return t;let r=Object.keys(wr).find(h=>i.startsWith(h));return(l=(n=(o=wr[r!=null?r:i])==null?void 0:o.call(wr,e))!=null?n:e)!=null?l:t}};g.styles=[Xo`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
162
|
-
:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;--text-xs--line-height:calc(1 / 0.75);--text-sm--line-height:calc(1.25 / 0.875);--text-base--line-height:calc(1.5 / 1);--text-lg--line-height:calc(1.75 / 1.125);--text-xl--line-height:calc(1.75 / 1.25);--text-2xl--line-height:calc(2 / 1.5);--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl--line-height:calc(2.5 / 2.25);--leading-tight:1.25;--leading-normal:1.5;--ease-out:cubic-bezier(0, 0, 0.2, 1);--ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);--default-mono-font-family:var(--font-mono);--outline-color-primary:var(--sd-color-border-primary, var(--sd-color-primary))}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.\\!absolute{position:absolute!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--sd-spacing-1) * 0)}.inset-x-0{inset-inline:calc(var(--sd-spacing-1) * 0)}.-inset-y-2{inset-block:calc(var(--sd-spacing-2) * -1)}.start-0{inset-inline-start:calc(var(--sd-spacing-1) * 0)}.start-auto{inset-inline-start:auto}.end-0{inset-inline-end:calc(var(--sd-spacing-1) * 0)}.end-2{inset-inline-end:var(--sd-spacing-2)}.end-auto{inset-inline-end:auto}.-top-0\\.25{top:calc(var(--sd-spacing-0\\.25) * -1)}.-top-4{top:calc(var(--sd-spacing-4) * -1)}.top-0{top:calc(var(--sd-spacing-1) * 0)}.top-1{top:var(--sd-spacing-1)}.top-1\\/2{top:calc(1/2 * 100%)}.top-2{top:var(--sd-spacing-2)}.top-2\\.5{top:calc(var(--sd-spacing-1) * 2.5)}.top-full{top:100%}.\\!right-0{right:calc(var(--sd-spacing-1) * 0)!important}.right-0{right:calc(var(--sd-spacing-1) * 0)}.right-2{right:var(--sd-spacing-2)}.right-4{right:var(--sd-spacing-4)}.right-auto{right:auto}.bottom-0{bottom:calc(var(--sd-spacing-1) * 0)}.bottom-auto{bottom:auto}.left-0{left:calc(var(--sd-spacing-1) * 0)}.left-1\\/2{left:calc(1/2 * 100%)}.left-2{left:var(--sd-spacing-2)}.left-4{left:var(--sd-spacing-4)}.left-12{left:var(--sd-spacing-12)}.left-\\[36px\\]{left:36px}.left-\\[44px\\]{left:44px}.left-auto{left:auto}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.-z-20{z-index:calc(20 * -1)}.z-0{z-index:0}.z-10{z-index:10}.z-10{z-index:10}.z-20{z-index:20}.z-20{z-index:20}.z-30{z-index:30}.z-30{z-index:30}.z-50{z-index:50}.z-50{z-index:50}.z-\\[0\\]{z-index:0}.z-\\[1\\]{z-index:1}.z-\\[calc\\(var\\(z-dropdown\\)-1\\)\\]{z-index:calc(var(z-dropdown) - 1)}.z-auto{z-index:auto}.z-auto{z-index:auto}.z-dialog{z-index:var(--sd-z-index-dialog,800)}.z-dropdown{z-index:var(--sd-z-index-dropdown,900)}.order-1{order:1}.order-2{order:2}.container{width:100%}@media (width >= 40rem){.container{max-width:40rem}}@media (width >= 48rem){.container{max-width:48rem}}@media (width >= 64rem){.container{max-width:64rem}}@media (width >= 80rem){.container{max-width:80rem}}@media (width >= 96rem){.container{max-width:96rem}}.\\!m-0{margin:calc(var(--sd-spacing-1) * 0)!important}.m-0{margin:calc(var(--sd-spacing-1) * 0)}.m-2{margin:var(--sd-spacing-2)}.m-4{margin:var(--sd-spacing-4)}.-mx-2{margin-inline:calc(var(--sd-spacing-2) * -1)}.mx-2{margin-inline:var(--sd-spacing-2)}.mx-\\[-1px\\]{margin-inline:-1px}.mx-auto{margin-inline:auto}.my-0{margin-block:calc(var(--sd-spacing-1) * 0)}.my-\\[6px\\]{margin-block:6px}.my-auto{margin-block:auto}.ms-4{margin-inline-start:var(--sd-spacing-4)}.me-1{margin-inline-end:var(--sd-spacing-1)}.-mt-1{margin-top:calc(var(--sd-spacing-1) * -1)}.-mt-\\[10px\\]{margin-top:calc(10px * -1)}.mt-0\\.5{margin-top:var(--sd-spacing-0\\.5)}.mt-0\\.25{margin-top:var(--sd-spacing-0\\.25)}.mt-1{margin-top:var(--sd-spacing-1)}.mt-2{margin-top:var(--sd-spacing-2)}.mt-3{margin-top:var(--sd-spacing-3)}.mt-4{margin-top:var(--sd-spacing-4)}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-\\[11\\%\\]{margin-top:11%}.mt-\\[22\\%\\]{margin-top:22%}.mt-\\[var\\(--spacing-xxl\\)\\]{margin-top:var(--spacing-xxl)}.mt-auto{margin-top:auto}.\\!mr-6{margin-right:var(--sd-spacing-6)!important}.mr-0{margin-right:calc(var(--sd-spacing-1) * 0)}.mr-1{margin-right:var(--sd-spacing-1)}.mr-2{margin-right:var(--sd-spacing-2)}.mr-4{margin-right:var(--sd-spacing-4)}.mr-\\[0\\.5em\\]{margin-right:.5em}.mr-\\[0\\.25em\\]{margin-right:.25em}.\\!mb-4{margin-bottom:var(--sd-spacing-4)!important}.-mb-2{margin-bottom:calc(var(--sd-spacing-2) * -1)}.mb-0\\.5{margin-bottom:var(--sd-spacing-0\\.5)}.mb-2{margin-bottom:var(--sd-spacing-2)}.mb-3{margin-bottom:var(--sd-spacing-3)}.mb-4{margin-bottom:var(--sd-spacing-4)}.mb-6{margin-bottom:var(--sd-spacing-6)}.mb-\\[10px\\]{margin-bottom:10px}.mb-auto{margin-bottom:auto}.\\!ml-6{margin-left:var(--sd-spacing-6)!important}.ml-1{margin-left:var(--sd-spacing-1)}.ml-2{margin-left:var(--sd-spacing-2)}.ml-3{margin-left:var(--sd-spacing-3)}.ml-6{margin-left:var(--sd-spacing-6)}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.\\!hidden{display:none!important}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.aspect-square{aspect-ratio:var(--sd-aspect-square)}.size-4{width:var(--sd-spacing-4);height:var(--sd-spacing-4)}.h-0{height:calc(var(--sd-spacing-1) * 0)}.h-0\\.25{height:var(--sd-spacing-0\\.25)}.h-1{height:var(--sd-spacing-1)}.h-2{height:var(--sd-spacing-2)}.h-2\\.5{height:calc(var(--sd-spacing-1) * 2.5)}.h-3{height:var(--sd-spacing-3)}.h-4{height:var(--sd-spacing-4)}.h-5{height:calc(var(--sd-spacing-1) * 5)}.h-6{height:var(--sd-spacing-6)}.h-8{height:var(--sd-spacing-8)}.h-10{height:var(--sd-spacing-10)}.h-12{height:var(--sd-spacing-12)}.h-16{height:var(--sd-spacing-16)}.h-\\[0px\\]{height:0}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[6px\\]{height:6px}.h-\\[10px\\]{height:10px}.h-\\[48px\\]{height:48px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.navigable__current-indicator-height{height:var(--sd-navigable__current-indicator-height,var(--sd-spacing-1))}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.min-h-full{min-height:100%}.min-h-varspacing{min-height:var(--tw-varspacing)}.navigable__current-indicator-width{width:var(--sd-navigable__current-indicator-width,var(--sd-spacing-1))}.w-0{width:calc(var(--sd-spacing-1) * 0)}.w-0\\.5{width:var(--sd-spacing-0\\.5)}.w-0\\.25{width:var(--sd-spacing-0\\.25)}.w-1{width:var(--sd-spacing-1)}.w-2\\.5{width:calc(var(--sd-spacing-1) * 2.5)}.w-3{width:var(--sd-spacing-3)}.w-3\\/4{width:calc(3/4 * 100%)}.w-4{width:var(--sd-spacing-4)}.w-5{width:calc(var(--sd-spacing-1) * 5)}.w-6{width:var(--sd-spacing-6)}.w-8{width:var(--sd-spacing-8)}.w-12{width:var(--sd-spacing-12)}.w-40{width:var(--sd-spacing-40)}.w-\\[1px\\]{width:1px}.w-\\[6px\\]{width:6px}.w-\\[36px\\]{width:36px}.w-\\[48px\\]{width:48px}.w-\\[96px\\]{width:96px}.w-\\[284px\\]{width:284px}.w-\\[calc\\(100\\%-16px\\)\\]{width:calc(100% - 16px)}.w-\\[var\\(--width\\)\\]{width:var(--width)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-varspacing{width:var(--tw-varspacing)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--sd-spacing-1) * 0)}.min-w-40{min-width:var(--sd-spacing-40)}.min-w-\\[284px\\]{min-width:284px}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.flex-1{flex:1}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:auto}.flex-initial{flex:0 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.\\!translate-x-1\\/2{--tw-translate-x:calc(1/2 * 100%)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-2{--tw-translate-x:var(--sd-spacing-2);translate:var(--tw-translate-x) var(--tw-translate-y)}.\\!-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.\\!translate-y-0{--tw-translate-y:calc(var(--sd-spacing-1) * 0)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-0{rotate:0deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.rotate-\\[-90deg\\]{rotate:-90deg}.rotate-\\[270deg\\]{rotate:270deg}.skew-y-\\[-11deg\\]{--tw-skew-y:skewY(-11deg);transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform-none{transform:none}.animate-bounce-once{animation:bounce-once var(--sd-duration-medium,300ms) ease-in-out}.animate-grow{animation:grow linear}.animate-loader-current{animation:wave 1.3s infinite,loader-color-current 2.6s infinite}.animate-loader-primary{animation:wave 1.3s infinite,loader-color-primary 2.6s infinite}.animate-loader-white{animation:wave 1.3s infinite,loader-color-white 2.6s infinite}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.\\!cursor-not-allowed{cursor:not-allowed!important}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0\\.5{gap:var(--sd-spacing-0\\.5)}.gap-1{gap:var(--sd-spacing-1)}.gap-2{gap:var(--sd-spacing-2)}.gap-3{gap:var(--sd-spacing-3)}.gap-4{gap:var(--sd-spacing-4)}.gap-6{gap:var(--sd-spacing-6)}.gap-8{gap:var(--sd-spacing-8)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.gap-y-\\[1px\\]{row-gap:1px}.self-center{align-self:center}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.overscroll-x-contain{overscroll-behavior-x:contain}.scroll-auto{scroll-behavior:auto}.\\!navigable-border-radius{border-radius:var(--sd-navigable-border-radius,0)!important}.\\!rounded-sm{border-radius:var(--sd-radius-sm)!important}.navigable-border-radius{border-radius:var(--sd-navigable-border-radius,0)}.navigable__current-indicator-border-radius{border-radius:var(--sd-navigable__current-indicator-border-radius,0)}.rounded{border-radius:.25rem}.rounded-\\[4px_4px_0_0\\]{border-radius:4px 4px 0 0}.rounded-default{border-radius:var(--sd-radius)}.rounded-full{border-radius:var(--sd-radius-full)}.rounded-md{border-radius:var(--sd-radius-md)}.rounded-none{border-radius:var(--sd-radius-none)}.rounded-sm{border-radius:var(--sd-radius-sm)}.sd-6-3-0-button--size-lg-border-radius{border-radius:var(--sd-button--size-lg-border-radius,var(--sd-spacing-1))}.sd-6-3-0-button--size-md-border-radius{border-radius:var(--sd-button--size-md-border-radius,var(--sd-spacing-1))}.sd-6-3-0-button--size-sm-border-radius{border-radius:var(--sd-button--size-sm-border-radius,var(--sd-spacing-1))}.sd-6-3-0-radio-button-border-radius{border-radius:var(--sd-radio-button-border-radius,624.9375rem)}.sd-6-3-0-radio-button-group-border-radius{border-radius:var(--sd-radio-button-group-border-radius,624.9375rem)}.sd-6-3-0-tag-border-radius{border-radius:var(--sd-tag-border-radius,624.9375rem)}.rounded-l-md{border-top-left-radius:var(--sd-radius-md);border-bottom-left-radius:var(--sd-radius-md)}.rounded-l-none{border-top-left-radius:var(--sd-radius-none);border-bottom-left-radius:var(--sd-radius-none)}.rounded-tl-default{border-top-left-radius:var(--sd-radius)}.rounded-tl-none{border-top-left-radius:var(--sd-radius-none)}.rounded-r-md{border-top-right-radius:var(--sd-radius-md);border-bottom-right-radius:var(--sd-radius-md)}.rounded-r-none{border-top-right-radius:var(--sd-radius-none);border-bottom-right-radius:var(--sd-radius-none)}.rounded-tr-default{border-top-right-radius:var(--sd-radius)}.rounded-tr-none{border-top-right-radius:var(--sd-radius-none)}.rounded-b-default{border-bottom-right-radius:var(--sd-radius);border-bottom-left-radius:var(--sd-radius)}.rounded-b-none{border-bottom-right-radius:var(--sd-radius-none);border-bottom-left-radius:var(--sd-radius-none)}.rounded-br-default{border-bottom-right-radius:var(--sd-radius)}.rounded-br-none{border-bottom-right-radius:var(--sd-radius-none)}.rounded-bl-default{border-bottom-left-radius:var(--sd-radius)}.rounded-bl-none{border-bottom-left-radius:var(--sd-radius-none)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:var(--sd-border-width-2)}.border-\\[1px\\]{border-style:var(--tw-border-style);border-width:1px}.sd-6-3-0-carousel__pager-dot-border-width{border-width:var(--sd-carousel__pager-dot-border-width,var(--sd-spacing-0\\.25))}.sd-6-3-0-checkbox-border-width{border-width:var(--sd-checkbox-border-width,var(--sd-spacing-0\\.25))}.sd-6-3-0-radio-border-width{border-width:var(--sd-radio-border-width,var(--sd-spacing-0\\.25))}.sd-6-3-0-radio-button-group-border-width{border-width:var(--sd-radio-button-group-border-width,var(--sd-spacing-0\\.25))}.sd-6-3-0-step__circle-border-width{border-width:var(--sd-step__circle-border-width,var(--sd-spacing-0\\.25))}.sd-6-3-0-tag--selected-border-width{border-width:var(--sd-tag--selected-border-width,0)}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:var(--sd-border-width-2)}.border-r-2{border-right-style:var(--tw-border-style);border-right-width:var(--sd-border-width-2)}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:var(--sd-border-width-2)}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:var(--sd-border-width-2)}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:var(--sd-border-width-4)}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent{border-color:rgba(var(--sd-color-border-accent))}.border-error{border-color:rgba(var(--sd-color-border-error))}.border-neutral-400{border-color:rgba(var(--sd-color-border-neutral-400))}.border-neutral-500{border-color:rgba(var(--sd-color-border-neutral-500))}.border-neutral-600{border-color:rgba(var(--sd-color-border-neutral-600))}.border-neutral-800{border-color:rgba(var(--sd-color-border-neutral-800))}.border-primary{border-color:rgba(var(--sd-color-border-primary))}.border-success{border-color:rgba(var(--sd-color-border-success))}.border-transparent{border-color:transparent}.border-white{border-color:rgba(var(--sd-color-border-white))}.form-control-color-border{border-color:rgba(var(--sd-form-control-color-border,rgba(var(--sd-color-neutral-800))))}.panel-color-border{border-color:rgba(var(--sd-panel-color-border,rgba(255,255,255,0)))}.sd-6-3-0-badge--inverted-color-border{border-color:rgba(var(--sd-badge--inverted-color-border,rgba(var(--sd-color-primary))))}.sd-6-3-0-carousel--active--inverted-color-border{border-color:rgba(var(--sd-carousel--active--inverted-color-border,rgba(var(--sd-color-accent))))}.sd-6-3-0-carousel--active-color-border{border-color:rgba(var(--sd-carousel--active-color-border,rgba(var(--sd-color-accent))))}.sd-6-3-0-carousel__pager-dot--inverted-border{border-color:rgba(var(--sd-carousel__pager-dot--inverted-border,rgba(var(--sd-color-white))))}.sd-6-3-0-divider--inverted-color-border{border-color:rgba(var(--sd-divider--inverted-color-border,rgba(var(--sd-color-primary-400))))}.sd-6-3-0-notification-color-border{border-color:rgba(var(--sd-notification-color-border,rgba(var(--sd-color-neutral-400))))}.sd-6-3-0-option--disabled-color-border{border-color:rgba(var(--sd-option--disabled-color-border,rgba(var(--sd-color-neutral-500))))}.sd-6-3-0-switch--unchecked-color-border{border-color:rgba(var(--sd-switch--unchecked-color-border,rgba(var(--sd-color-neutral-800))))}.sd-6-3-0-tab-color-border{border-color:rgba(var(--sd-tab-color-border,rgba(var(--sd-color-neutral-400))))}.sd-6-3-0-tag--default-color-border{border-color:rgba(var(--sd-tag--default-color-border,rgba(var(--sd-color-primary))))}.sd-6-3-0-tag--selected--default-color-border{border-color:rgba(var(--sd-tag--selected--default-color-border,rgba(255,255,255,0)))}.sd-6-3-0-teaser--neutral-400-color-border{border-color:rgba(var(--sd-teaser--neutral-400-color-border,rgba(var(--sd-color-neutral-400))))}.bg-accent{background-color:rgba(var(--sd-color-background-accent))}.bg-accent-550{background-color:rgba(var(--sd-color-background-accent-550))}.bg-accent-700{background-color:rgba(var(--sd-color-background-accent-700))}.bg-error{background-color:rgba(var(--sd-color-background-error))}.bg-info{background-color:rgba(var(--sd-color-background-info))}.bg-neutral-100{background-color:rgba(var(--sd-color-background-neutral-100))}.bg-neutral-200{background-color:rgba(var(--sd-color-background-neutral-200))}.bg-neutral-400{background-color:rgba(var(--sd-color-background-neutral-400))}.bg-neutral-500{background-color:rgba(var(--sd-color-background-neutral-500))}.bg-neutral-800{background-color:rgba(var(--sd-color-background-neutral-800))}.bg-primary{background-color:rgba(var(--sd-color-background-primary))}.bg-primary-100{background-color:rgba(var(--sd-color-background-primary-100))}.bg-primary-200{background-color:rgba(var(--sd-color-background-primary-200))}.bg-primary-500{background-color:rgba(var(--sd-color-background-primary-500))}.bg-primary\\/\\[\\.8\\]{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/\\[\\.8\\]{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) 80%,transparent)}}.bg-success{background-color:rgba(var(--sd-color-background-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgba(var(--sd-color-background-warning))}.bg-white{background-color:rgba(var(--sd-color-background-white))}.bg-white\\/75{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.bg-white\\/75{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-75),transparent)}}.bg-white\\/\\[\\.8\\]{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.bg-white\\/\\[\\.8\\]{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) 80%,transparent)}}.form-control--invalid-color-background{background-color:rgba(var(--sd-form-control--invalid-color-background,rgba(var(--sd-color-white))))}.overlay-color-background{background-color:rgba(var(--sd-overlay-color-background,rgba(5,21,48,.9)))}.sd-6-3-0-accordion__indicator-color{background-color:rgba(var(--sd-accordion__indicator-color,rgba(var(--sd-color-accent))))}.sd-6-3-0-badge--blue--inverted-color-background{background-color:rgba(var(--sd-badge--blue--inverted-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-3-0-badge--green-color--inverted-background{background-color:rgba(var(--sd-badge--green-color--inverted-background,rgba(var(--sd-color-success))))}.sd-6-3-0-badge--green-color-background{background-color:rgba(var(--sd-badge--green-color-background,rgba(var(--sd-color-success))))}.sd-6-3-0-badge--red--inverted-background{background-color:rgba(var(--sd-badge--red--inverted-background,rgba(var(--sd-color-error))))}.sd-6-3-0-badge--red-color-background{background-color:rgba(var(--sd-badge--red-color-background,rgba(var(--sd-color-error))))}.sd-6-3-0-button--cta--inverted--default-color-background{background-color:rgba(var(--sd-button--cta--inverted--default-color-background,rgba(var(--sd-color-accent))))}.sd-6-3-0-button--cta--inverted--hover-color-background{background-color:rgba(var(--sd-button--cta--inverted--hover-color-background,rgba(var(--sd-color-accent-500))))}.sd-6-3-0-button--primary--default-color-background{background-color:rgba(var(--sd-button--primary--default-color-background,rgba(var(--sd-color-primary))))}.sd-6-3-0-button--primary--hover-color-background{background-color:rgba(var(--sd-button--primary--hover-color-background,rgba(var(--sd-color-primary-500))))}.sd-6-3-0-button--primary--inverted--default-color-background{background-color:rgba(var(--sd-button--primary--inverted--default-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-button--primary--inverted--hover-color-background{background-color:rgba(var(--sd-button--primary--inverted--hover-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-3-0-button--secondary--hover-color-background{background-color:rgba(var(--sd-button--secondary--hover-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-3-0-button--tertiary--hover-color-background{background-color:rgba(var(--sd-button--tertiary--hover-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-3-0-carousel__pager-dot--inverted-background{background-color:rgba(var(--sd-carousel__pager-dot--inverted-background,rgba(var(--sd-color-accent))))}.sd-6-3-0-carousel__pager-dot-background{background-color:rgba(var(--sd-carousel__pager-dot-background,rgba(var(--sd-color-accent))))}.sd-6-3-0-header-color-background{background-color:rgba(var(--sd-header-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-notification--error-color-background{background-color:rgba(var(--sd-notification--error-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-notification--info-color-background{background-color:rgba(var(--sd-notification--info-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-notification--success-color-background{background-color:rgba(var(--sd-notification--success-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-notification--warning-color-background{background-color:rgba(var(--sd-notification--warning-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-radio--checked--default-color-background{background-color:rgba(var(--sd-radio--checked--default-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-radio--checked--default__icon-color-background{background-color:rgba(var(--sd-radio--checked--default__icon-color-background,rgba(var(--sd-color-accent))))}.sd-6-3-0-radio--checked--invalid--default-color-background{background-color:rgba(var(--sd-radio--checked--invalid--default-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-radio--checked--invalid--default__icon-color-background{background-color:rgba(var(--sd-radio--checked--invalid--default__icon-color-background,rgba(var(--sd-color-error))))}.sd-6-3-0-radio--default--invalid-color-background{background-color:rgba(var(--sd-radio--default--invalid-color-background,rgba(var(--sd-color-white))))}.sd-6-3-0-switch--unchecked__icon-color-background{background-color:rgba(var(--sd-switch--unchecked__icon-color-background,rgba(var(--sd-color-neutral-800))))}.sd-6-3-0-tag--default-color-background{background-color:rgba(var(--sd-tag--default-color-background,rgba(255,255,255,0)))}.sd-6-3-0-tag--selected--default-color-background{background-color:rgba(var(--sd-tag--selected--default-color-background,rgba(var(--sd-color-primary))))}.sd-6-3-0-teaser--neutral-100-color-background{background-color:rgba(var(--sd-teaser--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}.sd-6-3-0-teaser--primary-100-color-background{background-color:rgba(var(--sd-teaser--primary-100-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-3-0-teaser-media--neutral-100-color-background{background-color:rgba(var(--sd-teaser-media--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}.sd-6-3-0-teaser-media--primary-100-color-background{background-color:rgba(var(--sd-teaser-media--primary-100-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-3-0-tooltip-color-background{background-color:rgba(var(--sd-tooltip-color-background,rgba(var(--sd-color-primary))))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-none{background-image:none}.from-primary-800\\/60{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/60{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-60), transparent)}}.from-primary-800\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary-800\\/75{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/75{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-75), transparent)}}.from-primary-800\\/75{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary-800\\/90{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/90{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-90), transparent)}}.from-primary-800\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary-800\\/\\[\\.8\\]{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/\\[\\.8\\]{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) 80%, transparent)}}.from-primary-800\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/60{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/60{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-60), transparent)}}.from-white\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/75{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/75{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-75), transparent)}}.from-white\\/75{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/90{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/90{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-90), transparent)}}.from-white\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/\\[\\.8\\]{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/\\[\\.8\\]{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) 80%, transparent)}}.from-white\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-800\\/0{--tw-gradient-to:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.to-primary-800\\/0{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-0), transparent)}}.to-primary-800\\/0{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-800\\/60{--tw-gradient-to:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.to-primary-800\\/60{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-60), transparent)}}.to-primary-800\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-800\\/\\[\\.8\\]{--tw-gradient-to:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.to-primary-800\\/\\[\\.8\\]{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) 80%, transparent)}}.to-primary-800\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white\\/0{--tw-gradient-to:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.to-white\\/0{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-0), transparent)}}.to-white\\/0{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white\\/60{--tw-gradient-to:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.to-white\\/60{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-60), transparent)}}.to-white\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white\\/\\[\\.8\\]{--tw-gradient-to:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.to-white\\/\\[\\.8\\]{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-white)) 80%, transparent)}}.to-white\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-60\\%{--tw-gradient-to-position:60%}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-accent{fill:rgba(var(--sd-color-icon-fill-accent))}.fill-transparent{fill:transparent}.fill-white{fill:rgba(var(--sd-color-icon-fill-white))}.sd-6-3-0-map-marker-cluster--hovered-color-icon-fill{fill:rgba(var(--sd-map-marker-cluster--hovered-color-icon-fill,rgba(var(--sd-color-primary-500))))}.sd-6-3-0-map-marker-cluster-color-icon-fill{fill:rgba(var(--sd-map-marker-cluster-color-icon-fill,rgba(var(--sd-color-primary))))}.p-0{padding:calc(var(--sd-spacing-1) * 0)}.p-1{padding:var(--sd-spacing-1)}.p-2{padding:var(--sd-spacing-2)}.p-3{padding:var(--sd-spacing-3)}.p-4{padding:var(--sd-spacing-4)}.sd-6-3-0-radio-button-group-padding{padding:var(--sd-radio-button-group-padding,0)}.px-0{padding-inline:calc(var(--sd-spacing-1) * 0)}.px-2{padding-inline:var(--sd-spacing-2)}.px-3{padding-inline:var(--sd-spacing-3)}.px-4{padding-inline:var(--sd-spacing-4)}.px-5{padding-inline:calc(var(--sd-spacing-1) * 5)}.px-6{padding-inline:var(--sd-spacing-6)}.px-10{padding-inline:var(--sd-spacing-10)}.px-12{padding-inline:var(--sd-spacing-12)}.px-\\[0\\.938rem\\]{padding-inline:.938rem}.py-0{padding-block:calc(var(--sd-spacing-1) * 0)}.py-1{padding-block:var(--sd-spacing-1)}.py-2{padding-block:var(--sd-spacing-2)}.py-3{padding-block:var(--sd-spacing-3)}.py-4{padding-block:var(--sd-spacing-4)}.py-6{padding-block:var(--sd-spacing-6)}.py-8{padding-block:var(--sd-spacing-8)}.py-\\[0\\.281rem\\]{padding-block:.281rem}.py-\\[0\\.438rem\\]{padding-block:.438rem}.py-\\[0\\.688rem\\]{padding-block:.688rem}.py-\\[5px\\]{padding-block:5px}.sd-6-3-0-accordion-padding-block{padding-block:var(--sd-accordion-padding-block,var(--sd-spacing-3))}.sd-6-3-0-button--size-lg-padding-block{padding-block:var(--sd-button--size-lg-padding-block,var(--sd-spacing-3))}.sd-6-3-0-button--size-md-padding-block{padding-block:var(--sd-button--size-md-padding-block,var(--sd-spacing-2))}.sd-6-3-0-button--size-sm-padding-block{padding-block:var(--sd-button--size-sm-padding-block,var(--sd-spacing-2))}.ps-4{padding-inline-start:var(--sd-spacing-4)}.pt-0{padding-top:calc(var(--sd-spacing-1) * 0)}.pt-1{padding-top:var(--sd-spacing-1)}.pt-2{padding-top:var(--sd-spacing-2)}.pt-3{padding-top:var(--sd-spacing-3)}.pt-6{padding-top:var(--sd-spacing-6)}.pr-2{padding-right:var(--sd-spacing-2)}.pr-3{padding-right:var(--sd-spacing-3)}.pr-4{padding-right:var(--sd-spacing-4)}.pb-1{padding-bottom:var(--sd-spacing-1)}.pb-2{padding-bottom:var(--sd-spacing-2)}.pb-3{padding-bottom:var(--sd-spacing-3)}.pb-4{padding-bottom:var(--sd-spacing-4)}.pl-3{padding-left:var(--sd-spacing-3)}.pl-4{padding-left:var(--sd-spacing-4)}.pl-8{padding-left:var(--sd-spacing-8)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-base{font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--sd-text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--sd-text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.navigable-font-size{font-size:var(--sd-navigable-font-size,var(--sd-spacing-4))}.sd-6-3-0-button--size-lg-font-size{font-size:var(--sd-button--size-lg-font-size,var(--sd-spacing-4))}.sd-6-3-0-button--size-md-font-size{font-size:var(--sd-button--size-md-font-size,var(--sd-spacing-4))}.sd-6-3-0-button--size-sm-font-size{font-size:var(--sd-button--size-sm-font-size,.875rem)}.sd-6-3-0-tag--size-lg-font-size{font-size:var(--sd-tag--size-lg-font-size,var(--sd-spacing-4))}.sd-6-3-0-tag--size-sm-font-size{font-size:var(--sd-tag--size-sm-font-size,.875rem)}.text-\\[0\\.75rem\\]{font-size:.75rem}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-\\[14px\\]{font-size:14px}.leading-\\[0\\]{--tw-leading:0;line-height:0}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}.font-normal{--tw-font-weight:var(--sd-font-weight-normal);font-weight:var(--sd-font-weight-normal)}.sd-6-3-0-button-font-weight{font-weight:var(--sd-button-font-weight,var(--sd-font-weight-normal))}.sd-6-3-0-tag-font-weight{font-weight:var(--sd-tag-font-weight,var(--sd-font-weight-normal))}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\\!text-neutral-700{color:rgba(var(--sd-color-text-neutral-700))!important}.\\!text-primary{color:rgba(var(--sd-color-text-primary))!important}.form-control--filled__floating-label-color-text{color:rgba(var(--sd-form-control--filled__floating-label-color-text,rgba(var(--sd-color-neutral-700))))}.form-control-color-text{color:rgba(var(--sd-form-control-color-text,rgba(var(--sd-color-black))))}.sd-6-3-0-accordion-color-text{color:rgba(var(--sd-accordion-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-audio__timestamp-color-text{color:rgba(var(--sd-audio__timestamp-color-text,rgba(var(--sd-color-black))))}.sd-6-3-0-badge--blue--inverted-color-text{color:rgba(var(--sd-badge--blue--inverted-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-badge--green-color--inverted-text{color:rgba(var(--sd-badge--green-color--inverted-text,rgba(var(--sd-color-white))))}.sd-6-3-0-badge--red--inverted-text{color:rgba(var(--sd-badge--red--inverted-text,rgba(var(--sd-color-white))))}.sd-6-3-0-button--cta--inverted--default-color-text{color:rgba(var(--sd-button--cta--inverted--default-color-text,rgba(var(--sd-color-white))))}.sd-6-3-0-button--primary--default-color-text{color:rgba(var(--sd-button--primary--default-color-text,rgba(var(--sd-color-white))))}.sd-6-3-0-button--primary--inverted--default-color-text{color:rgba(var(--sd-button--primary--inverted--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-button--secondary--default-color-text{color:rgba(var(--sd-button--secondary--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-button--secondary--disabled-color-text{color:rgba(var(--sd-button--secondary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.sd-6-3-0-button--tertiary--default-color-text{color:rgba(var(--sd-button--tertiary--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-button--tertiary--disabled-color-text{color:rgba(var(--sd-button--tertiary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.sd-6-3-0-menu--disabled-color-text{color:rgba(var(--sd-menu--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.sd-6-3-0-menu-color-text{color:rgba(var(--sd-menu-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-navigation-item--current-color-text{color:rgba(var(--sd-navigation-item--current-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-navigation-item-color-text{color:rgba(var(--sd-navigation-item-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-quickfact--expandable-color-text{color:rgba(var(--sd-quickfact--expandable-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-radio-button-color-text{color:rgba(var(--sd-radio-button-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-range-scale-ticks-color-text{color:rgba(var(--sd-range-scale-ticks-color-text,rgba(var(--sd-color-black))))}.sd-6-3-0-switch-color-text{color:rgba(var(--sd-switch-color-text,rgba(var(--sd-color-black))))}.sd-6-3-0-tag--default-color-text{color:rgba(var(--sd-tag--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-3-0-tag--selected--default-color-text{color:rgba(var(--sd-tag--selected--default-color-text,rgba(var(--sd-color-white))))}.sd-6-3-0-tooltip-color-text{color:rgba(var(--sd-tooltip-color-text,rgba(var(--sd-color-white))))}.text-black{color:rgba(var(--sd-color-text-black))}.text-error{color:rgba(var(--sd-color-text-error))}.text-inherit{color:inherit}.text-neutral-500{color:rgba(var(--sd-color-text-neutral-500))}.text-neutral-600{color:rgba(var(--sd-color-text-neutral-600))}.text-neutral-700{color:rgba(var(--sd-color-text-neutral-700))}.text-primary{color:rgba(var(--sd-color-text-primary))}.text-primary-400{color:rgba(var(--sd-color-text-primary-400))}.text-primary-500{color:rgba(var(--sd-color-text-primary-500))}.text-success{color:rgba(var(--sd-color-text-success))}.text-white{color:rgba(var(--sd-color-text-white))}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:var(--sd-opacity-0)}.opacity-1{opacity:1%}.opacity-20{opacity:var(--sd-opacity-20)}.opacity-30{opacity:var(--sd-opacity-30)}.opacity-50{opacity:var(--sd-opacity-50)}.opacity-90{opacity:var(--sd-opacity-90)}.opacity-100{opacity:var(--sd-opacity-100)}.\\!shadow{--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow{--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline:2px solid transparent;outline-offset:2px}}.focus-outline{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.\\!-outline-offset-2{outline-offset:calc(2px * -1)!important}.\\!outline-offset-0{outline-offset:0!important}.-outline-offset-2{outline-offset:calc(2px * -1)}.outline-error{outline-color:var(--sd-color-border-error,var(--sd-color-error))}.outline-primary{outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}.blur{--tw-blur:blur(8px);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,)}.filter{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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[border\\]{transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\,top\\]{transition-property:height,top;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,scale\\]{transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,width\\]{transition-property:transform,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:100ms;transition-duration:.1s}.duration-200{--tw-duration:200ms;transition-duration:.2s}.duration-1000{--tw-duration:1000ms;transition-duration:1s}.duration-fast{--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms)}.duration-medium{--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms)}.duration-slow{--tw-duration:var(--sd-duration-slow, 500ms);transition-duration:var(--sd-duration-slow,500ms)}.duration-x-slow{--tw-duration:var(--sd-duration-x-slow, 750ms);transition-duration:var(--sd-duration-x-slow,750ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.content-\\[\\'\\'\\]{--tw-content:'';content:var(--tw-content)}.outline-dotted{--tw-outline-style:dotted;outline-style:dotted}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.varspacing-8{--tw-varspacing:var(--sd-spacing-8)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12)}.group-hover\\:top-0:is(:where(.group):hover:not([disabled]) *){top:calc(var(--sd-spacing-1) * 0)}.group-hover\\:left-0:is(:where(.group):hover:not([disabled]) *){left:calc(var(--sd-spacing-1) * 0)}.group-hover\\:mt-\\[-22\\%\\]:is(:where(.group):hover:not([disabled]) *){margin-top:-22%}.group-hover\\:h-full:is(:where(.group):hover:not([disabled]) *){height:100%}.group-hover\\:w-\\[calc\\(100\\%-2px\\)\\]:is(:where(.group):hover:not([disabled]) *){width:calc(100% - 2px)}.group-hover\\:w-full:is(:where(.group):hover:not([disabled]) *){width:100%}.group-hover\\:translate-y-0:is(:where(.group):hover:not([disabled]) *){--tw-translate-y:calc(var(--sd-spacing-1) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:border-accent-550:is(:where(.group):hover:not([disabled]) *){border-color:rgba(var(--sd-color-border-accent-550))}.group-hover\\:border-error-400:is(:where(.group):hover:not([disabled]) *){border-color:rgba(var(--sd-color-border-error-400))}.group-hover\\:bg-accent-550:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-accent-550))}.group-hover\\:bg-error-400:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-error-400))}.group-hover\\:bg-neutral-200:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-neutral-200))}.group-hover\\:bg-primary\\/90:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){.group-hover\\:bg-primary\\/90:is(:where(.group):hover:not([disabled]) *){background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}.group-hover\\:bg-white:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-white))}.group-hover\\:bg-white\\/90:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.group-hover\\:bg-white\\/90:is(:where(.group):hover:not([disabled]) *){background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}.group-hover\\:sd-6-3-0-radio--checked--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-radio--checked--hover-color-background,rgba(var(--sd-color-white))))}.group-hover\\:sd-6-3-0-radio--checked--hover__icon-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-radio--checked--hover__icon-color-background,rgba(var(--sd-color-success))))}.group-hover\\:sd-6-3-0-radio--checked--invalid--hover__icon-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-radio--checked--invalid--hover__icon-color-background,rgba(var(--sd-color-error-400))))}.group-hover\\:sd-6-3-0-switch--checked--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-switch--checked--hover-color-background,rgba(var(--sd-color-success))))}.group-hover\\:sd-6-3-0-teaser-media--neutral-100--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-teaser-media--neutral-100--hover-color-background,rgba(var(--sd-color-neutral-100))))}.group-hover\\:sd-6-3-0-teaser-media--primary-100--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-teaser-media--primary-100--hover-color-background,rgba(var(--sd-color-primary-100))))}.group-hover\\:text-primary-500:is(:where(.group):hover:not([disabled]) *){color:rgba(var(--sd-color-text-primary-500))}.group-hover\\:duration-fast:is(:where(.group):hover:not([disabled]) *){--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms)}.group-focus-visible\\:outline-2:is(:where(.group):focus-visible *){outline-style:var(--tw-outline-style);outline-width:2px}.group-focus-visible\\:outline-offset-2:is(:where(.group):focus-visible *){outline-offset:2px}.group-active\\:translate-y-0:is(:where(.group):active:not([disabled]) *){--tw-translate-y:calc(var(--sd-spacing-1) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-active\\:bg-accent-700:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-color-background-accent-700))}.group-active\\:bg-primary-200:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-color-background-primary-200))}.group-active\\:bg-primary-800:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-color-background-primary-800))}.group-active\\:sd-6-3-0-button--cta--inverted--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--cta--inverted--active-color-background,rgba(var(--sd-color-accent-700))))}.group-active\\:sd-6-3-0-button--secondary--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--secondary--active-color-background,rgba(var(--sd-color-primary-200))))}.group-active\\:sd-6-3-0-button--secondary--inverted--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--secondary--inverted--active-color-background,rgba(var(--sd-color-primary-800))))}.group-active\\:sd-6-3-0-button--tertiary--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--tertiary--active-color-background,rgba(var(--sd-color-primary-200))))}.group-active\\:sd-6-3-0-button--tertiary--inverted--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--tertiary--inverted--active-color-background,rgba(var(--sd-color-primary-800))))}.group-has-\\[sd-6-3-0-icon\\]\\:pe-8:is(:where(.group):has(:is(sd-6-3-0-icon))*){padding-inline-end:var(--sd-spacing-8)}.peer-focus-visible\\:outline:is(:where(.peer):focus-visible ~ *){outline-style:var(--tw-outline-style);outline-width:1px}.peer-focus-visible\\:outline-2:is(:where(.peer):focus-visible ~ *){outline-style:var(--tw-outline-style);outline-width:2px}.peer-focus-visible\\:outline-offset-2:is(:where(.peer):focus-visible ~ *){outline-offset:2px}.peer-focus-visible\\:outline-primary:is(:where(.peer):focus-visible ~ *){outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}.placeholder\\:form-control-color-text::-moz-placeholder{color:rgba(var(--sd-form-control-color-text,rgba(var(--sd-color-black))))}.placeholder\\:form-control-color-text::placeholder{color:rgba(var(--sd-form-control-color-text,rgba(var(--sd-color-black))))}.placeholder\\:text-neutral-500::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}.placeholder\\:text-neutral-500::placeholder{color:rgba(var(--sd-color-text-neutral-500))}.placeholder\\:text-neutral-700::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-700))}.placeholder\\:text-neutral-700::placeholder{color:rgba(var(--sd-color-text-neutral-700))}.after\\:-inset-2::after{content:var(--tw-content);inset:calc(var(--sd-spacing-2) * -1)}.focus-within\\:focus-outline:focus-within{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.focus-within\\:focus-outline-inverted:focus-within{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-white))}.hover\\:scale-110:hover:not([disabled]){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:cursor-grab:hover:not([disabled]){cursor:grab}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:cursor-pointer:hover:not([disabled]){cursor:pointer}.hover\\:border-accent-550:hover:not([disabled]){border-color:rgba(var(--sd-color-border-accent-550))}.hover\\:border-error-400:hover:not([disabled]){border-color:rgba(var(--sd-color-border-error-400))}.hover\\:border-neutral-500:hover:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-500))}.hover\\:border-neutral-600:hover:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-600))}.hover\\:border-primary-100:hover:not([disabled]){border-color:rgba(var(--sd-color-border-primary-100))}.hover\\:border-primary-200:hover:not([disabled]){border-color:rgba(var(--sd-color-border-primary-200))}.hover\\:border-primary-500:hover:not([disabled]){border-color:rgba(var(--sd-color-border-primary-500))}.hover\\:sd-6-3-0-tag--selected--hover-color-border:hover:not([disabled]){border-color:rgba(var(--sd-tag--selected--hover-color-border,rgba(255,255,255,0)))}.hover\\:bg-accent-550:hover:not([disabled]){background-color:rgba(var(--sd-color-background-accent-550))}.hover\\:bg-error-400:hover:not([disabled]){background-color:rgba(var(--sd-color-background-error-400))}.hover\\:bg-neutral-100:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-100))}.hover\\:bg-neutral-200:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-200))}.hover\\:bg-neutral-500:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-500))}.hover\\:bg-primary-100:hover:not([disabled]){background-color:rgba(var(--sd-color-background-primary-100))}.hover\\:bg-primary-500:hover:not([disabled]){background-color:rgba(var(--sd-color-background-primary-500))}.hover\\:bg-transparent:hover:not([disabled]){background-color:transparent}.hover\\:bg-white:hover:not([disabled]){background-color:rgba(var(--sd-color-background-white))}.hover\\:color-background:hover:not([disabled]){background-color:rgba(var(--sd-color-background,rgba(var(--sd-color-neutral-200))))}.hover\\:sd-6-3-0-button--primary--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-button--primary--hover-color-background,rgba(var(--sd-color-primary-500))))}.hover\\:sd-6-3-0-button--tertiary--inverted--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-button--tertiary--inverted--hover-color-background,rgba(var(--sd-color-primary-500))))}.hover\\:sd-6-3-0-carousel__pager-dot--inverted--hovered-background:hover:not([disabled]){background-color:rgba(var(--sd-carousel__pager-dot--inverted--hovered-background,rgba(var(--sd-color-accent))))}.hover\\:sd-6-3-0-radio--checked--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-radio--checked--hover-color-background,rgba(var(--sd-color-white))))}.hover\\:sd-6-3-0-radio--checked--hover__icon-color-background:hover:not([disabled]){background-color:rgba(var(--sd-radio--checked--hover__icon-color-background,rgba(var(--sd-color-success))))}.hover\\:sd-6-3-0-radio--checked--invalid--hover__icon-color-background:hover:not([disabled]){background-color:rgba(var(--sd-radio--checked--invalid--hover__icon-color-background,rgba(var(--sd-color-error-400))))}.hover\\:sd-6-3-0-switch--checked--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-switch--checked--hover-color-background,rgba(var(--sd-color-success))))}.hover\\:sd-6-3-0-tag--default--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-tag--default--hover-color-background,rgba(255,255,255,0)))}.hover\\:sd-6-3-0-tag--selected--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-tag--selected--hover-color-background,rgba(var(--sd-color-primary-500))))}.hover\\:fill-primary-500:hover:not([disabled]){fill:rgba(var(--sd-color-icon-fill-primary-500))}.hover\\:sd-6-3-0-button--cta--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--cta--inverted--hover-color-text,rgba(var(--sd-color-white))))}.hover\\:sd-6-3-0-button--primary--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--primary--inverted--hover-color-text,rgba(var(--sd-color-primary-500))))}.hover\\:sd-6-3-0-button--secondary--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--secondary--inverted--hover-color-text,rgba(var(--sd-color-primary-100))))}.hover\\:sd-6-3-0-button--tertiary--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--tertiary--inverted--hover-color-text,rgba(var(--sd-color-primary-100))))}.hover\\:sd-6-3-0-tag--selected--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-tag--selected--hover-color-text,rgba(var(--sd-color-white))))}.hover\\:text-neutral-500:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.hover\\:text-neutral-600:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.hover\\:text-primary-100:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-100))}.hover\\:text-primary-200:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-200))}.hover\\:text-primary-500:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-500))}.hover\\:text-white:hover:not([disabled]){color:rgba(var(--sd-color-text-white))}.hover\\:duration-fast:hover:not([disabled]){--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms)}.focus\\:outline-2:focus:not([disabled]){outline-style:var(--tw-outline-style);outline-width:2px}.focus\\:outline-primary:focus:not([disabled]){outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}.focus\\:outline-none:focus:not([disabled]){--tw-outline-style:none;outline-style:none}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:focus-outline:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.focus-visible\\:focus-outline-inverted:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-white))}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:border-neutral-500:active:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-500))}.active\\:border-neutral-600:active:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-600))}.active\\:border-primary-800:active:not([disabled]){border-color:rgba(var(--sd-color-border-primary-800))}.active\\:bg-neutral-500:active:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-500))}.active\\:sd-6-3-0-button--primary--inverted--active-color-background:active:not([disabled]){background-color:rgba(var(--sd-button--primary--inverted--active-color-background,rgba(var(--sd-color-primary-200))))}.active\\:interactive--active-color-text:active:not([disabled]){color:rgba(var(--sd-interactive--active-color-text,rgba(var(--sd-color-primary-800))))}.active\\:sd-6-3-0-button--cta--inverted--active-color-text:active:not([disabled]){color:rgba(var(--sd-button--cta--inverted--active-color-text,rgba(var(--sd-color-white))))}.active\\:sd-6-3-0-button--primary--active-color-text:active:not([disabled]){color:rgba(var(--sd-button--primary--active-color-text,rgba(var(--sd-color-primary-200))))}.active\\:sd-6-3-0-button--primary--inverted--active-color-text:active:not([disabled]){color:rgba(var(--sd-button--primary--inverted--active-color-text,rgba(var(--sd-color-primary-800))))}.active\\:text-neutral-500:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.active\\:text-neutral-600:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.active\\:text-primary-200:active:not([disabled]){color:rgba(var(--sd-color-text-primary-200))}.active\\:text-primary-400:active:not([disabled]){color:rgba(var(--sd-color-text-primary-400))}.active\\:text-primary-800:active:not([disabled]){color:rgba(var(--sd-color-text-primary-800))}.disabled\\:border-neutral-500:disabled{border-color:rgba(var(--sd-color-border-neutral-500))}.disabled\\:sd-6-3-0-button--inverted--disabled-color-border:disabled{border-color:rgba(var(--sd-button--inverted--disabled-color-border,rgba(var(--sd-color-neutral-600))))}.disabled\\:sd-6-3-0-tag--disabled-color-border:disabled{border-color:rgba(var(--sd-tag--disabled-color-border,rgba(var(--sd-color-neutral-500))))}.disabled\\:bg-neutral-500:disabled{background-color:rgba(var(--sd-color-background-neutral-500))}.disabled\\:sd-6-3-0-button--inverted--disabled-color-background:disabled{background-color:rgba(var(--sd-button--inverted--disabled-color-background,rgba(var(--sd-color-neutral-600))))}.disabled\\:sd-6-3-0-button--inverted--disabled-color-text:disabled{color:rgba(var(--sd-button--inverted--disabled-color-text,rgba(var(--sd-color-neutral-600))))}.disabled\\:sd-6-3-0-button--secondary--disabled-color-text:disabled{color:rgba(var(--sd-button--secondary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.disabled\\:sd-6-3-0-button--tertiary--disabled-color-text:disabled{color:rgba(var(--sd-button--tertiary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.disabled\\:text-neutral-500:disabled{color:rgba(var(--sd-color-text-neutral-500))}.disabled\\:text-white:disabled{color:rgba(var(--sd-color-text-white))}.has-\\[button\\:hover\\]\\:border-primary-500:has(:is(button:hover)){border-color:rgba(var(--sd-color-border-primary-500))}.has-\\[button\\:hover\\]\\:text-primary-500:has(:is(button:hover)){color:rgba(var(--sd-color-text-primary-500))}@media (width >= 40rem){.sm\\:mt-2{margin-top:var(--sd-spacing-2)}}@media (width >= 40rem){.sm\\:flex-col{flex-direction:column}}@media (width >= 40rem){.sm\\:gap-4{gap:var(--sd-spacing-4)}}@media (width >= 40rem){.sm\\:self-center{align-self:center}}@media (width >= 40rem){.sm\\:p-6{padding:var(--sd-spacing-6)}}@media (width >= 40rem){.sm\\:px-10{padding-inline:var(--sd-spacing-10)}}@media (width >= 40rem){.sm\\:py-8{padding-block:var(--sd-spacing-8)}}@media (width >= 40rem){.sm\\:pb-8{padding-bottom:var(--sd-spacing-8)}}@media (width >= 40rem){.sm\\:text-center{text-align:center}}@media (width >= 40rem){.sm\\:text-3xl{font-size:var(--sd-text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media (width >= 40rem){.sm\\:leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}}@media (width >= 48rem){.md\\:block{display:block}}@media (width >= 48rem){.md\\:\\[transition\\:_height_0\\.2s_linear\\,opacity_0\\.1s_linear_0\\.1s\\]{transition:height .2s linear,opacity .1s linear .1s}}@media (width >= 48rem){.md\\:group-hover\\:visible:is(:where(.group):hover:not([disabled]) *){visibility:visible}}@media (width >= 48rem){.md\\:group-hover\\:my-4:is(:where(.group):hover:not([disabled]) *){margin-block:var(--sd-spacing-4)}}@media (width >= 48rem){.md\\:group-hover\\:h-auto:is(:where(.group):hover:not([disabled]) *){height:auto}}@media (width >= 48rem){.md\\:group-hover\\:opacity-\\[100\\%\\]:is(:where(.group):hover:not([disabled]) *){opacity:100%}}@media (width >= 64rem){.lg\\:flex{display:flex}}@media (width >= 64rem){.lg\\:hidden{display:none}}@media (width >= 64rem){.lg\\:inline-block{display:inline-block}}*,::after,::backdrop,::before,::file-selector-button{box-sizing:border-box;border:0 solid}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none;margin:0;padding:0}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}::file-selector-button,button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1;margin:0;padding:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentcolor}::placeholder{color:currentcolor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.sd-interactive--reset,.sd-prose a--reset{all:unset;outline:revert}.sd-interactive,.sd-prose a{cursor:pointer;color:rgba(var(--sd-interactive--default-color-text,rgba(var(--sd-color-primary))));text-decoration-line:underline;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.sd-interactive:hover:not([disabled]),.sd-prose a:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-500))}.sd-interactive:focus-visible,.sd-prose a:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.sd-interactive:active:not([disabled]),.sd-prose a:active:not([disabled]){color:rgba(var(--sd-interactive--active-color-text,rgba(var(--sd-color-primary-800))))}.sd-interactive:is(.sd-interactive),.sd-prose a:is(.sd-interactive){text-decoration-line:none}.sd-interactive--disabled,.sd-interactive[disabled],.sd-interactive[href=''],.sd-prose a--disabled,.sd-prose a[disabled],.sd-prose a[href='']{cursor:not-allowed;color:rgba(var(--sd-color-text-neutral-500))}.sd-interactive--disabled:hover:not([disabled]),.sd-interactive[disabled]:hover:not([disabled]),.sd-interactive[href='']:hover:not([disabled]),.sd-prose a--disabled:hover:not([disabled]),.sd-prose a[disabled]:hover:not([disabled]),.sd-prose a[href='']:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.sd-interactive--disabled:active:not([disabled]),.sd-interactive[disabled]:active:not([disabled]),.sd-interactive[href='']:active:not([disabled]),.sd-prose a--disabled:active:not([disabled]),.sd-prose a[disabled]:active:not([disabled]),.sd-prose a[href='']:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.sd-interactive--disabled.sd-interactive--inverted,.sd-interactive[disabled].sd-interactive--inverted,.sd-interactive[href=''].sd-interactive--inverted,.sd-prose a--disabled.sd-interactive--inverted,.sd-prose a[disabled].sd-interactive--inverted,.sd-prose a[href=''].sd-interactive--inverted{color:rgba(var(--sd-color-text-neutral-600))}.sd-interactive--disabled.sd-interactive--inverted:hover:not([disabled]),.sd-interactive[disabled].sd-interactive--inverted:hover:not([disabled]),.sd-interactive[href=''].sd-interactive--inverted:hover:not([disabled]),.sd-prose a--disabled.sd-interactive--inverted:hover:not([disabled]),.sd-prose a[disabled].sd-interactive--inverted:hover:not([disabled]),.sd-prose a[href=''].sd-interactive--inverted:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.sd-interactive--disabled.sd-interactive--inverted:active:not([disabled]),.sd-interactive[disabled].sd-interactive--inverted:active:not([disabled]),.sd-interactive[href=''].sd-interactive--inverted:active:not([disabled]),.sd-prose a--disabled.sd-interactive--inverted:active:not([disabled]),.sd-prose a[disabled].sd-interactive--inverted:active:not([disabled]),.sd-prose a[href=''].sd-interactive--inverted:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.sd-interactive--inverted,.sd-prose--inverted a{color:rgba(var(--sd-color-text-white))}.sd-interactive--inverted:hover:not([disabled]),.sd-prose--inverted a:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-200))}.sd-interactive--inverted:focus-visible,.sd-prose--inverted a:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.sd-interactive--inverted:active:not([disabled]),.sd-prose--inverted a:active:not([disabled]){color:rgba(var(--sd-color-text-primary-400))}.sd-paragraph,.sd-prose p{font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-leading:var(--leading-normal);line-height:var(--leading-normal);--tw-font-weight:var(--sd-font-weight-normal);font-weight:var(--sd-font-weight-normal);color:rgba(var(--sd-color-text-black))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:var(--leading-normal);line-height:var(--leading-normal);--tw-font-weight:var(--sd-font-weight-normal);font-weight:var(--sd-font-weight-normal);color:rgba(var(--sd-color-text-black))}.sd-paragraph--inverted,.sd-prose--inverted p{color:rgba(var(--sd-color-text-white))}.sd-headline,.sd-prose :is(h1, h2, h3, h4, h5){display:flex;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:rgba(var(--sd-color-text-primary))}.sd-headline sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-6-3-0-icon{flex-shrink:0;font-size:3rem;color:rgba(var(--sd-color-text-primary))}@media (width >= 40rem){.sd-headline sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-6-3-0-icon{margin-top:var(--sd-spacing-2)}}.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){gap:var(--sd-spacing-4);font-size:var(--sd-text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}@media (width >= 40rem){.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}.sd-headline.sd-headline sd-6-3-0-icon,.sd-headline:is(h1):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * -1)}@media (width >= 40rem){.sd-headline.sd-headline sd-6-3-0-icon,.sd-headline:is(h1):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * 0)}}.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){gap:var(--sd-spacing-4);font-size:var(--sd-text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}@media (width >= 40rem){.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}.sd-headline.sd-headline--size-3xl sd-6-3-0-icon,.sd-headline:is(h2):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * -1)}@media (width >= 40rem){.sd-headline.sd-headline--size-3xl sd-6-3-0-icon,.sd-headline:is(h2):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * 0)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline.sd-headline--size-xl,.sd-headline:is(h3,h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline){gap:var(--sd-spacing-2);color:rgba(var(--sd-color-text-black))}.sd-headline.sd-headline--size-base sd-6-3-0-icon,.sd-headline.sd-headline--size-lg sd-6-3-0-icon,.sd-headline.sd-headline--size-xl sd-6-3-0-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-6-3-0-icon{font-size:2rem}.sd-headline.sd-headline--size-xl,.sd-headline:is(h3):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.sd-headline.sd-headline--size-xl sd-6-3-0-icon,.sd-headline:is(h3):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-6-3-0-icon{margin-top:var(--sd-spacing-0\\.5)}@media (width >= 40rem){.sd-headline.sd-headline--size-xl sd-6-3-0-icon,.sd-headline:is(h3):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-6-3-0-icon{margin-top:var(--sd-spacing-0\\.5)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline:is(h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4,h5):not(.sd-headline){--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.sd-headline.sd-headline--size-lg,.sd-headline:is(h4),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4){font-size:var(--sd-text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sd-headline.sd-headline--size-lg sd-6-3-0-icon,.sd-headline:is(h4) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * 0)}@media (width >= 40rem){.sd-headline.sd-headline--size-lg sd-6-3-0-icon,.sd-headline:is(h4) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * 0)}}.sd-headline.sd-headline--size-base,.sd-headline:is(h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sd-headline.sd-headline--size-base sd-6-3-0-icon,.sd-headline:is(h5):not(.sd-headline) sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-6-3-0-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * -1)}.sd-headline.sd-headline--size-base mark,.sd-headline:is(h5):not(.sd-headline) mark,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base mark,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) mark{color:inherit}.sd-headline--inline{display:inline-block}.sd-headline--inline sd-6-3-0-icon{margin-top:calc(var(--sd-spacing-1) * -1);margin-right:var(--sd-spacing-2);vertical-align:middle}.sd-headline--inline:is(.sd-headline--size-xl,.sd-headline--size-lg,.sd-headline--size-base) sd-6-3-0-icon{margin-right:var(--sd-spacing-0\\.5)}.sd-headline--inverted:not(#_),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_){color:rgba(var(--sd-color-text-white))}.sd-headline--inverted:not(#_) sd-6-3-0-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_) sd-6-3-0-icon{color:rgba(var(--sd-color-text-white))}:host{--tw-blur:initial;--tw-border-style:solid;--tw-brightness:initial;--tw-contrast:initial;--tw-divide-y-reverse:0;--tw-drop-shadow:initial;--tw-duration:initial;--tw-ease:initial;--tw-font-weight:initial;--tw-gradient-from-position:0%;--tw-gradient-from:#0000;--tw-gradient-position:initial;--tw-gradient-stops:initial;--tw-gradient-to-position:100%;--tw-gradient-to:#0000;--tw-gradient-via-position:50%;--tw-gradient-via-stops:initial;--tw-gradient-via:#0000;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-invert:initial;--tw-opacity:initial;--tw-ring-color:initial;--tw-ring-inset:initial;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-shadow:0 0 #0000;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-saturate:initial;--tw-sepia:initial;--tw-shadow-color:initial;--tw-shadow:0 0 #0000;--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce-once{0%{transform:translateY(0)}50%{transform:translateY(-18px)}100%{transform:translateY(0)}}@keyframes grow{0%{width:0%}100%{width:100%}}@keyframes loader-color-current{0%,100%{color:currentColor}50%{color:currentColor;opacity:20%}}@keyframes loader-color-primary{0%,100%{color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}50%{color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))));opacity:20%}}@keyframes loader-color-white{0%,100%{color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}50%{color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))));opacity:20%}}@keyframes wave{0%,100%,40%{transform:initial}20%{transform:translateY(-4px)}}`],a([d()],g.prototype,"dir",2),a([d()],g.prototype,"lang",2);var cs,_t=class extends g{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),ha(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),ua(this)}onThemeChange(){this.setIcon()}getUrl(){let t=as(this.library);return this.name&&t?t.name==="_internal"?t.resolver(this.name,this):t.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var r;let t=as(this.library),e=this.getUrl();if(cs||(cs=new DOMParser),e)try{let o=await fa(e);if(e===this.getUrl())if(o.ok){let l=cs.parseFromString(o.svg,"text/html").body.querySelector("svg");l!==null?((r=t==null?void 0:t.mutator)==null||r.call(t,l),this.svg=l.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(o){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return p`<sd-6-3-0-theme-listener></sd-6-3-0-theme-listener>${yr(this.svg)}`}};_t.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
163
|
-
:host{width:1em;height:1em;box-sizing:content-box!important;display:inline-block}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{color:rgba(var(--sd-color-text-primary))}:host([color=white]) svg{color:rgba(var(--sd-color-text-white))}`],a([L()],_t.prototype,"svg",2),a([d({reflect:!0})],_t.prototype,"name",2),a([d()],_t.prototype,"src",2),a([d()],_t.prototype,"label",2),a([d({reflect:!0})],_t.prototype,"library",2),a([d({reflect:!0})],_t.prototype,"color",2),a([E("label")],_t.prototype,"handleLabelChange",1),a([E(["name","src","library"])],_t.prototype,"setIcon",1),_t=a([k("sd-6-
|
|
164
|
-
take care to ensure page security.`)})(e)+s[r+1]),s[0]),r:ya}),va=new Map,hs=s=>(i,...t)=>{let e=t.length,r,o,n=[],l=[],h,u=0,m=!1;for(;u<e;){for(h=i[u];u<e&&(o=t[u],(r=Go(o))!==void 0);)h+=r+i[++u],m=!0;u!==e&&l.push(o),n.push(h),u++}if(u===e&&n.push(i[e]),m){let f=n.join("$$lit$$");(i=va.get(f))===void 0&&(n.raw=n,va.set(f,i=n)),t=l}return s(i,...t)},U=hs(p),Eh=hs(Gs),Ch=hs(Js);var us=new Set,vi=new Map,ei,ps="ltr",ms="en",wa=typeof MutationObserver!="undefined"&&typeof document!="undefined"&&typeof document.documentElement!="undefined";if(wa){let s=new MutationObserver(xa);ps=document.documentElement.dir||"ltr",ms=document.documentElement.lang||navigator.language,s.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function kr(...s){s.map(i=>{let t=i.$code.toLowerCase();vi.has(t)?vi.set(t,Object.assign(Object.assign({},vi.get(t)),i)):vi.set(t,i),ei||(ei=i)}),xa()}function xa(){wa&&(ps=document.documentElement.dir||"ltr",ms=document.documentElement.lang||navigator.language),[...us.keys()].map(s=>{typeof s.requestUpdate=="function"&&s.requestUpdate()})}var xr=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){us.add(this.host)}hostDisconnected(){us.delete(this.host)}dir(){return`${this.host.dir||ps}`.toLowerCase()}lang(){return`${this.host.lang||ms}`.toLowerCase()}getTranslationData(i){var t,e;let r=new Intl.Locale(i.replace(/_/g,"-")),o=r==null?void 0:r.language.toLowerCase(),n=(e=(t=r==null?void 0:r.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&e!==void 0?e:"",l=vi.get(`${o}-${n}`),h=vi.get(o);return{locale:r,language:o,region:n,primary:l,secondary:h}}exists(i,t){var e;let{primary:r,secondary:o}=this.getTranslationData((e=t.lang)!==null&&e!==void 0?e:this.lang());return t=Object.assign({includeFallback:!1},t),!!(r&&r[i]||o&&o[i]||t.includeFallback&&ei&&ei[i])}term(i,...t){let{primary:e,secondary:r}=this.getTranslationData(this.lang()),o;if(e&&e[i])o=e[i];else if(r&&r[i])o=r[i];else if(ei&&ei[i])o=ei[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof o=="function"?o(...t):o}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,e){return new Intl.RelativeTimeFormat(this.lang(),e).format(i,t)}};var Jo={$code:"de",$name:"Deutsch",$dir:"ltr",audioPlayer:"Audio-Player",autoplay:"Autoplay",carousel:"Karussell",carouselContainer:s=>`Karussell hat ${s} folien`,clearEntry:"Eingabe l\xF6schen",close:"Schlie\xDFen",collapseNavigationItem:"Navigationspunkt reduzieren",comboboxDefaultPlaceholder:"Bitte suchen und ausw\xE4hlen",copy:"Kopieren",currentValue:"Aktueller Wert",datePicker:"Datumsauswahl",datePickerInfo:"Pfeiltasten zum Navigieren verwenden, Enter zum Ausw\xE4hlen. Bild-auf/Bild-ab \xE4ndert den Monat. Shift+Bild-auf/Bild-ab \xE4ndert das Jahr",datePickerRange:"Datumsbereichsauswahl",datePlaceholder:"Datum ausw\xE4hlen",dateRangePlaceholder:"Datumsbereich ausw\xE4hlen",endDateSelected:"Enddatum ausgew\xE4hlt",expandNavigationItem:"Navigationspunkt erweitern",goToSlide:(s,i)=>`Zu Folie ${s} von ${i} gehen`,hidePassword:"Passwort verbergen",invalidDate:"Ung\xFCltiges Datum",loading:"Wird geladen",maximum:"H\xF6chstwert",minimum:"Minimum",mute:"Stummschalten",nextMonth:"N\xE4chster Monat",nextSlide:"N\xE4chste Folie",nextYear:"N\xE4chstes Jahr",noResults:"Keine Ergebnisse gefunden",notifications:"Benachrichtigungen",numOptionsSelected:s=>s===0?"":`Optionen ausgew\xE4hlt (${s})`,open:"\xD6ffnen",openTranscript:"Transkript \xF6ffnen",optionGroup:"Optionsgruppe",pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",playVideo:"Video abspielen",previousMonth:"Vorheriger Monat",previousSlide:"Vorherige Folie",previousYear:"Vorheriges Jahr",progress:"Fortschritt",remove:"Entfernen",removed:s=>`${s} entfernt`,resize:"Gr\xF6\xDFe \xE4ndern",scrolled:"Gescrollt",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",search:"Suchen",seconds:s=>`${s} Sekunden`,seekBar:"Schieberegler f\xFCr Suche",selectAColorFromTheScreen:"Farbe vom Bildschirm ausw\xE4hlen",selectDefaultPlaceholder:"Bitte ausw\xE4hlen",selected:"Ausgew\xE4hlt",selectionCleared:"Auswahl gel\xF6scht",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(s,i)=>`Folie ${s} von ${i}`,startDateSelected:"Startdatum ausgew\xE4hlt",tagsSelected:"Optionen ausgew\xE4hlt",toggleColorFormat:"Farbformat umschalten",transcriptIsOpen:"Transkript ist offen",truncatedBreadcrumbs:"Verk\xFCrzter Navigationspfad",unmute:"Unmute"};kr(Jo);var tn={$code:"en",$name:"English",$dir:"ltr",audioPlayer:"Audio Player",autoplay:"Autoplay",carousel:"Carousel",carouselContainer:s=>`Carousel has ${s} slides`,clearEntry:"Clear entry",close:"Close",collapseNavigationItem:"Collapse navigation item",comboboxDefaultPlaceholder:"Please search and select",copy:"Copy",currentValue:"Current value",datePicker:"Date picker",datePickerInfo:"Use arrow keys to navigate, Enter to select. Page Up/Down changes month. Shift+Page Up/Down changes year",datePickerRange:"Date range picker",datePlaceholder:"Select date",dateRangePlaceholder:"Select date range",endDateSelected:"End date selected",expandNavigationItem:"Expand navigation item",goToSlide:(s,i)=>`Go to slide ${s} of ${i}`,hidePassword:"Hide password",invalidDate:"Invalid date",loading:"Loading",maximum:"Maximum",minimum:"Minimum",mute:"Mute",nextMonth:"Next month",nextSlide:"Next slide",nextYear:"Next year",noResults:"No results found",notifications:"Notifications",numOptionsSelected:s=>s===0?"":`Options selected (${s})`,open:"Open",openTranscript:"Open transcript",optionGroup:"Option Group",pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",playVideo:"Play Video",previousMonth:"Previous month",previousSlide:"Previous slide",previousYear:"Previous year",progress:"Progress",remove:"Remove",removed:s=>`${s} removed`,resize:"Resize",scrolled:"Scrolled",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",search:"Search",seconds:s=>`${s} seconds`,seekBar:"Seek bar",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",selected:"Selected",selectionCleared:"Selection cleared",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:s=>`Slide ${s}`,startDateSelected:"Start date selected",tagsSelected:"Options selected",toggleColorFormat:"Toggle color format",transcriptIsOpen:"Transcript is open",truncatedBreadcrumbs:"Truncated breadcrumbs",unmute:"Unmute"};kr(tn);var O=class extends xr{constructor(t){super(t);this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver(()=>this.setCustomLocalizationFromData()).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){let t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(e){console.error("Error parsing custom-localization attribute:",e)}}term(t,...e){var o;let r=(o=this.instanceTranslations)==null?void 0:o[t];return r?typeof r=="function"?r(...e):r:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations=B(B({},this.instanceTranslations),t)}};function Z(s,i){return new Promise(t=>{function e(r){r.target===s&&(s.removeEventListener(i,e),t())}s.addEventListener(i,e)})}function c(){let s,i="",t=0;for(;t<arguments.length;)(s=arguments[t++])&&typeof s=="string"&&(i&&(i+=" "),i+=s);return i}var It=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0",this.open&&(this.accordion.open=!0),this.accordionObserver=new MutationObserver(t=>{for(let e of t)e.type==="attributes"&&e.attributeName==="open"&&(this.accordion.open?this.show():this.hide())}),this.accordionObserver.observe(this.accordion,{attributes:!0})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.accordionObserver)==null||t.disconnect()}handleSummaryClick(t){t.preventDefault(),this.open?this.hide():this.show()}handleSummaryKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open?this.hide():this.show()),(t.key==="ArrowUp"||t.key==="ArrowLeft")&&(t.preventDefault(),this.hide()),(t.key==="ArrowDown"||t.key==="ArrowRight")&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.accordion.open=!0,this.emit("sd-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.accordion.open=!1;return}await Y(this.body),this.body.hidden=!1;let{keyframes:e,options:r}=q(this,"accordion.show",{dir:this.localize.dir()});await K(this.body,we(e,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented){this.accordion.open=!0,this.open=!0;return}await Y(this.body);let{keyframes:e,options:r}=q(this,"accordion.hide",{dir:this.localize.dir()});await K(this.body,we(e,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.accordion.open=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(this,"sd-after-hide")}render(){return U`<details part="base" class="border-neutral-400"><summary part="header" id="header" class="${c("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-3-0-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 sd-6-3-0-accordion-color-text relative group transition-colors ease-in-out duration-fast hover:bg-neutral-200")}" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${c(!this.open&&"opacity-0","w-1 sd-6-3-0-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${c("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-6-3-0-icon library="_internal" name="chevron-down"></sd-6-3-0-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-6-3-0-icon library="_internal" name="chevron-down"></sd-6-3-0-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`}};It.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
165
|
-
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-block-width:var(--sd-accordion-border-width)}[part=summary-icon]{color:var(--sd-accordion__chevron-color-text)}`],a([v('[part="base"]')],It.prototype,"accordion",2),a([v('[part="header"]')],It.prototype,"header",2),a([v('[part="content"]')],It.prototype,"body",2),a([d({type:Boolean,reflect:!0})],It.prototype,"open",2),a([d({reflect:!0})],It.prototype,"summary",2),a([E("open",{waitUntilFirstUpdate:!0})],It.prototype,"handleOpenChange",1),It=a([k("sd-6-
|
|
166
|
-
:host{display:block}::slotted(sd-6-3-0-accordion:not(:first-of-type)){margin-top:calc(-1 * var(--sd-accordion-border-width))!important}`],a([gi({selector:"sd-6-3-0-accordion"})],xe.prototype,"_accordionsInDefaultSlot",2),a([d({attribute:"close-others",type:Boolean,reflect:!0})],xe.prototype,"closeOthers",2),xe=a([k("sd-6-3-0-accordion-group")],xe);var Ri={};Ao(Ri,{backInDown:()=>fn,backInLeft:()=>gn,backInRight:()=>bn,backInUp:()=>vn,backOutDown:()=>yn,backOutLeft:()=>wn,backOutRight:()=>xn,backOutUp:()=>kn,bounce:()=>en,bounceIn:()=>En,bounceInDown:()=>Cn,bounceInLeft:()=>$n,bounceInRight:()=>Tn,bounceInUp:()=>Ln,bounceOut:()=>zn,bounceOutDown:()=>Mn,bounceOutLeft:()=>Sn,bounceOutRight:()=>Dn,bounceOutUp:()=>An,easings:()=>fs,fadeIn:()=>On,fadeInBottomLeft:()=>_n,fadeInBottomRight:()=>In,fadeInDown:()=>Pn,fadeInDownBig:()=>Hn,fadeInLeft:()=>Vn,fadeInLeftBig:()=>Fn,fadeInRight:()=>Rn,fadeInRightBig:()=>Bn,fadeInTopLeft:()=>Nn,fadeInTopRight:()=>Un,fadeInUp:()=>qn,fadeInUpBig:()=>Kn,fadeOut:()=>jn,fadeOutBottomLeft:()=>Wn,fadeOutBottomRight:()=>Yn,fadeOutDown:()=>Xn,fadeOutDownBig:()=>Zn,fadeOutLeft:()=>Qn,fadeOutLeftBig:()=>Gn,fadeOutRight:()=>Jn,fadeOutRightBig:()=>tl,fadeOutTopLeft:()=>el,fadeOutTopRight:()=>il,fadeOutUp:()=>rl,fadeOutUpBig:()=>sl,flash:()=>rn,flip:()=>al,flipInX:()=>ol,flipInY:()=>nl,flipOutX:()=>ll,flipOutY:()=>dl,headShake:()=>sn,heartBeat:()=>an,hinge:()=>Al,jackInTheBox:()=>Ol,jello:()=>on,lightSpeedInLeft:()=>cl,lightSpeedInRight:()=>hl,lightSpeedOutLeft:()=>ul,lightSpeedOutRight:()=>pl,pulse:()=>nn,rollIn:()=>_l,rollOut:()=>Il,rotateIn:()=>ml,rotateInDownLeft:()=>fl,rotateInDownRight:()=>gl,rotateInUpLeft:()=>bl,rotateInUpRight:()=>vl,rotateOut:()=>yl,rotateOutDownLeft:()=>wl,rotateOutDownRight:()=>xl,rotateOutUpLeft:()=>kl,rotateOutUpRight:()=>El,rubberBand:()=>ln,shake:()=>dn,shakeX:()=>cn,shakeY:()=>hn,slideInDown:()=>Cl,slideInLeft:()=>$l,slideInRight:()=>Tl,slideInUp:()=>Ll,slideOutDown:()=>zl,slideOutLeft:()=>Ml,slideOutRight:()=>Sl,slideOutUp:()=>Dl,swing:()=>un,tada:()=>pn,wobble:()=>mn,zoomIn:()=>Pl,zoomInDown:()=>Hl,zoomInLeft:()=>Vl,zoomInRight:()=>Fl,zoomInUp:()=>Rl,zoomOut:()=>Bl,zoomOutDown:()=>Nl,zoomOutLeft:()=>Ul,zoomOutRight:()=>ql,zoomOutUp:()=>Kl});var en=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}];var rn=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}];var sn=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}];var an=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}];var on=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var nn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var ln=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var dn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var cn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var hn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var un=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}];var pn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var mn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var fn=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var gn=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var bn=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var vn=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var yn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}];var wn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}];var xn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}];var kn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}];var En=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var Cn=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var $n=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var Tn=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var Ln=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var zn=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}];var Mn=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}];var Sn=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}];var Dn=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}];var An=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}];var On=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}];var _n=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var In=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Pn=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Hn=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Vn=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Fn=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Rn=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Bn=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Nn=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Un=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var qn=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Kn=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var jn=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}];var Wn=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}];var Yn=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}];var Xn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}];var Zn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}];var Qn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}];var Gn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}];var Jn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}];var tl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}];var el=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}];var il=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}];var rl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}];var sl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}];var al=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
162
|
+
:root,:host{--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;--text-xs--line-height:calc(1 / 0.75);--text-sm--line-height:calc(1.25 / 0.875);--text-base--line-height:calc(1.5 / 1);--text-lg--line-height:calc(1.75 / 1.125);--text-xl--line-height:calc(1.75 / 1.25);--text-2xl--line-height:calc(2 / 1.5);--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl--line-height:calc(2.5 / 2.25);--leading-tight:1.25;--leading-normal:1.5;--ease-out:cubic-bezier(0, 0, 0.2, 1);--ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);--default-mono-font-family:var(--font-mono);--outline-color-primary:var(--sd-color-border-primary, var(--sd-color-primary))}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.\\!absolute{position:absolute!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--sd-spacing-1) * 0)}.inset-x-0{inset-inline:calc(var(--sd-spacing-1) * 0)}.-inset-y-2{inset-block:calc(var(--sd-spacing-2) * -1)}.start-0{inset-inline-start:calc(var(--sd-spacing-1) * 0)}.start-auto{inset-inline-start:auto}.end-0{inset-inline-end:calc(var(--sd-spacing-1) * 0)}.end-2{inset-inline-end:var(--sd-spacing-2)}.end-auto{inset-inline-end:auto}.-top-0\\.25{top:calc(var(--sd-spacing-0\\.25) * -1)}.-top-4{top:calc(var(--sd-spacing-4) * -1)}.top-0{top:calc(var(--sd-spacing-1) * 0)}.top-1{top:var(--sd-spacing-1)}.top-1\\/2{top:calc(1/2 * 100%)}.top-2{top:var(--sd-spacing-2)}.top-2\\.5{top:calc(var(--sd-spacing-1) * 2.5)}.top-full{top:100%}.\\!right-0{right:calc(var(--sd-spacing-1) * 0)!important}.right-0{right:calc(var(--sd-spacing-1) * 0)}.right-2{right:var(--sd-spacing-2)}.right-4{right:var(--sd-spacing-4)}.right-auto{right:auto}.bottom-0{bottom:calc(var(--sd-spacing-1) * 0)}.bottom-auto{bottom:auto}.left-0{left:calc(var(--sd-spacing-1) * 0)}.left-1\\/2{left:calc(1/2 * 100%)}.left-2{left:var(--sd-spacing-2)}.left-4{left:var(--sd-spacing-4)}.left-12{left:var(--sd-spacing-12)}.left-\\[36px\\]{left:36px}.left-\\[44px\\]{left:44px}.left-auto{left:auto}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.-z-20{z-index:calc(20 * -1)}.z-0{z-index:0}.z-10{z-index:10}.z-10{z-index:10}.z-20{z-index:20}.z-20{z-index:20}.z-30{z-index:30}.z-30{z-index:30}.z-50{z-index:50}.z-50{z-index:50}.z-\\[0\\]{z-index:0}.z-\\[1\\]{z-index:1}.z-\\[calc\\(var\\(z-dropdown\\)-1\\)\\]{z-index:calc(var(z-dropdown) - 1)}.z-auto{z-index:auto}.z-auto{z-index:auto}.z-dialog{z-index:var(--sd-z-index-dialog,800)}.z-dropdown{z-index:var(--sd-z-index-dropdown,900)}.order-1{order:1}.order-2{order:2}.container{width:100%}@media (width >= 40rem){.container{max-width:40rem}}@media (width >= 48rem){.container{max-width:48rem}}@media (width >= 64rem){.container{max-width:64rem}}@media (width >= 80rem){.container{max-width:80rem}}@media (width >= 96rem){.container{max-width:96rem}}.\\!m-0{margin:calc(var(--sd-spacing-1) * 0)!important}.m-0{margin:calc(var(--sd-spacing-1) * 0)}.m-2{margin:var(--sd-spacing-2)}.m-4{margin:var(--sd-spacing-4)}.-mx-2{margin-inline:calc(var(--sd-spacing-2) * -1)}.mx-2{margin-inline:var(--sd-spacing-2)}.mx-\\[-1px\\]{margin-inline:-1px}.mx-auto{margin-inline:auto}.my-0{margin-block:calc(var(--sd-spacing-1) * 0)}.my-\\[6px\\]{margin-block:6px}.my-auto{margin-block:auto}.ms-4{margin-inline-start:var(--sd-spacing-4)}.me-1{margin-inline-end:var(--sd-spacing-1)}.-mt-1{margin-top:calc(var(--sd-spacing-1) * -1)}.-mt-\\[10px\\]{margin-top:calc(10px * -1)}.mt-0\\.5{margin-top:var(--sd-spacing-0\\.5)}.mt-0\\.25{margin-top:var(--sd-spacing-0\\.25)}.mt-1{margin-top:var(--sd-spacing-1)}.mt-2{margin-top:var(--sd-spacing-2)}.mt-3{margin-top:var(--sd-spacing-3)}.mt-4{margin-top:var(--sd-spacing-4)}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-\\[11\\%\\]{margin-top:11%}.mt-\\[22\\%\\]{margin-top:22%}.mt-\\[var\\(--spacing-xxl\\)\\]{margin-top:var(--spacing-xxl)}.mt-auto{margin-top:auto}.\\!mr-6{margin-right:var(--sd-spacing-6)!important}.mr-0{margin-right:calc(var(--sd-spacing-1) * 0)}.mr-1{margin-right:var(--sd-spacing-1)}.mr-2{margin-right:var(--sd-spacing-2)}.mr-4{margin-right:var(--sd-spacing-4)}.mr-\\[0\\.5em\\]{margin-right:.5em}.mr-\\[0\\.25em\\]{margin-right:.25em}.\\!mb-4{margin-bottom:var(--sd-spacing-4)!important}.-mb-2{margin-bottom:calc(var(--sd-spacing-2) * -1)}.mb-0\\.5{margin-bottom:var(--sd-spacing-0\\.5)}.mb-2{margin-bottom:var(--sd-spacing-2)}.mb-3{margin-bottom:var(--sd-spacing-3)}.mb-4{margin-bottom:var(--sd-spacing-4)}.mb-6{margin-bottom:var(--sd-spacing-6)}.mb-\\[10px\\]{margin-bottom:10px}.mb-auto{margin-bottom:auto}.\\!ml-6{margin-left:var(--sd-spacing-6)!important}.ml-1{margin-left:var(--sd-spacing-1)}.ml-2{margin-left:var(--sd-spacing-2)}.ml-3{margin-left:var(--sd-spacing-3)}.ml-6{margin-left:var(--sd-spacing-6)}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.\\!hidden{display:none!important}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.aspect-square{aspect-ratio:var(--sd-aspect-square)}.size-4{width:var(--sd-spacing-4);height:var(--sd-spacing-4)}.h-0{height:calc(var(--sd-spacing-1) * 0)}.h-0\\.25{height:var(--sd-spacing-0\\.25)}.h-1{height:var(--sd-spacing-1)}.h-2{height:var(--sd-spacing-2)}.h-2\\.5{height:calc(var(--sd-spacing-1) * 2.5)}.h-3{height:var(--sd-spacing-3)}.h-4{height:var(--sd-spacing-4)}.h-5{height:calc(var(--sd-spacing-1) * 5)}.h-6{height:var(--sd-spacing-6)}.h-8{height:var(--sd-spacing-8)}.h-10{height:var(--sd-spacing-10)}.h-12{height:var(--sd-spacing-12)}.h-16{height:var(--sd-spacing-16)}.h-\\[0px\\]{height:0}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[6px\\]{height:6px}.h-\\[10px\\]{height:10px}.h-\\[48px\\]{height:48px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.navigable__current-indicator-height{height:var(--sd-navigable__current-indicator-height,var(--sd-spacing-1))}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.min-h-full{min-height:100%}.min-h-varspacing{min-height:var(--tw-varspacing)}.navigable__current-indicator-width{width:var(--sd-navigable__current-indicator-width,var(--sd-spacing-1))}.w-0{width:calc(var(--sd-spacing-1) * 0)}.w-0\\.5{width:var(--sd-spacing-0\\.5)}.w-0\\.25{width:var(--sd-spacing-0\\.25)}.w-1{width:var(--sd-spacing-1)}.w-2\\.5{width:calc(var(--sd-spacing-1) * 2.5)}.w-3{width:var(--sd-spacing-3)}.w-3\\/4{width:calc(3/4 * 100%)}.w-4{width:var(--sd-spacing-4)}.w-5{width:calc(var(--sd-spacing-1) * 5)}.w-6{width:var(--sd-spacing-6)}.w-8{width:var(--sd-spacing-8)}.w-12{width:var(--sd-spacing-12)}.w-40{width:var(--sd-spacing-40)}.w-\\[1px\\]{width:1px}.w-\\[6px\\]{width:6px}.w-\\[36px\\]{width:36px}.w-\\[48px\\]{width:48px}.w-\\[96px\\]{width:96px}.w-\\[284px\\]{width:284px}.w-\\[calc\\(100\\%-16px\\)\\]{width:calc(100% - 16px)}.w-\\[var\\(--width\\)\\]{width:var(--width)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-varspacing{width:var(--tw-varspacing)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--sd-spacing-1) * 0)}.min-w-40{min-width:var(--sd-spacing-40)}.min-w-\\[284px\\]{min-width:284px}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.flex-1{flex:1}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:auto}.flex-initial{flex:0 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.\\!translate-x-1\\/2{--tw-translate-x:calc(1/2 * 100%)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-2{--tw-translate-x:var(--sd-spacing-2);translate:var(--tw-translate-x) var(--tw-translate-y)}.\\!-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.\\!translate-y-0{--tw-translate-y:calc(var(--sd-spacing-1) * 0)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-0{rotate:0deg}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.rotate-\\[-90deg\\]{rotate:-90deg}.rotate-\\[270deg\\]{rotate:270deg}.skew-y-\\[-11deg\\]{--tw-skew-y:skewY(-11deg);transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform-none{transform:none}.animate-bounce-once{animation:bounce-once var(--sd-duration-medium,300ms) ease-in-out}.animate-grow{animation:grow linear}.animate-loader-current{animation:wave 1.3s infinite,loader-color-current 2.6s infinite}.animate-loader-primary{animation:wave 1.3s infinite,loader-color-primary 2.6s infinite}.animate-loader-white{animation:wave 1.3s infinite,loader-color-white 2.6s infinite}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.\\!cursor-not-allowed{cursor:not-allowed!important}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0\\.5{gap:var(--sd-spacing-0\\.5)}.gap-1{gap:var(--sd-spacing-1)}.gap-2{gap:var(--sd-spacing-2)}.gap-3{gap:var(--sd-spacing-3)}.gap-4{gap:var(--sd-spacing-4)}.gap-6{gap:var(--sd-spacing-6)}.gap-8{gap:var(--sd-spacing-8)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.gap-y-\\[1px\\]{row-gap:1px}.self-center{align-self:center}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.overscroll-x-contain{overscroll-behavior-x:contain}.scroll-auto{scroll-behavior:auto}.\\!navigable-border-radius{border-radius:var(--sd-navigable-border-radius,0)!important}.\\!rounded-sm{border-radius:var(--sd-radius-sm)!important}.navigable-border-radius{border-radius:var(--sd-navigable-border-radius,0)}.navigable__current-indicator-border-radius{border-radius:var(--sd-navigable__current-indicator-border-radius,0)}.rounded{border-radius:.25rem}.rounded-\\[4px_4px_0_0\\]{border-radius:4px 4px 0 0}.rounded-default{border-radius:var(--sd-radius)}.rounded-full{border-radius:var(--sd-radius-full)}.rounded-md{border-radius:var(--sd-radius-md)}.rounded-none{border-radius:var(--sd-radius-none)}.rounded-sm{border-radius:var(--sd-radius-sm)}.sd-6-4-1-button--size-lg-border-radius{border-radius:var(--sd-button--size-lg-border-radius,var(--sd-spacing-1))}.sd-6-4-1-button--size-md-border-radius{border-radius:var(--sd-button--size-md-border-radius,var(--sd-spacing-1))}.sd-6-4-1-button--size-sm-border-radius{border-radius:var(--sd-button--size-sm-border-radius,var(--sd-spacing-1))}.sd-6-4-1-radio-button-border-radius{border-radius:var(--sd-radio-button-border-radius,624.9375rem)}.sd-6-4-1-radio-button-group-border-radius{border-radius:var(--sd-radio-button-group-border-radius,624.9375rem)}.sd-6-4-1-tag-border-radius{border-radius:var(--sd-tag-border-radius,624.9375rem)}.rounded-l-md{border-top-left-radius:var(--sd-radius-md);border-bottom-left-radius:var(--sd-radius-md)}.rounded-l-none{border-top-left-radius:var(--sd-radius-none);border-bottom-left-radius:var(--sd-radius-none)}.rounded-tl-default{border-top-left-radius:var(--sd-radius)}.rounded-tl-none{border-top-left-radius:var(--sd-radius-none)}.rounded-r-md{border-top-right-radius:var(--sd-radius-md);border-bottom-right-radius:var(--sd-radius-md)}.rounded-r-none{border-top-right-radius:var(--sd-radius-none);border-bottom-right-radius:var(--sd-radius-none)}.rounded-tr-default{border-top-right-radius:var(--sd-radius)}.rounded-tr-none{border-top-right-radius:var(--sd-radius-none)}.rounded-b-default{border-bottom-right-radius:var(--sd-radius);border-bottom-left-radius:var(--sd-radius)}.rounded-b-none{border-bottom-right-radius:var(--sd-radius-none);border-bottom-left-radius:var(--sd-radius-none)}.rounded-br-default{border-bottom-right-radius:var(--sd-radius)}.rounded-br-none{border-bottom-right-radius:var(--sd-radius-none)}.rounded-bl-default{border-bottom-left-radius:var(--sd-radius)}.rounded-bl-none{border-bottom-left-radius:var(--sd-radius-none)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:var(--sd-border-width-2)}.border-\\[1px\\]{border-style:var(--tw-border-style);border-width:1px}.sd-6-4-1-carousel__pager-dot-border-width{border-width:var(--sd-carousel__pager-dot-border-width,var(--sd-spacing-0\\.25))}.sd-6-4-1-checkbox-border-width{border-width:var(--sd-checkbox-border-width,var(--sd-spacing-0\\.25))}.sd-6-4-1-radio-border-width{border-width:var(--sd-radio-border-width,var(--sd-spacing-0\\.25))}.sd-6-4-1-radio-button-group-border-width{border-width:var(--sd-radio-button-group-border-width,var(--sd-spacing-0\\.25))}.sd-6-4-1-step__circle-border-width{border-width:var(--sd-step__circle-border-width,var(--sd-spacing-0\\.25))}.sd-6-4-1-tag--selected-border-width{border-width:var(--sd-tag--selected-border-width,0)}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:var(--sd-border-width-2)}.border-r-2{border-right-style:var(--tw-border-style);border-right-width:var(--sd-border-width-2)}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:var(--sd-border-width-2)}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:var(--sd-border-width-2)}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:var(--sd-border-width-4)}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent{border-color:rgba(var(--sd-color-border-accent))}.border-error{border-color:rgba(var(--sd-color-border-error))}.border-neutral-400{border-color:rgba(var(--sd-color-border-neutral-400))}.border-neutral-500{border-color:rgba(var(--sd-color-border-neutral-500))}.border-neutral-600{border-color:rgba(var(--sd-color-border-neutral-600))}.border-neutral-800{border-color:rgba(var(--sd-color-border-neutral-800))}.border-primary{border-color:rgba(var(--sd-color-border-primary))}.border-success{border-color:rgba(var(--sd-color-border-success))}.border-transparent{border-color:transparent}.border-white{border-color:rgba(var(--sd-color-border-white))}.form-control-color-border{border-color:rgba(var(--sd-form-control-color-border,rgba(var(--sd-color-neutral-800))))}.panel-color-border{border-color:rgba(var(--sd-panel-color-border,rgba(255,255,255,0)))}.sd-6-4-1-badge--inverted-color-border{border-color:rgba(var(--sd-badge--inverted-color-border,rgba(var(--sd-color-primary))))}.sd-6-4-1-carousel--active--inverted-color-border{border-color:rgba(var(--sd-carousel--active--inverted-color-border,rgba(var(--sd-color-accent))))}.sd-6-4-1-carousel--active-color-border{border-color:rgba(var(--sd-carousel--active-color-border,rgba(var(--sd-color-accent))))}.sd-6-4-1-carousel__pager-dot--inverted-border{border-color:rgba(var(--sd-carousel__pager-dot--inverted-border,rgba(var(--sd-color-white))))}.sd-6-4-1-divider--inverted-color-border{border-color:rgba(var(--sd-divider--inverted-color-border,rgba(var(--sd-color-primary-400))))}.sd-6-4-1-notification-color-border{border-color:rgba(var(--sd-notification-color-border,rgba(var(--sd-color-neutral-400))))}.sd-6-4-1-option--disabled-color-border{border-color:rgba(var(--sd-option--disabled-color-border,rgba(var(--sd-color-neutral-500))))}.sd-6-4-1-switch--unchecked-color-border{border-color:rgba(var(--sd-switch--unchecked-color-border,rgba(var(--sd-color-neutral-800))))}.sd-6-4-1-tab-color-border{border-color:rgba(var(--sd-tab-color-border,rgba(var(--sd-color-neutral-400))))}.sd-6-4-1-tag--default-color-border{border-color:rgba(var(--sd-tag--default-color-border,rgba(var(--sd-color-primary))))}.sd-6-4-1-tag--selected--default-color-border{border-color:rgba(var(--sd-tag--selected--default-color-border,rgba(255,255,255,0)))}.sd-6-4-1-teaser--neutral-400-color-border{border-color:rgba(var(--sd-teaser--neutral-400-color-border,rgba(var(--sd-color-neutral-400))))}.bg-accent{background-color:rgba(var(--sd-color-background-accent))}.bg-accent-550{background-color:rgba(var(--sd-color-background-accent-550))}.bg-accent-700{background-color:rgba(var(--sd-color-background-accent-700))}.bg-error{background-color:rgba(var(--sd-color-background-error))}.bg-info{background-color:rgba(var(--sd-color-background-info))}.bg-neutral-100{background-color:rgba(var(--sd-color-background-neutral-100))}.bg-neutral-200{background-color:rgba(var(--sd-color-background-neutral-200))}.bg-neutral-400{background-color:rgba(var(--sd-color-background-neutral-400))}.bg-neutral-500{background-color:rgba(var(--sd-color-background-neutral-500))}.bg-neutral-800{background-color:rgba(var(--sd-color-background-neutral-800))}.bg-primary{background-color:rgba(var(--sd-color-background-primary))}.bg-primary-100{background-color:rgba(var(--sd-color-background-primary-100))}.bg-primary-200{background-color:rgba(var(--sd-color-background-primary-200))}.bg-primary-500{background-color:rgba(var(--sd-color-background-primary-500))}.bg-primary\\/\\[\\.8\\]{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/\\[\\.8\\]{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) 80%,transparent)}}.bg-success{background-color:rgba(var(--sd-color-background-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgba(var(--sd-color-background-warning))}.bg-white{background-color:rgba(var(--sd-color-background-white))}.bg-white\\/75{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.bg-white\\/75{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-75),transparent)}}.bg-white\\/\\[\\.8\\]{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.bg-white\\/\\[\\.8\\]{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) 80%,transparent)}}.form-control--invalid-color-background{background-color:rgba(var(--sd-form-control--invalid-color-background,rgba(var(--sd-color-white))))}.overlay-color-background{background-color:rgba(var(--sd-overlay-color-background,rgba(5,21,48,.9)))}.sd-6-4-1-accordion__indicator-color{background-color:rgba(var(--sd-accordion__indicator-color,rgba(var(--sd-color-accent))))}.sd-6-4-1-badge--blue--inverted-color-background{background-color:rgba(var(--sd-badge--blue--inverted-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-4-1-badge--green-color--inverted-background{background-color:rgba(var(--sd-badge--green-color--inverted-background,rgba(var(--sd-color-success))))}.sd-6-4-1-badge--green-color-background{background-color:rgba(var(--sd-badge--green-color-background,rgba(var(--sd-color-success))))}.sd-6-4-1-badge--red--inverted-background{background-color:rgba(var(--sd-badge--red--inverted-background,rgba(var(--sd-color-error))))}.sd-6-4-1-badge--red-color-background{background-color:rgba(var(--sd-badge--red-color-background,rgba(var(--sd-color-error))))}.sd-6-4-1-button--cta--inverted--default-color-background{background-color:rgba(var(--sd-button--cta--inverted--default-color-background,rgba(var(--sd-color-accent))))}.sd-6-4-1-button--cta--inverted--hover-color-background{background-color:rgba(var(--sd-button--cta--inverted--hover-color-background,rgba(var(--sd-color-accent-500))))}.sd-6-4-1-button--primary--default-color-background{background-color:rgba(var(--sd-button--primary--default-color-background,rgba(var(--sd-color-primary))))}.sd-6-4-1-button--primary--hover-color-background{background-color:rgba(var(--sd-button--primary--hover-color-background,rgba(var(--sd-color-primary-500))))}.sd-6-4-1-button--primary--inverted--default-color-background{background-color:rgba(var(--sd-button--primary--inverted--default-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-button--primary--inverted--hover-color-background{background-color:rgba(var(--sd-button--primary--inverted--hover-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-4-1-button--secondary--hover-color-background{background-color:rgba(var(--sd-button--secondary--hover-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-4-1-button--tertiary--hover-color-background{background-color:rgba(var(--sd-button--tertiary--hover-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-4-1-carousel__pager-dot--inverted-background{background-color:rgba(var(--sd-carousel__pager-dot--inverted-background,rgba(var(--sd-color-accent))))}.sd-6-4-1-carousel__pager-dot-background{background-color:rgba(var(--sd-carousel__pager-dot-background,rgba(var(--sd-color-accent))))}.sd-6-4-1-header-color-background{background-color:rgba(var(--sd-header-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-notification--error-color-background{background-color:rgba(var(--sd-notification--error-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-notification--info-color-background{background-color:rgba(var(--sd-notification--info-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-notification--success-color-background{background-color:rgba(var(--sd-notification--success-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-notification--warning-color-background{background-color:rgba(var(--sd-notification--warning-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-radio--checked--default-color-background{background-color:rgba(var(--sd-radio--checked--default-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-radio--checked--default__icon-color-background{background-color:rgba(var(--sd-radio--checked--default__icon-color-background,rgba(var(--sd-color-accent))))}.sd-6-4-1-radio--checked--invalid--default-color-background{background-color:rgba(var(--sd-radio--checked--invalid--default-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-radio--checked--invalid--default__icon-color-background{background-color:rgba(var(--sd-radio--checked--invalid--default__icon-color-background,rgba(var(--sd-color-error))))}.sd-6-4-1-radio--default--invalid-color-background{background-color:rgba(var(--sd-radio--default--invalid-color-background,rgba(var(--sd-color-white))))}.sd-6-4-1-switch--unchecked__icon-color-background{background-color:rgba(var(--sd-switch--unchecked__icon-color-background,rgba(var(--sd-color-neutral-800))))}.sd-6-4-1-tag--default-color-background{background-color:rgba(var(--sd-tag--default-color-background,rgba(255,255,255,0)))}.sd-6-4-1-tag--selected--default-color-background{background-color:rgba(var(--sd-tag--selected--default-color-background,rgba(var(--sd-color-primary))))}.sd-6-4-1-teaser--neutral-100-color-background{background-color:rgba(var(--sd-teaser--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}.sd-6-4-1-teaser--primary-100-color-background{background-color:rgba(var(--sd-teaser--primary-100-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-4-1-teaser-media--neutral-100-color-background{background-color:rgba(var(--sd-teaser-media--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}.sd-6-4-1-teaser-media--primary-100-color-background{background-color:rgba(var(--sd-teaser-media--primary-100-color-background,rgba(var(--sd-color-primary-100))))}.sd-6-4-1-tooltip-color-background{background-color:rgba(var(--sd-tooltip-color-background,rgba(var(--sd-color-primary))))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-none{background-image:none}.from-primary-800\\/60{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/60{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-60), transparent)}}.from-primary-800\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary-800\\/75{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/75{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-75), transparent)}}.from-primary-800\\/75{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary-800\\/90{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/90{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-90), transparent)}}.from-primary-800\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary-800\\/\\[\\.8\\]{--tw-gradient-from:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.from-primary-800\\/\\[\\.8\\]{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) 80%, transparent)}}.from-primary-800\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/60{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/60{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-60), transparent)}}.from-white\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/75{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/75{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-75), transparent)}}.from-white\\/75{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/90{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/90{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-90), transparent)}}.from-white\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-white\\/\\[\\.8\\]{--tw-gradient-from:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.from-white\\/\\[\\.8\\]{--tw-gradient-from:color-mix(in oklab, rgba(var(--sd-color-background-white)) 80%, transparent)}}.from-white\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-800\\/0{--tw-gradient-to:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.to-primary-800\\/0{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-0), transparent)}}.to-primary-800\\/0{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-800\\/60{--tw-gradient-to:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.to-primary-800\\/60{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) var(--sd-opacity-60), transparent)}}.to-primary-800\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary-800\\/\\[\\.8\\]{--tw-gradient-to:rgba(var(--sd-color-background-primary-800))}@supports (color:color-mix(in lab,red,red)){.to-primary-800\\/\\[\\.8\\]{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-primary-800)) 80%, transparent)}}.to-primary-800\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white\\/0{--tw-gradient-to:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.to-white\\/0{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-0), transparent)}}.to-white\\/0{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white\\/60{--tw-gradient-to:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.to-white\\/60{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-white)) var(--sd-opacity-60), transparent)}}.to-white\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white\\/\\[\\.8\\]{--tw-gradient-to:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.to-white\\/\\[\\.8\\]{--tw-gradient-to:color-mix(in oklab, rgba(var(--sd-color-background-white)) 80%, transparent)}}.to-white\\/\\[\\.8\\]{--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-60\\%{--tw-gradient-to-position:60%}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-accent{fill:rgba(var(--sd-color-icon-fill-accent))}.fill-transparent{fill:transparent}.fill-white{fill:rgba(var(--sd-color-icon-fill-white))}.sd-6-4-1-map-marker-cluster--hovered-color-icon-fill{fill:rgba(var(--sd-map-marker-cluster--hovered-color-icon-fill,rgba(var(--sd-color-primary-500))))}.sd-6-4-1-map-marker-cluster-color-icon-fill{fill:rgba(var(--sd-map-marker-cluster-color-icon-fill,rgba(var(--sd-color-primary))))}.p-0{padding:calc(var(--sd-spacing-1) * 0)}.p-1{padding:var(--sd-spacing-1)}.p-2{padding:var(--sd-spacing-2)}.p-3{padding:var(--sd-spacing-3)}.p-4{padding:var(--sd-spacing-4)}.sd-6-4-1-radio-button-group-padding{padding:var(--sd-radio-button-group-padding,0)}.px-0{padding-inline:calc(var(--sd-spacing-1) * 0)}.px-2{padding-inline:var(--sd-spacing-2)}.px-3{padding-inline:var(--sd-spacing-3)}.px-4{padding-inline:var(--sd-spacing-4)}.px-5{padding-inline:calc(var(--sd-spacing-1) * 5)}.px-6{padding-inline:var(--sd-spacing-6)}.px-10{padding-inline:var(--sd-spacing-10)}.px-12{padding-inline:var(--sd-spacing-12)}.px-\\[0\\.938rem\\]{padding-inline:.938rem}.py-0{padding-block:calc(var(--sd-spacing-1) * 0)}.py-1{padding-block:var(--sd-spacing-1)}.py-2{padding-block:var(--sd-spacing-2)}.py-3{padding-block:var(--sd-spacing-3)}.py-4{padding-block:var(--sd-spacing-4)}.py-6{padding-block:var(--sd-spacing-6)}.py-8{padding-block:var(--sd-spacing-8)}.py-\\[0\\.281rem\\]{padding-block:.281rem}.py-\\[0\\.438rem\\]{padding-block:.438rem}.py-\\[0\\.688rem\\]{padding-block:.688rem}.py-\\[5px\\]{padding-block:5px}.sd-6-4-1-accordion-padding-block{padding-block:var(--sd-accordion-padding-block,var(--sd-spacing-3))}.sd-6-4-1-button--size-lg-padding-block{padding-block:var(--sd-button--size-lg-padding-block,var(--sd-spacing-3))}.sd-6-4-1-button--size-md-padding-block{padding-block:var(--sd-button--size-md-padding-block,var(--sd-spacing-2))}.sd-6-4-1-button--size-sm-padding-block{padding-block:var(--sd-button--size-sm-padding-block,var(--sd-spacing-2))}.ps-4{padding-inline-start:var(--sd-spacing-4)}.pt-0{padding-top:calc(var(--sd-spacing-1) * 0)}.pt-1{padding-top:var(--sd-spacing-1)}.pt-2{padding-top:var(--sd-spacing-2)}.pt-3{padding-top:var(--sd-spacing-3)}.pt-6{padding-top:var(--sd-spacing-6)}.pr-2{padding-right:var(--sd-spacing-2)}.pr-3{padding-right:var(--sd-spacing-3)}.pr-4{padding-right:var(--sd-spacing-4)}.pb-1{padding-bottom:var(--sd-spacing-1)}.pb-2{padding-bottom:var(--sd-spacing-2)}.pb-3{padding-bottom:var(--sd-spacing-3)}.pb-4{padding-bottom:var(--sd-spacing-4)}.pl-3{padding-left:var(--sd-spacing-3)}.pl-4{padding-left:var(--sd-spacing-4)}.pl-8{padding-left:var(--sd-spacing-8)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-base{font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--sd-text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--sd-text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.navigable-font-size{font-size:var(--sd-navigable-font-size,var(--sd-spacing-4))}.sd-6-4-1-button--size-lg-font-size{font-size:var(--sd-button--size-lg-font-size,var(--sd-spacing-4))}.sd-6-4-1-button--size-md-font-size{font-size:var(--sd-button--size-md-font-size,var(--sd-spacing-4))}.sd-6-4-1-button--size-sm-font-size{font-size:var(--sd-button--size-sm-font-size,.875rem)}.sd-6-4-1-tag--size-lg-font-size{font-size:var(--sd-tag--size-lg-font-size,var(--sd-spacing-4))}.sd-6-4-1-tag--size-sm-font-size{font-size:var(--sd-tag--size-sm-font-size,.875rem)}.text-\\[0\\.75rem\\]{font-size:.75rem}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-\\[14px\\]{font-size:14px}.leading-\\[0\\]{--tw-leading:0;line-height:0}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}.font-normal{--tw-font-weight:var(--sd-font-weight-normal);font-weight:var(--sd-font-weight-normal)}.sd-6-4-1-button-font-weight{font-weight:var(--sd-button-font-weight,var(--sd-font-weight-normal))}.sd-6-4-1-tag-font-weight{font-weight:var(--sd-tag-font-weight,var(--sd-font-weight-normal))}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\\!text-neutral-700{color:rgba(var(--sd-color-text-neutral-700))!important}.\\!text-primary{color:rgba(var(--sd-color-text-primary))!important}.form-control--filled__floating-label-color-text{color:rgba(var(--sd-form-control--filled__floating-label-color-text,rgba(var(--sd-color-neutral-700))))}.form-control-color-text{color:rgba(var(--sd-form-control-color-text,rgba(var(--sd-color-black))))}.sd-6-4-1-accordion-color-text{color:rgba(var(--sd-accordion-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-audio__timestamp-color-text{color:rgba(var(--sd-audio__timestamp-color-text,rgba(var(--sd-color-black))))}.sd-6-4-1-badge--blue--inverted-color-text{color:rgba(var(--sd-badge--blue--inverted-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-badge--green-color--inverted-text{color:rgba(var(--sd-badge--green-color--inverted-text,rgba(var(--sd-color-white))))}.sd-6-4-1-badge--red--inverted-text{color:rgba(var(--sd-badge--red--inverted-text,rgba(var(--sd-color-white))))}.sd-6-4-1-button--cta--inverted--default-color-text{color:rgba(var(--sd-button--cta--inverted--default-color-text,rgba(var(--sd-color-white))))}.sd-6-4-1-button--primary--default-color-text{color:rgba(var(--sd-button--primary--default-color-text,rgba(var(--sd-color-white))))}.sd-6-4-1-button--primary--inverted--default-color-text{color:rgba(var(--sd-button--primary--inverted--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-button--secondary--default-color-text{color:rgba(var(--sd-button--secondary--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-button--secondary--disabled-color-text{color:rgba(var(--sd-button--secondary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.sd-6-4-1-button--tertiary--default-color-text{color:rgba(var(--sd-button--tertiary--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-button--tertiary--disabled-color-text{color:rgba(var(--sd-button--tertiary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.sd-6-4-1-menu--disabled-color-text{color:rgba(var(--sd-menu--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.sd-6-4-1-menu-color-text{color:rgba(var(--sd-menu-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-navigation-item--current-color-text{color:rgba(var(--sd-navigation-item--current-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-navigation-item-color-text{color:rgba(var(--sd-navigation-item-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-quickfact--expandable-color-text{color:rgba(var(--sd-quickfact--expandable-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-radio-button-color-text{color:rgba(var(--sd-radio-button-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-range-scale-ticks-color-text{color:rgba(var(--sd-range-scale-ticks-color-text,rgba(var(--sd-color-black))))}.sd-6-4-1-switch-color-text{color:rgba(var(--sd-switch-color-text,rgba(var(--sd-color-black))))}.sd-6-4-1-tag--default-color-text{color:rgba(var(--sd-tag--default-color-text,rgba(var(--sd-color-primary))))}.sd-6-4-1-tag--selected--default-color-text{color:rgba(var(--sd-tag--selected--default-color-text,rgba(var(--sd-color-white))))}.sd-6-4-1-tooltip-color-text{color:rgba(var(--sd-tooltip-color-text,rgba(var(--sd-color-white))))}.text-black{color:rgba(var(--sd-color-text-black))}.text-error{color:rgba(var(--sd-color-text-error))}.text-inherit{color:inherit}.text-neutral-500{color:rgba(var(--sd-color-text-neutral-500))}.text-neutral-600{color:rgba(var(--sd-color-text-neutral-600))}.text-neutral-700{color:rgba(var(--sd-color-text-neutral-700))}.text-primary{color:rgba(var(--sd-color-text-primary))}.text-primary-400{color:rgba(var(--sd-color-text-primary-400))}.text-primary-500{color:rgba(var(--sd-color-text-primary-500))}.text-success{color:rgba(var(--sd-color-text-success))}.text-white{color:rgba(var(--sd-color-text-white))}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:var(--sd-opacity-0)}.opacity-1{opacity:1%}.opacity-20{opacity:var(--sd-opacity-20)}.opacity-30{opacity:var(--sd-opacity-30)}.opacity-50{opacity:var(--sd-opacity-50)}.opacity-90{opacity:var(--sd-opacity-90)}.opacity-100{opacity:var(--sd-opacity-100)}.\\!shadow{--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow{--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline:2px solid transparent;outline-offset:2px}}.focus-outline{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.\\!-outline-offset-2{outline-offset:calc(2px * -1)!important}.\\!outline-offset-0{outline-offset:0!important}.-outline-offset-2{outline-offset:calc(2px * -1)}.outline-error{outline-color:var(--sd-color-border-error,var(--sd-color-error))}.outline-primary{outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}.blur{--tw-blur:blur(8px);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,)}.filter{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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[border\\]{transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\,top\\]{transition-property:height,top;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,scale\\]{transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,width\\]{transition-property:transform,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:100ms;transition-duration:.1s}.duration-200{--tw-duration:200ms;transition-duration:.2s}.duration-1000{--tw-duration:1000ms;transition-duration:1s}.duration-fast{--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms)}.duration-medium{--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms)}.duration-slow{--tw-duration:var(--sd-duration-slow, 500ms);transition-duration:var(--sd-duration-slow,500ms)}.duration-x-slow{--tw-duration:var(--sd-duration-x-slow, 750ms);transition-duration:var(--sd-duration-x-slow,750ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.content-\\[\\'\\'\\]{--tw-content:'';content:var(--tw-content)}.outline-dotted{--tw-outline-style:dotted;outline-style:dotted}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.varspacing-8{--tw-varspacing:var(--sd-spacing-8)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12)}.group-hover\\:top-0:is(:where(.group):hover:not([disabled]) *){top:calc(var(--sd-spacing-1) * 0)}.group-hover\\:left-0:is(:where(.group):hover:not([disabled]) *){left:calc(var(--sd-spacing-1) * 0)}.group-hover\\:mt-\\[-22\\%\\]:is(:where(.group):hover:not([disabled]) *){margin-top:-22%}.group-hover\\:h-full:is(:where(.group):hover:not([disabled]) *){height:100%}.group-hover\\:w-\\[calc\\(100\\%-2px\\)\\]:is(:where(.group):hover:not([disabled]) *){width:calc(100% - 2px)}.group-hover\\:w-full:is(:where(.group):hover:not([disabled]) *){width:100%}.group-hover\\:translate-y-0:is(:where(.group):hover:not([disabled]) *){--tw-translate-y:calc(var(--sd-spacing-1) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-hover\\:border-accent-550:is(:where(.group):hover:not([disabled]) *){border-color:rgba(var(--sd-color-border-accent-550))}.group-hover\\:border-error-400:is(:where(.group):hover:not([disabled]) *){border-color:rgba(var(--sd-color-border-error-400))}.group-hover\\:bg-accent-550:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-accent-550))}.group-hover\\:bg-error-400:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-error-400))}.group-hover\\:bg-neutral-200:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-neutral-200))}.group-hover\\:bg-primary\\/90:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){.group-hover\\:bg-primary\\/90:is(:where(.group):hover:not([disabled]) *){background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}.group-hover\\:bg-white:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-white))}.group-hover\\:bg-white\\/90:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){.group-hover\\:bg-white\\/90:is(:where(.group):hover:not([disabled]) *){background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}.group-hover\\:sd-6-4-1-radio--checked--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-radio--checked--hover-color-background,rgba(var(--sd-color-white))))}.group-hover\\:sd-6-4-1-radio--checked--hover__icon-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-radio--checked--hover__icon-color-background,rgba(var(--sd-color-success))))}.group-hover\\:sd-6-4-1-radio--checked--invalid--hover__icon-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-radio--checked--invalid--hover__icon-color-background,rgba(var(--sd-color-error-400))))}.group-hover\\:sd-6-4-1-switch--checked--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-switch--checked--hover-color-background,rgba(var(--sd-color-success))))}.group-hover\\:sd-6-4-1-teaser-media--neutral-100--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-teaser-media--neutral-100--hover-color-background,rgba(var(--sd-color-neutral-100))))}.group-hover\\:sd-6-4-1-teaser-media--primary-100--hover-color-background:is(:where(.group):hover:not([disabled]) *){background-color:rgba(var(--sd-teaser-media--primary-100--hover-color-background,rgba(var(--sd-color-primary-100))))}.group-hover\\:text-primary-500:is(:where(.group):hover:not([disabled]) *){color:rgba(var(--sd-color-text-primary-500))}.group-hover\\:duration-fast:is(:where(.group):hover:not([disabled]) *){--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms)}.group-focus-visible\\:outline-2:is(:where(.group):focus-visible *){outline-style:var(--tw-outline-style);outline-width:2px}.group-focus-visible\\:outline-offset-2:is(:where(.group):focus-visible *){outline-offset:2px}.group-active\\:translate-y-0:is(:where(.group):active:not([disabled]) *){--tw-translate-y:calc(var(--sd-spacing-1) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-active\\:bg-accent-700:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-color-background-accent-700))}.group-active\\:bg-primary-200:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-color-background-primary-200))}.group-active\\:bg-primary-800:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-color-background-primary-800))}.group-active\\:sd-6-4-1-button--cta--inverted--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--cta--inverted--active-color-background,rgba(var(--sd-color-accent-700))))}.group-active\\:sd-6-4-1-button--secondary--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--secondary--active-color-background,rgba(var(--sd-color-primary-200))))}.group-active\\:sd-6-4-1-button--secondary--inverted--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--secondary--inverted--active-color-background,rgba(var(--sd-color-primary-800))))}.group-active\\:sd-6-4-1-button--tertiary--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--tertiary--active-color-background,rgba(var(--sd-color-primary-200))))}.group-active\\:sd-6-4-1-button--tertiary--inverted--active-color-background:is(:where(.group):active:not([disabled]) *){background-color:rgba(var(--sd-button--tertiary--inverted--active-color-background,rgba(var(--sd-color-primary-800))))}.group-has-\\[sd-6-4-1-icon\\]\\:pe-8:is(:where(.group):has(:is(sd-6-4-1-icon))*){padding-inline-end:var(--sd-spacing-8)}.peer-focus-visible\\:outline:is(:where(.peer):focus-visible ~ *){outline-style:var(--tw-outline-style);outline-width:1px}.peer-focus-visible\\:outline-2:is(:where(.peer):focus-visible ~ *){outline-style:var(--tw-outline-style);outline-width:2px}.peer-focus-visible\\:outline-offset-2:is(:where(.peer):focus-visible ~ *){outline-offset:2px}.peer-focus-visible\\:outline-primary:is(:where(.peer):focus-visible ~ *){outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}.placeholder\\:form-control-color-text::-moz-placeholder{color:rgba(var(--sd-form-control-color-text,rgba(var(--sd-color-black))))}.placeholder\\:form-control-color-text::placeholder{color:rgba(var(--sd-form-control-color-text,rgba(var(--sd-color-black))))}.placeholder\\:text-neutral-500::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}.placeholder\\:text-neutral-500::placeholder{color:rgba(var(--sd-color-text-neutral-500))}.placeholder\\:text-neutral-700::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-700))}.placeholder\\:text-neutral-700::placeholder{color:rgba(var(--sd-color-text-neutral-700))}.after\\:-inset-2::after{content:var(--tw-content);inset:calc(var(--sd-spacing-2) * -1)}.focus-within\\:focus-outline:focus-within{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.focus-within\\:focus-outline-inverted:focus-within{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-white))}.hover\\:scale-110:hover:not([disabled]){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:cursor-grab:hover:not([disabled]){cursor:grab}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:cursor-pointer:hover:not([disabled]){cursor:pointer}.hover\\:border-accent-550:hover:not([disabled]){border-color:rgba(var(--sd-color-border-accent-550))}.hover\\:border-error-400:hover:not([disabled]){border-color:rgba(var(--sd-color-border-error-400))}.hover\\:border-neutral-500:hover:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-500))}.hover\\:border-neutral-600:hover:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-600))}.hover\\:border-primary-100:hover:not([disabled]){border-color:rgba(var(--sd-color-border-primary-100))}.hover\\:border-primary-200:hover:not([disabled]){border-color:rgba(var(--sd-color-border-primary-200))}.hover\\:border-primary-500:hover:not([disabled]){border-color:rgba(var(--sd-color-border-primary-500))}.hover\\:sd-6-4-1-tag--selected--hover-color-border:hover:not([disabled]){border-color:rgba(var(--sd-tag--selected--hover-color-border,rgba(255,255,255,0)))}.hover\\:bg-accent-550:hover:not([disabled]){background-color:rgba(var(--sd-color-background-accent-550))}.hover\\:bg-error-400:hover:not([disabled]){background-color:rgba(var(--sd-color-background-error-400))}.hover\\:bg-neutral-100:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-100))}.hover\\:bg-neutral-200:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-200))}.hover\\:bg-neutral-500:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-500))}.hover\\:bg-primary-100:hover:not([disabled]){background-color:rgba(var(--sd-color-background-primary-100))}.hover\\:bg-primary-500:hover:not([disabled]){background-color:rgba(var(--sd-color-background-primary-500))}.hover\\:bg-transparent:hover:not([disabled]){background-color:transparent}.hover\\:bg-white:hover:not([disabled]){background-color:rgba(var(--sd-color-background-white))}.hover\\:color-background:hover:not([disabled]){background-color:rgba(var(--sd-color-background,rgba(var(--sd-color-neutral-200))))}.hover\\:sd-6-4-1-button--primary--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-button--primary--hover-color-background,rgba(var(--sd-color-primary-500))))}.hover\\:sd-6-4-1-button--tertiary--inverted--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-button--tertiary--inverted--hover-color-background,rgba(var(--sd-color-primary-500))))}.hover\\:sd-6-4-1-carousel__pager-dot--inverted--hovered-background:hover:not([disabled]){background-color:rgba(var(--sd-carousel__pager-dot--inverted--hovered-background,rgba(var(--sd-color-accent))))}.hover\\:sd-6-4-1-radio--checked--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-radio--checked--hover-color-background,rgba(var(--sd-color-white))))}.hover\\:sd-6-4-1-radio--checked--hover__icon-color-background:hover:not([disabled]){background-color:rgba(var(--sd-radio--checked--hover__icon-color-background,rgba(var(--sd-color-success))))}.hover\\:sd-6-4-1-radio--checked--invalid--hover__icon-color-background:hover:not([disabled]){background-color:rgba(var(--sd-radio--checked--invalid--hover__icon-color-background,rgba(var(--sd-color-error-400))))}.hover\\:sd-6-4-1-switch--checked--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-switch--checked--hover-color-background,rgba(var(--sd-color-success))))}.hover\\:sd-6-4-1-tag--default--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-tag--default--hover-color-background,rgba(255,255,255,0)))}.hover\\:sd-6-4-1-tag--selected--hover-color-background:hover:not([disabled]){background-color:rgba(var(--sd-tag--selected--hover-color-background,rgba(var(--sd-color-primary-500))))}.hover\\:fill-primary-500:hover:not([disabled]){fill:rgba(var(--sd-color-icon-fill-primary-500))}.hover\\:sd-6-4-1-button--cta--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--cta--inverted--hover-color-text,rgba(var(--sd-color-white))))}.hover\\:sd-6-4-1-button--primary--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--primary--inverted--hover-color-text,rgba(var(--sd-color-primary-500))))}.hover\\:sd-6-4-1-button--secondary--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--secondary--inverted--hover-color-text,rgba(var(--sd-color-primary-100))))}.hover\\:sd-6-4-1-button--tertiary--inverted--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-button--tertiary--inverted--hover-color-text,rgba(var(--sd-color-primary-100))))}.hover\\:sd-6-4-1-tag--selected--hover-color-text:hover:not([disabled]){color:rgba(var(--sd-tag--selected--hover-color-text,rgba(var(--sd-color-white))))}.hover\\:text-neutral-500:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.hover\\:text-neutral-600:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.hover\\:text-primary-100:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-100))}.hover\\:text-primary-200:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-200))}.hover\\:text-primary-500:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-500))}.hover\\:text-white:hover:not([disabled]){color:rgba(var(--sd-color-text-white))}.hover\\:duration-fast:hover:not([disabled]){--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms)}.focus\\:outline-2:focus:not([disabled]){outline-style:var(--tw-outline-style);outline-width:2px}.focus\\:outline-primary:focus:not([disabled]){outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}.focus\\:outline-none:focus:not([disabled]){--tw-outline-style:none;outline-style:none}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:focus-outline:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.focus-visible\\:focus-outline-inverted:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-white))}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:border-neutral-500:active:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-500))}.active\\:border-neutral-600:active:not([disabled]){border-color:rgba(var(--sd-color-border-neutral-600))}.active\\:border-primary-800:active:not([disabled]){border-color:rgba(var(--sd-color-border-primary-800))}.active\\:bg-neutral-500:active:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-500))}.active\\:sd-6-4-1-button--primary--inverted--active-color-background:active:not([disabled]){background-color:rgba(var(--sd-button--primary--inverted--active-color-background,rgba(var(--sd-color-primary-200))))}.active\\:interactive--active-color-text:active:not([disabled]){color:rgba(var(--sd-interactive--active-color-text,rgba(var(--sd-color-primary-800))))}.active\\:sd-6-4-1-button--cta--inverted--active-color-text:active:not([disabled]){color:rgba(var(--sd-button--cta--inverted--active-color-text,rgba(var(--sd-color-white))))}.active\\:sd-6-4-1-button--primary--active-color-text:active:not([disabled]){color:rgba(var(--sd-button--primary--active-color-text,rgba(var(--sd-color-primary-200))))}.active\\:sd-6-4-1-button--primary--inverted--active-color-text:active:not([disabled]){color:rgba(var(--sd-button--primary--inverted--active-color-text,rgba(var(--sd-color-primary-800))))}.active\\:text-neutral-500:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.active\\:text-neutral-600:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.active\\:text-primary-200:active:not([disabled]){color:rgba(var(--sd-color-text-primary-200))}.active\\:text-primary-400:active:not([disabled]){color:rgba(var(--sd-color-text-primary-400))}.active\\:text-primary-800:active:not([disabled]){color:rgba(var(--sd-color-text-primary-800))}.disabled\\:border-neutral-500:disabled{border-color:rgba(var(--sd-color-border-neutral-500))}.disabled\\:sd-6-4-1-button--inverted--disabled-color-border:disabled{border-color:rgba(var(--sd-button--inverted--disabled-color-border,rgba(var(--sd-color-neutral-600))))}.disabled\\:sd-6-4-1-tag--disabled-color-border:disabled{border-color:rgba(var(--sd-tag--disabled-color-border,rgba(var(--sd-color-neutral-500))))}.disabled\\:bg-neutral-500:disabled{background-color:rgba(var(--sd-color-background-neutral-500))}.disabled\\:sd-6-4-1-button--inverted--disabled-color-background:disabled{background-color:rgba(var(--sd-button--inverted--disabled-color-background,rgba(var(--sd-color-neutral-600))))}.disabled\\:sd-6-4-1-button--inverted--disabled-color-text:disabled{color:rgba(var(--sd-button--inverted--disabled-color-text,rgba(var(--sd-color-neutral-600))))}.disabled\\:sd-6-4-1-button--secondary--disabled-color-text:disabled{color:rgba(var(--sd-button--secondary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.disabled\\:sd-6-4-1-button--tertiary--disabled-color-text:disabled{color:rgba(var(--sd-button--tertiary--disabled-color-text,rgba(var(--sd-color-neutral-500))))}.disabled\\:text-neutral-500:disabled{color:rgba(var(--sd-color-text-neutral-500))}.disabled\\:text-white:disabled{color:rgba(var(--sd-color-text-white))}.has-\\[button\\:hover\\]\\:border-primary-500:has(:is(button:hover)){border-color:rgba(var(--sd-color-border-primary-500))}.has-\\[button\\:hover\\]\\:text-primary-500:has(:is(button:hover)){color:rgba(var(--sd-color-text-primary-500))}@media (width >= 40rem){.sm\\:mt-2{margin-top:var(--sd-spacing-2)}}@media (width >= 40rem){.sm\\:flex-col{flex-direction:column}}@media (width >= 40rem){.sm\\:gap-4{gap:var(--sd-spacing-4)}}@media (width >= 40rem){.sm\\:self-center{align-self:center}}@media (width >= 40rem){.sm\\:p-6{padding:var(--sd-spacing-6)}}@media (width >= 40rem){.sm\\:px-10{padding-inline:var(--sd-spacing-10)}}@media (width >= 40rem){.sm\\:py-8{padding-block:var(--sd-spacing-8)}}@media (width >= 40rem){.sm\\:pb-8{padding-bottom:var(--sd-spacing-8)}}@media (width >= 40rem){.sm\\:text-center{text-align:center}}@media (width >= 40rem){.sm\\:text-3xl{font-size:var(--sd-text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media (width >= 40rem){.sm\\:leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}}@media (width >= 48rem){.md\\:block{display:block}}@media (width >= 48rem){.md\\:\\[transition\\:_height_0\\.2s_linear\\,opacity_0\\.1s_linear_0\\.1s\\]{transition:height .2s linear,opacity .1s linear .1s}}@media (width >= 48rem){.md\\:group-hover\\:visible:is(:where(.group):hover:not([disabled]) *){visibility:visible}}@media (width >= 48rem){.md\\:group-hover\\:my-4:is(:where(.group):hover:not([disabled]) *){margin-block:var(--sd-spacing-4)}}@media (width >= 48rem){.md\\:group-hover\\:h-auto:is(:where(.group):hover:not([disabled]) *){height:auto}}@media (width >= 48rem){.md\\:group-hover\\:opacity-\\[100\\%\\]:is(:where(.group):hover:not([disabled]) *){opacity:100%}}@media (width >= 64rem){.lg\\:flex{display:flex}}@media (width >= 64rem){.lg\\:hidden{display:none}}@media (width >= 64rem){.lg\\:inline-block{display:inline-block}}*,::after,::backdrop,::before,::file-selector-button{box-sizing:border-box;border:0 solid}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none;margin:0;padding:0}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}::file-selector-button,button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1;margin:0;padding:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentcolor}::placeholder{color:currentcolor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.sd-interactive--reset,.sd-prose a--reset{all:unset;outline:revert}.sd-interactive,.sd-prose a{cursor:pointer;color:rgba(var(--sd-interactive--default-color-text,rgba(var(--sd-color-primary))));text-decoration-line:underline;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.sd-interactive:hover:not([disabled]),.sd-prose a:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-500))}.sd-interactive:focus-visible,.sd-prose a:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.sd-interactive:active:not([disabled]),.sd-prose a:active:not([disabled]){color:rgba(var(--sd-interactive--active-color-text,rgba(var(--sd-color-primary-800))))}.sd-interactive:is(.sd-interactive),.sd-prose a:is(.sd-interactive){text-decoration-line:none}.sd-interactive--disabled,.sd-interactive[disabled],.sd-interactive[href=''],.sd-prose a--disabled,.sd-prose a[disabled],.sd-prose a[href='']{cursor:not-allowed;color:rgba(var(--sd-color-text-neutral-500))}.sd-interactive--disabled:hover:not([disabled]),.sd-interactive[disabled]:hover:not([disabled]),.sd-interactive[href='']:hover:not([disabled]),.sd-prose a--disabled:hover:not([disabled]),.sd-prose a[disabled]:hover:not([disabled]),.sd-prose a[href='']:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.sd-interactive--disabled:active:not([disabled]),.sd-interactive[disabled]:active:not([disabled]),.sd-interactive[href='']:active:not([disabled]),.sd-prose a--disabled:active:not([disabled]),.sd-prose a[disabled]:active:not([disabled]),.sd-prose a[href='']:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-500))}.sd-interactive--disabled.sd-interactive--inverted,.sd-interactive[disabled].sd-interactive--inverted,.sd-interactive[href=''].sd-interactive--inverted,.sd-prose a--disabled.sd-interactive--inverted,.sd-prose a[disabled].sd-interactive--inverted,.sd-prose a[href=''].sd-interactive--inverted{color:rgba(var(--sd-color-text-neutral-600))}.sd-interactive--disabled.sd-interactive--inverted:hover:not([disabled]),.sd-interactive[disabled].sd-interactive--inverted:hover:not([disabled]),.sd-interactive[href=''].sd-interactive--inverted:hover:not([disabled]),.sd-prose a--disabled.sd-interactive--inverted:hover:not([disabled]),.sd-prose a[disabled].sd-interactive--inverted:hover:not([disabled]),.sd-prose a[href=''].sd-interactive--inverted:hover:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.sd-interactive--disabled.sd-interactive--inverted:active:not([disabled]),.sd-interactive[disabled].sd-interactive--inverted:active:not([disabled]),.sd-interactive[href=''].sd-interactive--inverted:active:not([disabled]),.sd-prose a--disabled.sd-interactive--inverted:active:not([disabled]),.sd-prose a[disabled].sd-interactive--inverted:active:not([disabled]),.sd-prose a[href=''].sd-interactive--inverted:active:not([disabled]){color:rgba(var(--sd-color-text-neutral-600))}.sd-interactive--inverted,.sd-prose--inverted a{color:rgba(var(--sd-color-text-white))}.sd-interactive--inverted:hover:not([disabled]),.sd-prose--inverted a:hover:not([disabled]){color:rgba(var(--sd-color-text-primary-200))}.sd-interactive--inverted:focus-visible,.sd-prose--inverted a:focus-visible{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}.sd-interactive--inverted:active:not([disabled]),.sd-prose--inverted a:active:not([disabled]){color:rgba(var(--sd-color-text-primary-400))}.sd-paragraph,.sd-prose p{font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-leading:var(--leading-normal);line-height:var(--leading-normal);--tw-font-weight:var(--sd-font-weight-normal);font-weight:var(--sd-font-weight-normal);color:rgba(var(--sd-color-text-black))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:var(--leading-normal);line-height:var(--leading-normal);--tw-font-weight:var(--sd-font-weight-normal);font-weight:var(--sd-font-weight-normal);color:rgba(var(--sd-color-text-black))}.sd-paragraph--inverted,.sd-prose--inverted p{color:rgba(var(--sd-color-text-white))}.sd-headline,.sd-prose :is(h1, h2, h3, h4, h5){display:flex;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:rgba(var(--sd-color-text-primary))}.sd-headline sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-6-4-1-icon{flex-shrink:0;font-size:3rem;color:rgba(var(--sd-color-text-primary))}@media (width >= 40rem){.sd-headline sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-6-4-1-icon{margin-top:var(--sd-spacing-2)}}.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){gap:var(--sd-spacing-4);font-size:var(--sd-text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}@media (width >= 40rem){.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}}.sd-headline.sd-headline sd-6-4-1-icon,.sd-headline:is(h1):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * -1)}@media (width >= 40rem){.sd-headline.sd-headline sd-6-4-1-icon,.sd-headline:is(h1):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * 0)}}.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){gap:var(--sd-spacing-4);font-size:var(--sd-text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height));--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}@media (width >= 40rem){.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}.sd-headline.sd-headline--size-3xl sd-6-4-1-icon,.sd-headline:is(h2):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * -1)}@media (width >= 40rem){.sd-headline.sd-headline--size-3xl sd-6-4-1-icon,.sd-headline:is(h2):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * 0)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline.sd-headline--size-xl,.sd-headline:is(h3,h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline){gap:var(--sd-spacing-2);color:rgba(var(--sd-color-text-black))}.sd-headline.sd-headline--size-base sd-6-4-1-icon,.sd-headline.sd-headline--size-lg sd-6-4-1-icon,.sd-headline.sd-headline--size-xl sd-6-4-1-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-6-4-1-icon{font-size:2rem}.sd-headline.sd-headline--size-xl,.sd-headline:is(h3):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.sd-headline.sd-headline--size-xl sd-6-4-1-icon,.sd-headline:is(h3):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-6-4-1-icon{margin-top:var(--sd-spacing-0\\.5)}@media (width >= 40rem){.sd-headline.sd-headline--size-xl sd-6-4-1-icon,.sd-headline:is(h3):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-6-4-1-icon{margin-top:var(--sd-spacing-0\\.5)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline:is(h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4,h5):not(.sd-headline){--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.sd-headline.sd-headline--size-lg,.sd-headline:is(h4),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4){font-size:var(--sd-text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sd-headline.sd-headline--size-lg sd-6-4-1-icon,.sd-headline:is(h4) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * 0)}@media (width >= 40rem){.sd-headline.sd-headline--size-lg sd-6-4-1-icon,.sd-headline:is(h4) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * 0)}}.sd-headline.sd-headline--size-base,.sd-headline:is(h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sd-headline.sd-headline--size-base sd-6-4-1-icon,.sd-headline:is(h5):not(.sd-headline) sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-6-4-1-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * -1)}.sd-headline.sd-headline--size-base mark,.sd-headline:is(h5):not(.sd-headline) mark,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base mark,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) mark{color:inherit}.sd-headline--inline{display:inline-block}.sd-headline--inline sd-6-4-1-icon{margin-top:calc(var(--sd-spacing-1) * -1);margin-right:var(--sd-spacing-2);vertical-align:middle}.sd-headline--inline:is(.sd-headline--size-xl,.sd-headline--size-lg,.sd-headline--size-base) sd-6-4-1-icon{margin-right:var(--sd-spacing-0\\.5)}.sd-headline--inverted:not(#_),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_){color:rgba(var(--sd-color-text-white))}.sd-headline--inverted:not(#_) sd-6-4-1-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_) sd-6-4-1-icon{color:rgba(var(--sd-color-text-white))}:host{--tw-blur:initial;--tw-border-style:solid;--tw-brightness:initial;--tw-contrast:initial;--tw-divide-y-reverse:0;--tw-drop-shadow:initial;--tw-duration:initial;--tw-ease:initial;--tw-font-weight:initial;--tw-gradient-from-position:0%;--tw-gradient-from:#0000;--tw-gradient-position:initial;--tw-gradient-stops:initial;--tw-gradient-to-position:100%;--tw-gradient-to:#0000;--tw-gradient-via-position:50%;--tw-gradient-via-stops:initial;--tw-gradient-via:#0000;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-invert:initial;--tw-opacity:initial;--tw-ring-color:initial;--tw-ring-inset:initial;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-shadow:0 0 #0000;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-saturate:initial;--tw-sepia:initial;--tw-shadow-color:initial;--tw-shadow:0 0 #0000;--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce-once{0%{transform:translateY(0)}50%{transform:translateY(-18px)}100%{transform:translateY(0)}}@keyframes grow{0%{width:0%}100%{width:100%}}@keyframes loader-color-current{0%,100%{color:currentColor}50%{color:currentColor;opacity:20%}}@keyframes loader-color-primary{0%,100%{color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}50%{color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))));opacity:20%}}@keyframes loader-color-white{0%,100%{color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}50%{color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))));opacity:20%}}@keyframes wave{0%,100%,40%{transform:initial}20%{transform:translateY(-4px)}}`],a([d()],g.prototype,"dir",2),a([d()],g.prototype,"lang",2);var cs,_t=class extends g{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),ha(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),ua(this)}onThemeChange(){this.setIcon()}getUrl(){let t=as(this.library);return this.name&&t?t.name==="_internal"?t.resolver(this.name,this):t.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var r;let t=as(this.library),e=this.getUrl();if(cs||(cs=new DOMParser),e)try{let o=await fa(e);if(e===this.getUrl())if(o.ok){let l=cs.parseFromString(o.svg,"text/html").body.querySelector("svg");l!==null?((r=t==null?void 0:t.mutator)==null||r.call(t,l),this.svg=l.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(o){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return p`<sd-6-4-1-theme-listener></sd-6-4-1-theme-listener>${yr(this.svg)}`}};_t.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
163
|
+
:host{width:1em;height:1em;box-sizing:content-box!important;display:inline-block}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{color:rgba(var(--sd-color-text-primary))}:host([color=white]) svg{color:rgba(var(--sd-color-text-white))}`],a([L()],_t.prototype,"svg",2),a([d({reflect:!0})],_t.prototype,"name",2),a([d()],_t.prototype,"src",2),a([d()],_t.prototype,"label",2),a([d({reflect:!0})],_t.prototype,"library",2),a([d({reflect:!0})],_t.prototype,"color",2),a([E("label")],_t.prototype,"handleLabelChange",1),a([E(["name","src","library"])],_t.prototype,"setIcon",1),_t=a([k("sd-6-4-1-icon")],_t);var ba=new Map,Zo=new WeakMap;function Qo(s){return s!=null?s:{keyframes:[],options:{duration:0}}}function ga(s,i){return i.toLowerCase()==="rtl"?{keyframes:s.rtlKeyframes||s.keyframes,options:s.options}:s}function R(s,i){ba.set(s,Qo(i))}function q(s,i,t){let e=Zo.get(s);if(e!=null&&e[i])return ga(e[i],t.dir);let r=ba.get(i);return r?ga(r,t.dir):{keyframes:[],options:{duration:0}}}var ya=Symbol.for(""),Go=s=>{if((s==null?void 0:s.r)===ya)return s==null?void 0:s._$litStatic$};var et=(s,...i)=>({_$litStatic$:i.reduce(((t,e,r)=>t+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
|
|
164
|
+
take care to ensure page security.`)})(e)+s[r+1]),s[0]),r:ya}),va=new Map,hs=s=>(i,...t)=>{let e=t.length,r,o,n=[],l=[],h,u=0,m=!1;for(;u<e;){for(h=i[u];u<e&&(o=t[u],(r=Go(o))!==void 0);)h+=r+i[++u],m=!0;u!==e&&l.push(o),n.push(h),u++}if(u===e&&n.push(i[e]),m){let f=n.join("$$lit$$");(i=va.get(f))===void 0&&(n.raw=n,va.set(f,i=n)),t=l}return s(i,...t)},U=hs(p),Eh=hs(Gs),Ch=hs(Js);var us=new Set,vi=new Map,ei,ps="ltr",ms="en",wa=typeof MutationObserver!="undefined"&&typeof document!="undefined"&&typeof document.documentElement!="undefined";if(wa){let s=new MutationObserver(xa);ps=document.documentElement.dir||"ltr",ms=document.documentElement.lang||navigator.language,s.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function kr(...s){s.map(i=>{let t=i.$code.toLowerCase();vi.has(t)?vi.set(t,Object.assign(Object.assign({},vi.get(t)),i)):vi.set(t,i),ei||(ei=i)}),xa()}function xa(){wa&&(ps=document.documentElement.dir||"ltr",ms=document.documentElement.lang||navigator.language),[...us.keys()].map(s=>{typeof s.requestUpdate=="function"&&s.requestUpdate()})}var xr=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){us.add(this.host)}hostDisconnected(){us.delete(this.host)}dir(){return`${this.host.dir||ps}`.toLowerCase()}lang(){return`${this.host.lang||ms}`.toLowerCase()}getTranslationData(i){var t,e;let r=new Intl.Locale(i.replace(/_/g,"-")),o=r==null?void 0:r.language.toLowerCase(),n=(e=(t=r==null?void 0:r.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&e!==void 0?e:"",l=vi.get(`${o}-${n}`),h=vi.get(o);return{locale:r,language:o,region:n,primary:l,secondary:h}}exists(i,t){var e;let{primary:r,secondary:o}=this.getTranslationData((e=t.lang)!==null&&e!==void 0?e:this.lang());return t=Object.assign({includeFallback:!1},t),!!(r&&r[i]||o&&o[i]||t.includeFallback&&ei&&ei[i])}term(i,...t){let{primary:e,secondary:r}=this.getTranslationData(this.lang()),o;if(e&&e[i])o=e[i];else if(r&&r[i])o=r[i];else if(ei&&ei[i])o=ei[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof o=="function"?o(...t):o}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,e){return new Intl.RelativeTimeFormat(this.lang(),e).format(i,t)}};var Jo={$code:"de",$name:"Deutsch",$dir:"ltr",audioPlayer:"Audio-Player",autoplay:"Autoplay",carousel:"Karussell",carouselContainer:s=>`Karussell hat ${s} folien`,clearEntry:"Eingabe l\xF6schen",close:"Schlie\xDFen",collapseNavigationItem:"Navigationspunkt reduzieren",comboboxDefaultPlaceholder:"Bitte suchen und ausw\xE4hlen",copy:"Kopieren",currentValue:"Aktueller Wert",datePicker:"Datumsauswahl",datePickerInfo:"Pfeiltasten zum Navigieren verwenden, Enter zum Ausw\xE4hlen. Bild-auf/Bild-ab \xE4ndert den Monat. Shift+Bild-auf/Bild-ab \xE4ndert das Jahr",datePickerRange:"Datumsbereichsauswahl",datePlaceholder:"Datum ausw\xE4hlen",dateRangePlaceholder:"Datumsbereich ausw\xE4hlen",endDateSelected:"Enddatum ausgew\xE4hlt",expandNavigationItem:"Navigationspunkt erweitern",goToSlide:(s,i)=>`Zu Folie ${s} von ${i} gehen`,hidePassword:"Passwort verbergen",invalidDate:"Ung\xFCltiges Datum",loading:"Wird geladen",maximum:"H\xF6chstwert",minimum:"Minimum",mute:"Stummschalten",nextMonth:"N\xE4chster Monat",nextSlide:"N\xE4chste Folie",nextYear:"N\xE4chstes Jahr",noResults:"Keine Ergebnisse gefunden",notifications:"Benachrichtigungen",numOptionsSelected:s=>s===0?"":`Optionen ausgew\xE4hlt (${s})`,open:"\xD6ffnen",openTranscript:"Transkript \xF6ffnen",optionGroup:"Optionsgruppe",pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",playVideo:"Video abspielen",previousMonth:"Vorheriger Monat",previousSlide:"Vorherige Folie",previousYear:"Vorheriges Jahr",progress:"Fortschritt",remove:"Entfernen",removed:s=>`${s} entfernt`,resize:"Gr\xF6\xDFe \xE4ndern",scrolled:"Gescrollt",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",search:"Suchen",seconds:s=>`${s} Sekunden`,seekBar:"Schieberegler f\xFCr Suche",selectAColorFromTheScreen:"Farbe vom Bildschirm ausw\xE4hlen",selectDefaultPlaceholder:"Bitte ausw\xE4hlen",selected:"Ausgew\xE4hlt",selectionCleared:"Auswahl gel\xF6scht",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(s,i)=>`Folie ${s} von ${i}`,startDateSelected:"Startdatum ausgew\xE4hlt",tagsSelected:"Optionen ausgew\xE4hlt",toggleColorFormat:"Farbformat umschalten",transcriptIsOpen:"Transkript ist offen",truncatedBreadcrumbs:"Verk\xFCrzter Navigationspfad",unmute:"Unmute"};kr(Jo);var tn={$code:"en",$name:"English",$dir:"ltr",audioPlayer:"Audio Player",autoplay:"Autoplay",carousel:"Carousel",carouselContainer:s=>`Carousel has ${s} slides`,clearEntry:"Clear entry",close:"Close",collapseNavigationItem:"Collapse navigation item",comboboxDefaultPlaceholder:"Please search and select",copy:"Copy",currentValue:"Current value",datePicker:"Date picker",datePickerInfo:"Use arrow keys to navigate, Enter to select. Page Up/Down changes month. Shift+Page Up/Down changes year",datePickerRange:"Date range picker",datePlaceholder:"Select date",dateRangePlaceholder:"Select date range",endDateSelected:"End date selected",expandNavigationItem:"Expand navigation item",goToSlide:(s,i)=>`Go to slide ${s} of ${i}`,hidePassword:"Hide password",invalidDate:"Invalid date",loading:"Loading",maximum:"Maximum",minimum:"Minimum",mute:"Mute",nextMonth:"Next month",nextSlide:"Next slide",nextYear:"Next year",noResults:"No results found",notifications:"Notifications",numOptionsSelected:s=>s===0?"":`Options selected (${s})`,open:"Open",openTranscript:"Open transcript",optionGroup:"Option Group",pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",playVideo:"Play Video",previousMonth:"Previous month",previousSlide:"Previous slide",previousYear:"Previous year",progress:"Progress",remove:"Remove",removed:s=>`${s} removed`,resize:"Resize",scrolled:"Scrolled",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",search:"Search",seconds:s=>`${s} seconds`,seekBar:"Seek bar",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",selected:"Selected",selectionCleared:"Selection cleared",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:s=>`Slide ${s}`,startDateSelected:"Start date selected",tagsSelected:"Options selected",toggleColorFormat:"Toggle color format",transcriptIsOpen:"Transcript is open",truncatedBreadcrumbs:"Truncated breadcrumbs",unmute:"Unmute"};kr(tn);var O=class extends xr{constructor(t){super(t);this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver(()=>this.setCustomLocalizationFromData()).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){let t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(e){console.error("Error parsing custom-localization attribute:",e)}}term(t,...e){var o;let r=(o=this.instanceTranslations)==null?void 0:o[t];return r?typeof r=="function"?r(...e):r:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations=B(B({},this.instanceTranslations),t)}};function Z(s,i){return new Promise(t=>{function e(r){r.target===s&&(s.removeEventListener(i,e),t())}s.addEventListener(i,e)})}function c(){let s,i="",t=0;for(;t<arguments.length;)(s=arguments[t++])&&typeof s=="string"&&(i&&(i+=" "),i+=s);return i}var It=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0",this.open&&(this.accordion.open=!0),this.accordionObserver=new MutationObserver(t=>{for(let e of t)e.type==="attributes"&&e.attributeName==="open"&&(this.accordion.open?this.show():this.hide())}),this.accordionObserver.observe(this.accordion,{attributes:!0})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.accordionObserver)==null||t.disconnect()}handleSummaryClick(t){t.preventDefault(),this.open?this.hide():this.show()}handleSummaryKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open?this.hide():this.show()),(t.key==="ArrowUp"||t.key==="ArrowLeft")&&(t.preventDefault(),this.hide()),(t.key==="ArrowDown"||t.key==="ArrowRight")&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.accordion.open=!0,this.emit("sd-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.accordion.open=!1;return}await Y(this.body),this.body.hidden=!1;let{keyframes:e,options:r}=q(this,"accordion.show",{dir:this.localize.dir()});await K(this.body,we(e,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented){this.accordion.open=!0,this.open=!0;return}await Y(this.body);let{keyframes:e,options:r}=q(this,"accordion.hide",{dir:this.localize.dir()});await K(this.body,we(e,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.accordion.open=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(this,"sd-after-hide")}render(){return U`<details part="base" class="border-neutral-400"><summary part="header" id="header" class="${c("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-4-1-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 sd-6-4-1-accordion-color-text relative group transition-colors ease-in-out duration-fast hover:bg-neutral-200")}" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${c(!this.open&&"opacity-0","w-1 sd-6-4-1-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${c("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-6-4-1-icon library="_internal" name="chevron-down"></sd-6-4-1-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-6-4-1-icon library="_internal" name="chevron-down"></sd-6-4-1-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`}};It.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
165
|
+
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-block-width:var(--sd-accordion-border-width)}[part=summary-icon]{color:var(--sd-accordion__chevron-color-text)}`],a([v('[part="base"]')],It.prototype,"accordion",2),a([v('[part="header"]')],It.prototype,"header",2),a([v('[part="content"]')],It.prototype,"body",2),a([d({type:Boolean,reflect:!0})],It.prototype,"open",2),a([d({reflect:!0})],It.prototype,"summary",2),a([E("open",{waitUntilFirstUpdate:!0})],It.prototype,"handleOpenChange",1),It=a([k("sd-6-4-1-accordion")],It);R("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var xe=class extends g{constructor(){super(...arguments);this.closeOthers=!1;this.handleAccordionShow=t=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach(e=>{e!==t.target&&e.parentNode===t.target.parentNode&&e.removeAttribute("open")})}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return p`<div part="base"><slot></slot></div>`}};xe.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
166
|
+
:host{display:block}::slotted(sd-6-4-1-accordion:not(:first-of-type)){margin-top:calc(-1 * var(--sd-accordion-border-width))!important}`],a([gi({selector:"sd-6-4-1-accordion"})],xe.prototype,"_accordionsInDefaultSlot",2),a([d({attribute:"close-others",type:Boolean,reflect:!0})],xe.prototype,"closeOthers",2),xe=a([k("sd-6-4-1-accordion-group")],xe);var Ri={};Ao(Ri,{backInDown:()=>fn,backInLeft:()=>gn,backInRight:()=>bn,backInUp:()=>vn,backOutDown:()=>yn,backOutLeft:()=>wn,backOutRight:()=>xn,backOutUp:()=>kn,bounce:()=>en,bounceIn:()=>En,bounceInDown:()=>Cn,bounceInLeft:()=>$n,bounceInRight:()=>Tn,bounceInUp:()=>Ln,bounceOut:()=>zn,bounceOutDown:()=>Mn,bounceOutLeft:()=>Sn,bounceOutRight:()=>Dn,bounceOutUp:()=>An,easings:()=>fs,fadeIn:()=>On,fadeInBottomLeft:()=>_n,fadeInBottomRight:()=>In,fadeInDown:()=>Pn,fadeInDownBig:()=>Hn,fadeInLeft:()=>Vn,fadeInLeftBig:()=>Fn,fadeInRight:()=>Rn,fadeInRightBig:()=>Bn,fadeInTopLeft:()=>Nn,fadeInTopRight:()=>Un,fadeInUp:()=>qn,fadeInUpBig:()=>Kn,fadeOut:()=>jn,fadeOutBottomLeft:()=>Wn,fadeOutBottomRight:()=>Yn,fadeOutDown:()=>Xn,fadeOutDownBig:()=>Zn,fadeOutLeft:()=>Qn,fadeOutLeftBig:()=>Gn,fadeOutRight:()=>Jn,fadeOutRightBig:()=>tl,fadeOutTopLeft:()=>el,fadeOutTopRight:()=>il,fadeOutUp:()=>rl,fadeOutUpBig:()=>sl,flash:()=>rn,flip:()=>al,flipInX:()=>ol,flipInY:()=>nl,flipOutX:()=>ll,flipOutY:()=>dl,headShake:()=>sn,heartBeat:()=>an,hinge:()=>Al,jackInTheBox:()=>Ol,jello:()=>on,lightSpeedInLeft:()=>cl,lightSpeedInRight:()=>hl,lightSpeedOutLeft:()=>ul,lightSpeedOutRight:()=>pl,pulse:()=>nn,rollIn:()=>_l,rollOut:()=>Il,rotateIn:()=>ml,rotateInDownLeft:()=>fl,rotateInDownRight:()=>gl,rotateInUpLeft:()=>bl,rotateInUpRight:()=>vl,rotateOut:()=>yl,rotateOutDownLeft:()=>wl,rotateOutDownRight:()=>xl,rotateOutUpLeft:()=>kl,rotateOutUpRight:()=>El,rubberBand:()=>ln,shake:()=>dn,shakeX:()=>cn,shakeY:()=>hn,slideInDown:()=>Cl,slideInLeft:()=>$l,slideInRight:()=>Tl,slideInUp:()=>Ll,slideOutDown:()=>zl,slideOutLeft:()=>Ml,slideOutRight:()=>Sl,slideOutUp:()=>Dl,swing:()=>un,tada:()=>pn,wobble:()=>mn,zoomIn:()=>Pl,zoomInDown:()=>Hl,zoomInLeft:()=>Vl,zoomInRight:()=>Fl,zoomInUp:()=>Rl,zoomOut:()=>Bl,zoomOutDown:()=>Nl,zoomOutLeft:()=>Ul,zoomOutRight:()=>ql,zoomOutUp:()=>Kl});var en=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}];var rn=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}];var sn=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}];var an=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}];var on=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var nn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var ln=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var dn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var cn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var hn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var un=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}];var pn=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var mn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var fn=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var gn=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var bn=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var vn=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var yn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}];var wn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}];var xn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}];var kn=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}];var En=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var Cn=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var $n=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var Tn=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var Ln=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var zn=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}];var Mn=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}];var Sn=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}];var Dn=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}];var An=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}];var On=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}];var _n=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var In=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Pn=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Hn=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Vn=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Fn=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Rn=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Bn=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Nn=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Un=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var qn=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Kn=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var jn=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}];var Wn=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}];var Yn=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}];var Xn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}];var Zn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}];var Qn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}];var Gn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}];var Jn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}];var tl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}];var el=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}];var il=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}];var rl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}];var sl=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}];var al=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
167
167
|
rotate3d(0, 1, 0, -190deg)`,easing:"ease-out"},{offset:.5,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
168
168
|
rotate3d(0, 1, 0, -170deg)`,easing:"ease-in"},{offset:.8,transform:`perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)
|
|
169
169
|
rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}];var ol=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}];var nl=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}];var ll=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}];var dl=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}];var cl=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var hl=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var ul=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}];var pl=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}];var ml=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var fl=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var gl=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var bl=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var vl=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var yl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}];var wl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}];var xl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}];var kl=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}];var El=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}];var Cl=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var $l=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Tl=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Ll=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var zl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}];var Ml=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}];var Sl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}];var Dl=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}];var Al=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}];var Ol=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}];var _l=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Il=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}];var Pl=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}];var Hl=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Vl=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Fl=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Rl=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Bl=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}];var Nl=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Ul=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}];var ql=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}];var Kl=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var fs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};var at=class extends g{constructor(){super(...arguments);this.hasStarted=!1;this.name="none";this.play=!1;this.delay=0;this.direction="normal";this.duration=1e3;this.easing="linear";this.endDelay=0;this.fill="auto";this.iterations=1/0;this.iterationStart=0;this.playbackRate=1}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation(),this.handleAnimationCancel=this.handleAnimationCancel.bind(this),this.handleAnimationFinish=this.handleAnimationFinish.bind(this)}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleAnimationFinish(){this.play=!1,this.hasStarted=!1,this.emit("sd-finish")}handleAnimationCancel(){this.play=!1,this.hasStarted=!1,this.emit("sd-cancel")}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var n,l;let t=(n=Ri.easings[this.easing])!=null?n:this.easing,e=(l=this.keyframes)!=null?l:Ri[this.name],o=(await this.defaultSlot).assignedElements()[0];return!o||!e?!1:(this.destroyAnimation(),this.animation=o.animate(e,{delay:this.delay,direction:this.direction,duration:this.duration,easing:t,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sd-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sd-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return p`<slot @slotchange="${this.handleSlotChange}"></slot>`}};at.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
170
|
-
:host{display:contents}`],a([ma("slot")],at.prototype,"defaultSlot",2),a([d()],at.prototype,"name",2),a([d({type:Boolean,reflect:!0})],at.prototype,"play",2),a([d({type:Number})],at.prototype,"delay",2),a([d()],at.prototype,"direction",2),a([d({type:Number})],at.prototype,"duration",2),a([d()],at.prototype,"easing",2),a([d({attribute:"end-delay",type:Number})],at.prototype,"endDelay",2),a([d()],at.prototype,"fill",2),a([d({type:Number})],at.prototype,"iterations",2),a([d({attribute:"iteration-start",type:Number})],at.prototype,"iterationStart",2),a([d({attribute:!1})],at.prototype,"keyframes",2),a([d({attribute:"playback-rate",type:Number})],at.prototype,"playbackRate",2),a([E(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],at.prototype,"handleAnimationChange",1),a([E("play")],at.prototype,"handlePlayChange",1),a([E("playbackRate")],at.prototype,"handlePlaybackRateChange",1),at=a([k("sd-6-
|
|
171
|
-
:host{display:inline-block;width:1em;height:1em}.dot:nth-child(2){animation-delay:.1s}.dot:nth-child(1){animation-delay:.2s}`],a([d({type:String,reflect:!0})],Pe.prototype,"color",2),Pe=a([k("sd-6-
|
|
170
|
+
:host{display:contents}`],a([ma("slot")],at.prototype,"defaultSlot",2),a([d()],at.prototype,"name",2),a([d({type:Boolean,reflect:!0})],at.prototype,"play",2),a([d({type:Number})],at.prototype,"delay",2),a([d()],at.prototype,"direction",2),a([d({type:Number})],at.prototype,"duration",2),a([d()],at.prototype,"easing",2),a([d({attribute:"end-delay",type:Number})],at.prototype,"endDelay",2),a([d()],at.prototype,"fill",2),a([d({type:Number})],at.prototype,"iterations",2),a([d({attribute:"iteration-start",type:Number})],at.prototype,"iterationStart",2),a([d({attribute:!1})],at.prototype,"keyframes",2),a([d({attribute:"playback-rate",type:Number})],at.prototype,"playbackRate",2),a([E(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],at.prototype,"handleAnimationChange",1),a([E("play")],at.prototype,"handlePlayChange",1),a([E("playbackRate")],at.prototype,"handlePlaybackRateChange",1),at=a([k("sd-6-4-1-animation")],at);var Pe=class extends g{constructor(){super(...arguments);this.color="currentColor";this.localize=new O(this)}render(){return p`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" role="progressbar" aria-label="${this.localize.term("loading")}"><circle class="${c("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="20" cy="12" r="2" fill="currentColor"/><circle class="${c("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="12" cy="12" r="2" fill="currentColor"/><circle class="${c("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="4" cy="12" r="2" fill="currentColor"/></svg>`}};Pe.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
171
|
+
:host{display:inline-block;width:1em;height:1em}.dot:nth-child(2){animation-delay:.1s}.dot:nth-child(1){animation-delay:.2s}`],a([d({type:String,reflect:!0})],Pe.prototype,"color",2),Pe=a([k("sd-6-4-1-loader")],Pe);var Bi=new WeakMap,Ni=new WeakMap,ka=new WeakMap,Er=new WeakMap,dt=class{constructor(i,t){this.handleFormData=i=>{let t=this.options.disabled(this.host),e=this.options.name(this.host),r=this.options.value(this.host),o=this.host.tagName.toLowerCase()==="sd-6-4-1-button";!t&&!o&&typeof e=="string"&&e.length>0&&typeof r!="undefined"&&(Array.isArray(r)?r.forEach(n=>{i.formData.append(e,n.toString())}):i.formData.append(e,r.toString()))};this.handleFormSubmit=i=>{var r,o;let t=this.options.disabled(this.host),e=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((r=Bi.get(this.form))==null||r.forEach(n=>{this.setUserInteracted(n,!0)})),this.form&&!this.form.noValidate&&!t&&!e(this.host)){i.preventDefault(),i.stopImmediatePropagation();let n=(o=this.form)==null?void 0:o.querySelectorAll("[data-invalid]");Array.from(n).filter(h=>h.tagName.toLowerCase()==="sd-6-4-1-radio-group").forEach(h=>{var u,m;(m=(u=h.shadowRoot)==null?void 0:u.querySelector("input"))==null||m.dispatchEvent(new Event("invalid"))}),n!=null&&n.length&&n[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Er.set(this.host,[])};this.handleInteraction=i=>{let t=Er.get(this.host);t.includes(i.type)||t.push(i.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=i).addController(this),this.options=B({form:e=>{if(e.hasAttribute("form")&&e.getAttribute("form")!==""){let r=e.getRootNode(),o=e.getAttribute("form");if(o)return r.getElementById(o)}return e.closest("form")},name:e=>e.name,value:e=>e.value,defaultValue:e=>e.defaultValue,disabled:e=>{var r;return(r=e.disabled)!=null?r:!1},reportValidity:e=>typeof e.reportValidity=="function"?e.reportValidity():!0,setValue:(e,r)=>e.value=r,assumeInteractionOn:["sd-6-4-1-input"]},t)}hostConnected(){let i=this.options.form(this.host);i&&this.attachForm(i),Er.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Er.delete(this.host),this.options.assumeInteractionOn.forEach(i=>{this.host.removeEventListener(i,this.handleInteraction)})}hostUpdated(){var t;let i=this.options.form(this.host);i||this.detachForm(),i&&this.form!==i&&(this.detachForm(),this.attachForm(i)),this.host.hasUpdated&&(this.setValidity((t=this.host)==null?void 0:t.validity.valid),this.updateValidityStyle())}attachForm(i){i?(this.form=i,Bi.has(this.form)?Bi.get(this.form).add(this.host):Bi.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Ni.has(this.form)||(Ni.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var i;this.form&&((i=Bi.get(this.form))==null||i.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Ni.has(this.form)&&(this.form.reportValidity=Ni.get(this.form),Ni.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let i=this.form.querySelectorAll("*");for(let t of i)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0}setUserInteracted(i,t){ka.set(i,t),i.requestUpdate()}doAction(i,t){if(this.form){let e=document.createElement("button");e.type=i,e.style.position="absolute",e.style.width="0",e.style.height="0",e.style.clipPath="inset(50%)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",t&&(e.name=t.name,e.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{t.hasAttribute(r)&&e.setAttribute(r,t.getAttribute(r))})),this.form.append(e),e.click(),e.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var i;return(i=this.form)!=null?i:null}renderInvalidMessage(i){let t={sm:"text-sm",md:"text-base",lg:"text-base"}[i];return p`<div id="invalid-message" class="text-error text-left ${t}" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(i){this.doAction("reset",i)}submit(i){this.doAction("submit",i)}setValidity(i){var o;let t=this.host,e=!!ka.get(t),r=!!t.required;(o=this.form)!=null&&o.noValidate?(t.removeAttribute("data-required"),t.removeAttribute("data-optional"),t.removeAttribute("data-invalid"),t.removeAttribute("data-valid"),t.removeAttribute("data-user-invalid"),t.removeAttribute("data-user-valid"),t.removeAttribute("aria-invalid")):(t.toggleAttribute("data-required",r),t.toggleAttribute("data-optional",!r),t.toggleAttribute("data-invalid",!i),t.toggleAttribute("data-valid",i),t.toggleAttribute("data-user-invalid",!i&&e),t.toggleAttribute("data-user-valid",i&&e),t.setAttribute("aria-invalid",(!i).toString()))}updateValidity(){let i=this.host;this.setValidity(i==null?void 0:i.validity.valid)}emitInvalidEvent(i){i==null||i.preventDefault();let t=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});i||t.preventDefault()}},yi=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Ea=Object.freeze(vt(B({},yi),{valid:!1,valueMissing:!0})),Ca=Object.freeze(vt(B({},yi),{valid:!1,customError:!0}));var P=class{constructor(i,...t){this.slotNames=[];(this.host=i).addController(this),this.slotNames=t,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="sd-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)!==null}test(i){return i==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(i)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(i){let t=i.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()}};function $a(s){if(!s)return"";let i=s.assignedNodes({flatten:!0}),t="";return[...i].forEach(e=>{e.nodeType===Node.TEXT_NODE&&(t+=e.textContent)}),t}var C=s=>s!=null?s:W;var Q=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this,{form:t=>{if(t.hasAttribute("form")){let e=t.getRootNode(),r=t.getAttribute("form");return e.getElementById(r)}return t.closest("form")}});this.hasSlotController=new P(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:yi}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){let t=this.isLink(),e=t?et`a`:et`button`,r={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0},o=this.variant==="secondary";return U`<${e} part="base" class="${c(`group relative z-10 font-md no-underline
|
|
172
172
|
w-full align-middle inline-flex items-stretch justify-center
|
|
173
173
|
transition-colors duration-fast ease-in-out
|
|
174
|
-
select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed",r["icon-only"]&&"px-0 min-h-varspacing w-varspacing",{sm:`sd-6-
|
|
175
|
-
disabled:sd-6-
|
|
176
|
-
disabled:bg-neutral-500 disabled:text-white`,secondary:this.inverted?`border ${this.visuallyDisabled?"text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600":"text-white sd-6-
|
|
177
|
-
disabled:sd-6-
|
|
178
|
-
disabled:sd-6-
|
|
179
|
-
disabled:sd-6-
|
|
180
|
-
disabled:sd-6-
|
|
181
|
-
${this.inverted?"sd-6-
|
|
182
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-3-0-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);--tw-translate-x:calc(1/2 * 100%)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-6-3-0-icon),sd-6-3-0-loader{font-size:calc(var(--tw-varspacing)/ 2)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}`],a([v("a, button")],Q.prototype,"button",2),a([gi({selector:"sd-6-3-0-icon"})],Q.prototype,"_iconsInDefaultSlot",2),a([L()],Q.prototype,"invalid",2),a([d({type:String,reflect:!0})],Q.prototype,"title",2),a([d({type:String,reflect:!0})],Q.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"inverted",2),a([d({type:String,reflect:!0})],Q.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"loading",2),a([d({type:String,reflect:!0})],Q.prototype,"type",2),a([d({type:String,reflect:!0})],Q.prototype,"name",2),a([d()],Q.prototype,"value",2),a([d({type:String,reflect:!0})],Q.prototype,"href",2),a([d({type:String,reflect:!0})],Q.prototype,"target",2),a([d({reflect:!0})],Q.prototype,"download",2),a([d({reflect:!0})],Q.prototype,"form",2),a([d({attribute:"formaction"})],Q.prototype,"formAction",2),a([d({attribute:"formenctype"})],Q.prototype,"formEnctype",2),a([d({attribute:"formmethod"})],Q.prototype,"formMethod",2),a([d({attribute:"formnovalidate",type:Boolean})],Q.prototype,"formNoValidate",2),a([d({attribute:"formtarget"})],Q.prototype,"formTarget",2),a([E("disabled",{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),Q=a([k("sd-6-3-0-button")],Q);function ii(s=document.activeElement){if(s!=null&&s.shadowRoot){let i=s.shadowRoot.activeElement;if(i)return ii(i)}return s}function Ta(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var gs=new Set;function jl(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function ri(s){if(gs.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=jl();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function si(s){gs.delete(s),gs.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function ee(s,i,t="vertical",e="smooth"){let r=Ta(s,i),o=r.top+i.scrollTop,n=r.left+i.scrollLeft,l=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,m=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<l?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(o<u?i.scrollTo({top:o,behavior:e}):o+s.clientHeight>m&&i.scrollTo({top:o-i.offsetHeight+s.clientHeight,behavior:e}))}function wi(s){return s.charAt(0).toUpperCase()+s.slice(1)}function bs(s){return s.replace(/-./g,i=>i[1].toUpperCase())}function La(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 Cr(s){var o,n;let i=[];function t(l){l instanceof HTMLElement&&(i.push(l),l.shadowRoot!==null&&l.shadowRoot.mode==="open"&&t(l.shadowRoot)),[...l.children].forEach(h=>t(h))}t(s);let e=(o=i.find(l=>La(l)))!=null?o:null,r=(n=i.reverse().find(l=>La(l)))!=null?n:null;return{start:e,end:r}}var Ui=[],ai=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(){Ui.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Ui=Ui.filter(i=>i!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Ui[Ui.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){let{start:i,end:t}=Cr(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 xt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"footer");this.localize=new O(this);this.modal=new ai(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(),ri(this)))}disconnectedCallback(){super.disconnectedCallback(),si(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=q(this,"drawer.denyClose",{dir:this.localize.dir()});K(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=ii(),this.contained||(this.modal.activate(),ri(this));let r=this.querySelector("[autofocus]");r&&r.removeAttribute("autofocus"),await Promise.all([Y(this.drawer),Y(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert");let o=q(this,`drawer.show${wi(this.placement)}`,{dir:this.localize.dir()}),n=q(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([K(this.panel,o.keyframes,o.options),K(this.overlay,n.keyframes,n.options)]),t==null||t.setAttribute("aria-controls","drawer"),t==null||t.setAttribute("aria-expanded","true"),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()}),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),si(this)),await Promise.all([Y(this.drawer),Y(this.overlay)]);let r=q(this,`drawer.hide${wi(this.placement)}`,{dir:this.localize.dir()}),o=q(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([K(this.overlay,o.keyframes,o.options).then(()=>{this.overlay.hidden=!0}),K(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(),ri(this)),this.open&&this.contained&&(this.modal.deactivate(),si(this))}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(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 overlay-color-background pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}"></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-[var(--width)] h-full",start:"top-0 end-auto bottom-auto start-0 w-[var(--width)] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${this.noHeader?p`<sd-6-3-0-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-6-3-0-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-6-3-0-icon></sd-6-3-0-button>`:p`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><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 ms-4 absolute top-2 end-2"><sd-6-3-0-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-6-3-0-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-6-3-0-icon></sd-6-3-0-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" 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>`}};xt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
183
|
-
:host{--width:25rem;display:contents}:host([contained]){z-index:initial}: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:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}:host [part=panel]{outline:1px solid var(--sd-panel-color-border,transparent)}`],a([v("[part=base]")],xt.prototype,"drawer",2),a([v("[part=panel]")],xt.prototype,"panel",2),a([v("[part=overlay]")],xt.prototype,"overlay",2),a([v("[part=close-button]")],xt.prototype,"closeButton",2),a([d({type:Boolean,reflect:!0})],xt.prototype,"open",2),a([d({type:String,attribute:"label",reflect:!0})],xt.prototype,"label",2),a([d({type:String,reflect:!0})],xt.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],xt.prototype,"contained",2),a([d({attribute:"no-header",type:Boolean,reflect:!0})],xt.prototype,"noHeader",2),a([E("open",{waitUntilFirstUpdate:!0})],xt.prototype,"handleOpenChange",1),a([E("contained",{waitUntilFirstUpdate:!0})],xt.prototype,"handleNoModalChange",1),xt=a([k("sd-6-3-0-drawer")],xt);R("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});var He=class{constructor(i){this.fixedEnd=!0;this.fixedStart=!0;this.gradient=!1;this.outline=!1;this.map=(i,t,e,r,o)=>(i-t)*(o-r)/(e-t)+r;this.damp=(i,t,e)=>2*(1-t/i)*(t/i)*e;this.canvas=i.canvas,this.frequency=i.frequency,this.phase=i.phase,this.amplitude=i.amplitude,this.color=i.color,this.shift=i.shift,this.lineWidth=2,this.damping=i.damping,this.context=this.canvas.getContext("2d"),this.paused=!0,this.playbackSpeed=1,this.origin={x:0,y:this.canvas.height}}drawPoint(i,t,e){if(!this.context)return;let r=this.lineWidth/2;if(this.context.beginPath(),this.outline&&(this.context.fillStyle=e,this.context.lineWidth=2,this.context.arc(i,t,r,0,2*Math.PI),this.context.fill()),this.gradient){let o=this.context.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(.1,e),o.addColorStop(1,"transparent"),this.context.fillStyle=o}else this.context.fillStyle=e;this.context.fillRect(i-r,t-r,r,this.canvas.height-t+r)}buildSine(i,t,e,r,o){for(let n=this.origin.x,l=this.origin.x+i;n<l;n+=1){let h=r*Math.sin(o*(n+t));this.fixedStart&&this.fixedEnd?this.drawPoint(n,this.origin.y+this.damp(l,n,this.damping)*h,e):this.fixedStart?this.drawPoint(n,this.origin.y+this.map(n,this.origin.x,l,0,this.damping)*h,e):this.fixedEnd?this.drawPoint(n,this.origin.y+(this.damping-this.map(n,this.origin.x,l,0,this.damping))*h,e):this.drawPoint(n,this.origin.y+h,e)}}redraw(){this.phase+=this.shift*(this.paused?1:2*this.playbackSpeed),this.buildSine(this.canvas.width,this.phase,this.color,this.amplitude,this.frequency)}setPlay(){this.paused=!1}setPause(){this.paused=!0}setPlaybackSpeed(i){this.playbackSpeed=i}};var ct=class extends g{constructor(){super();this.localize=new O(this);this.hasSlotController=new P(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.progressSlider.tooltipFormatter=t=>this.localize.term("seconds",Number(t).toFixed(0)),this.animated&&this.initAnimation())}updated(t){if(t.has("animated")){let e=t.get("animated");!e&&this.animated?this.initAnimation():e&&!this.animated&&this.clear()}}get audioElement(){let t=this.shadowRoot.querySelector("slot");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let t=this.audioElement.currentTime;this.currentTime=this.formatTime(t),this.progress=t,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.togglePlaybackSpeed())}formatTime(t){let e=Math.floor(t/60).toString().padStart(2,"0"),r=Math.floor(t%60).toString().padStart(2,"0");return`${e}:${r}`}handleAudioProgress(){if(!this.audioElement)return;let t=Number(this.progressSlider.value);this.audioElement.currentTime=t,this.progress=t,this.currentTime=this.formatTime(t)}handleAudioProgressKeydown(t){t.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),t.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}handleThumbGrab(){var t;(t=this.audioElement)==null||t.pause()}handleThumbRelease(){var t;this.isPlaying&&((t=this.audioElement)==null||t.play())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(t){(t.key==="Enter"||t.key===" ")&&this.showTranscript()}rgbToHex(t){let e=t.match(/\d+/g);if((e==null?void 0:e.length)===3){let r=parseInt(e[0]),o=parseInt(e[1]),n=parseInt(e[2]),l=u=>u.toString(16).padStart(2,"0");return`#${l(r)}${l(o)}${l(n)}`.toUpperCase()}return null}onThemeChange(){this.clear(),setTimeout(this.initAnimation.bind(this),this.token("--sd-duration-fast",150))}initAnimation(){var l;let t=(l=this.canvas)==null?void 0:l.getContext("2d");if(!t)return;this.context=t;let e=this.audioPlayerContainer.querySelector(".playback-speed"),o=window.getComputedStyle(e).color,n=this.inverted?"#FFFFFF33":this.rgbToHex(o)+"33";this.waveList=[new He({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(t=>{t.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(t=>{t.redraw()}),await new Promise(t=>{setTimeout(t,1e3/30)}),await this.draw())}render(){let t=p`<div class="${c("controls grid grid-cols-3 justify-items-center items-center",this.reversedLayout?"mt-2":"mb-2",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full")}" part="audio-controls"><button class="${c("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-3-0-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="mb-4">${this.isPlaying?p`<slot name="pause-icon"><sd-6-3-0-icon class="text-xl" name="pause" library="_internal"></sd-6-3-0-icon></slot>`:p`<slot name="play-icon"><sd-6-3-0-icon class="text-xl" name="start" library="_internal"></sd-6-3-0-icon></slot>`}</sd-6-3-0-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript")?p`<button class="${c("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-6-3-0-icon class="w-6 h-6" name="transcript" library="_internal"></sd-6-3-0-icon></button>`:null} <button class="${c("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-6-3-0-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-6-3-0-icon></button></div></div>`,e=p`<div class="${c("w-full flex justify-between",this.reversedLayout?"mb-0.5":"mt-0.5",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 !mb-4")}" part="timestamps"><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"sd-6-3-0-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"sd-6-3-0-audio__timestamp-color-text")}">${this.duration}</div></div>`;return p`<div class="${c("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?t:null}<div class="relative">${this.animated&&!this.reversedLayout?p`${t}`:null} ${this.animated?p`<canvas class="w-full h-16 -mb-2"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?e:null}<sd-6-3-0-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-6-3-0-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-6-3-0-range></div>${this.hasSlotController.test("transcript")?p`<sd-6-3-0-drawer><slot name="transcript"></slot></sd-6-3-0-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?e:null}</div><sd-6-3-0-theme-listener></sd-6-3-0-theme-listener>`}};ct.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
184
|
-
sd-6-
|
|
185
|
-
:host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],a([d({type:String,reflect:!0})],ce.prototype,"size",2),a([d({type:String,reflect:!0})],ce.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],ce.prototype,"inverted",2),ce=a([k("sd-6-
|
|
174
|
+
select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed",r["icon-only"]&&"px-0 min-h-varspacing w-varspacing",{sm:`sd-6-4-1-button--size-sm-font-size sd-6-4-1-button-font-weight sd-6-4-1-button--size-sm-border-radius varspacing-8 ${o?"py-[0.281rem] px-[0.938rem]":"sd-6-4-1-button--size-sm-padding-block px-4"}`,md:`sd-6-4-1-button--size-md-font-size sd-6-4-1-button-font-weight sd-6-4-1-button--size-md-border-radius varspacing-10 ${o?"py-[0.438rem] px-[0.938rem]":"sd-6-4-1-button--size-md-padding-block px-4"}`,lg:`sd-6-4-1-button--size-lg-font-size sd-6-4-1-button-font-weight sd-6-4-1-button--size-lg-border-radius varspacing-12 ${o?"py-[0.688rem] px-[0.938rem]":"sd-6-4-1-button--size-lg-padding-block px-4"}`}[this.size],{primary:this.inverted?`${this.visuallyDisabled?"bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"sd-6-4-1-button--primary--inverted--default-color-text sd-6-4-1-button--primary--inverted--default-color-background border-white hover:sd-6-4-1-button--primary--inverted--hover-color-text active:sd-6-4-1-button--primary--inverted--active-color-text active:sd-6-4-1-button--primary--inverted--active-color-background"}
|
|
175
|
+
disabled:sd-6-4-1-button--inverted--disabled-color-background disabled:sd-6-4-1-button--inverted--disabled-color-border disabled:text-white`:`${this.visuallyDisabled?"bg-neutral-500 border-neutral-500 hover:bg-neutral-500 text-white":"sd-6-4-1-button--primary--default-color-background border-transparent sd-6-4-1-button--primary--default-color-text hover:text-primary-100 active:sd-6-4-1-button--primary--active-color-text"}
|
|
176
|
+
disabled:bg-neutral-500 disabled:text-white`,secondary:this.inverted?`border ${this.visuallyDisabled?"text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600":"text-white sd-6-4-1-button--secondary--inverted--color-border hover:sd-6-4-1-button--secondary--inverted--hover-color-text hover:border-primary-100 active:text-primary-200"}
|
|
177
|
+
disabled:sd-6-4-1-button--inverted--disabled-color-border disabled:sd-6-4-1-button--inverted--disabled-color-text`:`border ${this.visuallyDisabled?"sd-6-4-1-button--secondary--disabled-color-text border-neutral-500 hover:text-neutral-500 hover:border-neutral-500 active:text-neutral-500 active:border-neutral-500":"sd-6-4-1-button--secondary--default-color-text border-primary hover:text-primary-500 hover:border-primary-500 active:text-primary-800 active:border-primary-800"}
|
|
178
|
+
disabled:sd-6-4-1-button--secondary--disabled-color-text disabled:border-neutral-500`,tertiary:this.inverted?`border-transparent ${this.visuallyDisabled?"text-neutral-600 hover:text-neutral-600 active:text-neutral-600":"text-white hover:sd-6-4-1-button--tertiary--inverted--hover-color-text hover:sd-6-4-1-button--tertiary--inverted--hover-color-background active:text-primary-200"}
|
|
179
|
+
disabled:sd-6-4-1-button--inverted--disabled-color-text`:`border-transparent ${this.visuallyDisabled?"sd-6-4-1-button--tertiary--disabled-color-text hover:text-neutral-500 active:text-neutral-500":"sd-6-4-1-button--tertiary--default-color-text hover:text-primary-500 active:text-primary-800"}
|
|
180
|
+
disabled:sd-6-4-1-button--tertiary--disabled-color-text`,cta:`${this.visuallyDisabled?"bg-neutral-500 border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"bg-accent border-transparent"}
|
|
181
|
+
${this.inverted?"sd-6-4-1-button--cta--inverted--default-color-background sd-6-4-1-button--cta--inverted--default-color-text hover:sd-6-4-1-button--cta--inverted--hover-color-text active:sd-6-4-1-button--cta--inverted--active-color-text disabled:sd-6-4-1-button--inverted--disabled-color-background disabled:sd-6-4-1-button--inverted--disabled-color-border disabled:text-white":"text-white disabled:bg-neutral-500 disabled:border-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}"><div part="motion-wrapper" class="${c("absolute inset-0 -z-10 overflow-hidden pointer-events-none ",(this.disabled||this.visuallyDisabled)&&"hidden",{sm:"sd-6-4-1-button--size-sm-border-radius",md:"sd-6-4-1-button--size-md-border-radius",lg:"sd-6-4-1-button--size-lg-border-radius"}[this.size])}"><div class="absolute inset-0 w-full h-full transition-all duration-fast translate-y-full group-hover:translate-y-0 group-hover:mt-[-22%] mt-[11%]"><div class="${c("absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",{primary:this.inverted?"sd-6-4-1-button--primary--inverted--hover-color-background group-active:bg-primary-200":"sd-6-4-1-button--primary--hover-color-background group-active:bg-primary-800",secondary:this.inverted?"bg-primary-500 group-active:sd-6-4-1-button--secondary--inverted--active-color-background":"sd-6-4-1-button--secondary--hover-color-background group-active:sd-6-4-1-button--secondary--active-color-background",tertiary:this.inverted?"bg-primary-500 group-active:sd-6-4-1-button--tertiary--inverted--active-color-background":"sd-6-4-1-button--tertiary--hover-color-background group-active:sd-6-4-1-button--tertiary--active-color-background",cta:this.inverted?"sd-6-4-1-button--cta--inverted--hover-color-background group-active:sd-6-4-1-button--cta--inverted--active-color-background":"bg-accent-550 group-active:bg-accent-700"}[this.variant])}"></div><div class="${c("absolute w-full h-full mt-[22%]",{primary:this.inverted?"sd-6-4-1-button--primary--inverted--hover-color-background group-active:bg-primary-200":"sd-6-4-1-button--primary--hover-color-background group-active:bg-primary-800",secondary:this.inverted?"bg-primary-500 group-active:sd-6-4-1-button--secondary--inverted--active-color-background":"sd-6-4-1-button--secondary--hover-color-background group-active:sd-6-4-1-button--secondary--active-color-background",tertiary:this.inverted?"bg-primary-500 group-active:sd-6-4-1-button--tertiary--inverted--active-color-background":"sd-6-4-1-button--tertiary--hover-color-background group-active:sd-6-4-1-button--tertiary--active-color-background",cta:this.inverted?"sd-6-4-1-button--cta--inverted--hover-color-background group-active:sd-6-4-1-button--cta--inverted--active-color-background":"bg-accent-550 group-active:bg-accent-700"}[this.variant])}"></div></div></div><slot name="icon-left" part="icon-left" class="${c("flex flex-auto items-center justify-end 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("inline-flex items-center justify-center",r["icon-only"]&&"pointer-events-none",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?U`<sd-6-4-1-loader class="${c("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-6-4-1-loader>`:""}</${e}>`}};Q.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
182
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-4-1-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);--tw-translate-x:calc(1/2 * 100%)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-6-4-1-icon),sd-6-4-1-loader{font-size:calc(var(--tw-varspacing)/ 2)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}`],a([v("a, button")],Q.prototype,"button",2),a([gi({selector:"sd-6-4-1-icon"})],Q.prototype,"_iconsInDefaultSlot",2),a([L()],Q.prototype,"invalid",2),a([d({type:String,reflect:!0})],Q.prototype,"title",2),a([d({type:String,reflect:!0})],Q.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"inverted",2),a([d({type:String,reflect:!0})],Q.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"loading",2),a([d({type:String,reflect:!0})],Q.prototype,"type",2),a([d({type:String,reflect:!0})],Q.prototype,"name",2),a([d()],Q.prototype,"value",2),a([d({type:String,reflect:!0})],Q.prototype,"href",2),a([d({type:String,reflect:!0})],Q.prototype,"target",2),a([d({reflect:!0})],Q.prototype,"download",2),a([d({reflect:!0})],Q.prototype,"form",2),a([d({attribute:"formaction"})],Q.prototype,"formAction",2),a([d({attribute:"formenctype"})],Q.prototype,"formEnctype",2),a([d({attribute:"formmethod"})],Q.prototype,"formMethod",2),a([d({attribute:"formnovalidate",type:Boolean})],Q.prototype,"formNoValidate",2),a([d({attribute:"formtarget"})],Q.prototype,"formTarget",2),a([E("disabled",{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),Q=a([k("sd-6-4-1-button")],Q);function ii(s=document.activeElement){if(s!=null&&s.shadowRoot){let i=s.shadowRoot.activeElement;if(i)return ii(i)}return s}function Ta(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var gs=new Set;function jl(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function ri(s){if(gs.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=jl();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function si(s){gs.delete(s),gs.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function ee(s,i,t="vertical",e="smooth"){let r=Ta(s,i),o=r.top+i.scrollTop,n=r.left+i.scrollLeft,l=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,m=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<l?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(o<u?i.scrollTo({top:o,behavior:e}):o+s.clientHeight>m&&i.scrollTo({top:o-i.offsetHeight+s.clientHeight,behavior:e}))}function wi(s){return s.charAt(0).toUpperCase()+s.slice(1)}function bs(s){return s.replace(/-./g,i=>i[1].toUpperCase())}function La(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 Cr(s){var o,n;let i=[];function t(l){l instanceof HTMLElement&&(i.push(l),l.shadowRoot!==null&&l.shadowRoot.mode==="open"&&t(l.shadowRoot)),[...l.children].forEach(h=>t(h))}t(s);let e=(o=i.find(l=>La(l)))!=null?o:null,r=(n=i.reverse().find(l=>La(l)))!=null?n:null;return{start:e,end:r}}var Ui=[],ai=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(){Ui.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Ui=Ui.filter(i=>i!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Ui[Ui.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){let{start:i,end:t}=Cr(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 xt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"footer");this.localize=new O(this);this.modal=new ai(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(),ri(this)))}disconnectedCallback(){super.disconnectedCallback(),si(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=q(this,"drawer.denyClose",{dir:this.localize.dir()});K(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=ii(),this.contained||(this.modal.activate(),ri(this));let r=this.querySelector("[autofocus]");r&&r.removeAttribute("autofocus"),await Promise.all([Y(this.drawer),Y(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert");let o=q(this,`drawer.show${wi(this.placement)}`,{dir:this.localize.dir()}),n=q(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([K(this.panel,o.keyframes,o.options),K(this.overlay,n.keyframes,n.options)]),t==null||t.setAttribute("aria-controls","drawer"),t==null||t.setAttribute("aria-expanded","true"),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()}),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),si(this)),await Promise.all([Y(this.drawer),Y(this.overlay)]);let r=q(this,`drawer.hide${wi(this.placement)}`,{dir:this.localize.dir()}),o=q(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([K(this.overlay,o.keyframes,o.options).then(()=>{this.overlay.hidden=!0}),K(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(),ri(this)),this.open&&this.contained&&(this.modal.deactivate(),si(this))}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(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 overlay-color-background pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}"></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-[var(--width)] h-full",start:"top-0 end-auto bottom-auto start-0 w-[var(--width)] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${this.noHeader?p`<sd-6-4-1-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-6-4-1-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-6-4-1-icon></sd-6-4-1-button>`:p`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><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 ms-4 absolute top-2 end-2"><sd-6-4-1-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-6-4-1-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-6-4-1-icon></sd-6-4-1-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" 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>`}};xt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
183
|
+
:host{--width:25rem;display:contents}:host([contained]){z-index:initial}: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:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}:host [part=panel]{outline:1px solid var(--sd-panel-color-border,transparent)}`],a([v("[part=base]")],xt.prototype,"drawer",2),a([v("[part=panel]")],xt.prototype,"panel",2),a([v("[part=overlay]")],xt.prototype,"overlay",2),a([v("[part=close-button]")],xt.prototype,"closeButton",2),a([d({type:Boolean,reflect:!0})],xt.prototype,"open",2),a([d({type:String,attribute:"label",reflect:!0})],xt.prototype,"label",2),a([d({type:String,reflect:!0})],xt.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],xt.prototype,"contained",2),a([d({attribute:"no-header",type:Boolean,reflect:!0})],xt.prototype,"noHeader",2),a([E("open",{waitUntilFirstUpdate:!0})],xt.prototype,"handleOpenChange",1),a([E("contained",{waitUntilFirstUpdate:!0})],xt.prototype,"handleNoModalChange",1),xt=a([k("sd-6-4-1-drawer")],xt);R("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});var He=class{constructor(i){this.fixedEnd=!0;this.fixedStart=!0;this.gradient=!1;this.outline=!1;this.map=(i,t,e,r,o)=>(i-t)*(o-r)/(e-t)+r;this.damp=(i,t,e)=>2*(1-t/i)*(t/i)*e;this.canvas=i.canvas,this.frequency=i.frequency,this.phase=i.phase,this.amplitude=i.amplitude,this.color=i.color,this.shift=i.shift,this.lineWidth=2,this.damping=i.damping,this.context=this.canvas.getContext("2d"),this.paused=!0,this.playbackSpeed=1,this.origin={x:0,y:this.canvas.height}}drawPoint(i,t,e){if(!this.context)return;let r=this.lineWidth/2;if(this.context.beginPath(),this.outline&&(this.context.fillStyle=e,this.context.lineWidth=2,this.context.arc(i,t,r,0,2*Math.PI),this.context.fill()),this.gradient){let o=this.context.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(.1,e),o.addColorStop(1,"transparent"),this.context.fillStyle=o}else this.context.fillStyle=e;this.context.fillRect(i-r,t-r,r,this.canvas.height-t+r)}buildSine(i,t,e,r,o){for(let n=this.origin.x,l=this.origin.x+i;n<l;n+=1){let h=r*Math.sin(o*(n+t));this.fixedStart&&this.fixedEnd?this.drawPoint(n,this.origin.y+this.damp(l,n,this.damping)*h,e):this.fixedStart?this.drawPoint(n,this.origin.y+this.map(n,this.origin.x,l,0,this.damping)*h,e):this.fixedEnd?this.drawPoint(n,this.origin.y+(this.damping-this.map(n,this.origin.x,l,0,this.damping))*h,e):this.drawPoint(n,this.origin.y+h,e)}}redraw(){this.phase+=this.shift*(this.paused?1:2*this.playbackSpeed),this.buildSine(this.canvas.width,this.phase,this.color,this.amplitude,this.frequency)}setPlay(){this.paused=!1}setPause(){this.paused=!0}setPlaybackSpeed(i){this.playbackSpeed=i}};var ct=class extends g{constructor(){super();this.localize=new O(this);this.hasSlotController=new P(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.progressSlider.tooltipFormatter=t=>this.localize.term("seconds",Number(t).toFixed(0)),this.animated&&this.initAnimation())}updated(t){if(t.has("animated")){let e=t.get("animated");!e&&this.animated?this.initAnimation():e&&!this.animated&&this.clear()}}get audioElement(){let t=this.shadowRoot.querySelector("slot");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let t=this.audioElement.currentTime;this.currentTime=this.formatTime(t),this.progress=t,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.togglePlaybackSpeed())}formatTime(t){let e=Math.floor(t/60).toString().padStart(2,"0"),r=Math.floor(t%60).toString().padStart(2,"0");return`${e}:${r}`}handleAudioProgress(){if(!this.audioElement)return;let t=Number(this.progressSlider.value);this.audioElement.currentTime=t,this.progress=t,this.currentTime=this.formatTime(t)}handleAudioProgressKeydown(t){t.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),t.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}handleThumbGrab(){var t;(t=this.audioElement)==null||t.pause()}handleThumbRelease(){var t;this.isPlaying&&((t=this.audioElement)==null||t.play())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(t){(t.key==="Enter"||t.key===" ")&&this.showTranscript()}rgbToHex(t){let e=t.match(/\d+/g);if((e==null?void 0:e.length)===3){let r=parseInt(e[0]),o=parseInt(e[1]),n=parseInt(e[2]),l=u=>u.toString(16).padStart(2,"0");return`#${l(r)}${l(o)}${l(n)}`.toUpperCase()}return null}onThemeChange(){this.clear(),setTimeout(this.initAnimation.bind(this),this.token("--sd-duration-fast",150))}initAnimation(){var l;let t=(l=this.canvas)==null?void 0:l.getContext("2d");if(!t)return;this.context=t;let e=this.audioPlayerContainer.querySelector(".playback-speed"),o=window.getComputedStyle(e).color,n=this.inverted?"#FFFFFF33":this.rgbToHex(o)+"33";this.waveList=[new He({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new He({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(t=>{t.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(t=>{t.redraw()}),await new Promise(t=>{setTimeout(t,1e3/30)}),await this.draw())}render(){let t=p`<div class="${c("controls grid grid-cols-3 justify-items-center items-center",this.reversedLayout?"mt-2":"mb-2",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full")}" part="audio-controls"><button class="${c("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-4-1-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="mb-4">${this.isPlaying?p`<slot name="pause-icon"><sd-6-4-1-icon class="text-xl" name="pause" library="_internal"></sd-6-4-1-icon></slot>`:p`<slot name="play-icon"><sd-6-4-1-icon class="text-xl" name="start" library="_internal"></sd-6-4-1-icon></slot>`}</sd-6-4-1-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript")?p`<button class="${c("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-6-4-1-icon class="w-6 h-6" name="transcript" library="_internal"></sd-6-4-1-icon></button>`:null} <button class="${c("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-6-4-1-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-6-4-1-icon></button></div></div>`,e=p`<div class="${c("w-full flex justify-between",this.reversedLayout?"mb-0.5":"mt-0.5",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 !mb-4")}" part="timestamps"><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"sd-6-4-1-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"sd-6-4-1-audio__timestamp-color-text")}">${this.duration}</div></div>`;return p`<div class="${c("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?t:null}<div class="relative">${this.animated&&!this.reversedLayout?p`${t}`:null} ${this.animated?p`<canvas class="w-full h-16 -mb-2"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?e:null}<sd-6-4-1-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-6-4-1-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-6-4-1-range></div>${this.hasSlotController.test("transcript")?p`<sd-6-4-1-drawer><slot name="transcript"></slot></sd-6-4-1-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?e:null}</div><sd-6-4-1-theme-listener></sd-6-4-1-theme-listener>`}};ct.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
184
|
+
sd-6-4-1-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-spacing-12);align-items:center;justify-content:center;border-radius:var(--sd-radius-full)}sd-6-4-1-button::part(motion-wrapper){border-radius:var(--sd-radius-full)}sd-6-4-1-button::part(label){display:flex;flex-grow:0;align-items:center}sd-6-4-1-range::part(form-control-label){display:none}:host([inverted]) sd-6-4-1-range::part(thumb){outline-color:var(--color-white,#fff);background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}:host([animated]) sd-6-4-1-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-6-4-1-range::part(track){background-color:rgba(var(--sd-color-border-primary-400,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-6-4-1-range::part(active-track){background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}`],a([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],ct.prototype,"reversedLayout",2),a([d({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],ct.prototype,"hideTimestamps",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"animated",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"inverted",2),a([d({type:Number,reflect:!0})],ct.prototype,"speed",2),a([L()],ct.prototype,"currentTime",2),a([L()],ct.prototype,"duration",2),a([L()],ct.prototype,"isPlaying",2),a([L()],ct.prototype,"isMuted",2),a([L()],ct.prototype,"isTranscriptOpen",2),a([L()],ct.prototype,"progress",2),a([v('[part="progress-slider"]')],ct.prototype,"progressSlider",2),a([v('[part="audio-player"]')],ct.prototype,"audioPlayerContainer",2),a([v("sd-6-4-1-drawer")],ct.prototype,"drawer",2),a([v("canvas")],ct.prototype,"canvas",2),ct=a([k("sd-6-4-1-audio")],ct);var ce=class extends g{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return p`<span part="base" aria-labelledby="content" class="${c("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"sd-6-4-1-badge--blue--inverted-color-text sd-6-4-1-badge--blue--inverted-color-background sd-6-4-1-badge--inverted-color-border":"text-white bg-primary-500 border-white",green:this.inverted?"sd-6-4-1-badge--green-color--inverted-text sd-6-4-1-badge--green-color--inverted-background sd-6-4-1-badge--inverted-color-border":"text-white sd-6-4-1-badge--green-color-background border-white",red:this.inverted?"sd-6-4-1-badge--red--inverted-text sd-6-4-1-badge--red--inverted-background sd-6-4-1-badge--inverted-color-border":"text-white sd-6-4-1-badge--red-color-background border-white"}[this.variant])}"><span id="content" part="content" class="${c(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};ce.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
185
|
+
:host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],a([d({type:String,reflect:!0})],ce.prototype,"size",2),a([d({type:String,reflect:!0})],ce.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],ce.prototype,"inverted",2),ce=a([k("sd-6-4-1-badge")],ce);var ie=class extends g{constructor(){super(...arguments);this.variant="primary";this.shapes=["top","middle","bottom"];this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return t==="top"?p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return t==="top"?p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return t==="top"?p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setBreakpoint()),this.updateComplete.then(()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return p`<div class="relative" part="shape-top">${this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return p`<div class="${c({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="${c("z-10 relative",this.variant==="image"&&"invisible opacity-0")}" part="content"><slot>${this.variant==="image"?"":p`<div class="h-8"></div>`}</slot></div></div>`}renderBottomBrandshape(){return p`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return p`<div class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}renderStylizedVariant(){return p`<div part="stylized-container" class="w-full overflow-hidden"><slot class="${c(this.variant!=="image"&&"hidden")}" name="image"></slot></div>`}renderShapes(){return p`${this.shapes.includes("top")?this.renderTopBrandshape():""} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():""} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():""}`}render(){let t=this.variant.startsWith("border-")||this.variant==="image";return p`<div class="${c(t&&"fill-transparent","relative")}" part="base">${t?this.renderStylizedVariant():""} ${this.renderShapes()}</div>`}};ie.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
186
186
|
:host{display:block;container-type:inline-size;--angle:11deg;--radius:60px;--tan:tan(var(--angle));--adjacent:100cqw;--opposite:calc(var(--tan) * var(--adjacent));--curve:calc(
|
|
187
187
|
(var(--opposite) - (var(--radius) / 3)) * 0.5
|
|
188
|
-
)}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{position:absolute;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);transform:skewY(calc(var(--angle) * -1));height:calc(100% - var(--curve) * 2);border-radius:0 var(--radius);margin-top:calc(var(--curve))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){width:100%;-o-object-fit:cover;object-fit:cover;transform:translateY(calc(var(--curve) * -1)) skewY(var(--angle));height:calc(100% + var(--curve) * 2)!important;position:absolute!important}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{transform:unset;height:100%;margin-top:0}slot[name=image]::slotted(img),slot[name=image]::slotted(video){transform:unset;height:100%!important}}:host([variant=border-primary]){--internal-border-color:rgba(var(--sd-color-border-primary, rgba(var(--sd-color-primary))))}:host([variant=border-white]){--internal-border-color:rgba(var(--sd-color-border-white, rgba(var(--sd-color-white))))}:host([variant^=border-]) [part=stylized-container]::before{right:calc(var(--sd-spacing-1) * 0);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);--tw-border-style:solid;border-style:solid;content:'';border-color:var(--internal-border-color,#000)}:host([variant=neutral-100]) [part=base]{fill:rgba(var(--sd-brandshape--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}:host([variant=white]) [part=base]{fill:rgba(var(--sd-color-background-white,rgba(var(--sd-color-white))))}:host([variant=primary]) [part=base]{fill:rgba(var(--sd-color-background-primary,rgba(var(--sd-color-primary))))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}`],a([v("[part=base]")],ie.prototype,"containerElem",2),a([d({type:String,reflect:!0})],ie.prototype,"variant",2),a([d({type:Array})],ie.prototype,"shapes",2),a([L()],ie.prototype,"componentBreakpoint",2),ie=a([k("sd-6-3-0-brandshape")],ie);var he=Math.min,Pt=Math.max,Ki=Math.round,ji=Math.floor,re=s=>({x:s,y:s}),Wl={left:"right",right:"left",bottom:"top",top:"bottom"},Yl={start:"end",end:"start"};function Tr(s,i,t){return Pt(s,he(i,t))}function oi(s,i){return typeof s=="function"?s(i):s}function ke(s){return s.split("-")[0]}function ni(s){return s.split("-")[1]}function vs(s){return s==="x"?"y":"x"}function Lr(s){return s==="y"?"height":"width"}var Xl=new Set(["top","bottom"]);function ue(s){return Xl.has(ke(s))?"y":"x"}function zr(s){return vs(ue(s))}function Sa(s,i,t){t===void 0&&(t=!1);let e=ni(s),r=zr(s),o=Lr(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(n=qi(n)),[n,qi(n)]}function Da(s){let i=qi(s);return[$r(s),i,$r(i)]}function $r(s){return s.replace(/start|end/g,i=>Yl[i])}var za=["left","right"],Ma=["right","left"],Zl=["top","bottom"],Ql=["bottom","top"];function Gl(s,i,t){switch(s){case"top":case"bottom":return t?i?Ma:za:i?za:Ma;case"left":case"right":return i?Zl:Ql;default:return[]}}function Aa(s,i,t,e){let r=ni(s),o=Gl(ke(s),t==="start",e);return r&&(o=o.map(n=>n+"-"+r),i&&(o=o.concat(o.map($r)))),o}function qi(s){return s.replace(/left|right|bottom|top/g,i=>Wl[i])}function Jl(s){return B({top:0,right:0,bottom:0,left:0},s)}function ys(s){return typeof s!="number"?Jl(s):{top:s,right:s,bottom:s,left:s}}function li(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 Oa(s,i,t){let{reference:e,floating:r}=s,o=ue(i),n=zr(i),l=Lr(n),h=ke(i),u=o==="y",m=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,y=e[l]/2-r[l]/2,b;switch(h){case"top":b={x:m,y:e.y-r.height};break;case"bottom":b={x:m,y:e.y+e.height};break;case"right":b={x:e.x+e.width,y:f};break;case"left":b={x:e.x-r.width,y:f};break;default:b={x:e.x,y:e.y}}switch(ni(i)){case"start":b[n]-=y*(t&&u?-1:1);break;case"end":b[n]+=y*(t&&u?-1:1);break}return b}var _a=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:n}=t,l=o.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:m,y:f}=Oa(u,e,h),y=e,b={},w=0;for(let T=0;T<l.length;T++){let{name:z,fn:M}=l[T],{x:_,y:A,data:F,reset:D}=await M({x:m,y:f,initialPlacement:e,placement:y,strategy:r,middlewareData:b,rects:u,platform:n,elements:{reference:s,floating:i}});m=_!=null?_:m,f=A!=null?A:f,b=vt(B({},b),{[z]:B(B({},b[z]),F)}),D&&w<=50&&(w++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(u=D.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):D.rects),{x:m,y:f}=Oa(u,y,h)),T=-1)}return{x:m,y:f,placement:y,strategy:r,middlewareData:b}};async function Mr(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:o,rects:n,elements:l,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:y=!1,padding:b=0}=oi(i,s),w=ys(b),z=l[y?f==="floating"?"reference":"floating":f],M=li(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(z)))==null||t?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:h})),_=f==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),F=await(o.isElement==null?void 0:o.isElement(A))?await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1}:{x:1,y:1},D=li(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:A,strategy:h}):_);return{top:(M.top-D.top+w.top)/F.y,bottom:(D.bottom-M.bottom+w.bottom)/F.y,left:(M.left-D.left+w.left)/F.x,right:(D.right-M.right+w.right)/F.x}}var Ia=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:o,platform:n,elements:l,middlewareData:h}=i,{element:u,padding:m=0}=oi(s,i)||{};if(u==null)return{};let f=ys(m),y={x:t,y:e},b=zr(r),w=Lr(b),T=await n.getDimensions(u),z=b==="y",M=z?"top":"left",_=z?"bottom":"right",A=z?"clientHeight":"clientWidth",F=o.reference[w]+o.reference[b]-y[b]-o.floating[w],D=y[b]-o.reference[b],j=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),X=j?j[A]:0;(!X||!await(n.isElement==null?void 0:n.isElement(j)))&&(X=l.floating[A]||o.floating[w]);let Ct=F/2-D/2,wt=X/2-T[w]/2-1,it=he(f[M],wt),Ot=he(f[_],wt),tt=it,$t=X-T[w]-Ot,mt=X/2-T[w]/2+Ct,Gt=Tr(tt,mt,$t),Ke=!h.arrow&&ni(r)!=null&&mt!==Gt&&o.reference[w]/2-(mt<tt?it:Ot)-T[w]/2<0,be=Ke?mt<tt?mt-tt:mt-$t:0;return{[b]:y[b]+be,data:B({[b]:Gt,centerOffset:mt-Gt-be},Ke&&{alignmentOffset:be}),reset:Ke}}});var Pa=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:o,rects:n,initialPlacement:l,platform:h,elements:u}=i,mt=oi(s,i),{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0}=mt,z=sr(mt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let M=ke(r),_=ue(l),A=ke(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(u.floating)),D=y||(A||!T?[qi(l)]:Da(l)),j=w!=="none";!y&&j&&D.push(...Aa(l,T,w,F));let X=[l,...D],Ct=await Mr(i,z),wt=[],it=((e=o.flip)==null?void 0:e.overflows)||[];if(m&&wt.push(Ct[M]),f){let Gt=Sa(r,n,F);wt.push(Ct[Gt[0]],Ct[Gt[1]])}if(it=[...it,{placement:r,overflows:wt}],!wt.every(Gt=>Gt<=0)){var Ot,tt;let Gt=(((Ot=o.flip)==null?void 0:Ot.index)||0)+1,Ke=X[Gt];if(Ke&&(!(f==="alignment"?_!==ue(Ke):!1)||it.every(Jt=>ue(Jt.placement)===_?Jt.overflows[0]>0:!0)))return{data:{index:Gt,overflows:it},reset:{placement:Ke}};let be=(tt=it.filter(je=>je.overflows[0]<=0).sort((je,Jt)=>je.overflows[1]-Jt.overflows[1])[0])==null?void 0:tt.placement;if(!be)switch(b){case"bestFit":{var $t;let je=($t=it.filter(Jt=>{if(j){let De=ue(Jt.placement);return De===_||De==="y"}return!0}).map(Jt=>[Jt.placement,Jt.overflows.filter(De=>De>0).reduce((De,zo)=>De+zo,0)]).sort((Jt,De)=>Jt[1]-De[1])[0])==null?void 0:$t[0];je&&(be=je);break}case"initialPlacement":be=l;break}if(r!==be)return{reset:{placement:be}}}return{}}}};var td=new Set(["left","top"]);async function ed(s,i){let{placement:t,platform:e,elements:r}=s,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=ke(t),l=ni(t),h=ue(t)==="y",u=td.has(n)?-1:1,m=o&&h?-1:1,f=oi(i,s),{mainAxis:y,crossAxis:b,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(b=l==="end"?w*-1:w),h?{x:b*m,y:y*u}:{x:y*u,y:b*m}}var Ha=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:o,placement:n,middlewareData:l}=i,h=await ed(i,s);return n===((t=l.offset)==null?void 0:t.placement)&&(e=l.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:o+h.y,data:vt(B({},h),{placement:n})}}}},Va=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,z=oi(s,i),{mainAxis:o=!0,crossAxis:n=!1,limiter:l={fn:M=>{let{x:_,y:A}=M;return{x:_,y:A}}}}=z,h=sr(z,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},m=await Mr(i,h),f=ue(ke(r)),y=vs(f),b=u[y],w=u[f];if(o){let M=y==="y"?"top":"left",_=y==="y"?"bottom":"right",A=b+m[M],F=b-m[_];b=Tr(A,b,F)}if(n){let M=f==="y"?"top":"left",_=f==="y"?"bottom":"right",A=w+m[M],F=w-m[_];w=Tr(A,w,F)}let T=l.fn(vt(B({},i),{[y]:b,[f]:w}));return vt(B({},T),{data:{x:T.x-t,y:T.y-e,enabled:{[y]:o,[f]:n}}})}}};var Fa=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:o,platform:n,elements:l}=i,it=oi(s,i),{apply:h=()=>{}}=it,u=sr(it,["apply"]),m=await Mr(i,u),f=ke(r),y=ni(r),b=ue(r)==="y",{width:w,height:T}=o.floating,z,M;f==="top"||f==="bottom"?(z=f,M=y===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(M=f,z=y==="end"?"top":"bottom");let _=T-m.top-m.bottom,A=w-m.left-m.right,F=he(T-m[z],_),D=he(w-m[M],A),j=!i.middlewareData.shift,X=F,Ct=D;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Ct=A),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(X=_),j&&!y){let Ot=Pt(m.left,0),tt=Pt(m.right,0),$t=Pt(m.top,0),mt=Pt(m.bottom,0);b?Ct=w-2*(Ot!==0||tt!==0?Ot+tt:Pt(m.left,m.right)):X=T-2*($t!==0||mt!==0?$t+mt:Pt(m.top,m.bottom))}await h(vt(B({},i),{availableWidth:Ct,availableHeight:X}));let wt=await n.getDimensions(l.floating);return w!==wt.width||T!==wt.height?{reset:{rects:!0}}:{}}}};function Sr(){return typeof window!="undefined"}function di(s){return Ba(s)?(s.nodeName||"").toLowerCase():"#document"}function Vt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function se(s){var i;return(i=(Ba(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Ba(s){return Sr()?s instanceof Node||s instanceof Vt(s).Node:!1}function Xt(s){return Sr()?s instanceof Element||s instanceof Vt(s).Element:!1}function ae(s){return Sr()?s instanceof HTMLElement||s instanceof Vt(s).HTMLElement:!1}function Ra(s){return!Sr()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Vt(s).ShadowRoot}var id=new Set(["inline","contents"]);function ki(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Zt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!id.has(r)}var rd=new Set(["table","td","th"]);function Na(s){return rd.has(di(s))}var sd=[":popover-open",":modal"];function Wi(s){return sd.some(i=>{try{return s.matches(i)}catch(t){return!1}})}var ad=["transform","translate","scale","rotate","perspective"],od=["transform","translate","scale","rotate","perspective","filter"],nd=["paint","layout","strict","content"];function Dr(s){let i=Ar(),t=Xt(s)?Zt(s):s;return ad.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)||od.some(e=>(t.willChange||"").includes(e))||nd.some(e=>(t.contain||"").includes(e))}function Ua(s){let i=Ee(s);for(;ae(i)&&!ci(i);){if(Dr(i))return i;if(Wi(i))return null;i=Ee(i)}return null}function Ar(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ld=new Set(["html","body","#document"]);function ci(s){return ld.has(di(s))}function Zt(s){return Vt(s).getComputedStyle(s)}function Yi(s){return Xt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Ee(s){if(di(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ra(s)&&s.host||se(s);return Ra(i)?i.host:i}function qa(s){let i=Ee(s);return ci(i)?s.ownerDocument?s.ownerDocument.body:s.body:ae(i)&&ki(i)?i:qa(i)}function xi(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=qa(s),o=r===((e=s.ownerDocument)==null?void 0:e.body),n=Vt(r);if(o){let l=Or(n);return i.concat(n,n.visualViewport||[],ki(r)?r:[],l&&t?xi(l):[])}return i.concat(r,xi(r,[],t))}function Or(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Ya(s){let i=Zt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=ae(s),o=r?s.offsetWidth:t,n=r?s.offsetHeight:e,l=Ki(t)!==o||Ki(e)!==n;return l&&(t=o,e=n),{width:t,height:e,$:l}}function xs(s){return Xt(s)?s:s.contextElement}function Ei(s){let i=xs(s);if(!ae(i))return re(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:o}=Ya(i),n=(o?Ki(t.width):t.width)/e,l=(o?Ki(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var dd=re(0);function Xa(s){let i=Vt(s);return!Ar()||!i.visualViewport?dd:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function cd(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Vt(s)?!1:i}function hi(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),o=xs(s),n=re(1);i&&(e?Xt(e)&&(n=Ei(e)):n=Ei(s));let l=cd(o,t,e)?Xa(o):re(0),h=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,m=r.width/n.x,f=r.height/n.y;if(o){let y=Vt(o),b=e&&Xt(e)?Vt(e):e,w=y,T=Or(w);for(;T&&e&&b!==w;){let z=Ei(T),M=T.getBoundingClientRect(),_=Zt(T),A=M.left+(T.clientLeft+parseFloat(_.paddingLeft))*z.x,F=M.top+(T.clientTop+parseFloat(_.paddingTop))*z.y;h*=z.x,u*=z.y,m*=z.x,f*=z.y,h+=A,u+=F,w=Vt(T),T=Or(w)}}return li({width:m,height:f,x:h,y:u})}function _r(s,i){let t=Yi(s).scrollLeft;return i?i.left+t:hi(se(s)).left+t}function Za(s,i){let t=s.getBoundingClientRect(),e=t.left+i.scrollLeft-_r(s,t),r=t.top+i.scrollTop;return{x:e,y:r}}function hd(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,o=r==="fixed",n=se(e),l=i?Wi(i.floating):!1;if(e===n||l&&o)return t;let h={scrollLeft:0,scrollTop:0},u=re(1),m=re(0),f=ae(e);if((f||!f&&!o)&&((di(e)!=="body"||ki(n))&&(h=Yi(e)),ae(e))){let b=hi(e);u=Ei(e),m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}let y=n&&!f&&!o?Za(n,h):re(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+m.x+y.x,y:t.y*u.y-h.scrollTop*u.y+m.y+y.y}}function ud(s){return Array.from(s.getClientRects())}function pd(s){let i=se(s),t=Yi(s),e=s.ownerDocument.body,r=Pt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),o=Pt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+_r(s),l=-t.scrollTop;return Zt(e).direction==="rtl"&&(n+=Pt(i.clientWidth,e.clientWidth)-r),{width:r,height:o,x:n,y:l}}var Ka=25;function md(s,i){let t=Vt(s),e=se(s),r=t.visualViewport,o=e.clientWidth,n=e.clientHeight,l=0,h=0;if(r){o=r.width,n=r.height;let m=Ar();(!m||m&&i==="fixed")&&(l=r.offsetLeft,h=r.offsetTop)}let u=_r(e);if(u<=0){let m=e.ownerDocument,f=m.body,y=getComputedStyle(f),b=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(e.clientWidth-f.clientWidth-b);w<=Ka&&(o-=w)}else u<=Ka&&(o+=u);return{width:o,height:n,x:l,y:h}}var fd=new Set(["absolute","fixed"]);function gd(s,i){let t=hi(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,o=ae(s)?Ei(s):re(1),n=s.clientWidth*o.x,l=s.clientHeight*o.y,h=r*o.x,u=e*o.y;return{width:n,height:l,x:h,y:u}}function ja(s,i,t){let e;if(i==="viewport")e=md(s,t);else if(i==="document")e=pd(se(s));else if(Xt(i))e=gd(i,t);else{let r=Xa(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return li(e)}function Qa(s,i){let t=Ee(s);return t===i||!Xt(t)||ci(t)?!1:Zt(t).position==="fixed"||Qa(t,i)}function bd(s,i){let t=i.get(s);if(t)return t;let e=xi(s,[],!1).filter(l=>Xt(l)&&di(l)!=="body"),r=null,o=Zt(s).position==="fixed",n=o?Ee(s):s;for(;Xt(n)&&!ci(n);){let l=Zt(n),h=Dr(n);!h&&l.position==="fixed"&&(r=null),(o?!h&&!r:!h&&l.position==="static"&&!!r&&fd.has(r.position)||ki(n)&&!h&&Qa(s,n))?e=e.filter(m=>m!==n):r=l,n=Ee(n)}return i.set(s,e),e}function vd(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?Wi(i)?[]:bd(i,this._c):[].concat(t),e],l=n[0],h=n.reduce((u,m)=>{let f=ja(i,m,r);return u.top=Pt(f.top,u.top),u.right=he(f.right,u.right),u.bottom=he(f.bottom,u.bottom),u.left=Pt(f.left,u.left),u},ja(i,l,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function yd(s){let{width:i,height:t}=Ya(s);return{width:i,height:t}}function wd(s,i,t){let e=ae(i),r=se(i),o=t==="fixed",n=hi(s,!0,o,i),l={scrollLeft:0,scrollTop:0},h=re(0);function u(){h.x=_r(r)}if(e||!e&&!o)if((di(i)!=="body"||ki(r))&&(l=Yi(i)),e){let b=hi(i,!0,o,i);h.x=b.x+i.clientLeft,h.y=b.y+i.clientTop}else r&&u();o&&!e&&r&&u();let m=r&&!e&&!o?Za(r,l):re(0),f=n.left+l.scrollLeft-h.x-m.x,y=n.top+l.scrollTop-h.y-m.y;return{x:f,y,width:n.width,height:n.height}}function ws(s){return Zt(s).position==="static"}function Wa(s,i){if(!ae(s)||Zt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return se(s)===t&&(t=t.ownerDocument.body),t}function Ga(s,i){let t=Vt(s);if(Wi(s))return t;if(!ae(s)){let r=Ee(s);for(;r&&!ci(r);){if(Xt(r)&&!ws(r))return r;r=Ee(r)}return t}let e=Wa(s,i);for(;e&&Na(e)&&ws(e);)e=Wa(e,i);return e&&ci(e)&&ws(e)&&!Dr(e)?t:e||Ua(s)||t}var xd=async function(s){let i=this.getOffsetParent||Ga,t=this.getDimensions,e=await t(s.floating);return{reference:wd(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function kd(s){return Zt(s).direction==="rtl"}var Ed={convertOffsetParentRelativeRectToViewportRelativeRect:hd,getDocumentElement:se,getClippingRect:vd,getOffsetParent:Ga,getElementRects:xd,getClientRects:ud,getDimensions:yd,getScale:Ei,isElement:Xt,isRTL:kd};function Ja(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function Cd(s,i){let t=null,e,r=se(s);function o(){var l;clearTimeout(e),(l=t)==null||l.disconnect(),t=null}function n(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),o();let u=s.getBoundingClientRect(),{left:m,top:f,width:y,height:b}=u;if(l||i(),!y||!b)return;let w=ji(f),T=ji(r.clientWidth-(m+y)),z=ji(r.clientHeight-(f+b)),M=ji(m),A={rootMargin:-w+"px "+-T+"px "+-z+"px "+-M+"px",threshold:Pt(0,he(1,h))||1},F=!0;function D(j){let X=j[0].intersectionRatio;if(X!==h){if(!F)return n();X?n(!1,X):e=setTimeout(()=>{n(!1,1e-7)},1e3)}X===1&&!Ja(u,s.getBoundingClientRect())&&n(),F=!1}try{t=new IntersectionObserver(D,vt(B({},A),{root:r.ownerDocument}))}catch(j){t=new IntersectionObserver(D,A)}t.observe(s)}return n(!0),o}function to(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=xs(s),m=r||o?[...u?xi(u):[],...xi(i)]:[];m.forEach(M=>{r&&M.addEventListener("scroll",t,{passive:!0}),o&&M.addEventListener("resize",t)});let f=u&&l?Cd(u,t):null,y=-1,b=null;n&&(b=new ResizeObserver(M=>{let[_]=M;_&&_.target===u&&b&&(b.unobserve(i),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(i)})),t()}),u&&!h&&b.observe(u),b.observe(i));let w,T=h?hi(s):null;h&&z();function z(){let M=hi(s);T&&!Ja(T,M)&&t(),T=M,w=requestAnimationFrame(z)}return t(),()=>{var M;m.forEach(_=>{r&&_.removeEventListener("scroll",t),o&&_.removeEventListener("resize",t)}),f==null||f(),(M=b)==null||M.disconnect(),b=null,h&&cancelAnimationFrame(w)}}var eo=Ha;var io=Va,ro=Pa,ks=Fa;var so=Ia;var ao=(s,i,t)=>{let e=new Map,r=B({platform:Ed},t),o=vt(B({},r.platform),{_c:e});return _a(s,i,vt(B({},r),{platform:o}))};var G=class extends g{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=to(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=[eo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ks({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ro({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(io({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ks({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(so({element:this.arrowEl,padding:this.arrowPadding})),ao(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:o,placement:n})=>{let l=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=o.arrow.x,m=o.arrow.y,f="",y="",b="",w="";if(this.arrowPlacement==="start"){let T=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",y=l?T:"",w=l?"":T}else if(this.arrowPlacement==="end"){let T=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";y=l?"":T,w=l?T:"",b=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(w=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(w=typeof u=="number"?`${u}px`:"",f=typeof m=="number"?`${m}px`:"");Object.assign(this.arrowEl.style,{top:f,right:y,bottom:b,left:w,[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>`}};G.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
189
|
-
: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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],a([v('[part="popup"]')],G.prototype,"popup",2),a([v('[part="arrow"]')],G.prototype,"arrowEl",2),a([d({reflect:!0})],G.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],G.prototype,"active",2),a([d({type:String,reflect:!0})],G.prototype,"placement",2),a([d({type:String,reflect:!0})],G.prototype,"strategy",2),a([d({type:Number,reflect:!0})],G.prototype,"distance",2),a([d({type:Number,reflect:!0})],G.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],G.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],G.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],G.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],G.prototype,"flip",2),a([d({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],G.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],G.prototype,"flipFallbackStrategy",2),a([d({type:Object})],G.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],G.prototype,"flipPadding",2),a([d({type:Boolean})],G.prototype,"shift",2),a([d({type:Object})],G.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],G.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],G.prototype,"autoSize",2),a([d()],G.prototype,"sync",2),a([d({type:Object})],G.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],G.prototype,"autoSizePadding",2),G=a([k("sd-6-
|
|
188
|
+
)}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{position:absolute;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);transform:skewY(calc(var(--angle) * -1));height:calc(100% - var(--curve) * 2);border-radius:0 var(--radius);margin-top:calc(var(--curve))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){width:100%;-o-object-fit:cover;object-fit:cover;transform:translateY(calc(var(--curve) * -1)) skewY(var(--angle));height:calc(100% + var(--curve) * 2)!important;position:absolute!important}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{transform:unset;height:100%;margin-top:0}slot[name=image]::slotted(img),slot[name=image]::slotted(video){transform:unset;height:100%!important}}:host([variant=border-primary]){--internal-border-color:rgba(var(--sd-color-border-primary, rgba(var(--sd-color-primary))))}:host([variant=border-white]){--internal-border-color:rgba(var(--sd-color-border-white, rgba(var(--sd-color-white))))}:host([variant^=border-]) [part=stylized-container]::before{right:calc(var(--sd-spacing-1) * 0);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);--tw-border-style:solid;border-style:solid;content:'';border-color:var(--internal-border-color,#000)}:host([variant=neutral-100]) [part=base]{fill:rgba(var(--sd-brandshape--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}:host([variant=white]) [part=base]{fill:rgba(var(--sd-color-background-white,rgba(var(--sd-color-white))))}:host([variant=primary]) [part=base]{fill:rgba(var(--sd-color-background-primary,rgba(var(--sd-color-primary))))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}`],a([v("[part=base]")],ie.prototype,"containerElem",2),a([d({type:String,reflect:!0})],ie.prototype,"variant",2),a([d({type:Array})],ie.prototype,"shapes",2),a([L()],ie.prototype,"componentBreakpoint",2),ie=a([k("sd-6-4-1-brandshape")],ie);var he=Math.min,Pt=Math.max,Ki=Math.round,ji=Math.floor,re=s=>({x:s,y:s}),Wl={left:"right",right:"left",bottom:"top",top:"bottom"},Yl={start:"end",end:"start"};function Tr(s,i,t){return Pt(s,he(i,t))}function oi(s,i){return typeof s=="function"?s(i):s}function ke(s){return s.split("-")[0]}function ni(s){return s.split("-")[1]}function vs(s){return s==="x"?"y":"x"}function Lr(s){return s==="y"?"height":"width"}var Xl=new Set(["top","bottom"]);function ue(s){return Xl.has(ke(s))?"y":"x"}function zr(s){return vs(ue(s))}function Sa(s,i,t){t===void 0&&(t=!1);let e=ni(s),r=zr(s),o=Lr(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(n=qi(n)),[n,qi(n)]}function Da(s){let i=qi(s);return[$r(s),i,$r(i)]}function $r(s){return s.replace(/start|end/g,i=>Yl[i])}var za=["left","right"],Ma=["right","left"],Zl=["top","bottom"],Ql=["bottom","top"];function Gl(s,i,t){switch(s){case"top":case"bottom":return t?i?Ma:za:i?za:Ma;case"left":case"right":return i?Zl:Ql;default:return[]}}function Aa(s,i,t,e){let r=ni(s),o=Gl(ke(s),t==="start",e);return r&&(o=o.map(n=>n+"-"+r),i&&(o=o.concat(o.map($r)))),o}function qi(s){return s.replace(/left|right|bottom|top/g,i=>Wl[i])}function Jl(s){return B({top:0,right:0,bottom:0,left:0},s)}function ys(s){return typeof s!="number"?Jl(s):{top:s,right:s,bottom:s,left:s}}function li(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 Oa(s,i,t){let{reference:e,floating:r}=s,o=ue(i),n=zr(i),l=Lr(n),h=ke(i),u=o==="y",m=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,y=e[l]/2-r[l]/2,b;switch(h){case"top":b={x:m,y:e.y-r.height};break;case"bottom":b={x:m,y:e.y+e.height};break;case"right":b={x:e.x+e.width,y:f};break;case"left":b={x:e.x-r.width,y:f};break;default:b={x:e.x,y:e.y}}switch(ni(i)){case"start":b[n]-=y*(t&&u?-1:1);break;case"end":b[n]+=y*(t&&u?-1:1);break}return b}var _a=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:n}=t,l=o.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:m,y:f}=Oa(u,e,h),y=e,b={},w=0;for(let T=0;T<l.length;T++){let{name:z,fn:M}=l[T],{x:_,y:A,data:F,reset:D}=await M({x:m,y:f,initialPlacement:e,placement:y,strategy:r,middlewareData:b,rects:u,platform:n,elements:{reference:s,floating:i}});m=_!=null?_:m,f=A!=null?A:f,b=vt(B({},b),{[z]:B(B({},b[z]),F)}),D&&w<=50&&(w++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(u=D.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):D.rects),{x:m,y:f}=Oa(u,y,h)),T=-1)}return{x:m,y:f,placement:y,strategy:r,middlewareData:b}};async function Mr(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:o,rects:n,elements:l,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:y=!1,padding:b=0}=oi(i,s),w=ys(b),z=l[y?f==="floating"?"reference":"floating":f],M=li(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(z)))==null||t?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:h})),_=f==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),F=await(o.isElement==null?void 0:o.isElement(A))?await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1}:{x:1,y:1},D=li(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:A,strategy:h}):_);return{top:(M.top-D.top+w.top)/F.y,bottom:(D.bottom-M.bottom+w.bottom)/F.y,left:(M.left-D.left+w.left)/F.x,right:(D.right-M.right+w.right)/F.x}}var Ia=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:o,platform:n,elements:l,middlewareData:h}=i,{element:u,padding:m=0}=oi(s,i)||{};if(u==null)return{};let f=ys(m),y={x:t,y:e},b=zr(r),w=Lr(b),T=await n.getDimensions(u),z=b==="y",M=z?"top":"left",_=z?"bottom":"right",A=z?"clientHeight":"clientWidth",F=o.reference[w]+o.reference[b]-y[b]-o.floating[w],D=y[b]-o.reference[b],j=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),X=j?j[A]:0;(!X||!await(n.isElement==null?void 0:n.isElement(j)))&&(X=l.floating[A]||o.floating[w]);let Ct=F/2-D/2,wt=X/2-T[w]/2-1,it=he(f[M],wt),Ot=he(f[_],wt),tt=it,$t=X-T[w]-Ot,mt=X/2-T[w]/2+Ct,Gt=Tr(tt,mt,$t),Ke=!h.arrow&&ni(r)!=null&&mt!==Gt&&o.reference[w]/2-(mt<tt?it:Ot)-T[w]/2<0,be=Ke?mt<tt?mt-tt:mt-$t:0;return{[b]:y[b]+be,data:B({[b]:Gt,centerOffset:mt-Gt-be},Ke&&{alignmentOffset:be}),reset:Ke}}});var Pa=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:o,rects:n,initialPlacement:l,platform:h,elements:u}=i,mt=oi(s,i),{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0}=mt,z=sr(mt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let M=ke(r),_=ue(l),A=ke(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(u.floating)),D=y||(A||!T?[qi(l)]:Da(l)),j=w!=="none";!y&&j&&D.push(...Aa(l,T,w,F));let X=[l,...D],Ct=await Mr(i,z),wt=[],it=((e=o.flip)==null?void 0:e.overflows)||[];if(m&&wt.push(Ct[M]),f){let Gt=Sa(r,n,F);wt.push(Ct[Gt[0]],Ct[Gt[1]])}if(it=[...it,{placement:r,overflows:wt}],!wt.every(Gt=>Gt<=0)){var Ot,tt;let Gt=(((Ot=o.flip)==null?void 0:Ot.index)||0)+1,Ke=X[Gt];if(Ke&&(!(f==="alignment"?_!==ue(Ke):!1)||it.every(Jt=>ue(Jt.placement)===_?Jt.overflows[0]>0:!0)))return{data:{index:Gt,overflows:it},reset:{placement:Ke}};let be=(tt=it.filter(je=>je.overflows[0]<=0).sort((je,Jt)=>je.overflows[1]-Jt.overflows[1])[0])==null?void 0:tt.placement;if(!be)switch(b){case"bestFit":{var $t;let je=($t=it.filter(Jt=>{if(j){let De=ue(Jt.placement);return De===_||De==="y"}return!0}).map(Jt=>[Jt.placement,Jt.overflows.filter(De=>De>0).reduce((De,zo)=>De+zo,0)]).sort((Jt,De)=>Jt[1]-De[1])[0])==null?void 0:$t[0];je&&(be=je);break}case"initialPlacement":be=l;break}if(r!==be)return{reset:{placement:be}}}return{}}}};var td=new Set(["left","top"]);async function ed(s,i){let{placement:t,platform:e,elements:r}=s,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=ke(t),l=ni(t),h=ue(t)==="y",u=td.has(n)?-1:1,m=o&&h?-1:1,f=oi(i,s),{mainAxis:y,crossAxis:b,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(b=l==="end"?w*-1:w),h?{x:b*m,y:y*u}:{x:y*u,y:b*m}}var Ha=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:o,placement:n,middlewareData:l}=i,h=await ed(i,s);return n===((t=l.offset)==null?void 0:t.placement)&&(e=l.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:o+h.y,data:vt(B({},h),{placement:n})}}}},Va=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,z=oi(s,i),{mainAxis:o=!0,crossAxis:n=!1,limiter:l={fn:M=>{let{x:_,y:A}=M;return{x:_,y:A}}}}=z,h=sr(z,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},m=await Mr(i,h),f=ue(ke(r)),y=vs(f),b=u[y],w=u[f];if(o){let M=y==="y"?"top":"left",_=y==="y"?"bottom":"right",A=b+m[M],F=b-m[_];b=Tr(A,b,F)}if(n){let M=f==="y"?"top":"left",_=f==="y"?"bottom":"right",A=w+m[M],F=w-m[_];w=Tr(A,w,F)}let T=l.fn(vt(B({},i),{[y]:b,[f]:w}));return vt(B({},T),{data:{x:T.x-t,y:T.y-e,enabled:{[y]:o,[f]:n}}})}}};var Fa=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:o,platform:n,elements:l}=i,it=oi(s,i),{apply:h=()=>{}}=it,u=sr(it,["apply"]),m=await Mr(i,u),f=ke(r),y=ni(r),b=ue(r)==="y",{width:w,height:T}=o.floating,z,M;f==="top"||f==="bottom"?(z=f,M=y===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(M=f,z=y==="end"?"top":"bottom");let _=T-m.top-m.bottom,A=w-m.left-m.right,F=he(T-m[z],_),D=he(w-m[M],A),j=!i.middlewareData.shift,X=F,Ct=D;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Ct=A),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(X=_),j&&!y){let Ot=Pt(m.left,0),tt=Pt(m.right,0),$t=Pt(m.top,0),mt=Pt(m.bottom,0);b?Ct=w-2*(Ot!==0||tt!==0?Ot+tt:Pt(m.left,m.right)):X=T-2*($t!==0||mt!==0?$t+mt:Pt(m.top,m.bottom))}await h(vt(B({},i),{availableWidth:Ct,availableHeight:X}));let wt=await n.getDimensions(l.floating);return w!==wt.width||T!==wt.height?{reset:{rects:!0}}:{}}}};function Sr(){return typeof window!="undefined"}function di(s){return Ba(s)?(s.nodeName||"").toLowerCase():"#document"}function Vt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function se(s){var i;return(i=(Ba(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Ba(s){return Sr()?s instanceof Node||s instanceof Vt(s).Node:!1}function Xt(s){return Sr()?s instanceof Element||s instanceof Vt(s).Element:!1}function ae(s){return Sr()?s instanceof HTMLElement||s instanceof Vt(s).HTMLElement:!1}function Ra(s){return!Sr()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Vt(s).ShadowRoot}var id=new Set(["inline","contents"]);function ki(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Zt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!id.has(r)}var rd=new Set(["table","td","th"]);function Na(s){return rd.has(di(s))}var sd=[":popover-open",":modal"];function Wi(s){return sd.some(i=>{try{return s.matches(i)}catch(t){return!1}})}var ad=["transform","translate","scale","rotate","perspective"],od=["transform","translate","scale","rotate","perspective","filter"],nd=["paint","layout","strict","content"];function Dr(s){let i=Ar(),t=Xt(s)?Zt(s):s;return ad.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)||od.some(e=>(t.willChange||"").includes(e))||nd.some(e=>(t.contain||"").includes(e))}function Ua(s){let i=Ee(s);for(;ae(i)&&!ci(i);){if(Dr(i))return i;if(Wi(i))return null;i=Ee(i)}return null}function Ar(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ld=new Set(["html","body","#document"]);function ci(s){return ld.has(di(s))}function Zt(s){return Vt(s).getComputedStyle(s)}function Yi(s){return Xt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Ee(s){if(di(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ra(s)&&s.host||se(s);return Ra(i)?i.host:i}function qa(s){let i=Ee(s);return ci(i)?s.ownerDocument?s.ownerDocument.body:s.body:ae(i)&&ki(i)?i:qa(i)}function xi(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=qa(s),o=r===((e=s.ownerDocument)==null?void 0:e.body),n=Vt(r);if(o){let l=Or(n);return i.concat(n,n.visualViewport||[],ki(r)?r:[],l&&t?xi(l):[])}return i.concat(r,xi(r,[],t))}function Or(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Ya(s){let i=Zt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=ae(s),o=r?s.offsetWidth:t,n=r?s.offsetHeight:e,l=Ki(t)!==o||Ki(e)!==n;return l&&(t=o,e=n),{width:t,height:e,$:l}}function xs(s){return Xt(s)?s:s.contextElement}function Ei(s){let i=xs(s);if(!ae(i))return re(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:o}=Ya(i),n=(o?Ki(t.width):t.width)/e,l=(o?Ki(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var dd=re(0);function Xa(s){let i=Vt(s);return!Ar()||!i.visualViewport?dd:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function cd(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Vt(s)?!1:i}function hi(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),o=xs(s),n=re(1);i&&(e?Xt(e)&&(n=Ei(e)):n=Ei(s));let l=cd(o,t,e)?Xa(o):re(0),h=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,m=r.width/n.x,f=r.height/n.y;if(o){let y=Vt(o),b=e&&Xt(e)?Vt(e):e,w=y,T=Or(w);for(;T&&e&&b!==w;){let z=Ei(T),M=T.getBoundingClientRect(),_=Zt(T),A=M.left+(T.clientLeft+parseFloat(_.paddingLeft))*z.x,F=M.top+(T.clientTop+parseFloat(_.paddingTop))*z.y;h*=z.x,u*=z.y,m*=z.x,f*=z.y,h+=A,u+=F,w=Vt(T),T=Or(w)}}return li({width:m,height:f,x:h,y:u})}function _r(s,i){let t=Yi(s).scrollLeft;return i?i.left+t:hi(se(s)).left+t}function Za(s,i){let t=s.getBoundingClientRect(),e=t.left+i.scrollLeft-_r(s,t),r=t.top+i.scrollTop;return{x:e,y:r}}function hd(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,o=r==="fixed",n=se(e),l=i?Wi(i.floating):!1;if(e===n||l&&o)return t;let h={scrollLeft:0,scrollTop:0},u=re(1),m=re(0),f=ae(e);if((f||!f&&!o)&&((di(e)!=="body"||ki(n))&&(h=Yi(e)),ae(e))){let b=hi(e);u=Ei(e),m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}let y=n&&!f&&!o?Za(n,h):re(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+m.x+y.x,y:t.y*u.y-h.scrollTop*u.y+m.y+y.y}}function ud(s){return Array.from(s.getClientRects())}function pd(s){let i=se(s),t=Yi(s),e=s.ownerDocument.body,r=Pt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),o=Pt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+_r(s),l=-t.scrollTop;return Zt(e).direction==="rtl"&&(n+=Pt(i.clientWidth,e.clientWidth)-r),{width:r,height:o,x:n,y:l}}var Ka=25;function md(s,i){let t=Vt(s),e=se(s),r=t.visualViewport,o=e.clientWidth,n=e.clientHeight,l=0,h=0;if(r){o=r.width,n=r.height;let m=Ar();(!m||m&&i==="fixed")&&(l=r.offsetLeft,h=r.offsetTop)}let u=_r(e);if(u<=0){let m=e.ownerDocument,f=m.body,y=getComputedStyle(f),b=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(e.clientWidth-f.clientWidth-b);w<=Ka&&(o-=w)}else u<=Ka&&(o+=u);return{width:o,height:n,x:l,y:h}}var fd=new Set(["absolute","fixed"]);function gd(s,i){let t=hi(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,o=ae(s)?Ei(s):re(1),n=s.clientWidth*o.x,l=s.clientHeight*o.y,h=r*o.x,u=e*o.y;return{width:n,height:l,x:h,y:u}}function ja(s,i,t){let e;if(i==="viewport")e=md(s,t);else if(i==="document")e=pd(se(s));else if(Xt(i))e=gd(i,t);else{let r=Xa(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return li(e)}function Qa(s,i){let t=Ee(s);return t===i||!Xt(t)||ci(t)?!1:Zt(t).position==="fixed"||Qa(t,i)}function bd(s,i){let t=i.get(s);if(t)return t;let e=xi(s,[],!1).filter(l=>Xt(l)&&di(l)!=="body"),r=null,o=Zt(s).position==="fixed",n=o?Ee(s):s;for(;Xt(n)&&!ci(n);){let l=Zt(n),h=Dr(n);!h&&l.position==="fixed"&&(r=null),(o?!h&&!r:!h&&l.position==="static"&&!!r&&fd.has(r.position)||ki(n)&&!h&&Qa(s,n))?e=e.filter(m=>m!==n):r=l,n=Ee(n)}return i.set(s,e),e}function vd(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?Wi(i)?[]:bd(i,this._c):[].concat(t),e],l=n[0],h=n.reduce((u,m)=>{let f=ja(i,m,r);return u.top=Pt(f.top,u.top),u.right=he(f.right,u.right),u.bottom=he(f.bottom,u.bottom),u.left=Pt(f.left,u.left),u},ja(i,l,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function yd(s){let{width:i,height:t}=Ya(s);return{width:i,height:t}}function wd(s,i,t){let e=ae(i),r=se(i),o=t==="fixed",n=hi(s,!0,o,i),l={scrollLeft:0,scrollTop:0},h=re(0);function u(){h.x=_r(r)}if(e||!e&&!o)if((di(i)!=="body"||ki(r))&&(l=Yi(i)),e){let b=hi(i,!0,o,i);h.x=b.x+i.clientLeft,h.y=b.y+i.clientTop}else r&&u();o&&!e&&r&&u();let m=r&&!e&&!o?Za(r,l):re(0),f=n.left+l.scrollLeft-h.x-m.x,y=n.top+l.scrollTop-h.y-m.y;return{x:f,y,width:n.width,height:n.height}}function ws(s){return Zt(s).position==="static"}function Wa(s,i){if(!ae(s)||Zt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return se(s)===t&&(t=t.ownerDocument.body),t}function Ga(s,i){let t=Vt(s);if(Wi(s))return t;if(!ae(s)){let r=Ee(s);for(;r&&!ci(r);){if(Xt(r)&&!ws(r))return r;r=Ee(r)}return t}let e=Wa(s,i);for(;e&&Na(e)&&ws(e);)e=Wa(e,i);return e&&ci(e)&&ws(e)&&!Dr(e)?t:e||Ua(s)||t}var xd=async function(s){let i=this.getOffsetParent||Ga,t=this.getDimensions,e=await t(s.floating);return{reference:wd(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function kd(s){return Zt(s).direction==="rtl"}var Ed={convertOffsetParentRelativeRectToViewportRelativeRect:hd,getDocumentElement:se,getClippingRect:vd,getOffsetParent:Ga,getElementRects:xd,getClientRects:ud,getDimensions:yd,getScale:Ei,isElement:Xt,isRTL:kd};function Ja(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function Cd(s,i){let t=null,e,r=se(s);function o(){var l;clearTimeout(e),(l=t)==null||l.disconnect(),t=null}function n(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),o();let u=s.getBoundingClientRect(),{left:m,top:f,width:y,height:b}=u;if(l||i(),!y||!b)return;let w=ji(f),T=ji(r.clientWidth-(m+y)),z=ji(r.clientHeight-(f+b)),M=ji(m),A={rootMargin:-w+"px "+-T+"px "+-z+"px "+-M+"px",threshold:Pt(0,he(1,h))||1},F=!0;function D(j){let X=j[0].intersectionRatio;if(X!==h){if(!F)return n();X?n(!1,X):e=setTimeout(()=>{n(!1,1e-7)},1e3)}X===1&&!Ja(u,s.getBoundingClientRect())&&n(),F=!1}try{t=new IntersectionObserver(D,vt(B({},A),{root:r.ownerDocument}))}catch(j){t=new IntersectionObserver(D,A)}t.observe(s)}return n(!0),o}function to(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=xs(s),m=r||o?[...u?xi(u):[],...xi(i)]:[];m.forEach(M=>{r&&M.addEventListener("scroll",t,{passive:!0}),o&&M.addEventListener("resize",t)});let f=u&&l?Cd(u,t):null,y=-1,b=null;n&&(b=new ResizeObserver(M=>{let[_]=M;_&&_.target===u&&b&&(b.unobserve(i),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(i)})),t()}),u&&!h&&b.observe(u),b.observe(i));let w,T=h?hi(s):null;h&&z();function z(){let M=hi(s);T&&!Ja(T,M)&&t(),T=M,w=requestAnimationFrame(z)}return t(),()=>{var M;m.forEach(_=>{r&&_.removeEventListener("scroll",t),o&&_.removeEventListener("resize",t)}),f==null||f(),(M=b)==null||M.disconnect(),b=null,h&&cancelAnimationFrame(w)}}var eo=Ha;var io=Va,ro=Pa,ks=Fa;var so=Ia;var ao=(s,i,t)=>{let e=new Map,r=B({platform:Ed},t),o=vt(B({},r.platform),{_c:e});return _a(s,i,vt(B({},r),{platform:o}))};var G=class extends g{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=to(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=[eo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ks({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ro({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(io({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ks({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(so({element:this.arrowEl,padding:this.arrowPadding})),ao(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:o,placement:n})=>{let l=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=o.arrow.x,m=o.arrow.y,f="",y="",b="",w="";if(this.arrowPlacement==="start"){let T=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",y=l?T:"",w=l?"":T}else if(this.arrowPlacement==="end"){let T=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";y=l?"":T,w=l?T:"",b=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(w=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(w=typeof u=="number"?`${u}px`:"",f=typeof m=="number"?`${m}px`:"");Object.assign(this.arrowEl.style,{top:f,right:y,bottom:b,left:w,[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>`}};G.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
189
|
+
: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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],a([v('[part="popup"]')],G.prototype,"popup",2),a([v('[part="arrow"]')],G.prototype,"arrowEl",2),a([d({reflect:!0})],G.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],G.prototype,"active",2),a([d({type:String,reflect:!0})],G.prototype,"placement",2),a([d({type:String,reflect:!0})],G.prototype,"strategy",2),a([d({type:Number,reflect:!0})],G.prototype,"distance",2),a([d({type:Number,reflect:!0})],G.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],G.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],G.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],G.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],G.prototype,"flip",2),a([d({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],G.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],G.prototype,"flipFallbackStrategy",2),a([d({type:Object})],G.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],G.prototype,"flipPadding",2),a([d({type:Boolean})],G.prototype,"shift",2),a([d({type:Object})],G.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],G.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],G.prototype,"autoSize",2),a([d()],G.prototype,"sync",2),a([d({type:Object})],G.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],G.prototype,"autoSizePadding",2),G=a([k("sd-6-4-1-popup")],G);function oo(s,i){let t=s;for(;t;){if(t.matches(i))return t;if(t.parentElement)t=t.parentElement;else if(t.parentNode instanceof ShadowRoot)t=t.parentNode.host;else break}return null}var ht=class extends g{constructor(){super(...arguments);this.localize=new O(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(o=>Cr(o).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-6-4-1-button":case"sd-6-4-1-icon-button":r=e.button;break;case"sd-6-4-1-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-6-4-1-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-6-4-1-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{let r=ii();(!r||!this.containingElement||oo(r,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;ee(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-6-4-1-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){if(this.open){let t=this.getMenu();if(t){let e=t.getCurrentItem();e==null||e.classList.remove("menu-item-focus")}this.hide()}else this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.handleTriggerClick();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),o=r.find(l=>!l.disabled)||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(o),o.focus(),o.classList.add("menu-item-focus")),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus(),n.classList.add("menu-item-focus"))}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-6-4-1-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-6-4-1-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 Y(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=q(this,"dropdown.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Y(this);let{keyframes:t,options:e}=q(this,"dropdown.hide",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return p`<sd-6-4-1-popup part="base" id="dropdown" exportparts="
|
|
190
190
|
popup:base__popup,
|
|
191
|
-
" 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"><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("panel-color-border border shadow bg-white block",this.open?"pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-6-
|
|
192
|
-
: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:100%}#dropdown[data-current-placement^=right]::part(popup){transform-origin:0}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],a([v("#dropdown")],ht.prototype,"popup",2),a([v("[part=trigger]")],ht.prototype,"trigger",2),a([v("[part=panel]")],ht.prototype,"panel",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"rounded",2),a([d({type:String,reflect:!0})],ht.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),a([d({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],ht.prototype,"stayOpenOnSelect",2),a([d({type:Object})],ht.prototype,"containingElement",2),a([d({type:Number,reflect:!0})],ht.prototype,"distance",2),a([d({type:Number,reflect:!0})],ht.prototype,"skidding",2),a([d({type:Boolean,reflect:!0,attribute:"no-auto-size"})],ht.prototype,"noAutoSize",2),a([d({type:Boolean,reflect:!0,attribute:"no-flip"})],ht.prototype,"noFlip",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"hoist",2),a([E("open",{waitUntilFirstUpdate:!0})],ht.prototype,"handleOpenChange",1),ht=a([k("sd-6-
|
|
193
|
-
:host{position:relative;display:block}::slotted(sd-6-
|
|
194
|
-
::slotted(sd-6-
|
|
195
|
-
:host{display:inline-flex;align-items:center}sd-6-
|
|
196
|
-
:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],Ce=a([k("sd-6-3-0-carousel-item")],Ce);var J=class extends g{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.fade=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Ir(this,()=>this.next());this.scrollController=new Xi(this);this.slides=this.getElementsByTagName("sd-6-3-0-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new O(this);this.userInteracted=!1;this.fadeController=new Pr(this);this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(o=>Ce.isCarouselItem(o)&&!o.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 o=r.target;o.toggleAttribute("inert",!r.isIntersecting),o.classList.toggle("--in-view",r.isIntersecting),o.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)),this.fade&&this.fadeController.disable()}async firstUpdated(){if((()=>{let e=this.getSlides({excludeClones:!1});return e.length>0&&e[0].getBoundingClientRect().width>0})())this.initializeSlides();else{let e=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&o.target.getBoundingClientRect().width>0&&(this.initializeSlides(),e.disconnect())})});e.observe(this)}this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1}),this.fade&&(await this.updateComplete,this.fadeController.enable())}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,o){return Math.ceil((t-r)/o)-Math.ceil((t-r-e)/o)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter(e=>!t||!e.hasAttribute("data-clone"))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=t.target,r=this.localize.dir()==="rtl",o=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",l=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),l&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then(()=>{var u;let h=(u=this.shadowRoot)==null?void 0:u.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){if(this.fade)return;let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(o=>o.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let o=Number(r.target.getAttribute("data-clone"));this.goToSlide(o,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}handleFocus(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","polite")}handleBlur(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","off")}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"))}handleFadeChange(){this.fade?this.fadeController.enable():this.fadeController.disable()}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,o)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",o+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop&&!this.fade){let r=this.slidesPerPage,o=t.slice(-r),n=t.slice(0,r);o.reverse().forEach((l,h)=>{let u=l.cloneNode(!0);u.setAttribute("data-clone",String(t.length-h-1)),this.prepend(u)}),n.forEach((l,h)=>{let u=l.cloneNode(!0);u.setAttribute("data-clone",String(h)),this.append(u)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.fade&&this.updateComplete.then(()=>{this.fadeController.enable()}),this.fade||this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((o,n)=>{o.classList.toggle("--is-active",n===this.activeSlide)}),this.fade&&this.fadeController.updateActiveSlide(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(){if(this.fade)return;let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,o)=>{Math.abs(o-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"){if(this.fade){let o=this.loop?(this.activeSlide-1+this.getSlides().length)%this.getSlides().length:Math.max(0,this.activeSlide-1);this.goToSlide(o);return}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"){if(this.fade){let e=this.loop?(this.activeSlide+1)%this.getSlides().length:Math.min(this.getSlides().length-1,this.activeSlide+1);this.goToSlide(e);return}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"){if(this.fade){this.goToSlide(0);return}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:o,scrollContainer:n,fade:l}=this,h=this.getSlides(),u=this.getSlides({excludeClones:!1}),m=(t+h.length)%h.length;if(this.activeSlide=m,l)return;let f=no(t+(o?r:0),0,u.length+1),y=u[f],b=n.getBoundingClientRect(),w=y.getBoundingClientRect();if(n.scrollTo({left:w.left-b.left+n.scrollLeft,top:w.top-b.top+n.scrollTop,behavior:Fi()?"auto":e}),this.userInteracted&&!this.loop){let T=this.activeSlide===h.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,z=this.activeSlide===0;T?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),o=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||o>1,l=this.loop||o<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 max-h-full w-full items-center justify-items-center",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.fade?"relative overflow-hidden":"grid overflow-auto overscroll-x-contain grid-flow-col auto-rows-[100%] snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",Array.from(this.slides).filter(u=>!u.hasAttribute("data-clone")).length)}" aria-live="${this.autoplay?"off":"polite"}" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><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 transition-colors duration-fast ease-in-out",!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"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-6-3-0-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${h?"chevron-down":"chevron-up"}"></sd-6-3-0-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">${lo(co(r),u=>{let m=u+1===o;return p`<button part="pagination-item ${m?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",m?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${m?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${f=>{this.goToSlide(u*e),this.unblockAutoplay(f,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border sd-6-3-0-carousel__pager-dot-border-width rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",this.inverted?"sd-6-3-0-carousel__pager-dot--inverted-border hover:border-primary-200":"border-primary hover:border-primary-500",m&&"border-none",m?this.inverted?"sd-6-3-0-carousel__pager-dot--inverted-background hover:sd-6-3-0-carousel__pager-dot--inverted--hovered-background":"sd-6-3-0-carousel__pager-dot-background 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",this.inverted?"text-white sd-6-3-0-carousel--active--inverted-color-border":"text-black sd-6-3-0-carousel--active-color-border")}">${o}</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="${!l}" class="${c("!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!l&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${l?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${l?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-6-3-0-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${h?"chevron-up":"chevron-down"}"></sd-6-3-0-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-6-3-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-6-3-0-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-6-3-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-6-3-0-icon></slot></button></div></div>`}};J.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
197
|
-
: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));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-6-
|
|
198
|
-
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],a([v('input[type="checkbox"]')],ot.prototype,"input",2),a([v("#invalid-message")],ot.prototype,"invalidMessage",2),a([d({type:String,reflect:!0})],ot.prototype,"title",2),a([d({type:String,reflect:!0})],ot.prototype,"name",2),a([d()],ot.prototype,"value",2),a([d({type:String,reflect:!0})],ot.prototype,"size",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],ot.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"indeterminate",2),a([Rt("checked")],ot.prototype,"defaultChecked",2),a([d({type:String,reflect:!0})],ot.prototype,"form",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"required",2),a([L()],ot.prototype,"showInvalidStyle",2),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],ot.prototype,"handleDisabledChange",1),a([E(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],ot.prototype,"handleStateChange",1),ot=a([k("sd-6-
|
|
199
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-
|
|
200
|
-
:host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],a([v("a, button, div")],Mt.prototype,"tag",2),a([d({type:String,reflect:!0})],Mt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"selected",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"toggleable",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"removable",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2),a([d({type:String,reflect:!0})],Mt.prototype,"href",2),a([d({type:String,reflect:!0})],Mt.prototype,"target",2),a([d({reflect:!0})],Mt.prototype,"download",2),Mt=a([k("sd-6-
|
|
191
|
+
" 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"><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("panel-color-border border shadow bg-white block",this.open?"pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-6-4-1-popup>`}};ht.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
192
|
+
: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:100%}#dropdown[data-current-placement^=right]::part(popup){transform-origin:0}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],a([v("#dropdown")],ht.prototype,"popup",2),a([v("[part=trigger]")],ht.prototype,"trigger",2),a([v("[part=panel]")],ht.prototype,"panel",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"rounded",2),a([d({type:String,reflect:!0})],ht.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),a([d({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],ht.prototype,"stayOpenOnSelect",2),a([d({type:Object})],ht.prototype,"containingElement",2),a([d({type:Number,reflect:!0})],ht.prototype,"distance",2),a([d({type:Number,reflect:!0})],ht.prototype,"skidding",2),a([d({type:Boolean,reflect:!0,attribute:"no-auto-size"})],ht.prototype,"noAutoSize",2),a([d({type:Boolean,reflect:!0,attribute:"no-flip"})],ht.prototype,"noFlip",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"hoist",2),a([E("open",{waitUntilFirstUpdate:!0})],ht.prototype,"handleOpenChange",1),ht=a([k("sd-6-4-1-dropdown")],ht);R("dropdown.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("dropdown.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var Ft=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.label="";this.itemPositionsCached=!1;this.isTruncated=!1}get items(){return this.querySelectorAll("sd-6-4-1-breadcrumb-item")}cacheItemPositions(){this.items.forEach(t=>{let{width:e}=t.getBoundingClientRect();t.dataset.size=`${e}`}),this.itemPositionsCached=!0}handleTruncation(){var o;if(document.documentElement.clientWidth<=1024)return;let{width:t}=this.base.getBoundingClientRect(),{width:e}=this.truncated.getBoundingClientRect();this.itemPositionsCached||this.cacheItemPositions(),this.dropdown.innerHTML="",this.isTruncated=!1;let r=0;for(let[n,l]of Array.from(this.items).reverse().entries()){let h=parseFloat(`${(o=l.dataset.size)!=null?o:l.getBoundingClientRect().width}`);if(l.hidden=!1,this.isTruncated){let u=l.cloneNode(!0);this.dropdown.prepend(u),l.hidden=!0;continue}if(n===0||n===1){r+=h;continue}if(this.isTruncated=r+h+e>t,this.isTruncated){let u=l.cloneNode(!0);this.dropdown.prepend(u),l.hidden=!0}else r+=h}}handleMobileChevron(){var e,r,o;let t=document.createElement("sd-6-4-1-icon");t.setAttribute("slot","icon-left"),t.setAttribute("library","_internal"),t.setAttribute("name","chevron-left"),t.setAttribute("class","text-base me-1 lg:hidden"),(o=(r=(e=Array.from(this.items).at(-2))==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("sd-6-4-1-link"))==null||o.appendChild(t)}handleSlotChange(){this.handleMobileChevron()}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.handleTruncation()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){return p`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-6-4-1-dropdown part="truncated" class="${c(!this.isTruncated&&"absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated?"0":"-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-6-4-1-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`}};Ft.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
193
|
+
:host{position:relative;display:block}::slotted(sd-6-4-1-breadcrumb-item:not(:last-of-type))::after,sd-6-4-1-dropdown::after{margin-inline:var(--sd-spacing-2);display:none;height:var(--sd-spacing-1);width:var(--sd-spacing-1);border-radius:var(--sd-radius-full);background-color:rgba(var(--sd-breadcrumb__separator-color,rgba(var(--sd-color-neutral-400))));--tw-content:'';content:var(--tw-content)}@media (width >= 64rem){::slotted(sd-6-4-1-breadcrumb-item:not(:last-of-type))::after,sd-6-4-1-dropdown::after{display:inline-block}}::slotted(sd-6-4-1-breadcrumb-item:nth-last-child(2)){display:flex}@media (width >= 64rem){::slotted(sd-6-4-1-breadcrumb-item:nth-last-child(2))::after{background-color:rgba(var(--sd-color-background-accent))}}::slotted(sd-6-4-1-breadcrumb-item),sd-6-4-1-dropdown{display:none;align-items:center;font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}@media (width >= 64rem){::slotted(sd-6-4-1-breadcrumb-item),sd-6-4-1-dropdown{display:flex}}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],a([v('[part="base"]')],Ft.prototype,"base",2),a([v('[part="truncated"]')],Ft.prototype,"truncated",2),a([v('[part="truncated-dropdown"]')],Ft.prototype,"dropdown",2),a([v("slot")],Ft.prototype,"defaultSlot",2),a([d({type:String,reflect:!0})],Ft.prototype,"label",2),a([L()],Ft.prototype,"itemPositionsCached",2),a([L()],Ft.prototype,"isTruncated",2),Ft=a([k("sd-6-4-1-breadcrumb")],Ft);var Ht=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(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(this.standalone?"flex items-start":"inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:focus-outline":"",{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:interactive--active-color-text focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"])}" 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>`}};Ht.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
194
|
+
::slotted(sd-6-4-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-6-4-1-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-6-4-1-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`],a([v("a")],Ht.prototype,"button",2),a([d({type:Boolean,reflect:!0})],Ht.prototype,"standalone",2),a([d({type:String,reflect:!0})],Ht.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Ht.prototype,"inverted",2),a([d({type:String,reflect:!0})],Ht.prototype,"href",2),a([d({type:Boolean,attribute:"visually-disabled",reflect:!0})],Ht.prototype,"visuallyDisabled",2),a([d({type:String,reflect:!0})],Ht.prototype,"target",2),a([d({reflect:!0})],Ht.prototype,"download",2),Ht=a([k("sd-6-4-1-link")],Ht);var Qt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.href="";this.current=!1}handleCurrentChange(){var t,e;!this.base||!this.current||(e=(t=this.base.shadowRoot)==null?void 0:t.querySelector("a"))==null||e.setAttribute("aria-current","page")}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","listitem"),super.connectedCallback()}firstUpdated(){requestAnimationFrame(()=>this.handleCurrentChange())}render(){return p`<sd-6-4-1-link part="base" href="${C(this.current?void 0:this.href)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-6-4-1-link>`}};Qt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
195
|
+
:host{display:inline-flex;align-items:center}sd-6-4-1-link::part(base){align-items:center}sd-6-4-1-link::part(icon-left){margin-right:calc(var(--sd-spacing-1) * 0);display:inline-flex}:host([current]) sd-6-4-1-link::part(base){color:rgba(var(--sd-color-text-neutral-700))}:host([current]) sd-6-4-1-link::part(label){text-decoration-line:none}`],a([v('[part="base"]')],Qt.prototype,"base",2),a([d({type:String,reflect:!0})],Qt.prototype,"href",2),a([d({type:String,reflect:!0})],Qt.prototype,"target",2),a([d({type:Boolean,reflect:!0})],Qt.prototype,"current",2),a([E("current")],Qt.prototype,"handleCurrentChange",1),Qt=a([k("sd-6-4-1-breadcrumb-item")],Qt);var Ir=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 no(s,i,t){let e=r=>Object.is(r,-0)?0:r;return s<i?e(i):s>t?e(t):e(s)}var Pr=class{constructor(i){this.heightCalculated=!1;this.isEnabled=!1;this.isCalculating=!1;this.fadeClasses={base:["absolute","top-0","left-0","w-full","h-full","visible","transition-opacity","duration-x-slow","ease-in-out"],active:["opacity-100","z-[1]"],inactive:["opacity-0","z-0"]};this.handleResize=()=>{this.isEnabled&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isEnabled&&(this.heightCalculated=!1,this.calculateHeight())},250))};this.carousel=i}enable(){this.isEnabled||(this.isEnabled=!0,this.calculateHeight(),window.addEventListener("resize",this.handleResize))}disable(){this.isEnabled&&(this.isEnabled=!1,this.removeFadeStyles(),this.carousel.style.removeProperty("--carousel-height"),this.carousel.scrollContainer&&this.carousel.scrollContainer.style.removeProperty("height"),this.heightCalculated=!1,this.isCalculating=!1,window.removeEventListener("resize",this.handleResize),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0))}updateActiveSlide(i){if(!this.isEnabled)return;this.carousel.getSlides().forEach((e,r)=>{r===i?this.show(e):this.hide(e)})}show(i){if(!this.isEnabled)return;let t=i.classList;t.remove(...this.getAllFadeClasses()),t.add(...this.fadeClasses.base,...this.fadeClasses.active),i.removeAttribute("inert"),i.setAttribute("aria-hidden","false")}hide(i){if(!this.isEnabled)return;let t=i.classList;t.remove(...this.getAllFadeClasses()),t.add(...this.fadeClasses.base,...this.fadeClasses.inactive),i.toggleAttribute("inert",!0),i.setAttribute("aria-hidden","true")}removeFadeStyles(){this.carousel.getSlides().forEach(t=>{t.classList.remove(...this.getAllFadeClasses()),t.removeAttribute("inert"),t.removeAttribute("aria-hidden")})}getAllFadeClasses(){return[...this.fadeClasses.base,...this.fadeClasses.active,...this.fadeClasses.inactive]}calculateHeight(){if(this.heightCalculated||!this.isEnabled||this.isCalculating)return;let i=this.carousel.getSlides(),t=this.carousel.scrollContainer;if(i.length===0||!t)return;this.isCalculating=!0,t.style.removeProperty("height"),this.carousel.style.removeProperty("--carousel-height");let e=i.map(r=>{let o=r,n={position:o.style.position,opacity:o.style.opacity,zIndex:o.style.zIndex,transform:o.style.transform,classes:o.className};return o.classList.remove(...this.getAllFadeClasses()),o.classList.add("relative","opacity-1","z-auto","transform-none"),n});requestAnimationFrame(()=>{if(!this.isEnabled){this.isCalculating=!1;return}let r=i.map(n=>n.getBoundingClientRect().height),o=Math.max(...r);i.forEach((n,l)=>{let h=n,u=e[l];h.className=u.classes,["position","opacity","zIndex","transform"].forEach(m=>{let f=u[m];f?h.style.setProperty(m,f):h.style.removeProperty(m)})}),o>0&&(this.carousel.style.setProperty("--carousel-height",`${o}px`),t.style.height=`${o}px`,this.heightCalculated=!0,this.updateActiveSlide(this.carousel.activeSlide)),this.isCalculating=!1})}recalculateHeight(){this.isEnabled&&(this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=void 0),this.heightCalculated=!1,this.calculateHeight())}};function*lo(s,i){if(s!==void 0){let t=0;for(let e of s)yield i(e,t++)}}function*co(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 ho=Symbol(),Ci=s=>(i,t,e)=>{let r=e.value;e.value=function(...o){clearTimeout(this[ho]),this[ho]=window.setTimeout(()=>{r.apply(this,o)},s)}};var Xi=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 o=t.scrollLeft,n=t.scrollTop;t.style.setProperty("scroll-snap-type","unset"),t.scrollTo({left:e,top:r,behavior:"auto"}),t.scrollTo({left:o,top:n,behavior:Fi()?"auto":"smooth"}),this.scrolling&&await Z(t,"scrollend"),t.style.removeProperty("scroll-snap-type"),i.requestUpdate()}};a([Ci(100)],Xi.prototype,"handleScrollEnd",1);var Ce=class extends g{static isCarouselItem(i){return i instanceof Element&&i.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return p`<slot></slot>`}};Ce.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
196
|
+
:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],Ce=a([k("sd-6-4-1-carousel-item")],Ce);var J=class extends g{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.fade=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Ir(this,()=>this.next());this.scrollController=new Xi(this);this.slides=this.getElementsByTagName("sd-6-4-1-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new O(this);this.userInteracted=!1;this.fadeController=new Pr(this);this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(o=>Ce.isCarouselItem(o)&&!o.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 o=r.target;o.toggleAttribute("inert",!r.isIntersecting),o.classList.toggle("--in-view",r.isIntersecting),o.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)),this.fade&&this.fadeController.disable()}async firstUpdated(){if((()=>{let e=this.getSlides({excludeClones:!1});return e.length>0&&e[0].getBoundingClientRect().width>0})())this.initializeSlides();else{let e=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&o.target.getBoundingClientRect().width>0&&(this.initializeSlides(),e.disconnect())})});e.observe(this)}this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1}),this.fade&&(await this.updateComplete,this.fadeController.enable())}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,o){return Math.ceil((t-r)/o)-Math.ceil((t-r-e)/o)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter(e=>!t||!e.hasAttribute("data-clone"))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=t.target,r=this.localize.dir()==="rtl",o=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",l=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),l&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then(()=>{var u;let h=(u=this.shadowRoot)==null?void 0:u.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){if(this.fade)return;let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(o=>o.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let o=Number(r.target.getAttribute("data-clone"));this.goToSlide(o,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}handleFocus(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","polite")}handleBlur(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","off")}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"))}handleFadeChange(){this.fade?this.fadeController.enable():this.fadeController.disable()}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,o)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",o+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop&&!this.fade){let r=this.slidesPerPage,o=t.slice(-r),n=t.slice(0,r);o.reverse().forEach((l,h)=>{let u=l.cloneNode(!0);u.setAttribute("data-clone",String(t.length-h-1)),this.prepend(u)}),n.forEach((l,h)=>{let u=l.cloneNode(!0);u.setAttribute("data-clone",String(h)),this.append(u)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.fade&&this.updateComplete.then(()=>{this.fadeController.enable()}),this.fade||this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((o,n)=>{o.classList.toggle("--is-active",n===this.activeSlide)}),this.fade&&this.fadeController.updateActiveSlide(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(){if(this.fade)return;let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,o)=>{Math.abs(o-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"){if(this.fade){let o=this.loop?(this.activeSlide-1+this.getSlides().length)%this.getSlides().length:Math.max(0,this.activeSlide-1);this.goToSlide(o);return}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"){if(this.fade){let e=this.loop?(this.activeSlide+1)%this.getSlides().length:Math.min(this.getSlides().length-1,this.activeSlide+1);this.goToSlide(e);return}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"){if(this.fade){this.goToSlide(0);return}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:o,scrollContainer:n,fade:l}=this,h=this.getSlides(),u=this.getSlides({excludeClones:!1}),m=(t+h.length)%h.length;if(this.activeSlide=m,l)return;let f=no(t+(o?r:0),0,u.length+1),y=u[f],b=n.getBoundingClientRect(),w=y.getBoundingClientRect();if(n.scrollTo({left:w.left-b.left+n.scrollLeft,top:w.top-b.top+n.scrollTop,behavior:Fi()?"auto":e}),this.userInteracted&&!this.loop){let T=this.activeSlide===h.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,z=this.activeSlide===0;T?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),o=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||o>1,l=this.loop||o<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 max-h-full w-full items-center justify-items-center",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.fade?"relative overflow-hidden":"grid overflow-auto overscroll-x-contain grid-flow-col auto-rows-[100%] snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",Array.from(this.slides).filter(u=>!u.hasAttribute("data-clone")).length)}" aria-live="${this.autoplay?"off":"polite"}" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><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 transition-colors duration-fast ease-in-out",!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"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-6-4-1-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${h?"chevron-down":"chevron-up"}"></sd-6-4-1-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">${lo(co(r),u=>{let m=u+1===o;return p`<button part="pagination-item ${m?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",m?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${m?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${f=>{this.goToSlide(u*e),this.unblockAutoplay(f,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border sd-6-4-1-carousel__pager-dot-border-width rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",this.inverted?"sd-6-4-1-carousel__pager-dot--inverted-border hover:border-primary-200":"border-primary hover:border-primary-500",m&&"border-none",m?this.inverted?"sd-6-4-1-carousel__pager-dot--inverted-background hover:sd-6-4-1-carousel__pager-dot--inverted--hovered-background":"sd-6-4-1-carousel__pager-dot-background 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",this.inverted?"text-white sd-6-4-1-carousel--active--inverted-color-border":"text-black sd-6-4-1-carousel--active-color-border")}">${o}</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="${!l}" class="${c("!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!l&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${l?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${l?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-6-4-1-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${h?"chevron-up":"chevron-down"}"></sd-6-4-1-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-6-4-1-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-6-4-1-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-6-4-1-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-6-4-1-icon></slot></button></div></div>`}};J.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
197
|
+
: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));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-6-4-1-button::part(label){pointer-events:none;display:flex;flex:auto;align-items:center}#carousel__navigation-button--next,#carousel__navigation-button--previous{color:rgba(var(--sd-color-icon-fill-primary))}#carousel__navigation-button--next:disabled,#carousel__navigation-button--previous:disabled{color:rgba(var(--sd-color-icon-fill-neutral-500))}:host([inverted]) #carousel__navigation-button--next,:host([inverted]) #carousel__navigation-button--previous{color:rgba(var(--sd-color-icon-fill-white))}:host([inverted]) #carousel__navigation-button--next:disabled,:host([inverted]) #carousel__navigation-button--previous:disabled{color:rgba(var(--sd-color-icon-fill-neutral-600))}`],a([v('[part~="autoplay-controls"]')],J.prototype,"autoplayControls",2),a([v('[part~="navigation-button--previous"]')],J.prototype,"previousButton",2),a([v('[part~="navigation-button--next"]')],J.prototype,"nextButton",2),a([br('[part~="pagination-item"]')],J.prototype,"paginationItems",2),a([d({type:String,reflect:!0})],J.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],J.prototype,"inverted",2),a([d({type:Boolean,reflect:!0})],J.prototype,"loop",2),a([d({type:Boolean,reflect:!0})],J.prototype,"autoplay",2),a([d({type:Boolean,reflect:!0})],J.prototype,"fade",2),a([d({type:Number,attribute:"slides-per-page",reflect:!0})],J.prototype,"slidesPerPage",2),a([d({type:Number,attribute:"slides-per-move",reflect:!0})],J.prototype,"slidesPerMove",2),a([v("slot:not([name])")],J.prototype,"defaultSlot",2),a([v(".carousel__slides")],J.prototype,"scrollContainer",2),a([v(".carousel__pagination")],J.prototype,"paginationContainer",2),a([L()],J.prototype,"activeSlide",2),a([L()],J.prototype,"currentPage",2),a([L()],J.prototype,"pausedAutoplay",2),a([E("pausedAutoplay")],J.prototype,"handlePausedAutoplay",1),a([E("fade",{waitUntilFirstUpdate:!0})],J.prototype,"handleFadeChange",1),a([E("loop",{waitUntilFirstUpdate:!0}),E("slidesPerPage",{waitUntilFirstUpdate:!0})],J.prototype,"initializeSlides",1),a([E("activeSlide")],J.prototype,"handleSlideChange",1),a([E("slidesPerMove")],J.prototype,"handleSlidesPerMoveChange",1),a([E("autoplay")],J.prototype,"handleAutoplayChange",1),J=a([k("sd-6-4-1-carousel")],J);var Rt=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(o,n,l){var m;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(o===u){let f=h.converter||Oe,b=(typeof f=="function"?f:(m=f==null?void 0:f.fromAttribute)!=null?m:Oe.fromAttribute)(l,h.type);this[s]!==b&&(this[t]=b)}r.call(this,o,n,l)}};var{I:I0}=ia;var Hr=s=>s.strings===void 0;var $d={},uo=(s,i=$d)=>s._$AH=i;var $e=te(class extends Ie{constructor(s){if(super(s),s.type!==Kt.PROPERTY&&s.type!==Kt.ATTRIBUTE&&s.type!==Kt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Hr(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===zt||i===W)return i;let t=s.element,e=s.name;if(s.type===Kt.PROPERTY){if(i===t[e])return zt}else if(s.type===Kt.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return zt}else if(s.type===Kt.ATTRIBUTE&&t.getAttribute(e)===i+"")return zt;return uo(s),i}});var ot=class extends g{constructor(){super(...arguments);this.formControlController=new dt(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`<div class="flex flex-col"><label part="base" class="${c("sd-6-4-1-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="${$e(this.indeterminate)}" .checked="${$e(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 sd-6-4-1-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","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:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}"><div part="checkbox" class="${c("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${c("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"group-hover:bg-neutral-200",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}"></div></div>${this.checked?p`<sd-6-4-1-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-4-1-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-6-4-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-4-1-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><div id="invalid-icon-message" part="invalid-icon-message" class="${c("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?p`<sd-6-4-1-icon id="invalid-icon" part="invalid-icon" class="${c("text-error")}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};ot.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
198
|
+
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],a([v('input[type="checkbox"]')],ot.prototype,"input",2),a([v("#invalid-message")],ot.prototype,"invalidMessage",2),a([d({type:String,reflect:!0})],ot.prototype,"title",2),a([d({type:String,reflect:!0})],ot.prototype,"name",2),a([d()],ot.prototype,"value",2),a([d({type:String,reflect:!0})],ot.prototype,"size",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],ot.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"indeterminate",2),a([Rt("checked")],ot.prototype,"defaultChecked",2),a([d({type:String,reflect:!0})],ot.prototype,"form",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"required",2),a([L()],ot.prototype,"showInvalidStyle",2),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],ot.prototype,"handleDisabledChange",1),a([E(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],ot.prototype,"handleStateChange",1),ot=a([k("sd-6-4-1-checkbox")],ot);var jt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-6-4-1-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-6-4-1-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-6-4-1-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"),o=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,l=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||l?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> ${l?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",o?"block":"hidden")}" aria-hidden="${!o}">${this.helpText}</slot>`}};jt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
199
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-4-1-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-4-1-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-4-1-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-4-1-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-4-1-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-4-1-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`],a([d({type:String,reflect:!0})],jt.prototype,"size",2),a([d({type:String,reflect:!0})],jt.prototype,"orientation",2),a([d({type:String,reflect:!0})],jt.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],jt.prototype,"helpText",2),a([E("size",{waitUntilFirstUpdate:!0})],jt.prototype,"handleSizeChange",1),a([E("invalid",{waitUntilFirstUpdate:!0})],jt.prototype,"handleInvalid",1),jt=a([k("sd-6-4-1-checkbox-group")],jt);var Mt=class extends g{constructor(){super(...arguments);this.localize=new O(this);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")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),e=this.removable&&!this.selected&&!this.toggleable,r=t?et`a`:e?et`div`:et`button`;return U`<${r} 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-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${C(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||e?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("flex border box-border sd-6-4-1-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-6-4-1-tag-font-weight sd-6-4-1-tag--size-lg-font-size gap-2",sm:"h-6 sd-6-4-1-tag-font-weight sd-6-4-1-tag--size-sm-font-size gap-1"}[this.size],{lg:e?"pl-4 pr-3 py-2":"px-4 py-2",sm:e?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"sd-6-4-1-tag--selected-border-width sd-6-4-1-tag--selected--default-color-background sd-6-4-1-tag--selected--default-color-border sd-6-4-1-tag--selected--default-color-text hover:sd-6-4-1-tag--selected--hover-color-background hover:sd-6-4-1-tag--selected--hover-color-border hover:sd-6-4-1-tag--selected--hover-color-text disabled:bg-neutral-500 disabled:sd-6-4-1-tag--disabled-color-border":c("sd-6-4-1-tag--default-color-border sd-6-4-1-tag--default-color-text disabled:sd-6-4-1-tag--disabled-color-border disabled:text-neutral-500",e?"sd-6-4-1-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-6-4-1-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-6-4-1-tag--default--hover-color-background"),this.disabled&&!t&&"cursor-not-allowed")}"><slot name="icon-left" class="${c("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${e&&!t?U`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-6-4-1-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-6-4-1-icon></slot></button>`:""}</${r}>`}};Mt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
200
|
+
:host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],a([v("a, button, div")],Mt.prototype,"tag",2),a([d({type:String,reflect:!0})],Mt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"selected",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"toggleable",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"removable",2),a([d({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2),a([d({type:String,reflect:!0})],Mt.prototype,"href",2),a([d({type:String,reflect:!0})],Mt.prototype,"target",2),a([d({reflect:!0})],Mt.prototype,"download",2),Mt=a([k("sd-6-4-1-tag")],Mt);var po=s=>s;var Es=s=>Array.from(s.assignedElements({flatten:!0})),Td=s=>s.tagName.toLocaleLowerCase()==="sd-6-4-1-option"?s:Array.from(s.querySelectorAll(":scope > sd-6-4-1-option")),Ld=s=>s.tagName.toLocaleLowerCase()==="sd-6-4-1-optgroup",mo=s=>s.map(Td),fo=s=>s.filter(Ld),Vr=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var S=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-6-4-1-input"]});this.hasSlotController=new P(this,"help-text","label");this.localize=new O(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";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.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=po;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Vr(t.value),o=Vr(t.getTextLabel()),n=Vr(e);return r.includes(n)||o.includes(n)};this.getTag=t=>p`<sd-6-4-1-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
201
201
|
base:tag__base,
|
|
202
202
|
content:tag__content,
|
|
203
203
|
removable-indicator:tag__removable-indicator,
|
|
204
|
-
" size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-6-
|
|
204
|
+
" size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-6-4-1-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let r=t.composedPath().some(l=>l instanceof HTMLButtonElement&&l.classList.contains("combobox-button"));if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(!(r||t.target.closest(".combobox__clear")!==null)){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(t.key==="Enter"){let l=this.getCurrentOption(),h=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!h){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||l!=null&&l.disabled)return;if(l&&!l.disabled){let u=this.value;this.multiple?(this.toggleOptionSelection(l),this.lastOption=l,this.setOrderedSelectedOptions(l),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(l),this.setSelectedOptions(l)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==u&&(this.emit("sd-input"),this.emit("sd-change"))})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let r=this.displayInput.value,o=this.getOption(e,r);return e.tabIndex=0,p`${typeof o=="string"?Hi(o):o}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-6-4-1-optgroup"?(Array.from(e.children).forEach(r=>{r.tagName.toLowerCase()==="sd-6-4-1-option"&&t(r)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let r=this.getTag(t,e);return p`<div @sd-remove="${o=>this.handleTagRemove(o,t)}">${typeof r=="string"?Hi(r):r}</div>`}return[p``]}):[p`<sd-6-4-1-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
205
205
|
base:tag__base,
|
|
206
206
|
content:tag__content,
|
|
207
207
|
removable-indicator:tag__removable-indicator,
|
|
208
|
-
" 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-6-3-0-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"||t.key==="Enter"||t.key===" ")&&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"||t.key==="Enter"||t.key===" ")&&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.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),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-6-3-0-option"),o=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!==o&&(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(),o=e.indexOf(r),n=Math.max(0,o);if(t){let l=o+1;n=l>e.length-1?0:l}else{let l=o-1;n=l<0?e.length-1:l}this.setCurrentOption(e[n],new KeyboardEvent("keydown")),ee(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-6-3-0-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let r=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),r.forEach(o=>{o.current=!1,o.setAttribute("aria-selected","false"),o.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let o=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());o&&(o.selected=e!=null?e:!o.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,o;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=((o=this.selectedOptions[0])==null?void 0:o.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 f,y,b;let o=r.cloneNode(!0);if(o.current=o.value===((f=this.lastOption)==null?void 0:f.value),o.selected=r.selected,o.checkbox=r.checkbox,o.size=r.size,!(((y=r.parentElement)==null?void 0:y.tagName.toLowerCase())==="sd-6-3-0-optgroup"))return o;let l=r.parentElement,h=(b=l.querySelector('[slot="label"]'))==null?void 0:b.cloneNode(!0),u=e.find(w=>w.id===l.id);if(u){u==null||u.appendChild(o),h&&(u==null||u.appendChild(h));return}let m=l.cloneNode();return m.appendChild(o),h&&m.appendChild(h),e.push(m),m}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-6-3-0-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 Y(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:r,options:o}=q(this,"combobox.show",{dir:this.localize.dir()});await K(this.popup.popup,r,o),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 Y(this);let{keyframes:t,options:e}=q(this,"combobox.hide",{dir:this.localize.dir()});await K(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([Z(this,"sd-after-show"),Z(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,Z(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 mo(Es(this.defaultSlot)).flat()}getSlottedOptGroups(){return fo(Es(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-6-3-0-option")){customElements.whenDefined("sd-6-3-0-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((o,n)=>{this.multiple&&(o.checkbox=!0),o.id=o.id||`sd-6-3-0-combobox-option-${n}`}),e.forEach((o,n)=>{o.id=o.id||`sd-6-3-0-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"),o=this.label?!0:!!e,n=this.helpText?!0:!!r,l=this.clearable&&!this.disabled&&!this.visuallyDisabled,h=t.left,u=this.value!==null&&String(this.value).length>0,m=this.floatingLabel&&o&&(this.hasFocus||u),f=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"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",y=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",b=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],T={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],z={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],M=this.size==="lg"?this.floatingLabel?m?"py-3":"py-4":"py-2":this.floatingLabel?m?"py-2":"py-3":"py-1",_={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c("relative text-left",y,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${o&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${o&&"inline-block form-control-color-text"}" aria-hidden="${o?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${o&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",h?_:"left-4",m?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",m&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",m&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[f],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-6-3-0-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="
|
|
208
|
+
" 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-6-4-1-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"||t.key==="Enter"||t.key===" ")&&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"||t.key==="Enter"||t.key===" ")&&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.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),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-6-4-1-option"),o=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!==o&&(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(),o=e.indexOf(r),n=Math.max(0,o);if(t){let l=o+1;n=l>e.length-1?0:l}else{let l=o-1;n=l<0?e.length-1:l}this.setCurrentOption(e[n],new KeyboardEvent("keydown")),ee(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-6-4-1-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let r=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),r.forEach(o=>{o.current=!1,o.setAttribute("aria-selected","false"),o.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let o=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());o&&(o.selected=e!=null?e:!o.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,o;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=((o=this.selectedOptions[0])==null?void 0:o.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 f,y,b;let o=r.cloneNode(!0);if(o.current=o.value===((f=this.lastOption)==null?void 0:f.value),o.selected=r.selected,o.checkbox=r.checkbox,o.size=r.size,!(((y=r.parentElement)==null?void 0:y.tagName.toLowerCase())==="sd-6-4-1-optgroup"))return o;let l=r.parentElement,h=(b=l.querySelector('[slot="label"]'))==null?void 0:b.cloneNode(!0),u=e.find(w=>w.id===l.id);if(u){u==null||u.appendChild(o),h&&(u==null||u.appendChild(h));return}let m=l.cloneNode();return m.appendChild(o),h&&m.appendChild(h),e.push(m),m}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-6-4-1-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 Y(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:r,options:o}=q(this,"combobox.show",{dir:this.localize.dir()});await K(this.popup.popup,r,o),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 Y(this);let{keyframes:t,options:e}=q(this,"combobox.hide",{dir:this.localize.dir()});await K(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([Z(this,"sd-after-show"),Z(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,Z(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 mo(Es(this.defaultSlot)).flat()}getSlottedOptGroups(){return fo(Es(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-6-4-1-option")){customElements.whenDefined("sd-6-4-1-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((o,n)=>{this.multiple&&(o.checkbox=!0),o.id=o.id||`sd-6-4-1-combobox-option-${n}`}),e.forEach((o,n)=>{o.id=o.id||`sd-6-4-1-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"),o=this.label?!0:!!e,n=this.helpText?!0:!!r,l=this.clearable&&!this.disabled&&!this.visuallyDisabled,h=t.left,u=this.value!==null&&String(this.value).length>0,m=this.floatingLabel&&o&&(this.hasFocus||u),f=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"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",y=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",b=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],T={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],z={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],M=this.size==="lg"?this.floatingLabel?m?"py-3":"py-4":"py-2":this.floatingLabel?m?"py-2":"py-3":"py-1",_={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c("relative text-left",y,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${o&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${o&&"inline-block form-control-color-text"}" aria-hidden="${o?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${o&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",h?_:"left-4",m?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",m&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",m&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[f],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-6-4-1-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="
|
|
209
209
|
popup:popup__content,
|
|
210
|
-
"><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(f)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],M)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${c("inline-flex",T,b,z)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${c("flex items-center gap-1",T,this.floatingLabel&&"mt-4")}">${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",y,this.selectedTextLabel&&!this.multiple?"placeholder:form-control-color-text":"placeholder:text-neutral-700",this.size==="sm"?m?"h-4":"h-6":m?"h-6":"h-8",m&&"leading-none mt-4")}" type="text" placeholder="${!this.floatingLabel||m?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(A=>A==null?void 0:A.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",y)}" 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}"> ${l?p`<button part="clear-button" class="${c("flex justify-center",w,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-6-
|
|
211
|
-
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-
|
|
212
|
-
:host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-3-0-divider[orientation=horizontal]){display:block}:host(sd-6-3-0-divider[orientation=vertical]){display:inline-block}`],a([d({type:String,reflect:!0})],Te.prototype,"orientation",2),a([d({type:Boolean,reflect:!0})],Te.prototype,"inverted",2),Te=a([k("sd-6-3-0-divider")],Te);var $={startOfDayLocal:s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()),isSameDay:(s,i)=>!s||!i?!1:s.getFullYear()===i.getFullYear()&&s.getMonth()===i.getMonth()&&s.getDate()===i.getDate(),clampDateToMonth:(s,i)=>{let t=new Date(i.getFullYear(),i.getMonth(),1),e=new Date(i.getFullYear(),i.getMonth()+1,0);return s<t?t:s>e?e:s},toLocalISODate:s=>{let i=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),e=String(s.getDate()).padStart(2,"0");return`${i}-${t}-${e}`},parseLocalISO:s=>{if(!s)return null;let i,t,e;if(/^\d{4}-\d{2}-\d{2}$/.test(s)){let o=s.split("-");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else if(/^\d{4}\.\d{2}\.\d{2}$/.test(s)){let o=s.split(".");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else return null;let r=new Date(i,t,e);return Number.isNaN(r.getTime())?null:r},compareDates:(s,i)=>{let t=$.startOfDayLocal(s).getTime(),e=$.startOfDayLocal(i).getTime();return t-e},isBetweenInclusive:(s,i,t)=>{let e=$.compareDates(i,t)<=0?i:t,r=$.compareDates(i,t)<=0?t:i;return $.compareDates(s,e)>=0&&$.compareDates(s,r)<=0}};var Zi={fromAttribute(s){if(!s)return null;let t=s.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,r=new Date(+t[1],+t[2]-1,+t[3]);return r.getFullYear()!==+t[1]||r.getMonth()!==+t[2]-1||r.getDate()!==+t[3]?null:e},toAttribute(s){return s!=null?s:""}},zd={fromAttribute(s){if(!s)return[];let i=[],t=s.trim();if(t.startsWith("["))try{let r=JSON.parse(t);Array.isArray(r)&&(i=r.map(String))}catch(r){return[]}else i=t.split(/[\s,]+/).map(r=>r.trim()).filter(Boolean);let e=[];for(let r of i){let n=r.replace(/[-/]/g,".").split(".");if(n.length!==3)continue;let[l,h,u]=n.map(Number);if(!l||!h||!u)continue;let m=new Date(l,h-1,u);if(m.getFullYear()!==l||m.getMonth()!==h-1||m.getDate()!==u)continue;let f=`${l}-${String(h).padStart(2,"0")}-${String(u).padStart(2,"0")}`;e.push(f)}return e},toAttribute(s){return s?s.join(","):""}},I=class extends g{constructor(){super();this.localize=new O(this);this.hasSlotController=new P(this,"label","help-text","tooltip");this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-6-3-0-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=$.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(o=>{var n,l;return o instanceof HTMLElement&&(((n=o.classList)==null?void 0:n.contains("nav"))||((l=o.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,u,m,f;if(this.disabled||this.visuallyDisabled){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,r=e.value,o=(u=e.selectionStart)!=null?u:r.length,n=(m=t.inputType)==null?void 0:m.startsWith("delete");if(this.range){let y=r.replace(/\D/g,""),b=y.slice(0,8),w=y.slice(8,16),T=this.buildDmyFromDigits(b),z=this.buildDmyFromDigits(w),M;b.length===0?M="":b.length<8?M=T:w.length>0?M=`${T} - ${z}`:M=n?T:`${T} -`;let _=this.countDigitsBeforeCaret(r,o),A;if(_<=8){let D=this.digitIndexToDmyCaretPos(Math.min(_,8));A=Math.min(D,T.length)}else{let D=b.length<8?T.length:T.length+3,j=Math.min(_-8,8),X=this.digitIndexToDmyCaretPos(j);A=D+Math.min(X,z.length)}this.inputValue=M;let F=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(T)){let D=this.dmyToIso(T),j=D?$.parseLocalISO(D):null;!!j&&!this.isDisabled(j)&&this.inMinMax(j)&&this.rangeStart!==D&&(this.rangeStart=D,this.previewEnd=null,this.viewMonth=new Date(j.getFullYear(),j.getMonth(),1),this.focusedDate=$.startOfDayLocal(j),F=!0)}else this.rangeStart&&(this.rangeStart=null,F=!0),this.rangeEnd&&(this.rangeEnd=null,F=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(z)&&this.rangeStart){let D=$.parseLocalISO(this.rangeStart),j=this.dmyToIso(z),X=j?$.parseLocalISO(j):null;if(!!X&&!this.isDisabled(X)&&this.inMinMax(X)){let[wt,it]=$.compareDates(D,X)<=0?[D,X]:[X,D],Ot=$.isSameDay(wt,it);if((this.allowSameDayRange||!Ot)&&!this.wouldRangeContainDisabled(wt,it)){let $t=$.toLocalISODate($.startOfDayLocal(wt)),mt=$.toLocalISODate($.startOfDayLocal(it));(this.rangeStart!==$t||this.rangeEnd!==mt)&&(this.rangeStart=$t,this.rangeEnd=mt,this.viewMonth=new Date(it.getFullYear(),it.getMonth(),1),this.focusedDate=$.startOfDayLocal(it),F=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,F=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),F&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var j;let D=(j=this.input)!=null?j:e;D&&(D.value=this.inputValue,D.setSelectionRange(A,A))})})}else{let y=e,b=y.value,w=(f=y.selectionStart)!=null?f:b.length,T=b.replace(/\D/g,"").slice(0,8),z=T.slice(0,2),M=T.slice(2,4),_=T.slice(4,8),A="";z.length>0&&(A+=z,z.length===2&&(A+=".")),M.length>0&&z.length===2&&(A+=M,M.length===2&&(A+=".")),_.length>0&&z.length===2&&M.length===2&&(A+=_),A=A.replace(/\.\.+/g,".");let F=this.inputValue||"";this.inputValue=A;let D=w,j=tt=>{let $t=[];for(let mt=0;mt<tt.length;mt++)tt[mt]==="."&&$t.push(mt);return $t},X=j(F),Ct=j(A),wt=X.filter(tt=>tt<w).length,Ot=Ct.filter(tt=>tt<w).length-wt;if(Ot>0?D+=Ot:!X.includes(w)&&Ct.includes(w)&&(D+=1),D=Math.min(Math.max(0,D),A.length),requestAnimationFrame(()=>{var $t;let tt=($t=this.input)!=null?$t:y;tt&&(tt.value=this.inputValue,tt.setSelectionRange(D,D))}),/^\d{2}\.\d{2}\.\d{4}$/.test(A)){let tt=this.parseInputText(A);this.applyParsedInput(tt)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let y=this.rangeStart?$.parseLocalISO(this.rangeStart):null,b=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;y&&!b?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(y)}`):y&&b&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(y)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(b)}`)}else if(this.value){let y=$.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(y)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{this.currentPlacement=t.detail.placement};this.handleHeaderKeyDown=(t,e,r,o)=>{if(t.key==="Tab"&&!t.shiftKey){o&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(r):this.setYear(r))};this.onKeyDown=t=>{if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let e=t.key,r=!0,o=new Date(this.focusedDate);switch(e){case"ArrowLeft":o.setDate(o.getDate()-1);break;case"ArrowRight":o.setDate(o.getDate()+1);break;case"ArrowUp":o.setDate(o.getDate()-7);break;case"ArrowDown":o.setDate(o.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:r=!1}if(r){if(t.preventDefault(),o.getMonth()!==this.viewMonth.getMonth()||o.getFullYear()!==this.viewMonth.getFullYear()){this.viewMonth=new Date(o.getFullYear(),o.getMonth(),1);let u=this.formatMonthYear(this.viewMonth);this.setNavStatus(u)}let l=$.startOfDayLocal(o);(!this.focusedDate||l.getTime()!==this.focusedDate.getTime())&&(this.focusedDate=l);let h=l.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(h),this.requestUpdate(),requestAnimationFrame(()=>{let u=this.shadowRoot,m=u==null?void 0:u.querySelector("button.day.focused");m==null||m.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?$.parseLocalISO(this.value):null,e=this.rangeStart?$.parseLocalISO(this.rangeStart):null,r=this.range&&e?e:t!=null?t:$.startOfDayLocal(new Date);this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=$.clampDateToMonth(r,this.viewMonth),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?$.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=$.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var r;let e=this.input;if(e){e.value=(r=this.inputValue)!=null?r:"";let o=e.value.length;e.setSelectionRange(o,o)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?$.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null,r=t!=null?t:e;r&&(this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=$.startOfDayLocal(r)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let o=this.input;if(o){o.value=(n=this.inputValue)!=null?n:"";let l=o.value.length;o.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return $.parseLocalISO(t)}inMinMax(t){let e=this.min===null?null:this.parseISO(String(this.min)),r=this.max===null?null:this.parseISO(String(this.max));return!(e&&t<e||r&&t>r)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),n=`${e}-${r}-${o}`;return this.disabledDatesSet.has(n)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let r="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+r},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),r=this.ordinal(e),o=t.toLocaleDateString("en-US",{month:"long"}),n=t.getFullYear();return`${r} of ${o} ${n}`}ordinal(t){let e=["th","st","nd","rd"],r=t%100,o=e[(r-20)%10]||e[r]||e[0];return t+o}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let r=JSON.parse(e);Array.isArray(r)&&(t=r)}catch(r){t=[]}else e.length>0&&(t=e.split(",").map(r=>r.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let r=$.compareDates(t,e)<=0?$.startOfDayLocal(t):$.startOfDayLocal(e),o=$.compareDates(t,e)<=0?$.startOfDayLocal(e):$.startOfDayLocal(t),n=new Date(r);for(;$.compareDates(n,o)<=0;){if(this.isDisabled(n))return!0;n.setDate(n.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=$.parseLocalISO(t);if(e||(e=$.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getFullYear());return`${r}.${o}.${n}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let r=Number(e[1]),o=Number(e[2]),n=Number(e[3]),l=new Date(n,o-1,r);if(l.getFullYear()!==n||l.getMonth()!==o-1||l.getDate()!==r)return null;let h=$.startOfDayLocal(l);return $.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),o=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let n=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return n&&l?`${n} ${o} ${l}`:n&&!l?`${n} ${o}`:""}parseInputText(t){var o,n;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let u=this.dmyToIso(h);return u?{start:u,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(o=l[0])!=null?o:"",u=(n=l[1])!=null?n:"",m=h?this.dmyToIso(h):null,f=u?this.dmyToIso(u):null;return h&&!m?{start:null,end:null,valid:!1}:u&&!f?{start:null,end:null,valid:!1}:{start:m,end:f,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let r=this.dmyToIso(e);return r?{single:r,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,u,m,f;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=y=>{if(!y)return!0;let b=$.parseLocalISO(y);return!(!this.inMinMax(b)||this.isDisabled(b))},r=!1;if(this.range){let y=(h=t.start)!=null?h:null,b=(u=t.end)!=null?u:null;if(!e(y)||b&&!e(b))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let w=y?$.parseLocalISO(y):null,T=b?$.parseLocalISO(b):null;if(w&&T){if($.compareDates(w,T)>0){let _=w;w=T,T=_}if(!this.allowSameDayRange&&$.isSameDay(w,T))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(w,T))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let z=w?$.toLocalISODate($.startOfDayLocal(w)):null,M=T?$.toLocalISODate($.startOfDayLocal(T)):null;if(this.rangeStart!==z||this.rangeEnd!==M){this.rangeStart=z,this.rangeEnd=M,this.previewEnd=null,r=!0;let _=(m=w!=null?w:T)!=null?m:this.today;this.viewMonth=new Date(_.getFullYear(),_.getMonth(),1),this.focusedDate=$.startOfDayLocal(_),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let o=(f=t.single)!=null?f:null;if(!e(o))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let n=o?$.parseLocalISO(o):null,l=n?$.toLocalISODate($.startOfDayLocal(n)):null;return this.value!==l&&(this.value=l,r=!0,n&&(this.viewMonth=new Date(n.getFullYear(),n.getMonth(),1),this.focusedDate=$.startOfDayLocal(n)),this.emit("sd-select",{detail:{value:this.value,date:n!=null?n:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),r}buildDmyFromDigits(t){let e=t.slice(0,8),r=e.slice(0,2),o=e.slice(2,4),n=e.slice(4,8),l=r;return o.length&&(l+="."+o),n.length&&(l+="."+n),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var r,o;((o=(r=t.composedPath)==null?void 0:r.call(t))!=null?o:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.emit("sd-focus")}setMonth(t){let e=new Date(this.viewMonth.getFullYear(),this.viewMonth.getMonth()+t,1);if(e.getMonth()===this.viewMonth.getMonth()&&e.getFullYear()===this.viewMonth.getFullYear())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-change",{detail:{month:this.viewMonth}})}setYear(t){let e=new Date(this.viewMonth.getFullYear()+t,this.viewMonth.getMonth(),1);if(e.getFullYear()===this.viewMonth.getFullYear()&&e.getMonth()===this.viewMonth.getMonth())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-year",{detail:{month:this.viewMonth}})}focusInitialGridDay(){let t=null;if(!this.range&&this.value){let r=$.parseLocalISO(this.value);r&&(t=$.startOfDayLocal(r))}if(this.range){let r=this.rangeStart?$.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;o?t=$.startOfDayLocal(o):r&&(t=$.startOfDayLocal(r))}if(!(r=>r?r.getFullYear()===this.viewMonth.getFullYear()&&r.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(r):!1)(t)){let{weeks:r}=this.getMonthMatrix(this.viewMonth),o=r.flat().find(n=>n.getMonth()===this.viewMonth.getMonth()&&$.isSameDay(n,this.today)&&!this.isDisabled(n));if(o)t=$.startOfDayLocal(o);else{let n=r.flat().find(l=>l.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(l));t=n?$.startOfDayLocal(n):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let r=this.shadowRoot,o=(r==null?void 0:r.querySelector("button.day.selected"))||(r==null?void 0:r.querySelector("button.day.focused"))||(r==null?void 0:r.querySelector('button.day[tabindex="0"]'))||(r==null?void 0:r.querySelector("button.day"));o==null||o.focus({preventScroll:!0})})}selectSingleDate(t){if(this.isDisabled(t))return;let e=$.startOfDayLocal(t),r=$.toLocalISODate(e);if(this.value===r)return;this.value=r;let o=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(o),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let n=this.input;n&&(n.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=n.value.length;n.setSelectionRange(h,h)})}))})}selectRangeDate(t){let e=$.startOfDayLocal(t),r=this.rangeStart?$.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;if(!r&&!o){if(this.isDisabled(e))return;this.rangeStart=$.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))});return}if(r&&!o){if(this.isDisabled(e))return;if($.isSameDay(r,e)){if(!this.allowSameDayRange){this.rangeStart=$.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let y=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${y}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var w;let b=this.input;b&&(b.value=(w=this.inputValue)!=null?w:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let T=b.value.length;b.setSelectionRange(T,T)})}))});return}this.rangeStart=$.toLocalISODate(e),this.rangeEnd=$.toLocalISODate(e),this.previewEnd=null;let f=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${f}`,40),this.announceSelect(`${this.termEndSelected()}: ${f}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var b;let y=this.input;y&&(y.value=(b=this.inputValue)!=null?b:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let w=y.value.length;y.setSelectionRange(w,w)})}))});return}let n=$.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(n,e))return;let[l,h]=$.compareDates(n,e)<=0?[n,e]:[e,n];this.rangeStart=$.toLocalISODate(l),this.rangeEnd=$.toLocalISODate(h),this.previewEnd=null;let u=this.formatSelectionLabel(l),m=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${u}`,40),this.announceSelect(`${this.termEndSelected()}: ${m}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var y;let f=this.input;f&&(f.value=(y=this.inputValue)!=null?y:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let b=f.value.length;f.setSelectionRange(b,b)})}))});return}if(r&&o){if(this.isDisabled(e))return;this.rangeStart=$.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))})}}selectDate(t){this.range?this.selectRangeDate(t):this.selectSingleDate(t)}getMonthMatrix(t){var m;let e=(m=this.firstDayOfWeek)!=null?m:1,r=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(r),n=(r.getDay()-e+7)%7;o.setDate(r.getDate()-n);let l=[],h=o;for(let f=0;f<6;f++){let y=[];for(let b=0;b<7;b++)y.push(new Date(h)),h.setDate(h.getDate()+1);l.push(y)}let u=f=>f.every(y=>y.getMonth()!==t.getMonth());for(;l.length>0&&u(l[l.length-1]);)l.pop();return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var o;let t=(o=this.firstDayOfWeek)!=null?o:1,e=new Date(2021,7,1),r=[];for(let n=0;n<7;n++){let l=new Date(e);l.setDate(e.getDate()+(t+n)%7);try{r.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){r.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return r}getTabTargetDayForCurrentView(t){let e=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&$.isSameDay(o,this.today)&&!this.isDisabled(o));if(e)return $.startOfDayLocal(e);let r=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(o));return r?$.startOfDayLocal(r):null}onDayMouseEnter(t){if(!this.range)return;let e=this.rangeStart?$.parseLocalISO(this.rangeStart):null,r=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;if(e&&!r){let o=$.startOfDayLocal(t);this.previewEnd=this.isDisabled(o)?null:o,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){let{weeks:t}=this.getMonthMatrix(this.viewMonth),e=this.formatMonthYear(this.viewMonth),r=this.weekdayLabels(),o=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,l=this.rangeEnd?this.parseISO(this.rangeEnd):null,h=this.previewEnd,u=f=>!this.range||!n||l||!h?!1:$.isBetweenInclusive(f,n,h),m=this.getTabTargetDayForCurrentView(t);return p`<div part="datepicker" class="w-[284px] z-50 absolute top-full bg-white border-2 border-t-0 border-primary py-3 px-4 ${this.open?"block rounded-bl-default rounded-br-default":"hidden"} ${this.alignment==="left"?"left-0":"right-0"}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-6-3-0-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-3-0-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-3-0-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-3-0-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${e}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-3-0-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-3-0-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-6-3-0-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-3-0-icon></button></div></div><sd-6-3-0-divider></sd-6-3-0-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${e}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${r.map((f,y)=>p`<div role="columnheader" aria-colindex="${y+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${f}" title="${f}" id="${"col-"+(y+1)}">${f}</div>`)}</div>${t.map((f,y)=>p`<div class="grid-row grid grid-cols-7 ${y===0?"mt-2":""}" role="row" aria-rowindex="${y+2}">${f.map((b,w)=>{let T=b.getMonth()===this.viewMonth.getMonth(),z=this.isDisabled(b)||!this.inMinMax(b),M=$.isSameDay(b,this.focusedDate),_=$.isSameDay(b,this.today),A=!this.range&&o?$.isSameDay(b,o):!1,F=this.range&&n?$.isSameDay(b,n):!1,D=this.range&&l?$.isSameDay(b,l):!1,j=this.range&&n&&l?$.isBetweenInclusive(b,n,l):!1,X=u(b)&&!z,Ct=-1,wt=m&&$.isSameDay(b,m);(this.tabbingIntoGrid&&wt||!this.tabbingIntoGrid&&M)&&(Ct=0);let it=this.isWeekend(b),Ot=b.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),tt=F?this.localize.term("startDateSelected"):D?this.localize.term("endDateSelected"):void 0;return p`<button type="button" part="day" class="${c("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded-md w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",F||D?"hover:bg-primary-500":"hover:bg-primary-100 hover:text-primary-500",T?this.isInDisabledDates(b)||!this.inMinMax(b)?"out-month text-neutral-500":this.disabledWeekends&&it?"weekend-day text-neutral-500":"in-month text-primary":this.disabledWeekends&&it?"out-month weekend-day text-neutral-500":it?"out-month weekend-day text-neutral-700":"out-month text-neutral-700",A?"selected border-primary bg-primary text-white hover:bg-primary-500 hover:text-white":"",F?"bg-primary text-white rounded-l-md rounded-r-none":"",D?"bg-primary text-white range-end rounded-r-md rounded-l-none":"",j&&!F&&!D?"in-range selected bg-primary-100 text-primary-500 rounded-none hover:bg-primary-500 hover:text-white":"",!j&&X&&!F&&!D?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",_&&!A&&!F&&!D&&M?"today border-[1px] border-primary font-bold":"",z?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",M&&!_?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${w+1}" aria-labelledby="${"col-"+(w+1)}" .tabIndex="${Ct}" ?disabled="${z||this.disabled}" aria-disabled="${z||this.visuallyDisabled||this.disabled?"true":"false"}" aria-selected="${A||j||F||D?"true":"false"}" aria-current="${_?"date":W}" aria-label="${Ot}" aria-roledescription="${tt!=null?tt:W}" @focus="${()=>this.focusedDate=$.startOfDayLocal(b)}" @mouseenter="${()=>this.onDayMouseEnter(b)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=$.startOfDayLocal(b),this.selectDate(b)}}">${b.getDate()}</button>`})}</div>`)}</div></div>`}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,o=!!t.tooltip,n=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||n)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",u={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],f=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":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",y={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"}[f],b=this.size==="sm"?"text-sm":"text-base";return p`<div part="form-control" class="${c("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||o?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",b)}" 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.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",y,this.open&&this.alignment==="left"?"rounded-bl-none":"",this.open&&this.alignment==="right"?"rounded-br-none":"")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",l&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}</div><sd-6-3-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full")}" sync="width" auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",f==="disabled"||f==="visuallyDisabled"?"text-neutral-500":"text-black")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${r?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent hover:cursor-pointer form-control-color-text",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],b,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||l?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?p`<sd-6-3-0-icon part="invalid-icon" class="${c("text-error",u,m)}" library="_internal" name="risk"></sd-6-3-0-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-6-3-0-icon class="${c("text-success flex-shrink-0",u,m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-3-0-icon>`:""}<sd-6-3-0-icon class="${c(h,u,m,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-6-3-0-icon>${this.renderCalendar()}</div></sd-6-3-0-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};I.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
213
|
-
:host{position:relative;display:inline-block;width:100%;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}`],a([d({type:String,reflect:!0})],I.prototype,"locale",2),a([d({type:String,converter:Zi,reflect:!0})],I.prototype,"value",2),a([d({type:Boolean,reflect:!0})],I.prototype,"range",2),a([d({attribute:"range-start",converter:Zi,reflect:!0})],I.prototype,"rangeStart",2),a([d({attribute:"range-end",converter:Zi,reflect:!0})],I.prototype,"rangeEnd",2),a([d({type:Boolean})],I.prototype,"allowSameDayRange",2),a([d({type:String,converter:Zi,reflect:!0})],I.prototype,"min",2),a([d({type:String,converter:Zi,reflect:!0})],I.prototype,"max",2),a([d({type:Number})],I.prototype,"firstDayOfWeek",2),a([d({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],I.prototype,"disabledWeekends",2),a([d({attribute:"disabled-dates",converter:zd})],I.prototype,"disabledDates",2),a([d({attribute:!1})],I.prototype,"isDateDisabled",2),a([d({type:String,reflect:!0})],I.prototype,"size",2),a([d({type:String})],I.prototype,"alignment",2),a([d({type:String,reflect:!0})],I.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],I.prototype,"helpText",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],I.prototype,"floatingLabel",2),a([d({type:Boolean,reflect:!0})],I.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],I.prototype,"required",2),a([d({type:Boolean,attribute:"visually-disabled"})],I.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],I.prototype,"styleOnValid",2),a([d({type:Boolean,reflect:!0})],I.prototype,"readonly",2),a([d({type:String,reflect:!0})],I.prototype,"placement",2),a([d({type:String,reflect:!0})],I.prototype,"placeholder",2),a([d({reflect:!0})],I.prototype,"name",2),a([d({type:String,reflect:!0})],I.prototype,"form",2),a([L()],I.prototype,"open",2),a([L()],I.prototype,"viewMonth",2),a([L()],I.prototype,"focusedDate",2),a([L()],I.prototype,"today",2),a([L()],I.prototype,"disabledDatesSet",2),a([L()],I.prototype,"previewEnd",2),a([L()],I.prototype,"statusNavText",2),a([L()],I.prototype,"statusSelectText",2),a([L()],I.prototype,"hasFocus",2),a([L()],I.prototype,"showValidStyle",2),a([L()],I.prototype,"showInvalidStyle",2),a([L()],I.prototype,"currentPlacement",2),a([L()],I.prototype,"inputValue",2),a([v("#invalid-message")],I.prototype,"invalidMessage",2),a([v("#input")],I.prototype,"input",2),a([E("locale")],I.prototype,"handleLocaleChange",1),a([E("disabledDates")],I.prototype,"handleDisabledDatesChange",1),a([E("value")],I.prototype,"handleValueChange",1),a([E("rangeStart"),E("rangeEnd")],I.prototype,"handleRangeChange",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],I.prototype,"handleDisabledChange",1),I=a([k("sd-6-
|
|
214
|
-
:host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],a([v('[part="base"]')],Bt.prototype,"dialog",2),a([v('[part="panel"]')],Bt.prototype,"panel",2),a([v('[part="overlay"]')],Bt.prototype,"overlay",2),a([d({type:Boolean,reflect:!0})],Bt.prototype,"open",2),a([d({type:String,reflect:!0})],Bt.prototype,"headline",2),a([d({attribute:"no-close-button",type:Boolean,reflect:!0})],Bt.prototype,"noCloseButton",2),a([E("open",{waitUntilFirstUpdate:!0})],Bt.prototype,"handleOpenChange",1),Bt=a([k("sd-6-
|
|
210
|
+
"><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(f)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],M)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${c("inline-flex",T,b,z)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${c("flex items-center gap-1",T,this.floatingLabel&&"mt-4")}">${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",y,this.selectedTextLabel&&!this.multiple?"placeholder:form-control-color-text":"placeholder:text-neutral-700",this.size==="sm"?m?"h-4":"h-6":m?"h-6":"h-8",m&&"leading-none mt-4")}" type="text" placeholder="${!this.floatingLabel||m?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(A=>A==null?void 0:A.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",y)}" 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}"> ${l?p`<button part="clear-button" class="${c("flex justify-center",w,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-6-4-1-icon class="${c("text-neutral-700",z)}" name="closing-round" library="_internal"></sd-6-4-1-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-6-4-1-icon part="invalid-icon" class="${c(w,z,"text-error")}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-6-4-1-icon part="valid-icon" class="${c("flex-shrink-0 text-success",w,z)}" library="_internal" name="confirm-circle"></sd-6-4-1-icon>`:""}<slot name="right" part="right" class="${c("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",z)}">${this.type!=="search"?p`<sd-6-4-1-icon class="${c("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-4-1-icon>`:""}</slot>${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button"><sd-6-4-1-icon class="${c(b,z)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-4-1-icon></button>`:p`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${C(this.multiple?void 0:"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 transition-shadow duration-medium ease-in-out",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">${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-6-4-1-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",n?"block":"hidden")}" aria-hidden="${!n}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};S.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
211
|
+
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-4-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-6-4-1-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-6-4-1-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-6-4-1-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-6-4-1-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-6-4-1-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}@property --tw-font-weight{syntax:"*";inherits:false}`],a([v("sd-6-4-1-popup")],S.prototype,"popup",2),a([v('[part="combobox"]')],S.prototype,"combobox",2),a([v('[part="display-input"]')],S.prototype,"displayInput",2),a([v(".value-input")],S.prototype,"valueInput",2),a([v('[part="listbox"]')],S.prototype,"listbox",2),a([v('[part="tags"]')],S.prototype,"tagWrapper",2),a([v('[part="filtered-listbox"]')],S.prototype,"filteredWrapper",2),a([v("slot:not([name])")],S.prototype,"defaultSlot",2),a([v("#invalid-message")],S.prototype,"invalidMessage",2),a([L()],S.prototype,"hasFocus",2),a([L()],S.prototype,"displayInputValue",2),a([L()],S.prototype,"selectedTextLabel",2),a([L()],S.prototype,"selectedOptions",2),a([L()],S.prototype,"filteredOptions",2),a([L()],S.prototype,"allOptions",2),a([L()],S.prototype,"lastOption",2),a([L()],S.prototype,"showValidStyle",2),a([L()],S.prototype,"showInvalidStyle",2),a([L()],S.prototype,"deletedTagLabel",2),a([d({reflect:!0})],S.prototype,"name",2),a([d({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],S.prototype,"value",2),a([Rt()],S.prototype,"defaultValue",2),a([d({type:String,reflect:!0})],S.prototype,"size",2),a([d({type:String,reflect:!0})],S.prototype,"placeholder",2),a([d({type:String,attribute:"max-options-tag-label",reflect:!0})],S.prototype,"maxOptionsTagLabel",2),a([d({type:Boolean,reflect:!0})],S.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],S.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],S.prototype,"clearable",2),a([d({type:Boolean,reflect:!0})],S.prototype,"open",2),a([d({type:Boolean,reflect:!0})],S.prototype,"hoist",2),a([d({type:String,reflect:!0})],S.prototype,"label",2),a([d({type:String,reflect:!0})],S.prototype,"placement",2),a([d({type:String,attribute:"help-text",reflect:!0})],S.prototype,"helpText",2),a([d({type:String,reflect:!0})],S.prototype,"form",2),a([d({type:Boolean,reflect:!0})],S.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],S.prototype,"floatingLabel",2),a([d({type:String,reflect:!0})],S.prototype,"type",2),a([L()],S.prototype,"currentPlacement",2),a([d()],S.prototype,"getOption",2),a([d({type:Boolean,reflect:!0})],S.prototype,"multiple",2),a([d({type:Boolean,reflect:!0})],S.prototype,"useTags",2),a([d({type:Number,reflect:!0,attribute:"max-options-visible"})],S.prototype,"maxOptionsVisible",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],S.prototype,"styleOnValid",2),a([d()],S.prototype,"filter",2),a([d()],S.prototype,"getTag",2),a([E("filter",{waitUntilFirstUpdate:!0})],S.prototype,"handleFilterChange",1),a([E("useTags",{waitUntilFirstUpdate:!0})],S.prototype,"handleUseTagsChange",1),a([E("size",{waitUntilFirstUpdate:!0})],S.prototype,"applySizeToOptions",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],S.prototype,"handleDisabledChange",1),a([E("value",{waitUntilFirstUpdate:!0})],S.prototype,"handleValueChange",1),a([E("displayInputValue",{waitUntilFirstUpdate:!0})],S.prototype,"handleDisplayInputValueChange",1),a([E("open",{waitUntilFirstUpdate:!0})],S.prototype,"handleOpenChange",1),S=a([k("sd-6-4-1-combobox")],S);R("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var Te=class extends g{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?"sd-6-4-1-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};Te.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
212
|
+
:host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-4-1-divider[orientation=horizontal]){display:block}:host(sd-6-4-1-divider[orientation=vertical]){display:inline-block}`],a([d({type:String,reflect:!0})],Te.prototype,"orientation",2),a([d({type:Boolean,reflect:!0})],Te.prototype,"inverted",2),Te=a([k("sd-6-4-1-divider")],Te);var $={startOfDayLocal:s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()),isSameDay:(s,i)=>!s||!i?!1:s.getFullYear()===i.getFullYear()&&s.getMonth()===i.getMonth()&&s.getDate()===i.getDate(),clampDateToMonth:(s,i)=>{let t=new Date(i.getFullYear(),i.getMonth(),1),e=new Date(i.getFullYear(),i.getMonth()+1,0);return s<t?t:s>e?e:s},toLocalISODate:s=>{let i=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),e=String(s.getDate()).padStart(2,"0");return`${i}-${t}-${e}`},parseLocalISO:s=>{if(!s)return null;let i,t,e;if(/^\d{4}-\d{2}-\d{2}$/.test(s)){let o=s.split("-");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else if(/^\d{4}\.\d{2}\.\d{2}$/.test(s)){let o=s.split(".");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else return null;let r=new Date(i,t,e);return Number.isNaN(r.getTime())?null:r},compareDates:(s,i)=>{let t=$.startOfDayLocal(s).getTime(),e=$.startOfDayLocal(i).getTime();return t-e},isBetweenInclusive:(s,i,t)=>{let e=$.compareDates(i,t)<=0?i:t,r=$.compareDates(i,t)<=0?t:i;return $.compareDates(s,e)>=0&&$.compareDates(s,r)<=0}};var Zi={fromAttribute(s){if(!s)return null;let t=s.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,r=new Date(+t[1],+t[2]-1,+t[3]);return r.getFullYear()!==+t[1]||r.getMonth()!==+t[2]-1||r.getDate()!==+t[3]?null:e},toAttribute(s){return s!=null?s:""}},zd={fromAttribute(s){if(!s)return[];let i=[],t=s.trim();if(t.startsWith("["))try{let r=JSON.parse(t);Array.isArray(r)&&(i=r.map(String))}catch(r){return[]}else i=t.split(/[\s,]+/).map(r=>r.trim()).filter(Boolean);let e=[];for(let r of i){let n=r.replace(/[-/]/g,".").split(".");if(n.length!==3)continue;let[l,h,u]=n.map(Number);if(!l||!h||!u)continue;let m=new Date(l,h-1,u);if(m.getFullYear()!==l||m.getMonth()!==h-1||m.getDate()!==u)continue;let f=`${l}-${String(h).padStart(2,"0")}-${String(u).padStart(2,"0")}`;e.push(f)}return e},toAttribute(s){return s?s.join(","):""}},I=class extends g{constructor(){super();this.localize=new O(this);this.hasSlotController=new P(this,"label","help-text","tooltip");this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-6-4-1-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=$.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(o=>{var n,l;return o instanceof HTMLElement&&(((n=o.classList)==null?void 0:n.contains("nav"))||((l=o.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,u,m,f;if(this.disabled||this.visuallyDisabled){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,r=e.value,o=(u=e.selectionStart)!=null?u:r.length,n=(m=t.inputType)==null?void 0:m.startsWith("delete");if(this.range){let y=r.replace(/\D/g,""),b=y.slice(0,8),w=y.slice(8,16),T=this.buildDmyFromDigits(b),z=this.buildDmyFromDigits(w),M;b.length===0?M="":b.length<8?M=T:w.length>0?M=`${T} - ${z}`:M=n?T:`${T} -`;let _=this.countDigitsBeforeCaret(r,o),A;if(_<=8){let D=this.digitIndexToDmyCaretPos(Math.min(_,8));A=Math.min(D,T.length)}else{let D=b.length<8?T.length:T.length+3,j=Math.min(_-8,8),X=this.digitIndexToDmyCaretPos(j);A=D+Math.min(X,z.length)}this.inputValue=M;let F=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(T)){let D=this.dmyToIso(T),j=D?$.parseLocalISO(D):null;!!j&&!this.isDisabled(j)&&this.inMinMax(j)&&this.rangeStart!==D&&(this.rangeStart=D,this.previewEnd=null,this.viewMonth=new Date(j.getFullYear(),j.getMonth(),1),this.focusedDate=$.startOfDayLocal(j),F=!0)}else this.rangeStart&&(this.rangeStart=null,F=!0),this.rangeEnd&&(this.rangeEnd=null,F=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(z)&&this.rangeStart){let D=$.parseLocalISO(this.rangeStart),j=this.dmyToIso(z),X=j?$.parseLocalISO(j):null;if(!!X&&!this.isDisabled(X)&&this.inMinMax(X)){let[wt,it]=$.compareDates(D,X)<=0?[D,X]:[X,D],Ot=$.isSameDay(wt,it);if((this.allowSameDayRange||!Ot)&&!this.wouldRangeContainDisabled(wt,it)){let $t=$.toLocalISODate($.startOfDayLocal(wt)),mt=$.toLocalISODate($.startOfDayLocal(it));(this.rangeStart!==$t||this.rangeEnd!==mt)&&(this.rangeStart=$t,this.rangeEnd=mt,this.viewMonth=new Date(it.getFullYear(),it.getMonth(),1),this.focusedDate=$.startOfDayLocal(it),F=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,F=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),F&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var j;let D=(j=this.input)!=null?j:e;D&&(D.value=this.inputValue,D.setSelectionRange(A,A))})})}else{let y=e,b=y.value,w=(f=y.selectionStart)!=null?f:b.length,T=b.replace(/\D/g,"").slice(0,8),z=T.slice(0,2),M=T.slice(2,4),_=T.slice(4,8),A="";z.length>0&&(A+=z,z.length===2&&(A+=".")),M.length>0&&z.length===2&&(A+=M,M.length===2&&(A+=".")),_.length>0&&z.length===2&&M.length===2&&(A+=_),A=A.replace(/\.\.+/g,".");let F=this.inputValue||"";this.inputValue=A;let D=w,j=tt=>{let $t=[];for(let mt=0;mt<tt.length;mt++)tt[mt]==="."&&$t.push(mt);return $t},X=j(F),Ct=j(A),wt=X.filter(tt=>tt<w).length,Ot=Ct.filter(tt=>tt<w).length-wt;if(Ot>0?D+=Ot:!X.includes(w)&&Ct.includes(w)&&(D+=1),D=Math.min(Math.max(0,D),A.length),requestAnimationFrame(()=>{var $t;let tt=($t=this.input)!=null?$t:y;tt&&(tt.value=this.inputValue,tt.setSelectionRange(D,D))}),/^\d{2}\.\d{2}\.\d{4}$/.test(A)){let tt=this.parseInputText(A);this.applyParsedInput(tt)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let y=this.rangeStart?$.parseLocalISO(this.rangeStart):null,b=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;y&&!b?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(y)}`):y&&b&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(y)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(b)}`)}else if(this.value){let y=$.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(y)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{this.currentPlacement=t.detail.placement};this.handleHeaderKeyDown=(t,e,r,o)=>{if(t.key==="Tab"&&!t.shiftKey){o&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(r):this.setYear(r))};this.onKeyDown=t=>{if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let e=t.key,r=!0,o=new Date(this.focusedDate);switch(e){case"ArrowLeft":o.setDate(o.getDate()-1);break;case"ArrowRight":o.setDate(o.getDate()+1);break;case"ArrowUp":o.setDate(o.getDate()-7);break;case"ArrowDown":o.setDate(o.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:r=!1}if(r){if(t.preventDefault(),o.getMonth()!==this.viewMonth.getMonth()||o.getFullYear()!==this.viewMonth.getFullYear()){this.viewMonth=new Date(o.getFullYear(),o.getMonth(),1);let u=this.formatMonthYear(this.viewMonth);this.setNavStatus(u)}let l=$.startOfDayLocal(o);(!this.focusedDate||l.getTime()!==this.focusedDate.getTime())&&(this.focusedDate=l);let h=l.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(h),this.requestUpdate(),requestAnimationFrame(()=>{let u=this.shadowRoot,m=u==null?void 0:u.querySelector("button.day.focused");m==null||m.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?$.parseLocalISO(this.value):null,e=this.rangeStart?$.parseLocalISO(this.rangeStart):null,r=this.range&&e?e:t!=null?t:$.startOfDayLocal(new Date);this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=$.clampDateToMonth(r,this.viewMonth),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?$.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=$.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var r;let e=this.input;if(e){e.value=(r=this.inputValue)!=null?r:"";let o=e.value.length;e.setSelectionRange(o,o)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?$.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null,r=t!=null?t:e;r&&(this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=$.startOfDayLocal(r)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let o=this.input;if(o){o.value=(n=this.inputValue)!=null?n:"";let l=o.value.length;o.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return $.parseLocalISO(t)}inMinMax(t){let e=this.min===null?null:this.parseISO(String(this.min)),r=this.max===null?null:this.parseISO(String(this.max));return!(e&&t<e||r&&t>r)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),n=`${e}-${r}-${o}`;return this.disabledDatesSet.has(n)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let r="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+r},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),r=this.ordinal(e),o=t.toLocaleDateString("en-US",{month:"long"}),n=t.getFullYear();return`${r} of ${o} ${n}`}ordinal(t){let e=["th","st","nd","rd"],r=t%100,o=e[(r-20)%10]||e[r]||e[0];return t+o}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let r=JSON.parse(e);Array.isArray(r)&&(t=r)}catch(r){t=[]}else e.length>0&&(t=e.split(",").map(r=>r.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let r=$.compareDates(t,e)<=0?$.startOfDayLocal(t):$.startOfDayLocal(e),o=$.compareDates(t,e)<=0?$.startOfDayLocal(e):$.startOfDayLocal(t),n=new Date(r);for(;$.compareDates(n,o)<=0;){if(this.isDisabled(n))return!0;n.setDate(n.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=$.parseLocalISO(t);if(e||(e=$.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getFullYear());return`${r}.${o}.${n}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let r=Number(e[1]),o=Number(e[2]),n=Number(e[3]),l=new Date(n,o-1,r);if(l.getFullYear()!==n||l.getMonth()!==o-1||l.getDate()!==r)return null;let h=$.startOfDayLocal(l);return $.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),o=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let n=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return n&&l?`${n} ${o} ${l}`:n&&!l?`${n} ${o}`:""}parseInputText(t){var o,n;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let u=this.dmyToIso(h);return u?{start:u,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(o=l[0])!=null?o:"",u=(n=l[1])!=null?n:"",m=h?this.dmyToIso(h):null,f=u?this.dmyToIso(u):null;return h&&!m?{start:null,end:null,valid:!1}:u&&!f?{start:null,end:null,valid:!1}:{start:m,end:f,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let r=this.dmyToIso(e);return r?{single:r,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,u,m,f;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=y=>{if(!y)return!0;let b=$.parseLocalISO(y);return!(!this.inMinMax(b)||this.isDisabled(b))},r=!1;if(this.range){let y=(h=t.start)!=null?h:null,b=(u=t.end)!=null?u:null;if(!e(y)||b&&!e(b))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let w=y?$.parseLocalISO(y):null,T=b?$.parseLocalISO(b):null;if(w&&T){if($.compareDates(w,T)>0){let _=w;w=T,T=_}if(!this.allowSameDayRange&&$.isSameDay(w,T))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(w,T))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let z=w?$.toLocalISODate($.startOfDayLocal(w)):null,M=T?$.toLocalISODate($.startOfDayLocal(T)):null;if(this.rangeStart!==z||this.rangeEnd!==M){this.rangeStart=z,this.rangeEnd=M,this.previewEnd=null,r=!0;let _=(m=w!=null?w:T)!=null?m:this.today;this.viewMonth=new Date(_.getFullYear(),_.getMonth(),1),this.focusedDate=$.startOfDayLocal(_),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let o=(f=t.single)!=null?f:null;if(!e(o))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let n=o?$.parseLocalISO(o):null,l=n?$.toLocalISODate($.startOfDayLocal(n)):null;return this.value!==l&&(this.value=l,r=!0,n&&(this.viewMonth=new Date(n.getFullYear(),n.getMonth(),1),this.focusedDate=$.startOfDayLocal(n)),this.emit("sd-select",{detail:{value:this.value,date:n!=null?n:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),r}buildDmyFromDigits(t){let e=t.slice(0,8),r=e.slice(0,2),o=e.slice(2,4),n=e.slice(4,8),l=r;return o.length&&(l+="."+o),n.length&&(l+="."+n),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var r,o;((o=(r=t.composedPath)==null?void 0:r.call(t))!=null?o:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.emit("sd-focus")}setMonth(t){let e=new Date(this.viewMonth.getFullYear(),this.viewMonth.getMonth()+t,1);if(e.getMonth()===this.viewMonth.getMonth()&&e.getFullYear()===this.viewMonth.getFullYear())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-change",{detail:{month:this.viewMonth}})}setYear(t){let e=new Date(this.viewMonth.getFullYear()+t,this.viewMonth.getMonth(),1);if(e.getFullYear()===this.viewMonth.getFullYear()&&e.getMonth()===this.viewMonth.getMonth())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-year",{detail:{month:this.viewMonth}})}focusInitialGridDay(){let t=null;if(!this.range&&this.value){let r=$.parseLocalISO(this.value);r&&(t=$.startOfDayLocal(r))}if(this.range){let r=this.rangeStart?$.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;o?t=$.startOfDayLocal(o):r&&(t=$.startOfDayLocal(r))}if(!(r=>r?r.getFullYear()===this.viewMonth.getFullYear()&&r.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(r):!1)(t)){let{weeks:r}=this.getMonthMatrix(this.viewMonth),o=r.flat().find(n=>n.getMonth()===this.viewMonth.getMonth()&&$.isSameDay(n,this.today)&&!this.isDisabled(n));if(o)t=$.startOfDayLocal(o);else{let n=r.flat().find(l=>l.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(l));t=n?$.startOfDayLocal(n):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let r=this.shadowRoot,o=(r==null?void 0:r.querySelector("button.day.selected"))||(r==null?void 0:r.querySelector("button.day.focused"))||(r==null?void 0:r.querySelector('button.day[tabindex="0"]'))||(r==null?void 0:r.querySelector("button.day"));o==null||o.focus({preventScroll:!0})})}selectSingleDate(t){if(this.isDisabled(t))return;let e=$.startOfDayLocal(t),r=$.toLocalISODate(e);if(this.value===r)return;this.value=r;let o=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(o),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let n=this.input;n&&(n.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=n.value.length;n.setSelectionRange(h,h)})}))})}selectRangeDate(t){let e=$.startOfDayLocal(t),r=this.rangeStart?$.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;if(!r&&!o){if(this.isDisabled(e))return;this.rangeStart=$.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))});return}if(r&&!o){if(this.isDisabled(e))return;if($.isSameDay(r,e)){if(!this.allowSameDayRange){this.rangeStart=$.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let y=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${y}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var w;let b=this.input;b&&(b.value=(w=this.inputValue)!=null?w:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let T=b.value.length;b.setSelectionRange(T,T)})}))});return}this.rangeStart=$.toLocalISODate(e),this.rangeEnd=$.toLocalISODate(e),this.previewEnd=null;let f=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${f}`,40),this.announceSelect(`${this.termEndSelected()}: ${f}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var b;let y=this.input;y&&(y.value=(b=this.inputValue)!=null?b:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let w=y.value.length;y.setSelectionRange(w,w)})}))});return}let n=$.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(n,e))return;let[l,h]=$.compareDates(n,e)<=0?[n,e]:[e,n];this.rangeStart=$.toLocalISODate(l),this.rangeEnd=$.toLocalISODate(h),this.previewEnd=null;let u=this.formatSelectionLabel(l),m=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${u}`,40),this.announceSelect(`${this.termEndSelected()}: ${m}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var y;let f=this.input;f&&(f.value=(y=this.inputValue)!=null?y:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let b=f.value.length;f.setSelectionRange(b,b)})}))});return}if(r&&o){if(this.isDisabled(e))return;this.rangeStart=$.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))})}}selectDate(t){this.range?this.selectRangeDate(t):this.selectSingleDate(t)}getMonthMatrix(t){var m;let e=(m=this.firstDayOfWeek)!=null?m:1,r=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(r),n=(r.getDay()-e+7)%7;o.setDate(r.getDate()-n);let l=[],h=o;for(let f=0;f<6;f++){let y=[];for(let b=0;b<7;b++)y.push(new Date(h)),h.setDate(h.getDate()+1);l.push(y)}let u=f=>f.every(y=>y.getMonth()!==t.getMonth());for(;l.length>0&&u(l[l.length-1]);)l.pop();return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var o;let t=(o=this.firstDayOfWeek)!=null?o:1,e=new Date(2021,7,1),r=[];for(let n=0;n<7;n++){let l=new Date(e);l.setDate(e.getDate()+(t+n)%7);try{r.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){r.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return r}getTabTargetDayForCurrentView(t){let e=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&$.isSameDay(o,this.today)&&!this.isDisabled(o));if(e)return $.startOfDayLocal(e);let r=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(o));return r?$.startOfDayLocal(r):null}onDayMouseEnter(t){if(!this.range)return;let e=this.rangeStart?$.parseLocalISO(this.rangeStart):null,r=this.rangeEnd?$.parseLocalISO(this.rangeEnd):null;if(e&&!r){let o=$.startOfDayLocal(t);this.previewEnd=this.isDisabled(o)?null:o,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){let{weeks:t}=this.getMonthMatrix(this.viewMonth),e=this.formatMonthYear(this.viewMonth),r=this.weekdayLabels(),o=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,l=this.rangeEnd?this.parseISO(this.rangeEnd):null,h=this.previewEnd,u=f=>!this.range||!n||l||!h?!1:$.isBetweenInclusive(f,n,h),m=this.getTabTargetDayForCurrentView(t);return p`<div part="datepicker" class="w-[284px] z-50 absolute top-full bg-white border-2 border-t-0 border-primary py-3 px-4 ${this.open?"block rounded-bl-default rounded-br-default":"hidden"} ${this.alignment==="left"?"left-0":"right-0"}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-6-4-1-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-4-1-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-4-1-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-4-1-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${e}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-4-1-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-4-1-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${f=>this.handleHeaderKeyDown(f,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-6-4-1-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-4-1-icon></button></div></div><sd-6-4-1-divider></sd-6-4-1-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${e}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${r.map((f,y)=>p`<div role="columnheader" aria-colindex="${y+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${f}" title="${f}" id="${"col-"+(y+1)}">${f}</div>`)}</div>${t.map((f,y)=>p`<div class="grid-row grid grid-cols-7 ${y===0?"mt-2":""}" role="row" aria-rowindex="${y+2}">${f.map((b,w)=>{let T=b.getMonth()===this.viewMonth.getMonth(),z=this.isDisabled(b)||!this.inMinMax(b),M=$.isSameDay(b,this.focusedDate),_=$.isSameDay(b,this.today),A=!this.range&&o?$.isSameDay(b,o):!1,F=this.range&&n?$.isSameDay(b,n):!1,D=this.range&&l?$.isSameDay(b,l):!1,j=this.range&&n&&l?$.isBetweenInclusive(b,n,l):!1,X=u(b)&&!z,Ct=-1,wt=m&&$.isSameDay(b,m);(this.tabbingIntoGrid&&wt||!this.tabbingIntoGrid&&M)&&(Ct=0);let it=this.isWeekend(b),Ot=b.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),tt=F?this.localize.term("startDateSelected"):D?this.localize.term("endDateSelected"):void 0;return p`<button type="button" part="day" class="${c("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded-md w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",F||D?"hover:bg-primary-500":"hover:bg-primary-100 hover:text-primary-500",T?this.isInDisabledDates(b)||!this.inMinMax(b)?"out-month text-neutral-500":this.disabledWeekends&&it?"weekend-day text-neutral-500":"in-month text-primary":this.disabledWeekends&&it?"out-month weekend-day text-neutral-500":it?"out-month weekend-day text-neutral-700":"out-month text-neutral-700",A?"selected border-primary bg-primary text-white hover:bg-primary-500 hover:text-white":"",F?"bg-primary text-white rounded-l-md rounded-r-none":"",D?"bg-primary text-white range-end rounded-r-md rounded-l-none":"",j&&!F&&!D?"in-range selected bg-primary-100 text-primary-500 rounded-none hover:bg-primary-500 hover:text-white":"",!j&&X&&!F&&!D?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",_&&!A&&!F&&!D&&M?"today border-[1px] border-primary font-bold":"",z?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",M&&!_?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${w+1}" aria-labelledby="${"col-"+(w+1)}" .tabIndex="${Ct}" ?disabled="${z||this.disabled}" aria-disabled="${z||this.visuallyDisabled||this.disabled?"true":"false"}" aria-selected="${A||j||F||D?"true":"false"}" aria-current="${_?"date":W}" aria-label="${Ot}" aria-roledescription="${tt!=null?tt:W}" @focus="${()=>this.focusedDate=$.startOfDayLocal(b)}" @mouseenter="${()=>this.onDayMouseEnter(b)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=$.startOfDayLocal(b),this.selectDate(b)}}">${b.getDate()}</button>`})}</div>`)}</div></div>`}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,o=!!t.tooltip,n=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||n)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",u={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],f=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":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",y={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"}[f],b=this.size==="sm"?"text-sm":"text-base";return p`<div part="form-control" class="${c("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||o?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",b)}" 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.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",y,this.open&&this.alignment==="left"?"rounded-bl-none":"",this.open&&this.alignment==="right"?"rounded-br-none":"")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",l&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}</div><sd-6-4-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full")}" sync="width" auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",f==="disabled"||f==="visuallyDisabled"?"text-neutral-500":"text-black")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${r?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent hover:cursor-pointer form-control-color-text",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],b,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||l?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?p`<sd-6-4-1-icon part="invalid-icon" class="${c("text-error",u,m)}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-6-4-1-icon class="${c("text-success flex-shrink-0",u,m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-4-1-icon>`:""}<sd-6-4-1-icon class="${c(h,u,m,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-6-4-1-icon>${this.renderCalendar()}</div></sd-6-4-1-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};I.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
213
|
+
:host{position:relative;display:inline-block;width:100%;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}`],a([d({type:String,reflect:!0})],I.prototype,"locale",2),a([d({type:String,converter:Zi,reflect:!0})],I.prototype,"value",2),a([d({type:Boolean,reflect:!0})],I.prototype,"range",2),a([d({attribute:"range-start",converter:Zi,reflect:!0})],I.prototype,"rangeStart",2),a([d({attribute:"range-end",converter:Zi,reflect:!0})],I.prototype,"rangeEnd",2),a([d({type:Boolean})],I.prototype,"allowSameDayRange",2),a([d({type:String,converter:Zi,reflect:!0})],I.prototype,"min",2),a([d({type:String,converter:Zi,reflect:!0})],I.prototype,"max",2),a([d({type:Number})],I.prototype,"firstDayOfWeek",2),a([d({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],I.prototype,"disabledWeekends",2),a([d({attribute:"disabled-dates",converter:zd})],I.prototype,"disabledDates",2),a([d({attribute:!1})],I.prototype,"isDateDisabled",2),a([d({type:String,reflect:!0})],I.prototype,"size",2),a([d({type:String})],I.prototype,"alignment",2),a([d({type:String,reflect:!0})],I.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],I.prototype,"helpText",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],I.prototype,"floatingLabel",2),a([d({type:Boolean,reflect:!0})],I.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],I.prototype,"required",2),a([d({type:Boolean,attribute:"visually-disabled"})],I.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],I.prototype,"styleOnValid",2),a([d({type:Boolean,reflect:!0})],I.prototype,"readonly",2),a([d({type:String,reflect:!0})],I.prototype,"placement",2),a([d({type:String,reflect:!0})],I.prototype,"placeholder",2),a([d({reflect:!0})],I.prototype,"name",2),a([d({type:String,reflect:!0})],I.prototype,"form",2),a([L()],I.prototype,"open",2),a([L()],I.prototype,"viewMonth",2),a([L()],I.prototype,"focusedDate",2),a([L()],I.prototype,"today",2),a([L()],I.prototype,"disabledDatesSet",2),a([L()],I.prototype,"previewEnd",2),a([L()],I.prototype,"statusNavText",2),a([L()],I.prototype,"statusSelectText",2),a([L()],I.prototype,"hasFocus",2),a([L()],I.prototype,"showValidStyle",2),a([L()],I.prototype,"showInvalidStyle",2),a([L()],I.prototype,"currentPlacement",2),a([L()],I.prototype,"inputValue",2),a([v("#invalid-message")],I.prototype,"invalidMessage",2),a([v("#input")],I.prototype,"input",2),a([E("locale")],I.prototype,"handleLocaleChange",1),a([E("disabledDates")],I.prototype,"handleDisabledDatesChange",1),a([E("value")],I.prototype,"handleValueChange",1),a([E("rangeStart"),E("rangeEnd")],I.prototype,"handleRangeChange",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],I.prototype,"handleDisabledChange",1),I=a([k("sd-6-4-1-datepicker")],I);var Bt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"footer");this.localize=new O(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new ai(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),ri(this))}disconnectedCallback(){super.disconnectedCallback(),si(this)}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=q(this,"dialog.denyClose",{dir:this.localize.dir()});K(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=ii(),this.modal.activate(),ri(this);let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([Y(this.dialog),Y(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=this.prefersReducedMotion?q(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):q(this,"dialog.show",{dir:this.localize.dir()}),r=q(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([K(this.panel,e.keyframes,e.options),K(this.overlay,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([Y(this.dialog),Y(this.overlay)]);let t=this.prefersReducedMotion?q(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):q(this,"dialog.hide",{dir:this.localize.dir()}),e=q(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([K(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),K(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,si(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&r.isConnected&&setTimeout(()=>{try{r.focus({preventScroll:!0})}catch(o){r.focus()}this.originalTrigger=null}),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(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 overlay-color-background opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${c("panel-color-border border 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="${C(this.headline?this.headline:void 0)}" aria-labelledby="${C(this.headline?void 0:"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-6-4-1-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-6-4-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-4-1-icon></sd-6-4-1-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>`}};Bt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
214
|
+
:host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],a([v('[part="base"]')],Bt.prototype,"dialog",2),a([v('[part="panel"]')],Bt.prototype,"panel",2),a([v('[part="overlay"]')],Bt.prototype,"overlay",2),a([d({type:Boolean,reflect:!0})],Bt.prototype,"open",2),a([d({type:String,reflect:!0})],Bt.prototype,"headline",2),a([d({attribute:"no-close-button",type:Boolean,reflect:!0})],Bt.prototype,"noCloseButton",2),a([E("open",{waitUntilFirstUpdate:!0})],Bt.prototype,"handleOpenChange",1),Bt=a([k("sd-6-4-1-dialog")],Bt);R("dialog.show",{keyframes:[{opacity:0,transform:"translate(-50%, 100%)"},{opacity:1,transform:"translate(0, 0)"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});R("dialog.hide",{keyframes:[{opacity:1,transform:"translate(0, 0)"},{opacity:0,transform:"translate(50%, -100%)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});R("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});R("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});R("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});var Wt=class extends g{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new O(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}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await Y(this.body);let{keyframes:t,options:e}=q(this,"expandable.show",{dir:this.localize.dir()});await K(this.body,we(t,this.body.scrollHeight),e),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await Y(this.body);let{keyframes:t,options:e}=q(this,"expandable.hide",{dir:this.localize.dir()});await K(this.body,we(t,this.body.scrollHeight),e),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),Z(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),Z(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")}"><span part="toggle-icon" class="${c("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-6-4-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-6-4-1-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-6-4-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-6-4-1-icon></slot></span><slot name="toggle-closed" class="${c(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${c(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${C(!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 o=r.cloneNode(!0);t.appendChild(o)}),this.appendChild(t)}};Wt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
215
215
|
:host{--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(
|
|
216
216
|
--gradient-color-start,
|
|
217
217
|
transparent,
|
|
218
218
|
var(--gradient-color-end, rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))))
|
|
219
|
-
) 80%,var(--gradient-color-end, rgba(var(--sd-color-background-white, rgba(var(--sd-color-white))))) 100%;position:relative;display:inline-block;width:100%}.toggle::-moz-focus-inner{--tw-border-style:none;border-style:none;padding:calc(var(--sd-spacing-1) * 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,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content::after{position:absolute;bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);display:block;width:100%;opacity:var(--sd-opacity-0);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));content:' ';height:var(--gradient-height);background:linear-gradient(180deg,var(--gradient))}:host([inverted]){--color-primary-rgb:0,53,142;--gradient-color-start:rgba(var(--color-primary-rgb), 0);--gradient-color-end:rgba(var(--color-primary-rgb), 1)}:host([inverted]) .content::after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,var(--gradient)))}:host(:not([open])) .content::after{opacity:var(--sd-opacity-100)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],a([v(".content-preview")],Wt.prototype,"contentPreview",2),a([v("details")],Wt.prototype,"details",2),a([v('[part="content"]')],Wt.prototype,"body",2),a([d({type:Boolean,reflect:!0})],Wt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],Wt.prototype,"inverted",2),a([E("open",{waitUntilFirstUpdate:!0})],Wt.prototype,"onOpenChange",1),Wt=a([k("sd-6-
|
|
219
|
+
) 80%,var(--gradient-color-end, rgba(var(--sd-color-background-white, rgba(var(--sd-color-white))))) 100%;position:relative;display:inline-block;width:100%}.toggle::-moz-focus-inner{--tw-border-style:none;border-style:none;padding:calc(var(--sd-spacing-1) * 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,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content::after{position:absolute;bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);display:block;width:100%;opacity:var(--sd-opacity-0);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));content:' ';height:var(--gradient-height);background:linear-gradient(180deg,var(--gradient))}:host([inverted]){--color-primary-rgb:0,53,142;--gradient-color-start:rgba(var(--color-primary-rgb), 0);--gradient-color-end:rgba(var(--color-primary-rgb), 1)}:host([inverted]) .content::after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,var(--gradient)))}:host(:not([open])) .content::after{opacity:var(--sd-opacity-100)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],a([v(".content-preview")],Wt.prototype,"contentPreview",2),a([v("details")],Wt.prototype,"details",2),a([v('[part="content"]')],Wt.prototype,"body",2),a([d({type:Boolean,reflect:!0})],Wt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],Wt.prototype,"inverted",2),a([E("open",{waitUntilFirstUpdate:!0})],Wt.prototype,"onOpenChange",1),Wt=a([k("sd-6-4-1-expandable")],Wt);R("expandable.show",{keyframes:[{height:"var(--component-expandable-max-block-size, 90px)"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("expandable.hide",{keyframes:[{height:"auto"},{height:"var(--component-expandable-max-block-size, 90px)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var Nt=class extends g{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 relative",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.frontVariant])}"><div class="${c("absolute inset-0",{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])}"></div><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-6-4-1-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-6-4-1-icon library="_internal" name="reload" label="Flip to Back"></sd-6-4-1-icon></sd-6-4-1-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-6-4-1-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-6-4-1-icon library="_internal" name="reload" label="Flip to Front"></sd-6-4-1-icon></sd-6-4-1-button></div></div>`}};Nt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
220
220
|
:host{display:block;aspect-ratio:var(--sd-aspect-3\\/4);--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}:host([front-variant=gradient-light]) [part=front-secondary-gradient],:host([front-variant=gradient-light]) [part=front-slot-container] .bg-gradient-to-b{--sd-color-background-white:rgba(
|
|
221
221
|
var(--sd-informational-gradient--white-color-background, rgba(var(--sd-color-white)))
|
|
222
222
|
)}:host([front-variant=gradient-dark]) [part=front-secondary-gradient],:host([front-variant=gradient-dark]) [part=front-slot-container] .bg-gradient-to-b{--sd-color-background-primary-800:rgba(
|
|
223
223
|
var(--sd-informational-gradient--primary-800-color-background, rgba(var(--sd-color-primary-800)))
|
|
224
|
-
)}`],a([v('[part="front"]')],Nt.prototype,"front",2),a([v('[part="back"]')],Nt.prototype,"back",2),a([d({reflect:!0,attribute:"flip-direction"})],Nt.prototype,"flipDirection",2),a([d({reflect:!0})],Nt.prototype,"placement",2),a([d({type:String,reflect:!0,attribute:"front-variant"})],Nt.prototype,"frontVariant",2),a([d({type:String,reflect:!0,attribute:"back-variant"})],Nt.prototype,"backVariant",2),a([L()],Nt.prototype,"activeSide",2),Nt=a([k("sd-6-
|
|
225
|
-
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);height:var(--sd-spacing-2);--tw-content:'';content:var(--tw-content);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],a([d({reflect:!0,type:Boolean})],pe.prototype,"fixed",2),a([v("header")],pe.prototype,"header",2),a([Ci(100)],pe.prototype,"updateCalculatedHeight",1),pe=a([k("sd-6-
|
|
226
|
-
:host{display:block}`],a([d({reflect:!0})],oe.prototype,"src",2),a([d({type:String,reflect:!0})],oe.prototype,"mode",2),a([d({attribute:"allow-scripts",type:Boolean,reflect:!0})],oe.prototype,"allowScripts",2),a([E("src")],oe.prototype,"handleSrcChange",1),oe=a([k("sd-6-3-0-include")],oe);var Qi=(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),Qi(r,i);return!0},Fr=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)},go=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),Dd(i)}};function Md(s){this._$AN!==void 0?(Fr(this),this._$AM=s,go(this)):this._$AM=s}function Sd(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 o=t;o<e.length;o++)Qi(e[o],!1),Fr(e[o]);else e!=null&&(Qi(e,!1),Fr(e));else Qi(this,s)}var Dd=s=>{var i,t;s.type==Kt.CHILD&&((i=s._$AP)!=null||(s._$AP=Sd),(t=s._$AQ)!=null||(s._$AQ=Md))},$i=class extends Ie{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),go(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&&(Qi(this,i),Fr(this))}setValue(i){if(Hr(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 Cs=class extends $i{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!==Kt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return W}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=B({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),zt}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(o=>{o.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()}},$s=te(Cs);var bo,Ad=(bo=navigator.userAgentData)==null?void 0:bo.brands.some(s=>s.brand.includes("Chromium")),Od=Ad?!1:navigator.userAgent.includes("Firefox"),H=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new P(this,"help-text","label","left","right","message","placeholder");this.localize=new O(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.floatingLabel=!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,o){this.input.setRangeText(t,e,r,o),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,o=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,l=t.left,h=this.value!==null&&String(this.value).length>0,u=this.floatingLabel&&e&&(this.hasFocus||h),m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"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",f=this.size==="sm"?"text-sm":"text-base",y={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],b=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],T={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],z=this.size==="lg"?this.floatingLabel?u?"py-3":"py-4":"py-2":this.floatingLabel?u?"py-2":"py-3":"py-1",M={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(e||n)&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",f)}" 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.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default transition-[border] ease-in-out duration-medium hover:duration-fast",y)}"></div><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",["disabled","visuallyDisabled"].includes(m)?"text-neutral-500":"form-control-color-text",["invalid","activeInvalid"].includes(m)&&"form-control--invalid-color-background",z)}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",b,T)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?u?"h-4":"h-6":u?"h-6":"h-8",f,u&&"leading-none mt-4")}" 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="${!this.floatingLabel||u?C(this.placeholder):""}" minlength="${C(this.minlength)}" maxlength="${C(this.maxlength)}" min="${C(this.min)}" max="${C(this.max)}" step="${C(this.step)}" .value="${$e(this.value)}" autocapitalize="${C(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${C(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"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${e&&this.floatingLabel?p`<label part="form-control-floating-label" class="${c("pointer-events-none absolute",l?M:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${e?"false":"true"}"><span id="floating-label" class="${c("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"text-base":"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",u&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${o?p`<button part="clear-button" class="${c("flex justify-center",w)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-3-0-icon class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",T)}" library="_internal" name="closing-round"></sd-6-3-0-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible?p`<slot name="show-password-icon"><sd-6-3-0-icon class="${c(b,T)}" library="_internal" name="eye"></sd-6-3-0-icon></slot>`:p`<slot name="hide-password-icon"><sd-6-3-0-icon class="${c(b,T)}" library="_internal" name="eye-crossed-out"></sd-6-3-0-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!Od?p`<sd-6-3-0-icon class="${c(b,w,T)}" library="_internal" name="calendar"></sd-6-3-0-icon>`:""} ${this.type==="time"?p`<sd-6-3-0-icon class="${c(b,w,T)}" library="_internal" name="clock"></sd-6-3-0-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handleSearchClick}"><sd-6-3-0-icon class="${c(b,T)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-3-0-icon></button>`:""} ${this.showInvalidStyle?p`<sd-6-3-0-icon part="invalid-icon" class="${c("text-error",w,T)}" library="_internal" name="risk"></sd-6-3-0-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-6-3-0-icon class="${c("text-success flex-shrink-0",w,T)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-3-0-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",b,w,T)}"></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" ${$s({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-6-3-0-icon library="_internal" name="minus-circle" label="Decrease value" class="${c(b,w,T)}"></sd-6-3-0-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${$s({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-6-3-0-icon library="_internal" name="plus-circle" label="Decrease value" class="${c(b,w,T)}"></sd-6-3-0-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-1",r&&!this.showInvalidStyle?"block":"hidden")}" aria-hidden="${!r||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};H.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
227
|
-
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-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-6-
|
|
224
|
+
)}`],a([v('[part="front"]')],Nt.prototype,"front",2),a([v('[part="back"]')],Nt.prototype,"back",2),a([d({reflect:!0,attribute:"flip-direction"})],Nt.prototype,"flipDirection",2),a([d({reflect:!0})],Nt.prototype,"placement",2),a([d({type:String,reflect:!0,attribute:"front-variant"})],Nt.prototype,"frontVariant",2),a([d({type:String,reflect:!0,attribute:"back-variant"})],Nt.prototype,"backVariant",2),a([L()],Nt.prototype,"activeSide",2),Nt=a([k("sd-6-4-1-flipcard")],Nt);var pe=class extends g{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(t){super.updated(t),t.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let t=parseFloat(getComputedStyle(document.documentElement).fontSize),e=window.innerHeight/t;this.header&&this.fixed&&e>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return p`<header class="w-full sd-6-4-1-header-color-background relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};pe.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
225
|
+
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);height:var(--sd-spacing-2);--tw-content:'';content:var(--tw-content);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],a([d({reflect:!0,type:Boolean})],pe.prototype,"fixed",2),a([v("header")],pe.prototype,"header",2),a([Ci(100)],pe.prototype,"updateCalculatedHeight",1),pe=a([k("sd-6-4-1-header")],pe);var oe=class extends g{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 vr(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>`}};oe.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
226
|
+
:host{display:block}`],a([d({reflect:!0})],oe.prototype,"src",2),a([d({type:String,reflect:!0})],oe.prototype,"mode",2),a([d({attribute:"allow-scripts",type:Boolean,reflect:!0})],oe.prototype,"allowScripts",2),a([E("src")],oe.prototype,"handleSrcChange",1),oe=a([k("sd-6-4-1-include")],oe);var Qi=(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),Qi(r,i);return!0},Fr=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)},go=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),Dd(i)}};function Md(s){this._$AN!==void 0?(Fr(this),this._$AM=s,go(this)):this._$AM=s}function Sd(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 o=t;o<e.length;o++)Qi(e[o],!1),Fr(e[o]);else e!=null&&(Qi(e,!1),Fr(e));else Qi(this,s)}var Dd=s=>{var i,t;s.type==Kt.CHILD&&((i=s._$AP)!=null||(s._$AP=Sd),(t=s._$AQ)!=null||(s._$AQ=Md))},$i=class extends Ie{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),go(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&&(Qi(this,i),Fr(this))}setValue(i){if(Hr(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 Cs=class extends $i{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!==Kt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return W}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=B({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),zt}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(o=>{o.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()}},$s=te(Cs);var bo,Ad=(bo=navigator.userAgentData)==null?void 0:bo.brands.some(s=>s.brand.includes("Chromium")),Od=Ad?!1:navigator.userAgent.includes("Firefox"),H=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new P(this,"help-text","label","left","right","message","placeholder");this.localize=new O(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.floatingLabel=!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,o){this.input.setRangeText(t,e,r,o),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,o=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),n=!!t.tooltip,l=t.left,h=this.value!==null&&String(this.value).length>0,u=this.floatingLabel&&e&&(this.hasFocus||h),m=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"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",f=this.size==="sm"?"text-sm":"text-base",y={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[m],b=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon",w={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],T={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],z=this.size==="lg"?this.floatingLabel?u?"py-3":"py-4":"py-2":this.floatingLabel?u?"py-2":"py-3":"py-1",M={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${c((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(e||n)&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",f)}" 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.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default transition-[border] ease-in-out duration-medium hover:duration-fast",y)}"></div><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",["disabled","visuallyDisabled"].includes(m)?"text-neutral-500":"form-control-color-text",["invalid","activeInvalid"].includes(m)&&"form-control--invalid-color-background",z)}">${t.left?p`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",b,T)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?u?"h-4":"h-6":u?"h-6":"h-8",f,u&&"leading-none mt-4")}" 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="${!this.floatingLabel||u?C(this.placeholder):""}" minlength="${C(this.minlength)}" maxlength="${C(this.maxlength)}" min="${C(this.min)}" max="${C(this.max)}" step="${C(this.step)}" .value="${$e(this.value)}" autocapitalize="${C(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${C(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"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${e&&this.floatingLabel?p`<label part="form-control-floating-label" class="${c("pointer-events-none absolute",l?M:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${e?"false":"true"}"><span id="floating-label" class="${c("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!u||!h&&(this.readonly||this.visuallyDisabled)?"text-base":"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",u&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${o?p`<button part="clear-button" class="${c("flex justify-center",w)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-4-1-icon class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",T)}" library="_internal" name="closing-round"></sd-6-4-1-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?p`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible?p`<slot name="show-password-icon"><sd-6-4-1-icon class="${c(b,T)}" library="_internal" name="eye"></sd-6-4-1-icon></slot>`:p`<slot name="hide-password-icon"><sd-6-4-1-icon class="${c(b,T)}" library="_internal" name="eye-crossed-out"></sd-6-4-1-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!Od?p`<sd-6-4-1-icon class="${c(b,w,T)}" library="_internal" name="calendar"></sd-6-4-1-icon>`:""} ${this.type==="time"?p`<sd-6-4-1-icon class="${c(b,w,T)}" library="_internal" name="clock"></sd-6-4-1-icon>`:""} ${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",w)}" type="button" @click="${this.handleSearchClick}"><sd-6-4-1-icon class="${c(b,T)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-4-1-icon></button>`:""} ${this.showInvalidStyle?p`<sd-6-4-1-icon part="invalid-icon" class="${c("text-error",w,T)}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-6-4-1-icon class="${c("text-success flex-shrink-0",w,T)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-4-1-icon>`:""} ${t.right?p`<slot name="right" part="right" class="${c("inline-flex",b,w,T)}"></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" ${$s({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-6-4-1-icon library="_internal" name="minus-circle" label="Decrease value" class="${c(b,w,T)}"></sd-6-4-1-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${$s({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-6-4-1-icon library="_internal" name="plus-circle" label="Decrease value" class="${c(b,w,T)}"></sd-6-4-1-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-1",r&&!this.showInvalidStyle?"block":"hidden")}" aria-hidden="${!r||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};H.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
227
|
+
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-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-6-4-1-icon{color:rgba(var(--sd-color-text-neutral-500))}`],a([v("#input")],H.prototype,"input",2),a([v("#invalid-message")],H.prototype,"invalidMessage",2),a([L()],H.prototype,"hasFocus",2),a([L()],H.prototype,"showValidStyle",2),a([L()],H.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],H.prototype,"type",2),a([d({type:String,reflect:!0})],H.prototype,"size",2),a([d({type:String,reflect:!0})],H.prototype,"inputmode",2),a([d()],H.prototype,"value",2),a([Rt()],H.prototype,"defaultValue",2),a([d({type:String,reflect:!0})],H.prototype,"placeholder",2),a([d({type:String,reflect:!0})],H.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],H.prototype,"helpText",2),a([d({type:Boolean,reflect:!0})],H.prototype,"clearable",2),a([d({type:Boolean,reflect:!0})],H.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],H.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],H.prototype,"readonly",2),a([d({attribute:"password-toggle",type:Boolean,reflect:!0})],H.prototype,"passwordToggle",2),a([d({attribute:"password-visible",type:Boolean,reflect:!0})],H.prototype,"passwordVisible",2),a([d({attribute:"spin-buttons",type:Boolean,reflect:!0})],H.prototype,"spinButtons",2),a([d({type:Number,reflect:!0})],H.prototype,"minlength",2),a([d({type:Number,reflect:!0})],H.prototype,"maxlength",2),a([d({reflect:!0})],H.prototype,"min",2),a([d({reflect:!0})],H.prototype,"max",2),a([d({type:String,reflect:!0})],H.prototype,"form",2),a([d({type:String,reflect:!0})],H.prototype,"name",2),a([d({type:String,reflect:!0})],H.prototype,"title",2),a([d({type:Boolean,reflect:!0})],H.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],H.prototype,"floatingLabel",2),a([d()],H.prototype,"pattern",2),a([d({reflect:!0})],H.prototype,"step",2),a([d({type:String,reflect:!0})],H.prototype,"autocapitalize",2),a([d({type:String,reflect:!0})],H.prototype,"autocorrect",2),a([d({reflect:!0})],H.prototype,"autocomplete",2),a([d({type:Boolean,reflect:!0})],H.prototype,"autofocus",2),a([d({type:String,reflect:!0})],H.prototype,"enterkeyhint",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],H.prototype,"styleOnValid",2),a([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],H.prototype,"spellcheck",2),a([E("disabled",{waitUntilFirstUpdate:!0})],H.prototype,"handleDisabledChange",1),a([E("step",{waitUntilFirstUpdate:!0})],H.prototype,"handleStepChange",1),a([E("value",{waitUntilFirstUpdate:!0})],H.prototype,"handleValueChange",1),H=a([k("sd-6-4-1-input")],H);var Ut=class extends g{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
|
|
228
228
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
229
229
|
<circle cx="25" cy="25" opacity="1" r="20" />
|
|
230
230
|
</svg>`,main:`
|
|
@@ -233,54 +233,54 @@ sd-6-3-0-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(-
|
|
|
233
233
|
</svg> `,place:`
|
|
234
234
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75">
|
|
235
235
|
<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" />
|
|
236
|
-
</svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?et`div`:t?et`a`:et`button`,r=yr(this.marker[this.variant]),o=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return U`<${e} part="base" class="${c("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" 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("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 sd-6-
|
|
237
|
-
:host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}: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]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker-cluster--hovered-color-icon-fill))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));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,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],a([d({type:String,reflect:!0})],Ut.prototype,"variant",2),a([d({type:String,reflect:!0})],Ut.prototype,"state",2),a([d({type:Boolean,reflect:!0})],Ut.prototype,"animated",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ut.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Ut.prototype,"href",2),a([d({type:String,reflect:!0})],Ut.prototype,"target",2),a([d({reflect:!0})],Ut.prototype,"label",2),Ut=a([k("sd-6-
|
|
238
|
-
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-6-3-0-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],a([v("slot")],Ve.prototype,"defaultSlot",2),Ve=a([k("sd-6-3-0-menu")],Ve);var vo=()=>new Ls,Ls=class{},Ts=new WeakMap,yo=te(class extends $i{render(s){return W}update(s,[i]){var e;let t=i!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=(e=s.options)==null?void 0:e.host,this.rt(this.ct=s.element)),W}rt(s){var i;if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=(i=this.ht)!=null?i:globalThis,e=Ts.get(t);e===void 0&&(e=new WeakMap,Ts.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){var s,i,t;return typeof this.G=="function"?(i=Ts.get((s=this.ht)!=null?s:globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Rr=class{constructor(i,t){this.popupRef=vo();this.enableSubmenuTimer=-1;this.isConnected=!1;this.isPopupConnected=!1;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=i=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${i.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${i.clientY}px`)};this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()};this.handleKeyDown=i=>{switch(i.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":i.target!==this.host&&(i.preventDefault(),i.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(i);break;default:break}};this.handleClick=i=>{var t;i.target===this.host?(i.preventDefault(),i.stopPropagation()):i.target instanceof Element&&(i.target.tagName==="sd-6-3-0-menu-item"||(t=i.target.role)!=null&&t.startsWith("menuitem"))&&i.target.getAttribute("type")!=="checkbox"&&this.disableSubmenu()};this.handleFocusOut=i=>{i.relatedTarget&&i.relatedTarget instanceof Element&&this.host.contains(i.relatedTarget)||this.disableSubmenu()};this.handlePopupMouseover=i=>{i.stopPropagation()};this.handlePopupReposition=()=>{let i=this.host.renderRoot.querySelector("slot[name='submenu']"),t=i==null?void 0:i.assignedElements({flatten:!0}).filter(h=>h.localName==="sd-6-3-0-menu")[0],e=getComputedStyle(this.host).direction==="rtl";if(!t)return;let{left:r,top:o,width:n,height:l}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${e?r+n:r}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${o}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${e?r+n:r}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${o+l}px`)};(this.host=i).addController(this),this.hasSlotController=t}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(i){let t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let e=null;for(let r of t.assignedElements())if(e=r.querySelectorAll("sd-6-3-0-menu-item, [role^='menuitem']"),e.length!==0)break;if(!(!e||e.length===0)){e[0].setAttribute("tabindex","0");for(let r=1;r!==e.length;++r)e[r].setAttribute("tabindex","-1");this.popupRef.value&&(i.preventDefault(),i.stopPropagation(),this.popupRef.value.active?e[0]instanceof HTMLElement&&e[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{e[0]instanceof HTMLElement&&e[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(i){this.popupRef.value&&this.popupRef.value.active!==i&&(this.popupRef.value.active=i,this.host.requestUpdate())}enableSubmenu(i=!0){i?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var r;if(!((r=this.host.parentElement)!=null&&r.computedStyleMap))return;let i=this.host.parentElement.computedStyleMap(),e=["padding-top","border-top-width","margin-top"].reduce((o,n)=>{var m;let l=(m=i.get(n))!=null?m:new CSSUnitValue(0,"px"),u=(l instanceof CSSUnitValue?l:new CSSUnitValue(0,"px")).to("px");return o-u.value},0);this.skidding=e}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){let i=getComputedStyle(this.host).direction==="rtl";return this.isConnected?p`<sd-6-3-0-popup ${yo(this.popupRef)} placement="${i?"left-start":"right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-6-3-0-popup>`:p`<slot name="submenu" hidden></slot>`}};var Tt=class extends g{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new P(this,"submenu");this.submenuController=new Rr(this,this.hasSlotController);this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}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}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return $a(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let t=this.submenuController.isExpanded(),e={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return p`<div id="anchor" part="base" class="${c("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-6-3-0-menu--disabled-color-text hover:bg-transparent":"cursor-pointer sd-6-3-0-menu-color-text hover:bg-neutral-200",this.isSubmenu()&&t&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!t}">${this.type==="checkbox"?p`<span part="checked-icon" class="${c("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-6-3-0-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-6-3-0-icon></span>`:""} ${e.iconIndent?p`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?p`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-6-3-0-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-6-3-0-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};Tt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
239
|
-
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-6-
|
|
240
|
-
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],a([v('[part="base"]')],ut.prototype,"button",2),a([v("slot:not([name])")],ut.prototype,"defaultSlot",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"vertical",2),a([d({type:String,reflect:!0})],ut.prototype,"size",2),a([d({reflect:!0})],ut.prototype,"href",2),a([d({type:String,reflect:!0})],ut.prototype,"target",2),a([d({reflect:!0})],ut.prototype,"download",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"current",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"chevron",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"relaxed",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"divider",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"indented",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"separated",2),ut=a([k("sd-6-
|
|
241
|
-
:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],a([v('[part~="base"]')],kt.prototype,"base",2),a([v('[part~="wrapper"]')],kt.prototype,"wrapper",2),a([v('[part~="close-button"]')],kt.prototype,"close",2),a([d({type:String,reflect:!0})],kt.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],kt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],kt.prototype,"closable",2),a([d({type:Number,reflect:!0})],kt.prototype,"duration",2),a([d({type:Boolean,reflect:!0,attribute:"duration-indicator"})],kt.prototype,"durationIndicator",2),a([d({type:String,reflect:!0,attribute:"toast-stack"})],kt.prototype,"toastStack",2),a([E("open",{waitUntilFirstUpdate:!0})],kt.prototype,"handleOpenChange",1),a([E("duration")],kt.prototype,"handleDurationChange",1),kt=a([k("sd-6-
|
|
242
|
-
:host{--display-divider:block}#divider{display:var(--display-divider)}`],a([v("slot:not([name])")],ne.prototype,"defaultSlot",2),a([d({reflect:!0,type:Boolean})],ne.prototype,"disabled",2),a([d({type:String,reflect:!0})],ne.prototype,"label",2),a([E("disabled",{waitUntilFirstUpdate:!0})],ne.prototype,"handleDisabledChange",1),ne=a([k("sd-6-
|
|
243
|
-
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}`],a([v('[part="base"]')],yt.prototype,"defaultSlot",2),a([L()],yt.prototype,"current",2),a([L()],yt.prototype,"selected",2),a([L()],yt.prototype,"hasHover",2),a([L()],yt.prototype,"isKeyboardFocus",2),a([d({type:String,reflect:!0})],yt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],yt.prototype,"checkbox",2),a([d({type:Boolean,reflect:!0})],yt.prototype,"disabled",2),a([d({type:String,reflect:!0})],yt.prototype,"value",2),a([E("disabled")],yt.prototype,"handleDisabledChange",1),a([E("selected")],yt.prototype,"handleSelectedChange",1),a([E("value")],yt.prototype,"handleValueChange",1),yt=a([k("sd-6-
|
|
244
|
-
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=summary-icon]{color:var(--sd-accordion__chevron-color-text)}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],a([d({type:Boolean,reflect:!0})],Fe.prototype,"expandable",2),Fe=a([k("sd-6-
|
|
245
|
-
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-width:1px;outline-style:var(--tw-outline-style);outline-width:2px;outline-offset:2px;outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],a([L()],Et.prototype,"checked",2),a([L()],Et.prototype,"hasFocus",2),a([d({type:String,reflect:!0})],Et.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Et.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Et.prototype,"visuallyDisabled",2),a([d()],Et.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Et.prototype,"invalid",2),a([E("checked")],Et.prototype,"handleCheckedChange",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Et.prototype,"handleDisabledChange",1),Et=a([k("sd-6-
|
|
246
|
-
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:var(--sd-spacing-12)}.lg-no-label{height:var(--sd-spacing-12);padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:var(--sd-spacing-10)}.md-no-label{height:var(--sd-spacing-10);padding-inline:var(--sd-spacing-4)}.sm-label{height:var(--sd-spacing-8)}.sm-no-label{height:var(--sd-spacing-8);padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-
|
|
247
|
-
:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],a([v("slot")],Le.prototype,"defaultSlot",2),a([L()],Le.prototype,"disableRole",2),a([d({type:String,reflect:!0})],Le.prototype,"label",2),Le=a([k("sd-6-
|
|
248
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-3-0-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-3-0-radio:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-3-0-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-3-0-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-3-0-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-3-0-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([required]) #label::after{content:' *'}:host:has(sd-6-3-0-button-group){display:inline-flex}`],a([v("slot:not([name])")],rt.prototype,"defaultSlot",2),a([v("#validation-input")],rt.prototype,"validationInput",2),a([v("#invalid-message")],rt.prototype,"invalidMessage",2),a([L()],rt.prototype,"hasButtonGroup",2),a([L()],rt.prototype,"defaultValue",2),a([L()],rt.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],rt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],rt.prototype,"required",2),a([d({type:String,reflect:!0})],rt.prototype,"orientation",2),a([d({type:String,reflect:!0})],rt.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],rt.prototype,"helpText",2),a([d({type:String,reflect:!0})],rt.prototype,"name",2),a([d()],rt.prototype,"value",2),a([d({type:String,reflect:!0})],rt.prototype,"form",2),a([E("size",{waitUntilFirstUpdate:!0})],rt.prototype,"handleSizeChange",1),a([E("showInvalidStyle",{waitUntilFirstUpdate:!0})],rt.prototype,"handleInvalidChange",1),a([E("value")],rt.prototype,"handleValueChange",1),rt=a([k("sd-6-3-0-radio-group")],rt);var Re=(s,i)=>s-i,Ti=(s,i)=>{if(s.length!==i.length)return!0;let t=s.slice().sort(Re),e=i.slice().sort(Re);for(let r=0;r<t.length;r+=1)if(t[r]!==e[r])return!0;return!1},zs=(s,i)=>{let t=s.getBoundingClientRect(),e=t.width;if(e<=0)return 0;let r=i;return r-=t.left,r<=0?0:r>=e?1:(r/=e,r)};var st=class extends g{constructor(){super();this.formControlController=new dt(this);this.hasSlotController=new P(this,"label","help-text");this.localize=new O(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.tooltip="on-interaction";this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(t){this._value=t?t.split(" ").map(Number).sort(Re):[]}get value(){return this._value.slice().sort(Re).join(" ")}set valueAsArray(t){let e=this._value;this._value=Array.isArray(t)?t.slice().sort(Re):t||[],Ti(e,this._value)&&this.requestUpdate("value",e.join(" "))}get valueAsArray(){return[...this._value].sort(Re)}get rtl(){return this.localize.dir()==="rtl"}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value),this.thumbs.forEach(async t=>{var r,o;let e=t.parentElement;await e.updateComplete,(o=(r=e.shadowRoot)==null?void 0:r.querySelector("sd-6-3-0-popup"))==null||o.setAttribute("distance","14")})}willUpdate(t){super.willUpdate(t),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let e=this._value.map(r=>{if(r<=this.min)return this.min;if(r>=this.max)return this.max;let o=this.min+this.step*Math.round((r-this.min)/this.step);return o>this.max?this.max:o});Ti(this._value,e)&&(this._value=e)}updated(t){super.updated(t);for(let e of this.thumbs){let r=+e.dataset.rangeId;this._rangeValues.has(r)&&(this.moveThumb(e,this._rangeValues.get(r)),this.tooltip==="always-visible"&&e.parentElement.show())}this.updateActiveTrack()}focus(t){let e=this.thumbs.item(0);e?e.focus(t):super.focus(t)}get validity(){return this.input.validity}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()}updateTooltip(t){let e=+t.dataset.rangeId;if(!this._rangeValues.has(e))return;let r=this._rangeValues.get(e),o=t.parentElement;o.content=this.tooltipFormatter(r)}updateActiveTrack(){let{activeTrack:t}=this;if(!t)return;if(this.min===this.max){t.style.insetInlineStart="0%",t.style.insetInlineEnd="0%";return}if(this._value.length===1){let n=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",l=100*(this._value[0]-this.min)/(this.max-this.min);t.style.insetInlineStart=`min(${n}, ${l}%)`,t.style.insetInlineEnd=`min(calc(100% - ${n}), calc(100% - ${l}%))`;return}let e=this._value.slice().sort(Re),r=100*(e[0]-this.min)/(this.max-this.min),o=100*(e[e.length-1]-this.min)/(this.max-this.min);t.style.insetInlineStart=`${r}%`,t.style.insetInlineEnd=`calc(100% - ${o}%)`}moveThumb(t,e){t.setAttribute("aria-valuenow",e.toString()),t.setAttribute("aria-valuetext",this.tooltipFormatter(e));let r=(e-this.min)/(this.max-this.min);t.style.insetInlineStart=`calc(${100*r}% - 8px)`,this.updateTooltip(t)}movementBoundariesForThumb(t,e){let r=this.valueAsArray,n=Array.from(this.thumbs).indexOf(t),l=r[n-1]||this.min,h=r[n+1]||this.max,u=e<l||e>h;return{finalValue:Math.max(l,Math.min(h,e)),isRestricted:u,nextValue:h,prevValue:l}}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}onClickTrack(t,e=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:r}=t,o=Array.from(this.thumbs),n=zs(this.inputWrapper,r),l=this.step/(this.max-this.min),h=this.min+this.step*Math.round(n/l),u=o.reduce((b,w)=>{let T=this._rangeValues.get(+w.dataset.rangeId),z=this._rangeValues.get(+b.dataset.rangeId),M=Math.abs(T-h),_=Math.abs(z-h);return M===_?T<h?w:b:M<_?w:b}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,h),this.moveThumb(u,h);let f=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),Ti(f,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let y=new PointerEvent("pointerdown",t);e&&u.dispatchEvent(y)&&this.updateTooltip(u)}onClickTrackItem(t){this.onClickTrack(t,!1)}async onClickThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target;this.updateTooltip(e),e.dataset.pointerId&&e.releasePointerCapture(+e.dataset.pointerId),e.dataset.pointerId=t.pointerId.toString(),e.setPointerCapture(t.pointerId),e.classList.add("grabbed"),this.tooltip==="on-interaction"&&await e.parentElement.show()}onDragThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target,r=+e.dataset.rangeId;if(!this._rangeValues.has(r)||(e.dataset.pointerId?+e.dataset.pointerId:null)!==t.pointerId)return;let n=zs(this.inputWrapper,t.clientX),l=this.step/(this.max-this.min),h=this.min+this.step*Math.round(n/l);if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:h}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(e,h);m.isRestricted?(h=m.finalValue,e.style.zIndex=(3+this.thumbs.length).toFixed(0)):e.style.zIndex="3",this._rangeValues.set(r,h),this.moveThumb(e,h);let f=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),Ti(f,this._value)&&this.emit("sd-input")}async onReleaseThumb(t){let e=t.target;!e.dataset.pointerId||t.pointerId!==+e.dataset.pointerId||(e.classList.remove("grabbed"),e.releasePointerCapture(t.pointerId),delete e.dataset.pointerId,Ti(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),this.tooltip==="on-interaction"&&await e.parentElement.hide())}onKeyPress(t){let e=t.target,r=+e.dataset.rangeId,o=this._rangeValues.get(r);if(o===void 0)return;let n=o;switch(t.key){case"ArrowUp":case"Up":n=Math.min(o+this.step,this.max);break;case"ArrowDown":case"Down":n=Math.max(o-this.step,this.min);break;case"ArrowLeft":case"Left":n=this.rtl?Math.min(o+this.step,this.max):Math.max(o-this.step,this.min);break;case"ArrowRight":case"Right":n=this.rtl?Math.max(o-this.step,this.min):Math.min(o+this.step,this.max);break;case"PageUp":n=Math.min(o+(this.max-this.min)/5,this.max);break;case"PageDown":n=Math.max(o-(this.max-this.min)/5,this.min);break;case"Home":n=this.min;break;case"End":n=this.max;break;default:return}if(n!==o){if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:n}}).defaultPrevented)return;let h=this.movementBoundariesForThumb(e,n);h.isRestricted&&(n=h.finalValue),this.moveThumb(e,n),this._rangeValues.set(r,n),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(e),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}t.preventDefault()}onBlur(t){var e;t.relatedTarget&&((e=this.shadowRoot)!=null&&e.contains(t.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(t){var r;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let e=t.target;(r=e==null?void 0:e.dataset)!=null&&r.rangeId&&this.updateTooltip(e)}renderThumbs(t){let e=this._value.length>1;return this._rangeValues.clear(),this._value.map((r,o)=>{let n=o+1;this._rangeValues.set(n,r);let l=`thumb-${n}`,h="",u="";return e?(u=t?`label aria-label-hidden ${l}`:`aria-label-hidden ${l}`,o===0?h=`${this.localize.term("minimum")} (${this.tooltipFormatter(r)})`:o===this._value.length-1?h=`${this.localize.term("maximum")} (${this.tooltipFormatter(r)})`:h=this.tooltipFormatter(r)):u=t?"label aria-label-hidden":"",p`<sd-6-3-0-tooltip hoist trigger="${this.tooltip==="on-interaction"?"focus":"manual"}" disabled="${C(this.disabled||this.visuallyDisabled||this.tooltip==="hidden"?!0:void 0)}"><div id="${l}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${C(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${h}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${r}" aria-valuetext="${this.tooltipFormatter(r)}" data-range-id="${n}" data-disabled="${C(this.disabled||this.visuallyDisabled||void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${c("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"outline-none":"cursor-pointer focus-visible:focus-outline")}"></div></sd-6-3-0-tooltip>`})}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=!!(this.label||t.label),r=!!(this.helpText||t.helpText);return p`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${e?p`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${e?"false":"true"}" class="${c("w-full text-start",e?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${c("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${C(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${C(this.disabled||this.visuallyDisabled||void 0)}" class="${c("h-1 my-[6px]")}"></div><div part="active-track" hidden="${C(this.noTrackBar?!0:void 0)}" data-disabled="${C(this.disabled||this.visuallyDisabled||void 0)}" class="${c("absolute top-0 h-1")}"></div></div>${this.renderThumbs(e)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>`}};st.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
249
|
-
[part='base']{touch-action:none;-webkit-touch-callout:none}[part=thumb]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=thumb]:hover{background-color:rgba(var(--sd-color-icon-fill-primary-500,rgba(var(--sd-color-primary-500))))}[part=thumb].grabbed{background-color:rgba(var(--sd-color-icon-fill-primary-800,rgba(var(--sd-color-primary-800))))}[part=thumb][data-disabled]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=track]{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}[part=track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=active-track]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=active-track][data-disabled]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],a([v("#input")],st.prototype,"input",2),a([v('[part="active-track"]')],st.prototype,"activeTrack",2),a([v('[part="input-wrapper"]')],st.prototype,"inputWrapper",2),a([br('[part="thumb"]')],st.prototype,"thumbs",2),a([d({attribute:!1})],st.prototype,"tooltipFormatter",2),a([d({type:String,reflect:!0})],st.prototype,"name",2),a([d({type:String,reflect:!0})],st.prototype,"label",2),a([d({attribute:"help-text",reflect:!0})],st.prototype,"helpText",2),a([d({type:Number,reflect:!0})],st.prototype,"min",2),a([d({type:Number,reflect:!0})],st.prototype,"max",2),a([d({type:Number,reflect:!0})],st.prototype,"step",2),a([d({type:Boolean,reflect:!0})],st.prototype,"disabled",2),a([d({attribute:"visually-disabled",type:Boolean,reflect:!0})],st.prototype,"visuallyDisabled",2),a([d({attribute:"no-track-bar",type:Boolean,reflect:!0})],st.prototype,"noTrackBar",2),a([d({attribute:"tooltip",type:String,reflect:!0})],st.prototype,"tooltip",2),a([Rt()],st.prototype,"defaultValue",2),a([d({type:String})],st.prototype,"value",1),st=a([k("sd-6-
|
|
250
|
-
[part='line']{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}`],a([d({type:Boolean,reflect:!0})],Be.prototype,"subtick",2),Be=a([k("sd-6-
|
|
251
|
-
:host{--gradient-color:transparent;--gradient:var(--gradient-color) 0%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 80%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-radius-sm)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1);width:var(--sd-spacing-1)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,transparent 50%,rgba(24,24,24,.4) 100%)}.sd-6-
|
|
236
|
+
</svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?et`div`:t?et`a`:et`button`,r=yr(this.marker[this.variant]),o=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return U`<${e} part="base" class="${c("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" 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("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 sd-6-4-1-map-marker-cluster--hovered-color-icon-fill",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-6-4-1-map-marker-cluster-color-icon-fill",main:"fill-accent",place:"fill-white"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="absolute inset-0 overflow-hidden pointer-events-none" style="mask-image:${o};-webkit-mask-image:${o}"><div class="${c("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${c("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":"bg-accent-550 group-active:bg-accent-700",place:this.state==="active"?"bg-primary-200":"bg-primary-100 group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?U`<div id="marker-circle" class="absolute rounded-full bg-white"></div>`:""}</div>${r} ${this.variant==="cluster"?U`<div id="cluster-border" class="${c("absolute inset-0 bg-primary opacity-30 rounded-full",this.state==="hover"&&"bg-primary-500")}"></div>`:""}</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}>`}};Ut.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
237
|
+
:host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}: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]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker-cluster--hovered-color-icon-fill))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));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,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],a([d({type:String,reflect:!0})],Ut.prototype,"variant",2),a([d({type:String,reflect:!0})],Ut.prototype,"state",2),a([d({type:Boolean,reflect:!0})],Ut.prototype,"animated",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ut.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Ut.prototype,"href",2),a([d({type:String,reflect:!0})],Ut.prototype,"target",2),a([d({reflect:!0})],Ut.prototype,"label",2),Ut=a([k("sd-6-4-1-map-marker")],Ut);var Ve=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.handleOutsideClick=t=>{this.contains(t.target)||this.getAllItems().forEach(e=>e.classList.remove("menu-item-focus"))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu"),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleClick(t){let e=["menuitem","menuitemcheckbox"],r=t.composedPath(),o=r.find(u=>{var m;return e.includes(((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))||"")});if(!o||r.find(u=>{var m;return((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))==="menu"})!==this)return;let h=o;h.type==="checkbox"&&(h.checked=!h.checked),this.emit("sd-select",{detail:{item:h}})}handleKeyDown(t){if(t.key==="Escape"){let e=this.getCurrentItem();e==null||e.classList.remove("menu-item-focus")}else if(t.key==="Enter"||t.key===" "){let e=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),e==null||e.classList.remove("menu-item-focus"),e==null||e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let e=this.getAllItems(),r=this.getCurrentItem(),o=r?e.indexOf(r):0;if(r==null||r.classList.remove("menu-item-focus"),e.length>0){t.preventDefault(),t.stopPropagation();let n=(l,h)=>{let u=l;for(let m of e)if(u=(u+h+e.length)%e.length,!e[u].disabled)return u;return l};if(t.key==="ArrowDown")o=n(o,1);else if(t.key==="ArrowUp")o=n(o,-1);else if(t.key==="Home")o=e.findIndex(l=>!l.disabled),o===-1&&(o=0);else if(t.key==="End"){o=e.length-1;for(let l=e.length-1;l>=0;l--)if(!e[l].disabled){o=l;break}}this.setCurrentItem(e[o]),e[o].focus(),e[o].classList.add("menu-item-focus")}}}handleMouseDown(t){let e=t.target;this.isMenuItem(e)&&this.setCurrentItem(e)}handleSlotChange(){let t=this.getAllItems();t.length>0&&this.setCurrentItem(t[0])}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sd-6-4-1-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter(t=>!!this.isMenuItem(t))}getCurrentItem(){return this.getAllItems().find(t=>t.getAttribute("tabindex")==="0")}setCurrentItem(t){this.getAllItems().forEach(r=>{r.setAttribute("tabindex",r===t?"0":"-1")})}render(){return p`<slot @slotchange="${this.handleSlotChange}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"></slot>`}};Ve.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
238
|
+
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-6-4-1-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],a([v("slot")],Ve.prototype,"defaultSlot",2),Ve=a([k("sd-6-4-1-menu")],Ve);var vo=()=>new Ls,Ls=class{},Ts=new WeakMap,yo=te(class extends $i{render(s){return W}update(s,[i]){var e;let t=i!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=(e=s.options)==null?void 0:e.host,this.rt(this.ct=s.element)),W}rt(s){var i;if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=(i=this.ht)!=null?i:globalThis,e=Ts.get(t);e===void 0&&(e=new WeakMap,Ts.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){var s,i,t;return typeof this.G=="function"?(i=Ts.get((s=this.ht)!=null?s:globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Rr=class{constructor(i,t){this.popupRef=vo();this.enableSubmenuTimer=-1;this.isConnected=!1;this.isPopupConnected=!1;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=i=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${i.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${i.clientY}px`)};this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()};this.handleKeyDown=i=>{switch(i.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":i.target!==this.host&&(i.preventDefault(),i.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(i);break;default:break}};this.handleClick=i=>{var t;i.target===this.host?(i.preventDefault(),i.stopPropagation()):i.target instanceof Element&&(i.target.tagName==="sd-6-4-1-menu-item"||(t=i.target.role)!=null&&t.startsWith("menuitem"))&&i.target.getAttribute("type")!=="checkbox"&&this.disableSubmenu()};this.handleFocusOut=i=>{i.relatedTarget&&i.relatedTarget instanceof Element&&this.host.contains(i.relatedTarget)||this.disableSubmenu()};this.handlePopupMouseover=i=>{i.stopPropagation()};this.handlePopupReposition=()=>{let i=this.host.renderRoot.querySelector("slot[name='submenu']"),t=i==null?void 0:i.assignedElements({flatten:!0}).filter(h=>h.localName==="sd-6-4-1-menu")[0],e=getComputedStyle(this.host).direction==="rtl";if(!t)return;let{left:r,top:o,width:n,height:l}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${e?r+n:r}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${o}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${e?r+n:r}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${o+l}px`)};(this.host=i).addController(this),this.hasSlotController=t}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(i){let t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let e=null;for(let r of t.assignedElements())if(e=r.querySelectorAll("sd-6-4-1-menu-item, [role^='menuitem']"),e.length!==0)break;if(!(!e||e.length===0)){e[0].setAttribute("tabindex","0");for(let r=1;r!==e.length;++r)e[r].setAttribute("tabindex","-1");this.popupRef.value&&(i.preventDefault(),i.stopPropagation(),this.popupRef.value.active?e[0]instanceof HTMLElement&&e[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{e[0]instanceof HTMLElement&&e[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(i){this.popupRef.value&&this.popupRef.value.active!==i&&(this.popupRef.value.active=i,this.host.requestUpdate())}enableSubmenu(i=!0){i?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var r;if(!((r=this.host.parentElement)!=null&&r.computedStyleMap))return;let i=this.host.parentElement.computedStyleMap(),e=["padding-top","border-top-width","margin-top"].reduce((o,n)=>{var m;let l=(m=i.get(n))!=null?m:new CSSUnitValue(0,"px"),u=(l instanceof CSSUnitValue?l:new CSSUnitValue(0,"px")).to("px");return o-u.value},0);this.skidding=e}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){let i=getComputedStyle(this.host).direction==="rtl";return this.isConnected?p`<sd-6-4-1-popup ${yo(this.popupRef)} placement="${i?"left-start":"right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-6-4-1-popup>`:p`<slot name="submenu" hidden></slot>`}};var Tt=class extends g{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new P(this,"submenu");this.submenuController=new Rr(this,this.hasSlotController);this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}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}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return $a(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let t=this.submenuController.isExpanded(),e={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return p`<div id="anchor" part="base" class="${c("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-6-4-1-menu--disabled-color-text hover:bg-transparent":"cursor-pointer sd-6-4-1-menu-color-text hover:bg-neutral-200",this.isSubmenu()&&t&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!t}">${this.type==="checkbox"?p`<span part="checked-icon" class="${c("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-6-4-1-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-6-4-1-icon></span>`:""} ${e.iconIndent?p`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?p`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-6-4-1-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-6-4-1-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};Tt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
239
|
+
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-6-4-1-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}:host [part=checked-icon],:host [part=icon-indent],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon))}:host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon))}sd-6-4-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-6-4-1-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],a([v("slot:not([name])")],Tt.prototype,"defaultSlot",2),a([v('part="base"')],Tt.prototype,"menuItem",2),a([d()],Tt.prototype,"type",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2),a([d()],Tt.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"chevron",2),a([E("checked")],Tt.prototype,"handleCheckedChange",1),a([E("disabled")],Tt.prototype,"handleDisabledChange",1),a([E("type")],Tt.prototype,"handleTypeChange",1),Tt=a([k("sd-6-4-1-menu-item")],Tt);var ut=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"[default]","description","children");this.localize=new O(this);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.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let t=this.defaultSlot.assignedNodes({flatten:!0});return t.length>0&&t.every(e=>{var r;return e.nodeType===Node.TEXT_NODE?!((r=e.textContent)!=null&&r.trim()):e.nodeType===Node.ELEMENT_NODE?e.tagName.toLowerCase()==="sd-6-4-1-icon":!1})}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.separated&&!this.isLink?et`div`:this.isAccordion&&!this.isLink?et`summary`:this.isLink?et`a`:et`button`}focus(){var t;this.disabled||(t=this.button)==null||t.focus()}blur(){var t;(t=this.button)==null||t.blur()}render(){let t=this.tag,e=this.isLink,r=this.isButton,o=this.isAccordion,n=this.isIconOnly,l={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},h=this.vertical?"py-3":"py-2",u=U`<${t} part="base" class="${c("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-6-4-1-navigation-item-color-text",this.current&&"font-bold sd-6-4-1-navigation-item--current-color-text",!o&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",n?"justify-center aspect-square p-3":"px-4")}" aria-current="${C(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?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)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("absolute bg-accent left-0 pointer-events-none navigable__current-indicator-border-radius",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] bottom-0 left-2 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="inline-flex flex-col justify-center gap-1 w-full h-full"><span part="content-area" class="${c("relative inline-flex justify-between items-center",o?"grow":"w-full",l.description&&"pt-3",!l.description&&!this.separated&&h,this.calculatePaddingX)}">${this.divider&&this.vertical?U`<sd-6-4-1-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-6-4-1-divider>`:""} <span id="content" part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline-flex text-start"></slot></span>${this.chevron||l.children&&this.vertical&&!this.separated?U`<sd-6-4-1-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-6-4-1-icon>`:""} </span>${l.description&&this.vertical?U`<slot id="description" name="description" part="description" class="${c("inline-block text-sm text-left font-normal text-black pb-3",o||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${t}>`;return this.separated?U`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${u} ${l.children&&this.vertical?U`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-6-4-1-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("m-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-6-4-1-icon></button>`:""}</div>${this.open?U`<slot name="children"></slot>`:""}</div>`:o?U`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${u}<slot name="children"></slot></details>`:U`${u}`}};ut.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
240
|
+
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],a([v('[part="base"]')],ut.prototype,"button",2),a([v("slot:not([name])")],ut.prototype,"defaultSlot",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"vertical",2),a([d({type:String,reflect:!0})],ut.prototype,"size",2),a([d({reflect:!0})],ut.prototype,"href",2),a([d({type:String,reflect:!0})],ut.prototype,"target",2),a([d({reflect:!0})],ut.prototype,"download",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"current",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"chevron",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"relaxed",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"divider",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"indented",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"separated",2),ut=a([k("sd-6-4-1-navigation-item")],ut);var Br={"top-right":null,"bottom-center":null},_d=()=>{Object.entries(Br).forEach(([s])=>{let i=document.querySelector(`#sd-toast-stack--${s}`);if(i){i.setAttribute("role","region"),Br[s]=i;return}Br[s]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${s}`,className:`sd-toast-stack sd-toast-stack--${s}`})})};_d();var kt=class extends g{constructor(){super(...arguments);this.localize=new O(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()}get stack(){return Br[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.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()}handleKeyDown(t){this.closable&&t.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([Y(this.base),Y(this.wrapper)]),this.wrapper.hidden=!1;let t=q(this,"notification.show",{dir:this.localize.dir()}),e=q(this,`notification.wrapper.show${wi(bs(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([K(this.base,we(t.keyframes,this.base.scrollHeight),t.options),K(this.wrapper,e.keyframes,e.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([Y(this.base),Y(this.wrapper)]);let t=q(this,"notification.hide",{dir:this.localize.dir()}),e=q(this,`notification.wrapper.hide${wi(bs(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([K(this.base,we(t.keyframes,this.base.scrollHeight),t.options),K(this.wrapper,e.keyframes,e.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(this,"sd-after-hide")}async toast(){return new Promise(t=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),t()},{once:!0})})}render(){return p`<div part="base" class="${c("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="0" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${c("w-full h-fit overflow-hidden flex items-stretch relative")}"><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-6-4-1-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-6-4-1-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 sd-6-4-1-notification-color-border",{info:"sd-6-4-1-notification--info-color-background",success:"sd-6-4-1-notification--success-color-background",warning:"sd-6-4-1-notification--warning-color-background",error:"sd-6-4-1-notification--error-color-background"}[this.variant])}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?p`<sd-6-4-1-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-6-4-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-4-1-icon></sd-6-4-1-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 sd-6-4-1-notification-color-border"></div>`:""}</div></div>`}};kt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
241
|
+
:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],a([v('[part~="base"]')],kt.prototype,"base",2),a([v('[part~="wrapper"]')],kt.prototype,"wrapper",2),a([v('[part~="close-button"]')],kt.prototype,"close",2),a([d({type:String,reflect:!0})],kt.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],kt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],kt.prototype,"closable",2),a([d({type:Number,reflect:!0})],kt.prototype,"duration",2),a([d({type:Boolean,reflect:!0,attribute:"duration-indicator"})],kt.prototype,"durationIndicator",2),a([d({type:String,reflect:!0,attribute:"toast-stack"})],kt.prototype,"toastStack",2),a([E("open",{waitUntilFirstUpdate:!0})],kt.prototype,"handleOpenChange",1),a([E("duration")],kt.prototype,"handleDurationChange",1),kt=a([k("sd-6-4-1-notification")],kt);R("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var ne=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-6-4-1-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return U`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-6-4-1-divider id="divider" class="pt-2 pb-4" part="divider"></sd-6-4-1-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>`}};ne.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
242
|
+
:host{--display-divider:block}#divider{display:var(--display-divider)}`],a([v("slot:not([name])")],ne.prototype,"defaultSlot",2),a([d({reflect:!0,type:Boolean})],ne.prototype,"disabled",2),a([d({type:String,reflect:!0})],ne.prototype,"label",2),a([E("disabled",{waitUntilFirstUpdate:!0})],ne.prototype,"handleDisabledChange",1),ne=a([k("sd-6-4-1-optgroup")],ne);var yt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!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" style="word-break:break-word" class="${c("px-4 flex items-start w-full transition-colors duration-fast ease-in-out text-left text-base relative",{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":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",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-[height,top] duration-fast ease-in-out 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",{sm:"mt-0.5",md:"mt-1",lg:"mt-1"}[this.size],this.disabled?"sd-6-4-1-option--disabled-color-border":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?p`<sd-6-4-1-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-6-4-1-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>`}};yt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
243
|
+
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}`],a([v('[part="base"]')],yt.prototype,"defaultSlot",2),a([L()],yt.prototype,"current",2),a([L()],yt.prototype,"selected",2),a([L()],yt.prototype,"hasHover",2),a([L()],yt.prototype,"isKeyboardFocus",2),a([d({type:String,reflect:!0})],yt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],yt.prototype,"checkbox",2),a([d({type:Boolean,reflect:!0})],yt.prototype,"disabled",2),a([d({type:String,reflect:!0})],yt.prototype,"value",2),a([E("disabled")],yt.prototype,"handleDisabledChange",1),a([E("selected")],yt.prototype,"handleSelectedChange",1),a([E("value")],yt.prototype,"handleValueChange",1),yt=a([k("sd-6-4-1-option")],yt);var Fe=class extends It{constructor(){super(...arguments);this.expandable=!1}render(){let t=this.expandable?et`details`:et`div`,e=this.expandable?et`summary`:et`div`;return U`<${t} part="base" class="sm:p-6"><${e} part="header" id="header" class="${c("text-base font-bold items-center focus-visible:focus-outline text-primary relative group flex flex-row hover:bg-transparent gap-3 pb-3 pt-0 px-0 sm:flex-col sm:gap-4 sm:pb-8",this.expandable&&"cursor-pointer select-none")}" role="${C(this.expandable?"button":void 0)}" aria-expanded="${C(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${C(this.expandable?"content":void 0)}" tabindex="${this.expandable?"0":"-1"}" @click="${this.expandable?this.handleSummaryClick:null}" @keydown="${this.expandable?this.handleSummaryKeyDown:null}"><div part="icon" class="${c("flex flex-grow-0 flex-shrink-0 flex-auto items-center",!this.expandable&&"cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${c("flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",this.expandable?"sd-6-4-1-quickfact--expandable-color-text":"text-black cursor-default")}">${this.summary}</slot><span part="summary-icon" class="${c("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-6-4-1-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-6-4-1-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-6-4-1-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-6-4-1-icon></slot></span></${e}><div part="content" id="content" class="${c("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></${t}>`}};Fe.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
244
|
+
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=summary-icon]{color:var(--sd-accordion__chevron-color-text)}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],a([d({type:Boolean,reflect:!0})],Fe.prototype,"expandable",2),Fe=a([k("sd-6-4-1-quickfact")],Fe);R("quickfact.show",{keyframes:[{height:"0"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300ms)",easing:"ease-in-out"}});R("quickfact.hide",{keyframes:[{height:"auto"},{height:"0"}],options:{duration:"var(--sd-duration-medium, 300ms)",easing:"ease-in-out"}});var Et=class extends g{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return p`<span part="base" class="${c("sd-6-4-1-radio group flex items-center text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-4-1-radio-border-width rounded-full bg-white h-4 w-4 duration-fast ease-in-out",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?c("border-error hover:border-error-400 group-hover:border-error-400",this.checked?"sd-6-4-1-radio--checked--invalid--default-color-background":"sd-6-4-1-radio--default--invalid-color-background"):this.checked?"sd-6-4-1-radio--checked--default-color-background hover:sd-6-4-1-radio--checked--hover-color-background group-hover:sd-6-4-1-radio--checked--hover-color-background border-accent hover:border-accent-550 group-hover:border-accent-550":"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span part="checked" class="${c("rounded-full inline-flex text-white sd-6-4-1-radio--checked--default__icon-color-background h-2.5 w-2.5 transition-[transform, colors] duration-medium ease-in-out",this.checked?"scale-100":"scale-0",this.disabled?"bg-neutral-500":this.visuallyDisabled?"bg-white":this.invalid?"sd-6-4-1-radio--checked--invalid--default__icon-color-background hover:sd-6-4-1-radio--checked--invalid--hover__icon-color-background group-hover:sd-6-4-1-radio--checked--invalid--hover__icon-color-background":this.checked?"sd-6-4-1-radio--checked--default__icon-color-background hover:sd-6-4-1-radio--checked--hover__icon-color-background group-hover:sd-6-4-1-radio--checked--hover__icon-color-background":"bg-neutral-800")}"></span></span><slot part="label" class="${c("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};Et.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
245
|
+
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-width:1px;outline-style:var(--tw-outline-style);outline-width:2px;outline-offset:2px;outline-color:var(--sd-color-border-primary,var(--sd-color-primary))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],a([L()],Et.prototype,"checked",2),a([L()],Et.prototype,"hasFocus",2),a([d({type:String,reflect:!0})],Et.prototype,"size",2),a([d({type:Boolean,reflect:!0})],Et.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Et.prototype,"visuallyDisabled",2),a([d()],Et.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Et.prototype,"invalid",2),a([E("checked")],Et.prototype,"handleCheckedChange",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Et.prototype,"handleDisabledChange",1),Et=a([k("sd-6-4-1-radio")],Et);var St=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return p`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center sd-6-4-1-radio-button-border-radius transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.checked&&!this.disabled&&!this.visuallyDisabled?"sd-6-4-1-button--primary--default-color-background sd-6-4-1-button--primary--default-color-text hover:sd-6-4-1-button--primary--hover-color-background":!this.checked&&(this.disabled||this.visuallyDisabled)?"text-neutral-500 hover:cursor-not-allowed":this.checked&&(this.disabled||this.visuallyDisabled)?"bg-neutral-400 text-white hover:cursor-not-allowed ":"bg-transparent sd-6-4-1-radio-button-color-text border-primary hover:text-primary-500 cursor-pointer",t&&{sm:"px-3",md:"px-4",lg:"px-5"}[this.size],this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",r)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${C(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?p`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};St.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
246
|
+
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:var(--sd-spacing-12)}.lg-no-label{height:var(--sd-spacing-12);padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:var(--sd-spacing-10)}.md-no-label{height:var(--sd-spacing-10);padding-inline:var(--sd-spacing-4)}.sm-label{height:var(--sd-spacing-8)}.sm-no-label{height:var(--sd-spacing-8);padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-4-1-button-group__button:not(.sd-6-4-1-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3) * -1)}:host([size=md].sd-6-4-1-button-group__button:not(.sd-6-4-1-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2) * -1)}:host([size=sm].sd-6-4-1-button-group__button:not(.sd-6-4-1-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1) * -1)}:host(.sd-6-4-1-button-group__button--hover){z-index:20}:host(.sd-6-4-1-button-group__button--focus),:host(.sd-6-4-1-button-group__button[checked]){z-index:10}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],a([v(".button")],St.prototype,"input",2),a([v(".hidden-input")],St.prototype,"hiddenInput",2),a([L()],St.prototype,"hasFocus",2),a([d({type:String,reflect:!0})],St.prototype,"size",2),a([d({type:Boolean,reflect:!0})],St.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],St.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],St.prototype,"checked",2),a([d()],St.prototype,"value",2),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],St.prototype,"handleDisabledChange",1),St=a([k("sd-6-4-1-radio-button")],St);var Le=class extends g{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=Gi(t.target);e==null||e.classList.add("sd-6-4-1-button-group__button--focus")}handleBlur(t){let e=Gi(t.target);e==null||e.classList.remove("sd-6-4-1-button-group__button--focus")}handleMouseOver(t){let e=Gi(t.target);e==null||e.classList.add("sd-6-4-1-button-group__button--hover")}handleMouseOut(t){let e=Gi(t.target);e==null||e.classList.remove("sd-6-4-1-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),o=Gi(e);o!==null&&(o.classList.add("sd-6-4-1-button-group__button"),o.classList.toggle("sd-6-4-1-button-group__button--first",r===0),o.classList.toggle("sd-6-4-1-button-group__button--inner",r>0&&r<t.length-1),o.classList.toggle("sd-6-4-1-button-group__button--last",r===t.length-1),o.classList.toggle("sd-6-4-1-button-group__button--radio",o.tagName.toLowerCase()==="sd-6-4-1-radio-button"))})}render(){return p`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};Le.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
247
|
+
:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],a([v("slot")],Le.prototype,"defaultSlot",2),a([L()],Le.prototype,"disableRole",2),a([d({type:String,reflect:!0})],Le.prototype,"label",2),Le=a([k("sd-6-4-1-button-group")],Le);function Gi(s){var t;let i="sd-6-4-1-button, sd-6-4-1-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var rt=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new P(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?Ca:t?Ea:yi}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-6-4-1-radio, sd-6-4-1-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-6-4-1-radio, sd-6-4-1-radio-button"),r=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(u=>!u.disabled),r=(h=e.find(u=>u.checked))!=null?h:e[0],o=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,l=e.indexOf(r)+o;l<0&&(l=e.length-1),l>e.length-1&&(l=0),this.getAllRadios().forEach(u=>{u.checked=!1,this.hasButtonGroup||(u.tabIndex=-1)}),this.value=e[l].value,e[l].checked=!0,this.hasButtonGroup?e[l].shadowRoot.querySelector("button").focus():(e[l].tabIndex=0,e[l].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(o=>o.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async o=>{await o.updateComplete,o.checked=o.value===this.value,o.size=this.size,o instanceof Et&&(o.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(o=>o.tagName.toLowerCase()==="sd-6-4-1-radio-button"),!t.some(o=>o.checked))if(this.hasButtonGroup){let o=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");o&&(o.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let o=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-6-4-1-button-group");o&&(o.disableRole=!0)}}syncRadios(){if(customElements.get("sd-6-4-1-radio")&&customElements.get("sd-6-4-1-radio-button")){this.syncRadioElements();return}customElements.get("sd-6-4-1-radio")?this.syncRadioElements():customElements.whenDefined("sd-6-4-1-radio").then(()=>this.syncRadios()),customElements.get("sd-6-4-1-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-6-4-1-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),o=this.helpText?!0:!!r,n=this.hasSlotController.test("tooltip"),l=p`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message" aria-labelledby="label">${e||n?p`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black text-left",e?"inline-block":"hidden")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?p`<sd-6-4-1-button-group class="border border-primary sd-6-4-1-radio-button-group-border-radius sd-6-4-1-radio-button-group-border-width sd-6-4-1-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${l}</sd-6-4-1-button-group>`:l}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",o?"block":"hidden")}" aria-hidden="${!o}">${this.helpText}</slot><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?p`<sd-6-4-1-icon part="invalid-icon" class="${c("text-error")}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div>`}};rt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
248
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-4-1-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-4-1-radio:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-4-1-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-4-1-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-4-1-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-4-1-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([required]) #label::after{content:' *'}:host:has(sd-6-4-1-button-group){display:inline-flex}`],a([v("slot:not([name])")],rt.prototype,"defaultSlot",2),a([v("#validation-input")],rt.prototype,"validationInput",2),a([v("#invalid-message")],rt.prototype,"invalidMessage",2),a([L()],rt.prototype,"hasButtonGroup",2),a([L()],rt.prototype,"defaultValue",2),a([L()],rt.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],rt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],rt.prototype,"required",2),a([d({type:String,reflect:!0})],rt.prototype,"orientation",2),a([d({type:String,reflect:!0})],rt.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],rt.prototype,"helpText",2),a([d({type:String,reflect:!0})],rt.prototype,"name",2),a([d()],rt.prototype,"value",2),a([d({type:String,reflect:!0})],rt.prototype,"form",2),a([E("size",{waitUntilFirstUpdate:!0})],rt.prototype,"handleSizeChange",1),a([E("showInvalidStyle",{waitUntilFirstUpdate:!0})],rt.prototype,"handleInvalidChange",1),a([E("value")],rt.prototype,"handleValueChange",1),rt=a([k("sd-6-4-1-radio-group")],rt);var Re=(s,i)=>s-i,Ti=(s,i)=>{if(s.length!==i.length)return!0;let t=s.slice().sort(Re),e=i.slice().sort(Re);for(let r=0;r<t.length;r+=1)if(t[r]!==e[r])return!0;return!1},zs=(s,i)=>{let t=s.getBoundingClientRect(),e=t.width;if(e<=0)return 0;let r=i;return r-=t.left,r<=0?0:r>=e?1:(r/=e,r)};var st=class extends g{constructor(){super();this.formControlController=new dt(this);this.hasSlotController=new P(this,"label","help-text");this.localize=new O(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.tooltip="on-interaction";this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(t){this._value=t?t.split(" ").map(Number).sort(Re):[]}get value(){return this._value.slice().sort(Re).join(" ")}set valueAsArray(t){let e=this._value;this._value=Array.isArray(t)?t.slice().sort(Re):t||[],Ti(e,this._value)&&this.requestUpdate("value",e.join(" "))}get valueAsArray(){return[...this._value].sort(Re)}get rtl(){return this.localize.dir()==="rtl"}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value),this.thumbs.forEach(async t=>{var r,o;let e=t.parentElement;await e.updateComplete,(o=(r=e.shadowRoot)==null?void 0:r.querySelector("sd-6-4-1-popup"))==null||o.setAttribute("distance","14")})}willUpdate(t){super.willUpdate(t),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let e=this._value.map(r=>{if(r<=this.min)return this.min;if(r>=this.max)return this.max;let o=this.min+this.step*Math.round((r-this.min)/this.step);return o>this.max?this.max:o});Ti(this._value,e)&&(this._value=e)}updated(t){super.updated(t);for(let e of this.thumbs){let r=+e.dataset.rangeId;this._rangeValues.has(r)&&(this.moveThumb(e,this._rangeValues.get(r)),this.tooltip==="always-visible"&&e.parentElement.show())}this.updateActiveTrack()}focus(t){let e=this.thumbs.item(0);e?e.focus(t):super.focus(t)}get validity(){return this.input.validity}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()}updateTooltip(t){let e=+t.dataset.rangeId;if(!this._rangeValues.has(e))return;let r=this._rangeValues.get(e),o=t.parentElement;o.content=this.tooltipFormatter(r)}updateActiveTrack(){let{activeTrack:t}=this;if(!t)return;if(this.min===this.max){t.style.insetInlineStart="0%",t.style.insetInlineEnd="0%";return}if(this._value.length===1){let n=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",l=100*(this._value[0]-this.min)/(this.max-this.min);t.style.insetInlineStart=`min(${n}, ${l}%)`,t.style.insetInlineEnd=`min(calc(100% - ${n}), calc(100% - ${l}%))`;return}let e=this._value.slice().sort(Re),r=100*(e[0]-this.min)/(this.max-this.min),o=100*(e[e.length-1]-this.min)/(this.max-this.min);t.style.insetInlineStart=`${r}%`,t.style.insetInlineEnd=`calc(100% - ${o}%)`}moveThumb(t,e){t.setAttribute("aria-valuenow",e.toString()),t.setAttribute("aria-valuetext",this.tooltipFormatter(e));let r=(e-this.min)/(this.max-this.min);t.style.insetInlineStart=`calc(${100*r}% - 8px)`,this.updateTooltip(t)}movementBoundariesForThumb(t,e){let r=this.valueAsArray,n=Array.from(this.thumbs).indexOf(t),l=r[n-1]||this.min,h=r[n+1]||this.max,u=e<l||e>h;return{finalValue:Math.max(l,Math.min(h,e)),isRestricted:u,nextValue:h,prevValue:l}}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}onClickTrack(t,e=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:r}=t,o=Array.from(this.thumbs),n=zs(this.inputWrapper,r),l=this.step/(this.max-this.min),h=this.min+this.step*Math.round(n/l),u=o.reduce((b,w)=>{let T=this._rangeValues.get(+w.dataset.rangeId),z=this._rangeValues.get(+b.dataset.rangeId),M=Math.abs(T-h),_=Math.abs(z-h);return M===_?T<h?w:b:M<_?w:b}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,h),this.moveThumb(u,h);let f=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),Ti(f,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let y=new PointerEvent("pointerdown",t);e&&u.dispatchEvent(y)&&this.updateTooltip(u)}onClickTrackItem(t){this.onClickTrack(t,!1)}async onClickThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target;this.updateTooltip(e),e.dataset.pointerId&&e.releasePointerCapture(+e.dataset.pointerId),e.dataset.pointerId=t.pointerId.toString(),e.setPointerCapture(t.pointerId),e.classList.add("grabbed"),this.tooltip==="on-interaction"&&await e.parentElement.show()}onDragThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target,r=+e.dataset.rangeId;if(!this._rangeValues.has(r)||(e.dataset.pointerId?+e.dataset.pointerId:null)!==t.pointerId)return;let n=zs(this.inputWrapper,t.clientX),l=this.step/(this.max-this.min),h=this.min+this.step*Math.round(n/l);if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:h}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(e,h);m.isRestricted?(h=m.finalValue,e.style.zIndex=(3+this.thumbs.length).toFixed(0)):e.style.zIndex="3",this._rangeValues.set(r,h),this.moveThumb(e,h);let f=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),Ti(f,this._value)&&this.emit("sd-input")}async onReleaseThumb(t){let e=t.target;!e.dataset.pointerId||t.pointerId!==+e.dataset.pointerId||(e.classList.remove("grabbed"),e.releasePointerCapture(t.pointerId),delete e.dataset.pointerId,Ti(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),this.tooltip==="on-interaction"&&await e.parentElement.hide())}onKeyPress(t){let e=t.target,r=+e.dataset.rangeId,o=this._rangeValues.get(r);if(o===void 0)return;let n=o;switch(t.key){case"ArrowUp":case"Up":n=Math.min(o+this.step,this.max);break;case"ArrowDown":case"Down":n=Math.max(o-this.step,this.min);break;case"ArrowLeft":case"Left":n=this.rtl?Math.min(o+this.step,this.max):Math.max(o-this.step,this.min);break;case"ArrowRight":case"Right":n=this.rtl?Math.max(o-this.step,this.min):Math.min(o+this.step,this.max);break;case"PageUp":n=Math.min(o+(this.max-this.min)/5,this.max);break;case"PageDown":n=Math.max(o-(this.max-this.min)/5,this.min);break;case"Home":n=this.min;break;case"End":n=this.max;break;default:return}if(n!==o){if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:n}}).defaultPrevented)return;let h=this.movementBoundariesForThumb(e,n);h.isRestricted&&(n=h.finalValue),this.moveThumb(e,n),this._rangeValues.set(r,n),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(e),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}t.preventDefault()}onBlur(t){var e;t.relatedTarget&&((e=this.shadowRoot)!=null&&e.contains(t.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(t){var r;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let e=t.target;(r=e==null?void 0:e.dataset)!=null&&r.rangeId&&this.updateTooltip(e)}renderThumbs(t){let e=this._value.length>1;return this._rangeValues.clear(),this._value.map((r,o)=>{let n=o+1;this._rangeValues.set(n,r);let l=`thumb-${n}`,h="",u="";return e?(u=t?`label aria-label-hidden ${l}`:`aria-label-hidden ${l}`,o===0?h=`${this.localize.term("minimum")} (${this.tooltipFormatter(r)})`:o===this._value.length-1?h=`${this.localize.term("maximum")} (${this.tooltipFormatter(r)})`:h=this.tooltipFormatter(r)):u=t?"label aria-label-hidden":"",p`<sd-6-4-1-tooltip hoist trigger="${this.tooltip==="on-interaction"?"focus":"manual"}" disabled="${C(this.disabled||this.visuallyDisabled||this.tooltip==="hidden"?!0:void 0)}"><div id="${l}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${C(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${h}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${r}" aria-valuetext="${this.tooltipFormatter(r)}" data-range-id="${n}" data-disabled="${C(this.disabled||this.visuallyDisabled||void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${c("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"outline-none":"cursor-pointer focus-visible:focus-outline")}"></div></sd-6-4-1-tooltip>`})}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=!!(this.label||t.label),r=!!(this.helpText||t.helpText);return p`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${e?p`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${e?"false":"true"}" class="${c("w-full text-start",e?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${c("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${C(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${C(this.disabled||this.visuallyDisabled||void 0)}" class="${c("h-1 my-[6px]")}"></div><div part="active-track" hidden="${C(this.noTrackBar?!0:void 0)}" data-disabled="${C(this.disabled||this.visuallyDisabled||void 0)}" class="${c("absolute top-0 h-1")}"></div></div>${this.renderThumbs(e)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>`}};st.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
249
|
+
[part='base']{touch-action:none;-webkit-touch-callout:none}[part=thumb]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=thumb]:hover{background-color:rgba(var(--sd-color-icon-fill-primary-500,rgba(var(--sd-color-primary-500))))}[part=thumb].grabbed{background-color:rgba(var(--sd-color-icon-fill-primary-800,rgba(var(--sd-color-primary-800))))}[part=thumb][data-disabled]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=track]{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}[part=track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=active-track]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=active-track][data-disabled]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],a([v("#input")],st.prototype,"input",2),a([v('[part="active-track"]')],st.prototype,"activeTrack",2),a([v('[part="input-wrapper"]')],st.prototype,"inputWrapper",2),a([br('[part="thumb"]')],st.prototype,"thumbs",2),a([d({attribute:!1})],st.prototype,"tooltipFormatter",2),a([d({type:String,reflect:!0})],st.prototype,"name",2),a([d({type:String,reflect:!0})],st.prototype,"label",2),a([d({attribute:"help-text",reflect:!0})],st.prototype,"helpText",2),a([d({type:Number,reflect:!0})],st.prototype,"min",2),a([d({type:Number,reflect:!0})],st.prototype,"max",2),a([d({type:Number,reflect:!0})],st.prototype,"step",2),a([d({type:Boolean,reflect:!0})],st.prototype,"disabled",2),a([d({attribute:"visually-disabled",type:Boolean,reflect:!0})],st.prototype,"visuallyDisabled",2),a([d({attribute:"no-track-bar",type:Boolean,reflect:!0})],st.prototype,"noTrackBar",2),a([d({attribute:"tooltip",type:String,reflect:!0})],st.prototype,"tooltip",2),a([Rt()],st.prototype,"defaultValue",2),a([d({type:String})],st.prototype,"value",1),st=a([k("sd-6-4-1-range")],st);var Be=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.subtick=!1}render(){return p`<div part="base" class="${c(this.subtick?"w-0.25":"w-0.5")}"><div part="line" class="${c(this.subtick?"h-2":"h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-6-4-1-range-scale-ticks-color-text"><slot></slot></div></div>`}};Be.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
250
|
+
[part='line']{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}`],a([d({type:Boolean,reflect:!0})],Be.prototype,"subtick",2),Be=a([k("sd-6-4-1-range-tick")],Be);var pt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.handleContainerScroll()}),this.updateComplete.then(()=>{this.container&&this.resizeObserver.observe(this.container)})}disconnectedCallback(){super.disconnectedCallback(),this.container&&this.resizeObserver.unobserve(this.container)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.handleContainerScroll())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get scrollButtons(){return{left:this.leftButton,right:this.rightButton,up:this.upButton,down:this.downButton}}handleContainerScroll(){if(!this.container)return;let t=this.container.scrollLeft>0,e=this.container.scrollLeft+this.container.clientWidth<this.container.scrollWidth-1,r=this.container.scrollTop>0,o=this.container.scrollTop+this.container.clientHeight<this.container.scrollHeight-1,n=this.canScroll,l={left:this.isScrollHorizontalEnabled&&t,right:this.isScrollHorizontalEnabled&&e,up:this.isScrollVerticalEnabled&&r,down:this.isScrollVerticalEnabled&&o},h=n.left&&!l.left,u=n.up&&!l.up,m=n.right&&!l.right,f=n.down&&!l.down;(h||u)&&this.dispatchEvent(new CustomEvent("start")),(m||f)&&this.dispatchEvent(new CustomEvent("end")),this.canScroll=l}handleScroll(t,e){var _,A,F;let r=["left","up"].includes(t)?-this.step:this.step,o=["left","right"].includes(t)?"horizontal":"vertical",n=["left","up"].includes(t)?"start":"end",l=!["mouse","touch"].includes((_=e==null?void 0:e.pointerType)!=null?_:""),h=o==="horizontal"?"left":"top";(A=this.container)==null||A.scrollBy({behavior:"smooth",[h]:r});let u=`button-${t}`;this.dispatchEvent(new CustomEvent(u,{bubbles:!0,composed:!0}));let f=(o==="horizontal"?this.container.scrollLeft:this.container.scrollTop)+r,y=o==="horizontal"?this.container.scrollWidth-this.container.clientWidth:this.container.scrollHeight-this.container.clientHeight,b=n==="start"&&f<=0,w=n==="end"&&f>=y-1;if(!(b||w)){let D=this.localize.term("scrolled");this.announcementContainer.textContent=this.announcementContainer.textContent===D?`${D}\u200B`:D;return}let T=this.scrollButtons[t],z={left:this.rightButton,right:this.leftButton,up:this.downButton,down:this.upButton}[t],M=b?`${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}`:`${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;(F=z==null?void 0:z.querySelector("sd-6-4-1-icon"))==null||F.setAttribute("label",M),l?z==null||z.focus():T==null||T.blur()}handleButtonBlur(t,e){var l;let o=(["left","up"].includes(t)?"start":"end")==="start"?this.localize.term("scrollToStart"):this.localize.term("scrollToEnd");(l=e.target.querySelector("sd-6-4-1-icon"))==null||l.setAttribute("label",o)}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none transition-opacity duration-medium ease-in-out";return p`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset&&"p-4",{horizontal:"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",vertical:"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",auto:"scroll-auto overflow-auto"}[this.orientation])}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?p`${this.isScrollHorizontalEnabled?p`<div part="button-left" class="${c("absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8 transition-opacity duration-medium ease-in-out",!this.canScroll.left&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${c(t)}" aria-hidden="${C(!this.canScroll.left||void 0)}" tabindex="${C(this.canScroll.left?void 0:-1)}" @click="${r=>this.handleScroll("left",r)}" @blur="${r=>this.handleButtonBlur("left",r)}"><slot name="icon-start"><sd-6-4-1-icon library="_internal" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-6-4-1-icon></slot></button></div><div part="button-right" class="${c("absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8 transition-opacity duration-medium ease-in-out",!this.canScroll.right&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${c(t)}" aria-hidden="${C(!this.canScroll.right||void 0)}" tabindex="${C(this.canScroll.right?void 0:-1)}" @click="${r=>this.handleScroll("right",r)}" @blur="${r=>this.handleButtonBlur("right",r)}"><slot name="icon-end"><sd-6-4-1-icon library="_internal" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-6-4-1-icon></slot></button></div>`:null} ${this.isScrollVerticalEnabled?p`<div part="button-top" class="${c("absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",!this.canScroll.up&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${c(t)}" aria-hidden="${C(!this.canScroll.up||void 0)}" tabindex="${C(this.canScroll.up?void 0:-1)}" @click="${r=>this.handleScroll("up",r)}" @blur="${r=>this.handleButtonBlur("up",r)}"><slot name="icon-start"><sd-6-4-1-icon library="_internal" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-6-4-1-icon></slot></button></div><div part="button-bottom" class="${c("absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",!this.canScroll.down&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${c(t)}" aria-hidden="${C(!this.canScroll.down||void 0)}" tabindex="${C(this.canScroll.down?void 0:-1)}" @click="${r=>this.handleScroll("down",r)}" @blur="${r=>this.handleButtonBlur("down",r)}"><slot name="icon-end"><sd-6-4-1-icon library="_internal" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-6-4-1-icon></slot></button></div>`:null}`:null} ${this.shadows?p`${this.isScrollHorizontalEnabled?p`<div part="shadow-left" class="${c("left top-0 left-0 w-[6px] h-full",e,this.canScroll.left?"opacity-100":"opacity-0")}"></div><div part="shadow-right" class="${c("right top-0 right-0 w-[6px] h-full",e,this.canScroll.right?"opacity-100":"opacity-0")}"></div>`:null} ${this.isScrollVerticalEnabled?p`<div part="shadow-top" class="${c("top top-0 left-0 w-full h-[6px]",e,this.canScroll.up?"opacity-100":"opacity-0")}"></div><div part="shadow-bottom" class="${c("bottom bottom-0 left-0 w-full h-[6px]",e,this.canScroll.down?"opacity-100":"opacity-0")}"></div>`:null}`:null}`}};pt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
251
|
+
:host{--gradient-color:transparent;--gradient:var(--gradient-color) 0%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 80%,rgba(var(--sd-color-background-white, rgba(var(--sd-color-white)))) 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-radius-sm)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1);width:var(--sd-spacing-1)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,transparent 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,transparent 50%,rgba(24,24,24,.4) 100%)}.sd-6-4-1-icon--top{align-self:flex-start}.sd-6-4-1-icon--down{align-self:flex-end}`],a([v('[part="button-right"] button')],pt.prototype,"rightButton",2),a([v('[part="button-left"] button')],pt.prototype,"leftButton",2),a([v('[part="button-bottom"] button')],pt.prototype,"downButton",2),a([v('[part="button-top"] button')],pt.prototype,"upButton",2),a([v(".scroll-container")],pt.prototype,"container",2),a([v("#announcement-container")],pt.prototype,"announcementContainer",2),a([d({type:String,reflect:!0})],pt.prototype,"orientation",2),a([d({type:Boolean,reflect:!0})],pt.prototype,"scrollbars",2),a([d({type:Boolean,reflect:!0})],pt.prototype,"buttons",2),a([d({type:Boolean,reflect:!0})],pt.prototype,"shadows",2),a([d({type:Boolean,reflect:!0})],pt.prototype,"inset",2),a([d({type:Number,reflect:!0})],pt.prototype,"step",2),a([L()],pt.prototype,"canScroll",2),a([L()],pt.prototype,"isScrollHorizontalEnabled",2),a([L()],pt.prototype,"isScrollVerticalEnabled",2),pt=a([k("sd-6-4-1-scrollable")],pt);var V=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-6-4-1-input"]});this.hasSlotController=new P(this,"help-text","label");this.localize=new O(this);this.typeToSelectString="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-6-4-1-tag class="relative z-10 min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
252
252
|
base:tag__base,
|
|
253
253
|
content:tag__content,
|
|
254
254
|
removable-indicator:tag__removable-indicator,
|
|
255
|
-
" size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-6-
|
|
255
|
+
" size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-6-4-1-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,r=e.closest(".select__clear")!==null,o=e.closest("sd-6-4-1-icon-button")!==null;if(!(r||o)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.combobox.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show(),this.setCurrentOption(this.currentOption||this.getFirstOption(),t);return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.getAllOptions(),l=n.indexOf(this.currentOption),h=Math.max(0,l);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(h=l+1,h>n.length-1&&(h=0)):t.key==="ArrowUp"?(h=l-1,h<0&&(h=n.length-1)):t.key==="Home"?h=0:t.key==="End"&&(h=n.length-1),this.setCurrentOption(n[h],t)}if(t.key.length===1||t.key==="Backspace"){let n=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let l of n)if(l.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(l);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var r,o,n;if((t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple){t.preventDefault(),t.stopPropagation();let l=(r=t.currentTarget)==null?void 0:r.parentElement,h=(o=l==null?void 0:l.previousElementSibling)==null?void 0:o.querySelector("sd-6-4-1-tag"),u=(n=l==null?void 0:l.nextElementSibling)==null?void 0:n.querySelector("sd-6-4-1-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{u?u.focus():h?h.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var r;let e=(r=this.shadowRoot)==null?void 0:r.querySelectorAll("sd-6-4-1-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.combobox.focus()}handleComboboxMouseDown(t){let r=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");this.disabled||r||this.visuallyDisabled||(t.preventDefault(),this.combobox.focus({preventScroll:!0}),this.open=!this.open,this.setCurrentOption(this.currentOption||this.getFirstOption(),t))}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.combobox.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let r=t.target.closest("sd-6-4-1-option"),o=this.value;r&&!r.disabled&&(this.multiple?this.toggleOptionSelection(r):this.setSelectedOptions(r),this.updateComplete.then(()=>this.combobox.focus({preventScroll:!0})),this.value!==o&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],r=[];customElements.get("sd-6-4-1-option")?(t.forEach(o=>{this.multiple&&(o.checkbox=!0),r.push(o.value)}),this.setSelectedOptions(t.filter(o=>e.includes(o.value)))):customElements.whenDefined("sd-6-4-1-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-6-4-1-option")]}getFirstOption(){return this.querySelector("sd-6-4-1-option")}setCurrentOption(t,e){this.getAllOptions().forEach(o=>{o.current=!1,o.tabIndex=-1,((e==null?void 0:e.type)==="keydown"||(e==null?void 0:e.type)==="mousedown")&&(o.isKeyboardFocus=!1)}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus()),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}setSelectedOptions(t){let e=this.getAllOptions(),r=Array.isArray(t)?t:[t];e.forEach(o=>o.selected=!1),r.length&&r.forEach(o=>o.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}get displayLabel(){var t,e;return this.multiple?this.useTags||this.value.length===0?"":this.localize.term("numOptionsSelected",this.selectedOptions.length):(e=(t=this.selectedOptions[0])==null?void 0:t.getTextLabel())!=null?e:""}selectionChanged(t){var e,r;t&&this.multiple?this.selectedOptions.find(o=>o.value===t.value)?this.selectedOptions=this.selectedOptions.filter(o=>o.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(o=>o.selected),this.multiple?this.value=this.selectedOptions.map(o=>o.value):this.value=(r=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?r:"",this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let r=this.getTag(t,e);return p`<div @sd-remove="${o=>this.handleTagRemove(o,t)}" class="max-w-full">${typeof r=="string"?Hi(r):r}</div>`}return[p``]}):[p`<sd-6-4-1-tag class="z-10 min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
256
256
|
base:tag__base,
|
|
257
257
|
content:tag__content,
|
|
258
258
|
removable-indicator:tag__removable-indicator,
|
|
259
|
-
" 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-6-
|
|
259
|
+
" 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-6-4-1-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-6-4-1-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Y(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=q(this,"select.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.currentOption&&ee(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Y(this);let{keyframes:t,options:e}=q(this,"select.hide",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){let t=this.value,e=Array.isArray(t)?t:[t],r=this.selectedOptions.map(l=>l.value);if(e.length===r.length&&e.every(l=>r.includes(l)))return;let o=this.getAllOptions(),n=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(o.filter(l=>n.includes(l.value))),this.value=t}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Z(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,Z(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,o=this.clearable&&!this.disabled,n=!!t.tooltip,l=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||this.open||l)&&!(this.disabled&&!l),u=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"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",m=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],b=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1";return p`<div part="form-control" class="${c("relative text-left",m,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e&&!this.floatingLabel||n?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block form-control-color-text"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><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 bg-white",u==="disabled"?"text-neutral-500":"form-control-color-text")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",h&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[u],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-6-4-1-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 sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
260
260
|
popup:popup__content,
|
|
261
|
-
"><div class="${c("relative w-full h-full grid rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",["invalid","activeInvalid"].includes(u)&&"form-control--invalid-color-background")}" slot="anchor"><div class="${c("input-container items-center w-full h-full px-4 flex min-w-0",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size],b)}"><input name="${this.name}" form="${this.form}" part="display-input" class="${c("top-0 left-0 appearance-none outline-none flex-grow bg-transparent flex-1 placeholder:text-neutral-700 min-w-0",m,this.multiple&&this.useTags&&this.value.length>0?"hidden":"",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",h&&"leading-none mt-4")}" type="text" .disabled="${this.disabled}" placeholder="${!this.floatingLabel||h?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="-1"> ${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${c("flex-grow flex flex-wrap items-center gap-1 min-w-0",this.floatingLabel&&"pt-6")}">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(w=>w==null?void 0:w.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",m)}" 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}"> ${o?p`<button part="clear-button" class="${c("select__clear flex justify-center",f,this.value.length>0?"visible":"hidden")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-
|
|
262
|
-
:host{position:relative;display:block;width:auto}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-6-
|
|
263
|
-
:host{display:block}::slotted(*){visibility:hidden}`],a([d({type:String,reflect:!0})],Ne.prototype,"variant",2),Ne=a([k("sd-6-
|
|
264
|
-
:host{display:inline-block;width:1em;height:1em}`],a([d({type:String,reflect:!0})],Ue.prototype,"color",2),Ue=a([k("sd-6-
|
|
265
|
-
:host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-6-
|
|
266
|
-
:host{width:-moz-max-content;width:max-content}`],a([v("[part=body]")],Dt.prototype,"body",2),a([d({type:String,reflect:!0})],Dt.prototype,"size",2),a([d({type:String,reflect:!0})],Dt.prototype,"orientation",2),a([d({type:Number,reflect:!0,attribute:"active-step"})],Dt.prototype,"activeStep",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Dt.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Dt.prototype,"label",2),a([E("size",{waitUntilFirstUpdate:!0})],Dt.prototype,"updateSize",1),a([E("orientation",{waitUntilFirstUpdate:!0})],Dt.prototype,"updateOrientation",1),a([E("notInteractive")],Dt.prototype,"handleInteractivityChange",1),Dt=a([k("sd-6-
|
|
261
|
+
"><div class="${c("relative w-full h-full grid rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",["invalid","activeInvalid"].includes(u)&&"form-control--invalid-color-background")}" slot="anchor"><div class="${c("input-container items-center w-full h-full px-4 flex min-w-0",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size],b)}"><input name="${this.name}" form="${this.form}" part="display-input" class="${c("top-0 left-0 appearance-none outline-none flex-grow bg-transparent flex-1 placeholder:text-neutral-700 min-w-0",m,this.multiple&&this.useTags&&this.value.length>0?"hidden":"",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",h&&"leading-none mt-4")}" type="text" .disabled="${this.disabled}" placeholder="${!this.floatingLabel||h?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="-1"> ${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${c("flex-grow flex flex-wrap items-center gap-1 min-w-0",this.floatingLabel&&"pt-6")}">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(w=>w==null?void 0:w.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",m)}" 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}"> ${o?p`<button part="clear-button" class="${c("select__clear flex justify-center",f,this.value.length>0?"visible":"hidden")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-4-1-icon class="${c("text-neutral-700 z-10",y)}" library="_internal" name="closing-round"></sd-6-4-1-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-6-4-1-icon part="invalid-icon" class="${c(f,y,"text-error")}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-6-4-1-icon part="valid-icon" class="${c("flex-shrink-0 text-success",f,y)}" library="_internal" name="confirm-circle"></sd-6-4-1-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${c("inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",y)}"><sd-6-4-1-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-6-4-1-icon></slot></div><button part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",m,this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></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 transition-shadow duration-medium ease-in-out",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-6-4-1-popup></div><div class="text-sm text-neutral-700 mt-1" 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(this.size)}`}};V.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
262
|
+
:host{position:relative;display:block;width:auto}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-6-4-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-6-4-1-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-6-4-1-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-6-4-1-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-6-4-1-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}`],a([gi({selector:"sd-6-4-1-option"})],V.prototype,"_optionsInDefaultSlot",2),a([v("sd-6-4-1-popup")],V.prototype,"popup",2),a([v('[part="combobox"]')],V.prototype,"combobox",2),a([v('[part="display-input"]')],V.prototype,"displayInput",2),a([v(".value-input")],V.prototype,"valueInput",2),a([v('[part="listbox"]')],V.prototype,"listbox",2),a([v("#invalid-message")],V.prototype,"invalidMessage",2),a([L()],V.prototype,"deletedTagLabel",2),a([L()],V.prototype,"hasFocus",2),a([L()],V.prototype,"currentOption",2),a([L()],V.prototype,"selectedOptions",2),a([L()],V.prototype,"showValidStyle",2),a([L()],V.prototype,"showInvalidStyle",2),a([Rt()],V.prototype,"defaultValue",2),a([d({type:Boolean,reflect:!0})],V.prototype,"open",2),a([d({type:String,reflect:!0})],V.prototype,"size",2),a([d({type:String,reflect:!0})],V.prototype,"placement",2),a([d({type:String,reflect:!0})],V.prototype,"label",2),a([d({type:String,reflect:!0})],V.prototype,"placeholder",2),a([d({type:String,attribute:"max-options-tag-label",reflect:!0})],V.prototype,"maxOptionsTagLabel",2),a([d({type:Boolean,reflect:!0})],V.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],V.prototype,"visuallyDisabled",2),a([d({type:String,attribute:"help-text",reflect:!0})],V.prototype,"helpText",2),a([L()],V.prototype,"currentPlacement",2),a([d({type:Boolean,reflect:!0})],V.prototype,"clearable",2),a([d({type:Boolean,reflect:!0})],V.prototype,"multiple",2),a([d({type:Boolean,reflect:!0})],V.prototype,"useTags",2),a([d({attribute:"max-options-visible",type:Number,reflect:!0})],V.prototype,"maxOptionsVisible",2),a([d({reflect:!0})],V.prototype,"form",2),a([d({reflect:!0})],V.prototype,"name",2),a([d({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],V.prototype,"value",2),a([d({type:Boolean,reflect:!0})],V.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],V.prototype,"floatingLabel",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],V.prototype,"styleOnValid",2),a([d({type:Boolean,reflect:!0})],V.prototype,"hoist",2),a([d()],V.prototype,"getTag",2),a([E("useTags",{waitUntilFirstUpdate:!0})],V.prototype,"handleUseTagsChange",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],V.prototype,"handleDisabledChange",1),a([E("open",{waitUntilFirstUpdate:!0})],V.prototype,"handleOpenChange",1),a([E("size",{waitUntilFirstUpdate:!0})],V.prototype,"applySizeToOptions",1),a([E("value",{waitUntilFirstUpdate:!0})],V.prototype,"handleValueChange",1),V=a([k("sd-6-4-1-select")],V);R("select.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("select.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var Ne=class extends g{constructor(){super(...arguments);this.variant="rectangular"}render(){return p`<div part="base" aria-hidden="true" class="${c("bg-neutral-200 w-full h-full animate-pulse",{rectangular:"rounded-sm",circular:"rounded-full inline-block"}[this.variant])}"><slot></slot></div>`}};Ne.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
263
|
+
:host{display:block}::slotted(*){visibility:hidden}`],a([d({type:String,reflect:!0})],Ne.prototype,"variant",2),Ne=a([k("sd-6-4-1-skeleton")],Ne);var Ue=class extends g{constructor(){super(...arguments);this.color="currentColor";this.localize=new O(this)}render(){return p`<svg role="progressbar" viewBox="0 0 24 24" class="${c("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};Ue.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
264
|
+
:host{display:inline-block;width:1em;height:1em}`],a([d({type:String,reflect:!0})],Ue.prototype,"color",2),Ue=a([k("sd-6-4-1-spinner")],Ue);var nt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"label","[default]");this.size="lg";this.orientation="horizontal";this.horizontalInline=!1;this.waiting=!1;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,this.waiting=!1)}handleDisabledChange(){this.disabled&&(this.current=!1,this.waiting=!1)}handleWaitingChange(){this.waiting&&(this.current=!1,this.disabled=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1,this.waiting=!1)}render(){let t=this.isLink(),e=this.notInteractive||this.waiting?et`div`:t?et`a`:et`button`,r=this.hasSlotController.test("label"),o=this.label?!0:r,n=this.hasSlotController.test("[default]"),l=this.description?!0:n,h=this.horizontalInline&&this.orientation==="horizontal",u=c("flex shrink-0 gap-2",this.noTail&&!h&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",h&&"items-start",this.orientation==="horizontal"&&!this.horizontalInline?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3"),m=c("border sd-6-4-1-step__circle-border-width 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":!this.notInteractive&&!this.waiting?"focus-visible:focus-outline hover:cursor-pointer":"",this.notInteractive?this.size==="lg"?"not-interactive-lg":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-500 text-neutral-500",this.waiting&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"border-primary hover:bg-primary-100 hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white");return U`<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-full overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${u}"><${e} part="circle" href="${C(t?this.href:void 0)}" aria-disabled="${C(this.disabled||this.waiting||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${C(this.notInteractive||this.waiting||!o?void 0:"label")}" aria-describedby="${C(this.notInteractive||this.waiting||!l?void 0:"description")}" class="${m}"><slot name="circle-content" class="${c("text-lg",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-primary hover:text-primary-500 hover:fill-primary-500",this.notInteractive&&"text-primary")}">${!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting?U`<sd-6-4-1-icon name="status-check" library="_internal" class="${c(this.size==="sm"&&"text-sm")}"></sd-6-4-1-icon>`:U`${this.index}`}</slot></${e}>${h?U`<div class="${c(!this.noTail&&"flex-1","flex flex-col gap-1")}"><div class="${c("flex w-full",o&&"gap-2",this.size==="sm"&&!l?"mt-1":"mt-3")}">${o&&U`<div part="label" id="label" class="${c("font-bold whitespace-nowrap",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-black")}"><slot name="label">${this.label}</slot></div>`} ${this.noTail?"":U`<div part="tail" class="${c("border-t flex-1 mr-2 mt-3",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting?"border-primary":"border-neutral-500")}"></div>`}</div>${l?U`<div part="description" id="description" class="${c("sd-paragraph sd-paragraph--size-sm break-words",l?"flex-1":"w-0 h-0 overflow-hidden",l&&!this.noTail&&"pr-4",(this.disabled||this.waiting)&&"!text-neutral-700")}">${this.description||U`<slot></slot>`}</div>`:""}</div>`:this.noTail?"":U`<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&&!this.waiting?"border-primary":"border-neutral-400")}"></div>`}</div>${h?"":U`<div part="text-container" class="${c("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"text-left",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",this.notInteractive?"ml-2":"mr-4")}"><div part="label" id="label" class="${c("font-bold",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${c("sd-paragraph sd-paragraph--size-sm",(this.disabled||this.waiting)&&"text-neutral-700")}">${this.description||U`<slot></slot>`}</div></div>`}</div>`}};nt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
265
|
+
:host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-6-4-1-icon,slot[name=circle-content]::slotted(sd-6-4-1-icon){color:rgba(var(--sd-color-icon-fill-primary))}:host([horizontal-inline]):has([part=description]){min-width:calc(var(--sd-spacing-1) * 0);flex:1}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`],a([d({type:String,reflect:!0})],nt.prototype,"size",2),a([d({type:String,reflect:!0})],nt.prototype,"orientation",2),a([d({type:Boolean,reflect:!0,attribute:"horizontal-inline"})],nt.prototype,"horizontalInline",2),a([d({type:Boolean,reflect:!0})],nt.prototype,"waiting",2),a([d({type:Boolean,reflect:!0})],nt.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],nt.prototype,"current",2),a([d({reflect:!0,type:Boolean,attribute:"no-tail"})],nt.prototype,"noTail",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],nt.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],nt.prototype,"label",2),a([d({type:String,reflect:!0})],nt.prototype,"description",2),a([d({type:Number,reflect:!0,attribute:"index"})],nt.prototype,"index",2),a([d({type:String,reflect:!0})],nt.prototype,"href",2),a([E("current")],nt.prototype,"handleCurrentChange",1),a([E("disabled")],nt.prototype,"handleDisabledChange",1),a([E("waiting")],nt.prototype,"handleWaitingChange",1),a([E("notInteractive")],nt.prototype,"handleInteractivityChange",1),nt=a([k("sd-6-4-1-step")],nt);var Dt=class extends g{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-6-4-1-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.waiting=!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>`}};Dt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
266
|
+
:host{width:-moz-max-content;width:max-content}`],a([v("[part=body]")],Dt.prototype,"body",2),a([d({type:String,reflect:!0})],Dt.prototype,"size",2),a([d({type:String,reflect:!0})],Dt.prototype,"orientation",2),a([d({type:Number,reflect:!0,attribute:"active-step"})],Dt.prototype,"activeStep",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Dt.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Dt.prototype,"label",2),a([E("size",{waitUntilFirstUpdate:!0})],Dt.prototype,"updateSize",1),a([E("orientation",{waitUntilFirstUpdate:!0})],Dt.prototype,"updateOrientation",1),a([E("notInteractive")],Dt.prototype,"handleInteractivityChange",1),Dt=a([k("sd-6-4-1-step-group")],Dt);var ft=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"tooltip");this.formControlController=new dt(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`<div class="flex flex-row items-center gap-2"><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="${$e(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
|
|
267
267
|
peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
|
|
268
|
-
peer-focus-visible:outline-primary transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?this.checked?"border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":"border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white":this.checked?"border-accent hover:sd-6-
|
|
269
|
-
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([disabled][checked]) #control{border-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}:host([checked]) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([disabled]:not([checked])) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],a([v("input")],ft.prototype,"input",2),a([v("#invalid-message")],ft.prototype,"invalidMessage",2),a([L()],ft.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],ft.prototype,"title",2),a([d({type:String,reflect:!0})],ft.prototype,"name",2),a([d()],ft.prototype,"value",2),a([d({type:Boolean,reflect:!0})],ft.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],ft.prototype,"checked",2),a([Rt("checked")],ft.prototype,"defaultChecked",2),a([d({reflect:!0})],ft.prototype,"form",2),a([d({type:Boolean,reflect:!0})],ft.prototype,"required",2),a([E("disabled",{waitUntilFirstUpdate:!0})],ft.prototype,"handleDisabledChange",1),a([E(["checked"],{waitUntilFirstUpdate:!0})],ft.prototype,"handleStateChange",1),ft=a([k("sd-6-
|
|
270
|
-
:host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],a([v("[part=base]")],At.prototype,"tab",2),a([v("[part=active-tab-indicator]")],At.prototype,"currentIndicator",2),a([d({type:String,reflect:!0})],At.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],At.prototype,"active",2),a([d({type:Boolean,reflect:!0})],At.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],At.prototype,"visuallyDisabled",2),a([d({type:String,reflect:!0})],At.prototype,"panel",2),a([E("active")],At.prototype,"handleActiveChange",1),a([E(["disabled","visually-disabled"])],At.prototype,"handleDisabledChange",1),At=a([k("sd-6-3-0-tab")],At);var Lt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.canScroll={left:!1,right:!1};this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-6-3-0-tab"),customElements.whenDefined("sd-6-3-0-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls(),this.repositionIndicator()}),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),this.nav.addEventListener("scroll",()=>this.handleScroll()),t.then(()=>{new IntersectionObserver((r,o)=>{var n;r[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((n=this.activeTab)!=null?n:this.tabs[0],{emitEvents:!1}),o.unobserve(r[0].target))}).observe(this.tabGroup)})})}updated(t){!t.get("canScroll")&&this.canScroll&&this.handleScroll()}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){let e=this.shadowRoot.querySelector('slot[name="nav"]');return Array.from(e.assignedElements()).map(r=>r.tagName.toLocaleLowerCase()==="sd-6-3-0-tab"?r:r.querySelector("sd-6-3-0-tab")).filter(r=>r&&t.includeDisabled?r.tagName.toLowerCase()==="sd-6-3-0-tab":r.tagName.toLowerCase()==="sd-6-3-0-tab"&&!r.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-6-3-0-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let r=t.target.closest("sd-6-3-0-tab");(r==null?void 0:r.closest("sd-6-3-0-tab-group"))===this&&r!==null&&this.setActiveTab(r,{scrollBehavior:"smooth"})}handleKeyDown(t){let r=t.target.closest("sd-6-3-0-tab");if((r==null?void 0:r.closest("sd-6-3-0-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()),l=this.tabs[n+1];r!==null&&l&&ee(l,this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab()),l=this.tabs[n-1];r!==null&&l&&ee(l,this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.tabs.find(h=>h.matches(":focus")),l=this.localize.dir()==="rtl";if((n==null?void 0:n.tagName.toLowerCase())==="sd-6-3-0-tab"){let h=this.tabs.indexOf(n);t.key==="Home"?h=0:t.key==="End"?h=this.tabs.length-1:t.key===(l?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?h--:(t.key===(l?"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"}),ee(this.tabs[h],this.nav,"horizontal"),t.preventDefault()}}}}handleScroll(){this.canScroll={left:this.nav.scrollLeft>0,right:this.nav.scrollLeft+this.nav.clientWidth<this.nav.scrollWidth-1}}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=B({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled&&!t.visuallyDisabled){let r=this.activeTab;this.activeTab=t,this.tabs.map(o=>o.active=o===this.activeTab),this.panels.map(o=>{var n;return o.active=o.name===((n=this.activeTab)==null?void 0:n.panel)}),this.repositionIndicator(),ee(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.repositionIndicator(),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}async repositionIndicator(){await this.updateComplete;let t=this.activeTab,e=this.indicator,r=this.tabsContainer;if(!t||!e||!r||t.variant==="container")return;let o=t.getBoundingClientRect(),n=r.getBoundingClientRect(),l=getComputedStyle(r).justifyContent==="center",h=n.left+n.width/2,u=o.left+o.width/2,m=t.offsetWidth,f=l?u-h:o.left-n.left;e.style.width=`${m}px`,e.style.transform=`translateX(${f}px)`}show(t){let e=this.tabs.find(r=>r.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){var e;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" disabled="${C(!this.canScroll.left||void 0)}" 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-6-3-0-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-3-0-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">${((e=this.activeTab)==null?void 0:e.variant)!=="container"?p`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>`:""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></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" disabled="${C(!this.canScroll.right||void 0)}" 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-6-3-0-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-3-0-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>`}};Lt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
271
|
-
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-
|
|
272
|
-
:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],a([d({type:String,reflect:!0})],me.prototype,"name",2),a([d({type:Boolean,reflect:!0})],me.prototype,"active",2),a([E("active")],me.prototype,"handleActiveChange",1),me=a([k("sd-6-
|
|
273
|
-
:host{display:block}::slotted(*){margin:calc(var(--sd-spacing-1) * 0)}::slotted([slot=headline]){margin:calc(var(--sd-spacing-1) * 0)!important;font-size:var(--sd-text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)))!important;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}@property --tw-font-weight{syntax:"*";inherits:false}`],a([d({type:String,reflect:!0})],Yt.prototype,"variant",2),a([d({reflect:!0,type:Number})],Yt.prototype,"breakpoint",2),a([d({type:Boolean,reflect:!0})],Yt.prototype,"inset",2),a([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],Yt.prototype,"reversedLayout",2),a([v('[part="base"]')],Yt.prototype,"teaser",2),a([L()],Yt.prototype,"_orientation",2),Yt=a([k("sd-6-
|
|
268
|
+
peer-focus-visible:outline-primary transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?this.checked?"border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":"border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white":this.checked?"border-accent hover:sd-6-4-1-switch--checked--hover-color-background bg-accent hover:border-accent-550 group-hover:sd-6-4-1-switch--checked--hover-color-background":"sd-6-4-1-switch--unchecked-color-border 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,colors] ease-in-out duration-medium",this.disabled&&this.checked?"translate-x-2":this.disabled?"-translate-x-2":this.showInvalidStyle?this.checked?"translate-x-2":"bg-error -translate-x-2 hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":this.checked?"translate-x-2":"-translate-x-2 sd-6-4-1-switch--unchecked__icon-color-background")}"></span> </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"sd-6-4-1-switch-color-text")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip")?p`<slot name="tooltip"></slot>`:null}</div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?p`<sd-6-4-1-icon part="invalid-icon" class="${c("text-error")}" library="_internal" name="risk"></sd-6-4-1-icon>`:""} ${this.formControlController.renderInvalidMessage("lg")}</div>`}};ft.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
269
|
+
:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([disabled][checked]) #control{border-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}:host([checked]) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([disabled]:not([checked])) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],a([v("input")],ft.prototype,"input",2),a([v("#invalid-message")],ft.prototype,"invalidMessage",2),a([L()],ft.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],ft.prototype,"title",2),a([d({type:String,reflect:!0})],ft.prototype,"name",2),a([d()],ft.prototype,"value",2),a([d({type:Boolean,reflect:!0})],ft.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],ft.prototype,"checked",2),a([Rt("checked")],ft.prototype,"defaultChecked",2),a([d({reflect:!0})],ft.prototype,"form",2),a([d({type:Boolean,reflect:!0})],ft.prototype,"required",2),a([E("disabled",{waitUntilFirstUpdate:!0})],ft.prototype,"handleDisabledChange",1),a([E(["checked"],{waitUntilFirstUpdate:!0})],ft.prototype,"handleStateChange",1),ft=a([k("sd-6-4-1-switch")],ft);var Id=0,At=class extends g{constructor(){super(...arguments);this.attrId=++Id;this.componentId=`sd-6-4-1-tab-${this.attrId}`;this.hasSlotController=new P(this,"left");this.localize=new O(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"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 justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative","outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",this.variant==="container"?"tab-container-border bg-white rounded-[4px_4px_0_0]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:color-background",this.active&&"z-20")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${c("flex h-full items-center justify-center whitespace-nowrap",this.disabled||this.visuallyDisabled&&"opacity-50 ")}"><slot name="left" class="${c(t.left&&"block pr-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><slot class="${c(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot>${this.variant==="container"?p`<div part="active-tab-indicator" class="${c("absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${c(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-4-1-tab-color-border")}"></div></div></div>`}};At.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
270
|
+
:host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],a([v("[part=base]")],At.prototype,"tab",2),a([v("[part=active-tab-indicator]")],At.prototype,"currentIndicator",2),a([d({type:String,reflect:!0})],At.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],At.prototype,"active",2),a([d({type:Boolean,reflect:!0})],At.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],At.prototype,"visuallyDisabled",2),a([d({type:String,reflect:!0})],At.prototype,"panel",2),a([E("active")],At.prototype,"handleActiveChange",1),a([E(["disabled","visually-disabled"])],At.prototype,"handleDisabledChange",1),At=a([k("sd-6-4-1-tab")],At);var Lt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.canScroll={left:!1,right:!1};this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-6-4-1-tab"),customElements.whenDefined("sd-6-4-1-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls(),this.repositionIndicator()}),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),this.nav.addEventListener("scroll",()=>this.handleScroll()),t.then(()=>{new IntersectionObserver((r,o)=>{var n;r[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((n=this.activeTab)!=null?n:this.tabs[0],{emitEvents:!1}),o.unobserve(r[0].target))}).observe(this.tabGroup)})})}updated(t){!t.get("canScroll")&&this.canScroll&&this.handleScroll()}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){let e=this.shadowRoot.querySelector('slot[name="nav"]');return Array.from(e.assignedElements()).map(r=>r.tagName.toLocaleLowerCase()==="sd-6-4-1-tab"?r:r.querySelector("sd-6-4-1-tab")).filter(r=>r&&t.includeDisabled?r.tagName.toLowerCase()==="sd-6-4-1-tab":r.tagName.toLowerCase()==="sd-6-4-1-tab"&&!r.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-6-4-1-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let r=t.target.closest("sd-6-4-1-tab");(r==null?void 0:r.closest("sd-6-4-1-tab-group"))===this&&r!==null&&this.setActiveTab(r,{scrollBehavior:"smooth"})}handleKeyDown(t){let r=t.target.closest("sd-6-4-1-tab");if((r==null?void 0:r.closest("sd-6-4-1-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()),l=this.tabs[n+1];r!==null&&l&&ee(l,this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab()),l=this.tabs[n-1];r!==null&&l&&ee(l,this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.tabs.find(h=>h.matches(":focus")),l=this.localize.dir()==="rtl";if((n==null?void 0:n.tagName.toLowerCase())==="sd-6-4-1-tab"){let h=this.tabs.indexOf(n);t.key==="Home"?h=0:t.key==="End"?h=this.tabs.length-1:t.key===(l?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?h--:(t.key===(l?"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"}),ee(this.tabs[h],this.nav,"horizontal"),t.preventDefault()}}}}handleScroll(){this.canScroll={left:this.nav.scrollLeft>0,right:this.nav.scrollLeft+this.nav.clientWidth<this.nav.scrollWidth-1}}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=B({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled&&!t.visuallyDisabled){let r=this.activeTab;this.activeTab=t,this.tabs.map(o=>o.active=o===this.activeTab),this.panels.map(o=>{var n;return o.active=o.name===((n=this.activeTab)==null?void 0:n.panel)}),this.repositionIndicator(),ee(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.repositionIndicator(),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}async repositionIndicator(){await this.updateComplete;let t=this.activeTab,e=this.indicator,r=this.tabsContainer;if(!t||!e||!r||t.variant==="container")return;let o=t.getBoundingClientRect(),n=r.getBoundingClientRect(),l=getComputedStyle(r).justifyContent==="center",h=n.left+n.width/2,u=o.left+o.width/2,m=t.offsetWidth,f=l?u-h:o.left-n.left;e.style.width=`${m}px`,e.style.transform=`translateX(${f}px)`}show(t){let e=this.tabs.find(r=>r.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){var e;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" disabled="${C(!this.canScroll.left||void 0)}" 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-6-4-1-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-4-1-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">${((e=this.activeTab)==null?void 0:e.variant)!=="container"?p`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>`:""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></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" disabled="${C(!this.canScroll.right||void 0)}" 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-6-4-1-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-4-1-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>`}};Lt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
271
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-4-1-tab-panel){--padding:1rem 0}::slotted(sd-6-4-1-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}`],a([v("[part=base]")],Lt.prototype,"tabGroup",2),a([v("[part=body]")],Lt.prototype,"body",2),a([v("[part=scroll-container]")],Lt.prototype,"nav",2),a([v("[part=active-tab-indicator]")],Lt.prototype,"indicator",2),a([v('[part="tabs"]')],Lt.prototype,"tabsContainer",2),a([L()],Lt.prototype,"hasScrollControls",2),a([L()],Lt.prototype,"variant",2),a([L()],Lt.prototype,"canScroll",2),a([d({type:String,reflect:!0})],Lt.prototype,"activation",2),a([Ci(20)],Lt.prototype,"handleScroll",1),Lt=a([k("sd-6-4-1-tab-group")],Lt);var Pd=0,me=class extends g{constructor(){super(...arguments);this.attrId=++Pd;this.componentId=`sd-6-4-1-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>`}};me.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
272
|
+
:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],a([d({type:String,reflect:!0})],me.prototype,"name",2),a([d({type:Boolean,reflect:!0})],me.prototype,"active",2),a([E("active")],me.prototype,"handleActiveChange",1),me=a([k("sd-6-4-1-tab-panel")],me);var Yt=class extends g{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.reversedLayout=!1;this.hasSlotController=new P(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 sd-6-4-1-teaser--neutral-400-color-border","neutral-100":"sd-6-4-1-teaser--neutral-100-color-background",primary:"bg-primary text-white","primary-100":"sd-6-4-1-teaser--primary-100-color-background"}[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 style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${t?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${c("flex flex-col text-left order-2",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="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${c("order-1",!t&&this._orientation==="vertical"&&"mb-4",!e["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]",this._orientation!=="vertical"&&this.reversedLayout&&"order-2")}"><slot name="media"></slot></div></div>`}};Yt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
273
|
+
:host{display:block}::slotted(*){margin:calc(var(--sd-spacing-1) * 0)}::slotted([slot=headline]){margin:calc(var(--sd-spacing-1) * 0)!important;font-size:var(--sd-text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)))!important;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}@property --tw-font-weight{syntax:"*";inherits:false}`],a([d({type:String,reflect:!0})],Yt.prototype,"variant",2),a([d({reflect:!0,type:Number})],Yt.prototype,"breakpoint",2),a([d({type:Boolean,reflect:!0})],Yt.prototype,"inset",2),a([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],Yt.prototype,"reversedLayout",2),a([v('[part="base"]')],Yt.prototype,"teaser",2),a([L()],Yt.prototype,"_orientation",2),Yt=a([k("sd-6-4-1-teaser")],Yt);var ze=class extends g{constructor(){super(...arguments);this.variant="white";this.hasSlotController=new P(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="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/[.8] to-60%")}"></div><div class="${c("relative",["primary","gradient-dark"].includes(this.variant)&&"text-white")}"><div class="${c("absolute inset-0",{white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"sd-6-4-1-teaser-media--neutral-100-color-background group-hover:sd-6-4-1-teaser-media--neutral-100--hover-color-background",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"sd-6-4-1-teaser-media--primary-100-color-background group-hover:sd-6-4-1-teaser-media--primary-100--hover-color-background","gradient-light":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/90 to-primary-800/[.8]"}[this.variant])}"></div><div class="relative flex-col text-left p-4" part="content"><div class="flex flex-col"><div part="headline" class="text-lg font-bold m-0 order-2"><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 order-1",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></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 class="${c("mb-4 -z-10",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div></div>`}};ze.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
274
274
|
:host{display:block}::slotted(*){margin:calc(var(--sd-spacing-1) * 0)}:host([variant=white]) .background:focus-within{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){:host([variant=white]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}:host([variant=neutral-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-neutral-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=neutral-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-neutral-100)) var(--sd-opacity-90),transparent)}}:host([variant=primary]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}:host([variant=primary-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary-100)) var(--sd-opacity-90),transparent)}}:host([variant=gradient-light]) .bg-gradient-to-t{--sd-color-background-white:var(--sd-informational-gradient--white-color-background, var(--sd-color-white))}:host([variant=gradient-dark]) .bg-gradient-to-t{--sd-color-background-primary-800:var(
|
|
275
275
|
--sd-informational-gradient--primary-800-color-background,
|
|
276
276
|
var(--sd-color-primary-800)
|
|
277
|
-
)}`],a([d({type:String,reflect:!0})],ze.prototype,"variant",2),a([v('[part="base"]')],ze.prototype,"teaserMedia",2),ze=a([k("sd-6-
|
|
278
|
-
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],a([v("#input")],N.prototype,"textarea",2),a([v("#invalid-message")],N.prototype,"invalidMessage",2),a([L()],N.prototype,"hasFocus",2),a([L()],N.prototype,"showValidStyle",2),a([L()],N.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],N.prototype,"title",2),a([d({type:String,reflect:!0})],N.prototype,"name",2),a([d()],N.prototype,"value",2),a([d({type:String,reflect:!0})],N.prototype,"size",2),a([d({type:String,reflect:!0})],N.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],N.prototype,"helpText",2),a([d({type:String,reflect:!0})],N.prototype,"placeholder",2),a([d({type:Number,reflect:!0})],N.prototype,"rows",2),a([d({type:Boolean,reflect:!0})],N.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],N.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],N.prototype,"readonly",2),a([d({type:String,reflect:!0})],N.prototype,"form",2),a([d({type:Boolean,reflect:!0})],N.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],N.prototype,"floatingLabel",2),a([d({type:Number,reflect:!0})],N.prototype,"minlength",2),a([d({type:Number,reflect:!0})],N.prototype,"maxlength",2),a([d({type:String,reflect:!0})],N.prototype,"autocapitalize",2),a([d({type:String,reflect:!0})],N.prototype,"autocorrect",2),a([d({reflect:!0})],N.prototype,"autocomplete",2),a([d({type:Boolean,reflect:!0})],N.prototype,"autofocus",2),a([d({type:String,reflect:!0})],N.prototype,"enterkeyhint",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],N.prototype,"styleOnValid",2),a([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],N.prototype,"spellcheck",2),a([d({type:String,reflect:!0})],N.prototype,"inputmode",2),a([Rt()],N.prototype,"defaultValue",2),a([E("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),a([E("rows",{waitUntilFirstUpdate:!0})],N.prototype,"handleRowsChange",1),a([E("value",{waitUntilFirstUpdate:!0})],N.prototype,"handleValueChange",1),N=a([k("sd-6-
|
|
277
|
+
)}`],a([d({type:String,reflect:!0})],ze.prototype,"variant",2),a([v('[part="base"]')],ze.prototype,"teaserMedia",2),ze=a([k("sd-6-4-1-teaser-media")],ze);var N=class extends g{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new P(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.floatingLabel=!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,o){this.textarea.setRangeText(t,e,r,o),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(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,o=!!t.tooltip,n=this.value!==null&&String(this.value).length>0,l=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||n),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"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",u=this.size==="sm"?"text-sm":"text-base",m={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return p`<div part="form-control" class="flex flex-col h-full text-left">${e&&!this.floatingLabel||o?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",u)}" 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 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",u,l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-2.5 text-base")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}</div><div part="base" class="${c("textarea h-full flex items-top rounded-default group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"form-control-color-text",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${c("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-6-4-1-icon]:pe-8",{sm:this.floatingLabel?"pb-1":"py-1",md:this.floatingLabel?"pb-1":"py-1",lg:this.floatingLabel?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",u)}" title="${this.title}" name="${C(this.name)}" .value="${$e(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||l?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-6-4-1-icon class="${c("text-error absolute right-4 pointer-events-none",m)}" library="_internal" name="risk" part="invalid-icon"></sd-6-4-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-6-4-1-icon class="${c("text-success absolute right-4 pointer-events-none",m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-4-1-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r&&!this.showInvalidStyle?"block":"hidden")}" aria-hidden="${!r||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};N.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
278
|
+
:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],a([v("#input")],N.prototype,"textarea",2),a([v("#invalid-message")],N.prototype,"invalidMessage",2),a([L()],N.prototype,"hasFocus",2),a([L()],N.prototype,"showValidStyle",2),a([L()],N.prototype,"showInvalidStyle",2),a([d({type:String,reflect:!0})],N.prototype,"title",2),a([d({type:String,reflect:!0})],N.prototype,"name",2),a([d()],N.prototype,"value",2),a([d({type:String,reflect:!0})],N.prototype,"size",2),a([d({type:String,reflect:!0})],N.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],N.prototype,"helpText",2),a([d({type:String,reflect:!0})],N.prototype,"placeholder",2),a([d({type:Number,reflect:!0})],N.prototype,"rows",2),a([d({type:Boolean,reflect:!0})],N.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],N.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],N.prototype,"readonly",2),a([d({type:String,reflect:!0})],N.prototype,"form",2),a([d({type:Boolean,reflect:!0})],N.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],N.prototype,"floatingLabel",2),a([d({type:Number,reflect:!0})],N.prototype,"minlength",2),a([d({type:Number,reflect:!0})],N.prototype,"maxlength",2),a([d({type:String,reflect:!0})],N.prototype,"autocapitalize",2),a([d({type:String,reflect:!0})],N.prototype,"autocorrect",2),a([d({reflect:!0})],N.prototype,"autocomplete",2),a([d({type:Boolean,reflect:!0})],N.prototype,"autofocus",2),a([d({type:String,reflect:!0})],N.prototype,"enterkeyhint",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],N.prototype,"styleOnValid",2),a([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],N.prototype,"spellcheck",2),a([d({type:String,reflect:!0})],N.prototype,"inputmode",2),a([Rt()],N.prototype,"defaultValue",2),a([E("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),a([E("rows",{waitUntilFirstUpdate:!0})],N.prototype,"handleRowsChange",1),a([E("value",{waitUntilFirstUpdate:!0})],N.prototype,"handleValueChange",1),N=a([k("sd-6-4-1-textarea")],N);var gt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.hasSlotController=new P(this,"[default]","content");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)}get hasCustomTrigger(){return this.hasSlotController.test("[default]")}formatDefaultSlot(t){if(!t)return;t.assignedNodes({flatten:!0}).forEach(r=>{var o,n;r.nodeType===Node.TEXT_NODE&&!((o=r==null?void 0:r.textContent)!=null&&o.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=bi(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasTrigger("hover")){let t=bi(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 Y(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=q(this,"tooltip.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Y(this.body);let{keyframes:t,options:e}=q(this,"tooltip.hide",{dir:this.localize.dir()});await K(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,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.trigger==="click"||this.trigger==="click focus"?this.focus():this.blur(),Z(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return p`<sd-6-4-1-popup part="base" exportparts="
|
|
279
279
|
popup:base__popup,
|
|
280
280
|
arrow:base__arrow
|
|
281
|
-
" 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">${this.hasCustomTrigger?p`<slot slot="anchor"></slot>`:p`<button slot="anchor" aria-describedby="tooltip" class="${c("flex sd-interactive rounded-full",this.size==="lg"?"text-xl":"text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-6-
|
|
282
|
-
:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-6-
|
|
283
|
-
:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1/2 * 100%);left:calc(1/2 * 100%);--tw-translate-x:calc(calc(1/2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}[part=play-button-bg]{color:rgba(var(--sd-video--play-button-color-icon-fill));background-color:rgba(var(--sd-video--play-button-color-background))}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],a([v("[part=base]")],fe.prototype,"hostEl",2),a([d({type:Boolean,reflect:!0})],fe.prototype,"playing",2),a([d({type:Boolean})],fe.prototype,"isBelowBreakpoint",2),fe=a([k("sd-6-
|
|
281
|
+
" 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">${this.hasCustomTrigger?p`<slot slot="anchor"></slot>`:p`<button slot="anchor" aria-describedby="tooltip" class="${c("flex sd-interactive rounded-full",this.size==="lg"?"text-xl":"text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-6-4-1-icon library="_internal" name="info-circle" label="Tooltip" class="${c(this.disabled&&"sd-interactive--disabled")}"></sd-6-4-1-icon></button>`}<slot name="content" part="body" id="tooltip" class="sd-6-4-1-tooltip-color-background sd-6-4-1-tooltip-color-text py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-6-4-1-popup>`}};gt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
282
|
+
:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-6-4-1-popup{--arrow-color:rgba(var(--sd-tooltip-color-background));--arrow-size:10px}sd-6-4-1-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-6-4-1-popup::part(arrow){--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-6-4-1-popup[placement^=top]::part(popup){transform-origin:bottom}sd-6-4-1-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}:host [slot=anchor]{color:rgba(var(--sd-form-control__tooltip-color-icon))}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],a([v("slot:not([name])")],gt.prototype,"defaultSlot",2),a([v("#tooltip")],gt.prototype,"body",2),a([v("sd-6-4-1-popup")],gt.prototype,"popup",2),a([d({type:String,reflect:!0})],gt.prototype,"size",2),a([d({type:String,reflect:!0})],gt.prototype,"content",2),a([d({type:String,reflect:!0})],gt.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],gt.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],gt.prototype,"open",2),a([d({type:String,reflect:!0})],gt.prototype,"trigger",2),a([d({type:Boolean,reflect:!0})],gt.prototype,"hoist",2),a([E("open",{waitUntilFirstUpdate:!0})],gt.prototype,"handleOpenChange",1),a([E(["content","hoist","placement"])],gt.prototype,"handleOptionsChange",1),a([E("disabled")],gt.prototype,"handleDisabledChange",1),gt=a([k("sd-6-4-1-tooltip")],gt);R("tooltip.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("tooltip.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var fe=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new P(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")}async hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-medium",300))),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.hidePoster(),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 sd-interactive outline-hidden 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/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2")}"><slot name="play-icon" part="play-icon" class="${c(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-6-4-1-icon id="default-play-icon" library="_internal" name="start"></sd-6-4-1-icon></slot></div></button> ${this.hasSlotController.test("poster")?p`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>`:null}<slot></slot></div>`}};fe.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
283
|
+
:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1/2 * 100%);left:calc(1/2 * 100%);--tw-translate-x:calc(calc(1/2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}[part=play-button-bg]{color:rgba(var(--sd-video--play-button-color-icon-fill));background-color:rgba(var(--sd-video--play-button-color-background))}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],a([v("[part=base]")],fe.prototype,"hostEl",2),a([d({type:Boolean,reflect:!0})],fe.prototype,"playing",2),a([d({type:Boolean})],fe.prototype,"isBelowBreakpoint",2),fe=a([k("sd-6-4-1-video")],fe);var Me,ge,Li=class Li{constructor({name:i,initialValue:t,detect:e}){le(this,Me);le(this,ge);this.name=i,this.initialValue=t!=null?t:!0,this.detect=e,Li.all[i]=this,Object.defineProperty(Li,i,{get(){return this.all[i].value},configurable:!0,enumerable:!0})}get valuePending(){return lt(this,Me)!==void 0?lt(this,Me):lt(this,ge)!==void 0?lt(this,ge):(We(this,ge,this.detect()),lt(this,ge)instanceof Promise?lt(this,ge).then(i=>We(this,Me,i)):We(this,Me,lt(this,ge)),lt(this,ge))}get value(){if(lt(this,Me)!==void 0)return lt(this,Me);let i=this.valuePending;return i instanceof Promise?this.initialValue:i}static detectAll(){return Promise.all(Object.values(Li.all).map(i=>i.valuePending))}};Me=new WeakMap,ge=new WeakMap,qt(Li,"all",{});var bt=Li;var Hd=new bt({name:"TRANSITIONRUN_EVENT_LOOP",detect(){let s=document.createElement("div");document.body.appendChild(s);let i="--bar-"+Date.now();return s.style.cssText=`${i}: 1; transition: ${i} 1ms step-start allow-discrete`,new Promise(t=>{let e=0;requestAnimationFrame(()=>{setTimeout(r=>t(e>1),50),s.addEventListener("transitionrun",r=>e++),s.style.setProperty(i,"2")})}).finally(()=>s.remove())}});var Vd=new bt({name:"UNREGISTERED_TRANSITION",detect(){let s=document.createElement("div");document.body.appendChild(s);let i="--foo-"+Date.now();return s.style.cssText=`${i}: 1; transition: ${i} 1ms step-start allow-discrete`,new Promise(t=>{requestAnimationFrame(()=>{setTimeout(e=>t(!0),30),s.addEventListener("transitionstart",e=>t(!1)),s.style.setProperty(i,"2")})}).finally(()=>s.remove())}});var wo=new WeakMap;function Ms(s,i=globalThis.document){var e;i=(e=i.ownerDocument)!=null?e:i;let t=i.defaultView;if(i.adoptedStyleSheets){let r=new t.CSSStyleSheet;return r.replaceSync(s),Object.isFrozen(i.adoptedStyleSheets)?i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]:i.adoptedStyleSheets.push(r),r}else{let r=wo.get(i);return r||(r=i.head.appendChild(i.createElement("style")),wo.set(i,r)),r.insertAdjacentText("beforeend",s),r.sheet}}function Ss(s,i=globalThis.document){let t=i.createElement("div");i.body.append(t);let e="foo(bar)";t.style.setProperty(s,e);let r=getComputedStyle(t).getPropertyValue(s),o=!0;if(r===e){let n=t.appendChild(i.createElement("div"));o=getComputedStyle(n).getPropertyValue(s)!==e}return t.remove(),o}var xo={"<angle>":"0deg","<color>":"transparent","<custom-ident>":"none","<image>":"linear-gradient(transparent 0% 100%)","<integer>":"0","<length>":"0px","<length-percentage>":"0px","<number>":"0","<percentage>":"0%","<resolution>":"1dppx","<string>":"''","<time>":"0s","<transform-function>":"scale(1)","<transform-list>":"scale(1)","<url>":"url('')"},ko=new Map;function zi(s,i={},t=globalThis.document){var n;let e=ko.get(t);if(!s.startsWith("--")||e&&s in e||Ss(s,t))return;let r={syntax:i.syntax||"*",inherits:(n=i.inherits)!=null?n:!0};i.initialValue!==void 0?r.initialValue=i.initialValue:r.syntax!=="*"&&r.syntax in xo&&(r.initialValue=xo[r.syntax]);let o=Ms(`@layer style-observer-registered-properties {
|
|
284
284
|
@property ${s} {
|
|
285
285
|
syntax: "${r.syntax}";
|
|
286
286
|
inherits: ${r.inherits};
|
|
@@ -292,8 +292,8 @@ sd-6-3-0-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(-
|
|
|
292
292
|
color: transparent;
|
|
293
293
|
}
|
|
294
294
|
`),s.shadowRoot.adoptedStyleSheets.push(i);let t=i.cssRules[0].style;t.setProperty("--style-observer-adopted-style-sheet-bug","1");let e=getComputedStyle(s),r=e.getPropertyValue("--style-observer-adopted-style-sheet-bug");t.removeProperty("--style-observer-adopted-style-sheet-bug"),e=getComputedStyle(s);let o=e.getPropertyValue("--style-observer-adopted-style-sheet-bug");return s.remove(),r===o}});var Ji=class extends WeakMap{has(i,t){if(arguments.length===1)return super.has(i);let e=super.get(i);return(e==null?void 0:e.has(t))||!1}add(i,t){var r;let e=(r=super.get(i))!=null?r:new Set;e.add(t),super.set(i,e)}delete(i,...t){let e=super.get(i);if(e){for(let r of t)e.delete(r);e.size===0&&super.delete(i)}}};function Se(s){return s==null?[]:Array.isArray(s)?s:typeof s!="string"&&typeof s[Symbol.iterator]=="function"?Array.from(s):[s]}function Eo(s){return s?new Promise(i=>setTimeout(i,s)):new Promise(i=>requestAnimationFrame(i))}var Nr;function Rd(s){Nr!=null||(Nr=document.createElement("div"));let i=Nr.style;i[s]="inherit";let t=[...i];return t.length===0&&(t=[s]),i.cssText="",t}function Bd(s){let i=s.matchAll(/(?:^|\s)([+-]?(?:\d+|\d*\.\d+))\s*(ms|s)?(?=\s|$)/g),t=[];for(let e of i){let[,r,o]=e;r=parseFloat(r),o==="s"&&(r*=1e3),t.push(r)}return t}function Co(s,i){i=Nd(i);let t;if(s==="all")t=/\b\w+\b/g;else{let l=[...new Set([...Rd(s),s,"all"])];t=RegExp(`(?:^|\\s)(${l.join("|")})\\b`)}let e=i.findLast(l=>t.test(l)),r=e?Bd(e):[0,0];r.length===0?r=[0,0]:r.length===1&&r.push(0);let[o,n]=r;return{duration:o,delay:n}}function Nd(s){let i=[],t=0,e=[];for(let r of s.matchAll(/[,()]/g)){let o=r[0];if(o===","){if(e.length===0){let n=s.slice(t,r.index);i.push(n.trim()),t=r.index+1}}else o==="("?e.push("("):o===")"&&e.pop()}if(t<s.length){let r=s.slice(t);i.push(r.trim())}return i}var ui,Mi,tr=class{constructor(i){le(this,ui,new Set);le(this,Mi,new WeakMap);this.callback=i}observe(i){if(lt(this,ui).has(i))return;let t=i.ownerDocument,e=lt(this,Mi).get(t);e||(e=new IntersectionObserver(r=>{this.callback(r.map(({target:o})=>({target:o})))},{root:t.documentElement}),lt(this,Mi).set(t,e)),lt(this,ui).add(i),e.observe(i)}unobserve(i){if(!i){for(let r of lt(this,ui))this.unobserve(r);return}let t=i.ownerDocument,e=lt(this,Mi).get(t);e==null||e.unobserve(i),lt(this,ui).delete(i)}};ui=new WeakMap,Mi=new WeakMap;var Ur,$o,Ud=($o=(Ur=globalThis.CSS)==null?void 0:Ur.supports)!=null&&$o.call(Ur,"transition-behavior","allow-discrete")?" allow-discrete":"";globalThis.document&&(zi("--style-observer-transition",{inherits:!1}),bt.detectAll());var er,qr,To,ir,qe=class{constructor(i,t,e={}){le(this,qr);qt(this,"properties");qt(this,"target");qt(this,"callback");qt(this,"options");le(this,er,!1);le(this,ir);qt(this,"_shadowSheet");qt(this,"_styles",{});this.constructor.all.add(i,this),this.properties=new Map,this.target=i,this.callback=t,this.options=B({properties:[]},e);let r=Se(e.properties);this.renderedObserver=new tr(o=>{this.propertyNames.length>0&&this.handleEvent()}),r.length>0&&this.observe(r)}get propertyNames(){return[...this.properties.keys()]}resolveOptions(i){return Object.assign(Ds(i),this.options)}async handleEvent(i){if(i&&!this.properties.has(i.propertyName))return;if(bt.TRANSITIONRUN_EVENT_LOOP&&(i==null?void 0:i.type)==="transitionrun"||this.options.throttle>0){let r=bt.TRANSITIONRUN_EVENT_LOOP?"transitionrun":"transitionstart",o=Math.max(this.options.throttle,50);if(bt.TRANSITIONRUN_EVENT_LOOP){let n=Co(i.propertyName,getComputedStyle(this.target).transition);o=Math.max(o,n.duration+n.delay+16)}this.target.removeEventListener(r,this),await Eo(o),this.target.addEventListener(r,this)}let t=getComputedStyle(this.target),e=[];for(let r of this.propertyNames){let o=t.getPropertyValue(r),n=this.properties.get(r);o!==n&&(e.push({target:this.target,property:r,value:o,oldValue:n}),this.properties.set(r,o))}e.length>0&&this.callback(e)}observe(i){var e;if(i=Se(i),i=i.filter(r=>!this.properties.has(r)),i.length===0)return;Is(this,qr,To).call(this);let t=getComputedStyle(this.target);for(let r of i){bt.UNREGISTERED_TRANSITION&&!this.constructor.properties.has(r)&&(zi(r,void 0,this.target.ownerDocument),this.constructor.properties.add(r));let o=t.getPropertyValue(r);this.properties.set(r,o)}bt.TRANSITIONRUN_EVENT_LOOP&&(this.target.addEventListener("transitionrun",this),(e=bt.all.TRANSITIONRUN_EVENT_LOOP.valuePending)==null||e.then(r=>{r||this.target.removeEventListener("transitionrun",this)})),this.target.addEventListener("transitionstart",this),this.target.addEventListener("transitionend",this),this.updateTransitionProperties(),this.renderedObserver.observe(this.target)}updateTransitionProperties(){this.setProperty("--style-observer-transition","");let i=new Set(getComputedStyle(this.target).transitionProperty.split(", ")),t=[];for(let r of this.constructor.all.get(this.target))t.push(...r.propertyNames);t=[...new Set(t)];let e=t.filter(r=>!i.has(r)).map(r=>`${r} 1ms step-start${Ud}`).join(", ");this.setProperty("--style-observer-transition",e)}updateTransition({firstTime:i}={}){let t="var(--style-observer-transition, --style-observer-noop)",e=this.getProperty("transition"),r;(i?e:!e.includes(t))&&(r=We(this,ir,e)),r===void 0&&(i||!lt(this,ir))&&(e.includes(t)&&this.setProperty("transition",""),r=getComputedStyle(this.target).transition),r==="all"?r="":r=r.replace(/^none\b/,"");let o=r?r+", ":"";this.setProperty("transition",o+t),this.updateTransitionProperties()}get _isHost(){return this.target.shadowRoot&&!bt.ADOPTED_STYLE_SHEET&&!Object.isFrozen(this.target.shadowRoot.adoptedStyleSheets)}setProperty(i,t,e){let r=this.target.style,o=r;if(this._isHost){if(!this._shadowSheet&&(this._shadowSheet=new CSSStyleSheet,this._shadowSheet.insertRule(":host { }"),this.target.shadowRoot.adoptedStyleSheets.push(this._shadowSheet),Object.keys(this._styles).length>0))for(let n in this._styles){let l=this._styles[n];this.setProperty(n,l),r.getPropertyValue(n)===l&&r.removeProperty(n)}o=this._shadowSheet.cssRules[0].style}o.setProperty(i,t,e),this._styles[i]=this.getProperty(i)}getProperty(i){var e,r,o;return((o=(r=(e=this._shadowSheet)==null?void 0:e.cssRules[0])==null?void 0:r.style)!=null?o:this.target.style).getPropertyValue(i)}unobserve(i){i=Se(i),i=i.filter(t=>this.properties.has(t));for(let t of i)this.properties.delete(t);this.properties.size===0&&(this.target.removeEventListener("transitionrun",this),this.target.removeEventListener("transitionstart",this),this.target.removeEventListener("transitionend",this),this.renderedObserver.unobserve(this.target)),this.updateTransitionProperties()}};er=new WeakMap,qr=new WeakSet,To=function(){if(lt(this,er))return;let i=this.constructor.all.get(this.target).size===1;this.updateTransition({firstTime:i}),We(this,er,!0)},ir=new WeakMap,qt(qe,"properties",new Set),qt(qe,"all",new Ji);function Ds(s){return s?(typeof s=="string"||Array.isArray(s)?s={properties:Se(s)}:typeof s=="object"&&(s=B({properties:[]},s)),s):{}}var pi=class{constructor(i,t){qt(this,"elementObservers",new WeakMap);var e;this.callback=i,t=Ds(t),(e=t.targets)!=null||(t.targets=[]),t.target&&t.targets.push(t.target),this.options=t,this.options.targets.length>0&&this.options.properties.length>0&&this.observe(this.options.targets,this.options.properties)}changed(i){this.callback(i)}observe(...i){let{targets:t,properties:e}=Lo(...i);if(t.length===0&&(t=this.options.targets),t.length!==0)for(let r of t){let o=this.elementObservers.get(r);o||(o=new qe(r,n=>this.changed(n),this.options),this.elementObservers.set(r,o)),o.observe(e)}}unobserve(...i){let{targets:t,properties:e}=Lo(...i);if(t.length===0&&(t=this.options.targets),t.length!==0){e.length===0&&(e=this.options.properties);for(let r of t){let o=this.elementObservers.get(r);o&&o.unobserve(e)}}}updateTransition(i){for(let t of Se(i)){let e=this.elementObservers.get(t);e&&e.updateTransition()}}};function Lo(s,i){let t=[...Se(s),...Se(i)];s=[],i=[];for(let e of t)(typeof e=="string"||e instanceof String?i:s).push(e);return{targets:s,properties:i}}var Kr=class{constructor(i,t){this.host=i,this.callback=t}connect(){this.observer=new pi(i=>{var e,r;let t=(r=(e=i==null?void 0:i[0])==null?void 0:e.value)==null?void 0:r.replaceAll("'","");t&&this.callback(t)}),this.observer.observe(this.host,"--sd-theme")}disconnect(){var i;(i=this.observer)==null||i.unobserve(this.host)}};var mi=class extends g{handleThemeChange(i){this.emit("sd-theme-change",{detail:{theme:i},bubbles:!0})}connectedCallback(){super.connectedCallback(),this.themeObserver=new Kr(this,this.handleThemeChange.bind(this)),this.themeObserver.connect()}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.themeObserver)==null||i.disconnect()}};mi.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
295
|
-
:host{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}`],mi=a([k("sd-6-
|
|
296
|
-
sd-6-
|
|
295
|
+
:host{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}`],mi=a([k("sd-6-4-1-theme-listener")],mi);function BT(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"),o=n=>n[0];return r.addEventListener("init",()=>{var m,f;let n=(m=e.shadowRoot)==null?void 0:m.querySelector("ul");n==null||n.setAttribute("part","listbox");let l=document.createElement("sd-6-4-1-popup");l.appendChild(n),(f=e.shadowRoot)==null||f.appendChild(l),l==null||l.setAttribute("exportparts","popup__content"),l&&(l.active=!1,l.autoSize="vertical",l.autoSizePadding=16,l.placement="bottom-start",l.anchor=e,l.sync="width");let h=o`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
296
|
+
sd-6-4-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-radius);border-bottom-left-radius:var(--sd-radius);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);border-top-style:var(--tw-border-style);border-top-width:0;border-color:rgba(var(--sd-color-border-primary));background-color:rgba(var(--sd-color-background-white));padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-6-4-1-popup li{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms))}sd-6-4-1-popup li:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-100))}sd-6-4-1-popup li{list-style-type:''}sd-6-4-1-popup li mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}sd-6-4-1-popup li:not(:has(sd-6-4-1-option)){cursor:pointer;padding-inline:var(--sd-spacing-4);padding-block:var(--sd-spacing-3);font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)));color:rgba(var(--sd-color-text-black))}sd-6-4-1-popup li:not(:has(sd-6-4-1-option)):hover{background-color:rgba(var(--sd-color-background-neutral-200))}sd-6-4-1-popup li[aria-selected=true]{background-color:rgba(var(--sd-color-background-neutral-200))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}`,u=new CSSStyleSheet;u.replaceSync(h),e.shadowRoot.adoptedStyleSheets=[...e.shadowRoot.adoptedStyleSheets,u]}),i&&r.addEventListener("selection",n=>{var l;e.value=(l=n==null?void 0:n.detail)==null?void 0:l.selection.value}),r.addEventListener("open",()=>{var n,l,h,u,m,f;(l=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-6-4-1-popup"))==null||l.setAttribute("active","true"),(u=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||u.classList.add("rounded-b-none"),(f=(m=e.shadowRoot)==null?void 0:m.querySelector('[part="form-control"]'))==null||f.classList.add("z-50")}),r.addEventListener("close",()=>{var n,l,h,u,m,f;(l=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-6-4-1-popup"))==null||l.removeAttribute("active"),(u=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||u.classList.remove("rounded-b-none"),(f=(m=e.shadowRoot)==null?void 0:m.querySelector('[part="form-control"]'))==null||f.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}}}export{O as LocalizeController,It as SdAccordion,xe as SdAccordionGroup,at as SdAnimation,ct as SdAudio,ce as SdBadge,ie as SdBrandshape,Ft as SdBreadcrumb,Qt as SdBreadcrumbItem,Q as SdButton,J as SdCarousel,Ce as SdCarouselItem,ot as SdCheckbox,jt as SdCheckboxGroup,S as SdCombobox,I as SdDatepicker,Bt as SdDialog,Te as SdDivider,xt as SdDrawer,ht as SdDropdown,Wt as SdExpandable,Nt as SdFlipcard,pe as SdHeader,_t as SdIcon,oe as SdInclude,H as SdInput,Ht as SdLink,Pe as SdLoader,Ut as SdMapMarker,Ve as SdMenu,Tt as SdMenuItem,ut as SdNavigationItem,kt as SdNotification,ne as SdOptgroup,yt as SdOption,G as SdPopup,Fe as SdQuickfact,Et as SdRadio,St as SdRadioButton,rt as SdRadioGroup,st as SdRange,Be as SdRangeTick,pt as SdScrollable,V as SdSelect,Ne as SdSkeleton,Ue as SdSpinner,nt as SdStep,Dt as SdStepGroup,ft as SdSwitch,At as SdTab,Lt as SdTabGroup,me as SdTabPanel,Mt as SdTag,Yt as SdTeaser,ze as SdTeaserMedia,N as SdTextarea,mi as SdThemeListener,gt as SdTooltip,fe as SdVideo,jo as registerIconLibrary,BT as setupAutocomplete,pa as unregisterIconLibrary};
|
|
297
297
|
/*! Bundled license information:
|
|
298
298
|
|
|
299
299
|
@lit/reactive-element/css-tag.js:
|