import{S as k,i as T,s as H,e as S,b as c,d as v,f as L,w as h,n as M,E as w,c as o,m as _,j as d,k as b,o as g,P as j,Q as B,a as C,R as E,T as q,J as D}from"./index.06d85743.js";import{B as J}from"./Block.324ba9b6.js";import"./styles.ed3b21b5.js";function P(a){let e;return{c(){e=S("div"),c(e,"class","output-html min-h-[4rem]"),c(e,"id",a[0]),v(e,"!hidden",!a[2])},m(i,t){L(i,e,t),e.innerHTML=a[1]},p(i,[t]){t&2&&(e.innerHTML=i[1]),t&1&&c(e,"id",i[0]),t&4&&v(e,"!hidden",!i[2])},i:h,o:h,d(i){i&&M(e)}}}function Q(a,e,i){let{elem_id:t=""}=e,{value:s}=e,{visible:u=!0}=e;const m=w();return a.$$set=n=>{"elem_id"in n&&i(0,t=n.elem_id),"value"in n&&i(1,s=n.value),"visible"in n&&i(2,u=n.visible)},a.$$.update=()=>{a.$$.dirty&2&&m("change")},[t,s,u]}class R extends k{constructor(e){super(),T(this,e,Q,P,H,{elem_id:0,value:1,visible:2})}}function z(a){let e,i,t,s;const u=[a[3],{variant:"center"}];let m={};for(let n=0;n<u.length;n+=1)m=j(m,u[n]);return e=new B({props:m}),t=new R({props:{value:a[2],elem_id:a[0],visible:a[1]}}),t.$on("change",a[5]),{c(){o(e.$$.fragment),i=C(),o(t.$$.fragment)},m(n,r){_(e,n,r),L(n,i,r),_(t,n,r),s=!0},p(n,r){const f=r&8?E(u,[q(n[3]),u[1]]):{};e.$set(f);const l={};r&4&&(l.value=n[2]),r&1&&(l.elem_id=n[0]),r&2&&(l.visible=n[1]),t.$set(l)},i(n){s||(d(e.$$.fragment,n),d(t.$$.fragment,n),s=!0)},o(n){b(e.$$.fragment,n),b(t.$$.fragment,n),s=!1},d(n){g(e,n),n&&M(i),g(t,n)}}}function A(a){let e,i;return e=new J({props:{visible:a[1],elem_id:a[0],disable:!0,$$slots:{default:[z]},$$scope:{ctx:a}}}),{c(){o(e.$$.fragment)},m(t,s){_(e,t,s),i=!0},p(t,[s]){const u={};s&2&&(u.visible=t[1]),s&1&&(u.elem_id=t[0]),s&143&&(u.$$scope={dirty:s,ctx:t}),e.$set(u)},i(t){i||(d(e.$$.fragment,t),i=!0)},o(t){b(e.$$.fragment,t),i=!1},d(t){g(e,t)}}}function F(a,e,i){let{label:t}=e,{elem_id:s=""}=e,{visible:u=!0}=e,{value:m=""}=e,{loading_status:n}=e;const r=w();function f(l){D.call(this,a,l)}return a.$$set=l=>{"label"in l&&i(4,t=l.label),"elem_id"in l&&i(0,s=l.elem_id),"visible"in l&&i(1,u=l.visible),"value"in l&&i(2,m=l.value),"loading_status"in l&&i(3,n=l.loading_status)},a.$$.update=()=>{a.$$.dirty&16&&r("change")},[s,u,m,n,t,f]}class G extends k{constructor(e){super(),T(this,e,F,A,H,{label:4,elem_id:0,visible:1,value:2,loading_status:3})}}var O=G;const U=["static"];export{O as Component,U as modes};
