PageSourceSearch

https://yisol-idm-vton.hf.space/assets/Index-5499ef72.js

js yisol-idm-vton.hf.space collected 2026-10-03 10:24:19 UTC 6,299 bytes, 2 lines download raw bytes

vendor: 6,299 bytes, lines 1-2
1import{B as N}from"./SelectSource.svelte_svelte_type_style_lang-09934a57.js";import{B as O}from"./BlockTitle-74404970.js";import{S as P}from"./Index-cd4ac184.js";import{default as He}from"./Example-aaefd914.js";import"./index-c4af12f4.js";import"./svelte/svelte.js";import"./Info-3a4095b6.js";const{SvelteComponent:Q,append:S,attr:g,detach:U,element:z,init:V,init_binding_group:W,insert:X,listen:Y,noop:D,safe_not_equal:Z,set_data:y,set_input_value:M,space:p,text:x,toggle_class:j}=window.__gradio__svelte__internal,{createEventDispatcher:$}=window.__gradio__svelte__internal;function ee(i){let e,l,t=!1,s,u,f,h,m,c,r;return m=W(i[6][0]),{c(){e=z("label"),l=z("input"),s=p(),u=z("span"),f=x(i[1]),l.disabled=i[3],g(l,"type","radio"),g(l,"name","radio-"+ ++le),l.__value=i[2],M(l,l.__value),g(l,"aria-checked",i[4]),g(l,"class","svelte-1mhtq7j"),g(u,"class","ml-2 svelte-1mhtq7j"),g(e,"data-testid",h=i[1]+"-radio-label"),g(e,"class","svelte-1mhtq7j"),j(e,"disabled",i[3]),j(e,"selected",i[4]),m.p(l)},m(o,d){X(o,e,d),S(e,l),l.checked=l.__value===i[0],S(e,s),S(e,u),S(u,f),c||(r=Y(l,"change",i[5]),c=!0)},p(o,[d]){d&8&&(l.disabled=o[3]),d&4&&(l.__value=o[2],M(l,l.__value),t=!0),d&16&&g(l,"aria-checked",o[4]),(t||d&1)&&(l.checked=l.__value===o[0]),d&2&&y(f,o[1]),d&2&&h!==(h=o[1]+"-radio-label")&&g(e,"data-testid",h),d&8&&j(e,"disabled",o[3]),d&16&&j(e,"selected",o[4])},i:D,o:D,d(o){o&&U(e),m.r(),c=!1,r()}}}let le=0;function te(i,e,l){let{display_value:t}=e,{internal_value:s}=e,{disabled:u=!1}=e,{selected:f=null}=e;const h=$();let m=!1;async function c(d,n){l(4,m=d===n),m&&h("input",n)}const r=[[]];function o(){f=this.__value,l(0,f)}return i.$$set=d=>{"display_value"in d&&l(1,t=d.display_value),"internal_value"in d&&l(2,s=d.internal_value),"disabled"in d&&l(3,u=d.disabled),"selected"in d&&l(0,f=d.selected)},i.$$.update=()=>{i.$$.dirty&5&&c(f,s)},[f,t,s,u,m,o,r]}class ne extends Q{constructor(e){super(),V(this,e,te,ee,Z,{display_value:1,internal_value:2,disabled:3,selected:0})}}const ie=ne;const{SvelteComponent:ae,add_flush_callback:se,assign:_e,attr:ue,bind:oe,binding_callbacks:fe,check_outros:de,create_component:C,destroy_component:R,detach:k,element:ce,empty:re,ensure_array_like:T,get_spread_object:me,get_spread_update:he,group_outros:be,init:ge,insert:w,mount_component:E,outro_and_destroy_block:ve,safe_not_equal:ke,set_data:we,space:A,text:qe,transition_in:q,transition_out:B,update_keyed_each:Be}=window.__gradio__svelte__internal;function F(i,e,l){const t=i.slice();return t[18]=e[l][0],t[19]=e[l][1],t[21]=l,t}function Se(i){let e;return{c(){e=qe(i[2])},m(l,t){w(l,e,t)},p(l,t){t&4&&we(e,l[2])},d(l){l&&k(e)}}}function G(i,e){let l,t,s,u;function f(c){e[15](c)}function h(){return e[16](e[19],e[21])}let m={display_value:e[18],internal_value:e[19],disabled:e[13]};return e[0]!==void 0&&(m.selected=e[0]),t=new ie({props:m}),fe.push(()=>oe(t,"selected",f)),t.$on("input",h),{key:i,first:null,c(){l=re(),C(t.$$.fragment),this.first=l},m(c,r){w(c,l,r),E(t,c,r),u=!0},p(c,r){e=c;const o={};r&128&&(o.display_value=e[18]),r&128&&(o.internal_value=e[19]),r&8192&&(o.disabled=e[13]),!s&&r&1&&(s=!0,o.selected=e[0],se(()=>s=!1)),t.$set(o)},i(c){u||(q(t.$$.fragment,c),u=!0)},o(c){B(t.$$.fragment,c),u=!1},d(c){c&&k(l),R(t,c)}}}function je(i){let e,l,t,s,u,f=[],h=new Map,m;const c=[{autoscroll:i[1].autoscroll},{i18n:i[1].i18n},i[12]];let r={};for(let n=0;n<c.length;n+=1)r=_e(r,c[n]);e=new P({props:r}),t=new O({props:{show_label:i[8],info:i[3],$$slots:{default:[Se]},$$scope:{ctx:i}}});let o=T(i[7]);const d=n=>n[21];for(let n=0;n<o.length;n+=1){let a=F(i,o,n),b=d(a);h.set(b,f[n]=G(b,a))}return{c(){C(e.$$.fragment),l=A(),C(t.$$.fragment),s=A(),u=ce("div");for(let n=0;n<f.length;n+=1)f[n].c();ue(u,"class","wrap svelte-1kzox3m")},m(n,a){E(e,n,a),w(n,l,a),E(t,n,a),w(n,s,a),w(n,u,a);for(let b=0;b<f.length;b+=1)f[b]&&f[b].m(u,null);m=!0},p(n,a){const b=a&4098?he(c,[a&2&&{autoscroll:n[1].autoscroll},a&2&&{i18n:n[1].i18n},a&4096&&me(n[12])]):{};e.$set(b);const v={};a&256&&(v.show_label=n[8]),a&8&&(v.info=n[3]),a&4194308&&(v.$$scope={dirty:a,ctx:n}),t.$set(v),a&8323&&(o=T(n[7]),be(),f=Be(f,a,d,1,n,o,h,u,ve,G,null,F),de())},i(n){if(!m){q(e.$$.fragment,n),q(t.$$.fragment,n);for(let a=0;a<o.length;a+=1)q(f[a]);m=!0}},o(n){B(e.$$.fragment,n),B(t.$$.fragment,n);for(let a=0;a<f.length;a+=1)B(f[a]);m=!1},d(n){n&&(k(l),k(s),k(u)),R(e,n),R(t,n);for(let a=0;a<f.length;a+=1)f[a].d()}}}function Ce(i){let e,l;return e=new N({props:{visible:i[6],type:"fieldset",elem_id:i[4],elem_classes:i[5],container:i[9],scale:i[10],min_width:i[11],$$slots:{default:[je]},$$scope:{ctx:i}}}),{c(){C(e.$$.fragment)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const u={};s&64&&(u.visible=t[6]),s&16&&(u.elem_id=t[4]),s&32&&(u.elem_classes=t[5]),s&512&&(u.container=t[9]),s&1024&&(u.scale=t[10]),s&2048&&(u.min_width=t[11]),s&4206991&&(u.$$scope={dirty:s,ctx:t}),e.$set(u)},i(t){l||(q(e.$$.fragment,t),l=!0)},o(t){B(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Re(i,e,l){let t,{gradio:s}=e,{label:u=s.i18n("radio.radio")}=e,{info:f=void 0}=e,{elem_id:h=""}=e,{elem_classes:m=[]}=e,{visible:c=!0}=e,{value:r=null}=e,{choices:o=[]}=e,{show_label:d=!0}=e,{container:n=!1}=e,{scale:a=null}=e,{min_width:b=void 0}=e,{loading_status:v}=e,{interactive:I=!0}=e;function H(){s.dispatch("change")}function J(_){r=_,l(0,r)}const K=(_,L)=>{s.dispatch("select",{value:_,index:L}),s.dispatch("input")};return i.$$set=_=>{"gradio"in _&&l(1,s=_.gradio),"label"in _&&l(2,u=_.label),"info"in _&&l(3,f=_.info),"elem_id"in _&&l(4,h=_.elem_id),"elem_classes"in _&&l(5,m=_.elem_classes),"visible"in _&&l(6,c=_.visible),"value"in _&&l(0,r=_.value),"choices"in _&&l(7,o=_.choices),"show_label"in _&&l(8,d=_.show_label),"container"in _&&l(9,n=_.container),"scale"in _&&l(10,a=_.scale),"min_width"in _&&l(11,b=_.min_width),"loading_status"in _&&l(12,v=_.loading_status),"interactive"in _&&l(14,I=_.interactive)},i.$$.update=()=>{i.$$.dirty&1&&H(),i.$$.dirty&16384&&l(13,t=!I)},[r,s,u,f,h,m,c,o,d,n,a,b,v,t,I,J,K]}class Ae extends ae{constructor(e){super(),ge(this,e,Re,Ce,ke,{gradio:1,label:2,info:3,elem_id:4,elem_classes:5,visible:6,value:0,choices:7,show_label:8,container:9,scale:10,min_width:11,loading_status:12,interactive:14})}}export{He as BaseExample,ie as BaseRadio,Ae as default};
2//# sourceMappingURL=Index-5499ef72.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.