"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[200],{247248:(e,t,a)=>{a.r(t),a.d(t,{default:()=>G});var l=a(296540),r=a(956347),c=a(530864),n=a(860923),s=a(469733),i=a(415331),o=a(568977);const m=e=>{const t=(0,s.useSelector)(o.m);return l.createElement(i.A,{routes:t,...e})};var S=a(627440),T=a(670180),u=a(596731),O=a(257143),I=a(582724),H=a(457311),d=a(592510),E=a(105540),h=a(604482),A=a(71177),C=a(226776),p=a(413357),g=a(834959),N=a(550495),V=a(129490),b=a(900752),f=a(15095),L=a(629318);const F=(0,a(51946).w)(e=>(0,l.createElement)("svg",(0,L.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("path",{d:"M9.644 8.596a.5.5 0 0 0 .707-.707L7.108 4.646a.5.5 0 0 0-.707 0L3.158 7.89a.5.5 0 0 0 .707.707l2.39-2.39v8.959c0 .185.224.335.5.335s.5-.15.5-.335V6.207l2.39 2.389Zm6.487 2.808a.5.5 0 0 1 .707.707l-3.243 3.243a.5.5 0 0 1-.707 0l-3.243-3.243a.5.5 0 0 1 .707-.707l2.39 2.39V4.836c0-.185.224-.335.5-.335s.5.15.5.335v8.958l2.39-2.389Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{d:"M9.644 8.596a.5.5 0 0 0 .707-.707L7.108 4.646a.5.5 0 0 0-.707 0L3.157 7.89a.5.5 0 0 0 .707.707l2.391-2.39v8.959c0 .185.224.335.5.335s.5-.15.5-.335V6.207l2.39 2.389Zm6.487 2.808a.5.5 0 0 1 .707.707l-3.243 3.243a.5.5 0 0 1-.707 0L9.645 12.11a.5.5 0 0 1 .707-.707l2.39 2.39V4.836c0-.185.224-.335.5-.335s.5.15.5.335v8.958l2.39-2.389Z",fill:"currentColor",className:e.fillclassname})));var v=a(595369),w=a(42873),k=a(459449);const M=[{icon:l.createElement(F,{size:"original"}),label:l.createElement(k.sA,{id:"COMMON_FLOWS"}),id:T.H.FLOWS},{icon:l.createElement(v.A,{size:"original"}),label:l.createElement(k.sA,{id:"COMMON_ACTIVITY"}),id:T.H.ACTIVITY},{icon:l.createElement(w.A,{size:"original"}),label:l.createElement(k.sA,{id:"COMMON_HOTSPOT"}),id:T.H.HOTSPOT}],W=(0,l.memo)(({insightsRoute:e})=>{const t=(0,r.W6)(),a=(0,s.useSelector)(o.m),c=(0,f.A)(`${S.VO.INSIGHTS}/${T.H.FLOWS}`),n=(0,f.A)(`${S.VO.INSIGHTS}/${T.H.ACTIVITY}`),i=(0,f.A)(`${S.VO.INSIGHTS}/${T.H.HOTSPOT}`),m=(0,l.useCallback)(({id:e})=>{switch(e){case T.H.FLOWS:t.push(c);break;case T.H.ACTIVITY:t.push(n);break;case T.H.HOTSPOT:t.push(i)}},[t,c,n,i]),u=(0,l.useMemo)(()=>M.filter(({id:e})=>a[e][S.o9.NAVIGATION][S.mx.AVAILABLE]),[a]);return l.createElement(b.A,{tabs:u,selectedTab:e,onSelectTab:m})}),P=(0,l.memo)(({insightsRoute:e,hotspotRoute:t})=>{const a=(0,l.useMemo)(()=>(0,V.N)(t),[t]),{footer:r,columns:c,children:n}=(0,l.useMemo)(()=>a[e]||{},[a,e]);return l.createElement(N.A,{leftFilterPageId:h.g1.INSIGHTS,tabs:l.createElement(W,{insightsRoute:e}),footer:r,columns:c},n)}),G=({match:{path:e,params:t,params:{section:a,subSection:s}}})=>(0,I.A)([(0,H.Uc)(void 0,{crudCacheStrategy:{type:d.e.CACHE}}),(0,A.m)(void 0,{crudCacheStrategy:{type:d.e.CACHE}}),(0,C.y)(void 0,{crudCacheStrategy:{type:d.e.CACHE}}),(0,p.Zi)(g.B.FLOWS),(0,p.Zi)(g.B.COUNTRIES),(0,p.Zi)(g.B.ACTIVITY),(0,p.Zi)(g.B.HOTSPOT)],l.createElement(n.A,null,l.createElement(E.A,{leftFilterPageId:h.g1.INSIGHTS,content:l.createElement(P,{insightsRoute:a,hotspotRoute:s})},l.createElement(l.Suspense,{fallback:null},l.createElement(r.dO,null,l.createElement(c.F,{path:O.K[T.H.FLOWS],render:e=>l.createElement(m,{id:T.H.FLOWS,...e})}),l.createElement(c.F,{path:O.K[T.H.ACTIVITY],render:e=>l.createElement(m,{id:T.H.ACTIVITY,...e})}),l.createElement(c.F,{path:O.K[T.H.HOTSPOT],render:e=>l.createElement(m,{id:T.H.HOTSPOT,...e})}),l.createElement(c.F,{exact:!0,path:u.Si[S.VO.INSIGHTS]},l.createElement(r.rd,{to:(0,r.tW)(e,{...t,section:T.H.FLOWS})})))))),{trackingName:S.VO.INSIGHTS})}}]);