mirror of
https://github.com/Ladebeze66/projetcbaollm.git
synced 2025-12-18 20:27:48 +01:00
3 lines
1.5 KiB
JavaScript
3 lines
1.5 KiB
JavaScript
/* empty css */const{SvelteComponent:g,add_iframe_resize_listener:h,add_render_callback:v,append:y,attr:b,binding_callbacks:m,detach:p,element:w,flush:d,init:z,insert:k,noop:c,safe_not_equal:q,set_data:S,text:C,toggle_class:r}=window.__gradio__svelte__internal,{onMount:E}=window.__gradio__svelte__internal;function M(t){let e,n=(t[0]?t[0]:"")+"",a,_;return{c(){e=w("div"),a=C(n),b(e,"class","svelte-1oitfqa"),v(()=>t[5].call(e)),r(e,"table",t[1]==="table"),r(e,"gallery",t[1]==="gallery"),r(e,"selected",t[2])},m(l,s){k(l,e,s),y(e,a),_=h(e,t[5].bind(e)),t[6](e)},p(l,[s]){s&1&&n!==(n=(l[0]?l[0]:"")+"")&&S(a,n),s&2&&r(e,"table",l[1]==="table"),s&2&&r(e,"gallery",l[1]==="gallery"),s&4&&r(e,"selected",l[2])},i:c,o:c,d(l){l&&p(e),_(),t[6](null)}}}function P(t,e){t.style.setProperty("--local-text-width",`${e&&e<150?e:200}px`),t.style.whiteSpace="unset"}function W(t,e,n){let{value:a}=e,{type:_}=e,{selected:l=!1}=e,s,u;E(()=>{P(u,s)});function f(){s=this.clientWidth,n(3,s)}function o(i){m[i?"unshift":"push"](()=>{u=i,n(4,u)})}return t.$$set=i=>{"value"in i&&n(0,a=i.value),"type"in i&&n(1,_=i.type),"selected"in i&&n(2,l=i.selected)},[a,_,l,s,u,f,o]}class A extends g{constructor(e){super(),z(this,e,W,M,q,{value:0,type:1,selected:2})}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),d()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),d()}get selected(){return this.$$.ctx[2]}set selected(e){this.$$set({selected:e}),d()}}export{A as default};
|
|
//# sourceMappingURL=Example-Cx2SdskM.js.map
|