Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
assets.7548.9bf1d89926b9972b5b0a.js Maven / Gradle / Ivy
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[7548],{5519:function(e,t,n){n.r(t),n.d(t,{default:function(){return He}});var i,a,r,s,l,c,o,u,d,m,f,p,g,v=n(70655),E=n(71230),h=n(15746),y=n(19650),C=n(94199),S=n(71577),b=n(25499),w=n(34901),A=n(96486),N=n(67294),k=n(68432),I=n(15137),Z=n(16296),R=n(26396),D=n(35850),G=n(75705),P=n(8074),T=n(12028),M=n(56256),O=n(76),B=n(62761),x=n(64632),V=n(34530),_=n(802),L=n(66537),J=n(30314),z=n(24671),U=n(46321),j=n(71112),H=n(38048),q=n(37565),W=function(){var e=(0,k.$)().t,t=(0,L.f)().fqn,n=(0,v.CR)((0,N.useState)(),2),i=n[0],a=n[1],r=(0,v.CR)((0,N.useState)(!1),2),s=r[0],l=r[1],c=(0,_.C)(),o=c.currentPage,u=c.pageSize,d=c.paging,m=c.handlePageChange,f=c.handlePageSizeChange,p=c.handlePagingChange,g=c.showPagination,y=(0,v.CR)((0,N.useState)(!0),2),C=y[0],S=y[1],b=(0,N.useMemo)((function(){return[{title:e("label.name"),dataIndex:"displayName",key:"displayName",width:350,render:function(e,t){var n=(0,z.C_)(t);return N.createElement("div",{className:"d-inline-flex w-max-90"},N.createElement(O.Link,{className:"break-word","data-testid":"data-model-"+n,to:(0,B.EK)(x.py.DASHBOARD_DATA_MODEL,t.fullyQualifiedName||"")},n))}},{title:e("label.description"),dataIndex:"description",key:"description",render:function(t){return!(0,A.isUndefined)(t)&&t.trim()?N.createElement(H.Z,{markdown:t}):N.createElement("span",{className:"text-grey-muted"},e("label.no-entity",{entity:e("label.description")}))}}]}),[]),w=(0,N.useCallback)((function(e){return(0,v.mG)(void 0,void 0,void 0,(function(){var n,i,r,l;return(0,v.Jh)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),S(!0),[4,(0,J.R9)((0,v.pi)({service:t,limit:u,include:s?V.y.Deleted:V.y.NonDeleted},e))];case 1:return n=c.sent(),i=n.data,r=n.paging,a(i),p(r),[3,4];case 2:return l=c.sent(),(0,U.Eo)(l),a([]),p(B.OQ),[3,4];case 3:return S(!1),[7];case 4:return[2]}}))}))}),[t,u,s]);return(0,N.useEffect)((function(){w()}),[u,s]),N.createElement(E.Z,{gutter:[0,16]},N.createElement(h.Z,{className:"p-t-sm p-x-lg",span:24},N.createElement(E.Z,{justify:"end"},N.createElement(h.Z,null,N.createElement(T.Z,{checked:s,"data-testid":"show-deleted",onClick:function(e){l(e),m(B.j2),f(B.bu)}}),N.createElement(M.Z.Text,{className:"m-l-xs"},e("label.deleted"))," "))),N.createElement(h.Z,{className:"p-x-lg","data-testid":"table-container",span:24},N.createElement(q.Z,{bordered:!0,className:"mt-4 table-shadow",columns:b,"data-testid":"data-models-table",dataSource:i,loading:C,locale:{emptyText:N.createElement(R.Z,{className:"m-y-md"})},pagination:!1,rowKey:"id",size:"small"})),N.createElement(h.Z,{className:"p-b-sm",span:24},g&&N.createElement(j.Z,{currentPage:o,pageSize:u,paging:d,pagingHandler:function(e){var t,n=e.cursorType,i=e.currentPage;n&&w(((t={})[n]=d[n],t)),m(i)},onShowSizeChange:f})))},F=n(60421),Q=n(76709),K=n(46481),Y=n(97354),$=n(65898),X=n(59817),ee=n(70866),te=n(13013),ne=n(49928);!function(e){e.Auth0="auth0",e.AwsCognito="aws-cognito",e.Azure="azure",e.Basic="basic",e.CustomOidc="custom-oidc",e.Google="google",e.LDAP="ldap",e.Okta="okta",e.Openmetadata="openmetadata",e.Saml="saml"}(i||(i={})),function(e){e.MysqlPymysql="mysql+pymysql",e.PgspiderPsycopg2="pgspider+psycopg2",e.PostgresqlPsycopg2="postgresql+psycopg2"}(a||(a={})),function(e){e.Allow="allow",e.Disable="disable",e.Prefer="prefer",e.Require="require",e.VerifyCA="verify-ca",e.VerifyFull="verify-full"}(r||(r={})),function(e){e.Mysql="Mysql",e.Postgres="Postgres"}(s||(s={})),function(e){e.Batch="batch",e.Stream="stream"}(l||(l={})),function(e){e.En="EN",e.Jp="JP",e.Zh="ZH"}(c||(c={})),function(e){e.Airflow="airflow",e.Env="env",e.Noop="noop"}(o||(o={})),function(e){e.Aws="aws",e.AwsSsm="aws-ssm",e.AzureKv="azure-kv",e.DB="db",e.Gcp="gcp",e.InMemory="in-memory",e.ManagedAws="managed-aws",e.ManagedAwsSsm="managed-aws-ssm",e.ManagedAzureKv="managed-azure-kv"}(u||(u={})),function(e){e.Alation="Alation",e.AlationSink="AlationSink",e.Amundsen="Amundsen",e.Atlas="Atlas",e.MetadataES="MetadataES",e.OpenMetadata="OpenMetadata"}(d||(d={})),function(e){e.Ignore="ignore",e.NoSSL="no-ssl",e.Validate="validate"}(m||(m={})),function(e){e.Automated="Automated",e.Derived="Derived",e.Manual="Manual",e.Propagated="Propagated"}(f||(f={})),function(e){e.Classification="Classification",e.Glossary="Glossary"}(p||(p={})),function(e){e.Confirmed="Confirmed",e.Suggested="Suggested"}(g||(g={}));var ie=n(5302),ae=n(502),re=n(50156),se=n(96840),le=function(e){var t=e.serviceDetails,n=e.pipelineType,i=e.serviceCategory,a=e.serviceName,r=e.ingestionList,s=(0,I.k6)(),l=(0,N.useMemo)((function(){var e,n;return(null===(n=null===(e=null==t?void 0:t.connection)||void 0===e?void 0:e.config)||void 0===n?void 0:n.type)===d.OpenMetadata}),[t]),c=(0,N.useMemo)((function(){return(0,re.Kz)(t)}),[t]),o=(0,N.useCallback)((function(e){s.push((0,se.sT)(i,a,e))}),[i,a]),u=(0,N.useMemo)((function(){return r.find((function(e){return e.pipelineType===ie.Hz.Metadata}))}),[r]),m=(0,N.useCallback)((function(){return u?void 0:o(null!=n?n:ie.Hz.Metadata)}),[u,n,o]),f=(0,N.useMemo)((function(){return r.some((function(e){return e.pipelineType===ie.Hz.DataInsight}))}),[r]),p=(0,N.useMemo)((function(){return(0,re.nH)(c,l,r,n)}),[n,c,l,r]);return 0===p.length?null:N.createElement(ae.Z,{resource:"ingestionPipeline"},N.createElement(te.Z,{menu:{items:(0,re.vf)(p,f),onClick:function(e){o(e.key)}},placement:"bottomRight",trigger:["click"]},N.createElement(S.Z,{className:"flex-center gap-2","data-testid":"add-new-ingestion-button",type:"primary",onClick:m},(0,re.Hl)(u,n),u&&N.createElement(ne.ReactComponent,{height:14,width:14}))))},ce=n(15399),oe=function(e){var t=e.serviceName,n=e.serviceCategory,i=e.serviceDetails,a=e.ingestionPipelineList,r=e.ingestionPagingInfo,s=e.onIngestionWorkflowsUpdate,l=e.pipelineType,c=e.isLoading,o=e.handleIngestionListUpdate,u=e.searchText,d=e.handleSearchChange,m=e.onPageChange,f=e.airflowInformation,p=(0,k.$)().t,g=(0,K.BL)().permissions,y=(0,v.CR)((0,N.useState)(),2),C=y[0],S=y[1],b=(0,N.useMemo)((function(){return g.ingestionPipeline}),[g]),w=(0,N.useCallback)((function(e){S(e)}),[]),I=(0,N.useCallback)((function(e){return(0,v.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,v.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,(0,Y.g6)(e)];case 1:return(t=i.sent().data).id&&o((function(n){return n.map((function(n){return n.id===e?(0,v.pi)((0,v.pi)({},n),{enabled:t.enabled}):n}))})),[3,3];case 2:return n=i.sent(),(0,U.Eo)(n,p("server.unexpected-response")),[3,3];case 3:return[2]}}))}))}),[]),Z=(0,N.useCallback)((function(e,t){return(0,v.mG)(void 0,void 0,void 0,(function(){return(0,v.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,Y.FD)(e)];case 1:return n.sent(),(0,U.XA)(p("message.pipeline-action-success-message",{action:p("label.triggered-lowercase")})),S(e),[3,3];case 2:return n.sent(),(0,U.Eo)(p("server.ingestion-workflow-operation-error",{operation:p("label.triggering-lowercase"),displayName:t})),[3,3];case 3:return[2]}}))}))}),[]),R=(0,N.useCallback)((function(e,t){return(0,v.mG)(void 0,void 0,void 0,(function(){return(0,v.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,Y.aw)(e)];case 1:return n.sent(),(0,U.XA)(p("message.pipeline-action-success-message",{action:p("label.deployed-lowercase")})),setTimeout((function(){S(e)}),500),[3,3];case 2:return n.sent(),(0,U.Eo)(p("server.ingestion-workflow-operation-error",{operation:p("label.deploying-lowercase"),displayName:t})),[3,3];case 3:return[2]}}))}))}),[]),D=(0,N.useMemo)((function(){return f}),[f]),G=D.isAirflowAvailable,P=D.isFetchingStatus,T=D.platform,M=(0,N.useMemo)((function(){return b.Create&&T!==B.rr}),[b,T]),O=(0,N.useMemo)((function(){return P?N.createElement(ee.Z,{size:"default"}):M?N.createElement(le,{ingestionList:a,pipelineType:l,serviceCategory:n,serviceDetails:i,serviceName:t}):null}),[P,M,a,l,n,i,t]);return G?N.createElement(E.Z,{className:"mt-4","data-testid":"ingestion-details-container"},N.createElement(h.Z,{className:"d-flex justify-between",span:24},N.createElement("div",{className:"w-max-400 w-full"},N.createElement(X.Z,{placeholder:p("message.search-for-ingestion")+"...",searchValue:u,typingInterval:500,onSearch:d})),N.createElement("div",{className:"relative"},O)),N.createElement(h.Z,{span:24},N.createElement(ce.Z,{airflowInformation:f,deployIngestion:R,handleEnableDisableIngestion:I,handleIngestionListUpdate:o,handlePipelineIdToFetchStatus:w,ingestionData:a,ingestionPagingInfo:r,isLoading:c,isNumberBasedPaging:!(0,A.isEmpty)(u),pipelineIdToFetchStatus:C,pipelineType:l,serviceCategory:n,serviceName:t,triggerIngestion:Z,onIngestionWorkflowsUpdate:s,onPageChange:m}))):N.createElement($.Z,null)},ue=n(68628),de=n(91894),me=n(10815),fe=n(55846),pe=n(3363),ge=function(e){var t=e.connectionDetails,n=e.serviceCategory,i=e.serviceFQN,a=(0,v.CR)((0,N.useState)({}),2),r=a[0],s=a[1],l=(0,v.CR)((0,N.useState)(),2),c=l[0],o=l[1],u=function(e,t){return Object.keys(e).map((function(i){var a,s,l,c=e[i];if(!(0,A.isObject)(c)){if(i in fe.lR||(0,A.isNull)(c))return null;var o=t[i]?t[i]:{},d=o.description,m=o.format,f=o.title;return N.createElement(h.Z,{key:i,span:12},N.createElement(E.Z,null,N.createElement(h.Z,{className:"d-flex items-center",span:8},N.createElement(y.Z,{size:0},N.createElement("p",{className:"text-grey-muted m-0"},i||f,":"),N.createElement(C.Z,{position:"bottom",title:d,trigger:"hover"},N.createElement(ue.Z,{className:"m-x-xss",style:{color:"#C4C4C4"}})))),N.createElement(h.Z,{span:16},N.createElement(me.default,{readOnly:!0,className:"w-full border-none","data-testid":"input-field",type:"password"!==m?"text":"password",value:c}))))}if(n.slice(0,-1)===x.py.PIPELINE_SERVICE&&"connection"===i){var p=t[i].oneOf.filter((function(e){return e.title===c.type+"Connection"}))[0].properties;return u(c,p)}if(n.slice(0,-1)===x.py.DATABASE_SERVICE&&"credentials"===i)return p=t[i].definitions.gcpCredentialsPath,u(c,p);if(n.slice(0,-1)!==x.py.DATABASE_SERVICE||"configSource"!==i)return n.slice(0,-1)===x.py.METADATA_SERVICE&&"securityConfig"===i?(p=t[i].oneOf.filter((function(e){return e.title===fe.mf}))[0].properties,u(c,p)):n.slice(0,-1)===x.py.DASHBOARD_SERVICE&&"githubCredentials"===i?(p=null===(l=t[i].oneOf.find((function(e){return"GitHubCredentials"===e.title})))||void 0===l?void 0:l.properties,u(c,p)):u(c,t[i]&&t[i].properties?t[i].properties:{});if((0,A.isObject)(c.securityConfig)){if(c.securityConfig.gcpConfig)return(0,A.isObject)(c.securityConfig.gcpConfig)?u(c.securityConfig.gcpConfig,(0,A.get)(r,"definitions.GCPConfig.properties.securityConfig.definitions.GCPValues.properties",{})):u(c,(0,A.get)(r,"definitions.GCPConfig.properties.securityConfig.definitions.gcpCredentialsPath",{}));if(Object.keys(t[i]).includes("oneOf")){if((null===(a=c.securityConfig)||void 0===a?void 0:a.awsAccessKeyId)||(null===(s=c.securityConfig)||void 0===s?void 0:s.awsSecretAccessKey))return u(c.securityConfig,(0,A.get)(r,"definitions.S3Config.properties.securityConfig.properties",{}))}else if(Object.keys(t[i]).includes("$ref")){var g=t[i].$ref.split("/").splice(2);p=r.definitions[g];return u(c,p)}}}))};return(0,N.useEffect)((function(){switch(n.slice(0,-1)){case x.py.DATABASE_SERVICE:s(pe.Z.getDatabaseServiceConfig(i).schema);break;case x.py.DASHBOARD_SERVICE:s(pe.Z.getDashboardServiceConfig(i).schema);break;case x.py.MESSAGING_SERVICE:s(pe.Z.getMessagingServiceConfig(i).schema);break;case x.py.PIPELINE_SERVICE:s(pe.Z.getPipelineServiceConfig(i).schema);break;case x.py.MLMODEL_SERVICE:s(pe.Z.getMlModelServiceConfig(i).schema);break;case x.py.METADATA_SERVICE:s(pe.Z.getMetadataServiceConfig(i).schema);break;case x.py.STORAGE_SERVICE:s(pe.Z.getStorageServiceConfig(i).schema);break;case x.py.SEARCH_SERVICE:s(pe.Z.getSearchServiceConfig(i).schema);break;case x.py.API_SERVICE:s(pe.Z.getAPIServiceConfig(i).schema)}}),[n,i]),(0,N.useEffect)((function(){(0,A.isEmpty)(r)||o(u(t,r.properties))}),[r]),N.createElement(de.Z,null,N.createElement("div",{className:"d-flex flex-wrap p-xss","data-testid":"service-connection-details"},N.createElement(E.Z,{className:"w-full",gutter:[8,8]},c)))},ve=n(29108),Ee=n(61105),he=n(22653),ye=n(89204),Ce=n(85087),Se=n(19894),be=n(48794),we=n(22368),Ae=n(16909),Ne=n(42395),ke=n(52009),Ie=n(17888),Ze=n(51513),Re=n(99166),De=n(3556),Ge=n(45974),Pe=n(93895),Te=n(30213),Me=n(12981),Oe=n(75838),Be=n(40734),xe=n(73553),Ve=n(25213),_e=n(57081),Le=n(89011),Je=n(41346),ze=n(69167),Ue=n(38333),je=function(e){var t,n,i,a,r,s=this,l=e.serviceName,c=e.servicePermission,o=e.onDescriptionUpdate,u=e.showDeleted,d=e.onShowDeletedChange,m=e.data,f=e.isServiceLoading,p=e.paging,g=e.pagingHandler,C=e.currentPage,S=e.serviceDetails,b=e.saveUpdatedServiceData,w=(0,k.$)().t,Z=(0,I.UO)().serviceCategory,G=(0,L.f)().fqn,P=(0,v.CR)((0,N.useState)(!1),2),O=P[0],V=P[1],_=(0,Ue.Zk)(null!==(t=null==S?void 0:S.tags)&&void 0!==t?t:[]),J=(0,Ue.nD)(null!==(n=null==S?void 0:S.tags)&&void 0!==n?n:[]),z=function(e){return(0,v.mG)(s,void 0,void 0,(function(){var t,n;return(0,v.Jh)(this,(function(i){switch(i.label){case 0:return e?(t=(0,v.ev)((0,v.ev)([],(0,v.CR)(_?[_]:[])),(0,v.CR)(e)),n=(0,v.pi)((0,v.pi)({},S),{tags:t}),[4,b(n)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},U=(0,N.useCallback)((function(e){return(0,v.mG)(s,void 0,void 0,(function(){return(0,v.Jh)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),[4,o(e)];case 1:case 2:return t.sent(),[3,4];case 3:return V(!1),[7];case 4:return[2]}}))}))}),[]),H=(0,N.useMemo)((function(){return(0,ze.u)(Z)}),[Z]),q=(0,N.useMemo)((function(){return(0,Oe.Yz)(Z)}),[Z]),W=(0,N.useMemo)((function(){return{editTagsPermission:(c.EditTags||c.EditAll)&&!S.deleted,editDescriptionPermission:(c.EditDescription||c.EditAll)&&!S.deleted}}),[c,S]),F=W.editTagsPermission,Q=W.editDescriptionPermission;return N.createElement(E.Z,{gutter:[0,16],wrap:!1},N.createElement(h.Z,{className:"tab-content-height-with-resizable-panel",span:24},N.createElement(Le.Z,{firstPanel:{className:"entity-resizable-panel-container",children:N.createElement("div",{className:"p-t-sm m-x-lg"},N.createElement(E.Z,{gutter:[16,16]},N.createElement(h.Z,{"data-testid":"description-container",span:24},N.createElement(_e.Z,{description:S.description,entityFqn:G,entityName:l,entityType:q,hasEditAccess:Q,isEdit:O,showActions:!S.deleted,showCommentsIcon:!1,onCancel:function(){V(!1)},onDescriptionEdit:function(){V(!0)},onDescriptionUpdate:U})),N.createElement(h.Z,{span:24},N.createElement(E.Z,{justify:"end"},N.createElement(h.Z,null,N.createElement(T.Z,{checked:u,"data-testid":"show-deleted",onClick:d}),N.createElement(M.Z.Text,{className:"m-l-xs"},w("label.deleted"))," "))),N.createElement(h.Z,{"data-testid":"table-container",span:24},N.createElement(y.Z,{className:"w-full m-b-md",direction:"vertical",size:"large"},f?N.createElement(D.Z,null):N.createElement(Ve.Z,{bordered:!0,columns:H,"data-testid":"service-children-table",dataSource:m,locale:{emptyText:N.createElement(R.Z,{className:"m-y-md"})},pagination:!1,rowKey:"id",size:"small"}),Boolean(!(0,A.isNil)(p.after)||!(0,A.isNil)(p.before))&&!(0,A.isEmpty)(m)&&N.createElement(j.Z,{currentPage:C,pageSize:B.IV,paging:p,pagingHandler:g}))))),minWidth:800,flex:.87},secondPanel:{children:N.createElement("div",{"data-testid":"entity-right-panel"},N.createElement(Je.Z,{dataProducts:null!==(a=null===(i=S)||void 0===i?void 0:i.dataProducts)&&void 0!==a?a:[],domain:null===(r=S)||void 0===r?void 0:r.domain,editTagPermission:F,entityFQN:G,entityId:S.id,entityType:q,selectedTags:J,showDataProductContainer:q!==x.py.METADATA_SERVICE,showTaskHandler:!1,onTagSelectionChange:function(e){return(0,v.mG)(s,void 0,void 0,(function(){var t,n;return(0,v.Jh)(this,(function(i){switch(i.label){case 0:return e?(t=(null==J?void 0:J.filter((function(t){return e.map((function(e){return e.tagFQN})).includes(null==t?void 0:t.tagFQN)})))||[],n=(0,xe.eY)(e.filter((function(e){return!(null==t?void 0:t.map((function(e){return e.tagFQN})).includes(e.tagFQN))}))),[4,z((0,v.ev)((0,v.ev)([],(0,v.CR)(t)),(0,v.CR)(n)))]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))}})),minWidth:320,flex:.13,className:"entity-resizable-right-panel-container entity-resizable-panel-container"}})))},He=function(){var e=(0,k.$)().t,t=(0,be.N)().currentUser,n=(0,Se.w)(),i=(0,N.useMemo)((function(){return n}),[n]).isAirflowAvailable,a=(0,I.UO)(),r=a.serviceCategory,s=a.tab,l=(0,L.f)().fqn,c=(0,N.useMemo)((function(){return r===ye.u.METADATA_SERVICES}),[r]),o=(0,N.useMemo)((function(){return l===fe.rn}),[l]),u=(0,K.BL)().getEntityPermissionByFqn,d=(0,I.k6)(),m=(0,Ce.a)().isAdminUser,f=(0,_.C)(B.IV),p=(0,_.C)(B.IV),g=f.paging,T=f.currentPage,M=f.pageSize,O=f.handlePageChange,j=f.handlePagingChange,H=p.paging,q=p.currentPage,$=p.handlePageChange,X=p.handlePagingChange,ee=(0,v.CR)((0,N.useState)({}),2),te=ee[0],ne=ee[1],ie=(0,v.CR)((0,N.useState)([]),2),ae=ie[0],re=ie[1],le=(0,v.CR)((0,N.useState)(!o),2),ce=le[0],ue=le[1],de=(0,v.CR)((0,N.useState)(!1),2),me=de[0],pe=de[1],Ve=(0,v.CR)((0,N.useState)(!0),2),_e=Ve[0],Le=Ve[1],Je=(0,v.CR)((0,N.useState)(B.OQ),2),ze=Je[0],Ue=Je[1],He=(0,v.CR)((0,N.useState)([]),2),qe=He[0],We=He[1],Fe=(0,v.CR)((0,N.useState)(!1),2),Qe=Fe[0],Ke=Fe[1],Ye=(0,v.CR)((0,N.useState)(),2),$e=Ye[0],Xe=Ye[1],et=(0,v.CR)((0,N.useState)(Me.Bd),2),tt=et[0],nt=et[1],it=(0,v.CR)((0,N.useState)(""),2),at=it[0],rt=it[1],st=(0,N.useMemo)((function(){return s||(c?x.M8.INGESTIONS:(0,Oe.Vc)(r).toLowerCase())}),[s,r,c]),lt=(0,N.useCallback)((function(e){O(B.j2),rt(e)}),[O]),ct=(0,N.useCallback)((function(e){We(e)}),[]),ot=(0,N.useCallback)((function(e){j(e)}),[j]),ut=(0,N.useMemo)((function(){return Te.Z.getManageExtraOptions("databaseServices"===r?x.py.DATABASE_SERVICE:x.py.ALL,l,tt)}),[tt,l,r]),dt=(0,N.useCallback)((function(e){Ke(e),$(B.j2)}),[$]),mt=(0,N.useMemo)((function(){return(0,Oe.jz)(r)}),[r]),ft=(0,N.useMemo)((function(){return te}),[te]),pt=ft.version,gt=ft.deleted,vt=(0,N.useCallback)((function(){return(0,v.mG)(void 0,void 0,void 0,(function(){var e;return(0,v.Jh)(this,(function(t){switch(t.label){case 0:ue(!0),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,u((0,Oe.rq)(r),l)];case 2:return e=t.sent(),nt(e),[3,4];case 3:return ue(!1),[7];case 4:return[2]}}))}))}),[r,l]),Et=(0,N.useCallback)((function(){d.push((0,se.Pj)(null!=r?r:"",null!=l?l:""))}),[r,l]),ht=(0,N.useCallback)((function(e){e!==st&&d.push({pathname:(0,B.LE)(l,r,e)})}),[st,l,r]),yt=(0,N.useCallback)((function(e,t){return(0,v.mG)(void 0,void 0,void 0,(function(){var n;return(0,v.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,,2,3]),pe(!0),[4,(0,Y.Pj)({arrQueryFields:[x.GB.OWNERS,x.GB.PIPELINE_STATUSES],serviceFilter:l,serviceType:(0,Oe.Yz)(r),paging:e,pipelineType:fe._Z,limit:t})];case 1:return(n=i.sent()).data?(We(n.data),j(n.paging)):j({}),[3,3];case 2:return pe(!1),[7];case 3:return[2]}}))}))}),[l,r,g]),Ct=(0,N.useCallback)((function(e,t){return(0,v.mG)(void 0,void 0,void 0,(function(){var n,i,a,r,s;return(0,v.Jh)(this,(function(l){switch(l.label){case 0:return l.trys.push([0,,2,3]),pe(!0),[4,(0,Ie.w4)({pageNumber:t,pageSize:M,searchIndex:he.W.INGESTION_PIPELINE,query:"*"+(0,Be.Yd)((0,Be.i3)(null!=e?e:""))+"*",filters:"("+fe._Z.map((function(e,t){return"pipelineType:"+e+" "+(t0?e.map((function(e){var t;return l.createElement(o.Z,{showUserName:!0,"data-testid":"owner-data",displayName:e.displayName,key:e.id,profileWidth:20,type:e.type,userName:null!==(t=e.name)&&void 0!==t?t:""})})):l.createElement(a.Z.Text,{"data-testid":"no-owner-text"},"--")}},{title:(0,r.t)("label.tag-plural"),dataIndex:"tags",width:200,key:"tags",render:function(e,t){var n;return l.createElement(d.Z,{tags:null!==(n=t.tags)&&void 0!==n?n:[]})}}]),(0,i.CR)(f.u.DATABASE_SERVICES===e?[{title:(0,r.t)("label.usage"),dataIndex:"usageSummary",key:"usageSummary",render:function(e){var t,n;return l.createElement(a.Z.Text,null,(0,v.Vm)(null!==(n=null===(t=null==e?void 0:e.weeklyStats)||void 0===t?void 0:t.percentileRank)&&void 0!==n?n:0))}}]:[]))}}}]);