"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[4273],{76286:(e,t,n)=>{n.d(t,{$H:()=>d,PP:()=>c,ct:()=>u,yy:()=>m});var l=n(296540),i=n(847883),r=n(71479),a=n(941905),o=n(566723),s=n(294303);const c=e=>l.createElement(a.A,null,e),u=(0,r.A)(i.A,{shouldForwardProp:e=>"alignCenter"!==e})`
  min-height: ${o.fS};
  width: 100%;
  align-items: ${({alignCenter:e})=>e?"center":"flex-start"};
  flex-basis: initial;
`,d=(0,r.A)(s.A)`
  border-top: 1px solid
    ${({theme:{motifPalette:{neutral03:e}}})=>e};
  gap: ${o.kc};
  padding: ${o.kc};
`,m=(0,r.A)(s.A)`
  gap: ${o.kc};
  padding: ${o.kc};
  background-color: ${({theme:{motifPalette:{neutral01:e}}})=>e};
`},595172:(e,t,n)=>{n.d(t,{A:()=>E});var l=n(71479),i=n(296540),r=n(271856),a=n(132196),o=n(217439),s=n(294303),c=n(955161),u=n(128272);const d={[u.u.SELECTABLE]:{background:"neutral03",text:"text03",border:"neutral03"},[u.u.DISABLED]:{background:"neutral03",text:"text03",border:"neutral03"},[u.u.SELECTED]:{background:"uBlue06",text:"neutral00",border:"uBlue06"}},m=(0,l.A)(s.A,{shouldForwardProp:e=>!["bgColor","textColor","state"].includes(e)})`
  height: 20px;
  width: 20px;
  align-items: center;
  border-radius: 2px;
  justify-content: center;
  position: relative;
  pointer-events: auto;
  background-color: ${({bgColor:e,theme:{motifPalette:t}})=>t[e]};
  color: ${({textColor:e,theme:{motifPalette:t}})=>t[e]};
  opacity: ${({state:e})=>e===u.u.DISABLED?.4:1};
  cursor: pointer;
  user-select: none;
`,E=({state:e,port_idx:t,onPortToggle:n,tooltipDescription:l})=>{const{background:s,text:u}=d[e];return i.createElement(c.A,{condition:Boolean(l),wrapper:e=>((e,t)=>i.createElement(r.A,{portal:!0,description:t,tooltipClassName:a.AH`
      z-index: 1000000 !important;
    `},e))(e,l)},i.createElement(m,{textColor:u,bgColor:s,state:e,onClick:()=>{n(t,e)}},i.createElement(o.A,{size:"small",color:"inherit"},t)))}},128272:(e,t,n)=>{var l;n.d(t,{u:()=>l}),function(e){e.SELECTABLE="selectable",e.DISABLED="disabled",e.SELECTED="selected"}(l||(l={}))},334273:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Zt});var l=n(296540),i=n(956347),r=n(582724),a=n(592510),o=n(634229),s=n(413357),c=n(834959),u=n(171073),d=n(915334),m=n(630686),E=n(479369),C=n(274174),A=n(71479),_=n(98160),p=n(566723),S=n(294303),g=n(675344),T=n(927099),h=n(162420),O=n(459449),I=n(349107),x=n(765562);const N=(0,A.A)(S.A)`
  padding: ${p.kc};
  gap: ${p.kc};
  border-radius: ${p.YC};
  align-items: center;
  background-color: ${({theme:{motifPalette:{neutral01:e}}})=>e};
