import{p as e,H as t,j as s,c as a,t as n}from"./index2.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get host(){return 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:n}=this;let r=e;if("string"==typeof e)try{r=JSON.parse(e)}catch{r=[Number(e)]}const i=Array.isArray(r)?r.slice(0,20):[r];let o;return o="bar"===t?`{b:${i.join(",")}}`:"pie"===t?`{p:${i[0]}}`:`{l:${i.join(",")}}`,s(a,{part:"root",style:n?{color:n}:void 0,children:s("span",{class:"dds-sparkline",part:"chart",children:o},"47d7a6beebd381dedd517d2927150b8553ba33fc")},"6c469b59e3be51734d133d10aabf6697fae07876")}static get style(){return"@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}}"}},[513,"dds-sparkline",{color:[1025],type:[1025]}]),i=r,o=function(){"undefined"!=typeof customElements&&["dds-sparkline"].forEach((e=>{"dds-sparkline"===e&&(customElements.get(n(e))||customElements.define(n(e),r))}))};export{i as DdsSparkline,o as defineCustomElement}