forked from duneanalytics/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
2143-aa9631b4fcc3a0cf.js.download
2 lines (2 loc) · 22.4 KB
/
2143-aa9631b4fcc3a0cf.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2143],{35937:function(e,t,n){var i=n(29932),r=n(67206),s=n(63012),a=n(46904);e.exports=function(e,t){if(null==e)return{};var n=i(a(e),function(e){return[e]});return t=r(t),s(e,n,function(e,n){return t(e,n[0])})}},63914:function(e,t,n){"use strict";n.d(t,{V:function(){return ef}});var i=n(85893),r=n(31821),s=n(37242),a=n(32546),l=n(77251),o=n(41499),c=n(67294),d=n(95121),u=n.n(d),h=n(15490),p=n(42665),b=n(43953),g=n(61451),v=n(4564),m=n(86634),x=n(21154),f=n(7395),j=n(48884),C=n.n(j),_=n(25675),y=n.n(_),w={src:"/_next/static/media/Library_Empty_Data.d58e22cc.png",height:732,width:1037,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAD1BMVEX0YD1MaXHyXT32YD32Xz11d3CvAAAABXRSTlMOACQ/YSB0LR4AAAAJcEhZcwAAITgAACE4AUWWMWAAAAAnSURBVHicLcqxDQAwCMRA+2H/mSMgkosrjAIqsh2qBsHuRVIZ/PkBBQkANQQp/AoAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6};let k=e=>{var t;let{result:n,renderTables:r}=e,[s,a]=(0,c.useState)(!1),l=null===(t=n.data)||void 0===t?void 0:t.catalogTables.results;return!l&&n.loading?(0,i.jsx)("section",{className:u().loadingContainer,children:(0,i.jsx)(h.g,{})}):(0,i.jsxs)(i.Fragment,{children:[(null==l?void 0:l.length)===0?(0,i.jsx)(f.u,{title:"No table submissions yet!",description:"When you submit tables they will show up here.",illustration:(0,i.jsx)(y(),{alt:"",src:w,className:C().emptyStateImage}),actions:(0,i.jsx)(g.z,{theme:"secondary",size:"M",onClick:()=>a(!0),children:"Upload new table"})}):(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)("section",{children:r(l)}),(0,i.jsx)("section",{children:(0,i.jsx)(p.P,{level:"info",title:"Bring your data into Dune",dismissable:!1,actions:(0,i.jsxs)(x.V,{size:"M",theme:"primary",onClick:()=>a(!0),children:["Upload data table ",(0,i.jsx)(b.IconArrowRight,{})]})})})]}),(0,i.jsx)(v.L9,{label:"Upload a dataset",size:"M",content:(0,i.jsx)(m.y,{onDismiss:()=>a(!1)}),isOpen:s,onDismiss:void 0})]})};var M=n(59865),N=n.n(M),A=n(1801),T=n(14267),D=n(61192),S=n(3508),B=n(85361),L=n(32613),z=n(54173),V=n(94184),I=n.n(V),E=n(79574),R=n.n(E),U=n(45186),O=n(10933),P=n(70342),Z=n(31544),H=n.n(Z),q=n(82729),F=n(78718),G=n.n(F),X=n(36986),K=n(76138),$=n(95260),W=n(57903),Y=n(39137),J=n(84937);function Q(){let e=(0,q._)(["\n mutation DeleteUploadedTable($input: DeleteUploadedTableInput!) {\n deleteUploadedTable(input: $input) {\n id\n }\n }\n"]);return Q=function(){return e},e}let ee=e=>{let{table:t,onComplete:n}=e,{session:i,activeContext:r}=(0,X.a)(),[s,a]=(0,c.useState)(!1);return{onDelete:()=>(a(!0),K.bj.mutate({context:{session:i},mutation:J.fph,variables:{input:{catalog:t.catalogName,schema:t.schemaName,name:t.tableName,contextOwner:G()(r,["id","type"])}}}).then(()=>{(0,$.M)()}).catch(e=>{(0,W.Bh)({level:"error",title:"Failed to delete dataset",description:e.message})}).finally(()=>{a(!1),n()})),isLoading:s}};(0,Y.Z)(Q());let et=e=>{let{onDismiss:t,table:n}=e,{onDelete:r,isLoading:s}=ee({table:n,onComplete:t});return(0,i.jsxs)("div",{className:H().body,children:[(0,i.jsx)("div",{className:H().header,children:(0,i.jsx)("div",{className:H().titleRow,children:(0,i.jsx)("h2",{children:"Deleting a dataset will break all queries and dashboards that rely on it."})})}),(0,i.jsxs)("div",{className:H().buttons,children:[(0,i.jsx)(g.z,{size:"M",theme:"tertiary",onClick:t,children:"Cancel"}),(0,i.jsx)(g.z,{size:"M",theme:"danger",onClick:r,disabled:s,children:"Delete dataset"})]})]})};function en(){let e=(0,q._)(["\nmutation UpdateTableAuthorizationMetadata($input: UpdateTableAuthorizationMetadataInput!) {\n updateTableAuthorizationMetadata(input: $input) {\n ok\n }\n}\n"]);return en=function(){return e},e}let ei=e=>{let{table:t,onComplete:n}=e,{session:i,activeContext:r}=(0,X.a)(),[s,a]=(0,c.useState)(!1);return{onChangeDatasetVisibility:e=>{a(!0),K.bj.mutate({context:{session:i},mutation:J.hVu,variables:{input:{catalog:t.catalogName,schema:t.schemaName,name:t.tableName,contextOwner:G()(r,["id","type"]),authorizationMetadata:{isPrivate:e}}}}).then(()=>{(0,$.M)()}).catch(e=>{(0,W.Bh)({level:"error",title:"Failed to change dataset visibility",description:e.message})}).finally(()=>{n(),a(!1)})},isLoading:s}};(0,Y.Z)(en());let er=e=>{let{onDismiss:t,table:n}=e,{onChangeDatasetVisibility:r,isLoading:s}=ei({table:n,onComplete:t});return(0,i.jsxs)("div",{className:H().body,children:[(0,i.jsx)("div",{className:H().header,children:(0,i.jsx)("div",{className:H().titleRow,children:(0,i.jsx)("h2",{children:n.isPrivate?"Turning a dataset public makes it usable for the entire Dune community.":"Making a dataset private will break queries outside this workspace."})})}),(0,i.jsxs)("div",{className:H().buttons,children:[(0,i.jsx)(g.z,{size:"M",theme:"tertiary",onClick:t,children:"Cancel"}),(0,i.jsxs)(g.z,{size:"M",theme:"primary",onClick:()=>r(!n.isPrivate),disabled:s,children:["Make dataset ",n.isPrivate?"public":"private"]})]})]})};var es=n(56254),ea=n(47730);let el=e=>{let{table:t}=e,n=(0,B._0)(),[r,s]=(0,c.useState)(!1),[a,l]=(0,c.useState)(!1),[o,d]=(0,c.useState)(!1);if(new Date(t.createdAt)<new Date("2023-10-03T00:00:00.000Z"))return(0,i.jsx)(eo,{tooltip:(0,i.jsx)(i.Fragment,{children:"This dataset cannot be edited because it is too old."})});if("dune"!==t.catalogName)return(0,i.jsx)(eo,{tooltip:(0,i.jsxs)(i.Fragment,{children:["This dataset cannot be edited because it not in the"," ",(0,i.jsx)("code",{children:'"dune"'})," catalog."]})});let u=(0,es.o)({serviceTierName:null==n?void 0:n.serviceTier.name,isCustomPlan:null==n?void 0:n.serviceTier.hasCustomPlan}),h=!t.isPrivate&&!u,p=()=>{h||(d(!0),s(!1))},b=()=>{l(!0),s(!1)};return(0,i.jsxs)("td",{className:I()(R().settings,r&&R().opened),children:[(0,i.jsx)(U.r,{isOpen:r,setIsOpen:s,position:"below-align-right",content:()=>(0,i.jsx)(L.s_,{children:(0,i.jsxs)(L.$0,{title:"",children:[(0,i.jsx)(L.ys,{onClick:p,nestedButtonsOrLinks:h&&(0,i.jsx)(z.A,{theme:"secondary-light",size:"XS",href:"/pricing",children:"Upgrade plan"}),children:(0,i.jsxs)("span",{className:I()(h&&R().disabled),children:["Make dataset ",t.isPrivate?"public":"private"]})}),(0,i.jsx)(L.ys,{onClick:b,children:(0,i.jsx)("span",{className:R().linkSecondary,children:"Delete dataset"})})]})}),children:(0,i.jsx)(O.h,{theme:"ghost",size:"S",children:(0,i.jsx)(P.IconThreeDots,{})})}),(0,i.jsx)(v.L9,{size:"M",label:"Delete dataset",content:(0,i.jsx)(et,{table:t,onDismiss:()=>l(!1)}),isOpen:a,onDismiss:()=>l(!1)}),(0,i.jsx)(v.L9,{size:"M",label:"Change visibility",content:(0,i.jsx)(er,{table:t,onDismiss:()=>d(!1)}),isOpen:o,onDismiss:()=>d(!1)})]})};function eo(e){let{tooltip:t}=e;return(0,i.jsx)("td",{className:I()(R().settings),children:(0,i.jsx)(ea.u,{position:"above-center",label:t,children:(0,i.jsx)(O.h,{theme:"ghost",size:"S",disabled:!0,children:(0,i.jsx)(P.IconThreeDots,{})})})})}var ec=n(89579);let ed=e=>{let{uploadedTables:t}=e,n=(0,X.a)().activeContext.permissions.canEditContent;return(0,i.jsxs)(S.i.$0,{className:N().table,children:[(0,i.jsx)(S.i.Fb,{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:"Table Name"}),(0,i.jsx)("td",{className:N().alignRight,children:"Size"}),(0,i.jsx)("td",{})]})}),(0,i.jsx)(S.i.uT,{children:t.map(e=>{let t=e.isPrivate?eh:eu;return(0,i.jsxs)("tr",{children:[(0,i.jsxs)("td",{className:N().tableName,children:[(0,i.jsx)("strong",{children:e.fullName}),t]}),(0,i.jsx)("td",{className:N().alignRight,children:(0,i.jsx)(A.C,{color:"neutral",variant:"filled",size:"L",inline:!0,children:(0,ec.M)({sizeInBytes:e.tableSizeBytes})})}),n?(0,i.jsx)(el,{table:e}):(0,i.jsx)(eo,{tooltip:"You don't have permission to edit this dataset."})]},e.id)})})]})},eu=(0,i.jsxs)(A.C,{size:"M",color:"info",variant:"filled",children:[(0,i.jsx)(T.IconGlobe,{}),"Public"]}),eh=(0,i.jsxs)(A.C,{size:"M",color:"warning",variant:"filled",children:[(0,i.jsx)(D.IconLockSimple,{}),"Private"]});var ep=n(51681),eb=n(95589),eg=n(41042),ev=n(69339),em=n(18035),ex=n(87257);function ef(){let e=(0,eb.p)({onlyOwned:!0,searchString:"",tableTypes:[J.Ndb.UserUploadedTable]}),t=(0,ev.L)();switch((0,eg.e)(t.value,{getUrl:e=>(0,em.Y)(e)+"/data"}),t.status){case"LOADING":return(0,i.jsx)(s.h,{});case"INVALID":return(0,i.jsx)(ex.C,{urlContext:t.invalidValue})}let n=(0,i.jsx)(o.E,{activePage:"Data"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.yG,{title:"Data"}),(0,i.jsxs)(a.T3,{children:[(0,i.jsx)(a.h4,{renderLibraryMobileMenu:()=>n}),(0,i.jsxs)(a.or,{children:[(0,i.jsx)(l.im,{children:n}),(0,i.jsx)(a.JH,{children:(0,i.jsx)(a.Kb,{children:(0,i.jsx)(k,{result:e,renderTables:t=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ed,{uploadedTables:t}),(0,i.jsx)(ep.df,{onChange:t=>{var n;t&&e.data&&e.fetchMore({variables:{input:{...null===(n=e.variables)||void 0===n?void 0:n.input,offset:e.data.catalogTables.nextOffset}}})},children:(0,i.jsx)("div",{})})]})})})})]})]})]})}},95589:function(e,t,n){"use strict";n.d(t,{p:function(){return p}});var i=n(82729),r=n(78718),s=n.n(r),a=n(39137),l=n(57831),o=n(85361),c=n(24357),d=n(84937),u=n(91902);function h(){let e=(0,i._)(["\n query CatalogTables($input: CatalogTablesInput!) {\n catalogTables(input: $input) {\n nextOffset\n results {\n ...CatalogTable\n }\n }\n }\n"]);return h=function(){return e},e}function p(e){var t;let n=(0,l.kP)(),i=(0,o._0)(),r=(0,u.KL)(),a=null!==(t=e.searchString)&&void 0!==t?t:"";return(0,d.W8O)({skip:!n||!i,context:{session:n},variables:{input:{limit:25,offset:0,contextOwner:s()(i,["id","type"]),filters:{...e,searchString:(0,c.c)({delayMs:300},a)}}},notifyOnNetworkStatusChange:!0,onCompleted:e=>{r(a,null==e?void 0:e.catalogTables.results.length)}})}(0,a.Z)(h())},57314:function(e,t,n){"use strict";n.d(t,{cD:function(){return o},AX:function(){return l},Bq:function(){return d}});var i=n(85893),r=n(11163),s=n(41664),a=n.n(s);let l=e=>{let{children:t,query:n,...s}=e,l=(0,r.useRouter)();return(0,i.jsx)(a(),{...s,href:{query:{...l.query,...n}},shallow:!0,children:t})},o={id:null,category:null,namespace:null,contract:null,blockchains:null,catalog:null,schema:null},c={essentials:"essentials",canonical:"canonical",decoded_project:"decoded_project",abstraction:"abstraction",third_party_data:"third_party_data",materialized_views:"materialized_views",uploaded_data:"uploaded_data",favorites:"favorites",on_this_query:"on_this_query"};function d(e){if("string"==typeof e&&e in c)return c[e]}},91902:function(e,t,n){"use strict";n.d(t,{Bt:function(){return v},KL:function(){return g},_F:function(){return f},i3:function(){return m},mC:function(){return j},sR:function(){return x},xe:function(){return p},yn:function(){return C}});var i=n(35937),r=n.n(i),s=n(11163),a=n(67294),l=n(45172),o=n(46367),c=n(57314),d=n(78718),u=n.n(d);let h=e=>{switch(e.__typename){case"ABI":return"ABI";case"CatalogTable":return"Catalog Table";default:return"Table"}},p=e=>{l.Z.trackEvent("DataExplorer Category Clicked",{category:e})},b=()=>{var e;let t=(0,s.useRouter)(),n=u()(t.query,Object.keys(c.cD));return{...n,selected_blockchain:null!==(e=t.query.blockchain)&&void 0!==e&&e}},g=()=>{let e=b();return(t,n)=>{l.Z.trackEvent(""!==t?"DataExplorer Search":"DataExplorer Browse",{view:e,search_string:t,number_of_results:null!=n?n:0})}},v=e=>{let{table:t,searchString:n}=e,i=b();(0,a.useEffect)(()=>{(0,o.n)(t)&&l.Z.trackEvent("DataExplorer Viewed",{type:h(t),view:i,id:t.id,number_of_columns:t.columns.length})},[i,t]),(0,a.useEffect)(()=>{(0,o.n)(t)&&""!==n&&l.Z.trackEvent("DataExplorer Searched",{type:h(t),view:i,id:t.id,number_of_columns:t.columns.length,search_string:n})},[i,t,n])},m=e=>{let t=b();return n=>{let{insertedText:i,id:r}=n;l.Z.trackEvent("DataExplorer Insert Clicked",{view:t,id:null!=r&&r,inserted_text:i,type:e})}},x=e=>{let{id:t,fullName:n}=e,i=b();return(0,a.useEffect)(()=>{l.Z.trackEvent("DataExplorer Table Preview Clicked",{view:i,id:t,full_name:n})},[])},f=()=>{let e=b();return t=>{var n;let{linkQueryParameters:i,index:s}=t,a=r()(i,o.n);l.Z.trackEvent("DataExplorer Item Clicked",{view:e,link:a,parent_category:null!==(n=e.category)&&void 0!==n?n:"home",index:s})}},j=()=>{let e=b();return t=>{let{fullName:n}=t;l.Z.trackEvent("DataExplorer Table Favorited",{view:e,full_name:n})}},C=()=>{let e=b();return t=>{let{fullName:n}=t;l.Z.trackEvent("DataExplorer Table Unfavorited",{view:e,full_name:n})}}},43953:function(e,t,n){"use strict";n.r(t),n.d(t,{IconArrowRight:function(){return r}});var i=n(85893);function r(){return(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 7.72386 1.22386 7.5 1.5 7.5L13.2929 7.5L10.1464 4.35355C9.95118 4.15829 9.95118 3.84171 10.1464 3.64645C10.3417 3.45118 10.6583 3.45118 10.8536 3.64645L14.8536 7.64645C15.0488 7.84171 15.0488 8.15829 14.8536 8.35355L10.8536 12.3536C10.6583 12.5488 10.3417 12.5488 10.1464 12.3536C9.95118 12.1583 9.95118 11.8417 10.1464 11.6464L13.2929 8.5H1.5C1.22386 8.5 1 8.27614 1 8Z",fill:"currentColor"})})}},61018:function(e,t,n){"use strict";n.r(t),n.d(t,{IconBellRing:function(){return r}});var i=n(85893);let r=()=>(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M3 12H13",stroke:"currentColor",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M4 8C4 5.79086 5.79086 4 8 4V4C10.2091 4 12 5.79086 12 8V12H4V8Z",stroke:"currentColor"}),(0,i.jsx)("path",{d:"M6.98122 14.435C7.26281 14.7166 7.6024 14.8574 8 14.8574C8.3976 14.8574 8.73719 14.7166 9.01878 14.435C9.30037 14.1535 9.44116 13.8139 9.44116 13.4163H6.55884C6.55884 13.8139 6.69963 14.1535 6.98122 14.435Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M7 3C7 2.44772 7.44772 2 8 2C8.55228 2 9 2.44772 9 3V4H7V3Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M2.16426 5.15975C2.77213 3.89512 3.75161 2.80199 4.9955 1.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.9955 5.15981C13.3877 3.89518 12.4082 2.80205 11.1643 2.00005",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})},5505:function(e,t,n){"use strict";n.r(t),n.d(t,{IconClockHistory:function(){return r}});var i=n(85893);function r(){return(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M3.52779 4C4.62643 2.7725 6.223 2 8 2C11.3137 2 14 4.68629 14 8C14 9.52167 13.4335 10.911 12.5 11.9687",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"2 2"}),(0,i.jsx)("path",{d:"M3.52779 4C2.57771 5.06151 2 6.46329 2 8C2 11.3137 4.68629 14 8 14C9.79204 14 11.4006 13.2144 12.5 11.9687",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8 5V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M10.6 9.5L8 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}},14267:function(e,t,n){"use strict";n.r(t),n.d(t,{IconGlobe:function(){return r}});var i=n(85893);let r=()=>(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5M15.5 8C15.5 3.85786 12.1421 0.5 8 0.5M15.5 8H0.5M8 15.5C3.85786 15.5 0.5 12.1421 0.5 8M8 15.5C10.2091 15.5 12 12.1421 12 8C12 3.85786 10.2091 0.5 8 0.5M8 15.5C5.79086 15.5 4 12.1421 4 8C4 3.85786 5.79086 0.5 8 0.5M8 15.5V0.5M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5M1.36505 4.5H14.635M1.36505 11.5H14.635",stroke:"currentColor"})})},61192:function(e,t,n){"use strict";n.r(t),n.d(t,{IconLockSimple:function(){return r}});var i=n(85893);let r=e=>{let{className:t}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"currentColor",viewBox:"0 0 256 256",className:t,children:(0,i.jsx)("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z"})})}},3508:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var i={};n.r(i),n.d(i,{uT:function(){return p},Fb:function(){return h},$0:function(){return u}});var r=n(85893),s=n(48268),a=n.n(s);n(67294);var l=n(94184),o=n.n(l),c=n(61451),d=n(80949);let u=e=>(0,r.jsxs)("div",{className:o()(a().container,e.className),children:[(0,r.jsx)("div",{className:a().scroll,children:(0,r.jsx)("table",{className:a().table,children:e.children})}),void 0!==e.pagination&&e.pagination.maxPageNumber>1&&(0,r.jsx)(b,{...e.pagination})]}),h=e=>{let{className:t,children:n}=e;return(0,r.jsx)("thead",{className:t,children:n})},p=e=>{let{className:t,children:n}=e;return(0,r.jsx)("tbody",{className:t,children:n})},b=e=>{let{paginationSize:t=3}=e,n=Math.max(e.activePageNumber-Math.max(Math.ceil(t/2)-(e.maxPageNumber-e.activePageNumber),1),1),i=Math.min(n+(t-1),e.maxPageNumber),s=[...Array(i-n+1)].reduce((e,t,i)=>(e.push(i+n),e),[]);return(0,r.jsxs)("div",{className:o()(a().pagination),children:[(0,r.jsx)(c.z,{theme:"ghost",size:"S",disabled:1===e.activePageNumber,className:o()(a().paginationBtn),onClick:()=>e.onChange(e.activePageNumber-1),children:(0,r.jsx)(d.J,{icon:"arrow-left"})}),s.map(t=>(0,r.jsx)(c.z,{theme:e.activePageNumber===t?"tertiary":"ghost",size:"S",onClick:()=>e.onChange(t),className:o()(a().paginationBtn),children:t},t)),(0,r.jsx)(c.z,{theme:"ghost",size:"S",disabled:e.activePageNumber===e.maxPageNumber,className:o()(a().paginationBtn),onClick:()=>e.onChange(e.activePageNumber+1),children:(0,r.jsx)(d.J,{icon:"arrow-right"})})]})}},89579:function(e,t,n){"use strict";n.d(t,{M:function(){return l},j:function(){return a}});var i=n(36458);let r=["GB","MB","KB"],s=(e,t)=>{switch(t){case"KB":return new i.O(e).shiftedBy(-3);case"MB":return new i.O(e).shiftedBy(-6);case"GB":return new i.O(e).shiftedBy(-9);default:return new i.O(e)}},a=e=>{let{sizeInBytes:t,unit:n}=e;if(void 0!==n)return{size:s(t,n),unit:n};for(let e of r)if(s(t,e).gte(1)||"KB"===e)return{size:s(t,e),unit:e};return{size:s(t,"KB"),unit:"KB"}},l=e=>{let{sizeInBytes:t,unit:n,maximumFractionDigits:i=2}=e,r=void 0===n?a({sizeInBytes:t}):{unit:n,size:s(t,n)};return"".concat(r.size.dp(i).toFormat()," ").concat(r.unit)}},79574:function(e){e.exports={settings:"DatasetSettings_settings__0q1fw",opened:"DatasetSettings_opened__Xghtf",disabled:"DatasetSettings_disabled__zQZ8e",linkSecondary:"DatasetSettings_linkSecondary__rsSBI"}},59865:function(e){e.exports={table:"UploadedTablesList_table__sUIyb",alignRight:"UploadedTablesList_alignRight__Q_TiO",truncated:"UploadedTablesList_truncated__J_u0X",status:"UploadedTablesList_status___pRGh",statusGreen:"UploadedTablesList_statusGreen__EX4X2",statusRed:"UploadedTablesList_statusRed__Ym2R3",tableName:"UploadedTablesList_tableName__aesLk",actionBtn:"UploadedTablesList_actionBtn__iXs4p"}},95121:function(e){e.exports={emptyState:"UploadedTablesSection_emptyState__g5yk4",loadingContainer:"UploadedTablesSection_loadingContainer__kGINZ"}},48268:function(e){e.exports={container:"Table_container__985vz",scroll:"Table_scroll__c0SS4",table:"Table_table__Dsg2F",pagination:"Table_pagination__VKyB8",paginationBtn:"Table_paginationBtn__MjutC"}},51681:function(e,t,n){"use strict";n.d(t,{YD:function(){return p},df:function(){return h}});var i=n(67294),r=Object.defineProperty,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(s(e,"symbol"!=typeof t?t+"":t,n),n),l=new Map,o=new WeakMap,c=0,d=void 0;function u(e,t,n={},i=d){if(void 0===window.IntersectionObserver&&void 0!==i){let r=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:r,observer:s,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(o.has(n)||(c+=1,o.set(n,c.toString())),o.get(n)):"0":e[t]}`}).toString(),n=l.get(t);if(!n){let i;let r=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var n;let s=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(n=r.get(t.target))||n.forEach(e=>{e(s,t)})})},e);i=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:r},l.set(t,n)}return n}(n),u=a.get(e)||[];return a.has(e)||a.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(a.delete(e),s.unobserve(e)),0===a.size&&(s.disconnect(),l.delete(r))}}var h=class extends i.Component{constructor(e){super(e),a(this,"node",null),a(this,"_unobserveCb",null),a(this,"handleNode",e=>{!this.node||(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),a(this,"handleChange",(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"!=typeof this.props.children||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:n,trackVisibility:i,delay:r,fallbackInView:s}=this.props;this._unobserveCb=u(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:i,delay:r},s)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:n}=this.state;return e({inView:t,entry:n,ref:this.handleNode})}let{as:t,triggerOnce:n,threshold:r,root:s,rootMargin:a,onChange:l,skip:o,trackVisibility:c,delay:d,initialInView:u,fallbackInView:h,...p}=this.props;return i.createElement(t||"div",{ref:this.handleNode,...p},e)}};function p({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:s,triggerOnce:a,skip:l,initialInView:o,fallbackInView:c,onChange:d}={}){var h;let[p,b]=i.useState(null),g=i.useRef(),[v,m]=i.useState({inView:!!o,entry:void 0});g.current=d,i.useEffect(()=>{let i;if(!l&&p)return i=u(p,(e,t)=>{m({inView:e,entry:t}),g.current&&g.current(e,t),t.isIntersecting&&a&&i&&(i(),i=void 0)},{root:s,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,p,s,r,a,l,n,c,t]);let x=null==(h=v.entry)?void 0:h.target,f=i.useRef();p||!x||a||l||f.current===x||(f.current=x,m({inView:!!o,entry:void 0}));let j=[b,v.inView,v.entry];return j.ref=j[0],j.inView=j[1],j.entry=j[2],j}}}]);
//# sourceMappingURL=2143-aa9631b4fcc3a0cf.js.map