import{r as s,h as t,a as r}from"./p-9add63ef.js";import{i as a}from"./p-b0d8cd6e.js";const i=":host{display:block}.empty{display:flex;flex-direction:column;align-items:center;padding:var(--sc-spacing-large);text-align:center;gap:var(--sc-spacing-small);color:var(--sc-empty-color, var(--sc-color-gray-500))}.empty sc-icon{font-size:var(--sc-font-size-xx-large);color:var(--sc-empty-icon-color, var(--sc-color-gray-700))}";const e=i;const o=class{constructor(t){s(this,t);this.icon=undefined}render(){return t("div",{key:"6f9f764545c7c087d4b16ad4319f578b417b3b1c",part:"base",class:"empty"},!!this.icon&&t("sc-icon",{key:"662e84a7e6b716ba5e4fb47fb6507343a094e78b",exportparts:"base:icon",name:this.icon}),t("slot",{key:"aa2d38ff5e04896eba29479e8db3c587f989d577"}))}};o.style=e;const c=":host{display:block;font-family:var(--sc-font-sans)}:slotted(*){margin:0}";const l=c;const n=class{constructor(t){s(this,t)}render(){return t("slot",{key:"a06b11c42218590cac238c9acc55bcf087bb904c"})}};n.style=l;const d=":host{display:block;--column-width-min:125px;position:relative}:host(:not(:last-child)){border-bottom:1px solid var(--sc-stacked-list-border-color, var(--sc-color-gray-200))}:host(:focus-within){z-index:2}.list-row{background:var(--sc-list-row-background-color, var(--sc-color-white));color:var(--sc-list-row-color, var(--sc-color-gray-800));text-decoration:none;display:grid;justify-content:var(--sc-stacked-list-row-justify-content, space-between);align-items:var(--sc-stacked-list-row-align-items, center);grid-template-columns:repeat(auto-fit, minmax(100%, 1fr));gap:var(--sc-spacing-xx-small);padding:var(--sc-spacing-medium) var(--sc-spacing-large);transition:background-color var(--sc-transition-fast) ease;border-radius:var(--sc-stacked-list-row-border-radius, var(--sc-input-border-radius-medium));min-width:0px;min-height:0px}.list-row[href]:hover{background:var(--sc-stacked-list-row-hover-color, var(--sc-color-gray-50))}.list-row__prefix,.list-row__suffix{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.list-row__prefix{left:var(--sc-spacing-large)}.list-row__suffix{right:var(--sc-spacing-large)}.list-row--has-prefix{padding-left:3.5em}.list-row--has-suffix{padding-right:3.5em;gap:var(--sc-spacing-xxxx-large)}.list-row.breakpoint-lg{grid-template-columns:repeat(calc(var(--columns) - 1), 1fr) 1fr;gap:var(--sc-spacing-large)}.list-row.breakpoint-lg ::slotted(:last-child:not(:first-child)){display:flex;justify-content:flex-end}.list-row--is-rtl.list-row__prefix,.list-row--is-rtl.list-row__suffix{left:20px;width:20px;transform:rotate(180deg)}.list-row--is-rtl.list-row__suffix{right:auto}.list-row--is-rtl.list-row--has-suffix{gap:var(--sc-spacing-large)}";const f=d;const p=class{constructor(t){s(this,t);this.href=undefined;this.target="_self";this.mobileSize=600;this.width=undefined;this.hasPrefix=false;this.hasSuffix=false}componentDidLoad(){if("ResizeObserver"in window){var s=new window.ResizeObserver((s=>{s.forEach((s=>{this.width=s.contentRect.width}))}));s.observe(this.el)}}handleSlotChange(){this.hasPrefix=!!Array.from(this.el.children).some((s=>s.slot==="prefix"));this.hasSuffix=!!Array.from(this.el.children).some((s=>s.slot==="suffix"))}render(){const s=this.href?"a":"div";return t(s,{key:"695e9b2b7653482ed0f301a2deb930f1db9300e2",href:this.href,target:this.target,part:"base",class:{"list-row":true,"list-row--has-prefix":this.hasPrefix,"list-row--has-suffix":this.hasSuffix,"breakpoint-lg":this.width>=this.mobileSize,"list-row--is-rtl":a()}},t("span",{key:"8f632e6e61f1965ac824365079ba6dc80cde5741",class:"list-row__prefix"},t("slot",{key:"a0b4ccef3ec81b97a71f53f884fbaf16e2c37bec",name:"prefix",onSlotchange:()=>this.handleSlotChange()})),t("slot",{key:"76b871f955f34c62f0999993d52e8ed5d3ead49e",onSlotchange:()=>this.handleSlotChange()}),t("span",{key:"5af50aba04129bc6ee49f1e17c326d6a8640c078",class:"list-row__suffix"},t("slot",{key:"80b5e07cdb2b4a99b47928f48d8a17feb3864692",name:"suffix",onSlotchange:()=>this.handleSlotChange()})))}get el(){return r(this)}};p.style=f;export{o as sc_empty,n as sc_stacked_list,p as sc_stacked_list_row};
//# sourceMappingURL=p-4808ac1c.entry.js.map