import{r as registerInstance,h,H as Host}from"./index-6191c26c.js";import{c as cls}from"./helpers-7608753a.js";var styleCss="x-list{display:block;width:100%;padding:0;margin:0;list-style:none}x-list:empty{display:none !important}x-list.list-bordered x-list-item:not(:last-child) .list-item-content,x-list.list-bordered x-list-item:not(:last-child) .list-item-right,x-list.list-bordered x-list-item:not(:last-child) .list-item-indicator{border-bottom:1px solid rgba(var(--color-border-rgb, 200, 199, 204), 0.25)}x-list x-list-item{display:-ms-flexbox;display:flex;color:var(--color-text, #4A4A4A);text-align:left}.is-dark-mode x-list x-list-item{color:var(--color-text-light, #FEFEFE)}x-list x-list-item>div:empty{display:none !important}x-list x-list-item>*{display:-ms-flexbox;display:flex;margin:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-height:3rem;padding:0.5rem 0}x-list x-list-item>*:first-child{padding-left:0.25rem}x-list x-list-item>*:last-child{padding-right:1rem}x-list x-list-item.list-item-clickable{cursor:pointer}x-list x-list-item:hover .list-item-indicator x-icon{-webkit-transform:translateX(3px);transform:translateX(3px);opacity:0.75}x-list x-list-item .list-item-left{font-size:2rem !important;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem}x-list x-list-item .list-item-left x-icon{font-size:2rem !important}x-list x-list-item .list-item-left x-avatar{font-size:2.5rem !important}x-list x-list-item .list-item-content{-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;font-size:1rem;-ms-flex-align:start;align-items:flex-start}x-list x-list-item .list-item-content h1,x-list x-list-item .list-item-content h2,x-list x-list-item .list-item-content h3,x-list x-list-item .list-item-content h4,x-list x-list-item .list-item-content h5,x-list x-list-item .list-item-content h6{font-size:1rem;font-weight:bold;line-height:1.2rem;margin:0.2rem 0 0.1rem;padding:0;text-overflow:ellipsis;overflow:hidden}x-list x-list-item .list-item-content p{font-size:0.85rem;line-height:1.2rem;margin:0 0 0.2rem;padding:0;text-overflow:ellipsis;overflow:hidden}x-list x-list-item small{padding-left:1rem;width:auto;font-size:0.75rem;text-align:right}x-list x-list-item .list-item-indicator{padding-left:0.5rem;padding-right:0.5rem}x-list x-list-item .list-item-indicator x-icon{opacity:0.5;-webkit-transition:0.3s;transition:0.3s}@media screen and (max-width: 380px){x-list x-list-item .list-item-content{overflow:hidden}x-list x-list-item .list-item-content>*{width:100%;display:block;white-space:nowrap}}";var XListStyle0=styleCss;var XList=function(){function t(t){registerInstance(this,t);this.bordered=false}t.prototype.render=function(){return h(Host,{key:"177eaa7a89c824ac10af8032d327e71d3b6bf82d",class:cls({"list-bordered":this.bordered})},h("slot",{key:"9143047f81962be3173f68d8c227eda602a17303"}))};return t}();XList.style=XListStyle0;var XListItem=function(){function t(t){registerInstance(this,t);this.clickable=false}t.prototype.render=function(){return h(Host,{key:"e62a60978892740c23074b2401058a61df77b113",class:cls({"list-item-clickable":this.clickable})},h("div",{key:"c070b4a7667e5c682f61ef62efe48570d0eb26f1",class:"list-item-left"},h("slot",{key:"a970da8fc09e09bc3ff638aafe984baca6a52197",name:"left"})),h("div",{key:"0e5c9846f91a3a4407b37fe848484cdbdd4e7efb",class:"list-item-content"},h("slot",{key:"59a2b4476d5c2e6666aacfb373b754f36b885397"})),h("div",{key:"f76cd301235b4f7a865d91b00cc075c3dc53077d",class:"list-item-right"},h("slot",{key:"7fbff175db622787fc211bbb7c0fb9fbfbb93025",name:"right"})),this.clickable&&h("div",{key:"05887e34b8ac49411d30eef5b43ea78b1171bac4",class:"list-item-indicator"},h("x-icon",{key:"552e7245344a8cc9addc093f523d024344bb8101",name:"forward"})))};return t}();export{XList as x_list,XListItem as x_list_item};