PageSourceSearch

https://nakas-demucs-playground.hf.space/assets/index-b6514601.js

js nakas-demucs-playground.hf.space collected 2026-10-03 10:20:41 UTC 6,065 bytes, 2 lines download raw bytes

1import{S as U,i as V,s as z,e as G,H as S,G as q,C as k,m as B,g as w,p as O,t as J,n as N,q as C,N as X,r as Y,af as Z,I as F,K as L,M as j,E as v,J as A,V as y,x as p,a9 as x,b as D,a as H,h as $,j as ee,k as I,y as E}from"./index-188ef5e8.js";/* empty css                                                  */import{B as le}from"./Button-04f93a38.js";import{B as te}from"./BlockTitle-c2c0aac0.js";/* empty css                                                    */import"./Info-b7dfbb56.js";function K(l,e,n){const t=l.slice();return t[13]=e[n],t}function ne(l){let e;return{c(){e=F(l[3])},m(n,t){w(n,e,t)},p(n,t){t&8&&L(e,n[3])},d(n){n&&C(e)}}}function M(l){let e,n,t,f,c,u=l[13]+"",i,h,d,b;function m(){return l[10](l[13])}function s(..._){return l[11](l[13],..._)}return{c(){e=q("label"),n=q("input"),f=S(),c=q("span"),i=F(u),h=S(),n.disabled=l[2],n.checked=t=l[0].includes(l[13]),k(n,"type","checkbox"),k(n,"name","test"),k(n,"class","svelte-1qxcj04"),k(c,"class","ml-2 svelte-1qxcj04"),k(e,"class","svelte-1qxcj04"),j(e,"disabled",l[2]),j(e,"selected",l[0].includes(l[13]))},m(_,r){w(_,e,r),v(e,n),v(e,f),v(e,c),v(c,i),v(e,h),d||(b=[A(n,"change",m),A(n,"input",s)],d=!0)},p(_,r){l=_,r&4&&(n.disabled=l[2]),r&3&&t!==(t=l[0].includes(l[13]))&&(n.checked=t),r&2&&u!==(u=l[13]+"")&&L(i,u),r&4&&j(e,"disabled",l[2]),r&3&&j(e,"selected",l[0].includes(l[13]))},d(_){_&&C(e),d=!1,y(b)}}}function ie(l){let e,n,t,f;e=new te({props:{show_label:l[5],info:l[4],$$slots:{default:[ne]},$$scope:{ctx:l}}});let c=l[1],u=[];for(let i=0;i<c.length;i+=1)u[i]=M(K(l,c,i));return{c(){G(e.$$.fragment),n=S(),t=q("div");for(let i=0;i<u.length;i+=1)u[i].c();k(t,"class","wrap svelte-1qxcj04"),k(t,"data-testid","checkbox-group")},m(i,h){B(e,i,h),w(i,n,h),w(i,t,h);for(let d=0;d<u.length;d+=1)u[d]&&u[d].m(t,null);f=!0},p(i,[h]){const d={};if(h&32&&(d.show_label=i[5]),h&16&&(d.info=i[4]),h&65544&&(d.$$scope={dirty:h,ctx:i}),e.$set(d),h&199){c=i[1];let b;for(b=0;b<c.length;b+=1){const m=K(i,c,b);u[b]?u[b].p(m,h):(u[b]=M(m),u[b].c(),u[b].m(t,null))}for(;b<u.length;b+=1)u[b].d(1);u.length=c.length}},i(i){f||(O(e.$$.fragment,i),f=!0)},o(i){J(e.$$.fragment,i),f=!1},d(i){N(e,i),i&&C(n),i&&C(t),X(u,i)}}}function se(l,e,n){let{value:t=[]}=e,f=t.slice(),{value_is_output:c=!1}=e,{choices:u}=e,{disabled:i=!1}=e,{label:h}=e,{info:d=void 0}=e,{show_label:b}=e;const m=Y(),s=o=>{t.includes(o)?t.splice(t.indexOf(o),1):t.push(o),n(0,t)};function _(){m("change",t),c||m("input")}Z(()=>{n(8,c=!1)});const r=o=>s(o),g=(o,T)=>m("select",{index:u.indexOf(o),value:o,selected:T.currentTarget.checked});return l.$$set=o=>{"value"in o&&n(0,t=o.value),"value_is_output"in o&&n(8,c=o.value_is_output),"choices"in o&&n(1,u=o.choices),"disabled"in o&&n(2,i=o.disabled),"label"in o&&n(3,h=o.label),"info"in o&&n(4,d=o.info),"show_label"in o&&n(5,b=o.show_label)},l.$$.update=()=>{l.$$.dirty&513&&JSON.stringify(t)!==JSON.stringify(f)&&(n(9,f=t.slice()),_())},[t,u,i,h,d,b,m,s,c,f,r,g]}class ae extends U{constructor(e){super(),V(this,e,se,ie,z,{value:0,value_is_output:8,choices:1,disabled:2,label:3,info:4,show_label:5})}}function ue(l){let e,n,t,f,c,u;const i=[l[13]];let h={};for(let s=0;s<i.length;s+=1)h=p(h,i[s]);e=new x({props:h});function d(s){l[14](s)}function b(s){l[15](s)}let m={choices:l[5],label:l[10],info:l[11],show_label:l[12],disabled:l[9]==="static"};return l[0]!==void 0&&(m.value=l[0]),l[1]!==void 0&&(m.value_is_output=l[1]),t=new ae({props:m}),D.push(()=>H(t,"value",d)),D.push(()=>H(t,"value_is_output",b)),t.$on("select",l[16]),t.$on("change",l[17]),t.$on("input",l[18]),{c(){G(e.$$.fragment),n=S(),G(t.$$.fragment)},m(s,_){B(e,s,_),w(s,n,_),B(t,s,_),u=!0},p(s,_){const r=_&8192?$(i,[ee(s[13])]):{};e.$set(r);const g={};_&32&&(g.choices=s[5]),_&1024&&(g.label=s[10]),_&2048&&(g.info=s[11]),_&4096&&(g.show_label=s[12]),_&512&&(g.disabled=s[9]==="static"),!f&&_&1&&(f=!0,g.value=s[0],I(()=>f=!1)),!c&&_&2&&(c=!0,g.value_is_output=s[1],I(()=>c=!1)),t.$set(g)},i(s){u||(O(e.$$.fragment,s),O(t.$$.fragment,s),u=!0)},o(s){J(e.$$.fragment,s),J(t.$$.fragment,s),u=!1},d(s){N(e,s),s&&C(n),N(t,s)}}}function ce(l){let e,n;return e=new le({props:{visible:l[4],elem_id:l[2],elem_classes:l[3],type:"fieldset",container:l[6],scale:l[7],min_width:l[8],$$slots:{default:[ue]},$$scope:{ctx:l}}}),{c(){G(e.$$.fragment)},m(t,f){B(e,t,f),n=!0},p(t,[f]){const c={};f&16&&(c.visible=t[4]),f&4&&(c.elem_id=t[2]),f&8&&(c.elem_classes=t[3]),f&64&&(c.container=t[6]),f&128&&(c.scale=t[7]),f&256&&(c.min_width=t[8]),f&540195&&(c.$$scope={dirty:f,ctx:t}),e.$set(c)},i(t){n||(O(e.$$.fragment,t),n=!0)},o(t){J(e.$$.fragment,t),n=!1},d(t){N(e,t)}}}function fe(l,e,n){let{elem_id:t=""}=e,{elem_classes:f=[]}=e,{visible:c=!0}=e,{value:u=[]}=e,{value_is_output:i=!1}=e,{choices:h}=e,{container:d=!1}=e,{scale:b=1}=e,{min_width:m=void 0}=e,{mode:s}=e,{label:_="Checkbox Group"}=e,{info:r=void 0}=e,{show_label:g}=e,{loading_status:o}=e;function T(a){u=a,n(0,u)}function P(a){i=a,n(1,i)}
1function Q(a){E.call(this,l,a)}function R(a){E.call(this,l,a)}function W(a){E.call(this,l,a)}return l.$$set=a=>{"elem_id"in a&&n(2,t=a.elem_id),"elem_classes"in a&&n(3,f=a.elem_classes),"visible"in a&&n(4,c=a.visible),"value"in a&&n(0,u=a.value),"value_is_output"in a&&n(1,i=a.value_is_output),"choices"in a&&n(5,h=a.choices),"container"in a&&n(6,d=a.container),"scale"in a&&n(7,b=a.scale),"min_width"in a&&n(8,m=a.min_width),"mode"in a&&n(9,s=a.mode),"label"in a&&n(10,_=a.label),"info"in a&&n(11,r=a.info),"show_label"in a&&n(12,g=a.show_label),"loading_status"in a&&n(13,o=a.loading_status)},[u,i,t,f,c,h,d,b,m,s,_,r,g,o,T,P,Q,R,W]}class oe extends U{constructor(e){super(),V(this,e,fe,ce,z,{elem_id:2,elem_classes:3,visible:4,value:0,value_is_output:1,choices:5,container:6,scale:7,min_width:8,mode:9,label:10,info:11,show_label:12,loading_status:13})}}const ge=oe,ke=["static","dynamic"],ve=l=>({type:{payload:"Array<string>"},description:{payload:"list of selected choices"},example_data:l.choices.length?[l.choices[0]]:[]});export{ge as Component,ve as document,ke as modes};
2//# sourceMappingURL=index-b6514601.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.