PageSourceSearch

https://hshr-deepfilternet2.hf.space/assets/index.c3e473ba.js

js hshr-deepfilternet2.hf.space collected 2026-10-03 10:18:51 UTC 4,686 bytes, 2 lines download raw bytes

1import{S as T,i as j,s as z,a2 as K,e as v,d as w,c as E,h as d,D as q,k as g,l as m,m as N,n as J,q as k,v as C,w as y,t as G,b as B,x as S,J as O,K as P,Y as Q,B as U,y as Y,z as F,N as H,U as I,A as L,C as M,Q as R,P as V}from"./index.35f72ff8.js";function A(l,e,t){const s=l.slice();return s[10]=e[t],s}function W(l){let e;return{c(){e=E(l[3])},m(t,s){g(t,e,s)},p(t,s){s&8&&J(e,t[3])},d(t){t&&k(e)}}}function D(l){let e,t,s,c,o,u=l[10]+"",n,b,h,a;function f(){return l[8](l[10])}return{c(){e=v("label"),t=v("input"),c=w(),o=v("span"),n=E(u),b=w(),t.disabled=l[2],t.checked=s=l[0].includes(l[10]),d(t,"type","checkbox"),d(t,"name","test"),d(t,"class","svelte-s95fid"),d(o,"class","ml-2 svelte-s95fid"),d(e,"style",l[5]),d(e,"class","svelte-s95fid"),q(e,"disabled",l[2])},m(r,i){g(r,e,i),m(e,t),m(e,c),m(e,o),m(o,n),m(e,b),h||(a=N(t,"change",f),h=!0)},p(r,i){l=r,i&4&&(t.disabled=l[2]),i&3&&s!==(s=l[0].includes(l[10]))&&(t.checked=s),i&2&&u!==(u=l[10]+"")&&J(n,u),i&32&&d(e,"style",l[5]),i&4&&q(e,"disabled",l[2])},d(r){r&&k(e),h=!1,a()}}}function X(l){let e,t,s,c;e=new K({props:{show_label:l[4],$$slots:{default:[W]},$$scope:{ctx:l}}});let o=l[1],u=[];for(let n=0;n<o.length;n+=1)u[n]=D(A(l,o,n));return{c(){C(e.$$.fragment),t=w(),s=v("div");for(let n=0;n<u.length;n+=1)u[n].c();d(s,"class","wrap svelte-s95fid"),d(s,"data-testid","checkbox-group")},m(n,b){y(e,n,b),g(n,t,b),g(n,s,b);for(let h=0;h<u.length;h+=1)u[h].m(s,null);c=!0},p(n,[b]){const h={};if(b&16&&(h.show_label=n[4]),b&8200&&(h.$$scope={dirty:b,ctx:n}),e.$set(h),b&103){o=n[1];let a;for(a=0;a<o.length;a+=1){const f=A(n,o,a);u[a]?u[a].p(f,b):(u[a]=D(f),u[a].c(),u[a].m(s,null))}for(;a<u.length;a+=1)u[a].d(1);u.length=o.length}},i(n){c||(G(e.$$.fragment,n),c=!0)},o(n){B(e.$$.fragment,n),c=!1},d(n){S(e,n),n&&k(t),n&&k(s),O(u,n)}}}function Z(l,e,t){let s,{value:c=[]}=e,{style:o={}}=e,{choices:u}=e,{disabled:n=!1}=e,{label:b}=e,{show_label:h}=e;const a=P(),f=i=>{c.includes(i)?c.splice(c.indexOf(i),1):c.push(i),a("change",c),t(0,c)},r=i=>f(i);return l.$$set=i=>{"value"in i&&t(0,c=i.value),"style"in i&&t(7,o=i.style),"choices"in i&&t(1,u=i.choices),"disabled"in i&&t(2,n=i.disabled),"label"in i&&t(3,b=i.label),"show_label"in i&&t(4,h=i.show_label)},l.$$.update=()=>{l.$$.dirty&128&&t(5,{item_container:s}=Q(o,["item_container"]),s)},[c,u,n,b,h,s,f,o,r]}class p extends T{constructor(e){super(),j(this,e,Z,X,z,{value:0,style:7,choices:1,disabled:2,label:3,show_label:4})}}function x(l){let e,t,s,c,o;const u=[l[8]];let n={};for(let a=0;a<u.length;a+=1)n=Y(n,u[a]);e=new F({props:n});function b(a){l[9](a)}let h={choices:l[3],label:l[6],style:l[4],show_label:l[7],disabled:l[5]==="static"};return l[0]!==void 0&&(h.value=l[0]),s=new p({props:h}),H.push(()=>I(s,"value",b)),s.$on("change",l[10]),{c(){C(e.$$.fragment),t=w(),C(s.$$.fragment)},m(a,f){y(e,a,f),g(a,t,f),y(s,a,f),o=!0},p(a,f){const r=f&256?L(u,[M(a[8])]):{};e.$set(r);const i={};f&8&&(i.choices=a[3]),f&64&&(i.label=a[6]),f&16&&(i.style=a[4]),f&128&&(i.show_label=a[7]),f&32&&(i.disabled=a[5]==="static"),!c&&f&1&&(c=!0,i.value=a[0],R(()=>c=!1)),s.$set(i)},i(a){o||(G(e.$$.fragment,a),G(s.$$.fragment,a),o=!0)},o(a){B(e.$$.fragment,a),B(s.$$.fragment,a),o=!1},d(a){S(e,a),a&&k(t),S(s,a)}}}function $(l){let e,t;return e=new U({props:{visible:l[2],elem_id:l[1],type:"fieldset",disable:typeof l[4].container=="boolean"&&!l[4].container,$$slots:{default:[x]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},m(s,c){y(e,s,c),t=!0},p(s,[c]){const o={};c&4&&(o.visible=s[2]),c&2&&(o.elem_id=s[1]),c&16&&(o.disable=typeof s[4].container=="boolean"&&!s[4].container),c&2553&&(o.$$scope={dirty:c,ctx:s}),e.$set(o)},i(s){t||(G(e.$$.fragment,s),t=!0)},o(s){B(e.$$.fragment,s),t=!1},d(s){S(e,s)}}}function ee(l,e,t){let{elem_id:s=""}=e,{visible:c=!0}=e,{value:o=[]}=e,{choices:u}=e,{style:n={}}=e,{mode:b}=e,{label:h="Checkbox Group"}=e,{show_label:a}=e,{loading_status:f}=e;function r(_){o=_,t(0,o)}function i(_){V.call(this,l,_)}return l.$$set=_=>{"elem_id"in _&&t(1,s=_.elem_id),"visible"in _&&t(2,c=_.visible),"value"in _&&t(0,o=_.value),"choices"in _&&t(3,u=_.choices),"style"in _&&t(4,n=_.style),"mode"in _&&t(5,b=_.mode),"label"in _&&t(6,h=_.label),"show_label"in _&&t(7,a=_.show_label),"loading_status"in _&&t(8,f=_.loading_status)}
1,[o,s,c,u,n,b,h,a,f,r,i]}class le extends T{constructor(e){super(),j(this,e,ee,$,z,{elem_id:1,visible:2,value:0,choices:3,style:4,mode:5,label:6,show_label:7,loading_status:8})}}var se=le;const ae=["static","dynamic"],ne=l=>({type:"Array<string>",description:"list of selected choices",example_data:l.choices.length?[l.choices[0]]:[]});export{se as Component,ne as document,ae as modes};
2//# sourceMappingURL=index.c3e473ba.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.