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

assets.9921.9bf1d89926b9972b5b0a.js Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[9921,381,6599,1946,8649,6709,7369,8100,9452,8875,3112],{37780:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return c}});var a,i,r=n(67294);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t :nth-child(2) {\n  position: static !important;\n  width: 50% !important;\n}\n.source-input-container .ant-dropdown {\n  position: static !important;\n}\n',""]),t.Z=l},27813:function(e,t,n){var a=n(8081),i=n.n(a),r=n(23645),l=n.n(r)()(i());l.push([e.id,'/*\n *  Copyright 2024 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.ant-card.team-user-select-dropdown {\n  padding: 8px;\n}\n.ant-card.team-user-select-dropdown .ant-card-body {\n  max-width: 30vw;\n}\n.ant-card.team-user-select-dropdown .ant-dropdown-menu {\n  box-shadow: none;\n  padding: 0px;\n  overflow-y: scroll;\n  max-height: 200px;\n}\n.ant-card.team-user-select-dropdown .ant-dropdown-menu .ant-dropdown-menu-item {\n  padding: 4px 0px;\n  min-width: 100px;\n}\n.ant-card.team-user-select-dropdown .ant-dropdown-menu .ant-dropdown-menu-title-content {\n  max-width: 100%;\n}\n.ant-card.team-user-select-dropdown .dropdown-option-label {\n  max-width: 100%;\n}\n.ant-btn.select-trigger {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 4px 8px;\n  width: 100%;\n  height: auto;\n  min-height: 32px;\n}\n.selected-options-list {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 2px;\n}\n',""]),t.Z=l},21167:function(e,t,n){var a=n(8081),i=n.n(a),r=n(23645),l=n.n(r)()(i());l.push([e.id,'/*\n *  Copyright 2024 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.destination-select-dropdown .ant-tabs-nav {\n  margin: 0px;\n}\n.destination-select-dropdown .ant-tabs-nav .ant-tabs-nav-list {\n  width: 99%;\n}\n.destination-select-dropdown .ant-tabs-tab {\n  flex: 1;\n  justify-content: center;\n}\n',""]),t.Z=l},47485:function(e,t,n){n.d(t,{Z:function(){return p}});var a=n(91894),i=n(71230),r=n(15746),l=n(56256),c=n(94184),u=n.n(c),s=n(67294),M=n(93379),o=n.n(M),d=n(7795),g=n.n(d),N=n(90569),I=n.n(N),j=n(3565),y=n.n(j),m=n(19216),D=n.n(m),T=n(44589),L=n.n(T),E=n(11673),A={};A.styleTagTransform=L(),A.setAttributes=y(),A.insert=I().bind(null,"head"),A.domAPI=g(),A.insertStyleElement=D(),o()(E.Z,A),E.Z&&E.Z.locals&&E.Z.locals;var p=function(e){var t=e.heading,n=e.subHeading,c=e.children,M=e.childrenContainerClassName,o=void 0===M?"":M,d=e.className,g=void 0===d?"":d;return s.createElement(a.Z,{className:u()("form-card-section-container",g),"data-testid":t+"-container"},s.createElement(i.Z,{gutter:[8,8]},s.createElement(r.Z,{span:24},s.createElement(l.Z.Text,{className:"font-medium"},t)),s.createElement(r.Z,{span:24},s.createElement(l.Z.Text,{className:"text-xs text-grey-muted"},n)),s.createElement(r.Z,{className:u()("p-t-sm",o),span:24},c)))}},30743:function(e,t,n){n.d(t,{Z:function(){return O}});var a=n(15873),i=n(57119),r=n(76772),l=n(56256),c=n(94184),u=n.n(c),s=n(96486),M=n(67294),o=n(2758),d=n(68649),g=n(48794),N=n(93379),I=n.n(N),j=n(7795),y=n.n(j),m=n(90569),D=n.n(m),T=n(3565),L=n.n(T),E=n(19216),A=n.n(E),p=n(44589),z=n.n(p),x=n(98511),f={};f.styleTagTransform=z(),f.setAttributes=L(),f.insert=D().bind(null,"head"),f.domAPI=y(),f.insertStyleElement=A(),I()(x.Z,f),x.Z&&x.Z.locals&&x.Z.locals;var O=function(e){var t=e.alertClassName,n=void 0===t?"":t,c=e.type,N=e.heading,I=e.description,j=e.onClose,y=(0,g.N)(),m=y.inlineAlertDetails,D=y.setInlineAlertDetails,T=(0,M.useMemo)((function(){return{alertContainerClass:(null!=c?c:"default")+"-alert",alertIconClass:(null!=c?c:"default")+"-icon"}}),[c]),L=T.alertContainerClass,E=T.alertIconClass,A=(0,M.useMemo)((function(){switch(c){case"error":return M.createElement(d.ReactComponent,{className:u()("alert-icon",E)});case"warning":return M.createElement(o.ReactComponent,{className:u()("alert-icon",E)});case"success":return M.createElement(a.Z,{className:u()("alert-icon",E)});default:return M.createElement(i.Z,{className:u()("alert-icon",E)})}}),[c,E]);return(0,M.useEffect)((function(){return function(){(0,s.isUndefined)(m)||D(void 0)}}),[]),M.createElement(r.Z,{closable:!0,className:u()("inline-error-container",L,n),description:M.createElement("div",{className:"d-flex items-start gap-3"},A,M.createElement("div",{className:"d-flex flex-col gap-2"},M.createElement(l.Z.Text,{className:"font-semibold text-sm"},N),M.createElement(l.Z.Paragraph,{className:"m-b-0 text-sm"},I))),type:c,onClose:j})}},73961:function(e,t,n){n.d(t,{KK:function(){return g},ZQ:function(){return s},aj:function(){return d},yK:function(){return o}});var a,i,r=n(96486),l=n(67294),c=n(55538),u=n(50778),s={internal:"internal",external:"external"},M=(0,r.filter)(c.bz,(function(e){return e!==c.bz.External})).map((function(e){return{label:l.createElement("div",{className:"d-flex items-center gap-2","data-testid":(0,r.startCase)(e)+"-internal-option"},(0,u.sB)(e),l.createElement("span",null,(0,r.startCase)(e))),value:(0,r.startCase)(e)}})),o=(0,r.filter)(c.Qe,(function(e){return e!==c.Qe.ActivityFeed})).map((function(e){return{label:l.createElement("div",{className:"d-flex items-center gap-2","data-testid":(0,r.startCase)(e)+"-external-option"},(0,u.sB)(e),l.createElement("span",null,(0,r.startCase)(e))),value:String(e)}})),d=((a={})[s.internal]=M,a[s.external]=o,a),g=((i={})[c.Qe.Slack]="https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX",i[c.Qe.MSTeams]="https://outlook.office.com/webhook/XXXXX/XXXXX/XXXXX",i[c.Qe.GChat]="https://chat.googleapis.com/v1/spaces/XXXXX/messages?key=XXXXX",i[c.Qe.Webhook]="https://example.com",i[c.Qe.Email]="Add ↵ separated Email addresses",i)},20897:function(e,t,n){n.d(t,{Z:function(){return S}});var a=n(70655),i=n(49409),r=n(91894),l=n(56256),c=n(34041),u=n(13013),s=n(71577),M=n(67294),o=n(68432),d=n(47485),g=n(66537),N=n(63866),I=n(93379),j=n.n(I),y=n(7795),m=n.n(y),D=n(90569),T=n.n(D),L=n(3565),E=n.n(L),A=n(19216),p=n.n(A),z=n(44589),x=n.n(z),f=n(34887),O={};O.styleTagTransform=x(),O.setAttributes=E(),O.insert=T().bind(null,"head"),O.domAPI=m(),O.insertStyleElement=p(),j()(f.Z,O),f.Z&&f.Z.locals&&f.Z.locals;var S=function(e){var t=e.filterResources,n=(0,o.$)().t,I=(0,M.useRef)(null),j=i.Z.useFormInstance(),y=(0,g.f)().fqn,m=(0,a.CR)((0,M.useState)([]),2),D=m[0],T=m[1],L=(0,a.CR)((0,M.useState)(!1),2),E=L[0],A=L[1],p=(0,M.useMemo)((function(){return(0,N.IP)(t.map((function(e){var t;return null!==(t=e.name)&&void 0!==t?t:""})))}),[t]),z=(0,M.useCallback)((function(e){return M.createElement(r.Z,{bodyStyle:{padding:0},className:"source-dropdown-card","data-testid":"drop-down-menu"},M.createElement(l.Z.Text,{className:"p-l-md text-grey-muted"},n("label.data-asset-plural")),M.createElement("div",{className:"p-t-xss"},e))}),[]),x=(0,M.useMemo)((function(){return p.map((function(e){return{label:e.label,key:e.value}}))}),[p]),f=(0,M.useCallback)((function(e){j.setFieldValue(["resources"],[e.key]),A(!0)}),[]);return M.createElement(d.Z,{heading:n("label.source"),subHeading:n("message.alerts-source-description")},M.createElement("div",{className:"source-input-container",ref:I},M.createElement(i.Z.Item,{required:!0,initialValue:y?j.getFieldValue(["filteringRules","resources"]):void 0,messageVariables:{fieldName:n("label.data-asset-plural")},name:["resources"],rules:[{required:!0,message:n("label.please-select-entity",{entity:n("label.data-asset")})}]},E||y?M.createElement(c.Z,{className:"w-full","data-testid":"source-select",options:p,placeholder:n("label.select-field",{field:n("label.data-asset-plural")}),value:D[0],onChange:function(e){j.setFieldValue("input",{}),j.setFieldValue("destinations",[]),T([e]),j.setFieldValue("resources",[e])}}):M.createElement(u.Z,{destroyPopupOnHide:!0,dropdownRender:z,getPopupContainer:function(){var e;return null!==(e=I.current)&&void 0!==e?e:document.body},menu:{items:x,onClick:f},placement:"bottomRight",trigger:["click"]},M.createElement(s.Z,{"data-testid":"add-source-button",type:"primary"},n("label.add-entity",{entity:n("label.source")}))))))}},77743:function(e,t,n){n.d(t,{Z:function(){return Y}});var a=n(70655),i=n(49409),r=n(71230),l=n(15746),c=n(27049),u=n(71577),s=n(96486),M=n(67294),o=n(68432),d=n(47485),g=n(63866),N=n(93379),I=n.n(N),j=n(7795),y=n.n(j),m=n(90569),D=n.n(m),T=n(3565),L=n.n(T),E=n(19216),A=n.n(E),p=n(44589),z=n.n(p),x=n(21167),f={};f.styleTagTransform=z(),f.setAttributes=L(),f.insert=D().bind(null,"head"),f.domAPI=y(),f.insertStyleElement=A(),I()(x.Z,f),x.Z&&x.Z.locals&&x.Z.locals;var O=n(54549),S=n(25499),h=n(34041),w=n(76772),C=n(56256),b=n(73961),v=n(62761),k=n(55538),Z=n(66537),U=n(50778),Q=function(e){var t,n,c=e.selectorKey,d=e.id,N=e.remove,I=(0,o.$)().t,j=i.Z.useFormInstance(),y=(0,Z.f)().fqn,m=(0,a.CR)((0,M.useState)(b.ZQ.internal),2),D=m[0],T=m[1],L=(0,a.CR)((0,M.useState)(b.aj.internal),2),E=L[0],A=L[1],p=i.Z.useWatch("destinations",j),z=(0,a.CR)(null!==(t=i.Z.useWatch(["resources"],j))&&void 0!==t?t:[],1)[0],x=(0,M.useCallback)((function(e){T(e),A((0,g.Je)(e,z))}),[z]),f=j.getFieldValue(["destinations",d,"destinationType"]),Q=j.getFieldValue(["destinations",d,"type"]),Y=(0,M.useMemo)((function(){return(0,U.uZ)(f)}),[f]),P=(0,M.useCallback)((function(e){return(0,s.map)(b.ZQ,(function(t){return{key:t,label:M.createElement("span",{"data-testid":"tab-label-"+t},I("label."+t)),children:e}}))}),[]),R=(0,M.useCallback)((function(e,t){return M.createElement(S.Z,{centered:!0,activeKey:D,className:"destination-select-dropdown","data-testid":"destination-category-dropdown-"+t,defaultActiveKey:b.ZQ.internal,items:P(e),key:"destination-tabs-"+t,tabBarStyle:{background:v.Y},onTabClick:x})}),[x,P,D]),G=(0,M.useMemo)((function(){return!(0,s.isEmpty)(y)}),[y]);return(0,M.useEffect)((function(){var e=(0,a.CR)(j.getFieldValue("resources"),1)[0],t=j.getFieldValue("destinations");(0,s.isEmpty)(t)||(t[d].category===k.bz.External&&G&&!(0,s.isUndefined)(t[d].destinationType)?(T(b.ZQ.external),A((0,g.Je)(b.ZQ.external,e))):(T(b.ZQ.internal),A((0,g.Je)(b.ZQ.internal,e))))}),[]),M.createElement(l.Z,{"data-testid":"destination-"+d,key:c,span:24},M.createElement("div",{className:"flex gap-4"},M.createElement("div",{className:"flex-1 w-min-0"},M.createElement(r.Z,{gutter:[8,8]},M.createElement(l.Z,{span:12},M.createElement(i.Z.Item,{required:!0,name:[d,"destinationType"],rules:[{required:!0,message:I("message.field-text-is-required",{fieldText:I("label.destination")})}]},M.createElement(h.Z,{className:"w-full","data-testid":"destination-category-select-"+d,dropdownRender:function(e){return R(e,c)},options:E,placeholder:I("label.select-field",{field:I("label.destination")}),onSelect:function(e){j.setFieldValue(["destinations",d],{destinationType:e})}}))),function(e,t,n){return M.createElement(M.Fragment,null,M.createElement(i.Z.Item,{hidden:!0,initialValue:e?n:k.bz.External,key:n+"-category",name:[t,"category"]}),!e&&M.createElement(i.Z.Item,{hidden:!0,initialValue:n,key:n+"-type",name:[t,"type"]}))}(Y,d,f),p&&!(0,s.isEmpty)(p[d])&&(0,g.g)(null===(n=p[d])||void 0===n?void 0:n.destinationType,d),f&&(0,U.uZ)(f)&&M.createElement(l.Z,{span:24},M.createElement(i.Z.Item,{required:!0,extra:f&&Q&&M.createElement(w.Z,{closable:!0,className:"m-t-sm",message:M.createElement(C.Z.Text,{className:"font-medium text-sm"},I("message.destination-selection-warning",{subscriptionCategory:f,subscriptionType:Q})),type:"warning"}),name:[d,"type"],rules:[{required:!0,message:I("message.field-text-is-required",{fieldText:I("label.field")})}]},M.createElement(h.Z,{className:"w-full","data-testid":"destination-type-select-"+d,options:(0,g.Yb)(f),placeholder:I("label.select-field",{field:I("label.destination")}),popupClassName:"select-options-container"}))))),M.createElement(u.Z,{"data-testid":"remove-destination-"+d,icon:M.createElement(O.Z,null),onClick:function(){return N(d)}})))},Y=function(){var e,t=(0,o.$)().t,n=i.Z.useFormInstance(),N=(0,a.CR)(null!==(e=i.Z.useWatch(["resources"],n))&&void 0!==e?e:[],1)[0];return M.createElement(d.Z,{heading:t("label.destination"),subHeading:t("message.alerts-destination-description")},(0,g.ms)(),M.createElement(i.Z.List,{name:["destinations"],rules:[{validator:(0,g.vO)(t("label.destination"))}]},(function(e,n,a){var o=n.add,d=n.remove,g=a.errors;return M.createElement(r.Z,{"data-testid":"destination-list",gutter:[16,16],key:"destinations"},e.map((function(t,n){var a=t.key,i=t.name;return M.createElement(M.Fragment,{key:a},M.createElement(Q,{id:i,remove:d,selectorKey:a}),n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy