"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[66085],{688684(e,l,s){s.d(l,{A:()=>r});var n=s(602086),o=s(141992);const r=(0,s(272338).w)(e=>(0,n.createElement)("svg",(0,o.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("rect",{x:3,y:5,width:12,height:12,rx:1,fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 4H16v9.5a.5.5 0 0 0 1 0V4a1 1 0 0 0-1-1H6.5a.5.5 0 0 0 0 1ZM4 6h10v10H4V6ZM3 6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 4H16v9.5a.5.5 0 0 0 1 0V4a1 1 0 0 0-1-1H6.5a.5.5 0 0 0 0 1ZM4 5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4Z",fill:"currentColor",className:e.fillclassname})))},824941(e,l,s){var n;s.d(l,{O:()=>n}),function(e){e.SEVERITIES="severities",e.GENERAL_CATEGORIES="generalCategories",e.AUDIT_CATEGORIES="auditCategories",e.SUBCATEGORIES="subcategories",e.GENERAL_EVENTS="generalEvents",e.AUDIT_EVENTS="auditEvents"}(n||(n={}))},363330(e,l,s){s.d(l,{A:()=>a});var n=s(602086),o=s(977872),r=s(905057),t=s(824941);const a=()=>{const e=(0,o.d4)(r.qc),l=(0,o.d4)(r.Xz),s=(0,o.d4)(r.en),a=(0,o.d4)(r.dF),i=(0,o.d4)(r.GY),d=(0,o.d4)(r.tj);return(0,n.useMemo)(()=>({[t.O.SEVERITIES]:e,[t.O.GENERAL_CATEGORIES]:l,[t.O.AUDIT_CATEGORIES]:s,[t.O.SUBCATEGORIES]:a,[t.O.GENERAL_EVENTS]:i,[t.O.AUDIT_EVENTS]:d}),[i,e,l,s,d,a])}},869661(e,l,s){s.d(l,{x:()=>E});var n=s(274934),o=s(602764),r=s(599508),t=s(323139),a=s(576111);const i=({log:e})=>(0,n.jsx)(a.A,{log:e}),d=[r.ap.CLIENT,r.ap.DEVICE];var c=s(780558);const A=e=>e[r.k1.KEY]===r.zd.REMOVED_ENTITY&&d.includes(e[r.k1.PARAMETERS]?.[o.ns.SECTION]?.[r.bP.ID])?{...e,[r.k1.PARAMETERS]:{...e[r.k1.PARAMETERS],[o.ns.SECTION]:void 0}}:e,E=({log:e,isSidePanel:l})=>(0,t.TD)(e)?(0,n.jsx)(c.A,{log:l?e:A(e),isSidePanel:l}):(0,n.jsx)(i,{log:l?e:A(e)})},537267(e,l,s){s.d(l,{A:()=>x});var n=s(274934),o=s(602086),r=s(363330),t=s(824941),a=s(814557),i=s(247816),d=s(100978),c=s(291508),A=s(130682);const E=(0,i.A)(d.A,(0,c.A)("logSeverity"))`
  align-items: center;
  justify-content: center;
  gap: 2px;
  > div {
    ${({logSeverity:e,theme:{themeName:l}})=>e?`\n      &:nth-child(-n + ${A.Cy[e][0]}) {\n        background-color: ${a.Ay[`desktop-color-${A.Cy[e][1]}-${l}`]}\n      }\n    `:null}
  }
`,u=(0,i.A)(d.A)`
  width: 8px;
  height: 4px;
  background-color: ${({theme:{themeName:e}})=>a.Ay[`desktop-color-neutral-02-${e}`]};
  border-radius: 1px;
`,x=(0,o.memo)(({logSeverity:e})=>(0,n.jsx)(E,{logSeverity:e,children:(0,r.A)()[t.O.SEVERITIES].map(e=>(0,n.jsx)(u,{},e))}))},780193(e,l,s){s.d(l,{A:()=>f});var n=s(274934),o=s(977872),r=s(602086),t=s(938984),a=s(688684),i=s(724081),d=s(535322),c=s(470070),A=s(599508),E=s(222102),u=s(656466),x=s(401042),g=s(29472),m=s(773546);const v=`${m.A2}/cef`,C=":logId:",h=`${m.o2}/${C}/cef`,j=(e={},l={})=>{return(0,g.Kd)((s=e.queryParams?.id,[v,s].join()),h.replace(C,e.queryParams?.id),v,e,l);var s};var I;!function(e){e.CEF_LOG="cef_log"}(I||(I={}));var p=s(316628);const O="CEF_LOG_CLASSNAME";var S=s(814557),T=s(247816),k=s(309130),R=s(100978);const N=(0,T.A)(R.A)`
  border-radius: 8px;
  word-wrap: break-word;
  background: ${({theme:{themeName:e}})=>S.Ay[`desktop-color-neutral-02-${e}`]};
  padding: ${k.Ln};
  gap: ${k.YC};
  .${O} {
    line-height: 24px;
    overflow-wrap: anywhere;
  }
`,f=({log:e})=>{const{[I.CEF_LOG]:l}=(0,o.d4)((0,r.useMemo)(()=>(0,E.Mz)((e=>(0,u.uh)(j({queryParams:{id:e}})))(e[A.k1.ID]),x.i6),[e])),s=(0,p.A)(),g=(0,r.useCallback)(async()=>{l&&s(l)},[s,l]);return(0,i.A)([j({queryParams:{id:e[A.k1.ID]}})],l?(0,n.jsx)(d.A,{type:d.I.ACCORDION,items:[{id:"cef-log",label:(0,n.jsx)(c.sA,{id:"LOGS_CEF_LOG"}),openByDefault:!0,renderContent:()=>(0,n.jsxs)(N,{children:[(0,n.jsx)(t.A,{size:"medium",color:"text-2",className:O,children:l}),(0,n.jsx)(a.A,{size:"original",actionable:!0,onClick:g})]})}]}):null,{renderKey:e[A.k1.ID]})}},68014(e,l,s){s.d(l,{A:()=>i});var n=s(274934),o=s(938984),r=s(535322),t=s(470070),a=s(869661);const i=({log:e})=>(0,n.jsx)(r.A,{type:r.I.ACCORDION,items:[{id:"log-description",label:(0,n.jsx)(t.sA,{id:"COMMON_DESCRIPTION"}),openByDefault:!0,renderContent:()=>(0,n.jsx)(o.A,{style:{wordWrap:"break-word"},size:"medium",color:"text-2",children:(0,a.x)({log:e,isSidePanel:!0})})}]})},292681(e,l,s){s.d(l,{A:()=>a});var n=s(274934),o=s(355339),r=s(785697),t=s(607084);const a=({label:e,value:l})=>(0,n.jsxs)(t.R,{children:[(0,n.jsx)(r.A,{children:e}),(0,n.jsx)(o.A,{children:l})]})},607084(e,l,s){s.d(l,{R:()=>t});var n=s(247816),o=s(309130),r=s(100978);const t=(0,n.A)(r.A)`
  justify-content: space-between;
  align-items: center;
  gap: ${o.Er};
  white-space: nowrap;
`},852495(e,l,s){s.d(l,{p:()=>t});var n=s(247816),o=s(309130),r=s(100978);const t=(0,n.A)(r.A)`
  align-items: center;
  gap: ${o.kc};
  overflow: hidden;
`},785697(e,l,s){s.d(l,{A:()=>r});var n=s(274934),o=s(95032);const r=e=>(0,n.jsx)(o.A,{size:"medium",color:"text-2",...e})},355339(e,l,s){s.d(l,{A:()=>r});var n=s(274934),o=s(421314);const r=({flexProps:e,...l})=>(0,n.jsx)(o.A,{size:"medium",color:"text-3",flexProps:{justifyContent:"end",...e},...l})},733084(e,l,s){s.d(l,{A:()=>m});var n=s(274934),o=s(814557),r=s(263705),t=s(470070),a=s(537267),i=s(599508),d=s(130682),c=s(355339),A=s(852495),E=s(292681);const u=({log:e})=>{const{themeName:l}=(0,r.u)();return e[i.k1.SEVERITY]?(0,n.jsx)(E.A,{label:(0,n.jsx)(t.sA,{id:"COMMON_SEVERITY"}),value:(0,n.jsxs)(A.p,{children:[(0,n.jsx)(c.A,{style:{color:o.Ay[`desktop-color-${d.Cy[e[i.k1.SEVERITY]][1]}-${l}`]},children:(0,n.jsx)(t.sA,{id:d.lU[e[i.k1.SEVERITY]]})}),(0,n.jsx)(a.A,{logSeverity:e[i.k1.SEVERITY]})]})}):null},x=({log:e})=>e[i.k1.EVENT]?(0,n.jsx)(E.A,{label:(0,n.jsx)(t.sA,{id:"COMMON_EVENT"}),value:(0,n.jsx)(t.sA,{id:`${i.yQ.SYS_LOG_EVENT}_${e[i.k1.EVENT]}`})}):null,g=({log:e})=>e[i.k1.CATEGORY]?(0,n.jsx)(E.A,{label:(0,n.jsx)(t.sA,{id:"COMMON_CATEGORY"}),value:(0,n.jsx)(t.sA,{id:d.Vx[e[i.k1.CATEGORY]]})}):null,m=({log:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{log:e}),(0,n.jsx)(u,{log:e}),(0,n.jsx)(g,{log:e})]})},366085(e,l,s){s.r(l),s.d(l,{default:()=>v});var n=s(274934),o=s(602086),r=s(535322),t=s(599508),a=s(653159),i=s(733084),d=s(68014),c=s(780193),A=s(179407),E=s(247816),u=s(309130),x=s(100978);const g=(0,E.A)(x.A)`
  flex-direction: column;
`,m=(0,E.A)(x.A)`
  flex-direction: column;
  gap: ${u.kc};
`,v=(0,o.memo)(({activeItem:{log:e,flow:l}})=>(0,n.jsxs)(g,{children:[t.k1.ID in e?(0,n.jsx)(r.A,{children:(0,n.jsx)(m,{children:(0,n.jsx)(i.A,{log:e})})}):null,a.eq.ID in l?(0,n.jsx)(A.default,{activeItem:l}):null,t.k1.ID in e?(0,n.jsx)(d.A,{log:e}):null,t.k1.ID in e?(0,n.jsx)(c.A,{log:e}):null]}))},316628(e,l,s){s.d(l,{A:()=>a});var n=s(602086),o=s(977872),r=s(700444),t=s(159469);const a=()=>{const e=(0,o.wA)();return(0,n.useCallback)(l=>null!=l?navigator.clipboard.writeText(l.toString()).then(()=>{e((0,r.ox)({icon:t.C.success,message:"COMMON_COPIED_TO_CLIPBOARD",duration:1e3}))}):Promise.resolve(),[e])}}}]);