`,f=()=>l.createElement(N,{width:"100%"},l.createElement(h.A,{variant:"fill",size:"original",isActive:!0}),l.createElement(T.A,{size:"body",color:"secondary"},l.createElement(O.sA,{id:"PORTS_STACKING_INFOBOX",values:{link:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}})));var M=n(217439),H=n(822336),R=n(766624);const P=()=>l.createElement("svg",{width:"70",height:"22",viewBox:"0 0 70 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M59 0C59.4865 0 60 0 61 1L70 10H0L8 1C9 0 9.51347 0 10 0H59ZM0 12H70V20C70 21.6569 68.6569 23 67 23H3C1.34315 23 0 21.6569 0 20V12ZM61 15C61 14.4477 61.4477 14 62 14H63C63.5523 14 64 14.4477 64 15V16C64 16.5523 63.5523 17 63 17H62C61.4477 17 61 16.5523 61 16V15ZM3 14C2.44772 14 2 14.4477 2 15V20C2 20.5523 2.44772 21 3 21H8C8.55228 21 9 20.5523 9 20V15C9 14.4477 8.55229 14 8 14H3ZM61 19C61 18.4477 61.4477 18 62 18H63C63.5523 18 64 18.4477 64 19V20C64 20.5523 63.5523 21 63 21H62C61.4477 21 61 20.5523 61 20V19ZM66 18C65.4477 18 65 18.4477 65 19V20C65 20.5523 65.4477 21 66 21H67C67.5523 21 68 20.5523 68 20V19C68 18.4477 67.5523 18 67 18H66ZM65 15C65 14.4477 65.4477 14 66 14H67C67.5523 14 68 14.4477 68 15V16C68 16.5523 67.5523 17 67 17H66C65.4477 17 65 16.5523 65 16V15ZM12 14C11.4477 14 11 14.4477 11 15V16C11 16.5523 11.4477 17 12 17H13C13.5523 17 14 16.5523 14 16V15C14 14.4477 13.5523 14 13 14H12ZM11 19C11 18.4477 11.4477 18 12 18H13C13.5523 18 14 18.4477 14 19V20C14 20.5523 13.5523 21 13 21H12C11.4477 21 11 20.5523 11 20V19ZM16 18C15.4477 18 15 18.4477 15 19V20C15 20.5523 15.4477 21 16 21H17C17.5523 21 18 20.5523 18 20V19C18 18.4477 17.5523 18 17 18H16ZM15 15C15 14.4477 15.4477 14 16 14H17C17.5523 14 18 14.4477 18 15V16C18 16.5523 17.5523 17 17 17H16C15.4477 17 15 16.5523 15 16V15ZM20 14C19.4477 14 19 14.4477 19 15V16C19 16.5523 19.4477 17 20 17H21C21.5523 17 22 16.5523 22 16V15C22 14.4477 21.5523 14 21 14H20ZM19 19C19 18.4477 19.4477 18 20 18H21C21.5523 18 22 18.4477 22 19V20C22 20.5523 21.5523 21 21 21H20C19.4477 21 19 20.5523 19 20V19ZM24 18C23.4477 18 23 18.4477 23 19V20C23 20.5523 23.4477 21 24 21H25C25.5523 21 26 20.5523 26 20V19C26 18.4477 25.5523 18 25 18H24ZM23 15C23 14.4477 23.4477 14 24 14H25C25.5523 14 26 14.4477 26 15V16C26 16.5523 25.5523 17 25 17H24C23.4477 17 23 16.5523 23 16V15ZM28 14C27.4477 14 27 14.4477 27 15V16C27 16.5523 27.4477 17 28 17H29C29.5523 17 30 16.5523 30 16V15C30 14.4477 29.5523 14 29 14H28ZM27 19C27 18.4477 27.4477 18 28 18H29C29.5523 18 30 18.4477 30 19V20C30 20.5523 29.5523 21 29 21H28C27.4477 21 27 20.5523 27 20V19ZM32 18C31.4477 18 31 18.4477 31 19V20C31 20.5523 31.4477 21 32 21H33C33.5523 21 34 20.5523 34 20V19C34 18.4477 33.5523 18 33 18H32ZM31 15C31 14.4477 31.4477 14 32 14H33C33.5523 14 34 14.4477 34 15V16C34 16.5523 33.5523 17 33 17H32C31.4477 17 31 16.5523 31 16V15ZM36 14C35.4477 14 35 14.4477 35 15V16C35 16.5523 35.4477 17 36 17H37C37.5523 17 38 16.5523 38 16V15C38 14.4477 37.5523 14 37 14H36ZM35 19C35 18.4477 35.4477 18 36 18H37C37.5523 18 38 18.4477 38 19V20C38 20.5523 37.5523 21 37 21H36C35.4477 21 35 20.5523 35 20V19ZM40 18C39.4477 18 39 18.4477 39 19V20C39 20.5523 39.4477 21 40 21H41C41.5523 21 42 20.5523 42 20V19C42 18.4477 41.5523 18 41 18H40ZM39 15C39 14.4477 39.4477 14 40 14H41C41.5523 14 42 14.4477 42 15V16C42 16.5523 41.5523 17 41 17H40C39.4477 17 39 16.5523 39 16V15ZM44 14C43.4477 14 43 14.4477 43 15V16C43 16.5523 43.4477 17 44 17H45C45.5523 17 46 16.5523 46 16V15C46 14.4477 45.5523 14 45 14H44ZM43 19C43 18.4477 43.4477 18 44 18H45C45.5523 18 46 18.4477 46 19V20C46 20.5523 45.5523 21 45 21H44C43.4477 21 43 20.5523 43 20V19ZM48 18C47.4477 18 47 18.4477 47 19V20C47 20.5523 47.4477 21 48 21H49C49.5523 21 50 20.5523 50 20V19C50 18.4477 49.5523 18 49 18H48ZM47 15C47 14.4477 47.4477 14 48 14H49C49.5523 14 50 14.4477 50 15V16C50 16.5523 49.5523 17 49 17H48C47.4477 17 47 16.5523 47 16V15ZM52 14C51.4477 14 51 14.4477 51 15V16C51 16.5523 51.4477 17 52 17H53C53.5523 17 54 16.5523 54 16V15C54 14.4477 53.5523 14 53 14H52ZM51 19C51 18.4477 51.4477 18 52 18H53C53.5523 18 54 18.4477 54 19V20C54 20.5523 53.5523 21 53 21H52C51.4477 21 51 20.5523 51 20V19ZM56 18C55.4477 18 55 18.4477 55 19V20C55 20.5523 55.4477 21 56 21H57C57.5523 21 58 20.5523 58 20V19C58 18.4477 57.5523 18 57 18H56ZM55 15C55 14.4477 55.4477 14 56 14H57C57.5523 14 58 14.4477 58 15V16C58 16.5523 57.5523 17 57 17H56C55.4477 17 55 16.5523 55 16V15Z",fill:"currentColor"})),b=(0,A.A)(S.A)`
  gap: ${p.S2};
  border-radius: ${p.kc};
  border: 1px solid
    ${({theme:{motifPalette:{neutral03:e}}})=>e};
  background-color: ${({theme:{motifPalette:{neutral01:e}}})=>e};
  flex-direction: column;
  justify-content: space-between;
  padding: ${p.Ln};
  align-items: center;
  position: relative;
`,v=(0,A.A)(S.A)`
  width: ${317}px;
  height: ${p.ZH};
  position: relative;
`,L=(0,A.A)(S.A)`
  width: ${137}px;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  z-index: 1;
`,k=(0,A.A)(S.A)`
  position: absolute;
  left: ${137}px;
  top: 0;
  width: ${180}px;
  height: 100%;
  border-radius: ${p.kc};
  border: 1px dashed
    ${({theme:{motifPalette:{uBlue06:e}}})=>e};
  background-color: ${({theme:{themeName:e}})=>H.Ay[`desktop-color-ublue-02-${e}`]};
  opacity: 0.2;
`,G=(0,A.A)(S.A)`
  position: relative;
  width: ${180}px;
  height: 100%;
`,w=(0,A.A)(S.A)`
  position: absolute;
  top: 68px;
  width: 100%;
  justify-content: center;
`,y=(0,A.A)(S.A)`
  height: ${p.S2};
  gap: ${p.YC};
  background-color: ${({theme:{motifPalette:{neutral00:e}}})=>e};
  align-items: center;
  border-radius: ${p.kc};
  z-index: 1;
`,V=(0,A.A)(S.A)`
  position: absolute;
  left: 60px;
  top: 44px;
  width: 16px;
  height: 66px;
  z-index: 0;
  border-left: 1px solid
    ${({theme:{motifPalette:{uBlue06:e}}})=>e};
  border-right: 1px solid
    ${({theme:{motifPalette:{uBlue06:e}}})=>e};
