(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[448],{86255:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Explorer",function(){return i(3206)}])},3206:function(e,r,i){"use strict";i.r(r),i.d(r,{__N_SSP:function(){return v},default:function(){return w}});var l=i(40216),n=i(85893),t=i(91992);i(67294);var s=i(2914),a=i(79306),c=i(54410),d=i(60967),o=i(8207),u=i(3119),h=i(356),f=i(95166),j=i(1032),x=i(24920),_=i(97989),g=i(62204);let b=e=>"object"==typeof e&&(void 0===e.data||"object"==typeof e.data),p=(e,r)=>null==e||void 0===e.data||null===e.data?{}:Array.isArray(e.data[r])&&e.data[r].length>0?e.data[r][0]:{};(0,l._L)().registerRenderer("link","DiacomLink",e=>{let{cell:r}=e;return void 0===r.getValue()||""===r.getValue()?(0,n.jsx)("span",{}):(0,n.jsx)("a",{href:"".concat(r.getValue()),target:"_blank",rel:"noreferrer",children:(0,n.jsx)(t.A,{color:"accent.5",size:"md",variant:"filled",children:(0,n.jsx)(s.CkN,{})})})}),(0,l.uQ)().registerRendererCatalog({tableDetails:{fileDetails:e=>{var r;let{id:i,index:s,tableConfig:v,onClose:w}=e,y=null===(r=v.detailsConfig)||void 0===r?void 0:r.idField,{data:C,isLoading:k,isError:N}=(0,_.yP)({query:"query ($filter: JSON) {\n        ".concat(s," (filter: $filter,  accessibility: all) {\n        ").concat(v.fields,"\n        }\n      }"),variables:{filter:{AND:[{IN:{[null!=y?y:0]:[i]}}]}}});if(!y)return(0,n.jsx)(l._U,{message:"idField not configure in Tables Details Config"});if(N)return(0,n.jsx)(l._U,{message:"Error occurred while fetching data"});let T=b(C)?p(C,s):{},m=Object.entries(T).map(e=>{let[r,i]=e;return(0,n.jsxs)(a.i.Tr,{children:[(0,n.jsx)(a.i.Td,{children:(0,n.jsx)(c.x,{fw:"bold",children:r})}),(0,n.jsx)(a.i.Td,{children:"object_id"===r?(0,n.jsx)(d.e,{href:"".concat(_.U4,"/user/data/download/").concat(i||"","?redirect=true"),target:"_blank",children:i||""}):(0,n.jsx)(c.x,{children:i||""})})]},r)});return(0,n.jsxs)(o.K,{children:[(0,n.jsx)(u.f,{visible:k}),(0,n.jsxs)(c.x,{color:"primary.4",children:["Results for ",i]}),(0,n.jsxs)(a.i,{withTableBorder:!0,withColumnBorders:!0,children:[(0,n.jsx)(a.i.Th,{children:(0,n.jsxs)(a.i.Td,{children:[(0,n.jsx)(a.i.Th,{children:"Field"}),(0,n.jsx)(a.i.Th,{children:"Value"})]})}),(0,n.jsx)("tbody",{children:m})]}),(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(f.q,{value:JSON.stringify(T),timeout:2e3,children:e=>{let{copied:r,copy:i}=e;return(0,n.jsx)(j.u,{label:r?"Copied":"Copy",withArrow:!0,position:"right",children:(0,n.jsx)(t.A,{color:r?"accent.4":"gray",onClick:i,children:r?(0,n.jsx)(g.HhX,{size:"1rem"}):(0,n.jsx)(g.Fqs,{size:"1rem"})})})}}),(0,n.jsx)(x.z,{color:"accent.5",onClick:()=>w&&w(i),children:"Close"})]})]})}}});var v=!0,w=l.lz}},function(e){e.O(0,[567,774,179],function(){return e(e.s=86255)}),_N_E=e.O()}]);