"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[859,72964],{175522(e,t,r){r.d(t,{A:()=>l,Q:()=>a});var n=r(416348);const l="_",a=[n.ZM,n.Je]},22169(e,t,r){r.d(t,{A:()=>s});var n=r(296540),l=r(217439),a=r(916537),o=r(115829),i=r(39705),c=r(294303);const s=({ipv6:e,size:t="inherit",color:r="inherit"})=>{const s=e?.[0];return s?n.createElement(c.A,{width:"100%",justifyContent:"flex-end"},n.createElement(o.A,{flexProps:{justifyContent:"flex-end",alignItems:"center"},color:r,size:t},s),e?.length>1?n.createElement(i.A,{items:e,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>n.createElement(n.Fragment,null,e),renderMultipleItemsSummary:()=>null}):null):n.createElement(l.A,{size:t,color:r},n.createElement(a.sA,{id:"COMMON_FALLBACK"}))}},334293(e,t,r){r.d(t,{A:()=>p});var n=r(296540);const l=({width:e=20,height:t=20})=>n.createElement("svg",{width:e,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4 10a8.4 8.4 0 1 1-16.8 0 8.4 8.4 0 0 1 16.8 0m1.2 0a9.6 9.6 0 0 1-9.6 9.6 9.6 9.6 0 1 1 9.6-9.6M5.2 11.2a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4M10 16a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4m6-6a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0",fill:"currentColor"}));var a=r(895530);var o=r(629318);const i=(0,r(51946).w)(e=>(0,n.createElement)("svg",(0,o.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8Z",fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 7H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM4 6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H4Zm14 4H6v2.465l.422.281a3 3 0 0 1 .832.832l.281.422h8.93l.281-.422c.22-.33.503-.612.832-.832l.422-.281V10ZM6 9a1 1 0 0 0-1 1v2.732a.5.5 0 0 0 .223.416l.644.43a2 2 0 0 1 .555.555l.43.644a.5.5 0 0 0 .416.223h9.464a.5.5 0 0 0 .416-.223l.43-.644a2 2 0 0 1 .555-.555l.644-.43a.5.5 0 0 0 .223-.416V10a1 1 0 0 0-1-1H6Zm2 2.5a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1H8Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{d:"M8 11.5a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1H8Z",fill:"currentColor",className:e.fillclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8Zm3 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v2.465a1 1 0 0 1-.445.832l-.422.281a2 2 0 0 0-.555.555l-.281.422a1 1 0 0 1-.832.445h-8.93a1 1 0 0 1-.832-.445l-.281-.422a2 2 0 0 0-.555-.555l-.422-.281A1 1 0 0 1 5 12.465V10Z",fill:"currentColor",className:e.fillclassname})));var c=r(382389),s=r(770699),m=r(661056);const d=()=>n.createElement(a.sS,{background:m.sn[s.t.DISABLED],borderColor:(0,m.iK)(m.YR,(0,c.u)().themeName)});var u=r(325752),E=r(142207);const A={[s.f.XLR]:e=>n.createElement(a.xl,{...e},n.createElement(l,null)),[s.f.HDMI]:e=>n.createElement(a.xl,{...e},n.createElement(i,{size:"original"})),[s.f.STANDARD]:({isUplinkUp:e})=>n.createElement(a.sS,{backgroundColor:(0,m.iK)(e?"green-06":"neutral-05",(0,c.u)().themeName)},n.createElement(a.Tu,null,e?E.tx[u.FZ.UPLINK]:null))},p=e=>n.createElement(e.type&&A[e.type]||d,{...e})},661056(e,t,r){r.d(t,{MH:()=>c,YR:()=>o,iK:()=>i,sn:()=>a});var n=r(822336),l=r(770699);const a={[l.t.INPUT]:"aqua-04",[l.t.OUTPUT]:"purple-04",[l.t.UPLINK_UP]:"green-06",[l.t.UPLINK_DOWN]:"neutral-05",[l.t.DISABLED]:"transparent",[l.t.DISCONNECTED]:"neutral-05"},o="neutral-05",i=(e,t)=>e&&"transparent"!==e?n.Ay[`desktop-color-${e}-${t}`]:void 0,c=(e,t)=>i(a[e],t)},895530(e,t,r){r.d(t,{xl:()=>v,Tu:()=>p,sS:()=>E,mz:()=>A});var n=r(296540),l=r(822336),a=r(71479),o=r(382389),i=r(311785),c=r(294303),s=r(405442),m=r(770699),d=r(375523),u=r(661056);const E=(0,a.A)(c.A,(0,i.A)("color","backgroundColor","borderColor"))`
  display: flex;
  align-items: center;
  justify-content: center;
  width: ${d.C}px;
  height: ${d.C}px;
  border-radius: ${l.Ay["desktop-radius-base"]};
  background-color: ${({backgroundColor:e})=>e};
  ${({borderColor:e,theme:{themeName:t}})=>e?`border: ${l.Ay[`desktop-border-divider-${t}`]};`:""}
  ${({borderColor:e})=>e?`border-color: ${e};`:""}
`,A=(0,a.A)("div")`
  width: ${d.C}px;
  height: ${d.C}px;
`,p=(0,a.A)("div",(0,i.A)("color","rotation"))`
  display: flex;
  align-items: center;
  justify-content: center;
  color: ${({color:e,theme:{themeName:t}})=>e||l.Ay[`desktop-color-neutral-00-${t}`]};
  ${({rotation:e})=>e?`transform: rotate(${e});`:""}
`,v=({rotation:e,children:t,...r})=>{const{themeName:l}=(0,o.u)(),a=(({direction:e,disabled:t,disconnected:r,isUplinkUp:n})=>{switch(!0){case r:return m.t.DISCONNECTED;case t:return m.t.DISABLED;case e===s.OP.INPUT:return m.t.INPUT;case e===s.OP.OUTPUT:return m.t.OUTPUT;case n:return m.t.UPLINK_UP;case!n:return m.t.UPLINK_DOWN;default:return m.t.DISCONNECTED}})(r),i=(0,u.MH)(a,l),c=a===m.t.DISABLED?(0,u.iK)(u.YR,l):void 0;return n.createElement(E,{backgroundColor:i,borderColor:c},n.createElement(p,{rotation:e},t))}},375523(e,t,r){r.d(t,{C:()=>l,t:()=>n});const n="PORT_GAP",l=24},770699(e,t,r){var n,l;r.d(t,{f:()=>l,t:()=>n}),function(e){e.INPUT="input",e.OUTPUT="output",e.UPLINK_UP="uplinkUp",e.UPLINK_DOWN="uplinDown",e.DISABLED="disabled",e.DISCONNECTED="disconnected"}(n||(n={})),function(e){e.XLR="xlr",e.HDMI="hdmi",e.STANDARD="standard"}(l||(l={}))},819127(e,t,r){r.d(t,{A:()=>o});var n=r(296540),l=r(766624),a=r(530813);const o=function({items:e,getItemKey:t,renderItem:r,maxItemCount:o,renderShowMore:i,showListMarkers:c,title:s,position:m,isInteractive:d,cursorType:u,listGap:E,iconProps:A}){return n.createElement(l.A,{title:s,position:m,isInteractive:d,cursorType:u,description:n.createElement(a.A,{items:e,getItemKey:t,renderItem:r,maxItemCount:o,listGap:E,renderShowMore:i,showListMarkers:c}),iconProps:A})}},39705(e,t,r){r.d(t,{A:()=>s});var n=r(296540),l=r(705145),a=r(916537),o=r(115829),i=r(424135),c=r(819127);const s=function({items:e,renderMultipleItemsSummary:t,renderListItem:r,renderNoItems:s,getItemKey:m,enabled:d=!0,showListMarkers:u,cursorType:E,isInteractive:A}){const p=d?"inherit":"disabled";return e.length>1?n.createElement(i.A,{tooltip:n.createElement(c.A,{items:e,getItemKey:m,renderItem:r,showListMarkers:u,isInteractive:A,cursorType:E})},n.createElement(o.A,{color:p,cursorType:E},t(e))):1===e.length?n.createElement(o.A,{color:p,cursorType:E},r(e[0])):s?n.createElement(n.Fragment,null,s()):n.createElement(l.A,{isTruncated:!0,color:p},n.createElement(a.sA,{id:"COMMON_FALLBACK"}))}},424135(e,t,r){r.d(t,{A:()=>o});var n=r(296540),l=r(566723),a=r(294303);const o=({children:e,tooltip:t})=>n.createElement(a.A,{maxWidth:"100%",overflow:"hidden",gap:l.YC,alignItems:"center"},e?n.createElement(a.A,{flex:1,overflow:"hidden"},e):null,t)},551753(e,t,r){r.d(t,{A:()=>p});var n=r(822336),l=r(296540),a=r(758649),o=r(217439),i=r(162420),c=r(823858),s=r(793336),m=r(382389),d=r(46119),u=r(916537),E=r(224948),A=r(294303);const p=(0,l.memo)(({children:e,customIcon:t,link:r,nested:p,extra:v,variant:_="warning",...h})=>{const{themeName:C}=(0,m.u)(),g=(0,l.useMemo)(()=>{switch(_){case"warning":return l.createElement(c.A,{size:"original",color:n.Ay[`desktop-color-orange-06-${C}`],variant:"fill"});case"info":return l.createElement(i.A,{isActive:!0,size:"original",variant:"fill"});case"custom":return t;default:return l.createElement(s.A,{size:"medium",color:n.Ay[`desktop-color-red-06-${C}`],variant:"fill"})}},[_,C,t]),I=(0,l.useCallback)(()=>{d.A.open(r)},[r]);return l.createElement(E.A,{icon:g,nested:p,...h},l.createElement(A.A,{flexDirection:"column",alignItems:"flex-start"},l.createElement(o.A,null,e),l.createElement(o.A,null,r?l.createElement(a.A,{type:"button",variant:"inline",onClick:I},l.createElement(u.sA,{id:"COMMON_LEARN_MORE"})):null),v))})},86571(e,t,r){r.d(t,{A:()=>o});var n=r(296540),l=r(217439),a=r(916537);const o=({id:e,children:t,values:r})=>n.createElement(l.A,{color:"text-1",weight:"bold",size:"medium"},e?n.createElement(a.sA,{id:e,values:r}):null,t)},146784(e,t,r){r.d(t,{A:()=>E});var n=r(296540),l=r(349424),a=r(217439),o=r(383653),i=r(568560),c=r(22169),s=r(294303),m=r(916537),d=r(348466),u=r(360113);const E=(0,n.memo)(({ipv6_address:e=[],wan_dhcpv6_pd_size:t})=>{const{globalAddresses:r,linkLocalAddress:E}=(0,n.useMemo)(()=>{const t=[];let r=null;for(let n=0;n<e.length;n+=1){const a=e[n];new l.Address6(a).isLinkLocal()?r=a?.split(d.Ed)?.[0]:t.push(a.split(d.Ed)?.[0])}return{globalAddresses:t,linkLocalAddress:r}},[e]);return r.length?n.createElement(n.Fragment,null,n.createElement(u.A,null,n.createElement(a.A,{color:"text-2",size:"medium"},n.createElement(m.sA,{id:"COMMON_IPV6_ADDRESS"})),n.createElement(i.A,{ipv6:r,size:"medium",color:"text-3"})),t?n.createElement(u.A,null,n.createElement(a.A,{color:"text-2",size:"medium"},n.createElement(m.sA,{id:"COMMON_IPV6_PREFIX"})),n.createElement(s.A,{flex:"1",minWidth:"0",justifyContent:"flex-end"},n.createElement(c.A,{ipv6:[`${(0,o.Gh)(r[0],t)}/${t}`],color:"text-3",size:"medium"}))):null,E?n.createElement(u.A,null,n.createElement(a.A,{color:"text-2",size:"medium"},n.createElement(m.sA,{id:"COMMON_IPV6_LINK_LOCAL"})),n.createElement(i.A,{ipv6:[E],size:"medium",color:"text-3"})):null):null})},78853(e,t,r){r.d(t,{A:()=>h});var n,l=r(592563),a=r(296540),o=r(469733),i=r(217439),c=r(187483),s=r(916537),m=r(689965),d=r(86571),u=r(801081);!function(e){e.OPEN_MODAL="openModal"}(n||(n={}));const E=(0,u.Mz)(c.zn,e=>void 0!==e[n.OPEN_MODAL]);var A=r(856632),p=r(957866);const v=({uidbDevice:e})=>{const t=(0,o.useSelector)(c.zn),r=t?.[n.OPEN_MODAL];return r?a.createElement(l.A,{onClick:()=>r(e)},a.createElement(i.A,{size:"medium",color:"inherit"},a.createElement(s.sA,{id:"DEVICE_SHOW_DETAILS"}))):null},_=({shortname:e})=>{(0,p.A)();const t=(0,o.useSelector)((0,a.useMemo)(()=>(0,A.$E)(e),[e]));return t?.compliance?a.createElement(m.A,{type:m.I.ACCORDION,items:[{id:"compliance",label:a.createElement(d.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>a.createElement(v,{uidbDevice:t}),openByDefault:!0}]}):null},h=({shortname:e})=>(0,o.useSelector)(E)?a.createElement(_,{shortname:e}):null},470962(e,t,r){r.d(t,{A:()=>A});var n=r(822336),l=r(296540),a=r(217439),o=r(823858),i=r(382389),c=r(566723),s=r(224948),m=r(349107),d=r(294303),u=r(916537),E=r(765562);const A=(0,l.memo)(({children:e})=>{const{themeName:t}=(0,i.u)();return l.createElement(s.A,{icon:l.createElement(o.A,{size:"original",color:n.Ay[`desktop-color-orange-06-${t}`],variant:"fill"})},l.createElement(d.A,{flexDirection:"column",gap:c.kc},l.createElement(a.A,{size:"medium",color:"text-2"},l.createElement(u.sA,{id:"COMMON_DEVICE_OFFLINE_WARNING",values:{b:u.b,link:l.createElement(m.A,{href:E.A.offlineArticle,id:"COMMON_LEARN_MORE",noWrap:!0})}})),e))})},57759(e,t,r){r.d(t,{A:()=>J});var n=r(296540),l=r(217439),a=r(592563),o=r(517332),i=r(132196),c=r(382389),s=r(469733),m=r(822336),d=r(999589),u=r(916537),E=r(294303),A=r(566723),p=r(212178),v=r(691189),_=r(648549);const h=`${r(771805).w}/device/{mac}/fw-revert-options`,C=(e,t={},r={})=>(0,v.Kd)("firmwareRevertOptions",(0,_.P)(h,{mac:e}),e,t,{idField:"mac",...r});var g=r(801081),I=r(25553),N=r(87485);var f=r(602197),O=r(422969),b=r(442051),M=r(74750),D=r(71479),x=r(180524),y=(r(874734),r(752263)),w=r(6510),k=r(727270),T=r(809893),P=r(778851),R=r(215454),S=r(417378),L=r(187483),z=r(131147),U=r(171073),$=r(90757),V=r(147606),F=r(868456);const B=(0,D.A)(F.A)`
  border-radius: 50%;
  padding: 1px;
  border: ${({theme:{themeName:e}})=>m.Ay[`desktop-border-divider-${e}`]};
  color: ${({theme:{themeName:e}})=>m.Ay[`desktop-color-neutral-08-${e}`]};
`,H=({model:e,version:t})=>{const r=(0,s.useSelector)(L.qf),l=(0,d.coerce)(t)?.version||t,a=(0,n.useCallback)(()=>{l&&r?.(e,l)},[r,e,l]);return n.createElement(x.A,{description:n.createElement(u.sA,{id:"COMMON_RELEASE_NOTES"})},n.createElement("span",null,n.createElement(B,{actionable:!0,onClick:a,size:"original"})))},G=()=>{const{themeName:e}=(0,c.u)();return n.createElement("svg",{viewBox:"0 0 93 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M92.3536 4.03715C92.5488 3.84189 92.5488 3.5253 92.3536 3.33004L89.1716 0.14806C88.9763 -0.0472023 88.6597 -0.0472023 88.4645 0.14806C88.2692 0.343322 88.2692 0.659904 88.4645 0.855167L91.2929 3.68359L88.4645 6.51202C88.2692 6.70728 88.2692 7.02387 88.4645 7.21913C88.6597 7.41439 88.9763 7.41439 89.1716 7.21913L92.3536 4.03715ZM0 3.68359V4.18359H92V3.68359V3.18359H0V3.68359Z",fill:m.Ay[`desktop-color-purple-06-${e}`]}))},W=(0,D.A)(E.A)`
  padding: ${A.xO};
  border: ${({theme:{themeName:e}})=>m.Ay[`desktop-border-divider-${e}`]};
  border-radius: 8px;
  margin-bottom: ${A.kc};
`,K=(0,D.A)(E.A)`
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: ${({theme:{themeName:e}})=>m.Ay[`desktop-color-purple-06-${e}`]};
  z-index: 1;
`,j=(0,D.A)(E.A)`
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  align-items: center;
`,Y=(0,D.A)(E.A)`
  background-color: ${({theme:{themeName:e}})=>m.Ay[`desktop-color-neutral-02-${e}`]};
  border-radius: 4px;

  textarea {
    background-color: transparent;
    resize: none;
  }
`,q=({onCancel:e,onSubmitSuccess:t,name:r,model:a,mac:p,displayable_version:v,uptime:_,revertOptions:h})=>{const C=(0,s.useDispatch)(),{themeName:g}=(0,c.u)(),{formatMessage:I}=(0,u.tz)(),[N,f]=(0,n.useState)(""),O=(0,s.useSelector)(R.Eh),D=(0,s.useSelector)(S.S$),F=(0,P.GO)(D),B=(0,s.useSelector)(L.ap),q=(0,s.useSelector)(L.YL),Z=(0,z.A)("firmware_downgrade_feedback"),Q=(0,w.Lm)(a),X=(0,d.coerce)(v)?.version,J=(0,d.coerce)(h.previous_firmware_version)?.version,ee=(0,n.useCallback)(async(e,t)=>{const r=await Z(),n=`${k.DU}${T.Fx[F]}/v1/firmware-downgrade`;try{await fetch(n,{method:"POST",headers:{"Content-Type":"application/json","X-Captcha":r},mode:"cors",body:JSON.stringify({message:e,applicationName:"Network",applicationVersion:O,deviceModel:Q,deviceFirmwareCurrentVersion:(0,y._)(v),deviceFirmwareNewVersion:t,anonymousId:B})})}catch(e){}},[Z,F,O,v,B,Q]),te=(0,n.useCallback)(()=>{if(C((0,U._1)({name:r,model:a,mac:p},h.previous_firmware_url)),q)return t();N&&ee(N,h.previous_firmware_version),t()},[C,r,a,p,h.previous_firmware_url,h.previous_firmware_version,q,N,t,ee]);return n.createElement(W,{flexDirection:"column",gap:A.Ln},n.createElement(E.A,{gap:A.kc,width:"100%"},n.createElement(E.A,{flexDirection:"column",alignItems:"center",width:"110px",flex:"0 0 110px"},n.createElement(l.A,{color:"text-3",size:"small"},n.createElement(u.sA,{id:"COMMON_CURRENT_VERSION"}),":"),n.createElement(E.A,{gap:A.YC},n.createElement(x.A,{description:n.createElement(n.Fragment,null,n.createElement(u.sA,{id:"DEVICE_TIME_RUNNING"}),": ",(0,$.Ay)(_).join("").trim())},n.createElement(l.A,{color:"text-2",size:"medium"},X)),n.createElement(H,{model:a,version:v}))),n.createElement(E.A,{flex:1,alignItems:"center",justifyContent:"center",position:"relative"},n.createElement(j,null,n.createElement(G,null)),n.createElement(K,null,n.createElement(o.A,{size:"original",variant:"twoTone",color:"white",twoTonedClassname:i.AH`
                fill: ${m.Ay[`desktop-color-purple-06-${g}`]};
              `}))),n.createElement(E.A,{flexDirection:"column",alignItems:"center",width:"110px",flex:"0 0 110px"},n.createElement(l.A,{color:"text-3",size:"small"},n.createElement(u.sA,{id:"COMMON_REVERT_TO"}),":"),n.createElement(E.A,{gap:A.YC},n.createElement(l.A,{color:"text-2",size:"medium"},J),n.createElement(H,{model:a,version:J||""})))),q?null:n.createElement(Y,{flexDirection:"column",gap:A.YC},n.createElement(b.A,{resize:!1,style:{width:"100%"},placeholder:I({id:"COMMON_HELP_UNIFI_UNDERSTAND_REVERT_DESCRIPTION"}),value:N,onChange:e=>{f(e)}})),n.createElement(E.A,{gap:A.YC,width:"100%"},n.createElement(V.A,{title:n.createElement(u.sA,{id:"DEVICE_REVERT_NOW_CONFIRM_TITLE",values:{model:Q}}),message:n.createElement(u.sA,{id:"DEVICE_REVERT_NOW_CONFIRM_MESSAGE",values:{model:Q,version:J||""}}),confirmButtonVariant:"emphasis",onConfirm:te,trigger:n.createElement(M.A,{size:"small"},n.createElement(u.sA,{id:"COMMON_ACTION_REVERT_NOW"}))}),n.createElement(M.A,{size:"small",variant:"neutral",onClick:e},n.createElement(u.sA,{id:"COMMON_ACTION_CANCEL"}))))};var Z=r(360113),Q=r(768195);const X=[Q.bq.USW,Q.bq.UAP,Q.bq.UDB,Q.bq.UBB,Q.bq.UXG,Q.bq.UBLE,Q.bq.UAV,Q.bq.UCI,Q.bq.UACC],J=({name:e,model:t,mac:r,displayable_version:v,uptime:_,type:h,flexProps:b,deviceState:M})=>{const D=(0,s.useDispatch)(),[x,y]=(0,n.useState)(!1),{themeName:w}=(0,c.u)(),k=(0,s.useSelector)((0,n.useMemo)(()=>(e=>(0,g.Mz)((e=>(0,I.uh)(C(e)))(e),N.i6))(r),[r])),T=(0,p.A)(M);(0,n.useEffect)(()=>{T===f.g.UPGRADING&&M!==f.g.UPGRADING&&D(C(r))},[M,T,D,r]);const P=(0,n.useMemo)(()=>{const e=k.previous_firmware_version&&k.previous_firmware_url,t=v!==(0,d.coerce)(k.previous_firmware_version)?.version,r=M===f.g.UPGRADING;return Boolean(e)&&!r&&t&&X.includes(h)},[k.previous_firmware_version,k.previous_firmware_url,v,M,h]),R=(0,O.A)(X.includes(h)?[C(r,{},void 0)]:[],P?n.createElement(a.A,{onPress:()=>{y(!0)},fontSize:"medium"},n.createElement(o.A,{size:"original",variant:"twoTone",color:m.Ay[`desktop-color-ublue-06-${w}`],twoTonedClassname:i.AH`
            fill: ${m.Ay[`desktop-color-ublue-01-${w}`]};
          `}),n.createElement(u.sA,{id:"COMMON_REVERT"})):null);return n.createElement(n.Fragment,null,v?n.createElement(Z.A,{flexProps:b},n.createElement(l.A,{color:"text-2",size:"medium"},n.createElement(u.sA,{id:"COMMON_DEVICE_VERSION"})),n.createElement(E.A,{gap:A.kc,alignItems:"flex-start"},n.createElement(l.A,{color:"text-3",size:"medium"},v),R)):null,x?n.createElement(q,{onCancel:()=>{y(!1)},onSubmitSuccess:()=>{y(!1)},name:e,model:t,mac:r,displayable_version:v,uptime:_,revertOptions:k}):null)}},400242(e,t,r){r.d(t,{A:()=>c});var n=r(296540),l=r(217439),a=r(916537),o=r(780811),i=r(360113);const c=({ip:e,lan_ip:t,ethernet_overrides:r,port_table:c,type:s,wan:m=!1,lan:d=!1,compact:u=!1})=>{const E=(0,o.o_Q)({type:s,ip:e,lan_ip:t,ethernet_overrides:r,port_table:c}),A=(0,n.useMemo)(()=>m?"DEVICE_PROPERTY_OVERVIEW_WAN_IP_ADDRESS":d?"DEVICE_PROPERTY_OVERVIEW_LAN_IP_ADDRESS":"COMMON_IP_ADDRESS",[m,d]);return E?n.createElement(i.A,{compact:u},n.createElement(l.A,{color:"text-2",size:"medium"},n.createElement(a.sA,{id:A})),n.createElement(l.A,{color:"text-3",size:"medium"},E)):null}},723544(e,t,r){r.d(t,{A:()=>i});var n=r(296540),l=r(217439),a=r(916537),o=r(360113);const i=({mac:e,compact:t=!1})=>e?n.createElement(o.A,{compact:t},n.createElement(l.A,{color:"text-2",size:"medium"},n.createElement(a.sA,{id:"COMMON_MAC_ADDRESS"})),n.createElement(l.A,{color:"text-3",size:"medium"},e)):null},329708(e,t,r){r.d(t,{A:()=>c});var n=r(296540),l=r(217439),a=r(6510),o=r(916537),i=r(360113);const c=({model:e})=>n.createElement(i.A,null,n.createElement(l.A,{color:"text-2",size:"medium"},n.createElement(o.sA,{id:"COMMON_MODEL"})),n.createElement(l.A,{color:"text-3",size:"medium"},(0,a.Lm)(e)))},258117(e,t,r){r.d(t,{A:()=>E});var n=r(296540),l=r(325898),a=r(217439),o=r(71479),i=r(903216),c=r(294303),s=r(916537),m=r(360113),d=r(863489);const u=(0,o.A)(c.A)`
  .tooltip-position-fixer {
    margin-right: -14px;
  }
`,E=({uplink:e,portSpeed:t})=>{const r=Number(t||e?.speed),{motif:o}=(0,l.A)();return r>0?n.createElement(m.A,null,n.createElement(a.A,{color:"text-2",size:"medium"},n.createElement(s.sA,{id:"COMMON_EXPERIENCE"})),n.createElement(u,{alignItems:"center"},n.createElement(a.A,{style:{color:(0,d.xe)(r,o,!1)},size:"medium"},(0,i.ir)(r)))):null}},124092(e,t,r){r.d(t,{A:()=>_});var n=r(469733),l=r(296540),a=r(962926),o=r(705145),i=r(71479),c=r(132196),s=r(6510),m=r(130851),d=r(566723),u=r(294303),E=r(6176);const A=c.AH`
  margin-bottom: ${d.Ln};
  margin-top: ${d.Ln};
`,p=(0,i.A)("div")`
  align-self: center;
  overflow: hidden;
  word-break: break-word;
`,v=(0,i.A)("img")`
  width: 40px;
  height: 40px;
  object-fit: contain;
`,_=({children:e,description:t,meshingDescription:r,isOffline:i,activeItem:_,style:h,className:C,isStacking:g,badge:I})=>{const N=(0,n.useSelector)(m.p);return l.createElement(a.A,{className:(0,c.cx)(A,C),sections:[l.createElement("div",null,l.createElement(u.A,{gap:d.kc},g?l.createElement(v,{src:`${N}/topology/stacking.png`,alt:"stacked"}):l.createElement(E.A,{model:_.model,width:40,height:40}),l.createElement(p,{style:h},l.createElement(o.A,{color:i?"text-3":"text-1",weight:"bold",isTruncated:!0},(0,s.Lm)(_.model),I),t)),r,e)]})}},812454(e,t,r){r.d(t,{A:()=>V});var n=r(296540),l=r(71479),a=r(566723),o=r(218234),i=r(294303),c=r(217439),s=r(382389),m=r(842630),d=r(224948),u=r(916537),E=r(469733),A=r(824182),p=r(264963),v=r(822336),_=r(705145);const h=(0,l.A)(i.A)`
  flex-direction: column;
  margin-top: ${a.kc};
  padding-top: ${a.kc};
  border-top: ${({theme:{themeName:e}})=>v.Ay[`desktop-border-divider-${e}`]};
`,C=(0,l.A)(i.A)`
  width: 100%;
  justify-content: space-between;
`,g=(0,l.A)(i.A)`
  gap: ${a.Ln};
  align-items: center;
`,I=(0,l.A)(_.A)`
  max-width: 150px;
`,N=(0,n.memo)(({mac:e,replacementMac:t})=>{const r=(0,E.useDispatch)(),[l,a]=(0,n.useState)(!1),o=(0,n.useCallback)(()=>{a(!0),r((0,p.X2)(e)).finally(()=>{a(!1)})},[r,e]);return n.createElement(h,null,n.createElement(C,null,n.createElement(I,{isTruncated:!0,size:"medium",color:"text-2"},n.createElement(u.sA,{id:"DEVICE_REPLACEMENT_DEVICE"})),n.createElement(g,null,n.createElement(c.A,{size:"medium",color:"text-3"},t),n.createElement(A.A,{actionable:!0,onClick:o,disabled:l}))))}),f=(0,l.A)(i.A)`
  flex-direction: column;
  gap: ${a.kc};
`;var O=r(709690),b=r(823858),M=r(768195);const D=({state:e},{uBlue06:t,orange06:r})=>e===M.gQ.WAITING_FOR_REPLACEMENT?n.createElement(O.A,{size:"original",color:t,variant:"fill"}):n.createElement(b.A,{size:"original",color:r,variant:"fill"}),x=({state:e})=>{switch(e){case M.gQ.WAITING_FOR_REPLACEMENT:return"DEVICE_REPLACEMENT_PENDING_WAITING_FOR_REPLACEMENT";case M.gQ.WAITING_FOR_REPLACED_DEVICE_DISCONNECT:return"DEVICE_REPLACEMENT_PENDING_WAITING_FOR_REPLACED_DEVICE_DISCONNECT";case M.gQ.INCOMPATIBLE_REPLACEMENT:return"DEVICE_REPLACEMENT_PENDING_INCOMPATIBLE_REPLACEMENT";default:return"DEVICE_REPLACEMENT_PENDING_CANNOT_REPLACE"}},y=(0,n.memo)(({mac:e,replacement:t})=>{const{motifPalette:r}=(0,s.u)();return t?.device_mac?n.createElement(m.A,null,n.createElement(d.A,{icon:D(t,r)},n.createElement(f,null,n.createElement(c.A,{size:"medium",color:"text-2"},n.createElement(u.sA,{id:x(t),values:{b:u.b}}))),n.createElement(N,{mac:e,replacementMac:t.device_mac}))):null});var w=r(211908),k=r(129361),T=r(470962),P=r(281884),R=r(451632),S=r(392699),L=r(124092),z=r(236037),U=r(683086);const $=(0,l.A)(i.A)`
  & > :first-child {
    margin-top: ${a.kc};
  }
`,V=({activeItem:e,activeItem:{deviceState:t,uplink:r,mac:l,model:i,type:c,replacement:s},showPortOverview:m,hidePortsButton:d,isStacking:u,multipleDisplayedDevicesData:E,overviewChildren:A,children:p,badge:v})=>{const _=(0,n.useMemo)(()=>(0,P.H)(t,r?.type),[t,r?.type]),h=Boolean(e?.port_table?.length),C=m&&h;return n.createElement(n.Fragment,null,n.createElement(L.A,{activeItem:e,isOffline:_===S.v.OFFLINE,description:n.createElement(k.A,{activeItem:e,connectionStatus:_}),meshingDescription:n.createElement(R.A,{activeItem:e,connectionStatus:_}),isStacking:u,badge:v},A,C?n.createElement("div",{style:{marginTop:a.Ln}},n.createElement(o.A,{activeItem:e,disableOnPortClick:!0,showFullScreenDiagramButton:!1,useBubbleWrapper:!1,multipleDisplayedDevicesData:E,isStacking:u})):null,n.createElement($,{gap:a.kc,flexDirection:"column"},n.createElement(z.A,{activeItem:e}),!d&&h?n.createElement(U.A,{mac:l}):null),p),_===S.v.OFFLINE?n.createElement(T.A,null,s?.device_mac?null:n.createElement(w.A,{mac:l,model:i,type:c})):null,n.createElement(y,{mac:l,replacement:s}))}},13524(e,t,r){r.d(t,{A:()=>N});var n=r(296540),l=r(86571),a=r(689965),o=r(469733),i=r(217439),c=r(705145),s=r(777916),m=r(758649),d=r(968906),u=r(137298),E=r(398300),A=r(294303),p=r(845030),v=r(916537),_=r(927806),h=r(532419),C=r(360113),g=r(258117);const I=({activeItem:e})=>{const{speed:t,rx_packets:r,rx_bytes:l,tx_packets:a,tx_bytes:I}=(0,_.q$)(e)||{},N=(0,o.useSelector)((0,n.useMemo)(()=>(0,h.I4)(e.mac),[e.mac])),{poe_power:f=null,port_poe:O=!1}=(0,_.$Y)({device:e,uplink:N})||{},b=(0,o.useDispatch)(),{formatMessage:M}=(0,v.tz)(),D=(0,n.useCallback)(()=>{b((0,p.XP)({type:E.H.DEVICE,id:N?.mac}))},[b,N?.mac]);return n.createElement(A.A,{height:"100%",flexDirection:"column"},N?.mac?n.createElement(C.A,null,n.createElement(i.A,{size:"medium"},n.createElement(v.sA,{id:"COMMON_DEVICE"})),n.createElement(m.A,{type:"button",variant:"inline",onClick:D,...d.A.addDataTestId(d.A.TestId.SIDE_PANEL_TRIGGER)},n.createElement(c.A,{color:"inherit",size:"medium",isTruncated:!0},(0,_.Jz)(e,N,M)))):null,n.createElement(g.A,{portSpeed:t}),O&&Number(f)>0?n.createElement(C.A,null,n.createElement(i.A,{size:"medium"},n.createElement(v.sA,{id:"DEVICE_PROPERTY_UPLINK_POWER"})),n.createElement(i.A,{size:"medium",color:"text-3"},n.createElement(v.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:f}}))):null,r&&l?n.createElement(C.A,null,n.createElement(i.A,{size:"medium"},n.createElement(v.sA,{id:"COMMON_DOWN_PKTS_BYTES"})),n.createElement(i.A,{size:"medium",color:"text-3"},n.createElement(s.A,{type:"number",input:r,size:"body",color:"tertiary"})," / ",(0,u.z3)(l))):null,a&&I?n.createElement(C.A,null,n.createElement(i.A,{size:"medium"},n.createElement(v.sA,{id:"COMMON_UP_PKTS_BYTES"})),n.createElement(i.A,{size:"medium",color:"text-3"},n.createElement(s.A,{type:"number",input:a,size:"body",color:"tertiary"})," / ",(0,u.z3)(I))):null)},N=({activeItem:e})=>n.createElement(a.A,{type:a.I.ACCORDION,items:[{id:"uplink",openByDefault:!0,label:n.createElement(l.A,{id:"COMMON_PARENT_DEVICE"}),renderContent:()=>n.createElement(I,{activeItem:e})}]})},328787(e,t,r){r.d(t,{A:()=>u});var n=r(469733),l=r(296540),a=r(149133),o=r(855019),i=r(551753),c=r(916537),s=r(532419),m=r(765562);const d=({adopted:e})=>l.createElement(i.A,{link:m.A.virtualNetworkConnectivity},l.createElement(c.sA,{id:e?"DEVICE_FALLBACK_IP_ADOPTED_WITH_UNIFI_GATEWAY_WARNING":"DEVICE_FALLBACK_IP_NOT_ADOPTED_WARNING",values:{bold:l.createElement("strong",null,l.createElement(c.sA,{id:e?"DEVICE_WARNING_FALLBACK_IP":"DEVICE_WARNING_ADOPTION_FAILED"}))}})),u=({ip:e,adopted:t,config_network:r})=>(0,n.useSelector)(s.m9)&&(0,a.W5)(e)&&r?.type===o.NL.DHCP?l.createElement(d,{adopted:t}):null},300817(e,t,r){r.r(t),r.d(t,{default:()=>B});var n=r(296540),l=r(566723),a=r(294303),o=r(237628),i=r(375523),c=r(962669),s=r(431247);var m=r(822336);(0,r(349005).A)(".legend__4UwkxboR{display:inline-block;flex-grow:0;flex-shrink:0;width:8px}.legend-bar__4UwkxboR{height:8px}.legend-pie__4UwkxboR{border-radius:50%;height:8px}.legend-line__4UwkxboR{border-radius:1px;height:2px}");const d=(0,r(722860).c)({legend:"legend__4UwkxboR","legend-bar":"legend-bar__4UwkxboR","legend-pie":"legend-pie__4UwkxboR","legend-line":"legend-line__4UwkxboR"}),u=n.forwardRef(function(e,t){const{className:r,type:l="bar",color:a}=e;return n.createElement("i",{ref:t,className:d.concat(r)("legend",`legend-${l}`),style:{backgroundColor:a}})});var E=r(383704),A=r(71479),p=r(382389),v=r(916537);const _=(0,A.A)("div")`
  display: grid;
  grid-template-columns: repeat(3, minmax(min-content, 1fr));
  grid-gap: ${l.YC};
`;var h=r(217439);const C=({label:e,icon:t})=>n.createElement(a.A,{alignItems:"center",gap:l.YC},n.createElement(a.A,{width:16,justifyContent:"center"},t),n.createElement(h.A,{size:"small",color:"text-3"},e));var g=r(770699),I=r(661056);const N=(0,A.A)(u)`
  border: 1px solid ${({theme:{themeName:e}})=>m.Ay[`desktop-color-neutral-05-${e}`]};
`,f=()=>{const{themeName:e}=(0,p.u)();return n.createElement(_,null,n.createElement(C,{icon:n.createElement(u,{color:(0,I.MH)(g.t.INPUT,e)}),label:n.createElement(v.sA,{id:"COMMON_INPUT"})}),n.createElement(C,{icon:n.createElement(u,{color:(0,I.MH)(g.t.OUTPUT,e)}),label:n.createElement(v.sA,{id:"COMMON_OUTPUT"})}),n.createElement(C,{icon:n.createElement(u,{color:(0,I.MH)(g.t.DISCONNECTED,e)}),label:n.createElement(v.sA,{id:"COMMON_DISCONNECTED"})}),n.createElement(C,{icon:n.createElement(N,{color:(0,I.MH)(g.t.DISABLED,e)}),label:n.createElement(v.sA,{id:"COMMON_DISABLED"})}),n.createElement(C,{icon:n.createElement(E.A,{size:"medium",color:m.Ay[`desktop-color-neutral-08-${e}`]}),label:n.createElement(v.sA,{id:"DEVICE_PHANTOM_POWER"})}))};var O=r(895530),b=r(334293);const M=({activeItem:e})=>{const{diagram:t}=(0,n.useMemo)(()=>(0,o.j)(e.model),[e.model]),r=(0,n.useMemo)(()=>((e,t)=>{const r=(e=>Object.entries(((0,o.j)(e)||{}).ports||{}).reduce((e,[t,r])=>{const n=(0,c.Fb)(r);for(let r=0;r<n.length;r+=1)e[n[r]]=t;return e},{}))(t);return e.map(e=>e.split(" ").map(e=>{if("__"===e)return{type:i.t};const n=Number.parseInt(e,10);return Number.isNaN(n)?{type:i.t}:{type:r[n],idx:n,...(0,s.tI)(n,t)}}))})(t||[],e.model),[t,e.model]);return n.createElement(a.A,{flexDirection:"column",gap:l.Ln,padding:`${l.kc} 0`},n.createElement(a.A,{flexDirection:"column",justifyContent:"center"},r.map((t,r)=>n.createElement(a.A,{key:t.map(e=>`${e.type}-${e.type!==i.t?e.idx:void 0}-${r}`).join(),flexDirection:"row",gap:l.YC,justifyContent:"center"},t.map((t,l)=>t.type!==i.t?n.createElement(b.A,{key:[t.type,t.idx,r,l].join(),...t,isUplinkUp:t.uplinkPort?e.uplink?.up:void 0}):n.createElement(O.mz,{key:[t.type,r,l].join()}))))),n.createElement(f,null))};var D=r(328787),x=r(13524),y=r(812454),w=r(743891),k=r(999063),T=r(329708),P=r(723544),R=r(400242),S=r(57759),L=r(146784),z=r(689965),U=r(360113);const $=()=>n.createElement(U.A,null,n.createElement(h.A,{color:"text-2"},n.createElement(v.sA,{id:"DEVICE_CONNECTION_TYPE"})),n.createElement(h.A,{color:"text-3"},n.createElement(v.sA,{id:"COMMON_ETHERNET"}))),V=({name:e,model:t,ip:r,ipv6:l,lan_ip:a,mac:o,type:i,displayable_version:c,uptime:s,deviceState:m,ethernet_overrides:d,port_table:u})=>n.createElement(z.A,null,n.createElement(T.A,{model:t}),n.createElement(k.A,{uptime:s}),n.createElement(S.A,{name:e,model:t,mac:o,type:i,displayable_version:c,uptime:s,deviceState:m}),n.createElement($,null),n.createElement(P.A,{mac:o}),n.createElement(R.A,{ip:r,lan_ip:a,type:i,ethernet_overrides:d,port_table:u}),n.createElement(L.A,{ipv6_address:l}));var F=r(78853);const B=({activeItem:e,activeItem:{adopted:t,ip:r,config_network:o,mac:i,uptime:c,model:s,displayable_version:m,ipv6:d,lan_ip:u,shortname:E,name:A,type:p,ethernet_overrides:v,port_table:_}})=>n.createElement(n.Fragment,null,n.createElement(y.A,{activeItem:e},n.createElement(a.A,{flexDirection:"column",marginTop:l.kc,justifyContent:"center"},n.createElement(M,{activeItem:e}))),n.createElement(D.A,{ip:r,adopted:t,config_network:o}),n.createElement(w.A,{activeItem:e,isWired:!0}),n.createElement(V,{name:A,type:p,model:s,ip:r,mac:i,uptime:c,displayable_version:m,ipv6:d,lan_ip:u,ethernet_overrides:v,port_table:_}),n.createElement(x.A,{activeItem:e}),n.createElement(F.A,{shortname:E}))},766624(e,t,r){r.d(t,{A:()=>c});var n=r(296540),l=r(271856),a=r(709690),o=r(284428),i=r(566723);const c=({description:e,isInteractive:t,portal:r=!0,cursorType:c,title:s,position:m,width:d,iconProps:u,disabled:E=!1})=>{const A=(0,o.Im)()||E,p=(0,o.q)();return n.createElement(l.A,{description:e,portal:r,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:c,title:s,position:m,width:d,disableHover:p},n.createElement(a.A,{isActive:!0,size:"original",opacity:A?i.xN:void 0,...u}))}},568560(e,t,r){r.d(t,{A:()=>p});var n=r(296540),l=r(469733),a=r(217439),o=r(895795),i=r(383653),c=r(742920),s=r(115829),m=r(39705),d=r(294303),u=r(675359),E=r(916537),A=r(348466);const p=({ipv6:e=[],enabled:t=!0,size:r="inherit",color:p="inherit",showOnlyPrefix:v=!1})=>{const _=(0,l.useDispatch)(),h=(0,n.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{_((0,u.ox)({icon:c.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[_]),C=(0,n.useCallback)((e,t)=>{t.stopPropagation(),t.preventDefault(),h(e)},[h]),g=(0,n.useMemo)(()=>(e=>{const t=e=>(0,i.G8)(e)?0:(0,i.ZV)(e)?1:2;return e.sort((e,r)=>t(e)-t(r))})(e||[]).map(e=>{const[t,r]=e.split(A.Ed);return v?`${(0,i.Gh)(t,Number(r))}/${r}`:(0,i.z2)(e)}),[e,v]),I=g?.[0];return I?n.createElement(d.A,{maxWidth:"100%",justifyContent:"flex-end"},n.createElement(s.A,{enabled:t,flexProps:{justifyContent:"flex-end",alignItems:"center"},color:t?p:"disabled",size:r},I),g?.length>1?n.createElement(m.A,{items:g,isInteractive:!0,showListMarkers:!1,getItemKey:e=>e,renderListItem:e=>n.createElement(n.Fragment,null,e,n.createElement(o.A,{size:"original",actionable:!0,onClick:t=>C(e,t)})),renderMultipleItemsSummary:()=>null}):n.createElement(o.A,{size:"original",actionable:!0,onClick:e=>C(I,e)})):n.createElement(a.A,{size:r,color:t?p:"disabled"},n.createElement(E.sA,{id:"COMMON_FALLBACK"}))}},280258(e,t,r){r.d(t,{H:()=>n});const n=""},451449(e,t,r){r.d(t,{I:()=>n});const n=(0,r(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},284428(e,t,r){r.d(t,{Im:()=>c,iL:()=>s,mQ:()=>o,pv:()=>a,q:()=>i});var n=r(296540),l=r(451449);function a(){return(0,n.useContext)(l.I)}function o(){return a().fields}function i(){return a().tooltipPopovers}function c(){return a().tooltipIcons}function s(){return a().labels}},212178(e,t,r){r.d(t,{A:()=>l});var n=r(296540);const l=e=>{const t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}},957866(e,t,r){r.d(t,{A:()=>c});var n=r(296540),l=r(469733),a=r(765562),o=r(79871),i=r(856632);const c=()=>{const e=(0,l.useDispatch)(),t=(0,l.useSelector)(i.eo);return(0,n.useEffect)(()=>{t||(async()=>{const t=await fetch(a.A.fingerprintPublicDatabasePath),r=await t.json();e((0,o.$)(r))})()},[t,e]),t}},856632(e,t,r){r.d(t,{$E:()=>m,eo:()=>c});var n=r(801081),l=r(523275),a=r(840279),o=r(919952);const i=e=>e[o.U.UIDB]||(0,l.A)(),c=(0,n.Mz)(i,({version:e})=>Boolean(e)),s=(0,n.Mz)(i,({devices:e})=>e||(0,a.A)()),m=e=>(0,n.Mz)(s,t=>t.find(({shortnames:t})=>e&&(t||[]).includes(e))||(0,l.A)());(0,n.Mz)(s,e=>{const t=new Map;for(let r=0;r<e.length;r+=1){const n=e[r].power?.baseConsumption;if(void 0!==n){const{shortnames:l}=e[r];for(let e=0;e<(l||[]).length;e+=1)t.set(l[e],n)}}return t})},362412(e,t,r){r.d(t,{A:()=>d});var n=r(296540),l=r(469733),a=r(436331),o=r(805837),i=r(282556),c=r(71265);const s=e=>n.createElement(a.A,{renderOption:o.q,...e}),m=e=>n.createElement(s,{...e});m.Sorted=e=>{const t=(0,l.useSelector)(i.zi),r=(0,n.useMemo)(()=>(0,c.k)(t),[t]);return n.createElement(s,{...e,sortBy:r})};const d=m},71265(e,t,r){r.d(t,{R:()=>d,k:()=>u});var n=r(280258),l=r(190497),a=r(953048),o=r(175522),i=r(936621),c=r(742525);const s=[...new Set([n.H,o.Q.join(o.A),a.Zt,i.F,l.nc,c.Vr])],m={numeric:!0,sensitivity:"base"},d=(e,t)=>{const r=[];for(let n=e;n<=t;n+=1)r.push({value:n,label:String(n)});return r},u=e=>({value:t,label:r},{value:n,label:l})=>s.includes(t?.toString())||s.includes(n?.toString())?1/0:r?.toString().localeCompare(l?.toString(),e,m)??-1},131147(e,t,r){r.d(t,{A:()=>s});var n=r(296540),l=r(469733),a=r(874734),o=r(417378),i=r(778851);const c={[a.OH.PRD]:"6Ld47OUpAAAAALQ4AgR1gfk-hnSw27y3zIMKLOSw",[a.OH.STG]:"6LeKc-UpAAAAAN6YqRab29cPCbU-cfe7_EvchSvc",[a.OH.DEV]:"6LeocOUpAAAAANmIju4N9DzlkK4UNYdYThrUkK3y"},s=e=>{const[t,r]=(0,n.useState)(),a=(0,n.useRef)(),s=(0,l.useSelector)(o.S$),m=(0,i.GO)(s);return(0,n.useEffect)(()=>{const t=()=>{const{grecaptcha:n}=window;n?.enterprise.ready(()=>r(()=>()=>n.enterprise.execute(c[m],{action:e}))),a.current?.removeEventListener("load",t)};return"grecaptcha"in window?t():(a.current=document.createElement("script"),a.current.src=(e=>`https://www.google.com/recaptcha/enterprise.js?render=${c[e]}`)(m),a.current.addEventListener("load",t),document.body.appendChild(a.current),(()=>{const e="hide-grecaptcha-badge";if(document.getElementById(e))return;const t=document.createElement("style");t.id=e,t.innerText=".grecaptcha-badge { visibility: hidden; }",document.head.appendChild(t)})()),()=>{a.current?.removeEventListener("load",t)}},[]),t}},383149(e,t,r){r.d(t,{A:()=>l});var n=r(885205);const l=function(e,t){return!(null==e||!e.length)&&(0,n.A)(e,t,0)>-1}},887809(e,t,r){r.d(t,{A:()=>n});const n=function(e,t,r){for(var n=-1,l=null==e?0:e.length;++n<l;)if(r(t,e[n]))return!0;return!1}},458043(e,t,r){r.d(t,{A:()=>s});var n=r(8300),l=r(383149),a=r(887809),o=r(45572),i=r(552789),c=r(764099);const s=function(e,t,r,s){var m=-1,d=l.A,u=!0,E=e.length,A=[],p=t.length;if(!E)return A;r&&(t=(0,o.A)(t,(0,i.A)(r))),s?(d=a.A,u=!1):t.length>=200&&(d=c.A,u=!1,t=new n.A(t));e:for(;++m<E;){var v=e[m],_=null==r?v:r(v);if(v=s||0!==v?v:0,u&&_==_){for(var h=p;h--;)if(t[h]===_)continue e;A.push(v)}else d(t,_,s)||A.push(v)}return A}},144757(e,t,r){r.d(t,{A:()=>i});var n=r(458043),l=r(187671),a=r(224326),o=r(153533);const i=(0,a.A)(function(e,t){return(0,o.A)(e)?(0,n.A)(e,(0,l.A)(t,1,o.A,!0)):[]})}}]);