`,D=(0,A.A)(S.A)`
  position: absolute;
  left: 103px;
  width: 56px;
  border-top: 1px solid
    ${({theme:{motifPalette:{uBlue06:e}}})=>e};
`,W=(0,A.A)(S.A)`
  color: ${({theme:{themeName:e}})=>H.Ay[`desktop-color-ublue-03-${e}`]};
`,$=(0,A.A)(S.A)`
  position: absolute;
  flex-direction: column;
  align-items: center;
  width: 100%;
`,F=(0,A.A)(S.A)`
  position: absolute;
  left: 22px;
  color: ${({theme:{themeName:e}})=>H.Ay[`desktop-color-ublue-03-${e}`]};
`,B=(0,A.A)(S.A)`
  position: absolute;
  left: 125px;
  margin-top: 6px;
`,K=(0,A.A)(S.A)`
  align-items: stretch;
  position: absolute;
  top: 28px;
  left: 92px;
  width: 33px;
  height: 107px;
`,z=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19 103",fill:"none"},l.createElement("path",{d:"M0 1H10C14.4183 1 18 4.58172 18 9V94C18 98.4183 14.4183 102 10 102H0",stroke:"#006FFF"})),Z=(0,A.A)(S.A)`
  align-items: stretch;
  position: absolute;
  left: 92px;
  width: 30px;
  height: 36px;
`,j=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 35",fill:"none"},l.createElement("path",{d:"M0 1H3C7.41828 1 11 4.58172 11 9V26C11 30.4183 7.41828 34 3 34H0",stroke:"#006FFF"})),U=(0,A.A)(S.A)`
  align-items: stretch;
  position: absolute;
  left: 103px;
  width: 56px;
  height: 29px;
  top: 95px;
  transform: scaleY(1.15);
`,X=l.createElement("svg",{viewBox:"0 0 69 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M0 34.5H15.2202C22.7534 34.5 29.6476 30.2671 33.056 23.549L39.194 11.451C42.6024 4.73294 49.4966 0.5 57.0298 0.5H69",stroke:"#006FFF"})),Y=()=>l.createElement(b,{width:"100%"},l.createElement(v,null,l.createElement(L,null,l.createElement($,{top:0},l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_TOP_SWITCH_A",values:{b:O.b}})),l.createElement(W,null,l.createElement(P,null))),l.createElement(w,null,l.createElement(y,null,l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_STACKING_MC_LAG_GROUP"})),l.createElement(R.A,{description:l.createElement(O.sA,{id:"PORTS_STACKING_MC_LAG_PAIR_TOOLTIP",values:{link:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}}),isInteractive:!0}))),l.createElement($,{top:113},l.createElement(W,null,l.createElement(P,null)),l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_BOTTOM_SWITCH_B",values:{b:O.b}}))),l.createElement(D,{top:28}),l.createElement(U,null,X)),l.createElement(V,null),l.createElement(k,null),l.createElement(G,null,l.createElement(F,{top:16},l.createElement(P,null)),l.createElement(F,{top:49},l.createElement(P,null)),l.createElement(F,{top:81},l.createElement(P,null)),l.createElement(F,{top:113},l.createElement(P,null)),l.createElement(B,{top:16},l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_STACK_SWITCH_K",values:{b:O.b,k:1}}))),l.createElement(B,{top:49},l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_STACK_SWITCH_K",values:{b:O.b,k:2}}))),l.createElement(B,{top:81},l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_STACK_SWITCH_K",values:{b:O.b,k:3}}))),l.createElement(B,{top:113},l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_STACK_SWITCH_K",values:{b:O.b,k:4}}))),l.createElement(K,null,z),l.createElement(Z,{top:28},j),l.createElement(Z,{top:63},j),l.createElement(Z,{top:98},j))),l.createElement(M.A,{size:"medium",color:"text-2"},l.createElement(O.sA,{id:"PORTS_STACKING_DESCRIPTION"})));var q,Q=n(469733),J=n(853008),ee=n(602021),te=n(870443),ne=n(391855),le=n(538535),ie=n(928085),re=n(959341),ae=n(532419),oe=n(874807),se=n(951272),ce=n(824182),ue=n(998837),de=n(758649),me=n(805837),Ee=n(271856),Ce=n(720903),Ae=n(818317),_e=n(941905),pe=n(820060),Se=n(132196),ge=n(81126),Te=n(842151),he=n(152480),Oe=n(86838),Ie=n(388151),xe=n(553089),Ne=n(6510),fe=n(6176),Me=n(955161),He=n(524803),Re=n(15095),Pe=n(627440),be=n(196010),ve=n(780811),Le=n(333080),ke=n(837612),Ge=n(374976);!function(e){e.SWITCHES_24P="SWITCHES_24P",e.SWITCHES_48P="SWITCHES_48P",e.NONE="NONE"}(q||(q={}));const we="empty",ye="new",Ve=["USWF004","USWF005"],De=["USWF006","USWF007"],We={[q.SWITCHES_24P]:{29:1,30:2},[q.SWITCHES_48P]:{53:1,54:2}},$e={[q.SWITCHES_24P]:{1:29,2:30},[q.SWITCHES_48P]:{1:53,2:54}};var Fe=n(217884);const Be=e=>Ve.includes(e)?q.SWITCHES_24P:De.includes(e)?q.SWITCHES_48P:q.NONE,Ke=(e,t)=>We[t][e],ze=(e,t)=>$e[t][e],Ze=e=>{switch(e){case 1:return Fe.b.MASTER;case 2:return Fe.b.BACKUP;default:return Fe.b.MEMBER}},je=e=>({mac:we,index:e}),Ue=(e,t)=>({left_port:void 0,right_port:void 0,left_unit_index:e,right_unit_index:t}),Xe=(e,t)=>{const n=t.length;return t.map((t,l)=>{const i=l+1,r=(l+1)%n+1;return e.find(e=>e.left_unit_index===i&&e.right_unit_index===r)||Ue(i,r)})};var Ye,qe=n(963070);!function(e){e.INDEX_LEFT="index_left",e.INDEX_RIGHT="index_right",e.PORT_LEFT="port_left",e.PORT_RIGHT="port_right"}(Ye||(Ye={}));const Qe={[Ye.INDEX_LEFT]:"COMMON_FROM",[Ye.INDEX_RIGHT]:"COMMON_TO",[Ye.PORT_LEFT]:"PORTS_STACKING_PORT",[Ye.PORT_RIGHT]:"PORTS_STACKING_PORT"};var Je,et=n(705145);!function(e){e.LEFT="left",e.RIGHT="right"}(Je||(Je={}));const tt=(0,A.A)("div")`
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background-color: ${({theme:{motifPalette:{uBlue06:e,neutral03:t}},isSelected:n})=>n?e:t};
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
`,nt=({entry:{left_port:e,right_port:t,index:n},switchSide:i})=>{const{setFieldValue:r}=(0,se.j7)(),a=i===Je.LEFT?e:t,o=(0,l.useCallback)(e=>{r(`links.${n}.${i===Je.LEFT?"left_port":"right_port"}`,e)},[n,i,r]);return l.createElement(S.A,{gap:p.YC,alignItems:"center",justifyContent:"center"},l.createElement(tt,{isSelected:1===a,onClick:()=>o(1)},l.createElement(et.A,{size:"small",color:1===a?"neutral-inverse":"text-3"},"1")),l.createElement(tt,{isSelected:2===a,onClick:()=>o(2)},l.createElement(et.A,{size:"small",color:2===a?"neutral-inverse":"text-3"},"2")))},lt=({index:e})=>l.createElement(M.A,{size:"inherit",color:"inherit"},l.createElement(O.sA,{id:"PORTS_STACKING_SWITCH_N",values:{index:e}})),it=[{id:Ye.INDEX_LEFT,label:l.createElement(O.sA,{id:Qe[Ye.INDEX_LEFT]}),width:100,growthFactor:0,renderCell:e=>l.createElement(lt,{index:e.left_unit_index})},{id:Ye.PORT_LEFT,label:l.createElement(O.sA,{id:Qe[Ye.PORT_LEFT]}),width:80,growthFactor:0,renderCell:e=>l.createElement(nt,{entry:e,switchSide:Je.LEFT})},{id:Ye.INDEX_RIGHT,label:l.createElement(O.sA,{id:Qe[Ye.INDEX_RIGHT]}),width:100,growthFactor:0,renderCell:e=>l.createElement(lt,{index:e.right_unit_index})},{id:Ye.PORT_RIGHT,label:l.createElement(O.sA,{id:Qe[Ye.PORT_RIGHT]}),width:80,renderCell:e=>l.createElement(nt,{entry:e,switchSide:Je.RIGHT})}],rt=()=>{const{values:e}=(0,se.j7)(),t=(0,l.useMemo)(()=>(e=>{const t=e.links.map((t,n)=>({...t,index:n,_id:e._id}));return e.units.map((n,l)=>{const i=l+1===e.units.length?0:l+1;return t.find(e=>e.left_unit_index-1===l)||{index:t.length,left_unit_index:l+1,right_unit_index:i+1,left_port:void 0,right_port:void 0,_id:e._id}})})(e),[e]);return l.createElement(qe.A,{columns:it,disableColumnFilters:!0,disableTextPointer:!0,width:"100%",idField:"index",items:t})};var at;!function(e){e.SWITCHES="switches",e.PORTS="ports"}(at||(at={}));const ot={[at.SWITCHES]:"COMMON_SWITCHES",[at.PORTS]:"COMMON_PORTS"};var st=n(903216),ct=n(662913);const ut=({entry:e})=>{const t=(0,Q.useSelector)(ae.ID);return l.createElement(ct.hD,null,l.createElement(M.A,{size:"inherit",weight:"bold"},l.createElement(O.sA,{id:"COMMON_SWITCHES"})),l.createElement(M.A,{size:"inherit",weight:"bold"},l.createElement(O.sA,{id:"COMMON_PORTS"})),e.unitLags?.map(n=>{const i=e.units.find(e=>e.index===n.unit_index)?.mac,r=t.find(e=>e.mac===i),a=(0,Ne.Q)(r),o=n.ports;return l.createElement(ct.mW,{key:n.unit_index},l.createElement(ct.w1,{size:"small",color:"text-1",isTruncated:!0},a),l.createElement(ct.NC,{size:"small",color:"text-1"},(0,st.Lu)(o)))}))},dt=({entry:e})=>{const t=e.unitLags?.reduce((e,t)=>e+t.ports.length,0)||0;return l.createElement(S.A,{gap:p.YC,alignItems:"center"},t?l.createElement(l.Fragment,null,l.createElement(M.A,{size:"inherit",color:"inherit"},t," ",t>1?l.createElement(O.sA,{id:"COMMON_PORTS"}):l.createElement(O.sA,{id:"COMMON_PORT"})),l.createElement(R.A,{description:l.createElement(ut,{entry:e}),isInteractive:!0})):l.createElement(O.sA,{id:"COMMON_FALLBACK"}))},mt=({entry:e})=>{const t=(0,Q.useSelector)(ae.ID);return l.createElement(S.A,{gap:p.YC,flexDirection:"column"},l.createElement(M.A,{size:"inherit",weight:"bold"},l.createElement(O.sA,{id:"COMMON_SWITCHES"})),e.unitLags?.map(n=>{const i=e.units.find(e=>e.index===n.unit_index)?.mac,r=t.find(e=>e.mac===i),a=(0,Ne.Q)(r);return l.createElement(M.A,{size:"inherit"},a)}))},Et=({entry:e})=>{const t=e.unitLags?.filter(e=>e.ports.length).length;return l.createElement(S.A,{gap:p.kc,alignItems:"center"},t?l.createElement(l.Fragment,null,l.createElement(M.A,{size:"inherit",color:"inherit"},t," ",t>1?l.createElement(O.sA,{id:"COMMON_SWITCHES"}):l.createElement(O.sA,{id:"COMMON_SWITCH"})),l.createElement(R.A,{description:l.createElement(mt,{entry:e}),isInteractive:!0})):l.createElement(O.sA,{id:"COMMON_FALLBACK"}))},Ct=[{id:at.SWITCHES,label:l.createElement(O.sA,{id:ot[at.SWITCHES]}),minWidth:180,growthFactor:0,renderCell:e=>l.createElement(Et,{entry:e})},{id:at.PORTS,label:l.createElement(O.sA,{id:ot[at.PORTS]}),minWidth:180,renderCell:e=>l.createElement(dt,{entry:e})}];var At=n(128272);var _t=n(76286);const pt=({handleOpenLagManagement:e,shouldAddButtonBePopoverAnchor:t})=>{const{values:n,setFieldValue:i}=(0,se.j7)(),r=(0,Q.useSelector)(ee.EL),a=(0,l.useMemo)(()=>(e=>e.lagGroups.map((t,n)=>({...t,index:`${n}`,units:e.units,_id:e._id})))(n),[n]),o=(0,l.useCallback)(t=>{e(Number(t.index))},[e]),s=(0,l.useCallback)(()=>{e(Number(a.length))},[e,a]),c=(0,l.useMemo)(()=>l.createElement(Me.A,{condition:t,wrapper:_t.PP},l.createElement(de.A,{type:"button",variant:"inline",onClick:s},l.createElement(O.sA,{id:"COMMON_ACTION_ADD"}))),[s,t]),u=(0,l.useCallback)(e=>{const t=[...n.lagGroups];t.splice(e,1),i("lagGroups",t)},[i,n.lagGroups]),d=(0,l.useCallback)(e=>l.createElement(de.A,{type:"button",variant:"inline",color:"danger",onClick:()=>u(Number(e.index))},l.createElement(O.sA,{id:"COMMON_ACTION_REMOVE"})),[u]);return l.createElement(qe.A,{columns:Ct,disableColumnFilters:!0,disableTextPointer:!0,idField:"index",items:a,onRowClick:o,renderHoverContent:r?void 0:d,renderFooter:()=>c})},St={unitLags:[],id:0},gt=(0,l.createContext)({}),Tt=({children:e})=>{const[t,n]=(0,l.useState)(St),i=(0,l.useMemo)(()=>({editedLagGroup:t,setEditedLagGroup:n}),[t]);return l.createElement(gt.Provider,{value:i},e)},ht=()=>(0,l.useContext)(gt);var Ot=n(429252),It=n.n(Ot),xt=n(962669),Nt=n(523275),ft=n(595172);const Mt=()=>l.createElement(S.A,{height:"20px",width:"20px",alignItems:"center",justifyContent:"center",style:{visibility:"hidden"}}),Ht=({unitIndex:e})=>{const{values:t}=(0,se.j7)(),{editedLagGroup:n,setEditedLagGroup:i}=ht(),r=t.units.find(t=>t.index===e)?.mac,a=(0,Q.useSelector)((0,l.useMemo)(()=>r?(0,ae.tG)(r):Nt.A,[r])),{diagram:o}=(0,ve.jo)(a.model),s=o?.length?(0,xt.sT)(o,a):(0,xt.oJ)(a),c=(0,l.useCallback)((t,l)=>{if(l===At.u.DISABLED)return;const r={...n};-1===r.unitLags?.findIndex(t=>t.unit_index===e)&&r.unitLags?.push({unit_index:e,ports:[]}),r.unitLags=r.unitLags?.map(n=>(n.unit_index===e&&(l===At.u.SELECTED?n.ports=n.ports?.filter(e=>e!==t):n.ports?.push(t)),n)),i(r)},[n,i,e]);return s&&0!==s.length?l.createElement(S.A,{flexDirection:"column",justifyContent:"space-between"},l.createElement(M.A,{size:"small",color:"text-3"},l.createElement(O.sA,{id:"PORTS_STACKING_SWITCH_N",values:{index:e}})),l.createElement(S.A,{gap:2,flexDirection:"column"},s.map((i,r)=>l.createElement(S.A,{"align-items":"flex-end",key:`PortLayoutRow-${r+1}`,gap:2,justifyContent:"space-between"},i.map((i,a)=>{if(a>=27)return null;if(!i)return l.createElement(Mt,{key:`empty-placeholder-${r+1}-${a+1}`});const{state:o,tooltipDescription:s,tooltipId:u}=((e,t,n,i)=>{const r=e?.unitLags?.find(e=>e.unit_index===t),a=r?.ports?.includes(i),o=n.lagGroups?.filter(t=>t.id!==e.id),s=o?.flatMap(e=>e.unitLags?.find(e=>e.unit_index===t)?.ports),c=s?.includes(i);return c?{state:At.u.DISABLED,tooltipDescription:l.createElement(O.sA,{id:"PORTS_STACKING_DISABLE_REASON_IN_OTHER_LAG"}),tooltipId:"PORTS_STACKING_DISABLE_REASON_IN_OTHER_LAG"}:a?{state:At.u.SELECTED}:{state:At.u.SELECTABLE}})(n,e,t,i.portNumber),d=`Port-${r+1}-${a+1}-${u}`;return l.createElement(ft.A,{state:o,key:d,port_idx:i.portNumber,onPortToggle:c,tooltipDescription:s})}))))):l.createElement(S.A,null,l.createElement(h.A,{isActive:!0}),l.createElement(O.sA,{id:"DEVICE_DIAGRAM_MISSING"}))},Rt=(0,l.memo)(({onClose:e,onSave:t})=>{const{editedLagGroup:n}=ht(),{values:i,setFieldTouched:r}=(0,se.j7)(),a=n?.id?i.lagGroups[n?.id]??St:St,o=!It()(n,a),[s,c]=(0,l.useState)(!1),{invalid:u,invalidReason:d}=(m=n,(m.unitLags?.reduce((e,t)=>e+t.ports.length,0)||0)>8?{invalid:!0,invalidReason:"PORTS_MLAG_DISABLE_REASON_LINK_LIMIT"}:{invalid:!1});var m;const E=(0,l.useCallback)(()=>{c(!0),u||(r("lagGroups"),t())},[u,t,r]);return l.createElement(S.A,{flexDirection:"column",justifyContent:"space-between",height:"100%"},l.createElement(S.A,{padding:p.kc,flexDirection:"column",justifyContent:"space-between",gap:p.kc},l.createElement(_t.yy,null,l.createElement(h.A,{variant:"fill",size:"original",isActive:!0}),l.createElement(M.A,{size:"small"},l.createElement(O.sA,{id:"PORTS_STACKING_LAG_GROUP_POPUP_MESSAGE",values:{link:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}}))),i.units.map(e=>l.createElement(Ht,{key:e.mac,unitIndex:e.index}))),l.createElement(_t.$H,null,l.createElement(de.A,{variant:"primary",onClick:E,disabled:!o,size:"small"},l.createElement(O.sA,{id:"COMMON_ACTION_SAVE"})),l.createElement(de.A,{variant:"tertiary",onClick:e,size:"small"},l.createElement(O.sA,{id:"COMMON_ACTION_CANCEL"})),d&&s?l.createElement(S.A,{alignItems:"center",width:"100%"},l.createElement(M.A,{color:"destructive"},l.createElement(O.sA,{id:d}))):null))}),Pt=(0,A.A)(ge.A)`
  flex-grow: 1;
`,bt=Se.AH`
  padding: 0;
`,vt=Se.AH`
  position: absolute;
`,Lt=(0,A.A)(he.A)`
  flex-shrink: 0;
`,kt=e=>l.createElement(Me.A,{key:e.id,condition:Boolean(e.option?.tooltip),wrapper:(0,He.rR)(void 0,e.option?.tooltip,{position:"top",portal:!0,isInteractive:!0})},l.createElement(me.q,{...e}));var Gt;!function(e){e.SWITCHES_24P="SWITCHES_24P",e.SWITCHES_48P="SWITCHES_48P",e.NONE="NONE"}(Gt||(Gt={}));const wt=["USWF004","USWF005"],yt=["USWF006","USWF007"],Vt=e=>wt.includes(e)?Gt.SWITCHES_24P:yt.includes(e)?Gt.SWITCHES_48P:Gt.NONE,Dt=({stackingGroupId:e})=>{const{values:t,setFieldValue:n,errors:i,submitCount:r,touched:a}=(0,se.j7)(),o=(0,Q.useSelector)(ae.ID),s=(0,l.useRef)(o),c=o.find(e=>e.mac===t.units[0]?.mac),u=c?Vt(c.model||""):Gt.NONE,d=Boolean(e)&&e!==ye,m=(0,Re.A)(Pe.VO.PORTS),{motifPalette:{neutral08:E}}=(0,ue.u)(),C=Boolean(t.lagGroups.length),A=c?.version||"",_=!t.units.every(e=>e.mac!==we),[g,T]=(0,l.useState)(!1),{editedLagGroup:h,setEditedLagGroup:N}=ht(),f=t.lagGroups?.length>5,M=(0,Le.t$)("links",i,a,r),H=(0,Le.t$)("lagGroups",i,a,r),R=(0,Le.t$)("units",i,a,r),P=t.units.some(e=>e.mac===we)&&(a.units||r>0)?l.createElement(O.sA,{id:"PORTS_STACKING_VALIDATION_SELECT_ALL_SWITCHES"}):null,b=t.units.map(e=>e.mac),v=(0,l.useMemo)(()=>s.current.filter(t=>{const n=(0,xe.$B)(t),l=Boolean(t.stacking_group_id),i=d&&t.stacking_group_id===e,r=u===Gt.NONE||u===Vt(t.model);return n&&(!l||i)&&r}).map(e=>{const t=A&&A!==e.version,n=!(b.includes(e.mac)||e.state&&(0,ve.sc)((0,ke.S9)(e))),i=(0,ve.ng)(e),r=t||n||i,a=(()=>{switch(!0){case i:return l.createElement(O.sA,{id:"PORTS_STACKING_REMOVE_AGGREGATED_PORTS",values:{link:l.createElement(be.A,{target:"_blank",to:m,id:m},l.createElement(O.sA,{id:"COMMON_PORT_MANAGER"})),learnMore:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE"})}});case t:return l.createElement(O.sA,{id:"PORTS_STACKING_VERSION_MISMATCH",values:{version1:e.version,version2:A,learnMore:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE"})}});case n:return l.createElement(O.sA,{id:"PORTS_STACKING_SWITCH_OFFLINE",values:{learnMore:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE"})}});default:return}})();return{label:(0,Ne.Q)(e),value:e.mac,model:e.model,image:l.createElement(fe.A,{width:20,height:20,model:e.model}),disabled:r,tooltip:a}}),[d,e,u,A,b,m]),L=t.units.length<v.length&&t.units.length<8,k=(0,l.useCallback)(()=>{const e=[...t.units,je(t.units.length+1)];n("units",e);const l=Xe(t.links,e);n("links",l)},[t.units,t.links,n]),G=(0,l.useCallback)(()=>{const e=t.units.map(e=>je(e.index));n("units",e);const l=Xe([],e);n("links",l),n("lagGroups",[])},[t.units,n]),w=(0,l.useCallback)(e=>{const l=t.units.filter(t=>t.index!==e);n("units",l);const i=Xe(t.links,l);n("links",i),n("lagGroups",[])},[t,n]),y=(0,l.useCallback)((e,l)=>{const i=t.units.map(t=>t.index===e?{...t,mac:l.value}:t);n("units",i);const r=Xe(t.links,i);n("links",r),n("lagGroups",[])},[t,n]),V=(0,l.useCallback)(e=>{T(!0);const n=t.lagGroups[e]??{...St,id:e??0};N((0,Ce.A)(n))},[N,t.lagGroups]),D=(0,l.useCallback)(()=>{T(!1)},[]),W=(0,l.useCallback)(()=>{if(D(),!t.lagGroups.find(e=>e.id===h.id)){const e=[...t.lagGroups,h];return void n("lagGroups",e)}const e=t.lagGroups.map((e,t)=>t===h.id?h:e);n("lagGroups",e)},[h,D,n,t.lagGroups]),$=(0,l.useMemo)(()=>t.units.filter(e=>e.mac!==we).length>0,[t.units]);return l.createElement(Te.A,{padding:"none"},l.createElement(_t.ct,{alignCenter:!0},l.createElement(he.A,{label:l.createElement(O.sA,{id:"PORTS_STACKING_GROUP_NAME"})}),l.createElement(ge.A,null,l.createElement(Ie.A,{name:"name",variant:"secondary",full:!0,placeholder:"COMMON_NAME"}))),l.createElement(S.A,{flexDirection:"column",gap:p.kc,width:"100%"},t.units.map(e=>l.createElement(_t.ct,{alignCenter:!0,marginBottom:0,key:`${e.mac}${e.index}`},l.createElement(he.A,{label:l.createElement(O.sA,{id:"PORTS_STACKING_SWITCH_N_BOLD",values:{b:O.b,index:e.index,description:l.createElement(O.sA,{id:(0,Ge.r)(e.index)})}}),tooltipProps:{isInteractive:!0},tooltip:1===e.index||2===e.index?l.createElement(O.sA,{id:1===e.index?"PORTS_STACKING_SWITCH_1_TOOLTIP":"PORTS_STACKING_SWITCH_2_TOOLTIP",values:{learnMore:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE"})}}):void 0}),l.createElement(ge.A,null,l.createElement(S.A,{gap:p.kc,alignItems:"center",width:"100%"},l.createElement(Ie.A,{name:`units[${e.index-1}].mac`,type:"dropdown",options:v.filter(n=>!((e,t)=>t.units.map(e=>e.mac).includes(e.value))(n,t)||((e,t,n)=>e.value===t.units.find(e=>e.index===n)?.mac)(n,t,e.index)),renderOption:kt,variant:"secondary",full:!0,translatePlaceholder:!0,placeholder:"COMMON_SELECT_SWITCH",onChange:t=>y(e.index,t)}),e.index>2&&t.units.length===e.index?l.createElement(ce.A,{color:E,size:"original",onClick:()=>w(e.index),cursor:"pointer"}):null))))),L||$?l.createElement(_t.ct,{alignCenter:!0,maxHeight:p.fS},l.createElement(he.A,null),l.createElement(ge.A,null,l.createElement(S.A,{gap:p.kc,alignItems:"center"},L?l.createElement(de.A,{variant:"inline",type:"button",onClick:k},l.createElement(O.sA,{id:"PORTS_ADD_SWITCH"})):null,$?l.createElement(de.A,{variant:"inline",type:"button",onClick:G},l.createElement(O.sA,{id:"PORTS_RESET_SELECTED_SWITCHES"})):null))):null,P||R?l.createElement(_t.ct,{alignCenter:!0},l.createElement(he.A,null),l.createElement(ge.A,null,l.createElement(Oe.A,{isInvalid:!0,label:P||R}))):null,l.createElement(_t.ct,null,l.createElement(Lt,{label:l.createElement(O.sA,{id:"PORTS_STACKING_INTERCONNECTED_LINKS"}),tooltip:l.createElement(O.sA,{id:"PORTS_STACKING_INTERCONNECTED_LINKS_TOOLTIP",values:{link:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE"})}}),tooltipProps:{portal:!0,isInteractive:!0}}),l.createElement(Pt,{column:!0},l.createElement(rt,null),M?l.createElement(Oe.A,{isInvalid:!0,label:M}):null)),l.createElement(_t.ct,{alignCenter:!C},l.createElement(Lt,{label:l.createElement(O.sA,{id:"PORTS_STACKING_CROSS_STACK_LAG_MEMBERSHIP"}),tooltip:l.createElement(O.sA,{id:"PORTS_STACKING_CROSS_STACK_LAG_MEMBERSHIP_TOOLTIP",values:{link:l.createElement(I.A,{href:x.A.stackingArticle,id:"COMMON_LEARN_MORE"})}}),tooltipProps:{portal:!0,isInteractive:!0}}),l.createElement(Pt,null,C?l.createElement(l.Fragment,null,l.createElement(pt,{handleOpenLagManagement:V,shouldAddButtonBePopoverAnchor:f}),H?l.createElement(Oe.A,{label:H,isInvalid:!0}):null):l.createElement(Ee.A,{description:_?l.createElement(O.sA,{id:"PORTS_STACKING_VALIDATION_SELECT_ALL_SWITCHES"}):void 0,portal:!0,noWrap:!0},l.createElement(S.A,null,l.createElement(de.A,{variant:"inline",type:"button",onClick:()=>V(0),disabled:_},l.createElement(O.sA,{id:"COMMON_CONFIGURE"})))),l.createElement(Ae.A,null,f?null:l.createElement(_e.A,null,l.createElement("div",{className:vt})),l.createElement(pe.A,{isOpen:g,placement:"bottom left",className:bt,width:645,onOpenChange:D},l.createElement(Rt,{onClose:D,onSave:W}))))))};var Wt=n(935021);const $t=te.A.object().shape({name:te.A.string().label("COMMON_NAME").required(),units:te.A.array().test({name:"allSwitchesSelected",test:(e,t)=>{if(!e||!e.length)return!0;return!e.some(e=>"empty"===e.mac)||t.createError({message:l.createElement(O.sA,{id:"PORTS_STACKING_VALIDATION_SELECT_ALL_SWITCHES"})})}}),links:te.A.array().test({name:"portsDoNotAppearMultipleTimes",test:(e,t)=>{if(!e)return!1;const n=(e=>{const t=(e=>e.reduce((e,t)=>{const n=t.left_port?`${t.left_unit_index}-${t.left_port}`:null,l=t.right_port?`${t.right_unit_index}-${t.right_port}`:null;return n&&e.push(n),l&&e.push(l),e},[]))(e);return new Set(t).size!==t.length})(e);return!n||t.createError({message:l.createElement(O.sA,{id:"PORTS_STACKING_FORM_VALIDATION_DUPLICATE_PORTS"})})}}).test({name:"allLinksAreSelected",test:(e,t)=>{if(!e)return!1;const n=(e=>e.some(e=>!e.left_port||!e.right_port))(e);return!n||t.createError({message:l.createElement(O.sA,{id:"PORTS_STACKING_FORM_VALIDATION_NOT_CONFIGURED_LINKS"})})}}),lagGroups:te.A.array().of(te.A.object().shape({id:te.A.number().required(),unitLags:te.A.array().of(te.A.object().shape({unit_index:te.A.number().required(),ports:te.A.array().of(te.A.number().required()).required()}))}))}),Ft=({isSubmitting:e,dirty:t})=>l.createElement(ne.A,{isDisabled:!t||e,label:"COMMON_ACTION_SAVE"}),Bt=()=>{const e=(0,Q.useSelector)(ee.EL),{[Wt.RN]:t}=(0,i.g)(),n=(0,Q.useSelector)(le.D5),{formatMessage:r}=(0,O.tz)(),a=(0,Q.useDispatch)(),o=((e,t)=>({_id:ye,name:t({id:"PORTS_STACKING_DEFAULT_NAME"},{number:e.length+1}),links:[Ue(1,2),Ue(2,1)],units:[je(1),je(2)],lagGroups:[]}))(n,r),s=(0,i.W6)(),c=(0,ie.A)(re.Q8),u=(0,Q.useSelector)(ae.ID),d=(0,l.useRef)(u),m=(0,l.useMemo)(()=>n.find(e=>e._id===t),[n,t]),E=(0,l.useMemo)(()=>{const e=d.current.find(e=>e.mac===m?.units[0]?.mac),t=Be(e?.model||""),l=((e,t,n,l)=>{const i=t.find(e=>e._id===l);return i?{_id:i._id??e._id,name:i.name??e.name,units:i.units?.map(t=>({...t,mac:t.mac??e.units[0].mac}))??e.units,links:i.links?.filter(Boolean)?.map(e=>({...e,left_unit_index:e.left_unit_index,right_unit_index:e.right_unit_index,left_port:e.left_port&&n&&(n===q.SWITCHES_24P||n===q.SWITCHES_48P)?Ke(e.left_port,n):e.left_port,right_port:e.right_port&&n&&(n===q.SWITCHES_24P||n===q.SWITCHES_48P)?Ke(e.right_port,n):e.right_port}))??e.links,lagGroups:i.lagGroups?.map(e=>({id:e.id,unitLags:e.unitLags?.map(e=>({unit_index:e.unit_index,ports:e.ports}))}))??e.lagGroups}:(0,Ce.A)(e)})(o,n,t,m?._id);return l},[o,n,m?._id,m?.units]),A=(0,l.useCallback)((e,t)=>{const n=u.find(t=>t.mac===e.units[0]?.mac),l=n?Be(n.model||""):q.NONE,i=(o=l,{_id:(r=e)._id===ye?void 0:r._id,name:r.name,units:r.units.map(e=>({...e,role:Ze(e.index)})),links:r.links.map(e=>({left_port:e.left_port&&o&&(o===q.SWITCHES_24P||o===q.SWITCHES_48P)?ze(e.left_port,o):e.left_port,right_port:e.right_port&&o&&(o===q.SWITCHES_24P||o===q.SWITCHES_48P)?ze(e.right_port,o):e.right_port,right_unit_index:e.right_unit_index,left_unit_index:e.left_unit_index})),lagGroups:r.lagGroups.map(e=>({id:e.id,unitLags:e.unitLags?.map(e=>({unit_index:e.unit_index,ports:e.ports}))}))});var r,o;a((0,C.Yr)(i)).then(()=>{a((0,C.d9)()),s.push(c)}).finally(()=>{t.setSubmitting(!1)})},[a,s,c,u]),_=(0,l.useMemo)(()=>Boolean(t),[t]);return l.createElement(Tt,null,l.createElement(J.QM,{initialValues:E,validationSchema:$t,enableReinitialize:!0,onSubmit:A,onReset:()=>{s.push(c)},isReadOnly:e,key:t,footerActiveOverride:!0,showCancelWhenNotDirty:!0,allowSubmitOnInitialValues:!0,renderApplyButton:Ft,footerPaddingX:"none",manageScroll:!1,shouldConfirm:oe.FN,confirmBody:l.createElement(M.A,{variant:"inherit"},l.createElement(O.sA,{id:_?"PORTS_STACKING_CONFIRM_CHANGE_BODY":"PORTS_STACKING_CONFIRM_CREATE_BODY",values:{link:l.createElement(I.A,{id:"COMMON_LEARN_MORE",href:x.A.stackingArticle})}})),confirmButtonLabel:_?"COMMON_ACTION_PROCEED":"DEVICE_ACTIONS_RESTART",confirmShowHeaderClose:!0,confirmButtonVariant:"danger",confirmTitle:_?"PORTS_STACKING_CONFIRM_CHANGE_TITLE":"PORTS_STACKING_CONFIRM_CREATE_TITLE"},l.createElement(J.N3,{center:!0,fullWidth:!0,noPadding:!0,noTopMargin:!0},l.createElement(Dt,{stackingGroupId:t}))))},Kt=(0,A.A)(_.A)`
  overflow-y: auto;
  height: 100%;
`,zt=()=>l.createElement(Kt,{paddingBottom:g.xh},l.createElement(S.A,{flexDirection:"column",gap:p.Ln,padding:p.Ln,maxWidth:800},l.createElement(f,null),l.createElement(Y,null),l.createElement(Bt,null))),Zt=()=>{const{[Wt.RN]:e}=(0,i.g)();return(0,r.A)([(0,o.Sk)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}),(0,u.Uc)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}),(0,C.d9)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}),(0,d.U9)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}),(0,m.zm)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}),(0,E.y)(void 0,{crudCacheStrategy:{type:a.e.CACHE}}),(0,s.Zi)(c.B.PORTS)],l.createElement(zt,null),{renderKey:e})}}}]);