(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:()=>m,OX:()=>h,PI:()=>n,hE:()=>p});var a=t(58976),r=t(18607),d=t(16023),i=t(62252),l=t(69984);let n=(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)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 u=(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(n.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(n.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(n.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:h,expandNode:p,clearTree:m,setNodeLoading:y}=u.actions,{setViewingId:N}=u.actions,f=e=>o=>{if(o(N(e)),e){let t=(0,i.t)(e);(t===i.p.ColumnarTable||t===i.p.RowTable)&&o((0,l.setTablePath)(e))}},g=u.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})}},33796:(e,o,t)=>{"use strict";t.d(o,{Ay:()=>l,Hg:()=>r});let a=(0,t(58976).Z0)({name:"handPickedRows",initialState:{rows:[]},reducers:{handPickRow:(e,o)=>{e.rows.push(o.payload)},removeRow:(e,o)=>{e.rows.splice(o.payload,1)},clearHandPickedRows:e=>{e.rows=[]}}}),{handPickRow:r,removeRow:d,clearHandPickedRows:i}=a.actions,l=a.reducer},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:()=>R});var a=t(23892),r=t(85848),d=t(77933),i=t(58976),l=t(69984),n=t(38710),s=t(28280),c=t(62318),u=t(32446),h=t(81876),p=t(45902),m=t(49174),y=t(20691),N=t(67217),f=t(85828),g=t(89022);let b=(0,p.HY)({cardinality:m.Ay,baseStats:y.Ay,filteredStats:N.Ay,renderType:f.Ay,isCategorical:g.A});var w=t(5216),x=t(35484),P=t(43462),v=t(44558),A=t(48),_=t(31929),k=t(31874),E=t(26460),C=t(33796);let T=(0,i.U1)({reducer:{ui:l.default,columnMeta:n.Ay,sqlHistory:s.Ay,rowData:c.Ay,viewing:u.Ay,ag:h.Ay,columns:b,derivedColumns:w.Ay,aiQuickActions:x.Ay,histogram:P.Ay,bubblePlot:v.Ay,balanceMap:A.Ay,heatmap:_.Ay,boxPlot:k.Ay,folderTree:E.Ay,handPickedRows:C.Ay}});function R(e){let{children:o}=e,t=(0,r.useRef)(T);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,3265,6527,9838,4496,3785,3029,6542,7358],()=>e(e.s=21783)),_N_E=e.O()}]);