import{r as e,g as t,j as s,H as a}from"./index-C7YNCRgy.js";const r=class{constructor(t){e(this,t)}get host(){return t(this)}data=[5,15,10,50,35,45,50,100,10,100,80,15,40,45,20,10,5,15,25,35];color;type="line";render(){const{data:e,type:t,color:r}=this;let i=e;if("string"==typeof e)try{i=JSON.parse(e)}catch{i=[Number(e)]}const n=Array.isArray(i)?i.slice(0,20):[i];let o;return o="bar"===t?`{b:${n.join(",")}}`:"pie"===t?`{p:${n[0]}}`:`{l:${n.join(",")}}`,s(a,{part:"root",style:r?{color:r}:void 0,children:s("span",{class:"dds-sparkline",part:"chart",children:o},"47d7a6beebd381dedd517d2927150b8553ba33fc")},"6c469b59e3be51734d133d10aabf6697fae07876")}};r.style="@layer reset, base, variants, states, sizes;  @layer reset {   :host {     display: contents;     -moz-text-size-adjust: none;     -webkit-text-size-adjust: none;     text-size-adjust: none;     font-family: var(--dds-font-family-sans);     font-feature-settings: var(--dds-font-features-sans);     text-rendering: optimizeLegibility;     -webkit-font-smoothing: antialiased;      *,     *::after,     *::before,     *::backdrop,     *::file-selector-button {       box-sizing: border-box;       margin: 0;       padding: 0;       min-inline-size: 0;       min-block-size: 0;     }      * {       scrollbar-width: thin;       scrollbar-color: color-mix(gray 50%, transparent);     }      *:focus-visible {       z-index: 1;     }      > * {       interpolate-size: allow-keywords;       -webkit-tap-highlight-color: transparent;     }   } } @layer base{:host{display:inline-flex}.dds-sparkline{font-family:var(--dds-font-family-data);font-feature-settings:'liga';white-space:nowrap;user-select:none;text-transform:none}}";export{r as dds_sparkline}