import{S as b,i as g,s as v,b as m,g as f,a as y,a8 as z,u as C,af as A,C as d,k,y as G,H,E as K,F as B,f as J,m as L,G as M,t as O,p as P,q as Q,A as I,a6 as E,K as N,c as R,d as T,h as _,j as U,x as V}from"./vendor.906e418a.js";/* empty css                                            */import{d as S}from"./utils.87255a78.js";import{g as q}from"./index.9cf03fca.js";function W(u){let e,a,l;return{c(){e=m("input"),f(e,"type","number"),f(e,"class","input-number w-full rounded box-border p-2 focus:outline-none appearance-none svelte-18x1goz"),f(e,"theme",u[1])},m(i,n){y(i,e,n),z(e,u[0]),a||(l=[C(e,"input",u[4]),C(e,"keypress",u[2])],a=!0)},p(i,[n]){n&2&&f(e,"theme",i[1]),n&1&&A(e.value)!==i[0]&&z(e,i[0])},i:d,o:d,d(i){i&&k(e),a=!1,G(l)}}}function X(u,e,a){let{value:l=0}=e,{theme:i="default"}=e,{disabled:n=!1}=e;const s=H();function t(o){s("change",o)}function c(o){o.key==="Enter"&&(o.preventDefault(),s("submit"))}const h=S(t,500),r=S(c,500);function F(){l=A(this.value),a(0,l)}return u.$$set=o=>{"value"in o&&a(0,l=o.value),"theme"in o&&a(1,i=o.theme),"disabled"in o&&a(3,n=o.disabled)},u.$$.update=()=>{u.$$.dirty&1&&h(l)},[l,i,r,n,F]}class Y extends b{constructor(e){super();g(this,e,X,W,v,{value:0,theme:1,disabled:3})}}function Z(u){let e,a,l;function i(s){u[4](s)}let n={theme:u[1],style:u[2],disabled:u[3]==="static"};return u[0]!==void 0&&(n.value=u[0]),e=new Y({props:n}),K.push(()=>B(e,"value",i)),e.$on("change",u[5]),e.$on("submit",u[6]),{c(){J(e.$$.fragment)},m(s,t){L(e,s,t),l=!0},p(s,[t]){const c={};t&2&&(c.theme=s[1]),t&4&&(c.style=s[2]),t&8&&(c.disabled=s[3]==="static"),!a&&t&1&&(a=!0,c.value=s[0],M(()=>a=!1)),e.$set(c)},i(s){l||(O(e.$$.fragment,s),l=!0)},o(s){P(e.$$.fragment,s),l=!1},d(s){Q(e,s)}}}function x(u,e,a){let{value:l=0}=e,{theme:i}=e,{style:n}=e,{mode:s}=e;e.default&&(l=e.default);function t(r){l=r,a(0,l)}function c(r){N.call(this,u,r)}function h(r){N.call(this,u,r)}return u.$$set=r=>{a(7,e=I(I({},e),E(r))),"value"in r&&a(0,l=r.value),"theme"in r&&a(1,i=r.theme),"style"in r&&a(2,n=r.style),"mode"in r&&a(3,s=r.mode)},e=E(e),[l,i,n,s,t,c,h]}class w extends b{constructor(e){super();g(this,e,x,Z,v,{value:0,theme:1,style:2,mode:3})}}var ie=w;function D(u,e,a){const l=u.slice();return l[4]=e[a],l}function j(u){let e,a=u[4][0]+"",l,i,n;return{c(){e=m("div"),l=R(a),i=T(),f(e,"class","flex-1 svelte-18x1goz"),f(e,"style",n="background-color: "+q(u[4][1]))},m(s,t){y(s,e,t),_(e,l),_(e,i)},p(s,t){t&1&&a!==(a=s[4][0]+"")&&U(l,a),t&1&&n!==(n="background-color: "+q(s[4][1]))&&f(e,"style",n)},d(s){s&&k(e)}}}function p(u){let e,a,l=u[0],i=[];for(let n=0;n<l.length;n+=1)i[n]=j(D(u,l,n));return{c(){e=m("div"),a=m("div");for(let n=0;n<i.length;n+=1)i[n].c();f(a,"class","interpret_range flex svelte-18x1goz"),f(e,"class","input-number svelte-18x1goz")},m(n,s){y(n,e,s),_(e,a);for(let t=0;t<i.length;t+=1)i[t].m(a,null)},p(n,[s]){if(s&1){l=n[0];let t;for(t=0;t<l.length;t+=1){const c=D(n,l,t);i[t]?i[t].p(c,s):(i[t]=j(c),i[t].c(),i[t].m(a,null))}for(;t<i.length;t+=1)i[t].d(1);i.length=l.length}},i:d,o:d,d(n){n&&k(e),V(i,n)}}}function $(u,e,a){let{value:l}=e,{interpretation:i}=e,{theme:n}=e,{style:s}=e;return u.$$set=t=>{"value"in t&&a(1,l=t.value),"interpretation"in t&&a(0,i=t.interpretation),"theme"in t&&a(2,n=t.theme),"style"in t&&a(3,s=t.style)},[i,l,n,s]}class ee extends b{constructor(e){super();g(this,e,$,p,v,{value:1,interpretation:0,theme:2,style:3})}}var se=ee;const ue=["static","dynamic"];export{ie as Component,se as Interpretation,ue as modes};
