1import{S as C,e as F,s as G,F as g,G as d,w as b,u as w,H as k,am as H,Z as U,ae as V,o as W,h as Z,V as z,W as E,k as K}from"./index-54c53184.js";import{B as L}from"./Button-d872f1fb.js";import{T as M}from"./Table-db879d7b.js";import"./utils-c3e3db58.js";import"./Upload-04b0e95f.js";import"./StaticMarkdown-040d7b82.js";import"./dsv-576afacd.js";function P(n){let a,l,i,_;const f=[n[16],{border:!0}];let m={};for(let t=0;t<f.length;t+=1)m=U(m,f[t]);return a=new V({props:m}),i=new M({props:{label:n[9],row_count:n[8],col_count:n[7],value:n[0],headers:n[1],editable:!0,wrap:n[10],datatype:n[11],latex_delimiters:n[5],height:n[6],line_breaks:n[14]}}),i.$on("change",n[19]),i.$on("select",n[20]),{c(){g(a.$$.fragment),l=W(),g(i.$$.fragment)},m(t,s){d(a,t,s),Z(t,l,s),d(i,t,s),_=!0},p(t,s){const c=s&65536?z(f,[E(t[16]),f[1]]):{};a.$set(c);const u={};s&512&&(u.label=t[9]),s&256&&(u.row_count=t[8]),s&128&&(u.col_count=t[7]),s&1&&(u.value=t[0]),s&2&&(u.headers=t[1]),s&1024&&(u.wrap=t[10]),s&2048&&(u.datatype=t[11]),s&32&&(u.latex_delimiters=t[5]),s&64&&(u.height=t[6]),s&16384&&(u.line_breaks=t[14]),i.$set(u)},i(t){_||(b(a.$$.fragment,t),b(i.$$.fragment,t),_=!0)},o(t){w(a.$$.fragment,t),w(i.$$.fragment,t),_=!1},d(t){t&&K(l),k(a,t),k(i,t)}}}function Q(n){let a,l;return a=new L({props:{visible:n[4],padding:!1,elem_id:n[2],elem_classes:n[3],container:!1,scale:n[12],min_width:n[13],allow_overflow:!1,$$slots:{default:[P]},$$scope:{ctx:n}}}),{c(){g(a.$$.fragment)},m(i,_){d(a,i,_),l=!0},p(i,[_]){const f={};_&16&&(f.visible=i[4]),_&4&&(f.elem_id=i[2]),_&8&&(f.elem_classes=i[3]),_&4096&&(f.scale=i[12]),_&8192&&(f.min_width=i[13]),_&4313059&&(f.$$scope={dirty:_,ctx:i}),a.$set(f)},i(i){l||(b(a.$$.fragment,i),l=!0)},o(i){w(a.$$.fragment,i),l=!1},d(i){k(a,i)}}}function R(n,a,l){let{headers:i=[]}=a,{elem_id:_=""}=a,{elem_classes:f=[]}=a,{visible:m=!0}=a,{value:t={data:[["","",""]],headers:["1","2","3"],metadata:null}}=a,{latex_delimiters:s}=a,{height:c=500}=a,u=JSON.stringify(t),{value_is_output:o=!1}=a,{col_count:h}=a,{row_count:S}=a,{label:A=null}=a,{wrap:J}=a,{datatype:N}=a,{scale:O=null}=a,{min_width:v=void 0}=a,{line_breaks:B=!0}=a,{gradio:r}=a,{loading_status:D}=a;function I(){r.dispatch("change"),o||r.dispatch("input")}H(()=>{l(17,o=!1)}),(Array.isArray(t)&&t?.[0]?.length===0||t.data?.[0]?.length===0)&&(t={data:[Array(h?.[0]||3).fill("")],headers:Array(h?.[0]||3).fill("").map((e,q)=>`${q+1}`),metadata:null});const T=({detail:e})=>{l(0,t=e)},j=e=>r.dispatch("select",e.detail);return n.$$set=e=>{"headers"in e&&l(1,i=e.headers),"elem_id"in e&&l(2,_=e.elem_id),"elem_classes"in e&&l(3,f=e.elem_classes),"visible"in e&&l(4,m=e.visible),"value"in e&&l(0,t=e.value),"latex_delimiters"in e&&l(5,s=e.latex_delimiters),"height"in e&&l(6,c=e.height),"value_is_output"in e&&l(17,o=e.value_is_output),"col_count"in e&&l(7,h=e.col_count),"row_count"in e&&l(8,S=e.row_count),"label"in e&&l(9,A=e.label),"wrap"in e&&l(10,J=e.wrap),"datatype"in e&&l(11,N=e.datatype),"scale"in e&&l(12,O=e.scale),"min_width"in e&&l(13,v=e.min_width),"line_breaks"in e&&l(14,B=e.line_breaks),"gradio"in e&&l(15,r=e.gradio),"loading_status"in e&&l(16,D=e.loading_status)},n.$$.update=()=>{n.$$.dirty&262145&&JSON.stringify(t)!==u&&(l(18,u=JSON.stringify(t)),I())},[t,i,_,f,m,s,c,h,S,A,J,N,O,v,B,r,D,o,u,T,j]}class X extends C{constructor(a){super(),F(this,a,R,Q,G,{headers:1,elem_id:2,elem_classes:3,visible:4,value:0,latex_delimiters:5,height:6,value_is_output:17,col_count:7,row_count:8,label:9,wrap:10,datatype:11,scale:12,min_width:13,line_breaks:14,gradio:15,loading_status:16}
1)}}const ae=X;export{ae as default}; 2//# sourceMappingURL=index-7389d93c.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.