(()=>{"use strict";var e,t,n,r={60076:(e,t,n)=>{n.d(t,{ZP:()=>Z,_j:()=>y,yS:()=>w,zK:()=>k});var r=n(67294),a=n(15137),o=n(13825),i=n(16766),c=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,31627))})),s=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,58461))})),l=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,42513))})),u=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,35168))})),d=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,21170))})),p=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,620))})),f=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,983))})),m=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,31665))})),v=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,73233))})),h=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,77475))})),g=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,64264))})),b=(0,r.lazy)((function(){return Promise.all([n.e(410),n.e(252),n.e(736),n.e(825)]).then(n.bind(n,64026))})),y={overview:{path:"/overview"},newIncident:{path:"/new"},manageColumns:{path:"/overview/manage_columns"},slackUserRequest:{path:"/slackUserRequest/"},incident:{path:"/incident/:id"},incidentEvents:{path:"/incident/:id/events"},incidentDetails:{path:"/incident/:id/details"},incidentSummary:{path:"/incident/:id/summary"},incidentAiSummary:{path:"/incident/:id/ai_summary"},incidentTaskRuns:{path:"/incident/:id/taskruns"},incidentTaskRunDetail:{path:"/incident/:id/taskruns/:taskrun"},incidentNotifications:{path:"/incident/:id/notifications"},incidentFollowups:{path:"/incident/:id/follow_ups"},newFollowup:{path:"/incident/:id/follow_ups/new"},editEventFollowup:{path:"/incident/:id/follow_ups/:event/edit"},newEvent:{path:"/incident/:id/events/new"},editEvent:{path:"/incident/:id/events/:event/edit"},event:{path:"/incident/:id/events/:event/detail"},eventDetailEdit:{path:"/incident/:id/events/:event/detail/edit"},incidentCheckins:{path:"/incident/:id/checkins"},newIncidentCheckins:{path:"/incident/:id/checkins/new"},products:{path:"/products"},productsManageColumns:{path:"/products/manage_columns"},newProduct:{path:"/new_product"},teams:{path:"/teams"},teamsManageColumns:{path:"/teams/manage_columns"},newTeam:{path:"/new_team"},team:{path:"/team/:id"},teamDetails:{path:"/team/:id/details"},teamNotificationSubscriptions:{path:"/team/:id/notification_subscriptions"},teamNewNotificationSubscriptions:{path:"/team/:id/new_subscription"},teamEditNotificationSubscriptions:{path:"/team/:id/edit_subscription/:subscription_id"},subscriptions:{path:"/notification_subscriptions"},newSubscription:{path:"/new_subscription"},editSubscription:{path:"/edit_subscription/:subscription_id"}},w=function(e,t){return e.replace(":id",t)},k=function(e,t){return e.replace(":subscription_id",t)};const Z=function(){return r.createElement(i.Z,null,r.createElement(r.Suspense,{fallback:r.createElement(o.Z,null)},r.createElement(a.rs,null,r.createElement(a.AW,{exact:!0,path:y.newIncident.path,component:l}),r.createElement(a.AW,{path:y.incident.path,component:s}),r.createElement(a.AW,{path:y.overview.path,component:c}),r.createElement(a.AW,{path:y.slackUserRequest.path,component:u}),r.createElement(a.AW,{path:y.products.path,component:d}),r.createElement(a.AW,{path:y.newProduct.path,component:p}),r.createElement(a.AW,{path:y.teams.path,component:f}),r.createElement(a.AW,{path:y.newTeam.path,component:m}),r.createElement(a.AW,{path:y.team.path,component:v}),r.createElement(a.AW,{path:y.teamNotificationSubscriptions.path,component:h}),r.createElement(a.AW,{path:y.teamNewNotificationSubscriptions.path,component:g}),r.createElement(a.AW,{path:y.subscriptions.path,component:h}),r.createElement(a.AW,{path:y.newSubscription.path,component:g}),r.createElement(a.AW,{path:y.editSubscription.path,component:b}),r.createElement(a.l_,{to:y.overview.path}))))}},23924:(e,t,n)=>{n.d(t,{Z:()=>m});var r=n(45987),a=n(93433),o=n(15861),i=n(64687),c=n.n(i),s=n(99166),l=n(66702),u=n(87614),d=n(39578),p=["id"],f=function(e){var t=Array.isArray(e)?e:[e],n=d.ZP.getState().initialUsers.items.map((function(e){return e.id}));return t.map((function(e){return n.includes(e.id)?null:{value:e.id,label:(0,u.Z)(e)}})).filter(Boolean)};const m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=(0,s.Z)((function(e){return null!=e&&e.search?l.Z.getListUser(e):Promise.resolve(d.ZP.getState().initialUsers)}),500,{onlyResolvesLast:!1});return function(){var n=(0,o.Z)(c().mark((function n(o,i){var s;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t({search:o});case 2:return s=n.sent,n.abrupt("return",[].concat((0,a.Z)(!o&&i?f(i):[]),(0,a.Z)(s.items.filter((function(t){return e(t)})).map((function(e){var t=e.id,n=(0,r.Z)(e,p);return{value:t,label:(0,u.Z)(n)}})))));case 4:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}},66702:(e,t,n)=>{n.d(t,{Y:()=>p,Z:()=>C});var r=n(4942),a=n(45987),o=n(38083),i=n(68030),c=["id","showLogEvents"],s=["page","perPage","id","follow_up_status"],l=["workspaceId"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{n.d(t,{Z:()=>re});var r=n(4942),a=n(15861),o=n(64687),i=n.n(o),c=n(16314),s=n(27294),l=n(59757),u=n(93433),d=n(52583);function p(e,t,n,r){var a=new Date(+e+Math.random()*(t-e)),o=n+Math.random()*(r-n)||0;return a.setHours(o),a}function f(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)}var m=0,v=["Mary Jane","Austin Powers","Ned Stark","Homer Simpson","Marge Simpsons","Petra Kvitova","Ash Ketchum","Martin Povolny","Milan Zazrivec","Richard Vsiansky","Shiri Mordechay","Paul Cormier"],h=["I",v[f(0,v.length)],v[f(0,v.length)],v[f(0,v.length)],"You","They"],g=["responded","screenshoted","submitted","removed","deleted","added","detailed","linked"],b=["Quay","to you","multiple attachments",v[f(0,v.length)],"lorem ipsum.","screenshot","comment","cloud.redhat.com","openshift","quay","Red Hat","myself","them","the issue I found very difficult to solve"],y=["Improve GCP Access and Support SOPs","Do we need an RCA for each incident?","Improve AWS Access and Support SOPs","Improve IBM Access and Support SOPs"],w=function(){return{created_at:p(new Date(2020,0,1),new Date(2020,0,1),0,23).toISOString(),owner:v[f(0,v.length)],corrective_action:y[f(0,y.length)],external_references:(0,u.Z)(Array(f(1,3))).map((function(){return{title:"OSD-".concat(f(1e3,9999)),url:"https://issues.redhat.com/OSD-".concat(f(1e3,9999))}})),notes:"".concat(h[f(0,h.length)]," ").concat(g[f(0,g.length)]," ").concat(b[f(0,b.length)],".")}},k=(0,u.Z)(Array(20)).map((function(e,t){return{id:"".concat(m++),kind:"event",href:"redhat.com",event_type:d.uS[f(0,d.uS.length)],note:"".concat(h[f(0,h.length)]," ").concat(g[f(0,g.length)]," ").concat(b[f(0,b.length)],"."),created_at:p(new Date(2020,0,1+t),new Date(2020,0,1+t),0,23).toISOString(),creator:{name:v[f(0,v.length)],email:"some email"},comments:(0,u.Z)(Array(f(0,4))).map((function(){return w()})),status_change:{status:{status:{service_info:{fullname:"habitaculum-cognosceremus-sacrificatori",status_type:"traffic_light"},status:"green"}}}}})),Z=function(e,t){return(0,u.Z)(Array(e||f(1,3))).map((function(e,n){return{id:"".concat(m++),kind:"event",href:"redhat.com",event_type:d.uS.filter((function(e){return!t||!(0,s.Z)(e)}))[f(0,d.uS.filter((function(e){return!t||!(0,s.Z)(e)})).length)],note:"".concat(h[f(0,h.length)]," ").concat(g[f(0,g.length)]," ").concat(b[f(0,b.length)],"."),created_at:p(new Date(2020,0,1+n),new Date(2020,0,1+n),0,23).toISOString(),creator:{name:v[f(0,v.length)],email:"some email"},comments:(0,u.Z)(Array(f(0,4))).map((function(){return w()})),status_change:{status:{status:{service_info:{fullname:"habitaculum-cognosceremus-sacrificatori",status_type:"traffic_light"},status:"green"}}}}}))};const E=k;function M(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)}var P=0,O=["Update","Alert","Test","Start","Stop","Notify","Remove","Add"],S=["Red Hat Support","status.redhat.com","customers","product manager","documentation","operational service","our CEO"],x=["when service is back","and contact Bill Mor from quay","via EMAIL","to get logs","after is resolved","on our servers"];const _=(0,u.Z)(Array(10)).map((function(){return{id:"".concat(P++),owner:"AppSRE",priority:["low","medium","high"][M(0,3)],status:["to-do","done"][M(0,2)],title:"".concat(O[M(0,O.length)]," ").concat(S[M(0,S.length)]," ").concat(x[M(0,x.length)],"."),url:"https://issues.redhat.com/browse/APPSRE-".concat(M(1e3,9999))}}));var C=[{id:"b26359a8d5fc",kind:"User",href:"/api/web-rca/v1/users/b26359a8d5fc",name:"Azu Xeeria",email:"123@gmail.com",username:"azuGrandMaster",created_at:"2021-09-07T13:57:02.144926Z",updated_at:"2021-09-07T13:57:02.144926Z"},{id:"53956943a8d4",kind:"User",href:"/api/web-rca/v1/users/53956943a8d4",name:"Giergo Papadoulos",email:"p.papa@outlook.com",username:"justawesome",created_at:"2021-09-07T13:59:25.356719Z",updated_at:"2021-09-07T13:59:25.356719Z"},{id:"9d754d3b04ab",kind:"User",href:"/api/web-rca/v1/users/9d754d3b04ab",name:"Tony Stark I.",email:"ironman@avengers.com",username:"tonystart",created_at:"2021-09-07T14:28:23.809526Z",updated_at:"2021-09-07T14:28:23.809526Z"}];function T(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)}var j=0,I=function(){return{id:"account-".concat(T(0,1e3)).concat(j++),kind:"User",href:"/api/web-rca/v1/users/9d754d3b04ab",name:"".concat(T(0,1e3)).concat(j,"@redhat.com"),email:"account-".concat(T(0,1e3)).concat(j,"@redhat.com"),username:"tonystart",created_at:"2021-09-07T14:28:23.809526Z",updated_at:"2021-09-07T14:28:23.809526Z"}};const L=function(e){var t=e.search,n=t?C.filter((function(e){var n=e.name,r=e.email,a=e.username;return n.includes(t)||r.includes(t)||a.includes(t)})):C;return{kind:"UserList",page:1,size:n.length,total:n.length,items:n}};function D(e,t,n,r){var a=new Date(+e+Math.random()*(t-e)),o=n+Math.random()*(r-n)||0;return a.setHours(o),a}function F(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)}const A=function(e){return{id:"1234",incident_id:e,summary:"Clusters Service of OCM experienced an outage",description:"The Clusters Service of OCM experienced an outage, which in turn impacted the cluster-related services of OCM and cloud.redhat.com. The “service” containers of the Clusters Service pods were killed due to exceeded memory… requests, however the “envoy” container in the same pods remained running. The “service” containers attempted to restart, but were unable to successfully do so due to a resource conflict when trying to re-use the existing Unix sockets of previously-killed “service” container. This ultimately prevented the Clusters Service from coming back online after the original OOM-kill. During troubleshooting of the incident, SRE-P increased the liveness and readiness probe timeouts of the Clusters Service pods. This had the follow-on effect of forcing a redeployment of the Clusters Service, terminating all containers in the previous pod and starting afresh in a new pod. This action resolved the previous socket resource conflict which allowed the Clusters Service to come back online, restoring service to OCM.",incident_type:d.FD[F(0,d.FD.length)],status:d.EQ[F(0,d.EQ.length)],severity:d.Xo[F(0,d.Xo.length)].value,creator:I(),created_at:D(new Date(2020,0,1),new Date(2021,0,1),0,23).toISOString(),updated_at:D(new Date(2020,0,1),new Date(2021,0,1),0,23).toISOString(),incident_owner:I(),product_engineering_lead:I(),scribe:I(),product_owner:I(),products:[d.Wz[F(0,d.Wz.length)]],impacted_products:[d.Wz[0],d.Wz[1],d.Wz[2],d.Wz[3]].splice(F(0,4)),participants:[I(),I(),I(),I(),I(),I()].splice(F(0,7)),viewers:[I(),I(),I(),I(),I(),I()].splice(F(0,7)),external_coordination:["#sd-ops","https://google.com/meet/537sd6","redhat.com","#crc-ui","https://jira.com/issue/153"].splice(F(0,6)),resolved_at:D(new Date(2020,0,1),new Date(2021,0,1),0,23).toISOString(),reopen_counter:F(1,10),private:Boolean(F(0,1e3)%2),valid_incident:Boolean(F(0,1e3)%2),post_mortem_review:"https://link.to.post.mortem.review.com",bad_rollout:!0,bad_rollout_commit:"https://link-to-bad-rollout-commit.com"}};function R(e,t,n,r){var a=new Date(+e+Math.random()*(t-e)),o=n+Math.random()*(r-n)||0;return a.setHours(o),a}function N(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)}var B=0;const G=(0,u.Z)(Array(10)).map((function(){return{id:B++,kind:"incident",href:"redhat.com",incident_id:"INT-2021-".concat(B).concat(N(0,1e3)),summary:"summary",incident_type:d.FD[N(0,2)],created_at:R(new Date(2020,0,1),new Date,0,23).toISOString(),updated_at:R(new Date(2021,0,1),new Date,0,23).toISOString(),reopen_counter:N(0,10),private:Boolean(N(0,1e3)%2),status:d.EQ[N(0,4)],incident_owner:I(),creator:I(),products:[d.Wz[N(0,4)]],severity:d.Xo[N(0,3)].value}}));function z(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)}var U=0,W=["Update","Alert","Test","Start","Stop","Notify","Remove","Add"],H=["Red Hat Support","status.redhat.com","customers","product manager","documentation","operational service","our CEO"],q=["when service is back","and contact Bill Mor from quay","via EMAIL","to get logs","after is resolved","on our servers"],X=((0,u.Z)(Array(10)).map((function(){return{id:"".concat(U++),position:U,checked:[!0,!1][z(0,2)],name:"".concat(W[z(0,W.length)]," ").concat(H[z(0,H.length)]," ").concat(q[z(0,q.length)],".")}})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return(0,u.Z)(Array(e)).map((function(){return{id:"".concat(U++),position:U,checked:[!0,!1][z(0,2)],name:"".concat(W[z(0,W.length)]," ").concat(H[z(0,H.length)]," ").concat(q[z(0,q.length)],".")}}))});const V=function(){var e=d.Wz.map((function(e){return{id:"product".concat(t=e),kind:"Product",href:"/api/status-board/v1/products/9d754d3b04ab",name:t,fullname:"Red Hat ".concat(t),created_at:"2021-09-07T14:28:23.809526Z",updated_at:"2021-09-07T14:28:23.809526Z"};var t}));return{kind:"ProductList",page:1,size:e.length,total:e.length,items:e}};var K=[{id:"6f3bf130-dbac-4edc-8d01-73cad4690f6b",kind:'"IncidentTaskRun"',href:"/api/web-rca/v1/incidents/f7c6d61c-b15e-4be9-a26e-c2d2f20a2c08/task_runs/6f3bf130-dbac-4edc-8d01-73cad4690f6b",name:"ansible-play-task-itn-2024-00003-changeincidentstatus",parameters:{hook:"changeIncidentStatus",incident:{id:"f7c6d61c-b15e-4be9-a26e-c2d2f20a2c08"},notify_result_via_slack:!0,playbook:"default"},result:{data:{global:{started:"OK"}},error_messages:[],exit_code:0,failed_tasks:[]},created_at:"2021-09-07T13:57:02.144926Z",updated_at:"2021-09-07T13:57:02.144926Z"}];function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t{n.d(t,{Z:()=>f});var r,a,o,i=n(15861),c=n(64687),s=n.n(c),l=n(38083),u=n(68030),d=(0,l.mv)(""),p={};const f={getProducts:(o=(0,i.Z)(s().mark((function e(t){var n,r,a,o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],e.next=3,u.Z.get("".concat(d,"/api/status-board/v1/products"),{params:t});case 3:if(r=e.sent,n=n.concat(r.items),!(r.total>n.length)){e.next=13;break}for(a=Math.ceil(r.total/100),o=[],i=2;i<=a;i++)o.push(u.Z.get("".concat(d,"/api/status-board/v1/products"),{params:{page:i}}));return e.next=11,Promise.all(o);case 11:e.sent.forEach((function(e){var t=e.items;n=n.concat(t)}));case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)}),getProduct:function(e){return u.Z.get("".concat(d,"/api/status-board/v1/products/").concat(e))},getListProducts:function(e){return u.Z.get("".concat(d,"/api/status-board/v1/products"),{params:e})},createProduct:function(e){return u.Z.post("".concat(d,"/api/status-board/v1/products"),e)},getApplications:(a=(0,i.Z)(s().mark((function e(t){var n,r,a,o,i,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p[t]){e.next=2;break}return e.abrupt("return",p[t]);case 2:return n=[],r="".concat(d,"/api/status-board/v1/products/").concat(t,"/applications"),e.next=6,u.Z.get(r);case 6:if(a=e.sent,n=n.concat(a.items),!(a.total>a.size)){e.next=16;break}for(o=Math.ceil(a.total/100),i=[],c=2;c<=o;c++)i.push(u.Z.get(r,{params:{page:c}}));return e.next=14,Promise.all(i);case 14:e.sent.forEach((function(e){var t=e.items;n=n.concat(t)}));case 16:return p[t]=n,e.abrupt("return",n);case 18:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),getOwners:(r=(0,i.Z)(s().mark((function e(t){var n,r,a,o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],e.next=3,u.Z.get("".concat(d,"/api/status-board/v1/owners"),{params:t});case 3:if(r=e.sent,n=n.concat(r.items),!(r.total>n.length)){e.next=13;break}for(a=Math.ceil(r.total/100),o=[],i=2;i<=a;i++)o.push(u.Z.get("".concat(d,"/api/status-board/v1/owners"),{params:{page:i}}));return e.next=11,Promise.all(o);case 11:e.sent.forEach((function(e){var t=e.items;n=n.concat(t)}));case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})}},13825:(e,t,n)=>{n.d(t,{Z:()=>P});var r=n(67294),a=n(32045),o=n(32203),i=n(62394),c=n(45697),s=n.n(c),l=n(93379),u=n.n(l),d=n(7795),p=n.n(d),f=n(90569),m=n.n(f),v=n(3565),h=n.n(v),g=n(19216),b=n.n(g),y=n(44589),w=n.n(y),k=n(33311),Z={};Z.styleTagTransform=w(),Z.setAttributes=h(),Z.insert=m().bind(null,"head"),Z.domAPI=p(),Z.insertStyleElement=b(),u()(k.Z,Z),k.Z&&k.Z.locals&&k.Z.locals;var E=function(e){var t=e.width,n=void 0===t?"100%":t,a=e.height,o=void 0===a?"100%":a,i=e.className,c=void 0===i?"":i;return r.createElement("span",{className:"rca-loader ".concat(c),style:{width:n,height:o}})};E.propTypes={className:s().string,width:s().oneOfType([s().string,s().number]),height:s().oneOfType([s().string,s().number])};const M=E,P=function(){return r.createElement(a.NP,{role:"progressbar"},r.createElement(o.Z,null,r.createElement(i.e,null,r.createElement(M,{height:"400px"}))))}},16766:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(15671),a=n(43144),o=n(97326),i=n(60136),c=n(82963),s=n(61120),l=n(4942),u=n(67294),d=n(45697),p=n.n(d),f=n(9947),m=n(67880),v=n(75106),h=n(66435);var g=function(e){(0,i.Z)(p,e);var t,n,d=(t=p,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,s.Z)(t);if(n){var a=(0,s.Z)(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return(0,c.Z)(this,e)});function p(){var e;(0,r.Z)(this,p);for(var t=arguments.length,n=new Array(t),a=0;a{var r=n(67294),a=n(73935),o=n(76),i=n(29558),c=n(45697),s=n.n(c),l=n(16488),u=n(32045),d=n(68774),p=n(68340);const f=function(){return r.createElement("div",{className:"pf-m-sticky-bottom"},r.createElement(d.D,null,r.createElement(p.x,{component:p.q.p},"Privacy statement:"," ",r.createElement(p.x,{component:p.q.a,target:"blank",href:"https://source.redhat.com/departments/legal/globallegalcompliance/compliance_wiki/employee_personal_information_privacy_statement"},"Click to read"))))};var m=n(29439),v=n(56787),h=n(23971),g=n(88706),b=n(84457),y=n(84812),w=n(39841),k=n(33109),Z=n(1595),E=n(47173),M=n(11355),P=n(7289),O=n(14661),S=n(82274),x=n(68042),_=n(70571),C=n(13096),T=n(16030),j=n(7669),I=n(90945),L=n(62165),D=n(34046),F=n(15137),A=n(60076),R=n(15861),N=n(64687),B=n.n(N),G=n(66702),z=function(){var e=(0,R.Z)(B().mark((function e(){var t,n,r,a,o,i;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G.Z.getSlackState();case 2:return t=e.sent,n=t.scope,r=t.redirect_uri,a=t.client_id,o=t.state,i="https://slack.com/oauth/v2/authorize?scope=".concat(n,"&redirect_uri=").concat(r,"&client_id=").concat(a,"&state=").concat(o),window.open(i,"_blank","noopener,noreferrer"),e.abrupt("return",!0);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=n(87462);const W=function(e){return r.createElement("svg",(0,U.Z)({enableBackground:"new 0 0 36 36",version:"1.1",viewBox:"0 0 36 36",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("style",{type:"text/css"},"\n\t/*stylelint-disable*/\n\t.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}\n\t.st1{filter:url(#b);}\n\t.st2{mask:url(#a);}\n\t.st3{fill-rule:evenodd;clip-rule:evenodd;fill:#BBBBBB;}\n\t.st4{opacity:0.1;fill-rule:evenodd;clip-rule:evenodd;enable-background:new ;}\n\t.st5{opacity:8.000000e-02;fill-rule:evenodd;clip-rule:evenodd;fill:#231F20;enable-background:new ;}\n\t/*stylelint-enable*/\n "),r.createElement("circle",{className:"st0",cx:"18",cy:"18.5",r:"18"}),r.createElement("defs",null,r.createElement("filter",{id:"b",x:"5.2",y:"7.2",width:"25.6",height:"53.6",filterUnits:"userSpaceOnUse"},r.createElement("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"}))),r.createElement("mask",{id:"a",x:"5.2",y:"7.2",width:"25.6",height:"53.6",maskUnits:"userSpaceOnUse"},r.createElement("g",{className:"st1"},r.createElement("circle",{className:"st0",cx:"18",cy:"18.5",r:"18"}))),r.createElement("g",{className:"st2"},r.createElement("g",{transform:"translate(5.04 6.88)"},r.createElement("path",{className:"st3",d:"m22.6 18.1c-1.1-1.4-2.3-2.2-3.5-2.6s-1.8-0.6-6.3-0.6-6.1 0.7-6.1 0.7 0 0 0 0c-1.2 0.4-2.4 1.2-3.4 2.6-2.3 2.8-3.2 12.3-3.2 14.8 0 3.2 0.4 12.3 0.6 15.4 0 0-0.4 5.5 4 5.5l-0.3-6.3-0.4-3.5 0.2-0.9c0.9 0.4 3.6 1.2 8.6 1.2 5.3 0 8-0.9 8.8-1.3l0.2 1-0.2 3.6-0.3 6.3c3 0.1 3.7-3 3.8-4.4s0.6-12.6 0.6-16.5c0.1-2.6-0.8-12.1-3.1-15z"}),r.createElement("path",{className:"st4",d:"m22.5 26c-0.1-2.1-1.5-2.8-4.8-2.8l2.2 9.6s1.8-1.7 3-1.8c0 0-0.4-4.6-0.4-5z"}),r.createElement("path",{className:"st3",d:"m12.7 13.2c-3.5 0-6.4-2.9-6.4-6.4s2.9-6.4 6.4-6.4 6.4 2.9 6.4 6.4-2.8 6.4-6.4 6.4z"}),r.createElement("path",{className:"st5",d:"m9.4 6.8c0-3 2.1-5.5 4.9-6.3-0.5-0.1-1-0.2-1.6-0.2-3.5 0-6.4 2.9-6.4 6.4s2.9 6.4 6.4 6.4c0.6 0 1.1-0.1 1.6-0.2-2.8-0.6-4.9-3.1-4.9-6.1z"}),r.createElement("path",{className:"st4",d:"m8.3 22.4c-2 0.4-2.9 1.4-3.1 3.5l-0.6 18.6s1.7 0.7 3.6 0.9l0.1-23z"}))))},H=function(e){return r.createElement("svg",(0,U.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.8 122.8"},e),r.createElement("path",{d:"M25.8 77.6c0 7.1-5.8 12.9-12.9 12.9S0 84.7 0 77.6s5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V77.6z",fill:"#e01e5a"}),r.createElement("path",{d:"M45.2 25.8c-7.1 0-12.9-5.8-12.9-12.9S38.1 0 45.2 0s12.9 5.8 12.9 12.9v12.9H45.2zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H12.9C5.8 58.1 0 52.3 0 45.2s5.8-12.9 12.9-12.9h32.3z",fill:"#36c5f0"}),r.createElement("path",{d:"M97 45.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9-5.8 12.9-12.9 12.9H97V45.2zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V12.9C64.7 5.8 70.5 0 77.6 0s12.9 5.8 12.9 12.9v32.3z",fill:"#2eb67d"}),r.createElement("path",{d:"M77.6 97c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9-12.9-5.8-12.9-12.9V97h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H77.6z",fill:"#ecb22e"}))};var q=n(16314),X=n(36546),V=n(40611),K=n(55609),$=n(25834),Q=n(78140),Y=function(e){var t=e.onClose,n=(0,V.Z)();return r.createElement(K.t,{isOpen:!0,onClose:t,trademark:"Ⓒ ".concat((new Date).getFullYear()," Red Hat"),brandImageSrc:"/public/red_hat_logo.png",brandImageAlt:"Red Hat logo",productName:"Web-RCA"},r.createElement(d.D,null,r.createElement(p.x,{component:"p"},n.formatMessage({id:"about.textContent",defaultMessage:"Web-RCA is a service that allows anyone at Red Hat to create RCAs (root cause analysis) / incident reports."})),r.createElement(p.x,{component:"p"},n.formatMessage({id:"about.report",defaultMessage:"File bugs and feature requests:"})),r.createElement($.G,{component:"dl"},r.createElement(Q.T,{component:"dt"},"Web-RCA"),r.createElement(Q.T,{component:"dd"},r.createElement("a",{href:"https://gitlab.cee.redhat.com/service/web-rca",target:"_blank",rel:"noopener noreferrer"},"https://gitlab.cee.redhat.com/service/web-rca")),r.createElement(Q.T,{component:"dt"},"Web-RCA UI"),r.createElement(Q.T,{component:"dd"},r.createElement("a",{href:"https://gitlab.cee.redhat.com/service/web-rca-ui",target:"_blank",rel:"noopener noreferrer"},"https://gitlab.cee.redhat.com/service/web-rca-ui")),r.createElement(Q.T,{component:"dt"},"Jira"),r.createElement(Q.T,{component:"dd"},r.createElement("a",{href:"https://issues.redhat.com/projects/OSDEV/",target:"_blank",rel:"noopener noreferrer"},"https://issues.redhat.com/projects/OSDEV/")),r.createElement(Q.T,{component:"dt"},"Mailing list"),r.createElement(Q.T,{component:"dd"},r.createElement("a",{href:"mailto:sd-ops-services-dev@redhat.com"},"sd-ops-services-dev@redhat.com")))))};Y.propTypes={onClose:s().func};const J=Y;var ee=n(76248),te=n(80236),ne=n(60485),re=n(2372),ae=n(18759),oe=n(35978),ie=n(4942),ce=n(58338);function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t0;return r.createElement(te.u,{isOpen:!0,onClose:t,title:n.formatMessage({id:"header.denyList.title",defaultMessage:"Deny List"}),variant:"medium"},r.createElement(ne.D,{headingLevel:"h2"},n.formatMessage({id:"header.denyList.subtitle",defaultMessage:"Manage channels and workspaces deny list"})),r.createElement(be.Z,{schema:{fields:[(0,ye.eQ)(n)]},onChange:function(e){e.workspace&&e.workspace!==i&&c(e.workspace)},onSubmit:function(e){e.workspace&&c(e.workspace)},FormTemplateProps:{hideSubmit:!1,submitLabel:n.formatMessage({id:"denyList.form.loadChannels",defaultMessage:"Load Channels"}),disableSubmit:["invalid","pristine","submitting"]}}),i&&r.createElement("div",{style:{marginTop:"1rem"}},r.createElement("h3",null,"Add New Channel"),r.createElement("p",{style:{color:"#666",fontSize:"0.875rem",marginBottom:"1rem"}},'Enter a channel name and click "Add Channel" to add it to the deny list. The form will clear automatically so you can add another channel.'),r.createElement(be.Z,{key:p,schema:{fields:[(0,ye.nK)(n)]},onSubmit:v,FormTemplateProps:{submitLabel:n.formatMessage({id:"denyList.form.addChannel",defaultMessage:"Add Channel"})}})),!i&&r.createElement("div",{style:{marginTop:"1rem",color:"#666"}},r.createElement("p",null,"Please select a workspace first to add channels.")),b>0&&r.createElement("div",{style:{textAlign:"center",padding:"2rem"}},r.createElement(re.$,null)),g.length>0&&r.createElement("div",{style:{marginTop:"1rem"}},r.createElement("h3",null,"Denied Channels (",g.length,")"),r.createElement(ae.Z,{expandedText:"Show less",numChips:15},g.map((function(e,t){return r.createElement(oe.A,{key:e.id||t,onClick:function(){return h(e.id)},isReadOnly:!1,isClosable:!0,component:"button"},e.name||e.channel_id||e.id)})))),!b&&0===g.length&&i&&r.createElement("p",null,"No denied channels found for this workspace."))};we.propTypes={onClose:s().func};const ke=we;var Ze=function(e){var t=e.openDenyListModal,n=(0,F.k6)().push,a=(0,r.useState)(!1),o=(0,m.Z)(a,2),i=o[0],c=o[1],s=(0,V.Z)();return r.createElement(v.L,{popperProps:{position:"right"},isOpen:i,toggle:function(e){return r.createElement(h.O,{ref:e,onClick:function(){return c(!i)},variant:"plain"},q.B.kl.tokenParsed.name,r.createElement(I.ZP,{style:{margin:"0 0.5rem"}}))}},r.createElement(g.s,null,r.createElement(b.h,{key:"addToSlack",onClick:function(){z(),c(!i)},icon:r.createElement(H,{height:"24"})},s.formatMessage({id:"header.addToSlack",defaultMessage:"Add to Slack"})),r.createElement(b.h,{key:"manageSubscriptions",onClick:function(){n(A._j.subscriptions.path),c(!i)}},s.formatMessage({id:"header.manageSubscriptions",defaultMessage:"Manage Subscriptions"})),r.createElement(b.h,{key:"manageDenyList",onClick:function(){t(),c(!i)}},s.formatMessage({id:"header.manageDenyList",defaultMessage:"Manage Deny List"})),r.createElement(b.h,{key:"logout",onClick:function(){q.B.kl.logout(),(0,X.X$)()}},s.formatMessage({id:"header.logout",defaultMessage:"Logout"}))))};Ze.propTypes={openDenyListModal:s().func};var Ee=function(e){var t=e.openAbout,n=e.openDenyListModal,a=(0,F.k6)().push,o=(0,r.useState)(!1),i=(0,m.Z)(o,2),c=i[0],s=i[1],l=(0,V.Z)();return r.createElement(v.L,{popperProps:{position:"right"},isOpen:c,toggle:function(e){return r.createElement(h.O,{ref:e,onClick:function(){return s(!c)},variant:"plain","aria-label":l.formatMessage({id:"header.ariaLabel",defaultMessage:"Page actions"})},r.createElement(L.default,null))}},r.createElement(g.s,null,r.createElement(b.h,{isDisabled:!0,key:"user",icon:r.createElement(W,{height:"24"}),tabIndex:null},q.B.kl.tokenParsed.name),r.createElement(b.h,{key:"about",onClick:t,icon:r.createElement(D.ZP,null)},l.formatMessage({id:"header.about",defaultMessage:"About"})),r.createElement(b.h,{key:"addToSlack",onClick:function(){z(),s(!c)},icon:r.createElement(H,{height:"24"})},l.formatMessage({id:"header.addToSlack",defaultMessage:"Add to Slack"})),r.createElement(b.h,{key:"manageSubscriptions",onClick:function(){a(A._j.subscriptions.path),s(!c)}},l.formatMessage({id:"header.manageSubscriptions",defaultMessage:"Manage Subscriptions"})),r.createElement(b.h,{key:"manageDenyList",onClick:function(){n(),s(!c)}},l.formatMessage({id:"header.manageDenyList",defaultMessage:"Manage Deny List"})),r.createElement(b.h,{key:"logout",onClick:function(){q.B.kl.logout(),(0,X.X$)()}},l.formatMessage({id:"header.logout",defaultMessage:"Logout"}))))};Ee.propTypes={openAbout:s().func,openDenyListModal:s().func};var Me=function(){var e=(0,r.useState)(!1),t=(0,m.Z)(e,2),n=t[0],a=t[1],o=(0,r.useState)(!1),i=(0,m.Z)(o,2),c=i[0],s=i[1],l=function(){return a(!0)},u=function(){return s(!0)};return r.createElement(r.Fragment,null,n&&r.createElement(J,{onClose:function(){return a(!1)}}),c&&r.createElement(ke,{onClose:function(){return s(!1)}}),r.createElement(y.o,null,r.createElement(w.c,null,r.createElement(k.k,{visibility:{default:"hidden",md:"visible"},align:{default:"alignRight"}},r.createElement(Z.E,null,r.createElement(E.zx,{variant:"link",icon:r.createElement(T.YW,null),component:"a",target:"_blank",href:"https://issues.redhat.com/secure/Dashboard.jspa?selectPageId=12362932"},"PMR AI Dashboard")),r.createElement(Z.E,null,r.createElement(E.zx,{"aria-label":"Open about modal",variant:"plain",onClick:l},r.createElement(D.ZP,null))),r.createElement(Z.E,null,r.createElement(Ze,{openDenyListModal:u})),r.createElement(Z.E,null,r.createElement(W,{className:"pf-v5-c-avatar"}))),r.createElement(Z.E,{visibility:{md:"hidden",sm:"visible"},align:{default:"alignRight"}},r.createElement(Ee,{openAbout:l,openDenyListModal:u})))))};const Pe=r.createElement(M.H,null,r.createElement(P.C,null,r.createElement(O.H,{variant:"plain"},r.createElement(j.KQ,null))),r.createElement(S.d,null,r.createElement(x.x,null,r.createElement(o.rU,{to:A._j.overview.path,className:"rca-logo"},r.createElement(_.H,{src:"/public/favicon.png",alt:"Red Hat logo",className:"pf-v5-u-mr-sm rca-logo-image"}),r.createElement("span",{className:"rca-logo-text pf-v5-u-pl-sm pf-v5-u-font-weight-bold"},"Web-RCA")))),r.createElement(C.f,null,r.createElement(Me,null)));var Oe=n(93379),Se=n.n(Oe),xe=n(7795),_e=n.n(xe),Ce=n(90569),Te=n.n(Ce),je=n(3565),Ie=n.n(je),Le=n(19216),De=n.n(Le),Fe=n(44589),Ae=n.n(Fe),Re=n(73292),Ne={};Ne.styleTagTransform=Ae(),Ne.setAttributes=Ie(),Ne.insert=Te().bind(null,"head"),Ne.domAPI=_e(),Ne.insertStyleElement=De(),Se()(Re.Z,Ne),Re.Z&&Re.Z.locals&&Re.Z.locals;var Be=n(60092),Ge=n(52174),ze=n(96894),Ue=n(50442),We=n(19055),He=function(){var e=(0,F.k6)().push,t=(0,V.Z)(),n=(0,F.TH)();return r.createElement(Be.JL,{"aria-label":"Nav"},r.createElement(Ge.$,null,r.createElement(ze.L,{itemId:0,isActive:n.pathname===A._j.overview.path,onClick:function(){return e(A._j.overview.path)},to:A._j.overview.path,preventDefault:!0},t.formatMessage({id:"sidebar.overview.title",defaultMessage:"Incidents"})),r.createElement(ze.L,{itemId:1,isActive:n.pathname===A._j.products.path,onClick:function(){return e(A._j.products.path)},to:A._j.products.path,preventDefault:!0},t.formatMessage({id:"sidebar.products.title",defaultMessage:"Products"})),r.createElement(ze.L,{itemId:2,isActive:n.pathname===A._j.teams.path,onClick:function(){return e(A._j.teams.path)},to:A._j.teams.path,preventDefault:!0},t.formatMessage({id:"sidebar.teams.title",defaultMessage:"Teams"})),r.createElement(ze.L,{itemId:3,isActive:n.pathname===A._j.subscriptions.path,onClick:function(){return e(A._j.subscriptions.path)},to:A._j.subscriptions.path,preventDefault:!0},t.formatMessage({id:"sidebar.subscriptions.title",defaultMessage:"Subscriptions"}))))};const qe=r.createElement(Ue.$E,null,r.createElement(We.j,null,r.createElement(He,null)));var Xe=function(e){var t=e.children;return r.createElement(l.T,{header:Pe,sidebar:qe,defaultManagedSidebarIsOpen:!1,isManagedSidebar:!0},r.createElement(u.NP,{className:"pf-v5-u-p-0"},t),r.createElement(u.NP,{className:"rca-footer-color"},r.createElement(f,null)))};Xe.propTypes={children:s().node};const Ve=Xe;var Ke=n(32802),$e=n(59757);const Qe=function(){var e=(0,$e.ZP)($e.TH,ee.X);return r.createElement(Ke.Z,{notifications:e,removeNotification:$e.FV,onClearAll:$e.F6})};var Ye=n(39578),Je=n(38334),et=n(13825),tt=n(87966),nt=n(43193),rt=n(52055),at=n(41836),ot=n(72577),it=n(93713),ct=n(49345),st=n(78520),lt=n(31459);n.p;var ut={xs:"/public/pfbg_576.jpg",xs2x:"/public/pfbg_576@2x.jpg",sm:"/public/pfbg_768.jpg",sm2x:"/public/pfbg_768@2x.jpg",lg:"/public/pfbg_2000.jpg"};const dt=function(){var e=(0,V.Z)(),t=r.createElement(r.Fragment,null,r.createElement(ct.H,null,r.createElement(st.f,{target:"_blank",rel:"noopener noreferrer",href:"https://gitlab.cee.redhat.com/service/web-rca/"},"Web-RCA")),r.createElement(ct.H,null,r.createElement(st.f,{target:"_blank",rel:"noopener noreferrer",href:"https://gitlab.cee.redhat.com/service/web-rca-ui/"},"Web-RCA-UI")));return r.createElement(lt.X,{className:"rca-login-page",backgroundImgSrc:ut,brandImgSrc:"/public/red_hat_logo.png",brandImgAlt:"Red Hat logo",footerListVariants:"inline",loginTitle:e.formatMessage({id:"login.title",defaultMessage:"Log in to your account"}),loginSubtitle:e.formatMessage({id:"login.subtitle",defaultMessage:"Please use your single sign-on credentials"}),textContent:e.formatMessage({id:"login.textContent",defaultMessage:"Web-RCA is a service that allows anyone at Red Hat to create RCAs (root cause analysis) / incident reports."}),footerListItems:t},r.createElement(E.zx,{isBlock:!0,onClick:function(){return q.B.login()}},e.formatMessage({id:"login.login",defaultMessage:"Log in"})))};n(77862),n(66882);var pt=n(86991),ft={};ft.styleTagTransform=Ae(),ft.setAttributes=Ie(),ft.insert=Te().bind(null,"head"),ft.domAPI=_e(),ft.insertStyleElement=De(),Se()(pt.Z,ft),pt.Z&&pt.Z.locals&&pt.Z.locals,n.p;var mt=n(52643),vt=n(16766),ht=n(51214),gt=n(35905);const bt=function(){var e=(0,Ye.ZP)(Ye.dF,ee.X),t=e.initialUsers,n=e.error,a=(0,tt.ZP)(tt.o4,ee.X),c=a.products,s=a.error,l=(0,nt.ZP)(nt.zI,ee.X),u=l.contributors,d=l.error,p=(0,at.ZP)().playbooks,f=(0,it.ZP)(it.g2,ee.X).initialTeams,m=(0,rt.ZP)().owners,v=(0,ht.ZP)(ht.g2,ee.X).initialSubscriptions,h=(0,gt.ZP)(gt.g2,ee.X).initialContributors,g=(0,ot.ZP)(ot.v9),b=(0,ot.ZP)(ot.ax);(0,r.useEffect)((function(){(0,q.Z)()}),[]),(0,r.useEffect)((function(){g&&(!t&&(0,Ye.nz)(),!c&&(0,tt.QD)(),!u&&(0,nt.lt)(),!m&&(0,rt.Js)(),!p&&(0,at.AH)(),!f&&(0,it.x2)(),!v&&(0,ht.wu)(),!h&&(0,gt.nc)())}),[g]);var y=n||s||d,w=t&&c;return b?r.createElement(i.Z,{locale:"en"},r.createElement(vt.Z,null,r.createElement(Qe,null),r.createElement(o.VK,{basename:"/"},!g&&r.createElement(dt,null),g&&r.createElement(Ve,null,y&&r.createElement(Je.Z,{error:y}),!y&&!w&&r.createElement(et.Z,null),!y&&w&&r.createElement(A.ZP,null))))):r.createElement(mt.b,null,r.createElement(re.$,null))};(0,X.j6)(),a.render(r.createElement(r.StrictMode,null,r.createElement(bt,null)),document.getElementById("app"))},16314:(e,t,n)=>{n.d(t,{B:()=>l,Z:()=>u});var r=n(21472),a=n.n(r),o=n(36546),i=n(38083),c=n(72577),s={clientId:"web-rca",realm:"redhat-external",onLoad:"check-sso",cookieName:"cs_jwt",url:(0,i.c$)(null),silentCheckSsoRedirectUri:window.location.origin+"/silent-check-sso.html",promiseType:"native",checkLoginIframe:!1,pkceMethod:"S256"},l={kl:null,options:{},set setKeycloak(e){this.options=e,this.kl=a()(e);var t=this.kl;this.kl.init(this.options).then((function(e){(0,c.qN)(e),(0,c.UK)(!0),(0,c.vV)(t.tokenParsed.email),(null==t?void 0:t.tokenParsed)&&(0,o.Tv)(t.tokenParsed.email,t.tokenParsed.prefered_username)})).catch((function(){(0,c.UK)(!0),(null==t?void 0:t.tokenParsed)&&(0,o.Tv)(t.tokenParsed.email,t.tokenParsed.prefered_username)}))},get login(){var e=this;return function(){return e.kl.login({redirectUri:location.href})}}};const u=function(){l.setKeycloak=s}},38334:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(67294),a=n(45697),o=n.n(a),i=n(64166),c=n(72577),s=n(40611),l=function(e){var t=e.error,n=(0,s.Z)(),a=function(e,t){var n,a=(0,c.ZP)(c.OD);return 403===(null==e||null===(n=e.response)||void 0===n?void 0:n.status)&&a.includes("@redhat.com")?{description:r.createElement("div",null,t.formatMessage({id:"error.title",defaultMessage:"If you are a Red Hat employee and need access to WebRCA, follow the instructions in this document (VPN required):"})," ",r.createElement("div",null,r.createElement("a",{href:"https://gitlab.cee.redhat.com/service/web-rca/-/tree/main/docs/access.md",target:"_blank",rel:"noopener noreferrer"},"https://gitlab.cee.redhat.com/service/web-rca/-/tree/main/docs/access.md"))),title:"Unauthorized access"}:{description:"There was a problem processing the request. Please try again.",title:"Something went wrong"}}(t,n),o=a.description,l=a.title;return r.createElement(i.Z,{errorTitle:n.formatMessage({id:"error.title",defaultMessage:l}),errorDescription:o})};l.propTypes={error:o().object};const u=l},30373:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(87462),a=n(45987),o=n(67294),i=n(45697),c=n.n(i),s=n(72683),l=n(34046),u=n(40611),d=["headerContent","bodyContent","name"],p=function(e){var t=e.headerContent,n=e.bodyContent,i=e.name,c=(0,a.Z)(e,d),p=(0,u.Z)();return o.createElement(s.J,(0,r.Z)({headerContent:t,bodyContent:n},c),o.createElement("button",{type:"button","aria-label":p.formatMessage({id:"labelHelper.description",defaultMessage:"More info for {name} field"},{name:i}),onClick:function(e){return e.preventDefault()},className:"pf-v5-c-form__group-label-help"},o.createElement(l.ZP,null)))};p.propTypes={headerContent:c().node,bodyContent:c().node,name:c().string};const f=p},66817:(e,t,n)=>{n.d(t,{Z:()=>re});var r=n(87462),a=n(45987),o=n(4942),i=n(67294),c=n(45697),s=n.n(c),l=n(79442),u=n(67850),d=n(98658),p=n(93433),f=n(29439),m=n(92419),v=n(95762),h=n(89615);var g=n(15861),b=n(64687),y=n.n(b);var w=n(96354),k=n(65412),Z=n(75747),E=n(85958),M=n(14528),P=n(67699),O=n(4074),S=n(80236),x=n(40856),_=n(40611);var C=function(e){var t=e.Content;return i.createElement(t,null)};C.propTypes={Content:s().elementType};const T=C;var j=n(6468),I=n(22629),L=function(e){var t=e.fields,n=e.title,r=(0,j.XQ)().renderForm;return i.createElement(I.L,{toggleText:n},i.createElement("div",{className:"pf-v5-c-form"},r(t)))};L.propTypes={fields:s().array,title:s().string};const D=L;var F=n(56760),A=n(69877),R=n(90784),N=n(22608),B=n(89235);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t26214400&&t.push(e[n].name);if(1===t.length)C("".concat(t[0]," exceeds maximum attachment size of 25MiB"));else if(t.length>1){var r=t.reduce((function(e,t){return e+"".concat(t,", ")}),"");C("".concat(r,"all exceed maximum attachment size of 25MiB"))}for(var a=0;a0&&h.onChange([].concat((0,p.Z)(b),(0,p.Z)(e)))}(t)}},i.createElement(M.Y,{titleIcon:i.createElement(x.ZP,null),titleText:g.formatMessage({id:"upload.placeholder",defaultMessage:"Drag and drop files here"}),titleTextSeparator:g.formatMessage({id:"upload.or",defaultMessage:"or"}),infoText:"All file formats are allowed, but the file size must not exceed 25 MiB."}),Boolean(b.length)&&i.createElement(P.M,{statusToggleText:g.formatMessage({id:"upload.statusText",defaultMessage:"{uploaded} of {total} files uploaded"},{uploaded:y.length,total:b.length}),statusToggleIcon:y.length===b.length?"success":"inProgress"},b.map((function(e,t){return i.createElement(O.B,{file:e,key:e.name,onClearClick:function(){return function(e){return h.onChange(b.filter((function(t,n){return n!==e})))}(t)},onReadSuccess:function(e){return h.onChange(b.map((function(n,r){return t===r&&(n.base64=e),n})))}})}))),i.createElement(S.u,{variant:S.v.small,isOpen:!!Z,title:"The file is too large to process",titleIconVariant:"warning",showClose:!0,"aria-label":"too large file upload attempted",onClose:function(){return C("")}},Z)))})),(0,o.Z)(Q,"description",T),(0,o.Z)(Q,"expandable",D),(0,o.Z)(Q,"occurred-at-input",(function(e){var t=(0,v.Z)(e),n=t.id,r=t.label,a=t.isRequired,o=t.helperText,c=t.meta,s=t.validateOnMount,l=t.description,u=t.hideLabel,d=t.FormGroupProps,p=t.input,h="",g="",b="";""!==p.value.date&&""!==p.value.time&&""!==p.value.timeZone&&(h=p.value.toString().substring(0,10),g=p.value.toString().substring(11,16),b=p.value.toString().substring(19));var y,w,k,Z=new Date,E=Z.toISOString().split("T")[0],M=Z.toTimeString().substring(0,5),P=(y=-Z.getTimezoneOffset(),w=Math.abs(Math.floor(y/60)).toString().padStart(2,"0"),k=Math.abs(y%60).toString().padStart(2,"0"),"".concat(y>=0?"+":"-").concat(w,":").concat(k)),O={date:h||E,time:g||M,timeZone:b||P},S=(0,i.useState)(O),x=(0,f.Z)(S,2),_=x[0],C=x[1];return(0,i.useEffect)((function(){p.onChange(_)}),[_]),i.createElement(m.Z,{label:r,isRequired:a,helperText:o,meta:c,validateOnMount:s,description:l,hideLabel:u,id:n||p.name,FormGroupProps:d},i.createElement(F.M,{id:"occurred-at-date",name:"occurred-at-date",onBlur:p.onBlur,value:_.date,onChange:function(e,t){C(z(z({},_),{},{date:t}))},inputProps:{onBlur:p.onBlur,"aria-invalid":(0,B.x2)(c,s)}}),i.createElement(A.j,{id:"occurred-at-time",name:"occurred-at-time",onBlur:p.onBlur,time:_.time,onChange:function(e,t){C(z(z({},_),{},{time:t}))},is24Hour:!0,inputProps:{onBlur:p.onBlur,"aria-invalid":(0,B.x2)(c,s)}}),i.createElement(R.i,{id:"occurred-at-time-zone",name:"occurred-at-time-zone",value:_.timeZone,onChange:function(e,t){C(z(z({},_),{},{timeZone:t}))},"data-testid":"occurred-at-time-zone"},[{value:"-12:00",label:"GMT -12:00"},{value:"-11:00",label:"GMT -11:00"},{value:"-10:00",label:"GMT -10:00"},{value:"-09:30",label:"GMT -09:30"},{value:"-09:00",label:"GMT -09:00"},{value:"-08:00",label:"GMT -08:00"},{value:"-07:00",label:"GMT -07:00"},{value:"-06:00",label:"GMT -06:00"},{value:"-05:00",label:"GMT -05:00"},{value:"-04:00",label:"GMT -04:00"},{value:"-03:30",label:"GMT -03:30"},{value:"-03:00",label:"GMT -03:00"},{value:"-02:00",label:"GMT -02:00"},{value:"-01:00",label:"GMT -01:00"},{value:"+00:00",label:"GMT +00:00"},{value:"+01:00",label:"GMT +01:00"},{value:"+02:00",label:"GMT +02:00"},{value:"+03:00",label:"GMT +03:00"},{value:"+03:30",label:"GMT +03:30"},{value:"+04:00",label:"GMT +04:00"},{value:"+04:30",label:"GMT +04:30"},{value:"+05:00",label:"GMT +05:00"},{value:"+05:30",label:"GMT +05:30"},{value:"+05:45",label:"GMT +05:45"},{value:"+06:00",label:"GMT +06:00"},{value:"+06:30",label:"GMT +06:30"},{value:"+07:00",label:"GMT +07:00"},{value:"+08:00",label:"GMT +08:00"},{value:"+08:45",label:"GMT +08:45"},{value:"+09:00",label:"GMT +09:00"},{value:"+09:30",label:"GMT +09:30"},{value:"+10:00",label:"GMT +10:00"},{value:"+10:30",label:"GMT +10:30"},{value:"+11:00",label:"GMT +11:00"},{value:"+12:00",label:"GMT +12:00"},{value:"+12:45",label:"GMT +12:45"},{value:"+13:00",label:"GMT +13:00"},{value:"+14:00",label:"GMT +14:00"}].map((function(e,t){return i.createElement(N.j,{key:t,value:e.value,label:e.label})}))))})),(0,o.Z)(Q,"helper-text",q),(0,o.Z)(Q,"logged-user-select",(function(e){var t=(0,v.Z)(e),n=t.id,r=t.label,a=t.isRequired,o=t.helperText,c=t.meta,s=t.validateOnMount,l=t.description,u=t.hideLabel,d=t.FormGroupProps,b=t.input,w=(0,X.ZP)(X.NA),k=(0,X.ZP)(X.id),Z=(0,i.useCallback)((0,V.Z)(),[]),E=b.value||[w],M=(0,i.useState)(),P=(0,f.Z)(M,2),O=P[0],S=P[1],x=(0,i.useState)([]),_=(0,f.Z)(x,2),C=_[0],T=_[1],j=(0,i.useState)(!0),I=(0,f.Z)(j,2),L=I[0],D=I[1];return(0,i.useEffect)((function(){var e=function(){var e=(0,g.Z)(y().mark((function e(){var t,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:t=e.sent,S(t),D(!1),n=t.filter((function(e){return E.includes(e.value)})),T(n.map((function(e){return{value:e.value,label:e.label}})));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),i.createElement(m.Z,{label:r,isRequired:a,helperText:o,meta:c,validateOnMount:s,description:l,hideLabel:u,id:n||b.name,FormGroupProps:d},i.createElement(h.Z,{allOptions:O,selected:C,onSelectCallback:function(e){var t=C.some((function(t){return t.value===e.value}))?C.filter((function(t){return t.value!==e.value||e.value===w})):[].concat((0,p.Z)(C),[e]);T(t),b.onChange(t.map((function(e){return e.value})))},onClear:function(){T([{value:w,label:k}]),b.onChange([{value:w}].map((function(e){return e.value})))},placeholder:"Choose...",className:"",loggedUserValue:w,isLoading:L}))})),(0,o.Z)(Q,"product-select",(function(e){var t=(0,v.Z)(e),n=t.id,r=t.label,a=t.isRequired,o=t.helperText,c=t.meta,s=t.validateOnMount,l=t.description,u=t.hideLabel,d=t.FormGroupProps,b=t.input,w=K.ZP.getState().products,k=(0,i.useState)(),Z=(0,f.Z)(k,2),E=Z[0],M=Z[1],P=(0,i.useState)([]),O=(0,f.Z)(P,2),S=O[0],x=O[1],_=(0,i.useState)(!0),C=(0,f.Z)(_,2),T=C[0],j=C[1],I=(0,i.useState)(""),L=(0,f.Z)(I,2),D=L[0],F=L[1],A=(0,i.useState)(!1),R=(0,f.Z)(A,2),N=R[0],B=R[1];(0,i.useEffect)((function(){var e=function(){var e=(0,g.Z)(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=w.map((function(e){var t=e.name;return{value:t,label:t}})),M(t),j(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var G=function(){var e=(0,g.Z)(y().mark((function e(t){var n,r,a,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t||!t.includes("/")){e.next=9;break}if(n=t.toLowerCase().replace(/\/.*/,""),null==(r=w.find((function(e){return e.name.toLowerCase()===n})))||!r.id){e.next=9;break}return e.next=6,$.Z.getApplications(r.id);case 6:a=e.sent,(o=a.map((function(e){var t=e.fullname;return{value:t,label:t}}))).length>0&&!N&&(i=(0,p.Z)(E),o.forEach((function(e){i.some((function(t){return t.value===e.value}))||i.push(e)})),M(i));case 9:F(t);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=(0,g.Z)(y().mark((function e(t){var n,r,a,o,i,c,s,l,u;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="".concat(t.label,"/"),a=null===(n=t.label)||void 0===n?void 0:n.includes("/"),o=function(e){var t=S.some((function(t){return t.value===e.value}))?S.filter((function(t){return t.value!==e.value})):[].concat((0,p.Z)(S),[e]);x(t),b.onChange(t.map((function(e){return e.value}))),B(!1),F("")},a){e.next=14;break}if(i=r.toLowerCase().replace(/\/.*/,""),null==(c=w.find((function(e){return e.name.toLowerCase()===i})))||!c.id){e.next=12;break}return e.next=9,$.Z.getApplications(c.id);case 9:s=e.sent,(l=s.map((function(e){var t=e.fullname;return{value:t,label:t}}))).length>0&&!N?(u=(0,p.Z)(E),l.forEach((function(e){u.some((function(t){return t.value===e.value}))||u.push(e)})),M(u),B(!0),F(t.label)):o(t);case 12:e.next=15;break;case 14:o(t);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i.createElement(m.Z,{label:r,isRequired:a,helperText:o,meta:c,validateOnMount:s,description:l,hideLabel:u,id:n||b.name,FormGroupProps:d},i.createElement(h.Z,{allOptions:E,selected:S,onSelectCallback:z,onClear:function(){x([]),b.onChange([])},placeholder:"Type product name",className:"",isLoading:T,onInputChange:G,inputValue:D}))})),Q)),ne=function(e){var t=e.FormTemplateProps,n=e.componentMapper,o=(0,a.Z)(e,Y),c=(0,i.useCallback)((function(e){return i.createElement(u.ZP,(0,r.Z)({},e,t))}),[]);return i.createElement(l.Z,(0,r.Z)({FormTemplate:c,componentMapper:ee(ee({},te),n)},o))};ne.propTypes={FormTemplateProps:s().object,componentMapper:s().object};const re=ne},89615:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(87462),a=n(93433),o=n(29439),i=n(23971),c=n(94623),s=n(66484),l=n(18759),u=n(35978),d=n(68578),p=n(47173),f=n(52643),m=n(2372),v=n(82212),h=n(41309),g=n(92694),b=n(24307),y=n(45697),w=n.n(y),k=n(67294),Z=function(e){var t=e.allOptions,n=e.selected,y=e.onSelectCallback,w=void 0===y?function(){}:y,Z=e.onClear,E=e.placeholder,M=e.className,P=e.isCreatable,O=void 0!==P&&P,S=e.hasCheckboxes,x=void 0!==S&&S,_=e.showChips,C=void 0===_||_,T=e.loggedUserValue,j=e.isLoading,I=void 0!==j&&j,L=e.onInputChange,D=e.inputValue,F=k.useState(!1),A=(0,o.Z)(F,2),R=A[0],N=A[1],B=k.useState(null),G=(0,o.Z)(B,2),z=G[0],U=G[1],W=k.useState(null),H=(0,o.Z)(W,2),q=H[0],X=H[1],V=k.useRef(),K=k.useState(""),$=(0,o.Z)(K,2),Q=$[0],Y=$[1],J={value:"create-new",label:'Create "'.concat(Q,'"'),createNew:!0},ee=[].concat((0,a.Z)(t?t.filter((function(e){return String(e.label).toLowerCase().includes((null!=D?D:Q).toLowerCase())})):[]),(0,a.Z)(O&&(null!=D?D:Q)?[J]:[])),te=function(e){var t;null===(t=V.current)||void 0===t||t.focus(),e.createNew?w({value:Q,label:Q}):w(e),D||(""!==Q?(U(null),X(null),Y("")):U(ee.findIndex((function(t){return t===e}))))},ne=function(e){var t=ee.filter((function(e){return!e.isDisabled}))[null!=z?z:0];switch(e.key){case"Enter":R?R&&t&&te(t):N(!0);break;case"Tab":case"Escape":N(!1),X(null);break;case"ArrowUp":case"ArrowDown":e.preventDefault(),function(e){var t;if(R){"ArrowUp"===e&&(t=null===z||0===z?ee.length-1:z-1),"ArrowDown"===e&&(t=null===z||z===ee.length-1?0:z+1),U(t);var n=ee.filter((function(e){return!e.isDisabled}))[t];X("select-multi-typeahead-".concat(n.value.replace(" ","-")))}}(e.key)}},re=function(){N(!R)},ae=function(e,t){t&&!R&&N(!0),D||Y(t),U(null),X(null),L&&L(t)};return k.createElement(k.Fragment,null,I?k.createElement(f.b,null,k.createElement(m.$,{size:"lg",className:"pf-v5-u-mt-md pf-v5-u-mb-md"})):k.createElement(v.P,{id:"multi-typeahead-select",isOpen:R,selected:n,onSelect:function(e,t){return te(t)},onOpenChange:function(){return N(!1)},toggle:function(e){return k.createElement(i.O,{className:M,variant:"typeahead",onClick:re,innerRef:e,isExpanded:R,isFullWidth:!0},k.createElement(c.L,{isPlain:!0},k.createElement(s.v,(0,r.Z)({value:null!=D?D:Q,onClick:re,onChange:ae,onKeyDown:ne,id:"multi-typeahead-select-input",autoComplete:"off",innerRef:V,placeholder:E},q&&{"aria-activedescendant":q},{role:"combobox",isExpanded:R,"aria-controls":"select-multi-typeahead-listbox"}),C&&k.createElement(l.Z,{"aria-label":"Current selections"},n.map((function(e,t){return k.createElement(u.A,{key:t,onClick:function(t){t.stopPropagation(),te(e)},isReadOnly:e.value===T},e.label)})))),(n.length>1||!T)&&k.createElement(d.t,null,n.length>0&&k.createElement(p.zx,{variant:"plain",onClick:function(){var e;Z(),D||Y(""),null==V||null===(e=V.current)||void 0===e||e.focus()},"aria-label":"Clear input value"},k.createElement(b.ZP,{"aria-hidden":!0})))))},isScrollable:!0},k.createElement(h.E,{isAriaMultiselectable:!0,id:"select-multi-typeahead-listbox"},null==t?k.createElement(g.$,{key:"loading",isDisabled:!0},"Loading data..."):ee.length||O&&(null!=D?D:Q)?null==ee?void 0:ee.map((function(e,t){return k.createElement(g.$,{key:t,value:e,isFocused:z===t,hasCheckbox:x,isSelected:n.some((function(t){return t.value===e.value})),id:"select-multi-typeahead-".concat(e.value.replace(" ","-"))},e.label)})):k.createElement(g.$,{key:"no-results",isDisabled:!0},"No results found"))))};Z.propTypes={allOptions:w().array,selected:w().array,onSelectCallback:w().func,onClear:w().func,placeholder:w().string,className:w().string,isCreatable:w().bool,hasCheckboxes:w().bool,showChips:w().bool,loggedUserValue:w().string,isLoading:w().bool,onInputChange:w().func,inputValue:w().string};const E=Z},9820:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(87462),a=n(45987),o=n(67294),i=n(45697),c=n.n(i),s=n(68774),l=n(68340),u=n(72936),d=n(25834),p=n(49345),f=n(78140),m=n(40611),v=["inTooltip"],h=function(e){var t=e.inTooltip,n=(0,a.Z)(e,v),i=(0,m.Z)(),c=t?"div":s.D,h=t?"p":l.x,g=t?u.aV:d.G,b=t?p.H:f.T;return o.createElement(c,n,o.createElement(h,{className:"pf-v5-u-mb-0"},i.formatMessage({id:"incident.new.form.severity.helper.descriptionText",defaultMessage:"Severity Description"})),o.createElement(g,(0,r.Z)({component:"ul"},t?{style:{paddingLeft:12}}:{className:"pf-v5-u-ml-0"}),o.createElement(b,{className:"pf-v5-u-mt-0"},i.formatMessage({id:"incident.new.form.severity.helper.textListItem1",defaultMessage:"Critical - Broad, brand-impacting issue affecting many customers or entire services."})),o.createElement(b,{className:"pf-v5-u-mt-0"},i.formatMessage({id:"incident.new.form.severity.helper.textListItem2",defaultMessage:"Major - SLA-impacting issue for a single service, causing outages or consistent degradation."})),o.createElement(b,{className:"pf-v5-u-mt-0"},i.formatMessage({id:"incident.new.form.severity.helper.textListItem3",defaultMessage:"Minor - High business urgency without SLA impact; includes compliance issues, redundancy loss, or non-urgent incidents."}))))};h.propTypes={inTooltip:c().bool};const g=h},66896:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(45987),a=n(67294),o=n(45697),i=n.n(o),c=n(68774),s=n(68340),l=n(72936),u=n(25834),d=n(49345),p=n(78140),f=n(40611),m=["inTooltip"],v=function(e){var t=e.inTooltip,n=(0,r.Z)(e,m),o=(0,f.Z)(),i=t?"div":c.D,v=t?"p":s.x,h=t?l.aV:u.G,g=t?d.H:p.T;return a.createElement(i,n,a.createElement(v,{className:"pf-v5-u-mb-md pf-v5-u-font-weight-bold"},o.formatMessage({id:"incident.new.form.summary.helper.titleFormat",defaultMessage:"[Impact Summary] - [Root Cause or Affected System]"})),a.createElement(v,{className:"pf-v5-u-mb-0"},o.formatMessage({id:"incident.new.form.summary.helper.examples",defaultMessage:"Examples:"})),a.createElement(h,t?{style:{paddingLeft:12}}:{className:"pf-v5-u-ml-0"},a.createElement(g,{className:"pf-v5-u-mt-0"},o.formatMessage({id:"incident.new.form.summary.helper.example1",defaultMessage:"Incident Creation Intermittently Failing - WebRCA"})),a.createElement(g,{className:"pf-v5-u-mt-0"},o.formatMessage({id:"incident.new.form.summary.helper.example2",defaultMessage:"Cluster Down - Konflux prd-p02"})),a.createElement(g,{className:"pf-v5-u-mt-0"},o.formatMessage({id:"incident.new.form.summary.helper.example3",defaultMessage:"Outage - Red Hat Registry"}))),a.createElement(v,{className:"pf-v5-u-mb-0 pf-v5-u-mt-md"},o.formatMessage({id:"incident.new.form.summary.helper.avoidTitle",defaultMessage:"Avoid:"})),a.createElement(h,t?{style:{paddingLeft:12}}:{className:"pf-v5-u-ml-0"},a.createElement(g,{className:"pf-v5-u-mt-0"},o.formatMessage({id:"incident.new.form.summary.helper.avoid1",defaultMessage:'Vague titles like "Issue with service"'})),a.createElement(g,{className:"pf-v5-u-mt-0"},o.formatMessage({id:"incident.new.form.summary.helper.avoid2",defaultMessage:'Titles with only ticket numbers (e.g. "RHCLOUD-12345")'})),a.createElement(g,{className:"pf-v5-u-mt-0"},o.formatMessage({id:"incident.new.form.summary.helper.avoid3",defaultMessage:"Using internal jargon unfamiliar outside the team"}))))};v.propTypes={inTooltip:i().bool};const h=v},36520:(e,t,n)=>{n.d(t,{T9:()=>o,kU:()=>r,oc:()=>i,pG:()=>a});var r="RCA-enabled-columns-v1",a="RCA-enabled-products-columns-v1",o="RCA-enabled-teams-columns-v1",i="RCA-enabled-subscriptions-columns-v1"},50406:(e,t,n)=>{n.d(t,{nK:()=>we,KF:()=>ie,zS:()=>J,fm:()=>z,a7:()=>re,ZL:()=>oe,EX:()=>ee,T9:()=>$,z_:()=>q,xI:()=>W,Sc:()=>ne,dT:()=>ae,AC:()=>ce,Jv:()=>te,S4:()=>K,XC:()=>se,_U:()=>V,N9:()=>H,Em:()=>pe,_R:()=>fe,Ay:()=>de,pp:()=>G,xA:()=>ge,xx:()=>ve,zM:()=>he,O7:()=>be,e$:()=>U,xz:()=>ue,xS:()=>me,LO:()=>le,nG:()=>Q,PD:()=>X,R_:()=>B,ES:()=>Y,eQ:()=>ye});var r=n(15861),a=n(4942),o=n(45987),i=n(64687),c=n.n(i),s=n(67294),l=n(96354),u=n(64124),d=n(30373),p=n(9820),f=n(66896),m=n(2615),v=n(52583),h=n(23924),g=n(93433),b=n(99166),y=n(66702),w=n(93713),k=["id"],Z=function(e){var t=Array.isArray(e)?e:[e],n=w.ZP.getState().initialTeams.items.map((function(e){return e.id}));return t.map((function(e){return n.includes(e.id)?null:{value:e.id,label:e.name}})).filter(Boolean)};const E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=(0,b.Z)((function(e){return null!=e&&e.search?y.Z.getListTeam({search:"name ilike '%".concat(null==e?void 0:e.search,"%'")}):Promise.resolve(w.ZP.getState().initialTeams)}),500,{onlyResolvesLast:!1});return function(){var n=(0,r.Z)(c().mark((function n(r,a){var i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t({search:r});case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return",[]);case 5:return n.abrupt("return",[].concat((0,g.Z)(!r&&a?Z(a):[]),(0,g.Z)(i.items.filter((function(t){return e(t)})).map((function(e){return{value:e.id,label:(0,o.Z)(e,k).name}})))));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()};var M=n(35905),P=["id"],O=function(e){var t=Array.isArray(e)?e:[e],n=M.ZP.getState().initialContributors.items.map((function(e){return e.id}));return t.map((function(e){return n.includes(e.id)?null:{value:e.id,label:e.employee_id}})).filter(Boolean)};const S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=(0,b.Z)((function(e){return null!=e&&e.search?y.Z.getListContributor({search:"employee_id ilike '%".concat(null==e?void 0:e.search,"%'")}):Promise.resolve(M.ZP.getState().initialContributors)}),500,{onlyResolvesLast:!1});return function(){var n=(0,r.Z)(c().mark((function n(r,a){var i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t({search:r});case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return",[]);case 5:return n.abrupt("return",[].concat((0,g.Z)(!r&&a?O(a):[]),(0,g.Z)(i.items.filter((function(t){return e(t)})).map((function(e){return{value:e.id,label:(0,o.Z)(e,P).employee_id}})))));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()};var x=n(83524),_=["id"],C=function(e){var t=Array.isArray(e)?e:[e],n=x.ZP.getState().initialIncidents.items.map((function(e){return e.id}));return t.map((function(e){return n.includes(e.id)?null:{value:e.id,label:e.name}})).filter(Boolean)};const T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=(0,b.Z)((function(e){return null!=e&&e.search?y.Z.getListIncident({search:"incident_id ilike '%".concat(null==e?void 0:e.search,"%'")}):Promise.resolve(x.ZP.getState().initialIncidents)}),500,{onlyResolvesLast:!1});return function(){var n=(0,r.Z)(c().mark((function n(r,a){var i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t({search:r||"ITN"});case 2:if(i=n.sent){n.next=5;break}return n.abrupt("return",[]);case 5:return n.abrupt("return",[].concat((0,g.Z)(!r&&a?C(a):[]),(0,g.Z)(i.items.filter((function(t){return e(t)})).map((function(e){return{value:e.id,label:(0,o.Z)(e,_).incident_id}})))));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()};var j=n(87966),I=n(71201),L=n(41836),D=n(51496),F=["value"],A=["value"];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return{component:l.Z.SELECT,menuIsPortal:!0,isSearchable:!0,loadOptions:(0,h.Z)((function(t){return!e.find((function(e){return e.id===t.id}))})),noValueUpdates:!0,simpleValue:!0,isClearable:!0,FormGroupProps:{className:"rca-product-form-select"}}},G=function(e){return{component:l.Z.SELECT,name:"status",label:e.formatMessage({id:"incident.new.form.status",defaultMessage:"Status"}),isRequired:!0,validate:[{type:u.Z.REQUIRED}],options:["ongoing","resolved","paused","closed"].map((function(t){return{value:t,label:(0,m.Tc)(t,e)}})),resolveProps:function(t){var n=t.initialValue;return"new"===n?{options:["new","ongoing","resolved"].map((function(t){return{value:t,label:(0,m.Tc)(t,e)}}))}:"ongoing"===n?{options:[{value:"ongoing"},{value:"paused",description:e.formatMessage({id:"overview.actions.pause.description",defaultMessage:"Set for awaiting customer action or a later time."})},{value:"resolved"}].map((function(t){var n=t.value,r=(0,o.Z)(t,F);return N({value:n,label:(0,m.Tc)(n,e)},r)}))}:"paused"===n?{options:["paused","ongoing","resolved"].map((function(t){return{value:t,label:(0,m.Tc)(t,e)}}))}:"resolved"===n?{options:[{value:"ongoing"},{value:"resolved"},{value:"closed",description:e.formatMessage({id:"overview.actions.close.description",defaultMessage:"Incident can be closed once all followups are done or archived."}),isDisabled:!I.ZP.getState().canBeClosed}].map((function(t){var n=t.value,r=(0,o.Z)(t,A);return N({value:n,label:(0,m.Tc)(n,e)},r)}))}:"closed"===n?{options:["ongoing","closed"].map((function(t){return{value:t,label:(0,m.Tc)(t,e)}}))}:void 0}}},z=function(e){return{component:l.Z.TEXTAREA,name:"description",label:e.formatMessage({id:"incident.new.form.description",defaultMessage:"Incident description"}),isRequired:!0,rows:6,validate:[{type:u.Z.REQUIRED}]}},U=function(e){return{component:l.Z.TEXTAREA,name:"summary",rows:2,label:e.formatMessage({id:"incident.new.form.summary",defaultMessage:"Summary"}),isRequired:!0,FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{hasAutoWidth:!0,name:"summary",headerContent:e.formatMessage({id:"incident.new.form.summary.helper.title",defaultMessage:"Incident Summary Format"}),bodyContent:s.createElement(f.Z,null)})},validate:[{type:u.Z.REQUIRED}]}},W=function(e){return{component:l.Z.RADIO,name:"incident_type",label:e.formatMessage({id:"incident.new.form.type",defaultMessage:"Incident type"}),isRequired:!0,FormGroupProps:{isInline:!0},validate:[{type:u.Z.REQUIRED}],options:v.FD.map((function(t){return{value:t,label:(0,m.lo)(t,e)}}))}},H=function(e){return{component:l.Z.SELECT,name:"severity",label:e.formatMessage({id:"incident.new.form.severity",defaultMessage:"Severity"}),options:v.Xo.map((function(e){return{value:e.value,label:e.label}})),validate:[{type:u.Z.REQUIRED}],isRequired:!0,FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{hasAutoWidth:!0,name:"severity",headerContent:e.formatMessage({id:"incident.new.form.severity.helper.title",defaultMessage:"Incident severity levels impact:"}),bodyContent:s.createElement(p.Z,null)})}}},q=function(e){return N(N({name:"incident_owner",label:e.formatMessage({id:"incident.new.form.incidentOwner",defaultMessage:"Incident owner"}),validate:[{type:u.Z.REQUIRED}],isRequired:!0},B()),{},{FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"incident_owner",headerContent:e.formatMessage({id:"incident.new.form.incidentOwner.helper.title",defaultMessage:"Incident owner"}),bodyContent:e.formatMessage({id:"incident.new.form.incidentOwner.helper.description",defaultMessage:"If you are unsure who the owner should be, assign the Engineering Manager responsible for the product. You may consult InScope or the app interface to identify the owner. If that is not possible, assign your direct manager."})})}})},X=function(e){return N(N({name:"product_engineering_lead",label:e.formatMessage({id:"incident.new.form.techLead",defaultMessage:"Product engineering / tech lead"}),isRequired:!0},B()),{},{FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"product_engineering_lead",headerContent:e.formatMessage({id:"incident.new.form.techLead.helper.title",defaultMessage:"Incident Technical Lead"}),bodyContent:e.formatMessage({id:"incident.new.form.techLead.helper.description",defaultMessage:"The incident Tech Lead may be assumed by an SRE or product engineering team member. Can be changed only by an explicit decision of the Incident Owner."})})}})},V=function(e){return N(N({name:"scribe",label:e.formatMessage({id:"incident.new.form.scribe",defaultMessage:"Scribe"}),isRequired:!0},B()),{},{FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"scribe",headerContent:e.formatMessage({id:"incident.new.form.scribe.helper.title",defaultMessage:"Incident Scribe"}),bodyContent:e.formatMessage({id:"incident.new.form.scribe.helper.description",defaultMessage:"The duty of the scribe is to report in the RCA document all the important information (technical details, timeline, ...) while the Incident Owner is focused on helping with the coordination"})})}})},K=function(e){return{component:"product-select",name:"products",label:e.formatMessage({id:"incident.new.form.products",defaultMessage:"Products"}),validate:[{type:u.Z.REQUIRED}],isRequired:!0,FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"products",headerContent:e.formatMessage({id:"incident.new.form.products.helper.header",defaultMessage:"Products or product instances"}),bodyContent:e.formatMessage({id:"incident.new.form.products.helper.description",defaultMessage:'Select one or more products or product instances.\nTo select an instance, type in the product name followed by the slash symbol: "/".'})})},noValueUpdates:!0,isSearchable:!0,placeholder:e.formatMessage({id:"incident.new.form.products.placeholder",defaultMessage:"Type product name"}),isMulti:!0}},$=function(e){return{component:"product-select",name:"impacted_products",label:e.formatMessage({id:"incident.new.form.impactedProducts",defaultMessage:"Products impacted"}),isRequired:!1,isMulti:!0,isSearchable:!0,placeholder:e.formatMessage({id:"incident.new.form.impactedProducts.placeholder",defaultMessage:"Type impacted product name"}),FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"impacted_products",headerContent:e.formatMessage({id:"incident.new.form.impactedProducts.helper.header",defaultMessage:"Products or product instances"}),bodyContent:e.formatMessage({id:"incident.new.form.impactedProducts.helper.description",defaultMessage:'Select one or more products or product instances.\nTo select an instance, type in the product name followed by the slash symbol: "/".'})})}}},Q=function(e){return N(N({name:"teams",label:e.formatMessage({id:"incident.new.form.teams",defaultMessage:"Incident teams"})},{component:l.Z.SELECT,menuIsPortal:!0,isSearchable:!0,loadOptions:E(),noValueUpdates:!0,simpleValue:!0,isClearable:!0,FormGroupProps:{className:"rca-product-form-select"}}),{},{isMulti:!0,isClearable:!1,FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"teams",headerContent:"Incident teams",bodyContent:"Team members of these teams can see private incident."})}})},Y=function(e){return N(N({name:"viewers",label:e.formatMessage({id:"incident.new.form.viewers",defaultMessage:"Incident viewers"})},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{component:"logged-user-select",menuIsPortal:!0,isSearchable:!0,loadOptions:(0,h.Z)((function(t){return!e.find((function(e){return e.id===t.id}))})),noValueUpdates:!0,simpleValue:!0,isClearable:!0,FormGroupProps:{className:"rca-product-form-select"}}}()),{},{isMulti:!0,isClearable:!1,FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"viewers",headerContent:"Incident viewers",bodyContent:"Viewers can also see private incident."})}})},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{component:"creatable-dynamic-select",name:"contributors",label:e.formatMessage({id:"incident.new.form.contributors",defaultMessage:"Incident contributors"}),initialValues:t,loadOptions:S(),FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"contributors",headerContent:"Incident contributors",bodyContent:"Incident contributors is list of employee ids working on the incident"})}}},ee=function(e){return{component:"creatable-select",name:"external_coordination",label:e.formatMessage({id:"incident.new.form.externalCoordination",defaultMessage:"External coordination"}),options:[{value:"#sd-ops",label:"#sd-ops"}],FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"external_coordination",headerContent:"External coordination",bodyContent:"Mention any additional communication channels such as dedicated slack channels, mailing lists, meeting links, etc."})}}},te=function(e){return{component:l.Z.TEXT_FIELD,name:"post_mortem_review",label:e.formatMessage({id:"incident.new.form.postMortemReview",defaultMessage:"Post mortem review"}),options:[{value:"#sd-ops",label:"#sd-ops"}],FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"post_mortem_review",headerContent:"Post mortem review",bodyContent:"URL to post mortem review meeting or recording"})}}},ne=function(e){return{name:"private",component:l.Z.CHECKBOX,label:s.createElement(s.Fragment,null,e.formatMessage({id:"incident.new.form.private.helper.title",defaultMessage:"Set incident as private"}),s.createElement(d.Z,{name:"private",bodyContent:e.formatMessage({id:"incident.new.form.private.helper.description",defaultMessage:"Private incidents will only be visible to the incident participants and creator. This can be changed later on."})}))}},re=function(e){return{name:"private",component:l.Z.SELECT,label:e.formatMessage({id:"incident.new.form.private.helper.title",defaultMessage:"Set incident as private"}),options:[{label:e.formatMessage({id:"incident.new.form.private.select.select",defaultMessage:"Public"}),value:!1},{label:e.formatMessage({id:"incident.new.form.private.select.private",defaultMessage:"Private"}),value:!0}]}},ae=function(e){return{name:"invalid",component:l.Z.CHECKBOX,label:s.createElement(s.Fragment,null,e.formatMessage({id:"incident.new.form.invalid.helper.title",defaultMessage:"Set incident as invalid"}),s.createElement(d.Z,{name:"invalid",bodyContent:e.formatMessage({id:"incident.new.form.invalid.helper.description",defaultMessage:"Invalid incidents will have their data omitted from reporting. This can be changed later on."})}))}},oe=function(e){return{name:"invalid",component:l.Z.SELECT,label:e.formatMessage({id:"incident.new.form.invalid.helper.title",defaultMessage:"Set incident as invalid"}),options:[{label:e.formatMessage({id:"incident.new.form.invalid.select.select",defaultMessage:"Yes"}),value:!1},{label:e.formatMessage({id:"incident.new.form.invalid.select.invalid",defaultMessage:"No"}),value:!0}]}},ie=function(e){return{name:"bad_rollout_commit",component:l.Z.TEXT_FIELD,label:e.formatMessage({id:"incident.new.form.badRolloutCommit",defaultMessage:"Bad rollout commit"}),FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"bad_rollout_commit",headerContent:"Bad rollout commit",bodyContent:"Commit if incident result of bad rollout"})}}},ce=function(e){return{component:l.Z.SELECT,name:"ansible_playbook",label:e.formatMessage({id:"incident.new.form.playbooks",defaultMessage:"Playbooks"}),isRequired:!0,FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"playbooks",headerContent:e.formatMessage({id:"incident.new.form.playbooks.helper.header",defaultMessage:"Playbook"}),bodyContent:e.formatMessage({id:"incident.new.form.playbooks.helper.description",defaultMessage:"Select Ansible playbook to be executed with the incident."})})},loadOptions:(t=(0,r.Z)(c().mark((function t(){var n,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=L.ZP.getState().playbooks,t.abrupt("return",(null==r||null===(n=r.items)||void 0===n?void 0:n.map((function(t){var n=t.name;return{value:n,label:(0,m.KH)(n,e)}})))||[]);case 2:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),initialValue:"default",isSearchable:!0,placeholder:e.formatMessage({id:"incident.new.form.playbooks.placeholder",defaultMessage:"Type playbook name"}),isMulti:!1};var t},se=function(e){return{component:l.Z.TEXT_FIELD,name:"name",rows:1,label:e.formatMessage({id:"product.new.form.name",defaultMessage:"Name"}),isRequired:!0,validate:[{type:u.Z.REQUIRED},{type:u.Z.MAX_LENGTH,threshold:150}]}},le=function(e){return{component:l.Z.TEXT_FIELD,name:"name",rows:1,label:e.formatMessage({id:"team.new.form.name",defaultMessage:"Name"}),isRequired:!0,validate:[{type:u.Z.REQUIRED},{type:u.Z.MAX_LENGTH,threshold:150}]}},ue=function(e,t){var n,r;return{component:"creatable-select",name:"emails",label:e.formatMessage({id:"team.new.form.emails",defaultMessage:"Emails"}),options:(null==t||null===(n=t.emails)||void 0===n?void 0:n.map((function(e){return{value:e,label:e}})))||[],initialValues:(null==t||null===(r=t.emails)||void 0===r?void 0:r.map((function(e){return{value:e,label:e}})))||[]}},de=function(e){return{component:l.Z.TEXT_FIELD,name:"slack_team_id",rows:1,label:e.formatMessage({id:"team.new.form.slack_team_id",defaultMessage:"Slack Team ID"})}},pe=function(e,t){var n,r;return{component:"creatable-select",name:"slack_channel_ids",label:e.formatMessage({id:"team.new.form.slack_channel_ids",defaultMessage:"Slack Channel IDs"}),FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"slack_channel_ids",headerContent:"Slack Channel IDs",bodyContent:"Add slack channel ids for your team"})},options:(null==t||null===(n=t.slack_channel_ids)||void 0===n?void 0:n.map((function(e){return{value:e,label:e}})))||[],initialValues:(null==t||null===(r=t.slack_channel_ids)||void 0===r?void 0:r.map((function(e){return{value:e,label:e}})))||[]}},fe=function(e){return{component:l.Z.TEXT_FIELD,name:"slack_team_handle",label:e.formatMessage({id:"team.new.form.slack_team_handle",defaultMessage:"Slack Team Handle"}),FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"slack_team_handle",headerContent:"Slack Team Handle",bodyContent:"The @team to mention your group"})}}},me=function(e){return{name:"members",label:e.formatMessage({id:"team.new.form.members",defaultMessage:"Team members"}),component:l.Z.SELECT,isSearchable:!0,loadOptions:(0,h.Z)(),FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"members",headerContent:"Team members",bodyContent:"Members of the team can see private team incidents. Add or remove members from the team."})},isMulti:!0}},ve=function(e){return{name:"notify_by",label:e.formatMessage({id:"subscription.new.form.notify_by",defaultMessage:"Notify by"}),component:l.Z.SELECT,options:[{value:"slack",label:"By slack"},{value:"email",label:"By email"}],FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"notify_by",headerContent:"Notify by",bodyContent:"Notify_by"})},isRequired:!0}},he=function(e){return{name:"notify_on",label:e.formatMessage({id:"subscription.new.form.notify_on",defaultMessage:"Notify on"}),component:l.Z.RADIO,options:[{value:"declaration",label:"On Declaration"},{value:"lifecycle",label:"On Lifecycle"}],FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"notify_on",headerContent:"Notify on",bodyContent:"notify_on"})},isRequired:!0}},ge=function(e){return N(N({name:"incident",label:e.formatMessage({id:"subscription.new.form.incident",defaultMessage:"Incident"})},{component:l.Z.SELECT,menuIsPortal:!0,isSearchable:!0,loadOptions:T(),noValueUpdates:!0,simpleValue:!0,isClearable:!0,FormGroupProps:{className:"rca-product-form-select"}}),{},{isMulti:!1,isClearable:!1,isRequired:!0,FormGroupProps:{labelIcon:s.createElement(d.Z,{name:"teams",headerContent:"Incident",bodyContent:"Select one incident."})}})},be=function(e){return{component:l.Z.SELECT,name:"product",label:e.formatMessage({id:"subscription.new.form.product",defaultMessage:"Product"}),validate:[{type:u.Z.REQUIRED}],isRequired:!0,FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"product",headerContent:e.formatMessage({id:"subscription.new.form.product.helper.header",defaultMessage:"Products or product instances"}),bodyContent:e.formatMessage({id:"subscription.new.form.product.helper.description",defaultMessage:"Select one product."})})},noValueUpdates:!0,loadOptions:(t=(0,r.Z)(c().mark((function t(n,r){var a,o,i,s,l;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=[],o=j.ZP.getState().products,null==r||r.forEach((function(t){return t.includes("/")&&a.push({value:t,label:(0,m.KH)(t,e)})})),null==n||!n.includes("/")){t.next=10;break}if(i=o.find((function(e){return e.name.toLowerCase()===n.toLowerCase().replace(/\/.*/,"")}))||{},!(s=i.id)){t.next=10;break}return t.next=8,D.Z.getApplications(s);case 8:return l=t.sent,t.abrupt("return",l.map((function(t){var n=t.fullname;return{value:n,label:(0,m.KH)(n,e)}})));case 10:return t.abrupt("return",o.map((function(t){var n=t.id,r=t.name;return{value:n,label:(0,m.KH)(r,e)}})).concat(a));case 11:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)}),isSearchable:!0,placeholder:e.formatMessage({id:"subscription.new.form.product.placeholder",defaultMessage:"Type product name"}),isMulti:!1};var t},ye=function(e){return{component:l.Z.SELECT,name:"workspace",label:e.formatMessage({id:"denyList.form.workspace",defaultMessage:"Workspace"}),isRequired:!0,validate:[{type:u.Z.REQUIRED}],FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"workspace",headerContent:e.formatMessage({id:"denyList.form.workspace.helper.title",defaultMessage:"Select Workspace"}),bodyContent:e.formatMessage({id:"denyList.form.workspace.helper.description",defaultMessage:"Select a workspace to view its denied channels."})})},loadOptions:(t=(0,r.Z)(c().mark((function e(){var t,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.Z.getListSlackWorkspace();case 3:return t=e.sent,n=(t.items||[]).map((function(e){return{value:e.id,label:e.name||e.id}})),e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),console.error("Error loading workspaces:",e.t0),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(){return t.apply(this,arguments)}),isSearchable:!0,placeholder:e.formatMessage({id:"denyList.form.workspace.placeholder",defaultMessage:"Select a workspace"}),isMulti:!1};var t},we=function(e){return{component:l.Z.TEXT_FIELD,name:"name",label:e.formatMessage({id:"denyList.form.addChannel",defaultMessage:"Add Channel to Deny List"}),placeholder:e.formatMessage({id:"denyList.form.addChannel.placeholder",defaultMessage:"Enter channel name (e.g., #general)"}),FormGroupProps:{className:"rca-product-form-select",labelIcon:s.createElement(d.Z,{name:"addChannel",headerContent:e.formatMessage({id:"denyList.form.addChannel.helper.title",defaultMessage:"Add Channel"}),bodyContent:e.formatMessage({id:"denyList.form.addChannel.helper.description",defaultMessage:"Enter a channel name to add it to the deny list for this workspace."})})}}}},38083:(e,t,n)=>{n.d(t,{CP:()=>r,c$:()=>o,mv:()=>a});var r=function(e){var t=window.location.host;if("web-rca-ui:8080"===t)return"http://web-rca:8000";var n=t.match(/^web-rca-ui-ephemeral-(.+\.openshiftapps\.com)$/);return n?"https://web-rca-ephemeral-".concat(n[1]):"web-rca.stage.devshift.net"===t?"https://api.stage.openshift.com":"web-rca.devshift.net"===t?"https://api.openshift.com":e},a=function(e){var t=window.location.host;if("web-rca-ui:8080"===t)return"http://status-board:8000";var n=t.match(/^web-rca-ui-ephemeral-(.+\.openshiftapps\.com)$/);return n?"https://status-board-ephemeral-".concat(n[1]):"web-rca.stage.devshift.net"===t?"https://api.stage.openshift.com":"web-rca.devshift.net"===t?"https://api.openshift.com":e},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://sso.redhat.com/auth",t=window.location.host;if("web-rca-ui:8080"===t)return"http://keycloak:8080/auth";var n=t.match(/^web-rca-ui-ephemeral-(.+\.openshiftapps\.com)$/);return n?"https://keycloak-ephemeral-".concat(n[1],"/auth"):"web-rca.stage.devshift.net"===t||"web-rca.devshift.net"===t?"https://sso.redhat.com/auth":e}},27294:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e){return["status_change","follow_up_change","audit_log"].includes(e)}},36546:(e,t,n)=>{n.d(t,{Tv:()=>c,X$:()=>s,j6:()=>i});var r=n(30611),a=n(71371),o=function(){return"web-rca.stage.devshift.net"===window.location.host||"web-rca.devshift.net"===window.location.host},i=function(){o()&&r.S1({dsn:"web-rca.stage.devshift.net"===window.location.host?"https://784b837f7fd04821a23bea1e0b6ba4f3@glitchtip.devshift.net/41":"https://3c1f4e29d82f48818b6e0c1b2192ef40@glitchtip.devshift.net/42",tracesSampleRate:1})},c=function(e,t){o()&&a.e((function(n){return n.setUser({email:e,username:t})}))},s=function(){o()&&a.e((function(e){return e.setUser(null)}))}},2615:(e,t,n)=>{n.d(t,{Al:()=>l,FE:()=>s,H:()=>d,Hf:()=>p,I:()=>u,KH:()=>o,Tc:()=>r,aS:()=>a,i4:()=>c,lo:()=>i,qv:()=>f});var r=function(e,t){return{new:t.formatMessage({id:"status.new",defaultMessage:"New"}),ongoing:t.formatMessage({id:"status.inProgress",defaultMessage:"Ongoing"}),resolved:t.formatMessage({id:"status.resolved",defaultMessage:"Resolved"}),closed:t.formatMessage({id:"status.closed",defaultMessage:"Closed"}),paused:t.formatMessage({id:"status.paused",defaultMessage:"Paused"}),"to-do":t.formatMessage({id:"status.todo",defaultMessage:"To do"}),done:t.formatMessage({id:"status.done",defaultMessage:"Done"})}[e]||e},a=function(e,t){return{high:t.formatMessage({id:"priority.high",defaultMessage:"High"}),medium:t.formatMessage({id:"priority.medium",defaultMessage:"Medium"}),low:t.formatMessage({id:"priority.low",defaultMessage:"Low"})}[e]||e},o=function(e,t){return{osd:t.formatMessage({id:"product.osd",defaultMessage:"OSD"}),quay:t.formatMessage({id:"product.quay",defaultMessage:"Quay"}),crc:t.formatMessage({id:"product.crc",defaultMessage:"Cloud.redhat.com"}),ocm:t.formatMessage({id:"product.low",defaultMessage:"OCM"})}[e]||e},i=function(e,t){return{internal:t.formatMessage({id:"incidentType.internal",defaultMessage:"Internal"}),customer_facing:t.formatMessage({id:"incidentType.customer",defaultMessage:"Customer impacting"})}[e]||e},c=function(e,t){return{1:t.formatMessage({id:"severity.1",defaultMessage:"Critical"}),2:t.formatMessage({id:"severity.2",defaultMessage:"Major"}),3:t.formatMessage({id:"severity.3",defaultMessage:"Minor"})}[e]||e},s=function(e,t,n){return{comment:t.formatMessage({id:"eventType.comment",defaultMessage:"Comment"}),escalation:t.formatMessage({id:"eventType.escalation",defaultMessage:"Escalation"}),follow_up:t.formatMessage({id:"eventType.follow_up",defaultMessage:"Follow-up"}),external_reference:t.formatMessage({id:"eventType.external_reference",defaultMessage:"External reference"}),status_change:t.formatMessage({id:"eventType.status_change",defaultMessage:"Status change"}),audit_log:t.formatMessage({id:"eventType.log",defaultMessage:"{count, plural, one {Log event} other {Log events}}"},{count:null!=n&&n.singular?1:10}),follow_up_change:t.formatMessage({id:"eventType.follow_up_change",defaultMessage:"Status change: follow-up"})}[e]||e},l=function(e,t){return{lifecycle:t.formatMessage({id:"statusChange.lifecycle",defaultMessage:"Status change: Lifecycle"}),traffic_light:t.formatMessage({id:"statusChange.traffic_light",defaultMessage:"Status change: Traffic light"}),risk_signal:t.formatMessage({id:"statusChange.risk_signal",defaultMessage:"Status change: Risk signal"}),capacity:t.formatMessage({id:"statusChange.capacity",defaultMessage:"Status change: Capacity"})}[e]||e},u=function(e,t){return{comment:t.formatMessage({id:"eventType.comment.description",defaultMessage:"A comment can contain screenshots, docs, or logs for reference."}),escalation:t.formatMessage({id:"eventType.escalation.description",defaultMessage:"Escalate the incident to another user."}),follow_up:t.formatMessage({id:"eventType.follow_up.description",defaultMessage:"Create a follow-up ticket."}),external_reference:t.formatMessage({id:"eventType.external_reference.description",defaultMessage:"Event to link an external resource."})}[e]||e},d=function(e,t){return{jira:t.formatMessage({id:"followupType.jira",defaultMessage:"JIRA"}),bugzilla:t.formatMessage({id:"followupType.bugzilla",defaultMessage:"Bugzilla"}),github:t.formatMessage({id:"followupType.github",defaultMessage:"GitHub"})}[e]||e},p=function(e,t){return{true:t.formatMessage({id:"incidentPrivacy.private",defaultMessage:"Private (visible to me)"}),false:t.formatMessage({id:"incidentPrivacy.public",defaultMessage:"Public"}),null:t.formatMessage({id:"incidentPrivacy.null",defaultMessage:"All"})}[e]||e},f=function(e,t){return{true:t.formatMessage({id:"incidentInvalid.invalid",defaultMessage:"No"}),false:t.formatMessage({id:"incidentInvalid.valid",defaultMessage:"Yes"}),null:t.formatMessage({id:"incidentInvalid.null",defaultMessage:"All"})}[e]||e}},52583:(e,t,n)=>{n.d(t,{EQ:()=>r,FD:()=>o,Hr:()=>c,WB:()=>s,WP:()=>p,Wz:()=>a,Xo:()=>i,g$:()=>l,uS:()=>u,ux:()=>d});var r=["new","ongoing","resolved","closed","paused"],a=["osd","quay","crc","ocm"],o=["internal","customer_facing"],i=[{value:"1",label:"Critical"},{value:"2",label:"Major"},{value:"3",label:"Minor"}],c=["incident_id","status","summary","incident_owner","products","created_at","incident_type","severity","creator","private"],s=["name","fullname","owners","created_at"],l=["name","emails","slack_team_id","slack_channel_ids","slack_team_handle","created_at"],u=["comment","escalation","follow_up","external_reference","status_change","follow_up_change"],d=["jira","bugzilla","github"],p=["incident","event","product","user","team","notify_by","notify_on"]},40611:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(4942),a=n(67294),o=n(86896);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{n.d(t,{Z:()=>r,p:()=>a});const r=function(e){return e?"".concat(e.name," (").concat(e.email,")"):""};var a=function(e){return e.match(/\(([^)]+)\)/)[1]}},43193:(e,t,n)=>{n.d(t,{RN:()=>m,ZP:()=>h,lt:()=>v,zI:()=>f});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(66702);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{n.d(t,{ZP:()=>v,g2:()=>f,nc:()=>m});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(66702);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{n.d(t,{cg:()=>z,pX:()=>pe,Xe:()=>U,pU:()=>se,_R:()=>G,VD:()=>xe,DW:()=>Te,a_:()=>Ee,yM:()=>ue,Zj:()=>Se,Aw:()=>ge,ZP:()=>De,nk:()=>Ce,l5:()=>Me,gb:()=>be,q$:()=>Pe,P4:()=>ke,rI:()=>M,Z7:()=>A,vw:()=>C,S7:()=>O,Ir:()=>_,pL:()=>k,om:()=>P,jD:()=>S,BK:()=>Oe,Wb:()=>H,Vm:()=>Y,_U:()=>J,n6:()=>E,xe:()=>T,fP:()=>Z,TH:()=>q,zd:()=>X,jN:()=>ve,kK:()=>x,Fx:()=>j,e$:()=>Ie,Mm:()=>Ze,wY:()=>R,b5:()=>Le,ee:()=>ee,s7:()=>B,Lu:()=>N,MC:()=>K,oA:()=>$,oK:()=>he,ci:()=>le,vd:()=>ie,SB:()=>ce,z7:()=>me,Ys:()=>ye,bj:()=>W,F1:()=>oe,I:()=>Q,q7:()=>we,v9:()=>D,GS:()=>L,ku:()=>F,nX:()=>ne,qx:()=>te,I8:()=>re,g_:()=>V,XZ:()=>I,mK:()=>fe,rL:()=>_e,bG:()=>je,eJ:()=>de,Ne:()=>ae});var r=n(15861),a=n(93433),o=n(4942),i=n(64687),c=n.n(i),s=n(58338),l=n(66702);const u=function(){var e=(0,r.Z)(c().mark((function e(t){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.Z.getListFollowup({perPage:1,page:1,follow_up_status:"open",id:t});case 2:return n=e.sent,r=0===n.items.length,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1&&void 0!==i[1])||i[1],e.next=3,l.Z.createEvent(t().incident.id,n);case 3:return a=e.sent,o=[],r&&o.push(t().loadEvents()),e.next=8,Promise.all(o);case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)}))),function(e){return V.apply(this,arguments)}),updateEvent:(X=(0,r.Z)(c().mark((function n(r,a){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l.Z.updateEvent(t().incident.id,r,a);case 2:o=n.sent,e({events:f(t().events,r,o)});case 4:case"end":return n.stop()}}),n)}))),function(e,t){return X.apply(this,arguments)}),commentEvent:(q=(0,r.Z)(c().mark((function n(r,a){var o,i,s,u;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t(),i=o.events,s=o.incident,n.next=3,l.Z.commentEvent(s.id,r,a);case 3:return n.next=5,l.Z.getEvent(s.id,r);case 5:u=n.sent,e({events:f(i,r,u)});case 7:case"end":return n.stop()}}),n)}))),function(e,t){return q.apply(this,arguments)}),addedEvent:function(n){var r=t(),o=r.eventsSortBy,i=r.events;e({events:"end-to-start"===o?[n].concat((0,a.Z)(i)):[].concat((0,a.Z)(i),[n])})},changedEvent:function(n){e({events:f(t().events,n.id,n)})},removedEvent:function(n){e({events:t().events.filter((function(e){return e.id!==n.id}))})},refreshEvent:function(t){e({events:t})},loadIncident:(H=(0,r.Z)(c().mark((function n(r,a){var o,i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t().cleanErrors(),n.next=4,l.Z.getIncident(r);case 4:return o=n.sent,n.next=7,u(o.items[0].id);case 7:i=n.sent,e(h(h({},a&&b),{},{incident:o.items[0],canBeClosed:i})),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(0),e({incidentError:n.t0});case 14:case"end":return n.stop()}}),n,null,[[0,11]])}))),function(e,t){return H.apply(this,arguments)}),updateIncident:(W=(0,r.Z)(c().mark((function n(r){var a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.Z.updateIncident(t().incident.id,r);case 3:a=n.sent,(0,m.GA)(),e({incident:a}),n.next=12;break;case 8:return n.prev=8,n.t0=n.catch(0),n.next=12,t().loadIncident(t().incident.incident_id);case 12:case"end":return n.stop()}}),n,null,[[0,8]])}))),function(e){return W.apply(this,arguments)}),markIncidentAsDone:(U=(0,r.Z)(c().mark((function n(){var r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t().incident,e({incident:h(h({},r),{},{status:"resolved"})}),n.next=4,t().updateIncident({status:"resolved"});case 4:case"end":return n.stop()}}),n)}))),function(){return U.apply(this,arguments)}),reopenIncident:(z=(0,r.Z)(c().mark((function n(){var r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t().incident,e({incident:h(h({},r),{},{status:"ongoing"})}),n.next=4,t().updateIncident({status:"ongoing"});case 4:case"end":return n.stop()}}),n)}))),function(){return z.apply(this,arguments)}),closeIncident:(G=(0,r.Z)(c().mark((function n(){var r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t().incident,e({incident:h(h({},r),{},{status:"closed"})}),n.next=4,t().updateIncident({status:"closed"});case 4:case"end":return n.stop()}}),n)}))),function(){return G.apply(this,arguments)}),markIncidentAsPaused:(B=(0,r.Z)(c().mark((function n(){var r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t().incident,e({incident:h(h({},r),{},{status:"paused"})}),n.next=4,t().updateIncident({status:"paused"});case 4:case"end":return n.stop()}}),n)}))),function(){return B.apply(this,arguments)}),setHideCheckedItems:function(n){e({hideCheckedItems:n,notificationsPage:1}),t().loadNotifications()},loadMoreNotifications:(N=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({notificationsPage:t().notificationsPage+1}),n.next=3,t().loadNotifications(!0,!0);case 3:case"end":return n.stop()}}),n)}))),function(){return N.apply(this,arguments)}),loadNotifications:(R=(0,r.Z)(c().mark((function n(r,o){var i,s,u,d,p,f,m;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r?0:1,e({notificationsLoaded:t().notificationsLoaded+i}),t().cleanErrors(),n.prev=3,s=t(),u=s.notificationsPage,d=s.notificationsPerPage,p=s.hideCheckedItems,f=s.incident,n.next=7,l.Z.getListNotification({page:u,perPage:d,hideCheckedItems:p,incident_id:f.id});case 7:m=n.sent,e({notificationsLoaded:t().notificationsLoaded-i,notifications:o?[].concat((0,a.Z)(t().notifications),(0,a.Z)(m.items)):m.items,notificationsTotal:m.total}),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(3),e({notificationsLoaded:t().notificationsLoaded-i,notificationsError:n.t0});case 14:case"end":return n.stop()}}),n,null,[[3,11]])}))),function(e,t){return R.apply(this,arguments)}),checkNotification:(A=(0,r.Z)(c().mark((function n(r,a){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({notifications:t().notifications.map((function(e){return e.id===r?h(h({},e),{},{checked:a}):e}))}),n.next=3,l.Z.updateNotification(t().incident.id,r,{checked:a});case 3:case"end":return n.stop()}}),n)}))),function(e,t){return A.apply(this,arguments)}),updateNotification:(F=(0,r.Z)(c().mark((function n(r,a){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({notifications:t().notifications.map((function(e){return e.id===r?h(h({},e),{},{message:a}):e}))}),n.next=3,l.Z.updateNotification(r,{message:a});case 3:case"end":return n.stop()}}),n)}))),function(e,t){return F.apply(this,arguments)}),removeNotification:(D=(0,r.Z)(c().mark((function n(r){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({notifications:t().notifications.filter((function(e){return e.id!==r}))}),n.next=3,l.Z.deleteNotification(r);case 3:case"end":return n.stop()}}),n)}))),function(e){return D.apply(this,arguments)}),createNotification:(L=(0,r.Z)(c().mark((function n(r,a){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l.Z.createNotification(t().incident.id,r);case 2:return a(),e({notificationsPage:1}),n.next=6,t().loadNotifications();case 6:case"end":return n.stop()}}),n)}))),function(e,t){return L.apply(this,arguments)}),reorderNotifications:(I=(0,r.Z)(c().mark((function n(r,a,o){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({notifications:r}),n.next=3,l.Z.updateNotification(t().incident.id,a,{place_after:o});case 3:case"end":return n.stop()}}),n)}))),function(e,t,n){return I.apply(this,arguments)}),setFollowupsPerPage:function(n){e({followupsPerPage:n,followupsPage:1}),t().loadFollowups()},setFollowupsPage:function(n){e({followupsPage:n}),t().loadFollowups()},loadFollowups:(j=(0,r.Z)(c().mark((function n(){var r,a,o,i,s,u,d;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({followupsLoaded:t().followupsLoaded}),t().cleanErrors(),n.prev=2,r=t(),a=r.followupsPage,o=r.followupsPerPage,i=r.incident,s=r.followupsFilter,u=s.types,n.next=7,l.Z.getListFollowup({page:a,perPage:o,id:i.id,follow_up_status:u.join(",")});case 7:d=n.sent,e({followupsLoaded:t().followupsLoaded,followups:d.items,followupsTotal:d.total}),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),e({followupsLoaded:t().followupsLoaded,followupsError:n.t0});case 14:case"end":return n.stop()}}),n,null,[[2,11]])}))),function(){return j.apply(this,arguments)}),archiveFollowup:(T=(0,r.Z)(c().mark((function e(n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.Z.updateFollowup(t().incident.id,n,{archived:!0});case 2:return e.next=4,t().loadFollowups();case 4:case"end":return e.stop()}}),e)}))),function(e){return T.apply(this,arguments)}),unarchiveFollowup:(C=(0,r.Z)(c().mark((function e(n){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.Z.updateFollowup(t().incident.id,n,{archived:!1});case 2:return e.next=4,t().loadFollowups();case 4:case"end":return e.stop()}}),e)}))),function(e){return C.apply(this,arguments)}),patchFollowup:(_=(0,r.Z)(c().mark((function e(n,r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.Z.updateFollowup(t().incident.id,n,r);case 2:return e.next=4,t().loadEvents();case 4:case"end":return e.stop()}}),e)}))),function(e,t){return _.apply(this,arguments)}),setFollowupsTypes:(x=(0,r.Z)(c().mark((function n(r){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({followupsFilter:h(h({},t().followupsFilter),{},{types:r})}),n.next=3,t().loadFollowups();case 3:case"end":return n.stop()}}),n)}))),function(e){return x.apply(this,arguments)}),getFollowUpEvent:function(e){return t().events.find((function(t){return t.follow_up&&t.follow_up.id===e}))},loadRetrospective:(S=(0,r.Z)(c().mark((function n(r){var a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t().cleanErrors(),n.next=4,l.Z.getRetrospectiveIncident(r);case 4:a=n.sent,e({restrospective:a}),n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),n,null,[[0,8]])}))),function(e){return S.apply(this,arguments)}),createRetrospective:(O=(0,r.Z)(c().mark((function n(r){var a,o,i=arguments;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},n.prev=1,t().cleanErrors(),n.next=5,l.Z.createRetrospectiveIncident(r,a);case 5:o=n.sent,e({restrospective:o}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),e({incidentError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[1,9]])}))),function(e){return O.apply(this,arguments)}),deleteRetrospective:(P=(0,r.Z)(c().mark((function n(r){var a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t().cleanErrors(),e({restrospective:{google_doc_status:"pending"}}),n.next=5,l.Z.deleteRetrospectiveIncident(r);case 5:a=n.sent,e({restrospective:a}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),e({incidentError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[0,9]])}))),function(e){return P.apply(this,arguments)}),patchRetrospective:(M=(0,r.Z)(c().mark((function n(r){var a,o,i=arguments;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},n.prev=1,t().cleanErrors(),n.next=5,l.Z.patchRetrospectiveIncident(r,a);case 5:o=n.sent,e({restrospective:o}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),e({incidentError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[1,9]])}))),function(e){return M.apply(this,arguments)}),restoreRetrospective:(E=(0,r.Z)(c().mark((function n(r){var a,o,i=arguments;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},n.prev=1,t().cleanErrors(),n.next=5,l.Z.restoreRetrospectiveIncident(r,a);case 5:o=n.sent,e({restrospective:o}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),e({incidentError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[1,9]])}))),function(e){return E.apply(this,arguments)}),loadDebrief:(Z=(0,r.Z)(c().mark((function n(r){var a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t().cleanErrors(),n.next=4,l.Z.getDebriefIncident(r);case 4:a=n.sent,e({debrief:a}),n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),n,null,[[0,8]])}))),function(e){return Z.apply(this,arguments)}),createDebrief:(k=(0,r.Z)(c().mark((function n(r){var a,o,i=arguments;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},n.prev=1,t().cleanErrors(),n.next=5,l.Z.createDebriefIncident(r,a);case 5:o=n.sent,e({debrief:o}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),e({incidentError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[1,9]])}))),function(e){return k.apply(this,arguments)}),deleteDebrief:(w=(0,r.Z)(c().mark((function n(r){var a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t().cleanErrors(),e({debrief:{google_doc_status:"pending"}}),n.next=5,l.Z.deleteDebriefIncident(r);case 5:a=n.sent,e({debrief:a}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),e({incidentError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[0,9]])}))),function(e){return w.apply(this,arguments)}),setCheckinsPerPage:function(n){e({checkinsPerPage:n,checkinsPage:1}),t().loadCheckins()},setCheckinsPage:function(n){e({checkinsPage:n}),t().loadCheckins()},loadCheckins:(g=(0,r.Z)(c().mark((function n(){var a,o,i,s,u;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e({checkinsLoaded:t().checkinsLoaded}),t().cleanErrors(),n.prev=2,a=t(),o=a.incident,n.next=6,l.Z.getByIdIncident(o.id);case 6:if(i=n.sent,void 0!==(s=i.check_in_tasks)){n.next=11;break}return e({checkinsLoaded:t().checkinsLoaded,checkins:[],checkinsTotal:0}),n.abrupt("return");case 11:return n.next=13,Promise.all(s.map(function(){var e=(0,r.Z)(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.comments){e.next=2;break}return e.abrupt("return",t);case 2:return e.next=4,Promise.all(t.comments.map(function(){var e=(0,r.Z)(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.user_id){e.next=11;break}return e.prev=1,e.next=4,l.Z.getUser(t.user_id);case 4:return n=e.sent,e.abrupt("return",h(h({},t),{},{user:n}));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",h(h({},t),{},{user:null}));case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()));case 4:return n=e.sent,e.abrupt("return",h(h({},t),{},{comments:n}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:u=n.sent,e({checkinsLoaded:t().checkinsLoaded,checkins:u,checkinsTotal:u.length}),n.next=20;break;case 17:n.prev=17,n.t0=n.catch(2),e({checkinsLoaded:t().checkinsLoaded,checkinsError:n.t0});case 20:case"end":return n.stop()}}),n,null,[[2,17]])}))),function(){return g.apply(this,arguments)}),createNewCheckIn:(v=(0,r.Z)(c().mark((function n(r,o){var i,s,u,d,p,f;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.Z.createCheckIn(o);case 3:return i=n.sent,s={check_in_task_id:i.id,ordering:o.ordering},n.next=7,l.Z.createIncidentCheckIn(r,s);case 7:u=n.sent,d=t(),p=d.checkins,f=[].concat((0,a.Z)(p),[u]),e({checkinsLoaded:t().checkinsLoaded,checkins:f,checkinsTotal:f.length}),n.next=16;break;case 13:n.prev=13,n.t0=n.catch(0),e({checkinsLoaded:t().checkinsLoaded,checkinsError:n.t0});case 16:case"end":return n.stop()}}),n,null,[[0,13]])}))),function(e,t){return v.apply(this,arguments)}),createCheckIn:(p=(0,r.Z)(c().mark((function n(r,o){var i,s,u,d;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.Z.createIncidentCheckIn(r,o);case 3:i=n.sent,s=t(),u=s.checkins,d=[].concat((0,a.Z)(u),[i]),e({checkinsLoaded:t().checkinsLoaded,checkins:d,checkinsTotal:d.length}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),e({checkinsLoaded:t().checkinsLoaded,checkinsError:n.t0});case 12:case"end":return n.stop()}}),n,null,[[0,9]])}))),function(e,t){return p.apply(this,arguments)}),updateCheckIn:(d=(0,r.Z)(c().mark((function n(r,o){var i,s,u,d,p;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,l.Z.updateIncidentCheckIn(r,o);case 3:if(i=n.sent,s=t(),u=s.checkins,d=(0,a.Z)(u),!("is_checked"in o)){n.next=16;break}p=0;case 8:if(!(p{n.d(t,{F6:()=>m,FV:()=>p,TH:()=>d,ZP:()=>v,wN:()=>f});var r=n(93433),a=n(4942),o=n(58338);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{n.d(t,{ZP:()=>F,K3:()=>v,Iv:()=>g,TF:()=>Z,Zj:()=>w,F3:()=>k,Kv:()=>M,g2:()=>E,An:()=>I,FZ:()=>D,GA:()=>x,i$:()=>L,aw:()=>j,Tw:()=>_,rr:()=>C,uf:()=>T,YA:()=>O,Yp:()=>P,HD:()=>S});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(66702),l=n(36520),u=n(52583);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2];e({filters:f(f({},t().filters),{},(0,a.Z)({},n,r))}),e({page:1}),o&&t().refreshList()},setMultiFilters:function(e){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=a.name,i=a.value;t().setFilters(o,i,!1)}}catch(e){r.e(e)}finally{r.f()}e.length>0&&t().refreshList()},resetFilters:function(){e({filters:f(f({},h),{},{myIncidents:t().filters.myIncidents})}),t().refreshList()},refreshList:(u=(0,r.Z)(i().mark((function n(r){var a,o,c,l,u,d,p,m,v,h;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,e({loaded:t().loaded+1}),n.t0=r,!n.t0){n.next=6;break}return n.next=6,r();case 6:return l=t(),u=l.page,d=l.perPage,p=l.sortBy,m=l.sortDirection,v=l.filters,n.next=9,s.Z.getListIncident(f({page:u,size:d,order_by:"".concat(p," ").concat(m),incident_name:null==v?void 0:v.name,status:null==v?void 0:v.status.join(","),product_id:null==v||null===(a=v.product)||void 0===a?void 0:a.map((function(e){return e.id})).join(","),contributor_id:null==v||null===(o=v.contributor)||void 0===o?void 0:o.map((function(e){return e.id})).join(","),incident_owner_id:null==v||null===(c=v.incident_owner)||void 0===c?void 0:c.map((function(e){return e.value})).join(","),private:null==v?void 0:v.private,invalid:null==v?void 0:v.invalid,search:null!=v&&v.summary?"summary ilike '%".concat(null==v?void 0:v.summary,"%' or description ilike '%").concat(null==v?void 0:v.summary,"%'"):void 0},(null==v?void 0:v.myIncidents)&&{mine:!0}));case 9:h=n.sent,e({loaded:t().loaded-1,incidents:h.items,total:h.total}),n.next=16;break;case 13:n.prev=13,n.t1=n.catch(0),e({loaded:t().loaded-1,error:n.t1});case 16:case"end":return n.stop()}}),n,null,[[0,13]])}))),function(e){return u.apply(this,arguments)}),markIncidentAsDone:(c=(0,r.Z)(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t().refreshList((function(){return s.Z.updateIncident(n,{status:"resolved"})}));case 2:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)}),reopenIncident:(o=(0,r.Z)(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t().refreshList((function(){return s.Z.updateIncident(n,{status:"ongoing"})}));case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)}),markIncidentAsPaused:(n=(0,r.Z)(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t().refreshList((function(){return s.Z.updateIncident(n,{status:"paused"})}));case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})});var n,o,c,u})),w=function(e){return e.filters},k=function(e){return e.incidents},Z=function(e){return e.enabledColumns},E=function(e){return{enabledColumns:e.enabledColumns,sortBy:e.sortBy,sortDirection:e.sortDirection,total:e.total,page:e.page,perPage:e.perPage,error:e.error}},M=function(e){return!e.incidents||Boolean(e.loaded)},P=y.getState().setPerPage,O=y.getState().setPage,S=y.getState().setSort,x=y.getState().refreshList,_=y.getState().setEnabledColumns,C=y.getState().setFilters,T=y.getState().setMultiFilters,j=y.getState().resetFilters,I=y.getState().markIncidentAsDone,L=y.getState().reopenIncident,D=y.getState().markIncidentAsPaused;const F=y},52055:(e,t,n)=>{n.d(t,{Cq:()=>f,Js:()=>m,ZP:()=>v});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(51496);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{n.d(t,{AH:()=>f,ZP:()=>m});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(66702);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{n.d(t,{QD:()=>v,Xp:()=>m,ZP:()=>h,o4:()=>f});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(51496);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{n.d(t,{ZP:()=>R,Iv:()=>w,Zj:()=>Z,F3:()=>P,Kv:()=>x,g2:()=>O,Xp:()=>M,tJ:()=>E,wu:()=>S,GA:()=>j,aw:()=>D,rr:()=>I,uf:()=>L,YA:()=>C,Yp:()=>_,HD:()=>T,AG:()=>A,gq:()=>F});var r=n(45987),a=n(15861),o=n(4942),i=n(64687),c=n.n(i),s=n(58338),l=n(66702),u=n(51496),d=n(36520),p=n(52583),f=["product","incident"];function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2],o=h({},t().filters);"product"===n?o.incident=[]:"incident"===n&&(o.product=[]),o[n]=r,e({filters:o,page:1}),a&&t().refreshList()},setMultiFilters:function(e){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=a.name,i=a.value;t().setFilters(o,i,!1)}}catch(e){r.e(e)}finally{r.f()}e.length>0&&t().refreshList()},resetFilters:function(){e({filters:h({},b)}),t().refreshList()},refreshList:(n=(0,a.Z)(c().mark((function n(o){var i,s,d,p,m,v,g,b,y,w,k,Z,E,M,P;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,e({isLoading:!0}),n.t0=o,!n.t0){n.next=6;break}return n.next=6,o();case 6:if(d=t(),p=d.page,m=d.perPage,v=d.sortBy,g=d.sortDirection,b=d.filters,y=d.user_id,w=d.team_id,y||w){n.next=10;break}return e({isLoading:!1}),n.abrupt("return");case 10:return n.next=12,l.Z.getListSubscription({page:p,size:m,order_by:"".concat(v," ").concat(g),search:"notify_on ilike '%".concat(null==b?void 0:b.notify_on,"%' and notify_by ilike '%").concat(null==b?void 0:b.notify_by,"%'"),incident_ids:(null==b||null===(i=b.incident)||void 0===i?void 0:i.map((function(e){return e.id})).join(","))||null,product_id:(null==b||null===(s=b.product)||void 0===s?void 0:s.map((function(e){return e.id})).join(","))||null,user_id:y||null,team_id:w||null});case 12:return k=n.sent,Z=k.items,E=[],M=[],n.next=18,Promise.all(Z.map(function(){var e=(0,a.Z)(c().mark((function e(t){var n,a,o,i,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.product,a=t.incident,o=(0,r.Z)(t,f),!n||!n.id){e.next=7;break}return e.next=4,u.Z.getProduct(n.id);case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0=null;case 8:if((i=e.t0)&&E.push(i),!a||!a.id){e.next=16;break}return e.next=13,l.Z.getByIdIncident(a.id);case 13:e.t1=e.sent,e.next=17;break;case 16:e.t1=null;case 17:return(s=e.t1)&&M.push(s),e.abrupt("return",h(h({},o),{},{product:i||n,incident:s||a}));case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 18:P=n.sent,e({isLoading:!1,subscriptions:P,products:E,incidents:M,total:k.total}),n.next=25;break;case 22:n.prev=22,n.t1=n.catch(0),e({isLoading:!1,error:n.t1});case 25:case"end":return n.stop()}}),n,null,[[0,22]])}))),function(e){return n.apply(this,arguments)}),setUserId:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e({user_id:n}),r&&t().refreshList()},setTeamId:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e({team_id:n}),r&&t().refreshList()}});var n,o})),Z=function(e){return e.filters},E=function(e){return e.subscriptions},M=function(e){return e.products},P=function(e){return e.incidents},O=function(e){return{enabledColumns:e.enabledColumns,sortBy:e.sortBy,sortDirection:e.sortDirection,total:e.total,page:e.page,perPage:e.perPage,error:e.error,initialSubscriptions:e.initialSubscriptions}},S=k.getState().loadInitialSubscriptions,x=function(e){return e.isLoading},_=k.getState().setPerPage,C=k.getState().setPage,T=k.getState().setSort,j=k.getState().refreshList,I=(k.getState().setEnabledColumns,k.getState().setFilters),L=k.getState().setMultiFilters,D=k.getState().resetFilters,F=k.getState().setUserId,A=k.getState().setTeamId;k.getState().setIsLoading;const R=k},93713:(e,t,n)=>{n.d(t,{ZP:()=>L,K3:()=>v,Iv:()=>g,TF:()=>Z,Zj:()=>w,Kv:()=>P,g2:()=>E,LK:()=>k,x2:()=>M,GA:()=>_,aw:()=>I,Tw:()=>C,rr:()=>T,uf:()=>j,YA:()=>S,Yp:()=>O,HD:()=>x});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(66702),l=n(36520),u=n(52583);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2];e({filters:f(f({},t().filters),{},(0,a.Z)({},n,r))}),e({page:1}),o&&t().refreshList()},setMultiFilters:function(e){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var a=n.value,o=a.name,i=a.value;t().setFilters(o,i,!1)}}catch(e){r.e(e)}finally{r.f()}e.length>0&&t().refreshList()},resetFilters:function(){e({filters:f(f({},h),{},{myTeams:t().filters.myTeams})}),t().refreshList()},refreshList:(n=(0,r.Z)(i().mark((function n(r){var a,o,c,l,u,d,p;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,e({loaded:t().loaded+1}),n.t0=r,!n.t0){n.next=6;break}return n.next=6,r();case 6:return a=t(),o=a.page,c=a.perPage,l=a.sortBy,u=a.sortDirection,d=a.filters,n.next=9,s.Z.getListTeam(f({page:o,size:c,order_by:"".concat(l," ").concat(u),search:null!=d&&d.name?"name ilike '%".concat(null==d?void 0:d.name,"%'"):void 0},(null==d?void 0:d.myTeams)&&{mine:!0}));case 9:p=n.sent,e({loaded:t().loaded-1,teams:p.items,total:p.total}),n.next=16;break;case 13:n.prev=13,n.t1=n.catch(0),e({loaded:t().loaded-1,error:n.t1});case 16:case"end":return n.stop()}}),n,null,[[0,13]])}))),function(e){return n.apply(this,arguments)})});var n,o})),w=function(e){return e.filters},k=function(e){return e.teams},Z=function(e){return e.enabledColumns},E=function(e){return{enabledColumns:e.enabledColumns,sortBy:e.sortBy,sortDirection:e.sortDirection,total:e.total,page:e.page,perPage:e.perPage,error:e.error,initialTeams:e.initialTeams}},M=y.getState().loadInitialTeams,P=function(e){return!e.teams||Boolean(e.loaded)},O=y.getState().setPerPage,S=y.getState().setPage,x=y.getState().setSort,_=y.getState().refreshList,C=y.getState().setEnabledColumns,T=y.getState().setFilters,j=y.getState().setMultiFilters,I=y.getState().resetFilters;const L=y},72577:(e,t,n)=>{n.d(t,{LG:()=>k,NA:()=>y,OD:()=>b,UK:()=>E,ZP:()=>P,ax:()=>g,id:()=>w,qN:()=>Z,v9:()=>h,vV:()=>M});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(23924),l=n(87614),u=n(66702);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0,a&&e({value:a.value,label:a.label,slack:c});case 10:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})});var t})),h=function(e){return e.loggedIn},g=function(e){return e.initialized},b=function(e){return e.email},y=function(e){return e.value},w=function(e){return e.label},k=function(e){return e.slack},Z=v.getState().setLogIn,E=v.getState().setInitialized,M=v.getState().setEmail;const P=v},39578:(e,t,n)=>{n.d(t,{ZP:()=>v,dF:()=>f,nz:()=>m});var r=n(15861),a=n(4942),o=n(64687),i=n.n(o),c=n(58338),s=n(66702);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{n.d(t,{Z:()=>c});var r=n(8081),a=n.n(r),o=n(23645),i=n.n(o)()(a());i.push([e.id,"#app{height:100%}.rca-notification-primary-toolbar .pf-v5-c-toolbar__content{padding-left:0px !important}.rca-bottom-toolbar .pf-v5-c-toolbar__content-section{display:inline;width:100%}.rca-login-page .pf-v5-c-login__header{margin-top:0}.rca-login-page .pf-v5-c-brand{max-height:50px}.rca-logo{display:flex;align-items:center;color:inherit}.rca-logo:hover{text-decoration:none}.rca-logo .rca-logo-image{max-height:34px}.rca-logo .rca-logo-text{border-left:2px solid #787878}.rca-product-form-select .pf-v5-c-select__menu{max-height:300px;overflow-y:auto}.rca-overview-table .pf-v5-c-dropdown__menu{z-index:301}.rca-overview-table .pf-v5-c-select__menu{z-index:301}.rca-overview-table .pf-v5-c-toolbar__expandable-content{z-index:301}.rca-disabled-text{color:var(--pf-v5-global--disabled-color--100)}",""]);const c=i},33311:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8081),a=n.n(r),o=n(23645),i=n.n(o)()(a());i.push([e.id,'@keyframes loader{0%{transform:translateX(-100%)}60%{transform:translateX(100%)}100%{transform:translateX(100%)}}.rca-loader{position:relative;overflow:hidden;width:100%;height:100%;display:block;border-radius:3px;background-color:#f3f3f3}.rca-loader::after{animation:2s loader linear .5s infinite;background:linear-gradient(90deg, transparent, #ecebeb, transparent);content:"";position:absolute;bottom:0;left:0;right:0;top:0;transform:translateX(-100%);z-index:1}.rca-fake_content{height:800px;width:100%;background-color:var(--pf-v5-global--BackgroundColor--100)}',""]);const c=i},73292:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8081),a=n.n(r),o=n(23645),i=n.n(o)()(a());i.push([e.id,".rca-footer-color{background-color:#fff !important}",""]);const c=i}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=r,o.amdO={},e=[],o.O=(t,n,r,a)=>{if(!n){var i=1/0;for(u=0;u=a)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(c=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,r,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"js/"+({7:"FollowupsPage",38:"AiSummary",384:"Summary",722:"EventsPage",743:"NotificationsPage",825:"overviewPage",830:"TaskRuns",868:"DetailsPage",985:"Checkins"}[e]||e)+"."+{6:"c460e3d35509cc69488a",7:"ac7eed4b6ac22c2fecee",21:"06dd4c9145e47b4d8d57",38:"414c7e848541213f19c8",77:"89c4cf761db116389fcb",384:"cecfb5a12f3af3fe1365",722:"8a58b131da9afb160482",737:"3f621c157678be819f17",743:"641735e301414e44d73b",790:"b430a53cbe6c043c9e08",825:"9f0b42fb5e37bca847dd",830:"fbaa180d9bf022fba20c",868:"a747886e9569dce8b7ac",985:"27f5e6f01ede61128dc0"}[e]+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="web-rca-ui:",o.l=(e,r,a,i)=>{if(t[e])t[e].push(r);else{var c,s;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u{c.onerror=c.onload=null,clearTimeout(f);var a=t[e];if(delete t[e],c.parentNode&&c.parentNode.removeChild(c),a&&a.forEach((e=>e(r))),n)return n(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/",(()=>{o.b=document.baseURI||self.location.href;var e={179:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=a);var i=o.p+o.u(t),c=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",c.name="ChunkLoadError",c.type=a,c.request=i,r[1](c)}}),"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[i,c,s]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(s)var u=s(o)}for(t&&t(n);lo(22444)));i=o.O(i)})();