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.
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[4729],{11673:function(e,t,n){var a=n(8081),i=n.n(a),l=n(23645),r=n.n(l)()(i());r.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/*\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/* navbar+tab_height+padding = 64+46+12 */\n.form-card-section-container {\n background-color: #f9f9f9;\n}\n.form-card-section-container .ant-card-body {\n padding: 20px;\n}\n',""]),t.Z=r},47485:function(e,t,n){n.d(t,{Z:function(){return x}});var a=n(91894),i=n(71230),l=n(15746),r=n(56256),s=n(94184),c=n.n(s),o=n(67294),m=n(93379),d=n.n(m),u=n(7795),p=n.n(u),f=n(90569),E=n.n(f),Z=n(3565),v=n.n(Z),h=n(19216),b=n.n(h),g=n(44589),y=n.n(g),N=n(11673),C={};C.styleTagTransform=y(),C.setAttributes=v(),C.insert=E().bind(null,"head"),C.domAPI=p(),C.insertStyleElement=b(),d()(N.Z,C),N.Z&&N.Z.locals&&N.Z.locals;var x=function(e){var t=e.heading,n=e.subHeading,s=e.children,m=e.childrenContainerClassName,d=void 0===m?"":m,u=e.className,p=void 0===u?"":u;return o.createElement(a.Z,{className:c()("form-card-section-container",p),"data-testid":t+"-container"},o.createElement(i.Z,{gutter:[8,8]},o.createElement(l.Z,{span:24},o.createElement(r.Z.Text,{className:"font-medium"},t)),o.createElement(l.Z,{span:24},o.createElement(r.Z.Text,{className:"text-xs text-grey-muted"},n)),o.createElement(l.Z,{className:c()("p-t-sm",d),span:24},s)))}},84729:function(e,t,n){n.r(t);var a=n(70655),i=n(71230),l=n(15746),r=n(56256),s=n(94199),c=n(60331),o=n(27049),m=n(19650),d=n(71577),u=n(96486),p=n(67294),f=n(68432),E=n(15137),Z=n(76),v=n(38780),h=n(8645),b=n(92342),g=n(47485),y=n(35850),N=n(89011),C=n(38048),x=n(36169),T=n(62761),w=n(96162),S=n(64632),I=n(55538),L=n(66537),A=n(46923),k=n(24671),R=n(96840),O=n(18305);t.default=function(e){var t,n=this,F=e.isNotificationAlert,_=void 0!==F&&F,B=(0,f.$)().t,D=(0,L.f)().fqn,G=(0,E.k6)(),H=(0,a.CR)((0,p.useState)(),2),P=H[0],W=H[1],Y=(0,a.CR)((0,p.useState)(!0),2),J=Y[0],U=Y[1],z=(0,a.CR)((0,p.useState)(!1),2),K=z[0],M=z[1],V=(0,p.useMemo)((function(){var e,t,n;return{resource:null===(e=null==P?void 0:P.filteringRules)||void 0===e?void 0:e.resources[0],filters:null===(t=null==P?void 0:P.input)||void 0===t?void 0:t.filters,actions:null===(n=null==P?void 0:P.input)||void 0===n?void 0:n.actions,destinations:null==P?void 0:P.destinations}}),[P]),q=V.resource,j=V.filters,Q=V.actions,$=V.destinations,X=(0,p.useMemo)((function(){return _?[{name:B("label.setting-plural"),url:T.Z6.SETTINGS},{name:B("label.notification-plural"),url:(0,R.si)(w.CZ.NOTIFICATIONS)},{name:(0,k.C_)(P),url:""}]:[{name:B("label.observability"),url:""},{name:B("label.alert-plural"),url:T.Z6.OBSERVABILITY_ALERTS},{name:(0,k.C_)(P),url:""}]}),[P]),ee=(0,p.useCallback)((function(){return(0,a.mG)(n,void 0,void 0,(function(){return(0,a.Jh)(this,(function(e){return _?G.push(T.Z6.NOTIFICATION_ALERTS):G.push(T.Z6.OBSERVABILITY_ALERTS),[2]}))}))}),[G]),te=function(e,t){return p.createElement("div",{className:"p-md"},null==t?void 0:t.map((function(n,a){var m;return p.createElement(p.Fragment,{key:n.name},p.createElement(i.Z,{"data-testid":"filter-"+n.name,gutter:[0,8]},p.createElement(l.Z,{className:"font-medium",span:3},B("label.effect")),p.createElement(l.Z,{span:1},":"),p.createElement(l.Z,{"data-testid":"effect-value",span:20},(0,u.startCase)(n.effect)),p.createElement(l.Z,{className:"font-medium",span:3},B("label.entity-name",{entity:B(e?"label.filter":"label.action")})),p.createElement(l.Z,{span:1},":"),p.createElement(l.Z,{"data-testid":"filter-name",span:20},(0,u.startCase)(n.name)),!(0,u.isEmpty)(n.arguments)&&p.createElement(p.Fragment,null,p.createElement(l.Z,{className:"font-medium",span:3},B("label.argument-plural")),p.createElement(l.Z,{span:1},":"),p.createElement(l.Z,{className:"border rounded-4 p-sm","data-testid":"arguments-container",span:20},null===(m=n.arguments)||void 0===m?void 0:m.map((function(e){var t;return p.createElement(i.Z,{"data-testid":"argument-container-"+e.name,gutter:[0,8],key:e.name},p.createElement(l.Z,{className:"font-medium",span:24},p.createElement(r.Z.Text,{"data-testid":"argument-name"},e.name)),p.createElement(l.Z,{span:24},null===(t=e.input)||void 0===t?void 0:t.map((function(e){return p.createElement(s.Z,{key:e,title:e},p.createElement(c.Z,{className:"m-b-xs w-max-full","data-testid":"argument-value"},p.createElement(r.Z.Text,{ellipsis:!0},e)))}))))}))))),a