(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{21783:(e,o,t)=>{Promise.resolve().then(t.t.bind(t,42501,23)),Promise.resolve().then(t.t.bind(t,68655,23)),Promise.resolve().then(t.t.bind(t,94083,23)),Promise.resolve().then(t.bind(t,68145)),Promise.resolve().then(t.bind(t,33537)),Promise.resolve().then(t.bind(t,84526))},26460:(e,o,t)=>{"use strict";t.d(o,{$:()=>f,Ay:()=>g,EI:()=>p,OX:()=>u,PI:()=>l,hE:()=>m});var a=t(58976),r=t(18607),d=t(16023),i=t(62252),n=t(69984);let l=(0,a.zD)("folderTree/loadFolderContents",async e=>{let{path:o,limit:t=100,showHidden:a=!1}=e,r=new URLSearchParams({path:o,limit:t.toString(),show_hidden:a.toString()}),i=await fetch("".concat(d.m4,"/ls?").concat(r));if(!i.ok)try{let e=await i.json();throw Error(e.error||"Failed to load folder contents: ".concat(i.statusText))}catch(e){if(e instanceof Error&&e.message!=="Failed to load folder contents: ".concat(i.statusText))throw e;throw Error("Failed to load folder contents: ".concat(i.statusText))}return{path:o,items:await i.json()}});function s(e,o){let t=e.name===o||""===o?e.name:(0,r.CN)(o,e.name);return{id:t,name:(0,r.uk)(t)||e.name,path:t,isDir:e.isDir,size:e.size,lastModified:e.lastModified,children:e.isDir?[]:void 0,isLoaded:!1,isExpanded:!1,loading:!1}}function c(e,o,t){return e.path===o?t(e):e.children?{...e,children:e.children.map(e=>c(e,o,t))}:e}let h=(0,a.Z0)({name:"folderTree",initialState:{rootNode:null,expandedPaths:[],loading:!1,error:null,viewingId:null},reducers:{toggleNodeExpansion:(e,o)=>{let t=o.payload,a=e.expandedPaths.indexOf(t);a>=0?e.expandedPaths.splice(a,1):e.expandedPaths.push(t),e.rootNode&&(e.rootNode=c(e.rootNode,t,e=>({...e,isExpanded:!e.isExpanded})))},expandNode:(e,o)=>{let t=o.payload;0>e.expandedPaths.indexOf(t)&&e.expandedPaths.push(t),e.rootNode&&(e.rootNode=c(e.rootNode,t,e=>({...e,isExpanded:!0})))},clearTree:e=>{e.rootNode=null,e.expandedPaths=[],e.error=null},setViewingId:(e,o)=>{e.viewingId=o.payload},setNodeLoading:(e,o)=>{let{path:t,loading:a}=o.payload;e.rootNode&&(e.rootNode=c(e.rootNode,t,e=>({...e,loading:a})))}},extraReducers:e=>{e.addCase(l.pending,(e,o)=>{e.loading=!0,e.error=null;let t=o.meta.arg.path;e.rootNode&&(e.rootNode=c(e.rootNode,t,e=>({...e,loading:!0})))}).addCase(l.fulfilled,(e,o)=>{e.loading=!1;let{path:t,items:a}=o.payload;if(e.rootNode){let o=c(e.rootNode,t,e=>({...e,children:a.map(e=>s(e,t)),isLoaded:!0,loading:!1}));e.rootNode=o}else e.rootNode=s({name:(0,r.uk)(t),size:0,lastModified:Date.now(),isDir:!0},(0,r.Gl)(t)),e.rootNode.path=t,e.rootNode.isLoaded=!0,e.rootNode.isExpanded=!0,e.rootNode.children=a.map(e=>s(e,t))}).addCase(l.rejected,(e,o)=>{e.loading=!1,e.error=o.error.message||"Failed to load folder contents";let t=o.meta.arg.path;e.rootNode&&(e.rootNode=c(e.rootNode,t,e=>({...e,loading:!1})))})}}),{toggleNodeExpansion:u,expandNode:m,clearTree:p,setNodeLoading:N}=h.actions,{setViewingId:y}=h.actions,f=e=>o=>{if(o(y(e)),e){let t=(0,i.t)(e);(t===i.p.ColumnarTable||t===i.p.RowTable)&&o((0,n.setTablePath)(e))}},g=h.reducer},33537:(e,o,t)=>{"use strict";t.d(o,{ThemeProvider:()=>d});var a=t(23892),r=t(86841);function d(e){let{children:o,...t}=e;return(0,a.jsx)(r.N,{...t,children:o})}},42501:e=>{e.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_188709",variable:"__variable_188709"}},68145:(e,o,t)=>{"use strict";t.d(o,{default:()=>F});var a=t(23892),r=t(85848),d=t(77933),i=t(58976),n=t(69984),l=t(38710),s=t(28280),c=t(62318),h=t(32446),u=t(81876),m=t(45902),p=t(49174),N=t(20691),y=t(67217),f=t(85828),g=t(89022);let x=(0,m.HY)({cardinality:p.Ay,baseStats:N.Ay,filteredStats:y.Ay,renderType:f.Ay,isCategorical:g.A});var b=t(5216),v=t(35484),A=t(43462),P=t(44558),w=t(48),_=t(31929),E=t(31874),T=t(26460),k=t(33796);let C=(0,i.U1)({reducer:{ui:n.default,columnMeta:l.Ay,sqlHistory:s.Ay,rowData:c.Ay,viewing:h.Ay,ag:u.Ay,columns:x,derivedColumns:b.Ay,aiQuickActions:v.Ay,histogram:A.Ay,bubblePlot:P.Ay,balanceMap:w.Ay,heatmap:_.Ay,boxPlot:E.Ay,folderTree:T.Ay,handPickedRows:k.Ay}});function F(e){let{children:o}=e,t=(0,r.useRef)(C);return(0,a.jsx)(d.Kq,{store:t.current,children:o})}},68655:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_9a8899",variable:"__variable_9a8899"}},84526:(e,o,t)=>{"use strict";t.d(o,{ToasterProvider:()=>i});var a=t(23892),r=t(89838),d=t(86841);function i(){let{theme:e,systemTheme:o}=(0,d.D)();return(0,a.jsx)(r.l$,{richColors:!0,theme:"system"===e?o:e,closeButton:!0,position:"bottom-right"})}},94083:()=>{}},e=>{e.O(0,[9328,5652,3265,8346,4185,9838,6110,4980,3029,6542,7358],()=>e(e.s=21783)),_N_E=e.O()}]);