All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.EntityRouter.9bf1d89926b9972b5b0a.js Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[4579],{95806:function(e,t,n){var a=n(8081),r=n.n(a),i=n(23645),l=n.n(i)()(r());l.push([e.id,'/*\n *  Copyright 2023 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n.version-page-container .ant-tabs-nav {\n  margin: 0 !important;\n  padding: 0 20px;\n}\n',""]),t.Z=l},23954:function(e,t,n){n.r(t),n.d(t,{default:function(){return tt}});var a=n(67294),r=n(15137),i=n(62761),l=n(70655),s=n(96486),c=n(68432),o=n(71230),u=n(15746),m=n(19650),d=n(25499),p=n(94184),E=n.n(p),y=n(58369),f=n(64632),v=n(90058),N=n(902),g=n(79618),D=n(57081),Z=n(35850),T=n(75705),h=n(38105),S=n(90002),A=n(43745),C=n(78153),b=n(10988),P=function(e){var t,n=e.version,p=e.currentVersionData,P=e.isVersionLoading,M=e.owners,O=e.tier,R=e.slashedApiEndpointName,w=e.versionList,I=e.backHandler,k=e.versionHandler,L=e.entityPermissions,_=e.domain,x=(0,c.$)().t,V=(0,r.k6)(),H=(0,r.UO)().tab,U=(0,l.CR)((0,a.useState)(p.changeDescription),2),B=U[0],F=U[1],Y=(0,a.useMemo)((function(){return(0,N.KW)(B,M,O,_)}),[B,M,O,_]),K=Y.ownerDisplayName,J=Y.ownerRef,z=Y.tierDisplayName,Q=Y.domainDisplayName;(0,a.useEffect)((function(){F(p.changeDescription)}),[p]);var W=(0,a.useMemo)((function(){return(0,N.o2)(p,B)}),[p,B]),q=(0,a.useMemo)((function(){return(0,N._Y)(B,y.Sn.DESCRIPTION,p.description)}),[p,B]),G=(0,a.useMemo)((function(){return(0,N._Y)(B,y.Sn.DISPLAYNAME,p.displayName)}),[p,B]),j=(0,a.useMemo)((function(){var e;return[{key:f.M8.SCHEMA,label:a.createElement(T.Z,{id:f.M8.SCHEMA,name:x("label.schema")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:q,entityType:f.py.API_ENDPOINT,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(b.Z,{isVersionView:!0,apiEndpointDetails:p,permissions:L,onThreadLinkSelect:s.noop})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:_,dataProducts:null!==(e=null==p?void 0:p.dataProducts)&&void 0!==e?e:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.API_ENDPOINT,key:e,permission:!1,selectedTags:W,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:x("label.custom-property-plural")}),children:a.createElement("div",{className:"p-md"},a.createElement(g.t,{isVersionView:!0,entityDetails:p,entityType:f.py.API_ENDPOINT,hasEditAccess:!1,hasPermission:L.ViewAll}))}]}),[q,p,L,W]);return a.createElement(a.Fragment,null,P?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:R,currentVersionData:p,deleted:Boolean(null==p?void 0:p.deleted),displayName:G,domainDisplayName:Q,entityType:f.py.API_ENDPOINT,ownerDisplayName:K,ownerRef:J,serviceName:null===(t=p.service)||void 0===t?void 0:t.name,tierDisplayName:z,version:n,onVersionClick:I})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=H?H:f.M8.SCHEMA,items:j,onChange:function(e){var t;V.push((0,i.h4)(f.py.API_ENDPOINT,null!==(t=p.fullyQualifiedName)&&void 0!==t?t:"",String(n),e))}})))),a.createElement(A.Z,{currentVersion:n,entityType:f.py.API_ENDPOINT,versionHandler:k,versionList:w,onBack:I}))},M=n(26396),O=n(73213),R=n(93895),w=n(94199),I=n(25213),k=n(79317),L=n(24671),_=n(80539),x=n(38333),V=n(89368),H=n(38048),U=n(59817),B=n(97066),F=function(e){var t=e.columnName,n=e.columns,r=e.joins,m=e.tableConstraints,d=e.addedColumnConstraintDiffs,p=e.deletedColumnConstraintDiffs,E=e.addedTableConstraintDiffs,y=e.deletedTableConstraintDiffs,f=(0,l.CR)((0,a.useState)([]),2),v=f[0],N=f[1],g=(0,c.$)().t,D=(0,l.CR)((0,a.useState)(""),2),Z=D[0],T=D[1],h=(0,a.useMemo)((function(){return(0,x._l)(v)}),[v]),S=(0,a.useCallback)((function(e,t){var n,r,i,c,o=null==d?void 0:d.find((function(t){var n;return null===(n=t.name)||void 0===n?void 0:n.includes(e)})),u=null==p?void 0:p.find((function(t){var n;return null===(n=t.name)||void 0===n?void 0:n.includes(e)}));null==E||E.forEach((function(t){var n=JSON.parse(t.newValue);null==n||n.forEach((function(t){var n;(null===(n=t.columns)||void 0===n?void 0:n.includes(e))&&(i=(0,l.ev)((0,l.ev)([],(0,l.CR)(null!=i?i:[])),[t]))}))})),null==y||y.forEach((function(t){var n=JSON.parse(t.oldValue);null==n||n.forEach((function(t){var n;(null===(n=t.columns)||void 0===n?void 0:n.includes(e))&&(c=(0,l.ev)((0,l.ev)([],(0,l.CR)(null!=c?c:[])),[t]))}))}));var f,v,N=(0,s.isUndefined)(i)?m:void 0;return f=(0,x.iq)({columnName:e,columnConstraint:null!==(n=null==o?void 0:o.newValue)&&void 0!==n?n:t.constraint,tableConstraints:null!=i?i:N,isColumnConstraintAdded:!(0,s.isUndefined)(o),isTableConstraintAdded:!(0,s.isUndefined)(i)}),v=(0,x.iq)({columnName:e,columnConstraint:null==u?void 0:u.oldValue,tableConstraints:c,isColumnConstraintAdded:!1,isColumnConstraintDeleted:!(0,s.isUndefined)(u),isTableConstraintDeleted:!(0,s.isUndefined)(c)}),a.createElement("div",{className:"d-inline-flex flex-column hover-icon-group w-full"},a.createElement("div",{className:"d-inline-flex"},v,f,a.createElement(H.Z,{markdown:e})),(0,s.isEmpty)(t.displayName)?null:a.createElement(H.Z,{markdown:null!==(r=t.displayName)&&void 0!==r?r:""}))}),[n,m,d,p,E,y]),A=(0,a.useMemo)((function(){return[{title:g("label.name"),dataIndex:"name",key:"name",accessor:"name",width:200,render:S},{title:g("label.type"),dataIndex:"dataTypeDisplay",key:"dataTypeDisplay",accessor:"dataTypeDisplay",ellipsis:!0,width:200,render:function(e){var t,n;return e?a.createElement(w.Z,{title:a.createElement(H.Z,{markdown:null!==(t=null==e?void 0:e.toLowerCase())&&void 0!==t?t:"",textVariant:"white"})},a.createElement("div",{className:"cursor-pointer"},a.createElement(H.Z,{markdown:null!==(n=null==e?void 0:e.toLowerCase())&&void 0!==n?n:""}))):i.lH}},{title:g("label.description"),dataIndex:"description",key:"description",accessor:"description",width:400,render:function(e){return e?a.createElement(a.Fragment,null,a.createElement(H.Z,{markdown:e}),(0,L.R1)(t,null!=r?r:[],g("label.frequently-joined-column-plural"))):a.createElement("span",{className:"text-grey-muted"},g("label.no-entity",{entity:g("label.description")}))}},{title:g("label.tag-plural"),dataIndex:"tags",key:"tags",accessor:"tags",width:272,render:function(e){return a.createElement(B.Z,{sizeCap:-1,tags:(0,_.dG)(null!=e?e:[]).Classification})}},{title:g("label.glossary-term-plural"),dataIndex:"tags",key:"tags",accessor:"tags",width:272,render:function(e){return a.createElement(B.Z,{sizeCap:-1,tags:(0,_.dG)(null!=e?e:[]).Glossary})}}]}),[t,r,h,S]);return(0,a.useEffect)((function(){if(Z){var e=(0,L.Ut)(n,Z);N(e)}else N(n)}),[Z,n]),a.createElement(o.Z,null,a.createElement(u.Z,null,a.createElement(U.Z,{placeholder:g("message.find-in-table")+"...",searchValue:Z,typingInterval:500,onSearch:function(e){T(e)}})),a.createElement(u.Z,null,a.createElement(I.Z,{bordered:!0,columns:A,"data-testid":"entity-table",dataSource:h,expandable:(0,l.pi)((0,l.pi)({},(0,x.Bn)()),{defaultExpandAllRows:!0}),key:""+String(h),locale:{emptyText:a.createElement(V.Z,null)},pagination:!1,rowKey:"name",scroll:k.K,size:"small"})))},Y=function(e){var t,n,p=e.version,b=e.currentVersionData,P=e.isVersionLoading,M=e.owners,w=e.domain,I=e.dataProducts,k=e.tier,L=e.breadCrumbList,_=e.versionList,x=e.deleted,V=void 0!==x&&x,H=e.backHandler,U=e.versionHandler,B=e.entityPermissions,Y=(0,c.$)().t,K=(0,r.k6)(),J=(0,r.UO)().tab,z=(0,l.CR)((0,a.useState)(b.changeDescription),2),Q=z[0],W=z[1],q=(0,a.useMemo)((function(){var e;return null!==(e=b.fullyQualifiedName)&&void 0!==e?e:""}),[null!==(t=b.fullyQualifiedName)&&void 0!==t?t:""]),G=(0,a.useMemo)((function(){return(0,N.KW)(Q,M,k,w)}),[Q,M,k,w]),j=G.ownerDisplayName,$=G.ownerRef,X=G.tierDisplayName,ee=G.domainDisplayName,te=(0,a.useMemo)((function(){var e,t=(0,s.cloneDeep)(null===(e=b.dataModel)||void 0===e?void 0:e.columns);return(0,N.xf)(Q,t,!0)}),[b,Q]);(0,a.useEffect)((function(){W(b.changeDescription)}),[b]);var ne=(0,a.useMemo)((function(){return(0,N.o2)(b,Q)}),[b,Q]),ae=(0,a.useMemo)((function(){return(0,N._Y)(Q,y.Sn.DESCRIPTION,b.description)}),[b,Q]),re=(0,a.useMemo)((function(){return(0,N._Y)(Q,y.Sn.DISPLAYNAME,b.displayName)}),[b,Q]),ie=(0,a.useMemo)((function(){return(0,N._e)(Q,y.Sn.CONSTRAINT)}),[Q]),le=ie.addedConstraintDiffs,se=ie.deletedConstraintDiffs,ce=(0,a.useMemo)((function(){return[{key:f.M8.SCHEMA,label:a.createElement(T.Z,{id:f.M8.SCHEMA,name:Y("label.schema")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:ae,entityType:f.py.CONTAINER,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(F,{addedColumnConstraintDiffs:le,columnName:(0,R.Td)(q,[f.ih.Column],O.o),columns:te,deletedColumnConstraintDiffs:se,joins:[]})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:w,dataProducts:null!=I?I:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.CONTAINER,key:e,permission:!1,selectedTags:ne,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:Y("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:b,entityType:f.py.CONTAINER,hasEditAccess:!1,hasPermission:B.ViewAll})}]}),[ae,q,te,b,B,le,se]);return a.createElement(a.Fragment,null,P?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:L,currentVersionData:b,deleted:V,displayName:re,domainDisplayName:ee,entityType:f.py.CONTAINER,ownerDisplayName:j,ownerRef:$,serviceName:null===(n=b.service)||void 0===n?void 0:n.name,tierDisplayName:X,version:p,onVersionClick:H})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=J?J:f.M8.SCHEMA,items:ce,onChange:function(e){K.push((0,i.h4)(f.py.CONTAINER,q,String(p),e))}})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(p),entityType:f.py.CONTAINER,versionHandler:U,versionList:_,onBack:H}))},K=n(53014),J=n(76),z=n(49795),Q=function(e){var t,n=e.version,s=e.currentVersionData,p=e.isVersionLoading,b=e.owners,P=e.tier,M=e.slashedDashboardName,O=e.versionList,R=e.deleted,w=void 0!==R&&R,k=e.backHandler,_=e.versionHandler,x=e.entityPermissions,V=e.domain,U=e.dataProducts,B=(0,c.$)().t,F=(0,r.k6)(),Y=(0,r.UO)().tab,Q=(0,l.CR)((0,a.useState)(s.changeDescription),2),W=Q[0],q=Q[1],G=(0,a.useMemo)((function(){return(0,N.KW)(W,b,P,V)}),[W,b,P,V]),j=G.ownerDisplayName,$=G.ownerRef,X=G.tierDisplayName,ee=G.domainDisplayName;(0,a.useEffect)((function(){q(s.changeDescription)}),[s]);var te=(0,a.useMemo)((function(){return[{title:B("label.chart-entity",{entity:B("label.name")}),dataIndex:"name",key:"name",render:function(e,t){return a.createElement(J.Link,{target:"_blank",to:{pathname:e}},a.createElement(m.Z,null,a.createElement("span",null,(0,L.C_)(t)),a.createElement(K.Z,{className:"m-l-xs flex-none align-middle",component:z.ReactComponent,style:i.gA})))}},{title:B("label.chart-entity",{entity:B("label.type")}),dataIndex:"type",key:"type"},{title:B("label.description"),dataIndex:"description",key:"description",render:function(e){return e?a.createElement(H.Z,{markdown:e}):a.createElement("span",{className:"text-grey-muted"},B("label.no-description"))}},{title:B("label.tag-plural"),dataIndex:"tags",key:"tags"},{title:B("label.glossary-term-plural"),dataIndex:"tags",key:"tags"}]}),[]),ne=(0,a.useMemo)((function(){return(0,N.o2)(s,W)}),[s,W]),ae=(0,a.useMemo)((function(){return(0,N._Y)(W,y.Sn.DESCRIPTION,s.description)}),[s,W]),re=(0,a.useMemo)((function(){return(0,N._Y)(W,y.Sn.DISPLAYNAME,s.displayName)}),[s,W]),ie=(0,a.useMemo)((function(){return[{key:f.M8.DETAILS,label:a.createElement(T.Z,{id:f.M8.DETAILS,name:B("label.detail-plural")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:ae,entityType:f.py.DASHBOARD,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(I.Z,{bordered:!0,columns:te,"data-testid":"schema-table",dataSource:null==s?void 0:s.charts,pagination:!1,rowKey:"id",size:"small"})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:V,dataProducts:null!=U?U:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.DASHBOARD,key:e,permission:!1,selectedTags:ne,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:B("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:s,entityType:f.py.DASHBOARD,hasEditAccess:!1,hasPermission:x.ViewAll})}]}),[ae,te,s,x]);return a.createElement(a.Fragment,null,p?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data"),"data-testid":"version-data"},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:M,currentVersionData:s,deleted:w,displayName:re,domainDisplayName:ee,entityType:f.py.DASHBOARD,ownerDisplayName:j,ownerRef:$,serviceName:null===(t=s.service)||void 0===t?void 0:t.name,tierDisplayName:X,version:n,onVersionClick:k})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{"data-testid":"tabs",defaultActiveKey:null!=Y?Y:f.M8.DETAILS,items:ie,onChange:function(e){var t;F.push((0,i.h4)(f.py.DASHBOARD,null!==(t=s.fullyQualifiedName)&&void 0!==t?t:"",String(n),e))}})))),a.createElement(A.Z,{currentVersion:n,entityType:f.py.DASHBOARD,versionHandler:_,versionList:O,onBack:k}))},W=n(36775),q=function(e){var t,n=e.version,p=e.currentVersionData,v=e.isVersionLoading,b=e.owners,P=e.domain,M=e.dataProducts,w=e.tier,I=e.slashedDataModelName,k=e.versionList,L=e.deleted,_=void 0!==L&&L,x=e.backHandler,V=e.versionHandler,H=e.entityPermissions,U=(0,r.k6)(),B=(0,c.$)().t,Y=(0,r.UO)().tab,K=(0,l.CR)((0,a.useState)(p.changeDescription),2),J=K[0],z=K[1],Q=(0,a.useMemo)((function(){var e;return null!==(e=p.fullyQualifiedName)&&void 0!==e?e:""}),[p.fullyQualifiedName]),q=(0,a.useMemo)((function(){return(0,N.KW)(J,b,w,P)}),[J,b,w,P]),G=q.ownerDisplayName,j=q.ownerRef,$=q.tierDisplayName,X=q.domainDisplayName,ee=(0,a.useMemo)((function(){var e=(0,s.cloneDeep)(p.columns||[]);return(0,N.xf)(J,e)}),[p,J]);(0,a.useEffect)((function(){z(p.changeDescription)}),[p]);var te=(0,a.useMemo)((function(){return(0,N.o2)(p,J)}),[p,J]),ne=(0,a.useMemo)((function(){return(0,N._Y)(J,y.Sn.DESCRIPTION,p.description)}),[p,J]),ae=(0,a.useMemo)((function(){return(0,N._Y)(J,y.Sn.DISPLAYNAME,p.displayName)}),[p,J]),re=(0,a.useMemo)((function(){var e;return[{key:f.M8.MODEL,label:a.createElement(T.Z,{id:f.M8.MODEL,name:B("label.model")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:ne,entityType:f.py.DASHBOARD_DATA_MODEL,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(F,{columnName:(0,R.Td)(null!==(e=p.fullyQualifiedName)&&void 0!==e?e:"",[f.ih.Column],O.o),columns:ee,joins:[]})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:P,dataProducts:null!=M?M:[],hasPermission:!1}),Object.keys(W.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.DASHBOARD_DATA_MODEL,key:e,permission:!1,selectedTags:te,tagType:W.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:B("label.custom-property-plural")}),children:a.createElement("div",{className:"p-md"},a.createElement(g.t,{isVersionView:!0,entityDetails:p,entityType:f.py.DASHBOARD_DATA_MODEL,hasEditAccess:!1,hasPermission:H.ViewAll}))}]}),[ne,ee,p,H]);return a.createElement(a.Fragment,null,a.createElement("div",{"data-testid":"data-model-version-container"},v?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data"),"data-testid":"version-data"},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:I,currentVersionData:p,deleted:_,displayName:ae,domainDisplayName:X,entityType:f.py.DASHBOARD_DATA_MODEL,ownerDisplayName:G,ownerRef:j,serviceName:null===(t=p.service)||void 0===t?void 0:t.name,tierDisplayName:$,version:n,onVersionClick:x})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{activeKey:null!=Y?Y:f.M8.MODEL,items:re,onChange:function(e){U.push((0,i.h4)(f.py.DASHBOARD_DATA_MODEL,Q,String(n),e))}})))),a.createElement(A.Z,{currentVersion:n,entityType:f.py.DASHBOARD_DATA_MODEL,versionHandler:V,versionList:k,onBack:x})))},G=function(e){var t,n=e.version,p=e.currentVersionData,b=e.isVersionLoading,P=e.owners,M=e.domain,O=e.dataProducts,R=e.tier,w=e.slashedTableName,I=e.versionList,k=e.deleted,L=void 0!==k&&k,_=e.backHandler,x=e.versionHandler,V=e.entityPermissions,H=(0,c.$)().t,U=(0,r.k6)(),B=(0,r.UO)().tab,F=(0,l.CR)((0,a.useState)(p.changeDescription),2),Y=F[0],K=F[1],J=(0,a.useMemo)((function(){return(0,N.KW)(Y,P,R,M)}),[Y,P,R,M]),z=J.ownerDisplayName,Q=J.ownerRef,W=J.tierDisplayName,q=J.domainDisplayName,G=(0,a.useMemo)((function(){return{tags:(0,N.o2)(p,Y),description:(0,N._Y)(Y,y.Sn.DESCRIPTION,p.description),displayName:(0,N._Y)(Y,y.Sn.DISPLAYNAME,p.displayName)}}),[p,Y]),j=G.tags,$=G.description,X=G.displayName;(0,a.useEffect)((function(){K(p.changeDescription)}),[p]);var ee=(0,a.useMemo)((function(){return[{key:f.M8.CODE,label:a.createElement(T.Z,{id:f.M8.CODE,name:H("label.code")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:$,entityType:f.py.STORED_PROCEDURE,showActions:!1})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:M,dataProducts:null!=O?O:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.STORED_PROCEDURE,key:e,permission:!1,selectedTags:j,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:H("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:p,entityType:f.py.STORED_PROCEDURE,hasEditAccess:!1,hasPermission:V.ViewAll})}]}),[j,$,p,V]);return a.createElement(a.Fragment,null,b?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:w,currentVersionData:p,deleted:L,displayName:X,domainDisplayName:q,entityType:f.py.STORED_PROCEDURE,ownerDisplayName:z,ownerRef:Q,serviceName:null===(t=p.service)||void 0===t?void 0:t.name,tierDisplayName:W,version:n,onVersionClick:_})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=B?B:f.M8.CODE,items:ee,onChange:function(e){var t;U.push((0,i.h4)(f.py.STORED_PROCEDURE,null!==(t=p.fullyQualifiedName)&&void 0!==t?t:"",String(n),e))}})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(n),entityType:f.py.STORED_PROCEDURE,versionHandler:x,versionList:I,onBack:_}))},j=function(e){var t,n=e.version,p=e.currentVersionData,b=e.isVersionLoading,P=e.owners,M=e.domain,w=e.dataProducts,I=e.tier,k=e.slashedTableName,L=e.versionList,_=e.deleted,x=void 0!==_&&_,V=e.backHandler,H=e.versionHandler,U=e.entityPermissions,B=(0,c.$)().t,Y=(0,r.k6)(),K=(0,r.UO)().tab,J=(0,l.CR)((0,a.useState)(p.changeDescription),2),z=J[0],Q=J[1],W=(0,a.useMemo)((function(){var e;return null!==(e=p.fullyQualifiedName)&&void 0!==e?e:""}),[p.fullyQualifiedName]),q=(0,a.useMemo)((function(){return(0,N.KW)(z,P,I,M)}),[z,P,I,M]),G=q.ownerDisplayName,j=q.ownerRef,$=q.tierDisplayName,X=q.domainDisplayName,ee=(0,a.useMemo)((function(){var e=(0,s.cloneDeep)(p.columns);return(0,N.xf)(z,e)}),[p,z]);(0,a.useEffect)((function(){Q(p.changeDescription)}),[p]);var te=(0,a.useMemo)((function(){return(0,N.o2)(p,z)}),[p,z]),ne=(0,a.useMemo)((function(){return(0,N._Y)(z,y.Sn.DESCRIPTION,p.description)}),[p,z]),ae=(0,a.useMemo)((function(){return(0,N._Y)(z,y.Sn.DISPLAYNAME,p.displayName)}),[p,z]),re=(0,a.useMemo)((function(){return(0,N._e)(z,y.Sn.CONSTRAINT)}),[z]),ie=re.addedConstraintDiffs,le=re.deletedConstraintDiffs,se=(0,a.useMemo)((function(){return(0,N._e)(z,y.Sn.TABLE_CONSTRAINTS)}),[z]),ce=se.addedConstraintDiffs,oe=se.deletedConstraintDiffs,ue=(0,a.useMemo)((function(){return[{key:f.M8.SCHEMA,label:a.createElement(T.Z,{id:f.M8.SCHEMA,name:B("label.schema")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:ne,entityType:f.py.TABLE,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(F,{addedColumnConstraintDiffs:ie,addedTableConstraintDiffs:ce,columnName:(0,R.Td)(W,[f.ih.Column],O.o),columns:ee,deletedColumnConstraintDiffs:le,deletedTableConstraintDiffs:oe,joins:p.joins,tableConstraints:p.tableConstraints})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:M,dataProducts:null!=w?w:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.TABLE,key:e,permission:!1,selectedTags:te,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:B("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:p,entityType:f.py.TABLE,hasEditAccess:!1,hasPermission:U.ViewAll})}]}),[ne,W,ee,le,oe,ie,ce,p,U]);return a.createElement(a.Fragment,null,b?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:k,currentVersionData:p,deleted:x,displayName:ae,domainDisplayName:X,entityType:f.py.TABLE,ownerDisplayName:G,ownerRef:j,serviceName:null===(t=p.service)||void 0===t?void 0:t.name,tierDisplayName:$,version:n,onVersionClick:V})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=K?K:f.M8.SCHEMA,items:ue,onChange:function(e){Y.push((0,i.h4)(f.py.TABLE,W,String(n),e))}})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(n),entityType:f.py.TABLE,versionHandler:H,versionList:L,onBack:V}))},$=n(70537),X=n(27049),ee=n(56256),te=n(91894),ne=n(65168),ae=function(e){var t,n=e.version,p=e.currentVersionData,b=e.isVersionLoading,P=e.owners,O=e.domain,R=e.dataProducts,w=e.tier,I=e.slashedMlModelName,k=e.versionList,L=e.deleted,x=void 0!==L&&L,V=e.backHandler,U=e.versionHandler,F=e.entityPermissions,Y=(0,c.$)().t,K=(0,r.k6)(),J=(0,r.UO)().tab,z=(0,l.CR)((0,a.useState)(p.changeDescription),2),Q=z[0],W=z[1],q=(0,a.useMemo)((function(){return(0,N.KW)(Q,P,w,O)}),[Q,P,w,O]),G=q.ownerDisplayName,j=q.ownerRef,$=q.tierDisplayName,ae=q.domainDisplayName,re=(0,a.useMemo)((function(){return function(e,t){var n,a=(0,s.cloneDeep)(null!==(n=e.mlFeatures)&&void 0!==n?n:[]),r=(0,N.O7)(y.Sn.ML_FEATURES,t);return(0,N.Of)(r).forEach((function(e){var n,r,i,c,o;if(e===y.Sn.ML_FEATURES){var u=(0,N.gY)(e,t),m=JSON.parse(null!==(n=(0,N.TL)(u))&&void 0!==n?n:"[]"),d=JSON.parse(null!==(r=(0,N.r9)(u))&&void 0!==r?r:"[]");c=m,o=d,null==(i=a)||i.forEach((function(e){o.forEach((function(t,n){var a,r,i;(0,s.isEqual)(e.name,t.name)&&(e.description=(0,N.UZ)(null!==(r=null===(a=c[n])||void 0===a?void 0:a.description)&&void 0!==r?r:"",null!==(i=t.description)&&void 0!==i?i:""))}))})),function(e,t,n){null==e||e.forEach((function(e){n.forEach((function(n,a){var r,i,c,o,u;if((0,s.isEqual)(e.name,n.name)){var m={},d=[],p=(0,N.Z3)(null!==(r=t[a].tags)&&void 0!==r?r:[],null!==(i=n.tags)&&void 0!==i?i:[]),E=(0,N.Z3)(null!==(c=n.tags)&&void 0!==c?c:[],null!==(o=t[a].tags)&&void 0!==o?o:[]),y=(0,N.Pz)(p,E);(0,l.ev)((0,l.ev)([],(0,l.CR)(y)),(0,l.CR)(null!==(u=e.tags)&&void 0!==u?u:[])).forEach((function(e){m[e.tagFQN]||(m[e.tagFQN]=!0,d.push(e))})),e.tags=d}}))}))}(a,m,d)}})),a}(p,Q)}),[p,Q]),ie=(0,a.useCallback)((function(e){var t;K.push((0,i.h4)(f.py.MLMODEL,null!==(t=p.fullyQualifiedName)&&void 0!==t?t:"",String(n),e))}),[p,n]);(0,a.useEffect)((function(){W(p.changeDescription)}),[p]);var le=(0,a.useMemo)((function(){return(0,N.o2)(p,Q)}),[p,Q]),se=(0,a.useMemo)((function(){return(0,N._Y)(Q,y.Sn.DESCRIPTION,p.description)}),[p,Q]),ce=(0,a.useMemo)((function(){return(0,N._Y)(Q,y.Sn.DISPLAYNAME,p.displayName)}),[p,Q]),oe=(0,a.useMemo)((function(){var e;return[{key:f.M8.FEATURES,label:a.createElement(T.Z,{id:f.M8.FEATURES,name:Y("label.feature-plural")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:se,entityType:f.py.PIPELINE,showActions:!1})),a.createElement(u.Z,{span:24},(null===(e=p.mlFeatures)||void 0===e?void 0:e.length)?a.createElement(o.Z,{"data-testid":"feature-list"},a.createElement(u.Z,{span:24},a.createElement(X.Z,{className:"m-y-md"})),a.createElement(u.Z,{span:24},a.createElement(ee.Z.Title,{level:5},Y("label.feature-plural-used"))),null==re?void 0:re.map((function(e){var t,n,r;return a.createElement(u.Z,{key:e.fullyQualifiedName,span:24},a.createElement(te.Z,{bordered:!0,className:"m-b-xlg","data-testid":"feature-card-"+(null!==(t=e.name)&&void 0!==t?t:""),key:e.fullyQualifiedName},a.createElement(o.Z,null,a.createElement(u.Z,{className:"m-b-xs",span:24},a.createElement(ee.Z.Text,{className:"font-semibold"},e.name)),a.createElement(u.Z,{className:"m-b-xs",span:24},a.createElement(m.Z,{align:"start"},a.createElement(m.Z,null,a.createElement(ee.Z.Text,{className:"text-grey-muted"},Y("label.type")+":")," ",a.createElement(ee.Z.Text,null,e.dataType||"--")),a.createElement(X.Z,{className:"border-gray",type:"vertical"}),a.createElement(m.Z,null,a.createElement(ee.Z.Text,{className:"text-grey-muted"},Y("label.algorithm")+":")," ",a.createElement(ee.Z.Text,null,e.featureAlgorithm||"--")))),a.createElement(u.Z,{className:"m-b-xs",span:24},a.createElement(o.Z,{gutter:8,wrap:!1},a.createElement(u.Z,{flex:"130px"},a.createElement(ee.Z.Text,{className:"text-grey-muted"},Y("label.glossary-term-plural")+" :")),a.createElement(u.Z,{flex:"auto"},a.createElement(B.Z,{sizeCap:-1,tags:(0,_.dG)(null!==(n=e.tags)&&void 0!==n?n:[]).Glossary})))),a.createElement(u.Z,{className:"m-b-xs",span:24},a.createElement(o.Z,{gutter:8,wrap:!1},a.createElement(u.Z,{flex:"130px"},a.createElement(ee.Z.Text,{className:"text-grey-muted"},Y("label.tag-plural")+" :")),a.createElement(u.Z,{flex:"auto"},a.createElement(B.Z,{sizeCap:-1,tags:(0,_.dG)(null!==(r=e.tags)&&void 0!==r?r:[]).Classification})))),a.createElement(u.Z,{className:"m-b-xs",span:24},a.createElement(o.Z,{gutter:8,wrap:!1},a.createElement(u.Z,{flex:"120px"},a.createElement(ee.Z.Text,{className:"text-grey-muted"},Y("label.description")+" :")),a.createElement(u.Z,{flex:"auto"},a.createElement(m.Z,{align:"start"},e.description?a.createElement(H.Z,{enableSeeMoreVariant:!1,markdown:e.description}):a.createElement(ee.Z.Text,{className:"text-grey-muted"},Y("label.no-entity",{entity:Y("label.description")})))))),a.createElement(u.Z,{span:24},a.createElement(ne.Z,{feature:e})))))}))):a.createElement(M.Z,null)))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:O,dataProducts:null!=R?R:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.MLMODEL,key:e,permission:!1,selectedTags:le,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:Y("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:p,entityType:f.py.MLMODEL,hasEditAccess:!1,hasPermission:F.ViewAll})}]}),[se,re,p,F]);return a.createElement(a.Fragment,null,b?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data"),"data-testid":"version-data"},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:I,currentVersionData:p,deleted:x,displayName:ce,domainDisplayName:ae,entityType:f.py.MLMODEL,ownerDisplayName:G,ownerRef:j,serviceName:null===(t=p.service)||void 0===t?void 0:t.name,tierDisplayName:$,version:n,onVersionClick:V})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=J?J:f.M8.FEATURES,items:oe,onChange:ie})))),a.createElement(A.Z,{currentVersion:n,entityType:f.py.MLMODEL,versionHandler:U,versionList:k,onBack:V}))},re=n(76709),ie=n(23031),le=function(e){var t,n=e.version,c=e.currentVersionData,p=e.isVersionLoading,v=e.owners,b=e.domain,P=e.dataProducts,M=e.tier,O=e.slashedPipelineName,R=e.versionList,w=e.deleted,x=void 0!==w&&w,V=e.backHandler,U=e.versionHandler,F=e.entityPermissions,Y=(0,r.k6)(),K=(0,r.UO)().tab,J=(0,l.CR)((0,a.useState)(c.changeDescription),2),z=J[0],Q=J[1],q=(0,a.useMemo)((function(){return(0,N.KW)(z,v,M,b)}),[z,v,M,b]),G=q.ownerDisplayName,j=q.ownerRef,$=q.tierDisplayName,X=q.domainDisplayName,ee=(0,a.useMemo)((function(){return function(e,t){var n,a=(0,s.cloneDeep)(null!==(n=e.tasks)&&void 0!==n?n:[]),r=(0,N.O7)(y.Sn.TASKS,t),i=(0,N.Of)(r),c=(0,s.cloneDeep)(a);return null==i||i.forEach((function(e){var n=(0,N.gY)(e,t),r=(0,N.Do)(e);if((0,N.ag)(y.Sn.DESCRIPTION,e))c=function(e,t,n){void 0===t&&(t=[]);var a=(0,N.TL)(e),r=(0,N.r9)(e);return null==t||t.forEach((function(e){(0,s.isEqual)(e.name,n)&&(e.description=(0,N.UZ)(a,r,e.description))})),t}(n,a,r);else if((0,N.ag)(y.Sn.TAGS,e))c=function(e,t,n){var a,r;void 0===t&&(t=[]);var i=JSON.parse(null!==(a=(0,N.TL)(e))&&void 0!==a?a:"[]"),c=JSON.parse(null!==(r=(0,N.r9)(e))&&void 0!==r?r:"[]");return null==t||t.forEach((function(e){if((0,s.isEqual)(e.name,n)){var t={},a=[],r=(0,N.Pz)(i,c);(0,l.ev)((0,l.ev)([],(0,l.CR)(r)),(0,l.CR)(e.tags)).forEach((function(e){t[e.tagFQN]||(t[e.tagFQN]=!0,a.push(e))})),e.tags=a}})),t}(n,a,r);else{var i=(0,N.gY)(y.Sn.TASKS,t,!0);if(i.added&&(c=function(e,t){var n,a;void 0===t&&(t=[]);var r=JSON.parse(null!==(a=null===(n=e.added)||void 0===n?void 0:n.newValue)&&void 0!==a?a:"[]");return null==r||r.forEach((function(e){var n;null==(n=t)||n.forEach((function(t){var n,a,r,i;(0,s.isEqual)(t.name,e.name)&&(t.tags=null===(n=e.tags)||void 0===n?void 0:n.map((function(e){return(0,l.pi)((0,l.pi)({},e),{added:!0})})),t.description=(0,N.UZ)("",null!==(a=e.description)&&void 0!==a?a:""),t.taskType=(0,N.UZ)("",null!==(r=e.taskType)&&void 0!==r?r:""),t.name=(0,N.UZ)("",e.name),t.displayName=(0,N.UZ)("",null!==(i=e.displayName)&&void 0!==i?i:""))}))})),t}(i,a)),i.deleted){var o=function(e){var t,n,a=JSON.parse(null!==(n=null===(t=e.deleted)||void 0===t?void 0:t.oldValue)&&void 0!==n?n:"[]");return null==a?void 0:a.map((function(e){var t,n,a,r;return(0,l.pi)((0,l.pi)({},e),{tags:null===(t=e.tags)||void 0===t?void 0:t.map((function(e){return(0,l.pi)((0,l.pi)({},e),{removed:!0})})),description:(0,N.UZ)(null!==(n=e.description)&&void 0!==n?n:"",""),taskType:(0,N.UZ)(null!==(a=e.taskType)&&void 0!==a?a:"",""),name:(0,N.UZ)(e.name,""),displayName:(0,N.UZ)(null!==(r=e.displayName)&&void 0!==r?r:"","")})}))}(i);c.unshift.apply(c,(0,l.ev)([],(0,l.CR)(null!=o?o:[])))}}})),(0,s.uniqBy)(c,"name")}(c,z)}),[c,z]);(0,a.useEffect)((function(){Q(c.changeDescription)}),[c]);var te=(0,a.useMemo)((function(){return[{title:(0,ie.t)("label.task-entity",{entity:(0,ie.t)("label.column-plural")}),dataIndex:"name",key:"name",width:250,render:function(e,t){return a.createElement(H.Z,{markdown:(0,L.C_)(t)})}},{title:(0,ie.t)("label.task-entity",{entity:(0,ie.t)("label.type-lowercase")}),dataIndex:"taskType",key:"taskType",render:function(e){return a.createElement(H.Z,{markdown:e})}},{title:(0,ie.t)("label.description"),dataIndex:"description",key:"description",render:function(e){return e?a.createElement(H.Z,{markdown:e}):a.createElement("span",{className:"text-grey-muted"},(0,ie.t)("label.no-description"))}},{title:(0,ie.t)("label.tag-plural"),dataIndex:"tags",key:"tags",accessor:"tags",width:272,render:function(e){return a.createElement(B.Z,{sizeCap:-1,tags:(0,_.dG)(e||[]).Classification})}},{title:(0,ie.t)("label.glossary-term-plural"),dataIndex:"tags",key:"tags",accessor:"tags",width:272,render:function(e){return a.createElement(B.Z,{sizeCap:-1,tags:(0,_.dG)(e||[]).Glossary})}}]}),[]),ne=(0,a.useMemo)((function(){return(0,N.o2)(c,z)}),[c,z]),ae=(0,a.useMemo)((function(){return(0,N._Y)(z,y.Sn.DESCRIPTION,c.description)}),[c,z]),re=(0,a.useMemo)((function(){return(0,N._Y)(z,y.Sn.DISPLAYNAME,c.displayName)}),[c,z]),le=(0,a.useMemo)((function(){return[{key:f.M8.TASKS,label:a.createElement(T.Z,{id:f.M8.TASKS,name:(0,ie.t)("label.task-plural")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:ae,entityType:f.py.PIPELINE,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(I.Z,{bordered:!0,columns:te,"data-testid":"schema-table",dataSource:ee,pagination:!1,rowKey:"name",scroll:k.K,size:"small"})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:b,dataProducts:null!=P?P:[],hasPermission:!1}),Object.keys(W.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.PIPELINE,key:e,permission:!1,selectedTags:ne,tagType:W.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:(0,ie.t)("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:c,entityType:f.py.PIPELINE,hasEditAccess:!1,hasPermission:F.ViewAll})}]}),[ae,te,ee,c,F,ne]);return a.createElement(a.Fragment,null,p?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:O,currentVersionData:c,deleted:x,displayName:re,domainDisplayName:X,entityType:f.py.PIPELINE,ownerDisplayName:G,ownerRef:j,serviceName:null===(t=c.service)||void 0===t?void 0:t.name,tierDisplayName:$,version:n,onVersionClick:V})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=K?K:f.M8.TASKS,items:le,onChange:function(e){var t;Y.push((0,i.h4)(f.py.PIPELINE,null!==(t=c.fullyQualifiedName)&&void 0!==t?t:"",String(n),e))}})))),a.createElement(A.Z,{currentVersion:n,entityType:f.py.PIPELINE,versionHandler:U,versionList:R,onBack:V}))},se=function(e){var t,n,p=e.version,b=e.currentVersionData,P=e.isVersionLoading,M=e.owners,w=e.domain,I=e.dataProducts,k=e.tier,L=e.breadCrumbList,_=e.versionList,x=e.deleted,V=void 0!==x&&x,H=e.backHandler,U=e.versionHandler,B=e.entityPermissions,Y=(0,c.$)().t,K=(0,r.k6)(),J=(0,r.UO)().tab,z=(0,l.CR)((0,a.useState)(b.changeDescription),2),Q=z[0],W=z[1],q=(0,a.useMemo)((function(){var e;return null!==(e=b.fullyQualifiedName)&&void 0!==e?e:""}),[null!==(t=b.fullyQualifiedName)&&void 0!==t?t:""]),G=(0,a.useMemo)((function(){return(0,N.KW)(Q,M,k,w)}),[Q,M,k,w]),j=G.ownerDisplayName,$=G.ownerRef,X=G.tierDisplayName,ee=G.domainDisplayName,te=(0,a.useMemo)((function(){return function(e,t){var n,a=(0,s.cloneDeep)(null!==(n=e.fields)&&void 0!==n?n:[]),r=(0,N.O7)(y.Sn.FIELDS,t),i=(0,N.Of)(r),c=(0,s.cloneDeep)(a);return null==i||i.forEach((function(e){var n=(0,N.gY)(e,t),r=(0,N.Do)(e);if((0,N.ag)(y.Sn.DESCRIPTION,e))c=function(e,t,n){void 0===t&&(t=[]);var a=(0,N.TL)(e),r=(0,N.r9)(e);return null==t||t.forEach((function(e){(0,s.isEqual)(e.name,n)&&(e.description=(0,N.UZ)(a,r,e.description))})),t}(n,a,r);else if((0,N.ag)(y.Sn.TAGS,e))c=function(e,t,n){var a,r;void 0===t&&(t=[]);var i=JSON.parse(null!==(a=(0,N.TL)(e))&&void 0!==a?a:"[]"),c=JSON.parse(null!==(r=(0,N.r9)(e))&&void 0!==r?r:"[]");return null==t||t.forEach((function(e){if((0,s.isEqual)(e.name,n)){var t={},a=[],r=(0,N.Pz)(i,c);(0,l.ev)((0,l.ev)([],(0,l.CR)(r)),(0,l.CR)(e.tags)).forEach((function(e){t[e.tagFQN]||(t[e.tagFQN]=!0,a.push(e))})),e.tags=a}})),t}(n,a,r);else{var i=(0,N.gY)(y.Sn.TASKS,t,!0);if(i.added&&(c=function(e,t){var n,a;void 0===t&&(t=[]);var r=JSON.parse(null!==(a=null===(n=e.added)||void 0===n?void 0:n.newValue)&&void 0!==a?a:"[]");return null==r||r.forEach((function(e){var n;null==(n=t)||n.forEach((function(t){var n,a,r,i;(0,s.isEqual)(t.name,e.name)&&(t.tags=null===(n=e.tags)||void 0===n?void 0:n.map((function(e){return(0,l.pi)((0,l.pi)({},e),{added:!0})})),t.description=(0,N.UZ)("",null!==(a=e.description)&&void 0!==a?a:""),t.dataTypeDisplay=(0,N.UZ)("",null!==(r=e.dataTypeDisplay)&&void 0!==r?r:""),t.name=(0,N.UZ)("",e.name),t.displayName=(0,N.UZ)("",null!==(i=e.displayName)&&void 0!==i?i:""))}))})),t}(i,a)),i.deleted){var o=function(e){var t,n,a=JSON.parse(null!==(n=null===(t=e.deleted)||void 0===t?void 0:t.oldValue)&&void 0!==n?n:"[]");return null==a?void 0:a.map((function(e){var t,n,a,r;return(0,l.pi)((0,l.pi)({},e),{tags:null===(t=e.tags)||void 0===t?void 0:t.map((function(e){return(0,l.pi)((0,l.pi)({},e),{removed:!0})})),description:(0,N.UZ)(null!==(n=e.description)&&void 0!==n?n:"",""),dataTypeDisplay:(0,N.UZ)(null!==(a=e.dataTypeDisplay)&&void 0!==a?a:"",""),name:(0,N.UZ)(e.name,""),displayName:(0,N.UZ)(null!==(r=e.displayName)&&void 0!==r?r:"","")})}))}(i);c.unshift.apply(c,(0,l.ev)([],(0,l.CR)(null!=o?o:[])))}}})),(0,s.uniqBy)(c,"name")}(b,Q)}),[b,Q]);(0,a.useEffect)((function(){W(b.changeDescription)}),[b]);var ne=(0,a.useMemo)((function(){return(0,N.o2)(b,Q)}),[b,Q]),ae=(0,a.useMemo)((function(){return(0,N._Y)(Q,y.Sn.DESCRIPTION,b.description)}),[b,Q]),re=(0,a.useMemo)((function(){return(0,N._Y)(Q,y.Sn.DISPLAYNAME,b.displayName)}),[b,Q]),ie=(0,a.useMemo)((function(){return[{key:f.M8.FIELDS,label:a.createElement(T.Z,{id:f.M8.FIELDS,name:Y("label.field-plural")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:ae,entityType:f.py.SEARCH_INDEX,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(F,{columnName:(0,R.Td)(q,[f.ih.SearchIndexField],O.o),columns:te,joins:[]})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:w,dataProducts:null!=I?I:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.SEARCH_INDEX,key:e,permission:!1,selectedTags:ne,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:Y("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:b,entityType:f.py.SEARCH_INDEX,hasEditAccess:!1,hasPermission:B.ViewAll})}]}),[ae,q,te,b,B]);return a.createElement(a.Fragment,null,P?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:L,currentVersionData:b,deleted:V,displayName:re,domainDisplayName:ee,entityType:f.py.SEARCH_INDEX,ownerDisplayName:j,ownerRef:$,serviceName:null===(n=b.service)||void 0===n?void 0:n.name,tierDisplayName:X,version:p,onVersionClick:H})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=J?J:f.M8.FIELDS,items:ie,onChange:function(e){K.push((0,i.h4)(f.py.SEARCH_INDEX,q,String(p),e))}})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(p),entityType:f.py.SEARCH_INDEX,versionHandler:U,versionList:_,onBack:H}))},ce=n(60331),oe=n(31217),ue=n(40734),me=n(25311),de=function(e){var t,n=e.version,p=e.currentVersionData,b=e.isVersionLoading,P=e.owners,M=e.tier,O=e.slashedTopicName,R=e.versionList,w=e.deleted,I=void 0!==w&&w,k=e.backHandler,L=e.versionHandler,_=e.entityPermissions,x=e.domain,V=e.dataProducts,H=(0,c.$)().t,U=(0,r.k6)(),B=(0,r.UO)().tab,F=(0,l.CR)((0,a.useState)(p.changeDescription),2),Y=F[0],K=F[1],J=(0,a.useMemo)((function(){return(0,N.KW)(Y,P,M,x)}),[Y,P,M,x]),z=J.ownerDisplayName,Q=J.ownerRef,W=J.tierDisplayName,q=J.domainDisplayName,G=(0,a.useMemo)((function(){return(0,oe.Fx)(p.messageSchema,Y)}),[p,Y]);(0,a.useEffect)((function(){K(p.changeDescription)}),[p]);var j=(0,a.useMemo)((function(){return(0,N.o2)(p,Y)}),[p,Y]),$=(0,a.useMemo)((function(){return(0,N._Y)(Y,y.Sn.DESCRIPTION,p.description)}),[p,Y]),X=(0,a.useMemo)((function(){return(0,N._Y)(Y,y.Sn.DISPLAYNAME,p.displayName)}),[p,Y]),ee=(0,a.useMemo)((function(){var e=(0,N._Y)(Y,"messageSchema.schemaType",p.displayName);return(0,s.isEmpty)(e)?void 0:a.createElement(ce.Z,{"data-testid":"schema-type-diff"},(0,ue.hl)(e))}),[Y,p]),te=(0,a.useMemo)((function(){var e;return[{key:f.M8.SCHEMA,label:a.createElement(T.Z,{id:f.M8.SCHEMA,name:H("label.schema")}),children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[0,16]},a.createElement(u.Z,{span:24},a.createElement(D.Z,{description:$,entityType:f.py.TOPIC,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(me.Z,{isReadOnly:!0,isVersionView:!0,entityFqn:null!==(e=null==p?void 0:p.fullyQualifiedName)&&void 0!==e?e:"",hasDescriptionEditAccess:!1,hasTagEditAccess:!1,messageSchema:G,schemaTypePlaceholder:ee,onThreadLinkSelect:s.noop})))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:x,dataProducts:null!=V?V:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{entityType:f.py.TOPIC,key:e,permission:!1,selectedTags:j,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:H("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:p,entityType:f.py.TOPIC,hasEditAccess:!1,hasPermission:_.ViewAll})}]}),[$,G,p,_,ee,j]);return a.createElement(a.Fragment,null,b?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:O,currentVersionData:p,deleted:I,displayName:X,domainDisplayName:q,entityType:f.py.TOPIC,ownerDisplayName:z,ownerRef:Q,serviceName:null===(t=p.service)||void 0===t?void 0:t.name,tierDisplayName:W,version:n,onVersionClick:k})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{defaultActiveKey:null!=B?B:f.M8.SCHEMA,items:te,onChange:function(e){var t;U.push((0,i.h4)(f.py.TOPIC,null!==(t=p.fullyQualifiedName)&&void 0!==t?t:"",String(n),e))}})))),a.createElement(A.Z,{currentVersion:n,entityType:f.py.TOPIC,versionHandler:L,versionList:R,onBack:k}))},pe=n(46481),Ee=n(61105),ye=n(34530),fe=n(66537),ve=n(58373),Ne=n(30314),ge=n(33378),De=n(42395),Ze=n(52009),Te=n(51513),he=n(3556),Se=n(45629),Ae=n(77427),Ce=n(45974),be=n(30213),Pe=n(12981),Me=n(1727),Oe=n(7161),Re=n(22368),we=n(46321),Ie=n(23708),ke=function(){var e=(0,c.$)().t,t=(0,r.k6)(),n=(0,pe.BL)().getEntityPermissionByFqn,p=(0,r.UO)(),y=p.version,D=p.tab,b=(0,fe.f)().fqn,P=(0,l.CR)((0,a.useState)(Pe.Bd),2),O=P[0],R=P[1],w=(0,l.CR)((0,a.useState)(!0),2),I=w[0],k=w[1],_=(0,l.CR)((0,a.useState)(!0),2),x=_[0],V=_[1],H=(0,l.CR)((0,a.useState)(),2),U=H[0],B=H[1],F=(0,l.CR)((0,a.useState)({}),2),Y=F[0],K=F[1],J=(0,l.CR)((0,a.useState)({}),2),z=J[0],Q=J[1],W=(0,l.CR)((0,a.useState)(!0),2),q=W[0],G=W[1],j=(0,l.CR)((0,a.useState)({data:[],paging:{total:0}}),2),$=j[0],X=j[1],ee=(0,l.CR)((0,a.useState)(i.j2),2),te=ee[0],ne=ee[1],ae=(0,a.useMemo)((function(){return(0,N.Jf)(Y,f.py.API_COLLECTION)}),[Y]),ie=ae.tier,le=ae.owners,se=ae.breadcrumbLinks,ce=ae.changeDescription,oe=ae.deleted,ue=ae.domain,me=(0,a.useMemo)((function(){return O.ViewAll||O.ViewBasic}),[O]),de=(0,a.useMemo)((function(){return(0,N.KW)(null==Y?void 0:Y.changeDescription,le,ie,ue)}),[null==Y?void 0:Y.changeDescription,le,ie,ue]),Ne=de.ownerDisplayName,ge=de.ownerRef,De=de.tierDisplayName,Ze=de.domainDisplayName,Te=(0,a.useCallback)((function(){return(0,l.mG)(void 0,void 0,void 0,(function(){var e,t,a,r,i;return(0,l.Jh)(this,(function(l){switch(l.label){case 0:return l.trys.push([0,5,6,7]),k(!0),[4,n(Oe.A.API_COLLECTION,b)];case 1:return e=l.sent(),R(e),e.ViewAll||e.ViewBasic?[4,(0,Re.A0)(b,{include:ye.y.All})]:[3,4];case 2:return t=l.sent(),B(t),[4,(0,Re.IO)(null!==(i=t.id)&&void 0!==i?i:"")];case 3:a=l.sent(),Q(a),l.label=4;case 4:return[3,7];case 5:return r=l.sent(),(0,we.Eo)(r),[3,7];case 6:return k(!1),[7];case 7:return[2]}}))}))}),[b,n]),he=(0,a.useCallback)((function(e){return(0,l.mG)(void 0,void 0,void 0,(function(){var t,n,a,r,i;return(0,l.Jh)(this,(function(c){switch(c.label){case 0:if((0,s.isEmpty)(U))return[2];G(!0),c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,(0,ve.BF)((0,l.pi)((0,l.pi)({},e),{fields:f.GB.OWNERS,apiCollection:null!==(a=null==U?void 0:U.fullyQualifiedName)&&void 0!==a?a:"",service:null!==(i=null===(r=null==U?void 0:U.service)||void 0===r?void 0:r.fullyQualifiedName)&&void 0!==i?i:"",include:ye.y.All}))];case 2:return t=c.sent(),X(t),[3,5];case 3:return n=c.sent(),(0,we.Eo)(n),[3,5];case 4:return G(!1),[7];case 5:return[2]}}))}))}),[U]),Se=(0,a.useCallback)((function(e){return(0,l.mG)(void 0,void 0,void 0,(function(){var t;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,4,5]),V(!0),me?[4,(0,Re.Cz)(e.id,y)]:[3,3];case 1:return t=n.sent(),K(t),[4,he()];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return V(!1),[7];case 5:return[2]}}))}))}),[me,y,he]),Ae=function(e){t.push((0,i.h4)(f.py.API_COLLECTION,b,String(y),e))},Ce=(0,a.useCallback)((function(e){var t,n=e.cursorType,a=e.currentPage;n&&he({paging:(t={},t[n]=$.paging[n],t)}),ne(a)}),[$,he]),be=(0,a.useMemo)((function(){return{versionHandler:function(e){void 0===e&&(e=y),t.push((0,i.h4)(f.py.API_COLLECTION,b,e,D))},backHandler:function(){t.push((0,i.EK)(f.py.API_COLLECTION,b,D))}}}),[b,b,D]),ke=be.versionHandler,Le=be.backHandler,_e=(0,a.useMemo)((function(){return(0,N.rI)(Y,ce)}),[Y,ce]),xe=_e.displayName,Ve=_e.tags,He=_e.description,Ue=(0,a.useMemo)((function(){var t;return[{label:a.createElement(T.Z,{count:$.paging.total,id:f.M8.API_ENDPOINT,isActive:D===f.M8.API_ENDPOINT,name:e("label.endpoint-plural")}),key:f.M8.API_ENDPOINT,children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(Ie.Z,{isVersionView:!0,apiCollectionDetails:Y,apiEndpoints:$,apiEndpointsLoading:q,currentEndpointsPage:te,description:He,endpointPaginationHandler:Ce})),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:ue,dataProducts:null!==(t=null==Y?void 0:Y.dataProducts)&&void 0!==t?t:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{displayType:Me.F.READ_MORE,entityType:f.py.API_COLLECTION,key:e,permission:!1,selectedTags:Ve,showTaskHandler:!1,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,isActive:D===f.M8.CUSTOM_PROPERTIES,name:e("label.custom-property-plural")}),children:a.createElement("div",{className:"p-md"},a.createElement(g.t,{isVersionView:!0,entityDetails:Y,entityType:f.py.API_COLLECTION,hasEditAccess:!1,hasPermission:me}))}]}),[Ve,ue,He,Y,$,q,te,Ce,me]),Be=(0,a.useMemo)((function(){return I?a.createElement(Z.Z,null):me?a.createElement(a.Fragment,null,x?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:se,currentVersionData:Y,deleted:oe,displayName:xe,domainDisplayName:Ze,entityType:f.py.API_COLLECTION,ownerDisplayName:Ne,ownerRef:ge,tierDisplayName:De,version:y,onVersionClick:Le})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{className:"entity-details-page-tabs","data-testid":"tabs",defaultActiveKey:null!=D?D:f.M8.API_COLLECTION,items:Ue,onChange:Ae})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(y),entityType:f.py.API_COLLECTION,versionHandler:ke,versionList:z,onBack:Le})):a.createElement(M.Z,{type:Ee.Wx.PERMISSION})}),[I,me,x,se,Y,oe,xe,Ne,ge,De,y,Le,Ue,ke,z,Ze]);return(0,a.useEffect)((function(){(0,s.isEmpty)(b)||Te()}),[b]),(0,a.useEffect)((function(){(0,s.isUndefined)(U)||Se(U)}),[y,U]),a.createElement(re.Z,{className:"version-page-container",pageTitle:e("label.entity-version-detail-plural",{entity:(0,L.C_)(Y)})},Be)},Le=n(27353),_e=n(16909),xe=function(){var e=this,t=(0,c.$)().t,n=(0,r.k6)(),p=(0,pe.BL)().getEntityPermissionByFqn,y=(0,r.UO)(),D=y.version,b=y.tab,P=(0,fe.f)().fqn,O=(0,l.CR)((0,a.useState)(i.j2),2),R=O[0],w=O[1],I=(0,l.CR)((0,a.useState)({data:[],paging:{total:0}}),2),k=I[0],_=I[1],x=(0,l.CR)((0,a.useState)(Pe.Bd),2),V=x[0],H=x[1],U=(0,l.CR)((0,a.useState)(!0),2),B=U[0],F=U[1],Y=(0,l.CR)((0,a.useState)(!0),2),K=Y[0],J=Y[1],z=(0,l.CR)((0,a.useState)(!0),2),Q=z[0],W=z[1],q=(0,l.CR)((0,a.useState)(""),2),G=q[0],j=q[1],$=(0,l.CR)((0,a.useState)({}),2),X=$[0],ee=$[1],te=(0,l.CR)((0,a.useState)({}),2),ne=te[0],ae=te[1],ie=(0,a.useMemo)((function(){return V.ViewAll||V.ViewBasic}),[V]),le=(0,a.useMemo)((function(){return(0,N.Jf)(X,f.py.DATABASE_SCHEMA)}),[X]),se=le.tier,ce=le.owners,oe=le.breadcrumbLinks,ue=le.changeDescription,me=le.deleted,de=le.domain,ve=(0,a.useMemo)((function(){return(0,N.KW)(X.changeDescription,ce,se,de)}),[X.changeDescription,ce,se,de]),Ne=ve.ownerDisplayName,ge=ve.ownerRef,De=ve.tierDisplayName,Ze=ve.domainDisplayName,Te=(0,a.useCallback)((function(){return(0,l.mG)(e,void 0,void 0,(function(){var e;return(0,l.Jh)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),F(!0),[4,p(Oe.A.DATABASE,P)];case 1:return e=t.sent(),H(e),[3,3];case 2:return F(!1),[7];case 3:return[2]}}))}))}),[P,p,H]),he=(0,a.useCallback)((function(){return(0,l.mG)(e,void 0,void 0,(function(){var e,t;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,3,4]),F(!0),[4,(0,_e.Tf)(P,{include:ye.y.All})];case 1:return e=n.sent().id,j(null!=e?e:""),[4,(0,_e.Tu)(null!=e?e:"")];case 2:return t=n.sent(),ae(t),[3,4];case 3:return F(!1),[7];case 4:return[2]}}))}))}),[ie,P]),Se=(0,a.useCallback)((function(t){return(0,l.mG)(e,void 0,void 0,(function(){var e;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,3,4]),J(!0),ie?[4,(0,_e.AD)(t,D)]:[3,2];case 1:e=n.sent(),ee(e),n.label=2;case 2:return[3,4];case 3:return J(!1),[7];case 4:return[2]}}))}))}),[ie,D]),Ce=(0,a.useCallback)((function(t){return(0,l.mG)(e,void 0,void 0,(function(){var e;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:W(!0),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,(0,Ae.H8)((0,l.pi)((0,l.pi)({},t),{databaseSchema:P}))];case 2:return e=n.sent(),_(e),[3,4];case 3:return W(!1),[7];case 4:return[2]}}))}))}),[P]),be=(0,a.useMemo)((function(){return(0,N.rI)(X,ue)}),[X,ue]),Re=be.displayName,we=be.tags,Ie=be.description,ke=(0,a.useCallback)((function(e){var t,n=e.cursorType,a=e.currentPage;n&&Ce(((t={})[n]=k.paging[n],t)),w(a)}),[k,Ce]),xe=(0,a.useMemo)((function(){return{versionHandler:function(e){void 0===e&&(e=D),n.push((0,i.h4)(f.py.DATABASE_SCHEMA,P,e,b))},backHandler:function(){n.push((0,i.EK)(f.py.DATABASE_SCHEMA,P,b))}}}),[P,P,b]),Ve=xe.versionHandler,He=xe.backHandler,Ue=function(e){n.push((0,i.h4)(f.py.DATABASE_SCHEMA,P,String(D),e))},Be=(0,a.useMemo)((function(){var e;return[{label:a.createElement(T.Z,{id:f.M8.TABLE,name:t("label.table-plural")}),key:f.M8.TABLE,children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(Le.Z,{isVersionView:!0,currentTablesPage:R,databaseSchemaDetails:X,description:Ie,tableData:k,tableDataLoading:Q,tablePaginationHandler:ke})),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:de,dataProducts:null!==(e=X.dataProducts)&&void 0!==e?e:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{displayType:Me.F.READ_MORE,entityType:f.py.DATABASE_SCHEMA,key:e,permission:!1,selectedTags:we,showTaskHandler:!1,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:t("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:X,entityType:f.py.DATABASE_SCHEMA,hasEditAccess:!1,hasPermission:ie})}]}),[R,X,Ie,k,Q,ke,we]),Fe=(0,a.useMemo)((function(){return B?a.createElement(Z.Z,null):ie?a.createElement(a.Fragment,null,K?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:oe,currentVersionData:X,deleted:me,displayName:Re,domainDisplayName:Ze,entityType:f.py.DATABASE,ownerDisplayName:Ne,ownerRef:ge,tierDisplayName:De,version:D,onVersionClick:He})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{className:"entity-details-page-tabs","data-testid":"tabs",defaultActiveKey:null!=b?b:f.M8.TABLE,items:Be,onChange:Ue})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(D),entityType:f.py.DATABASE_SCHEMA,versionHandler:Ve,versionList:ne,onBack:He})):a.createElement(M.Z,{type:Ee.Wx.PERMISSION})}),[B,ie,K,oe,X,me,Re,Ne,ge,De,D,He,Be,Ve,ne,Ze]);return(0,a.useEffect)((function(){(0,s.isEmpty)(P)||Te()}),[P]),(0,a.useEffect)((function(){ie&&he()}),[P,ie]),(0,a.useEffect)((function(){G&&Se(G)}),[D,G]),(0,a.useEffect)((function(){(0,s.isEmpty)(X)||Ce()}),[X]),a.createElement(re.Z,{className:"version-page-container",pageTitle:t("label.entity-version-detail-plural",{entity:(0,L.C_)(X)})},Fe)},Ve=n(82507),He=function(){var e=this,t=(0,c.$)().t,n=(0,r.k6)(),p=(0,pe.BL)().getEntityPermissionByFqn,y=(0,r.UO)(),b=y.version,P=y.tab,O=(0,fe.f)().fqn,R=(0,l.CR)((0,a.useState)(Pe.Bd),2),w=R[0],I=R[1],k=(0,l.CR)((0,a.useState)(!0),2),_=k[0],x=k[1],V=(0,l.CR)((0,a.useState)(!0),2),H=V[0],U=V[1],B=(0,l.CR)((0,a.useState)(""),2),F=B[0],Y=B[1],K=(0,l.CR)((0,a.useState)({}),2),J=K[0],z=K[1],Q=(0,l.CR)((0,a.useState)({}),2),W=Q[0],q=Q[1],G=(0,a.useMemo)((function(){return(0,N.Jf)(J,f.py.DATABASE)}),[J]),j=G.tier,$=G.owners,X=G.breadcrumbLinks,ee=G.changeDescription,te=G.deleted,ne=G.domain,ae=(0,a.useMemo)((function(){return w.ViewAll||w.ViewBasic}),[w]),ie=(0,a.useMemo)((function(){return(0,N.KW)(J.changeDescription,$,j,ne)}),[J.changeDescription,$,j,ne]),le=ie.ownerDisplayName,se=ie.ownerRef,ce=ie.tierDisplayName,oe=ie.domainDisplayName,ue=(0,a.useCallback)((function(){return(0,l.mG)(e,void 0,void 0,(function(){var e;return(0,l.Jh)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,,2,3]),x(!0),[4,p(Oe.A.DATABASE,O)];case 1:return e=t.sent(),I(e),[3,3];case 2:return x(!1),[7];case 3:return[2]}}))}))}),[O,p,I]),me=(0,a.useCallback)((function(){return(0,l.mG)(e,void 0,void 0,(function(){var e,t;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,3,4]),x(!0),[4,(0,_e.o6)(O,{include:ye.y.All})];case 1:return e=n.sent().id,Y(null!=e?e:""),[4,(0,_e.Wl)(null!=e?e:"")];case 2:return t=n.sent(),q(t),[3,4];case 3:return x(!1),[7];case 4:return[2]}}))}))}),[ae,O]),de=(0,a.useCallback)((function(t){return(0,l.mG)(e,void 0,void 0,(function(){var e;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,3,4]),U(!0),ae?[4,(0,_e.ZE)(t,b)]:[3,2];case 1:e=n.sent(),z(e),n.label=2;case 2:return[3,4];case 3:return U(!1),[7];case 4:return[2]}}))}))}),[ae,b]),ve=(0,a.useMemo)((function(){return{versionHandler:function(e){void 0===e&&(e=b),n.push((0,i.h4)(f.py.DATABASE,O,e,P))},backHandler:function(){n.push((0,i.EK)(f.py.DATABASE,O,P))}}}),[O,O,P]),Ne=ve.versionHandler,ge=ve.backHandler,De=function(e){n.push((0,i.h4)(f.py.DATABASE,O,String(b),e))},Ze=(0,a.useMemo)((function(){return(0,N.rI)(J,ee)}),[J,ee]),Te=Ze.displayName,he=Ze.tags,Se=Ze.description,Ae=(0,a.useMemo)((function(){var e;return[{label:a.createElement(T.Z,{id:f.M8.SCHEMA,name:t("label.schema-plural")}),key:f.M8.SCHEMA,children:a.createElement(o.Z,{gutter:[0,16],wrap:!1},a.createElement(u.Z,{className:"p-t-sm m-x-lg",flex:"auto"},a.createElement(o.Z,{gutter:[16,16]},a.createElement(u.Z,{"data-testid":"description-container",span:24},a.createElement(D.Z,{description:Se,entityType:f.py.DATABASE,showActions:!1})),a.createElement(u.Z,{span:24},a.createElement(Ve.m,null)))),a.createElement(u.Z,{className:"entity-tag-right-panel-container","data-testid":"entity-right-panel",flex:"220px"},a.createElement(m.Z,{className:"w-full",direction:"vertical",size:"large"},a.createElement(S.Z,{activeDomain:ne,dataProducts:null!==(e=J.dataProducts)&&void 0!==e?e:[],hasPermission:!1}),Object.keys(v.c6).map((function(e){return a.createElement(C.Z,{displayType:Me.F.READ_MORE,entityType:f.py.DATABASE,key:e,permission:!1,selectedTags:he,showTaskHandler:!1,tagType:v.c6[e]})})))))},{key:f.M8.CUSTOM_PROPERTIES,label:a.createElement(T.Z,{id:f.M8.CUSTOM_PROPERTIES,name:t("label.custom-property-plural")}),children:a.createElement(g.t,{isVersionView:!0,entityDetails:J,entityType:f.py.DATABASE,hasEditAccess:!1,hasPermission:ae})}]}),[he,Se]),Ce=(0,a.useMemo)((function(){return _?a.createElement(Z.Z,null):ae?a.createElement(a.Fragment,null,H?a.createElement(Z.Z,null):a.createElement("div",{className:E()("version-data")},a.createElement(o.Z,{gutter:[0,12]},a.createElement(u.Z,{span:24},a.createElement(h.ZP,{breadcrumbLinks:X,currentVersionData:J,deleted:te,displayName:Te,domainDisplayName:oe,entityType:f.py.DATABASE,ownerDisplayName:le,ownerRef:se,tierDisplayName:ce,version:b,onVersionClick:ge})),a.createElement(u.Z,{span:24},a.createElement(d.Z,{className:"entity-details-page-tabs","data-testid":"tabs",defaultActiveKey:null!=P?P:f.M8.SCHEMA,items:Ae,onChange:De})))),a.createElement(A.Z,{currentVersion:(0,s.toString)(b),entityType:f.py.DATABASE,versionHandler:Ne,versionList:W,onBack:ge})):a.createElement(M.Z,{type:Ee.Wx.PERMISSION})}),[_,ae,H,X,J,te,Te,le,se,ce,b,ge,Ae,Ne,W,oe]);return(0,a.useEffect)((function(){(0,s.isEmpty)(O)||ue()}),[O]),(0,a.useEffect)((function(){ae&&me()}),[O,ae]),(0,a.useEffect)((function(){F&&de(F)}),[b,F]),a.createElement(re.Z,{className:"version-page-container",pageTitle:t("label.entity-version-detail-plural",{entity:(0,L.C_)(J)})},Ce)},Ue=n(93379),Be=n.n(Ue),Fe=n(7795),Ye=n.n(Fe),Ke=n(90569),Je=n.n(Ke),ze=n(3565),Qe=n.n(ze),We=n(19216),qe=n.n(We),Ge=n(44589),je=n.n(Ge),$e=n(95806),Xe={};Xe.styleTagTransform=je(),Xe.setAttributes=Qe(),Xe.insert=Je().bind(null,"head"),Xe.domAPI=Ye(),Xe.insertStyleElement=qe(),Be()($e.Z,Xe),$e.Z&&$e.Z.locals&&$e.Z.locals;var et=function(){var e=(0,c.$)().t,t=(0,r.k6)(),n=(0,l.CR)((0,a.useState)(""),2),o=n[0],u=n[1],m=(0,l.CR)((0,a.useState)({}),2),d=m[0],p=m[1],E=(0,r.UO)(),y=E.entityType,v=E.version,N=E.tab,g=(0,fe.f)().fqn,D=(0,pe.BL)().getEntityPermissionByFqn,T=(0,l.CR)((0,a.useState)(Pe.Bd),2),h=T[0],S=T[1],A=(0,l.CR)((0,a.useState)(!0),2),C=A[0],b=A[1],O=(0,l.CR)((0,a.useState)({}),2),R=O[0],w=O[1],I=(0,l.CR)((0,a.useState)(!0),2),k=I[0],_=I[1],V=(0,a.useCallback)((function(){return t.push((0,i.EK)(y,g,N))}),[y,g,N]),H=(0,a.useCallback)((function(e){void 0===e&&(e=v),N?t.push((0,i.h4)(y,g,e,N)):t.push((0,i.h4)(y,g,e))}),[y,g,N]),U=(0,a.useCallback)((function(e){return(0,l.mG)(void 0,void 0,void 0,(function(){var t;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:if((0,s.isEmpty)(g))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,D(e,g)];case 2:return t=n.sent(),S(t),[3,4];case 3:return n.sent(),[3,4];case 4:return[2]}}))}))}),[g,D,S]),B=(0,a.useCallback)((function(){return(0,l.mG)(void 0,void 0,void 0,(function(){return(0,l.Jh)(this,(function(e){switch(e.label){case 0:b(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,U(be.Z.getResourceEntityFromEntityType(y))];case 2:return e.sent(),[3,4];case 3:return b(!1),[7];case 4:return[2]}}))}))}),[y,U]),F=(0,a.useMemo)((function(){return h.ViewAll||h.ViewBasic}),[h]),K=(0,a.useCallback)((function(){return(0,l.mG)(void 0,void 0,void 0,(function(){var e,t;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:b(!0),n.label=1;case 1:switch(n.trys.push([1,,34,35]),y){case f.py.TABLE:return[3,2];case f.py.TOPIC:return[3,5];case f.py.DASHBOARD:return[3,8];case f.py.PIPELINE:return[3,11];case f.py.MLMODEL:return[3,14];case f.py.CONTAINER:return[3,17];case f.py.SEARCH_INDEX:return[3,20];case f.py.DASHBOARD_DATA_MODEL:return[3,23];case f.py.STORED_PROCEDURE:return[3,26];case f.py.API_ENDPOINT:return[3,29]}return[3,32];case 2:return[4,(0,Ae.gs)(g,{include:ye.y.All})];case 3:return e=n.sent().id,u(e),[4,(0,Ae.Em)(e)];case 4:return t=n.sent(),w(t),[3,33];case 5:return[4,(0,Ce.mp)(g,{include:ye.y.All})];case 6:return e=n.sent().id,u(e),[4,(0,Ce.qW)(e)];case 7:return t=n.sent(),w(t),[3,33];case 8:return[4,(0,Ne.qK)(g,{include:ye.y.All})];case 9:return e=n.sent().id,u(e),[4,(0,Ne.Hh)(e)];case 10:return t=n.sent(),w(t),[3,33];case 11:return[4,(0,Ze.JQ)(g,{include:ye.y.All})];case 12:return e=n.sent().id,u(e),[4,(0,Ze.zR)(e)];case 13:return t=n.sent(),w(t),[3,33];case 14:return[4,(0,De.Lg)(g,{include:ye.y.All})];case 15:return e=n.sent().id,u(e),[4,(0,De.nG)(e)];case 16:return t=n.sent(),w(t),[3,33];case 17:return[4,(0,he.Qk)(g,{include:ye.y.All})];case 18:return e=n.sent().id,u(e),[4,(0,he.Jc)(e)];case 19:return t=n.sent(),w(t),[3,33];case 20:return[4,(0,Te.h$)(g,{include:ye.y.All})];case 21:return e=n.sent().id,u(e),[4,(0,Te.RF)(e)];case 22:return t=n.sent(),w(t),[3,33];case 23:return[4,(0,ge.rJ)(g,{include:ye.y.All})];case 24:return e=n.sent().id,u(null!=e?e:""),[4,(0,ge.$3)(null!=e?e:"")];case 25:return t=n.sent(),w(t),[3,33];case 26:return[4,(0,Se.mm)(g,{include:ye.y.All})];case 27:return e=n.sent().id,u(null!=e?e:""),[4,(0,Se.rp)(null!=e?e:"")];case 28:return t=n.sent(),w(t),[3,33];case 29:return[4,(0,ve.NQ)(g,{include:ye.y.All})];case 30:return e=n.sent().id,u(null!=e?e:""),[4,(0,ve.qh)(null!=e?e:"")];case 31:return t=n.sent(),w(t),[3,33];case 32:return[3,33];case 33:return[3,35];case 34:return b(!1),[7];case 35:return[2]}}))}))}),[y,g,F]),J=(0,a.useCallback)((function(e){return(0,l.mG)(void 0,void 0,void 0,(function(){var t;return(0,l.Jh)(this,(function(n){switch(n.label){case 0:_(!0),n.label=1;case 1:if(n.trys.push([1,,24,25]),!F)return[3,23];switch(y){case f.py.TABLE:return[3,2];case f.py.TOPIC:return[3,4];case f.py.DASHBOARD:return[3,6];case f.py.PIPELINE:return[3,8];case f.py.MLMODEL:return[3,10];case f.py.CONTAINER:return[3,12];case f.py.SEARCH_INDEX:return[3,14];case f.py.DASHBOARD_DATA_MODEL:return[3,16];case f.py.STORED_PROCEDURE:return[3,18];case f.py.API_ENDPOINT:return[3,20]}return[3,22];case 2:return[4,(0,Ae.n2)(e,v)];case 3:return t=n.sent(),p(t),[3,23];case 4:return[4,(0,Ce.o_)(e,v)];case 5:return t=n.sent(),p(t),[3,23];case 6:return[4,(0,Ne.O3)(e,v)];case 7:return t=n.sent(),p(t),[3,23];case 8:return[4,(0,Ze.lh)(e,v)];case 9:return t=n.sent(),p(t),[3,23];case 10:return[4,(0,De.P8)(e,v)];case 11:return t=n.sent(),p(t),[3,23];case 12:return[4,(0,he.Ly)(e,v)];case 13:return t=n.sent(),p(t),[3,23];case 14:return[4,(0,Te.PR)(e,v)];case 15:return t=n.sent(),p(t),[3,23];case 16:return[4,(0,ge.Cb)(e,v)];case 17:return t=n.sent(),p(t),[3,23];case 18:return[4,(0,Se.gt)(e,v)];case 19:return t=n.sent(),p(t),[3,23];case 20:return[4,(0,ve._F)(e,v)];case 21:return t=n.sent(),p(t),[3,23];case 22:return[3,23];case 23:return[3,25];case 24:return _(!1),[7];case 25:return[2]}}))}))}),[y,v,F]),z=(0,a.useMemo)((function(){var e;return{owners:d.owners,tier:(0,x.Zk)(null!==(e=d.tags)&&void 0!==e?e:[]),domain:d.domain,slashedEntityName:(0,L.W7)(d,y)}}),[d,y]),W=z.owners,X=z.domain,ee=z.tier,te=z.slashedEntityName;return(0,a.useEffect)((function(){B()}),[g]),(0,a.useEffect)((function(){F&&K()}),[g,F]),(0,a.useEffect)((function(){o&&J(o)}),[v,o]),a.createElement(re.Z,{className:"version-page-container",pageTitle:e("label.entity-detail-plural",{entity:(0,L.C_)(d)})},function(){if(C)return a.createElement(Z.Z,null);if(!F)return a.createElement(M.Z,{type:Ee.Wx.PERMISSION});var e=null;switch(y){case f.py.TABLE:return a.createElement(j,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedTableName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.TOPIC:return a.createElement(de,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedTopicName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.DASHBOARD:return a.createElement(Q,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedDashboardName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.PIPELINE:return a.createElement(le,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedPipelineName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.MLMODEL:return a.createElement(ae,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedMlModelName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.CONTAINER:return a.createElement(Y,{backHandler:V,breadCrumbList:te,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.SEARCH_INDEX:return a.createElement(se,{backHandler:V,breadCrumbList:te,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.DASHBOARD_DATA_MODEL:return a.createElement(q,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedDataModelName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.STORED_PROCEDURE:return a.createElement(G,{backHandler:V,currentVersionData:d,dataProducts:d.dataProducts,deleted:d.deleted,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedTableName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.API_ENDPOINT:return a.createElement(P,{backHandler:V,currentVersionData:d,domain:X,entityPermissions:h,isVersionLoading:k,owners:W,slashedApiEndpointName:te,tier:ee,version:v,versionHandler:H,versionList:R});case f.py.DATABASE:return a.createElement(He,null);case f.py.DATABASE_SCHEMA:return a.createElement(xe,null);case f.py.DATA_PRODUCT:return a.createElement($.Z,null);case f.py.API_COLLECTION:return a.createElement(ke,null);default:return(e=be.Z.getEntityDetailComponent(y))&&a.createElement(e,null)}}())},tt=function(){var e=(0,r.UO)().entityType,t=(0,a.useMemo)((function(){return be.Z.getEntityDetailComponent(e)}),[e]);return a.createElement(r.rs,null,a.createElement(r.AW,{exact:!0,component:et,path:[i.Z6.ENTITY_VERSION_DETAILS_WITH_TAB,i.Z6.ENTITY_VERSION_DETAILS]}),t?a.createElement(r.AW,{exact:!0,component:t,path:[i.Z6.ENTITY_DETAILS,i.Z6.ENTITY_DETAILS_WITH_TAB,i.Z6.ENTITY_DETAILS_WITH_SUB_TAB]}):a.createElement(r.l_,{to:i.Z6.NOT_FOUND}))}},38105:function(e,t,n){n.d(t,{bX:function(){return P},CT:function(){return M},ZP:function(){return O}});var a=n(53014),r=n(27049),i=n(19650),l=n(56256),s=n(71230),c=n(15746),o=n(94199),u=n(71577),m=n(96486),d=n(67294),p=n(68432),E=n(75111),y=n(66318),f=n(50404),v=n(91631),N=n(64632),g=n(23031),D=n(49795),Z=n(62761),T=n(58369),h=n(24671),S=n(902),A=n(3363),C=n(40734),b=n(36169),P=function(e){var t=e.label,n=e.value;return d.createElement(d.Fragment,null,d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"}),d.createElement(i.Z,{align:"center"},d.createElement(l.Z.Text,{className:"self-center text-xs whitespace-nowrap"},!(0,m.isEmpty)(t)&&d.createElement("span",{className:"text-grey-muted"},t+": ")),d.createElement(l.Z.Text,{className:"self-center text-xs whitespace-nowrap font-medium"},(0,C.hl)(n))))},M=function(e){var t=e.value,n=e.href;return d.createElement(d.Fragment,null,d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"}),d.createElement("div",{className:"d-flex items-center text-xs"},d.createElement(l.Z.Link,{href:n,style:{fontSize:"12px"}},(0,C.hl)(t))))},O=function(e){var t,n,C,O=e.breadcrumbLinks,R=e.version,w=e.deleted,I=e.displayName,k=e.currentVersionData,L=e.ownerDisplayName,_=e.tierDisplayName,x=e.ownerRef,V=e.onVersionClick,H=e.entityType,U=e.serviceName,B=e.domainDisplayName,F=(0,p.$)().t,Y=(0,d.useMemo)((function(){return function(e,t){var n,i=null!==(n=t.changeDescription)&&void 0!==n?n:{};switch(e){case N.py.TOPIC:var s=t,c=(0,S._Y)(i,T.Sn.PARTITIONS,(0,m.toString)(s.partitions)),o=(0,S._Y)(i,T.Sn.REPLICATION_FACTOR,(0,m.toString)(s.replicationFactor));return d.createElement(d.Fragment,null,!(0,m.isEmpty)(c)&&d.createElement(P,{label:(0,g.t)("label.partition-plural"),value:c}),!(0,m.isEmpty)(o)&&d.createElement(P,{label:(0,g.t)("label.replication-factor"),value:o}));case N.py.PIPELINE:case N.py.DASHBOARD:return function(e,t){var n=e,i=(0,S._Y)(t,T.Sn.SOURCE_URL,(0,m.toString)(n.sourceUrl)),s=(0,S.gY)(T.Sn.SOURCE_URL,t,!0),c=(0,S.Ez)(s);return(0,m.isEmpty)(i)?null:d.createElement(d.Fragment,null,(0,m.isUndefined)(c)?d.createElement(d.Fragment,null,d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"}),d.createElement("div",{className:"d-flex items-center text-xs"},d.createElement(l.Z.Link,{href:n.sourceUrl,style:{fontSize:"12px"}},(0,h.C_)(n)," "),d.createElement(a.Z,{className:"m-l-xss",component:D.ReactComponent,style:Z.gA}))):d.createElement(M,{href:n.sourceUrl,value:i}))}(t,i);default:return null}}(H,k)}),[H,k]),K=(0,d.useMemo)((function(){return A.Z.getServiceTypeLogo(k)}),[k]);return d.createElement(s.Z,{className:"p-x-lg",gutter:[8,12],justify:"space-between"},d.createElement(c.Z,{className:"self-center",span:21},d.createElement(s.Z,{gutter:[16,12]},d.createElement(c.Z,{span:24},d.createElement(b.Z,{titleLinks:O})),d.createElement(c.Z,{span:24},d.createElement(v.Z,{deleted:w,displayName:I,icon:k.serviceType&&d.createElement("img",{className:"h-9",src:K}),name:null==k?void 0:k.name,serviceName:null!=U?U:""})),d.createElement(c.Z,{span:24},d.createElement("div",{className:"d-flex no-wrap"},H!==N.py.METADATA_SERVICE&&d.createElement(d.Fragment,null,d.createElement(y.y,{domain:k.domain,domainDisplayName:B,entityFqn:null!==(t=k.fullyQualifiedName)&&void 0!==t?t:"",entityId:null!==(n=k.id)&&void 0!==n?n:"",entityType:H,hasPermission:!1}),d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"})),d.createElement(f.V,{ownerDisplayName:L,owners:null!==(C=null==k?void 0:k.owners)&&void 0!==C?C:x}),d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"}),d.createElement(i.Z,null,_?d.createElement("span",{className:"font-medium text-xs","data-testid":"Tier"},_):d.createElement("span",{className:"font-medium text-xs","data-testid":"Tier"},F("label.no-entity",{entity:F("label.tier")}))),Y)))),d.createElement(c.Z,{span:3},d.createElement(s.Z,{justify:"end"},d.createElement(c.Z,null,d.createElement(o.Z,{title:F("label.exit-version-history")},d.createElement(u.Z,{className:"w-16 p-0","data-testid":"version-button",icon:d.createElement(a.Z,{component:E.ReactComponent}),onClick:V},d.createElement(l.Z.Text,null,R)))))))}}}]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy