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

assets.8721.19249af1c25f962cdfb9.js Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[8721],{5869: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 2022 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.feature-source-info {\n  border-top: 1px solid rgba(220, 227, 236);\n  padding-top: 16px;\n}\n',""]),t.Z=l},75083: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},38105:function(e,t,n){n.d(t,{bX:function(){return b},CT:function(){return A},ZP:function(){return R}});var a=n(53014),r=n(27049),i=n(19650),l=n(56256),s=n(71230),c=n(15746),o=n(71577),u=n(96486),d=n(67294),m=n(68432),p=n(75111),E=n(88161),f=n(24053),y=n(22835),v=n(64632),N=n(23031),g=n(49795),Z=n(58369),h=n(24671),D=n(902),S=n(87078),T=n(40734),C=n(26387),b=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,u.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,T.hl)(n))))},A=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,T.hl)(t))))},R=function(e){var t,n,T,R=e.breadcrumbLinks,O=e.version,M=e.deleted,P=e.displayName,w=e.currentVersionData,L=e.ownerDisplayName,I=e.tierDisplayName,k=e.ownerRef,x=e.onVersionClick,V=e.entityType,_=e.serviceName,H=e.domainDisplayName,U=(0,m.$)().t,B=(0,d.useMemo)((function(){return function(e,t){var n,a=null!==(n=t.changeDescription)&&void 0!==n?n:{};switch(e){case v.py.TOPIC:var i=t,s=(0,D._Y)(a,Z.Sn.PARTITIONS,(0,u.toString)(i.partitions)),c=(0,D._Y)(a,Z.Sn.REPLICATION_FACTOR,(0,u.toString)(i.replicationFactor));return d.createElement(d.Fragment,null,!(0,u.isEmpty)(s)&&d.createElement(b,{label:(0,N.t)("label.partition-plural"),value:s}),!(0,u.isEmpty)(c)&&d.createElement(b,{label:(0,N.t)("label.replication-factor"),value:c}));case v.py.PIPELINE:case v.py.DASHBOARD:return function(e,t){var n=e,a=(0,D._Y)(t,Z.Sn.SOURCE_URL,(0,u.toString)(n.sourceUrl)),i=(0,D.gY)(Z.Sn.SOURCE_URL,t,!0),s=(0,D.Ez)(i);return(0,u.isEmpty)(a)?null:d.createElement(d.Fragment,null,(0,u.isUndefined)(s)?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(g.ReactComponent,{className:"m-l-xss ",width:14})," ")):d.createElement(A,{href:n.sourceUrl,value:a}))}(t,a);default:return null}}(V,w)}),[V,w]),F=(0,d.useMemo)((function(){var e;return S.Z.getServiceTypeLogo(null!==(e=w.serviceType)&&void 0!==e?e:"")}),[w.serviceType]);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(C.Z,{titleLinks:R})),d.createElement(c.Z,{span:24},d.createElement(y.Z,{deleted:M,displayName:P,icon:w.serviceType&&d.createElement("img",{className:"h-9",src:F}),name:null==w?void 0:w.name,serviceName:null!=_?_:""})),d.createElement(c.Z,{span:24},d.createElement("div",{className:"d-flex no-wrap"},V!==v.py.METADATA_SERVICE&&d.createElement(d.Fragment,null,d.createElement(E.y,{domain:w.domain,domainDisplayName:H,entityFqn:null!==(t=w.fullyQualifiedName)&&void 0!==t?t:"",entityId:null!==(n=w.id)&&void 0!==n?n:"",entityType:V,hasPermission:!1}),d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"})),d.createElement(f.V,{owner:null!==(T=null==w?void 0:w.owner)&&void 0!==T?T:k,ownerDisplayName:L}),d.createElement(r.Z,{className:"self-center m-x-sm",type:"vertical"}),d.createElement(i.Z,null,I?d.createElement("span",{className:"font-medium text-xs","data-testid":"Tier"},I):d.createElement("span",{className:"font-medium text-xs","data-testid":"Tier"},U("label.no-entity",{entity:U("label.tier")}))),B)))),d.createElement(c.Z,{span:3},d.createElement(s.Z,{justify:"end"},d.createElement(c.Z,null,d.createElement(o.Z,{className:"w-16 p-0","data-testid":"version-button",icon:d.createElement(a.Z,{component:p.ReactComponent}),onClick:x},d.createElement(l.Z.Text,null,O))))))}},33873:function(e,t,n){n.d(t,{Z:function(){return O}});var a=n(70655),r=n(60331),i=n(56256),l=n(19650),s=n(71230),c=n(15746),o=n(96486),u=n(67294),d=n(68432),m=n(38780),p=n(28999),E=n(54549),f=n(79508),y=n(71577),v=n(34041),N=n(94199),g=n(69523),Z=n(24671),h=n(73553),D=n(46321),S=(0,u.forwardRef)((function(e,t){var n=e.mode,r=(e.onChange,e.fetchOptions),s=e.debounceTimeout,c=void 0===s?800:s,d=e.defaultValue,m=(0,a._T)(e,["mode","onChange","fetchOptions","debounceTimeout","defaultValue"]),p=(0,u.useRef)(null),E=(0,a.CR)((0,u.useState)(!1),2),f=E[0],y=E[1],S=(0,a.CR)((0,u.useState)(!1),2),T=S[0],C=S[1],b=(0,a.CR)((0,u.useState)([]),2),A=b[0],R=b[1],O=(0,a.CR)((0,u.useState)(""),2),M=O[0],P=O[1],w=(0,a.CR)((0,u.useState)({}),2),L=w[0],I=w[1],k=(0,a.CR)((0,u.useState)(1),2),x=k[0],V=k[1],_=(0,a.CR)((0,u.useState)([]),2),H=_[0],U=_[1],B=(0,u.useCallback)((function(e){return(0,a.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:R([]),y(!0),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,r(e,1)];case 2:return t=a.sent(),R(t.data),I(t.paging),P(e),V(1),[3,5];case 3:return n=a.sent(),(0,D.Eo)(n),[3,5];case 4:return y(!1),[7];case 5:return[2]}}))}))}),[r]),F=(0,u.useMemo)((function(){return(0,o.debounce)(B,c)}),[B,c]),Y=(0,u.useMemo)((function(){return A.map((function(e){return{label:e.label,displayName:u.createElement(l.Z,{className:"w-full",direction:"vertical",size:0},u.createElement(i.Z.Paragraph,{ellipsis:!0,className:"text-grey-muted m-0 p-0"},(0,Z.C_)(e.value.domain)),u.createElement(i.Z.Text,{ellipsis:!0},(0,Z.C_)(e.value))),value:e.value.fullyQualifiedName}}))}),[A]);return(0,u.useImperativeHandle)(t,(function(){return{getSelectValue:function(){return H}}})),u.createElement(v.Z,(0,a.pi)({autoFocus:!0,showSearch:!0,className:"w-full","data-testid":"data-product-selector",defaultValue:d,dropdownRender:function(e){return u.createElement(u.Fragment,null,e,T?u.createElement(g.Z,{size:"small"}):null)},filterOption:!1,mode:n,notFoundContent:f?u.createElement(g.Z,{size:"small"}):null,optionLabelProp:"label",ref:p,tagRender:h.lR,onChange:function(e){var t=e.reduce((function(e,t){var n=A.find((function(e){return e.label===t}));return n&&e.push(n.value),e}),[]);U(t)},onFocus:function(){return B("")},onPopupScroll:function(e){return(0,a.mG)(void 0,void 0,void 0,(function(){var t,n,i;return(0,a.Jh)(this,(function(l){switch(l.label){case 0:if((t=e.currentTarget).scrollTop+t.offsetHeight!==t.scrollHeight)return[3,5];if(!(A.length




© 2015 - 2025 Weber Informatics LLC | Privacy Policy