"use strict";(self.webpackChunkpiperider_report=self.webpackChunkpiperider_report||[]).push([[836],{6836:function(e,t,r){r.r(t),r.d(t,{default:function(){return R}});var n=r(885),a=r(8735),o=r(8625),i=r(2791),l=r(2915),s=r(8062),c=r(17),m=r(5650),u=r(1573),h=r(2108),d=r(9284),p=r(429),x=r(709),g=r(1892),j=r(6499),b=r(4002),f=r(5761),w=r(184);function R(e){var t=e.data,r=t.tables,R=t.created_at,C=e.columnName,P=e.tableName,S=(0,o.TH)(),y=(0,n.Z)(S,2)[1],D=(0,i.useState)(0),v=(0,n.Z)(D,2),H=v[0],N=v[1],k=(0,x.D8)(R)||"";if(!C||!P)return(0,w.jsx)(s.o,{isSingleReport:!0,time:k,children:(0,w.jsx)(j.J,{text:"No profile data found."})});var I=decodeURIComponent(C),T=decodeURIComponent(P),_=r[T].columns,A=_[I],M=A.type,U=A.histogram,W="1px solid lightgray";return(0,w.jsx)(s.o,{isSingleReport:!0,time:k,maxHeight:u.t4,children:(0,w.jsxs)(a.rj,{width:"inherit",templateColumns:"1fr 2fr",children:[(0,w.jsx)(a.P4,{colSpan:3,children:(0,w.jsx)(b.Q,{routePathToMatch:f.t})}),(0,w.jsx)(a.P4,{overflowY:"scroll",maxHeight:u.t4,children:(0,w.jsx)(d.i,{baseDataColumns:_,currentReport:T,currentColumn:I,onSelect:function(e){var t=e.tableName,r=e.columnName;N(0),y("/tables/".concat(t,"/columns/").concat(r))},singleOnly:!0})}),(0,w.jsxs)(a.rj,{templateColumns:"500px 1fr",templateRows:"5em 1fr 1fr",width:"100%",maxHeight:u.t4,overflowY:"auto",children:[(0,w.jsx)(a.P4,{colSpan:2,rowSpan:1,children:(0,w.jsx)(l.u,{columnDatum:A,maxHeight:"5em",height:"100%",bg:"blue.800",color:"white"})}),(0,w.jsx)(a.P4,{p:10,bg:"gray.50",borderRight:W,children:(0,w.jsx)(c.t,{columnDatum:A,hasAnimation:!0})}),(0,w.jsx)(a.P4,{gridRow:"span 1",minWidth:0,p:9,bg:"gray.50",children:(0,w.jsx)(m.r,{baseColumnDatum:A,hasAnimation:!0,tabIndex:H,onSelectTab:function(e){return N(e)}})}),(0,w.jsx)(a.P4,{gridRow:"span 1",p:9,bg:"gray.50",borderRight:W,children:(0,p.jl)(M)&&(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(g.E,{columnDatum:A})})}),(0,p.hG)(M)&&U&&(0,w.jsx)(a.P4,{gridRow:"span 1",p:9,bg:"gray.50",minWidth:"1px",children:(0,w.jsx)(h.M,{columnDatum:A})})]})]})})}}}]);
//# sourceMappingURL=836.945208d8.chunk.js.map