"use strict";(self.webpackChunkpiperider_report=self.webpackChunkpiperider_report||[]).push([[914],{914:function(e,t,n){n.r(t),n.d(t,{default:function(){return S}});var r=n(885),a=n(8735),l=n(8625),o=n(2791),i=n(2915),s=n(8062),c=n(17),m=n(5650),u=n(9284),p=n(1573),d=n(1892),h=n(2108),j=n(709),x=n(429),f=n(4002),g=n(5761),b=n(6499),C=n(184);function S(e){var t,n,S=e.data,w=S.base,D=w.tables,v=w.created_at,P=S.input,R=P.tables,y=P.created_at,k=e.columnName,H=e.tableName,N=(0,l.TH)(),I=(0,r.Z)(N,2)[1],T=(0,o.useState)(0),_=(0,r.Z)(T,2),M=_[0],W=_[1],A="".concat((0,j.D8)(v)," -> ").concat((0,j.D8)(y));if(!k||!H)return(0,C.jsx)(s.o,{isSingleReport:!1,time:A,children:(0,C.jsx)(b.J,{text:"No profile data found."})});var E=decodeURIComponent(k),G=decodeURIComponent(H),U=(null===(t=D[G])||void 0===t?void 0:t.columns)||{},Y=(null===(n=R[G])||void 0===n?void 0:n.columns)||{},Z=U[E],z=Y[E],B=null!==Z&&void 0!==Z&&Z.type?Z:z,J=(Z||{}).type,Q=(z||{}).type;return(0,C.jsx)(s.o,{isSingleReport:!1,time:A,maxHeight:p.t4,children:(0,C.jsxs)(a.rj,{width:"inherit",templateColumns:"1fr 2fr",children:[(0,C.jsx)(a.P4,{colSpan:3,children:(0,C.jsx)(f.Q,{routePathToMatch:g.t})}),(0,C.jsx)(a.P4,{overflowY:"scroll",maxHeight:p.t4,children:(0,C.jsx)(u.i,{baseDataColumns:U,targetDataColumns:Y,currentReport:G,currentColumn:E,onSelect:function(e){var t=e.tableName,n=e.columnName;W(0),I("/tables/".concat(t,"/columns/").concat(n))}})}),(0,C.jsxs)(a.rj,{templateColumns:"1fr 1fr",templateRows:"5em 3em 1fr 1fr",width:"100%",maxHeight:p.t4,overflowY:"auto",children:[(0,C.jsx)(a.P4,{colSpan:2,rowSpan:1,children:(0,C.jsx)(i.u,{columnDatum:B,maxHeight:"5em",height:"100%",bg:"blue.800",color:"white"})}),(0,C.jsx)(a.P4,{colSpan:2,rowSpan:1,position:"sticky",top:0,children:(0,C.jsx)(a.rj,{templateColumns:"1fr 1fr",h:"100%",children:["Base","Target"].map((function(e,t){return(0,C.jsx)(a.kC,{alignItems:"center",pl:9,bg:"blackAlpha.300",children:(0,C.jsx)(a.xv,{color:"white",fontWeight:"semibold",fontSize:"2xl",children:e})},t)}))})}),(0,C.jsx)(a.P4,{colSpan:2,p:9,bg:"gray.50",children:(0,C.jsxs)(a.rj,{templateColumns:"1fr 1fr",gap:8,minWidth:0,children:[(0,C.jsx)(c.t,{columnDatum:Z}),(0,C.jsx)(c.t,{columnDatum:z})]})}),(0,C.jsx)(a.P4,{colSpan:2,gridRow:"span 1",minWidth:0,p:9,bg:"gray.50",children:(0,C.jsx)(m.r,{baseColumnDatum:Z,targetColumnDatum:z,hasSplitView:!0,hasAnimation:!0,tabIndex:M,onSelectTab:function(e){return W(e)}})}),((0,x.jl)(J)||(0,x.jl)(Q))&&(0,C.jsx)(a.P4,{colSpan:2,gridRow:"span 1",p:9,bg:"gray.50",children:(0,C.jsxs)(a.rj,{templateColumns:"1fr 1fr",gap:8,children:[(0,C.jsx)(d.E,{columnDatum:Z}),(0,C.jsx)(d.E,{columnDatum:z})]})}),((0,x.hG)(J)||(0,x.hG)(Q))&&(0,C.jsx)(a.P4,{colSpan:2,gridRow:"span 1",p:9,bg:"gray.50",children:(0,C.jsxs)(a.rj,{templateColumns:"1fr 1fr",gap:8,children:[(0,C.jsx)(h.M,{columnDatum:Z}),(0,C.jsx)(h.M,{columnDatum:z})]})})]})]})})}}}]);
//# sourceMappingURL=914.035c9fb2.chunk.js.map